gd-sprest-def 1.4.3 → 1.4.4

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/customV2.js CHANGED
@@ -56,6 +56,16 @@ module.exports = {
56
56
  name: "add",
57
57
  returnType: "list",
58
58
  argNames: [{ name: "values", type: "any" }]
59
+ },
60
+ {
61
+ name: "getById",
62
+ returnType: "list",
63
+ argNames: [{ name: "id", type: "string" }]
64
+ },
65
+ {
66
+ name: "getByTitle",
67
+ returnType: "list",
68
+ argNames: [{ name: "title", type: "string" }]
59
69
  }
60
70
  ],
61
71
  permission: [
@@ -72,6 +82,12 @@ module.exports = {
72
82
  argNames: [{ name: "values", type: "any" }]
73
83
  }
74
84
  ],
85
+ site: [
86
+ {
87
+ name: "permissions",
88
+ returnType: "permissionCollection"
89
+ }
90
+ ],
75
91
  siteCollection: [
76
92
  {
77
93
  name: "add",
@@ -51,7 +51,7 @@ export interface driveMethods {
51
51
  **********************************************/
52
52
  export interface driveCollection {
53
53
  results: drive[];
54
-
54
+
55
55
  }
56
56
  /*********************************************
57
57
  * share
@@ -145,7 +145,7 @@ export interface itemMethods {
145
145
  **********************************************/
146
146
  export interface itemCollection {
147
147
  results: item[];
148
-
148
+
149
149
  }
150
150
  /*********************************************
151
151
  * permission
@@ -172,7 +172,7 @@ export interface permissionMethods {
172
172
  **********************************************/
173
173
  export interface permissionCollection {
174
174
  results: permission[];
175
- add(values: any): IBaseExecution<permission>;
175
+ add(values: any): IBaseExecution<permission>;
176
176
  }
177
177
  /*********************************************
178
178
  * subscription
@@ -197,7 +197,7 @@ export interface subscriptionMethods {
197
197
  **********************************************/
198
198
  export interface subscriptionCollection {
199
199
  results: subscription[];
200
-
200
+
201
201
  }
202
202
  /*********************************************
203
203
  * thumbnailSet
@@ -220,7 +220,7 @@ export interface thumbnailSetMethods {
220
220
  **********************************************/
221
221
  export interface thumbnailSetCollection {
222
222
  results: thumbnailSet[];
223
-
223
+
224
224
  }
225
225
  /*********************************************
226
226
  * activityEntity
@@ -247,7 +247,7 @@ export interface activityEntityMethods {
247
247
  **********************************************/
248
248
  export interface activityEntityCollection {
249
249
  results: activityEntity[];
250
-
250
+
251
251
  }
252
252
  /*********************************************
253
253
  * analytics
@@ -307,7 +307,7 @@ export interface listItemMethods {
307
307
  **********************************************/
308
308
  export interface listItemCollection {
309
309
  results: listItem[];
310
- add(values: any): IBaseExecution<item>;
310
+ add(values: any): IBaseExecution<item>;
311
311
  }
312
312
  /*********************************************
313
313
  * fieldValueSet
@@ -344,7 +344,7 @@ export interface listItemVersionMethods {
344
344
  **********************************************/
345
345
  export interface listItemVersionCollection {
346
346
  results: listItemVersion[];
347
-
347
+
348
348
  }
349
349
  /*********************************************
350
350
  * driveItemVersion
@@ -366,7 +366,7 @@ export interface driveItemVersionMethods {
366
366
  **********************************************/
367
367
  export interface driveItemVersionCollection {
368
368
  results: driveItemVersion[];
369
-
369
+
370
370
  }
371
371
  /*********************************************
372
372
  * stream
@@ -389,7 +389,7 @@ export interface streamMethods {
389
389
  **********************************************/
390
390
  export interface streamCollection {
391
391
  results: stream[];
392
-
392
+
393
393
  }
394
394
  /*********************************************
395
395
  * columnDefinition
@@ -429,7 +429,7 @@ export interface columnDefinitionMethods {
429
429
  **********************************************/
430
430
  export interface columnDefinitionCollection {
431
431
  results: columnDefinition[];
432
- add(values: any): IBaseExecution<ComplexTypes.columnDefinition>;
432
+ add(values: any): IBaseExecution<ComplexTypes.columnDefinition>;
433
433
  }
434
434
  /*********************************************
435
435
  * contentType
@@ -462,7 +462,7 @@ export interface contentTypeMethods {
462
462
  **********************************************/
463
463
  export interface contentTypeCollection {
464
464
  results: contentType[];
465
- add(values: any): IBaseExecution<contentType>;
465
+ add(values: any): IBaseExecution<contentType>;
466
466
  }
467
467
  /*********************************************
468
468
  * columnLink
@@ -483,7 +483,7 @@ export interface columnLinkMethods {
483
483
  **********************************************/
484
484
  export interface columnLinkCollection {
485
485
  results: columnLink[];
486
-
486
+
487
487
  }
488
488
  /*********************************************
489
489
  * itemActivityStatEntity
@@ -505,7 +505,7 @@ export interface itemActivityStatEntityMethods {
505
505
  **********************************************/
506
506
  export interface itemActivityStatEntityCollection {
507
507
  results: itemActivityStatEntity[];
508
-
508
+
509
509
  }
510
510
  /*********************************************
511
511
  * driveApp
@@ -529,7 +529,7 @@ export interface driveAppMethods {
529
529
  **********************************************/
530
530
  export interface driveAppCollection {
531
531
  results: driveApp[];
532
-
532
+
533
533
  }
534
534
  /*********************************************
535
535
  * driveAppAction
@@ -554,7 +554,7 @@ export interface driveAppActionMethods {
554
554
  **********************************************/
555
555
  export interface driveAppActionCollection {
556
556
  results: driveAppAction[];
557
-
557
+
558
558
  }
559
559
  /*********************************************
560
560
  * list
@@ -595,7 +595,9 @@ export interface listMethods {
595
595
  **********************************************/
596
596
  export interface listCollection {
597
597
  results: list[];
598
- add(values: any): IBaseExecution<list>;
598
+ add(values: any): IBaseExecution<list>;
599
+ getById(id: string): IBaseExecution<list>;
600
+ getByTitle(title: string): IBaseExecution<list>;
599
601
  }
600
602
  /*********************************************
601
603
  * baseItem
@@ -624,7 +626,7 @@ export interface baseItemMethods {
624
626
  **********************************************/
625
627
  export interface baseItemCollection {
626
628
  results: baseItem[];
627
-
629
+
628
630
  }
629
631
  /*********************************************
630
632
  * site
@@ -648,6 +650,7 @@ export interface site extends baseItem {
648
650
  lists(id: string | number): IBaseExecution<list> & listMethods;
649
651
  sites(): IBaseExecution<siteCollection>;
650
652
  sites(id: string | number): IBaseExecution<site> & siteMethods;
653
+ permissions(): IBaseExecution<permissionCollection>;
651
654
  }
652
655
  /*********************************************
653
656
  * site Methods
@@ -667,13 +670,14 @@ export interface siteMethods {
667
670
  lists(id: string | number): IBaseExecution<list> & listMethods;
668
671
  sites(): IBaseExecution<siteCollection>;
669
672
  sites(id: string | number): IBaseExecution<site> & siteMethods;
673
+ permissions(): IBaseExecution<permissionCollection>;
670
674
  }
671
675
  /*********************************************
672
676
  * site Collection
673
677
  **********************************************/
674
678
  export interface siteCollection {
675
679
  results: site[];
676
- add(values: any): IBaseExecution<site>;
680
+ add(values: any): IBaseExecution<site>;
677
681
  }
678
682
  /*********************************************
679
683
  * sharePoint
package/main.js CHANGED
@@ -731,7 +731,7 @@ ${methods.join('\n')}
731
731
  let argName = argNames[i];
732
732
  argStrings.push(argName.name + ": " + argName.type);
733
733
  }
734
- customMethods.push(customProp.name + "(" + argStrings.join(", ") + "): IBaseExecution<" + getGraphType(customProp.returnType, true) + ">;");
734
+ customMethods.push("\t" + customProp.name + "(" + argStrings.join(", ") + "): IBaseExecution<" + getGraphType(customProp.returnType, true) + ">;");
735
735
  }
736
736
  content.push(`/*********************************************
737
737
  * ${name} Methods
@@ -744,7 +744,7 @@ ${methods.join('\n')}
744
744
  **********************************************/
745
745
  export interface ${name}Collection {
746
746
  results: ${name}[];
747
- ${customMethods.join(",")}
747
+ ${customMethods.join("\n")}
748
748
  }`);
749
749
  }
750
750
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
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",