gd-sprest-def 1.4.2 → 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 +16 -0
- package/lib/Microsoft/Graph/entityTypes.d.ts +78 -74
- package/main.js +3 -3
- package/package.json +1 -1
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",
|
|
@@ -13,45 +13,45 @@ export interface drive {
|
|
|
13
13
|
sharePointIds: ComplexTypes.sharepointIds;
|
|
14
14
|
system: ComplexTypes.system;
|
|
15
15
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
16
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
16
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
17
17
|
activitycounts(): IBaseExecution<itemActivityStatEntityCollection>;
|
|
18
|
-
activitycounts(id: string | number): IBaseExecution<itemActivityStatEntity> &
|
|
18
|
+
activitycounts(id: string | number): IBaseExecution<itemActivityStatEntity> & itemActivityStatEntityMethods;
|
|
19
19
|
apps(): IBaseExecution<driveAppCollection>;
|
|
20
|
-
apps(id: string | number): IBaseExecution<driveApp> &
|
|
20
|
+
apps(id: string | number): IBaseExecution<driveApp> & driveAppMethods;
|
|
21
21
|
commands(): IBaseExecution<ComplexTypes.command[]>;
|
|
22
22
|
items(): IBaseExecution<itemCollection>;
|
|
23
|
-
items(id: string | number): IBaseExecution<item> &
|
|
23
|
+
items(id: string | number): IBaseExecution<item> & itemMethods;
|
|
24
24
|
list(): IBaseExecution<list>;
|
|
25
25
|
special(): IBaseExecution<itemCollection>;
|
|
26
|
-
special(id: string | number): IBaseExecution<item> &
|
|
26
|
+
special(id: string | number): IBaseExecution<item> & itemMethods;
|
|
27
27
|
trackedItems(): IBaseExecution<itemCollection>;
|
|
28
|
-
trackedItems(id: string | number): IBaseExecution<item> &
|
|
28
|
+
trackedItems(id: string | number): IBaseExecution<item> & itemMethods;
|
|
29
29
|
}
|
|
30
30
|
/*********************************************
|
|
31
31
|
* drive Methods
|
|
32
32
|
**********************************************/
|
|
33
33
|
export interface driveMethods {
|
|
34
34
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
35
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
35
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
36
36
|
activitycounts(): IBaseExecution<itemActivityStatEntityCollection>;
|
|
37
|
-
activitycounts(id: string | number): IBaseExecution<itemActivityStatEntity> &
|
|
37
|
+
activitycounts(id: string | number): IBaseExecution<itemActivityStatEntity> & itemActivityStatEntityMethods;
|
|
38
38
|
apps(): IBaseExecution<driveAppCollection>;
|
|
39
|
-
apps(id: string | number): IBaseExecution<driveApp> &
|
|
39
|
+
apps(id: string | number): IBaseExecution<driveApp> & driveAppMethods;
|
|
40
40
|
commands(): IBaseExecution<ComplexTypes.command[]>;
|
|
41
41
|
items(): IBaseExecution<itemCollection>;
|
|
42
|
-
items(id: string | number): IBaseExecution<item> &
|
|
42
|
+
items(id: string | number): IBaseExecution<item> & itemMethods;
|
|
43
43
|
list(): IBaseExecution<list>;
|
|
44
44
|
special(): IBaseExecution<itemCollection>;
|
|
45
|
-
special(id: string | number): IBaseExecution<item> &
|
|
45
|
+
special(id: string | number): IBaseExecution<item> & itemMethods;
|
|
46
46
|
trackedItems(): IBaseExecution<itemCollection>;
|
|
47
|
-
trackedItems(id: string | number): IBaseExecution<item> &
|
|
47
|
+
trackedItems(id: string | number): IBaseExecution<item> & itemMethods;
|
|
48
48
|
}
|
|
49
49
|
/*********************************************
|
|
50
50
|
* drive Collection
|
|
51
51
|
**********************************************/
|
|
52
52
|
export interface driveCollection {
|
|
53
53
|
results: drive[];
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
}
|
|
56
56
|
/*********************************************
|
|
57
57
|
* share
|
|
@@ -103,49 +103,49 @@ export interface item {
|
|
|
103
103
|
media: ComplexTypes.media;
|
|
104
104
|
source: ComplexTypes.driveItemSource;
|
|
105
105
|
permissions(): IBaseExecution<permissionCollection>;
|
|
106
|
-
permissions(id: string | number): IBaseExecution<permission> &
|
|
106
|
+
permissions(id: string | number): IBaseExecution<permission> & permissionMethods;
|
|
107
107
|
children(): IBaseExecution<itemCollection>;
|
|
108
|
-
children(id: string | number): IBaseExecution<item> &
|
|
108
|
+
children(id: string | number): IBaseExecution<item> & itemMethods;
|
|
109
109
|
subscriptions(): IBaseExecution<subscriptionCollection>;
|
|
110
|
-
subscriptions(id: string | number): IBaseExecution<subscription> &
|
|
110
|
+
subscriptions(id: string | number): IBaseExecution<subscription> & subscriptionMethods;
|
|
111
111
|
thumbnails(): IBaseExecution<thumbnailSetCollection>;
|
|
112
|
-
thumbnails(id: string | number): IBaseExecution<thumbnailSet> &
|
|
112
|
+
thumbnails(id: string | number): IBaseExecution<thumbnailSet> & thumbnailSetMethods;
|
|
113
113
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
114
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
114
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
115
115
|
analytics(): IBaseExecution<analytics>;
|
|
116
116
|
commands(): IBaseExecution<ComplexTypes.command[]>;
|
|
117
117
|
featureStatus(): IBaseExecution<featureStatus>;
|
|
118
118
|
listItem(): IBaseExecution<listItem>;
|
|
119
119
|
versions(): IBaseExecution<driveItemVersionCollection>;
|
|
120
|
-
versions(id: string | number): IBaseExecution<driveItemVersion> &
|
|
120
|
+
versions(id: string | number): IBaseExecution<driveItemVersion> & driveItemVersionMethods;
|
|
121
121
|
}
|
|
122
122
|
/*********************************************
|
|
123
123
|
* item Methods
|
|
124
124
|
**********************************************/
|
|
125
125
|
export interface itemMethods {
|
|
126
126
|
permissions(): IBaseExecution<permissionCollection>;
|
|
127
|
-
permissions(id: string | number): IBaseExecution<permission> &
|
|
127
|
+
permissions(id: string | number): IBaseExecution<permission> & permissionMethods;
|
|
128
128
|
children(): IBaseExecution<itemCollection>;
|
|
129
|
-
children(id: string | number): IBaseExecution<item> &
|
|
129
|
+
children(id: string | number): IBaseExecution<item> & itemMethods;
|
|
130
130
|
subscriptions(): IBaseExecution<subscriptionCollection>;
|
|
131
|
-
subscriptions(id: string | number): IBaseExecution<subscription> &
|
|
131
|
+
subscriptions(id: string | number): IBaseExecution<subscription> & subscriptionMethods;
|
|
132
132
|
thumbnails(): IBaseExecution<thumbnailSetCollection>;
|
|
133
|
-
thumbnails(id: string | number): IBaseExecution<thumbnailSet> &
|
|
133
|
+
thumbnails(id: string | number): IBaseExecution<thumbnailSet> & thumbnailSetMethods;
|
|
134
134
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
135
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
135
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
136
136
|
analytics(): IBaseExecution<analytics>;
|
|
137
137
|
commands(): IBaseExecution<ComplexTypes.command[]>;
|
|
138
138
|
featureStatus(): IBaseExecution<featureStatus>;
|
|
139
139
|
listItem(): IBaseExecution<listItem>;
|
|
140
140
|
versions(): IBaseExecution<driveItemVersionCollection>;
|
|
141
|
-
versions(id: string | number): IBaseExecution<driveItemVersion> &
|
|
141
|
+
versions(id: string | number): IBaseExecution<driveItemVersion> & driveItemVersionMethods;
|
|
142
142
|
}
|
|
143
143
|
/*********************************************
|
|
144
144
|
* item Collection
|
|
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
|
-
|
|
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
|
|
@@ -281,12 +281,12 @@ export interface listItem extends baseItem {
|
|
|
281
281
|
contentType: ComplexTypes.contentTypeFacet;
|
|
282
282
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
283
283
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
284
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
284
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
285
285
|
analytics(): IBaseExecution<analytics>;
|
|
286
286
|
driveItem(): IBaseExecution<item>;
|
|
287
287
|
fields(): IBaseExecution<fieldValueSet>;
|
|
288
288
|
versions(): IBaseExecution<listItemVersionCollection>;
|
|
289
|
-
versions(id: string | number): IBaseExecution<listItemVersion> &
|
|
289
|
+
versions(id: string | number): IBaseExecution<listItemVersion> & listItemVersionMethods;
|
|
290
290
|
update(values: any): IBaseExecution<void>;
|
|
291
291
|
}
|
|
292
292
|
/*********************************************
|
|
@@ -294,12 +294,12 @@ export interface listItem extends baseItem {
|
|
|
294
294
|
**********************************************/
|
|
295
295
|
export interface listItemMethods {
|
|
296
296
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
297
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
297
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
298
298
|
analytics(): IBaseExecution<analytics>;
|
|
299
299
|
driveItem(): IBaseExecution<item>;
|
|
300
300
|
fields(): IBaseExecution<fieldValueSet>;
|
|
301
301
|
versions(): IBaseExecution<listItemVersionCollection>;
|
|
302
|
-
versions(id: string | number): IBaseExecution<listItemVersion> &
|
|
302
|
+
versions(id: string | number): IBaseExecution<listItemVersion> & listItemVersionMethods;
|
|
303
303
|
update(values: any): IBaseExecution<void>;
|
|
304
304
|
}
|
|
305
305
|
/*********************************************
|
|
@@ -307,7 +307,7 @@ export interface listItemMethods {
|
|
|
307
307
|
**********************************************/
|
|
308
308
|
export interface listItemCollection {
|
|
309
309
|
results: listItem[];
|
|
310
|
-
|
|
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
|
|
@@ -352,21 +352,21 @@ export interface listItemVersionCollection {
|
|
|
352
352
|
export interface driveItemVersion extends baseItemVersion {
|
|
353
353
|
size: number;
|
|
354
354
|
streams(): IBaseExecution<streamCollection>;
|
|
355
|
-
streams(id: string | number): IBaseExecution<stream> &
|
|
355
|
+
streams(id: string | number): IBaseExecution<stream> & streamMethods;
|
|
356
356
|
}
|
|
357
357
|
/*********************************************
|
|
358
358
|
* driveItemVersion Methods
|
|
359
359
|
**********************************************/
|
|
360
360
|
export interface driveItemVersionMethods {
|
|
361
361
|
streams(): IBaseExecution<streamCollection>;
|
|
362
|
-
streams(id: string | number): IBaseExecution<stream> &
|
|
362
|
+
streams(id: string | number): IBaseExecution<stream> & streamMethods;
|
|
363
363
|
}
|
|
364
364
|
/*********************************************
|
|
365
365
|
* driveItemVersion Collection
|
|
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
|
-
|
|
432
|
+
add(values: any): IBaseExecution<ComplexTypes.columnDefinition>;
|
|
433
433
|
}
|
|
434
434
|
/*********************************************
|
|
435
435
|
* contentType
|
|
@@ -446,7 +446,7 @@ export interface contentType {
|
|
|
446
446
|
readOnly: boolean;
|
|
447
447
|
sealed: boolean;
|
|
448
448
|
columnLinks(): IBaseExecution<columnLinkCollection>;
|
|
449
|
-
columnLinks(id: string | number): IBaseExecution<columnLink> &
|
|
449
|
+
columnLinks(id: string | number): IBaseExecution<columnLink> & columnLinkMethods;
|
|
450
450
|
update(values: any): IBaseExecution<void>;
|
|
451
451
|
}
|
|
452
452
|
/*********************************************
|
|
@@ -454,7 +454,7 @@ export interface contentType {
|
|
|
454
454
|
**********************************************/
|
|
455
455
|
export interface contentTypeMethods {
|
|
456
456
|
columnLinks(): IBaseExecution<columnLinkCollection>;
|
|
457
|
-
columnLinks(id: string | number): IBaseExecution<columnLink> &
|
|
457
|
+
columnLinks(id: string | number): IBaseExecution<columnLink> & columnLinkMethods;
|
|
458
458
|
update(values: any): IBaseExecution<void>;
|
|
459
459
|
}
|
|
460
460
|
/*********************************************
|
|
@@ -462,7 +462,7 @@ export interface contentTypeMethods {
|
|
|
462
462
|
**********************************************/
|
|
463
463
|
export interface contentTypeCollection {
|
|
464
464
|
results: contentType[];
|
|
465
|
-
|
|
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
|
|
@@ -515,21 +515,21 @@ export interface driveApp {
|
|
|
515
515
|
fileHandler: ComplexTypes.fileHandler;
|
|
516
516
|
id: string;
|
|
517
517
|
actions(): IBaseExecution<driveAppActionCollection>;
|
|
518
|
-
actions(id: string | number): IBaseExecution<driveAppAction> &
|
|
518
|
+
actions(id: string | number): IBaseExecution<driveAppAction> & driveAppActionMethods;
|
|
519
519
|
}
|
|
520
520
|
/*********************************************
|
|
521
521
|
* driveApp Methods
|
|
522
522
|
**********************************************/
|
|
523
523
|
export interface driveAppMethods {
|
|
524
524
|
actions(): IBaseExecution<driveAppActionCollection>;
|
|
525
|
-
actions(id: string | number): IBaseExecution<driveAppAction> &
|
|
525
|
+
actions(id: string | number): IBaseExecution<driveAppAction> & driveAppActionMethods;
|
|
526
526
|
}
|
|
527
527
|
/*********************************************
|
|
528
528
|
* driveApp Collection
|
|
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
|
|
@@ -565,14 +565,14 @@ export interface list extends baseItem {
|
|
|
565
565
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
566
566
|
system: ComplexTypes.system;
|
|
567
567
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
568
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
568
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
569
569
|
columns(): IBaseExecution<columnDefinitionCollection>;
|
|
570
|
-
columns(id: string | number): IBaseExecution<columnDefinition> &
|
|
570
|
+
columns(id: string | number): IBaseExecution<columnDefinition> & columnDefinitionMethods;
|
|
571
571
|
contentTypes(): IBaseExecution<contentTypeCollection>;
|
|
572
|
-
contentTypes(id: string | number): IBaseExecution<contentType> &
|
|
572
|
+
contentTypes(id: string | number): IBaseExecution<contentType> & contentTypeMethods;
|
|
573
573
|
drive(): IBaseExecution<drive>;
|
|
574
574
|
items(): IBaseExecution<listItemCollection>;
|
|
575
|
-
items(id: string | number): IBaseExecution<listItem> &
|
|
575
|
+
items(id: string | number): IBaseExecution<listItem> & listItemMethods;
|
|
576
576
|
update(values: any): IBaseExecution<void>;
|
|
577
577
|
}
|
|
578
578
|
/*********************************************
|
|
@@ -580,14 +580,14 @@ export interface list extends baseItem {
|
|
|
580
580
|
**********************************************/
|
|
581
581
|
export interface listMethods {
|
|
582
582
|
activities(): IBaseExecution<activityEntityCollection>;
|
|
583
|
-
activities(id: string | number): IBaseExecution<activityEntity> &
|
|
583
|
+
activities(id: string | number): IBaseExecution<activityEntity> & activityEntityMethods;
|
|
584
584
|
columns(): IBaseExecution<columnDefinitionCollection>;
|
|
585
|
-
columns(id: string | number): IBaseExecution<columnDefinition> &
|
|
585
|
+
columns(id: string | number): IBaseExecution<columnDefinition> & columnDefinitionMethods;
|
|
586
586
|
contentTypes(): IBaseExecution<contentTypeCollection>;
|
|
587
|
-
contentTypes(id: string | number): IBaseExecution<contentType> &
|
|
587
|
+
contentTypes(id: string | number): IBaseExecution<contentType> & contentTypeMethods;
|
|
588
588
|
drive(): IBaseExecution<drive>;
|
|
589
589
|
items(): IBaseExecution<listItemCollection>;
|
|
590
|
-
items(id: string | number): IBaseExecution<listItem> &
|
|
590
|
+
items(id: string | number): IBaseExecution<listItem> & listItemMethods;
|
|
591
591
|
update(values: any): IBaseExecution<void>;
|
|
592
592
|
}
|
|
593
593
|
/*********************************************
|
|
@@ -595,7 +595,9 @@ export interface listMethods {
|
|
|
595
595
|
**********************************************/
|
|
596
596
|
export interface listCollection {
|
|
597
597
|
results: list[];
|
|
598
|
-
|
|
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
|
|
@@ -636,18 +638,19 @@ export interface site extends baseItem {
|
|
|
636
638
|
title: string;
|
|
637
639
|
analytics(): IBaseExecution<analytics>;
|
|
638
640
|
columns(): IBaseExecution<columnDefinitionCollection>;
|
|
639
|
-
columns(id: string | number): IBaseExecution<columnDefinition> &
|
|
641
|
+
columns(id: string | number): IBaseExecution<columnDefinition> & columnDefinitionMethods;
|
|
640
642
|
contentTypes(): IBaseExecution<contentTypeCollection>;
|
|
641
|
-
contentTypes(id: string | number): IBaseExecution<contentType> &
|
|
643
|
+
contentTypes(id: string | number): IBaseExecution<contentType> & contentTypeMethods;
|
|
642
644
|
drive(): IBaseExecution<drive>;
|
|
643
645
|
drives(): IBaseExecution<driveCollection>;
|
|
644
|
-
drives(id: string | number): IBaseExecution<drive> &
|
|
646
|
+
drives(id: string | number): IBaseExecution<drive> & driveMethods;
|
|
645
647
|
items(): IBaseExecution<baseItemCollection>;
|
|
646
|
-
items(id: string | number): IBaseExecution<baseItem> &
|
|
648
|
+
items(id: string | number): IBaseExecution<baseItem> & baseItemMethods;
|
|
647
649
|
lists(): IBaseExecution<listCollection>;
|
|
648
|
-
lists(id: string | number): IBaseExecution<list> &
|
|
650
|
+
lists(id: string | number): IBaseExecution<list> & listMethods;
|
|
649
651
|
sites(): IBaseExecution<siteCollection>;
|
|
650
|
-
sites(id: string | number): IBaseExecution<site> &
|
|
652
|
+
sites(id: string | number): IBaseExecution<site> & siteMethods;
|
|
653
|
+
permissions(): IBaseExecution<permissionCollection>;
|
|
651
654
|
}
|
|
652
655
|
/*********************************************
|
|
653
656
|
* site Methods
|
|
@@ -655,25 +658,26 @@ export interface site extends baseItem {
|
|
|
655
658
|
export interface siteMethods {
|
|
656
659
|
analytics(): IBaseExecution<analytics>;
|
|
657
660
|
columns(): IBaseExecution<columnDefinitionCollection>;
|
|
658
|
-
columns(id: string | number): IBaseExecution<columnDefinition> &
|
|
661
|
+
columns(id: string | number): IBaseExecution<columnDefinition> & columnDefinitionMethods;
|
|
659
662
|
contentTypes(): IBaseExecution<contentTypeCollection>;
|
|
660
|
-
contentTypes(id: string | number): IBaseExecution<contentType> &
|
|
663
|
+
contentTypes(id: string | number): IBaseExecution<contentType> & contentTypeMethods;
|
|
661
664
|
drive(): IBaseExecution<drive>;
|
|
662
665
|
drives(): IBaseExecution<driveCollection>;
|
|
663
|
-
drives(id: string | number): IBaseExecution<drive> &
|
|
666
|
+
drives(id: string | number): IBaseExecution<drive> & driveMethods;
|
|
664
667
|
items(): IBaseExecution<baseItemCollection>;
|
|
665
|
-
items(id: string | number): IBaseExecution<baseItem> &
|
|
668
|
+
items(id: string | number): IBaseExecution<baseItem> & baseItemMethods;
|
|
666
669
|
lists(): IBaseExecution<listCollection>;
|
|
667
|
-
lists(id: string | number): IBaseExecution<list> &
|
|
670
|
+
lists(id: string | number): IBaseExecution<list> & listMethods;
|
|
668
671
|
sites(): IBaseExecution<siteCollection>;
|
|
669
|
-
sites(id: string | number): IBaseExecution<site> &
|
|
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
|
-
|
|
680
|
+
add(values: any): IBaseExecution<site>;
|
|
677
681
|
}
|
|
678
682
|
/*********************************************
|
|
679
683
|
* sharePoint
|
|
@@ -682,5 +686,5 @@ export interface sharePoint {
|
|
|
682
686
|
|
|
683
687
|
site(): IBaseExecution<site>;
|
|
684
688
|
sites(): IBaseExecution<siteCollection>;
|
|
685
|
-
sites(id: string | number): IBaseExecution<site> &
|
|
689
|
+
sites(id: string | number): IBaseExecution<site> & siteMethods;
|
|
686
690
|
}
|
package/main.js
CHANGED
|
@@ -422,7 +422,7 @@ function processGraph(schemas) {
|
|
|
422
422
|
methods.push({
|
|
423
423
|
name,
|
|
424
424
|
returnType: collectionType,
|
|
425
|
-
returnType2:
|
|
425
|
+
returnType2: collectionType + "Methods",
|
|
426
426
|
argNames: [{
|
|
427
427
|
name: "id",
|
|
428
428
|
type: "string | number",
|
|
@@ -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
|
-
|
|
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
|
+
"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",
|