gd-sprest-def 1.5.5 → 1.5.6
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/lib/Microsoft/Graph/entityTypes.d.ts +161 -163
- package/main.js +3 -4
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IBaseExecution } from "../../base";
|
|
1
|
+
import { IBaseExecution, IBaseQuery } from "../../base";
|
|
2
2
|
import * as ComplexTypes from "./complexTypes.d";
|
|
3
|
-
import * as EnumTypes from "./enumTypes.d";
|
|
4
|
-
|
|
5
3
|
/*********************************************
|
|
6
4
|
* drive
|
|
7
5
|
**********************************************/
|
|
@@ -12,39 +10,39 @@ export interface drive {
|
|
|
12
10
|
quota: ComplexTypes.quota;
|
|
13
11
|
sharePointIds: ComplexTypes.sharepointIds;
|
|
14
12
|
system: ComplexTypes.system;
|
|
15
|
-
activities():
|
|
16
|
-
activities(id: string | number):
|
|
17
|
-
activitycounts():
|
|
18
|
-
activitycounts(id: string | number):
|
|
19
|
-
apps():
|
|
20
|
-
apps(id: string | number):
|
|
21
|
-
commands():
|
|
22
|
-
items():
|
|
23
|
-
items(id: string | number):
|
|
24
|
-
list():
|
|
25
|
-
special():
|
|
26
|
-
special(id: string | number):
|
|
27
|
-
trackedItems():
|
|
28
|
-
trackedItems(id: string | number):
|
|
13
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
14
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
15
|
+
activitycounts(): IBaseQuery<itemActivityStatEntityCollection>;
|
|
16
|
+
activitycounts(id: string | number): IBaseQuery<itemActivityStatEntity> & itemActivityStatEntityMethods;
|
|
17
|
+
apps(): IBaseQuery<driveAppCollection>;
|
|
18
|
+
apps(id: string | number): IBaseQuery<driveApp> & driveAppMethods;
|
|
19
|
+
commands(): IBaseQuery<ComplexTypes.command[]>;
|
|
20
|
+
items(): IBaseQuery<itemCollection>;
|
|
21
|
+
items(id: string | number): IBaseQuery<item> & itemMethods;
|
|
22
|
+
list(): IBaseQuery<list>;
|
|
23
|
+
special(): IBaseQuery<itemCollection>;
|
|
24
|
+
special(id: string | number): IBaseQuery<item> & itemMethods;
|
|
25
|
+
trackedItems(): IBaseQuery<itemCollection>;
|
|
26
|
+
trackedItems(id: string | number): IBaseQuery<item> & itemMethods;
|
|
29
27
|
}
|
|
30
28
|
/*********************************************
|
|
31
29
|
* drive Methods
|
|
32
30
|
**********************************************/
|
|
33
31
|
export interface driveMethods {
|
|
34
|
-
activities():
|
|
35
|
-
activities(id: string | number):
|
|
36
|
-
activitycounts():
|
|
37
|
-
activitycounts(id: string | number):
|
|
38
|
-
apps():
|
|
39
|
-
apps(id: string | number):
|
|
40
|
-
commands():
|
|
41
|
-
items():
|
|
42
|
-
items(id: string | number):
|
|
43
|
-
list():
|
|
44
|
-
special():
|
|
45
|
-
special(id: string | number):
|
|
46
|
-
trackedItems():
|
|
47
|
-
trackedItems(id: string | number):
|
|
32
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
33
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
34
|
+
activitycounts(): IBaseQuery<itemActivityStatEntityCollection>;
|
|
35
|
+
activitycounts(id: string | number): IBaseQuery<itemActivityStatEntity> & itemActivityStatEntityMethods;
|
|
36
|
+
apps(): IBaseQuery<driveAppCollection>;
|
|
37
|
+
apps(id: string | number): IBaseQuery<driveApp> & driveAppMethods;
|
|
38
|
+
commands(): IBaseQuery<ComplexTypes.command[]>;
|
|
39
|
+
items(): IBaseQuery<itemCollection>;
|
|
40
|
+
items(id: string | number): IBaseQuery<item> & itemMethods;
|
|
41
|
+
list(): IBaseQuery<list>;
|
|
42
|
+
special(): IBaseQuery<itemCollection>;
|
|
43
|
+
special(id: string | number): IBaseQuery<item> & itemMethods;
|
|
44
|
+
trackedItems(): IBaseQuery<itemCollection>;
|
|
45
|
+
trackedItems(id: string | number): IBaseQuery<item> & itemMethods;
|
|
48
46
|
}
|
|
49
47
|
/*********************************************
|
|
50
48
|
* drive Collection
|
|
@@ -59,11 +57,11 @@ export interface driveCollection {
|
|
|
59
57
|
export interface share {
|
|
60
58
|
id: string;
|
|
61
59
|
name: string;
|
|
62
|
-
driveItem():
|
|
63
|
-
list():
|
|
64
|
-
listItem():
|
|
65
|
-
root():
|
|
66
|
-
site():
|
|
60
|
+
driveItem(): IBaseQuery<item>;
|
|
61
|
+
list(): IBaseQuery<list>;
|
|
62
|
+
listItem(): IBaseQuery<listItem>;
|
|
63
|
+
root(): IBaseQuery<item>;
|
|
64
|
+
site(): IBaseQuery<site>;
|
|
67
65
|
}
|
|
68
66
|
/*********************************************
|
|
69
67
|
* item
|
|
@@ -102,43 +100,43 @@ export interface item {
|
|
|
102
100
|
formats: ComplexTypes.formats;
|
|
103
101
|
media: ComplexTypes.media;
|
|
104
102
|
source: ComplexTypes.driveItemSource;
|
|
105
|
-
permissions():
|
|
106
|
-
permissions(id: string | number):
|
|
107
|
-
children():
|
|
108
|
-
children(id: string | number):
|
|
109
|
-
subscriptions():
|
|
110
|
-
subscriptions(id: string | number):
|
|
111
|
-
thumbnails():
|
|
112
|
-
thumbnails(id: string | number):
|
|
113
|
-
activities():
|
|
114
|
-
activities(id: string | number):
|
|
115
|
-
analytics():
|
|
116
|
-
commands():
|
|
117
|
-
featureStatus():
|
|
118
|
-
listItem():
|
|
119
|
-
versions():
|
|
120
|
-
versions(id: string | number):
|
|
103
|
+
permissions(): IBaseQuery<permissionCollection>;
|
|
104
|
+
permissions(id: string | number): IBaseQuery<permission> & permissionMethods;
|
|
105
|
+
children(): IBaseQuery<itemCollection>;
|
|
106
|
+
children(id: string | number): IBaseQuery<item> & itemMethods;
|
|
107
|
+
subscriptions(): IBaseQuery<subscriptionCollection>;
|
|
108
|
+
subscriptions(id: string | number): IBaseQuery<subscription> & subscriptionMethods;
|
|
109
|
+
thumbnails(): IBaseQuery<thumbnailSetCollection>;
|
|
110
|
+
thumbnails(id: string | number): IBaseQuery<thumbnailSet> & thumbnailSetMethods;
|
|
111
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
112
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
113
|
+
analytics(): IBaseQuery<analytics>;
|
|
114
|
+
commands(): IBaseQuery<ComplexTypes.command[]>;
|
|
115
|
+
featureStatus(): IBaseQuery<featureStatus>;
|
|
116
|
+
listItem(): IBaseQuery<listItem>;
|
|
117
|
+
versions(): IBaseQuery<driveItemVersionCollection>;
|
|
118
|
+
versions(id: string | number): IBaseQuery<driveItemVersion> & driveItemVersionMethods;
|
|
121
119
|
}
|
|
122
120
|
/*********************************************
|
|
123
121
|
* item Methods
|
|
124
122
|
**********************************************/
|
|
125
123
|
export interface itemMethods {
|
|
126
|
-
permissions():
|
|
127
|
-
permissions(id: string | number):
|
|
128
|
-
children():
|
|
129
|
-
children(id: string | number):
|
|
130
|
-
subscriptions():
|
|
131
|
-
subscriptions(id: string | number):
|
|
132
|
-
thumbnails():
|
|
133
|
-
thumbnails(id: string | number):
|
|
134
|
-
activities():
|
|
135
|
-
activities(id: string | number):
|
|
136
|
-
analytics():
|
|
137
|
-
commands():
|
|
138
|
-
featureStatus():
|
|
139
|
-
listItem():
|
|
140
|
-
versions():
|
|
141
|
-
versions(id: string | number):
|
|
124
|
+
permissions(): IBaseQuery<permissionCollection>;
|
|
125
|
+
permissions(id: string | number): IBaseQuery<permission> & permissionMethods;
|
|
126
|
+
children(): IBaseQuery<itemCollection>;
|
|
127
|
+
children(id: string | number): IBaseQuery<item> & itemMethods;
|
|
128
|
+
subscriptions(): IBaseQuery<subscriptionCollection>;
|
|
129
|
+
subscriptions(id: string | number): IBaseQuery<subscription> & subscriptionMethods;
|
|
130
|
+
thumbnails(): IBaseQuery<thumbnailSetCollection>;
|
|
131
|
+
thumbnails(id: string | number): IBaseQuery<thumbnailSet> & thumbnailSetMethods;
|
|
132
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
133
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
134
|
+
analytics(): IBaseQuery<analytics>;
|
|
135
|
+
commands(): IBaseQuery<ComplexTypes.command[]>;
|
|
136
|
+
featureStatus(): IBaseQuery<featureStatus>;
|
|
137
|
+
listItem(): IBaseQuery<listItem>;
|
|
138
|
+
versions(): IBaseQuery<driveItemVersionCollection>;
|
|
139
|
+
versions(id: string | number): IBaseQuery<driveItemVersion> & driveItemVersionMethods;
|
|
142
140
|
}
|
|
143
141
|
/*********************************************
|
|
144
142
|
* item Collection
|
|
@@ -159,13 +157,13 @@ export interface permission {
|
|
|
159
157
|
roles: Array<string>[];
|
|
160
158
|
expirationDateTime: any;
|
|
161
159
|
grantedToIdentities: ComplexTypes.identitySet[];
|
|
162
|
-
update(values: any):
|
|
160
|
+
update(values: any): IBaseQuery<void>;
|
|
163
161
|
}
|
|
164
162
|
/*********************************************
|
|
165
163
|
* permission Methods
|
|
166
164
|
**********************************************/
|
|
167
165
|
export interface permissionMethods {
|
|
168
|
-
update(values: any):
|
|
166
|
+
update(values: any): IBaseQuery<void>;
|
|
169
167
|
}
|
|
170
168
|
/*********************************************
|
|
171
169
|
* permission Collection
|
|
@@ -232,15 +230,15 @@ export interface activityEntity {
|
|
|
232
230
|
driveItemId: string;
|
|
233
231
|
id: string;
|
|
234
232
|
times: ComplexTypes.activityTimes;
|
|
235
|
-
driveItem():
|
|
236
|
-
listItem():
|
|
233
|
+
driveItem(): IBaseQuery<item>;
|
|
234
|
+
listItem(): IBaseQuery<listItem>;
|
|
237
235
|
}
|
|
238
236
|
/*********************************************
|
|
239
237
|
* activityEntity Methods
|
|
240
238
|
**********************************************/
|
|
241
239
|
export interface activityEntityMethods {
|
|
242
|
-
driveItem():
|
|
243
|
-
listItem():
|
|
240
|
+
driveItem(): IBaseQuery<item>;
|
|
241
|
+
listItem(): IBaseQuery<listItem>;
|
|
244
242
|
}
|
|
245
243
|
/*********************************************
|
|
246
244
|
* activityEntity Collection
|
|
@@ -280,27 +278,27 @@ export interface featureStatus {
|
|
|
280
278
|
export interface listItem extends baseItem {
|
|
281
279
|
contentType: ComplexTypes.contentTypeFacet;
|
|
282
280
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
283
|
-
activities():
|
|
284
|
-
activities(id: string | number):
|
|
285
|
-
analytics():
|
|
286
|
-
driveItem():
|
|
287
|
-
fields():
|
|
288
|
-
versions():
|
|
289
|
-
versions(id: string | number):
|
|
290
|
-
update(values: any):
|
|
281
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
282
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
283
|
+
analytics(): IBaseQuery<analytics>;
|
|
284
|
+
driveItem(): IBaseQuery<item>;
|
|
285
|
+
fields(): IBaseQuery<fieldValueSet>;
|
|
286
|
+
versions(): IBaseQuery<listItemVersionCollection>;
|
|
287
|
+
versions(id: string | number): IBaseQuery<listItemVersion> & listItemVersionMethods;
|
|
288
|
+
update(values: any): IBaseQuery<void>;
|
|
291
289
|
}
|
|
292
290
|
/*********************************************
|
|
293
291
|
* listItem Methods
|
|
294
292
|
**********************************************/
|
|
295
293
|
export interface listItemMethods {
|
|
296
|
-
activities():
|
|
297
|
-
activities(id: string | number):
|
|
298
|
-
analytics():
|
|
299
|
-
driveItem():
|
|
300
|
-
fields():
|
|
301
|
-
versions():
|
|
302
|
-
versions(id: string | number):
|
|
303
|
-
update(values: any):
|
|
294
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
295
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
296
|
+
analytics(): IBaseQuery<analytics>;
|
|
297
|
+
driveItem(): IBaseQuery<item>;
|
|
298
|
+
fields(): IBaseQuery<fieldValueSet>;
|
|
299
|
+
versions(): IBaseQuery<listItemVersionCollection>;
|
|
300
|
+
versions(id: string | number): IBaseQuery<listItemVersion> & listItemVersionMethods;
|
|
301
|
+
update(values: any): IBaseQuery<void>;
|
|
304
302
|
}
|
|
305
303
|
/*********************************************
|
|
306
304
|
* listItem Collection
|
|
@@ -331,13 +329,13 @@ export interface baseItemVersion {
|
|
|
331
329
|
**********************************************/
|
|
332
330
|
export interface listItemVersion extends baseItemVersion {
|
|
333
331
|
|
|
334
|
-
fields():
|
|
332
|
+
fields(): IBaseQuery<fieldValueSet>;
|
|
335
333
|
}
|
|
336
334
|
/*********************************************
|
|
337
335
|
* listItemVersion Methods
|
|
338
336
|
**********************************************/
|
|
339
337
|
export interface listItemVersionMethods {
|
|
340
|
-
fields():
|
|
338
|
+
fields(): IBaseQuery<fieldValueSet>;
|
|
341
339
|
}
|
|
342
340
|
/*********************************************
|
|
343
341
|
* listItemVersion Collection
|
|
@@ -351,15 +349,15 @@ export interface listItemVersionCollection {
|
|
|
351
349
|
**********************************************/
|
|
352
350
|
export interface driveItemVersion extends baseItemVersion {
|
|
353
351
|
size: number;
|
|
354
|
-
streams():
|
|
355
|
-
streams(id: string | number):
|
|
352
|
+
streams(): IBaseQuery<streamCollection>;
|
|
353
|
+
streams(id: string | number): IBaseQuery<stream> & streamMethods;
|
|
356
354
|
}
|
|
357
355
|
/*********************************************
|
|
358
356
|
* driveItemVersion Methods
|
|
359
357
|
**********************************************/
|
|
360
358
|
export interface driveItemVersionMethods {
|
|
361
|
-
streams():
|
|
362
|
-
streams(id: string | number):
|
|
359
|
+
streams(): IBaseQuery<streamCollection>;
|
|
360
|
+
streams(id: string | number): IBaseQuery<stream> & streamMethods;
|
|
363
361
|
}
|
|
364
362
|
/*********************************************
|
|
365
363
|
* driveItemVersion Collection
|
|
@@ -416,13 +414,13 @@ export interface columnDefinition {
|
|
|
416
414
|
readOnly: boolean;
|
|
417
415
|
required: boolean;
|
|
418
416
|
text: ComplexTypes.textColumn;
|
|
419
|
-
update(values: any):
|
|
417
|
+
update(values: any): IBaseQuery<void>;
|
|
420
418
|
}
|
|
421
419
|
/*********************************************
|
|
422
420
|
* columnDefinition Methods
|
|
423
421
|
**********************************************/
|
|
424
422
|
export interface columnDefinitionMethods {
|
|
425
|
-
update(values: any):
|
|
423
|
+
update(values: any): IBaseQuery<void>;
|
|
426
424
|
}
|
|
427
425
|
/*********************************************
|
|
428
426
|
* columnDefinition Collection
|
|
@@ -445,17 +443,17 @@ export interface contentType {
|
|
|
445
443
|
parentId: string;
|
|
446
444
|
readOnly: boolean;
|
|
447
445
|
sealed: boolean;
|
|
448
|
-
columnLinks():
|
|
449
|
-
columnLinks(id: string | number):
|
|
450
|
-
update(values: any):
|
|
446
|
+
columnLinks(): IBaseQuery<columnLinkCollection>;
|
|
447
|
+
columnLinks(id: string | number): IBaseQuery<columnLink> & columnLinkMethods;
|
|
448
|
+
update(values: any): IBaseQuery<void>;
|
|
451
449
|
}
|
|
452
450
|
/*********************************************
|
|
453
451
|
* contentType Methods
|
|
454
452
|
**********************************************/
|
|
455
453
|
export interface contentTypeMethods {
|
|
456
|
-
columnLinks():
|
|
457
|
-
columnLinks(id: string | number):
|
|
458
|
-
update(values: any):
|
|
454
|
+
columnLinks(): IBaseQuery<columnLinkCollection>;
|
|
455
|
+
columnLinks(id: string | number): IBaseQuery<columnLink> & columnLinkMethods;
|
|
456
|
+
update(values: any): IBaseQuery<void>;
|
|
459
457
|
}
|
|
460
458
|
/*********************************************
|
|
461
459
|
* contentType Collection
|
|
@@ -514,15 +512,15 @@ export interface driveApp {
|
|
|
514
512
|
application: ComplexTypes.identity;
|
|
515
513
|
fileHandler: ComplexTypes.fileHandler;
|
|
516
514
|
id: string;
|
|
517
|
-
actions():
|
|
518
|
-
actions(id: string | number):
|
|
515
|
+
actions(): IBaseQuery<driveAppActionCollection>;
|
|
516
|
+
actions(id: string | number): IBaseQuery<driveAppAction> & driveAppActionMethods;
|
|
519
517
|
}
|
|
520
518
|
/*********************************************
|
|
521
519
|
* driveApp Methods
|
|
522
520
|
**********************************************/
|
|
523
521
|
export interface driveAppMethods {
|
|
524
|
-
actions():
|
|
525
|
-
actions(id: string | number):
|
|
522
|
+
actions(): IBaseQuery<driveAppActionCollection>;
|
|
523
|
+
actions(id: string | number): IBaseQuery<driveAppAction> & driveAppActionMethods;
|
|
526
524
|
}
|
|
527
525
|
/*********************************************
|
|
528
526
|
* driveApp Collection
|
|
@@ -564,31 +562,31 @@ export interface list extends baseItem {
|
|
|
564
562
|
list: ComplexTypes.listInfo;
|
|
565
563
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
566
564
|
system: ComplexTypes.system;
|
|
567
|
-
activities():
|
|
568
|
-
activities(id: string | number):
|
|
569
|
-
columns():
|
|
570
|
-
columns(id: string | number):
|
|
571
|
-
contentTypes():
|
|
572
|
-
contentTypes(id: string | number):
|
|
573
|
-
drive():
|
|
574
|
-
items():
|
|
575
|
-
items(id: string | number):
|
|
576
|
-
update(values: any):
|
|
565
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
566
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
567
|
+
columns(): IBaseQuery<columnDefinitionCollection>;
|
|
568
|
+
columns(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
|
|
569
|
+
contentTypes(): IBaseQuery<contentTypeCollection>;
|
|
570
|
+
contentTypes(id: string | number): IBaseQuery<contentType> & contentTypeMethods;
|
|
571
|
+
drive(): IBaseQuery<drive>;
|
|
572
|
+
items(): IBaseQuery<listItemCollection>;
|
|
573
|
+
items(id: string | number): IBaseQuery<listItem> & listItemMethods;
|
|
574
|
+
update(values: any): IBaseQuery<void>;
|
|
577
575
|
}
|
|
578
576
|
/*********************************************
|
|
579
577
|
* list Methods
|
|
580
578
|
**********************************************/
|
|
581
579
|
export interface listMethods {
|
|
582
|
-
activities():
|
|
583
|
-
activities(id: string | number):
|
|
584
|
-
columns():
|
|
585
|
-
columns(id: string | number):
|
|
586
|
-
contentTypes():
|
|
587
|
-
contentTypes(id: string | number):
|
|
588
|
-
drive():
|
|
589
|
-
items():
|
|
590
|
-
items(id: string | number):
|
|
591
|
-
update(values: any):
|
|
580
|
+
activities(): IBaseQuery<activityEntityCollection>;
|
|
581
|
+
activities(id: string | number): IBaseQuery<activityEntity> & activityEntityMethods;
|
|
582
|
+
columns(): IBaseQuery<columnDefinitionCollection>;
|
|
583
|
+
columns(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
|
|
584
|
+
contentTypes(): IBaseQuery<contentTypeCollection>;
|
|
585
|
+
contentTypes(id: string | number): IBaseQuery<contentType> & contentTypeMethods;
|
|
586
|
+
drive(): IBaseQuery<drive>;
|
|
587
|
+
items(): IBaseQuery<listItemCollection>;
|
|
588
|
+
items(id: string | number): IBaseQuery<listItem> & listItemMethods;
|
|
589
|
+
update(values: any): IBaseQuery<void>;
|
|
592
590
|
}
|
|
593
591
|
/*********************************************
|
|
594
592
|
* list Collection
|
|
@@ -636,43 +634,43 @@ export interface site extends baseItem {
|
|
|
636
634
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
637
635
|
siteCollection: ComplexTypes.siteCollection;
|
|
638
636
|
title: string;
|
|
639
|
-
analytics():
|
|
640
|
-
columns():
|
|
641
|
-
columns(id: string | number):
|
|
642
|
-
contentTypes():
|
|
643
|
-
contentTypes(id: string | number):
|
|
644
|
-
drive():
|
|
645
|
-
drives():
|
|
646
|
-
drives(id: string | number):
|
|
647
|
-
items():
|
|
648
|
-
items(id: string | number):
|
|
649
|
-
lists():
|
|
650
|
-
lists(id: string | number):
|
|
651
|
-
sites():
|
|
652
|
-
sites(id: string | number):
|
|
653
|
-
permissions():
|
|
654
|
-
permissions(id: string):
|
|
637
|
+
analytics(): IBaseQuery<analytics>;
|
|
638
|
+
columns(): IBaseQuery<columnDefinitionCollection>;
|
|
639
|
+
columns(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
|
|
640
|
+
contentTypes(): IBaseQuery<contentTypeCollection>;
|
|
641
|
+
contentTypes(id: string | number): IBaseQuery<contentType> & contentTypeMethods;
|
|
642
|
+
drive(): IBaseQuery<drive>;
|
|
643
|
+
drives(): IBaseQuery<driveCollection>;
|
|
644
|
+
drives(id: string | number): IBaseQuery<drive> & driveMethods;
|
|
645
|
+
items(): IBaseQuery<baseItemCollection>;
|
|
646
|
+
items(id: string | number): IBaseQuery<baseItem> & baseItemMethods;
|
|
647
|
+
lists(): IBaseQuery<listCollection>;
|
|
648
|
+
lists(id: string | number): IBaseQuery<list> & listMethods;
|
|
649
|
+
sites(): IBaseQuery<siteCollection>;
|
|
650
|
+
sites(id: string | number): IBaseQuery<site> & siteMethods;
|
|
651
|
+
permissions(): IBaseQuery<permissionCollection>;
|
|
652
|
+
permissions(id: string): IBaseQuery<permission>;
|
|
655
653
|
}
|
|
656
654
|
/*********************************************
|
|
657
655
|
* site Methods
|
|
658
656
|
**********************************************/
|
|
659
657
|
export interface siteMethods {
|
|
660
|
-
analytics():
|
|
661
|
-
columns():
|
|
662
|
-
columns(id: string | number):
|
|
663
|
-
contentTypes():
|
|
664
|
-
contentTypes(id: string | number):
|
|
665
|
-
drive():
|
|
666
|
-
drives():
|
|
667
|
-
drives(id: string | number):
|
|
668
|
-
items():
|
|
669
|
-
items(id: string | number):
|
|
670
|
-
lists():
|
|
671
|
-
lists(id: string | number):
|
|
672
|
-
sites():
|
|
673
|
-
sites(id: string | number):
|
|
674
|
-
permissions():
|
|
675
|
-
permissions(id: string):
|
|
658
|
+
analytics(): IBaseQuery<analytics>;
|
|
659
|
+
columns(): IBaseQuery<columnDefinitionCollection>;
|
|
660
|
+
columns(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
|
|
661
|
+
contentTypes(): IBaseQuery<contentTypeCollection>;
|
|
662
|
+
contentTypes(id: string | number): IBaseQuery<contentType> & contentTypeMethods;
|
|
663
|
+
drive(): IBaseQuery<drive>;
|
|
664
|
+
drives(): IBaseQuery<driveCollection>;
|
|
665
|
+
drives(id: string | number): IBaseQuery<drive> & driveMethods;
|
|
666
|
+
items(): IBaseQuery<baseItemCollection>;
|
|
667
|
+
items(id: string | number): IBaseQuery<baseItem> & baseItemMethods;
|
|
668
|
+
lists(): IBaseQuery<listCollection>;
|
|
669
|
+
lists(id: string | number): IBaseQuery<list> & listMethods;
|
|
670
|
+
sites(): IBaseQuery<siteCollection>;
|
|
671
|
+
sites(id: string | number): IBaseQuery<site> & siteMethods;
|
|
672
|
+
permissions(): IBaseQuery<permissionCollection>;
|
|
673
|
+
permissions(id: string): IBaseQuery<permission>;
|
|
676
674
|
}
|
|
677
675
|
/*********************************************
|
|
678
676
|
* site Collection
|
|
@@ -686,7 +684,7 @@ export interface siteCollection {
|
|
|
686
684
|
**********************************************/
|
|
687
685
|
export interface sharePoint {
|
|
688
686
|
|
|
689
|
-
site():
|
|
690
|
-
sites():
|
|
691
|
-
sites(id: string | number):
|
|
687
|
+
site(): IBaseQuery<site>;
|
|
688
|
+
sites(): IBaseQuery<siteCollection>;
|
|
689
|
+
sites(id: string | number): IBaseQuery<site> & siteMethods;
|
|
692
690
|
}
|
package/main.js
CHANGED
|
@@ -667,9 +667,8 @@ ${props.join('\n')}
|
|
|
667
667
|
|
|
668
668
|
// Create the entities
|
|
669
669
|
content = [
|
|
670
|
-
"import { IBaseExecution } from \"../../base\";",
|
|
671
|
-
"import * as ComplexTypes from \"./complexTypes.d\";"
|
|
672
|
-
"import * as EnumTypes from \"./enumTypes.d\";\n",
|
|
670
|
+
"import { IBaseExecution, IBaseQuery } from \"../../base\";",
|
|
671
|
+
"import * as ComplexTypes from \"./complexTypes.d\";"
|
|
673
672
|
];
|
|
674
673
|
|
|
675
674
|
// Parse the custom methods
|
|
@@ -705,7 +704,7 @@ ${props.join('\n')}
|
|
|
705
704
|
let argName = argNames[i];
|
|
706
705
|
argStrings.push(argName.name + ": " + argName.type);
|
|
707
706
|
}
|
|
708
|
-
methods.push("\t" + method.name + "(" + argStrings.join(", ") + "):
|
|
707
|
+
methods.push("\t" + method.name + "(" + argStrings.join(", ") + "): IBaseQuery<" + getGraphType(method.returnType, true) + ">" + (method.returnType2 ? " & " + method.returnType2 : "") + ";");
|
|
709
708
|
}
|
|
710
709
|
|
|
711
710
|
// Add the endpoint
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-sprest-def",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
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",
|