gd-sprest-def 1.0.9 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/custom.js CHANGED
@@ -389,7 +389,7 @@ module.exports = {
389
389
  }
390
390
  ],
391
391
 
392
- // Tenant App
392
+ // Site App Catalog
393
393
  "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor": [
394
394
  {
395
395
  name: "add",
@@ -401,7 +401,31 @@ module.exports = {
401
401
  ]
402
402
  }
403
403
  ],
404
+
405
+ // Site Pages
406
+ "Collection(SP.Publishing.SitePage)": [
407
+ {
408
+ name: "createAppPage",
409
+ returnType: "SP.Publishing.SitePage",
410
+ params: [{ $: { Name: "webPartDataAsJson", Type: "SP.Publishing.SitePageMetadata" } }]
411
+ }
412
+ ],
413
+
414
+ // Tenant App Catalog
404
415
  "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor": [
416
+ {
417
+ name: "addStoreApp",
418
+ returnType: "SP.File",
419
+ params: [
420
+ { $: { Name: "Url", Type: "string" } },
421
+ { $: { Name: "Overwrite", Type: "boolean" } },
422
+ { $: { Name: "IconUrl", Type: "string" } },
423
+ { $: { Name: "Publisher", Type: "string" } },
424
+ { $: { Name: "ShortDescription", Type: "string" } },
425
+ { $: { Name: "StoreAssetId", Type: "string" } },
426
+ { $: { Name: "Content", Type: "any" } }
427
+ ]
428
+ },
405
429
  {
406
430
  name: "add",
407
431
  returnType: "SP.File",
@@ -410,6 +434,15 @@ module.exports = {
410
434
  { $: { Name: "Overwrite", Type: "boolean" } },
411
435
  { $: { Name: "Content", Type: "any" } }
412
436
  ]
437
+ },
438
+ {
439
+ name: "upload",
440
+ returnType: "SP.File",
441
+ params: [
442
+ { $: { Name: "Url", Type: "string" } },
443
+ { $: { Name: "Overwrite", Type: "boolean" } },
444
+ { $: { Name: "Content", Type: "any" } }
445
+ ]
413
446
  }
414
447
  ],
415
448
 
