@@ -33,7 +33,7 @@ var SearchQuerySortDirection;
3333class PluginData {
3434 /**
3535 * Creates an instance of PluginData.
36- * @param params - PluginDataParams, collection of arguments .
36+ * @param params - The plugin data parameters .
3737 */
3838 constructor ( params ) {
3939 var _a ;
@@ -378,7 +378,7 @@ exports.PluginData = PluginData;
378378class SearchQuery {
379379 /**
380380 * Creates an instance of SearchQuery.
381- * @param params - SearchQueryParams, collection of arguments .
381+ * @param params - The search query parameters .
382382 */
383383 constructor ( params ) {
384384 var _a , _b , _c ;
@@ -633,13 +633,13 @@ SearchResult.wordWhitespaceRe = /\s+/g;
633633class Crawl {
634634 /**
635635 * Creates an instance of Crawl.
636- * @param params - CrawlParams, collection of arguments .
636+ * @param params - The crawl parameters .
637637 */
638638 constructor ( params ) {
639639 this . id = - 1 ;
640+ this . project = - 1 ;
640641 this . created = null ;
641642 this . modified = null ;
642- this . project = - 1 ;
643643 this . time = - 1 ;
644644 this . report = null ;
645645 this . id = params . id ;
@@ -690,21 +690,24 @@ exports.Crawl = Crawl;
690690class Project {
691691 /**
692692 * Creates an instance of Project.
693- * @param params - ProjectParams, collection of arguments .
693+ * @param params - The project parameters .
694694 */
695695 constructor ( params ) {
696696 this . id = - 1 ;
697697 this . created = null ;
698698 this . modified = null ;
699699 this . name = null ; // name to required when url shut down
700+ this . type = null ; // name to required when url shut down
700701 this . url = null ; // deprecated
701- this . urls = [ ] ;
702+ this . urls = null ;
702703 this . imageDataUri = null ;
703704 this . id = params . id ;
705+ this . name = params . name ;
706+ this . type = params . type ;
704707 this . created = params . created ;
705708 this . modified = params . modified ;
706709 this . url = params . url ;
707- this . name = params . name ;
710+ this . urls = params . urls ;
708711 this . imageDataUri = params . imageDataUri ;
709712 }
710713 /**
@@ -753,7 +756,7 @@ class Project {
753756 static async getApiProject ( id ) {
754757 const kwargs = {
755758 "projects" : [ id ] ,
756- "fields" : [ "image" , "created" , "modified" ] ,
759+ "fields" : [ "image" , "created" , "modified" , "urls" ] ,
757760 } ;
758761 const projects = await plugin_js_1 . Plugin . postApiRequest ( "GetProjects" , kwargs ) ;
759762 const results = projects . results ;
@@ -765,13 +768,15 @@ class Project {
765768 const modified = new Date ( project . modified ) ;
766769 const name = project . name || project . url ; // url is deprecated
767770 const imageDataUri = project . image ;
771+ const urls = project . urls || null ;
768772 // return new Project(id, created, modified, url, imageDataUri);
769773 return new Project ( {
770774 id : id ,
771775 created : created ,
772776 modified : modified ,
773777 name : name ,
774- imageDataUri : imageDataUri
778+ imageDataUri : imageDataUri ,
779+ urls : urls
775780 } ) ;
776781 }
777782 }
0 commit comments