@@ -251,7 +251,7 @@ export interface TenantCorporateCatalogAccessorOData extends Base.IBaseResult, T
251
251
  export interface TenantCorporateCatalogAccessorMethods {
252
252
  // add(Content?: any, Overwrite?: boolean, Url?: string): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
253
253
  addAndDeployStoreAppById(CMU?: string, Overwrite?: boolean, SkipFeatureDeployment?: boolean, StoreAssetId?: string): Base.IBaseExecution<any>;
254
- addStoreApp(Content?: any, Overwrite?: boolean, Url?: string, IconUrl?: string, Publisher?: string, ShortDescription?: string, StoreAssetId?: string): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
254
+ // addStoreApp(Content?: any, Overwrite?: boolean, Url?: string, IconUrl?: string, Publisher?: string, ShortDescription?: string, StoreAssetId?: string): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
255
255
  appRequests(AppRequestInfo?: Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SPStoreAppRequestInformation): Base.IBaseExecution<Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SPStoreAppResponseInformation>;
256
256
  downloadTeamsSolution(id?: number): Base.IBaseExecution<Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TeamsPackageDownload>;
257
257
  downloadTeamsSolutionByUniqueId(id?: any): Base.IBaseExecution<Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TeamsPackageDownload>;
@@ -261,8 +261,10 @@ export interface TenantCorporateCatalogAccessorMethods {
261
261
  syncSolutionToTeams(id?: number): Base.IBaseExecution<number>;
262
262
  syncSolutionToTeamsByUniqueId(id?: any): Base.IBaseExecution<any>;
263
263
  updateMyRequestStatus(RequestId?: any, Status?: number): Base.IBaseExecution<any>;
264
- upload(Content?: any, Overwrite?: boolean, Url?: string): Base.IBaseExecution<any>;
264
+ // upload(Content?: any, Overwrite?: boolean, Url?: string): Base.IBaseExecution<any>;
265
+ addStoreApp(Url?: string, Overwrite?: boolean, IconUrl?: string, Publisher?: string, ShortDescription?: string, StoreAssetId?: string, Content?: any): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
265
266
  add(Url?: string, Overwrite?: boolean, Content?: any): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
267
+ upload(Url?: string, Overwrite?: boolean, Content?: any): Base.IBaseQuery<SP.File, SP.FileOData> & SP.FileCollections & SP.FileMethods;
266
268
  }
267
269
 
268
270
  /*********************************************
@@ -438,7 +438,7 @@ export interface SitePageCollections extends SitePagePropMethods {
438
438
  * SitePageCollectionMethods
439
439
  **********************************************/
440
440
  export interface SitePageCollectionMethods {
441
- createAppPage(webPartDataAsJson?: string): Base.IBaseExecution<string>;
441
+ // createAppPage(webPartDataAsJson?: string): Base.IBaseExecution<string>;
442
442
  ensureTitleResource(): Base.IBaseExecution<any>;
443
443
  feed(promotedState?: number, published?: boolean, metadataFilter?: string, languageOverride?: string): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
444
444
  feedTargeted(promotedState?: number, published?: boolean, metadataFilter?: string, languageOverride?: string): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
@@ -451,6 +451,7 @@ export interface SitePageCollectionMethods {
451
451
  templates(): Base.IBaseExecution<Array<SP.Publishing.SitePageMetadata>>;
452
452
  updateAppPage(pageId?: number, webPartDataAsJson?: string, title?: string, includeInNavigation?: boolean): Base.IBaseExecution<string>;
453
453
  updateFullPageApp(serverRelativeUrl?: string, webPartDataAsJson?: string): Base.IBaseExecution<any>;
454
+ createAppPage(webPartDataAsJson?: SP.Publishing.SitePageMetadata): Base.IBaseExecution<SP.Publishing.SitePage>;
454
455
  }
455
456
 
456
457
  /*********************************************
package/lib/mapper.d.ts CHANGED
@@ -1816,7 +1816,7 @@ export interface IMapper {
1816
1816
  },
1817
1817
 
1818
1818
  addStoreApp: IMapperMethod & {
1819
- argNames: [ "Content", "Overwrite", "Url", "IconUrl", "Publisher", "ShortDescription", "StoreAssetId" ],
1819
+ argNames: [ "Url", "Overwrite", "IconUrl", "Publisher", "ShortDescription", "StoreAssetId", "Content" ],
1820
1820
  },
1821
1821
 
1822
1822
  appRequests: IMapperMethod & {
@@ -1858,7 +1858,7 @@ export interface IMapper {
1858
1858
  },
1859
1859
 
1860
1860
  upload: IMapperMethod & {
1861
- argNames: [ "Content", "Overwrite", "Url" ],
1861
+ argNames: [ "Url", "Overwrite", "Content" ],
1862
1862
  },
1863
1863
 
1864
1864
  }
package/lib/mapper.ts CHANGED
@@ -1737,7 +1737,7 @@ export const Mapper: IMapper = {
1737
1737
  },
1738
1738
 
1739
1739
  addStoreApp: {
1740
- argNames: [ "Content", "Overwrite", "Url", "IconUrl", "Publisher", "ShortDescription", "StoreAssetId" ],
1740
+ argNames: [ "Url", "Overwrite", "IconUrl", "Publisher", "ShortDescription", "StoreAssetId", "Content" ],
1741
1741
  },
1742
1742
 
1743
1743
  appRequests: {
@@ -1779,7 +1779,7 @@ export const Mapper: IMapper = {
1779
1779
  },
1780
1780
 
1781
1781
  upload: {
1782
- argNames: [ "Content", "Overwrite", "Url" ],
1782
+ argNames: [ "Url", "Overwrite", "Content" ],
1783
1783
  },
1784
1784
 
1785
1785
  },
package/main.js CHANGED
@@ -363,7 +363,6 @@ fs.readFile("metadata.xml", "utf8", (err, xml) => {
363
363
  // Validate the collection
364
364
  let name = interface.$ ? interface.$.Name : null;
365
365
  if (name) {
366
- if(name == "comment") { debugger; }
367
366
  // Add the interface
368
367
  directories[ns][collection][name] = {};
369
368
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "1.0.9",
3
+ "version": "1.1.2",
4
4
  "description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.",
5
5
  "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
6
6
  "license": "MIT",