@pnp/cli-microsoft365 5.4.0-beta.d01ee78 → 5.4.0-beta.fb9344d
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/.devcontainer/Dockerfile +1 -1
- package/.eslintrc.js +1 -0
- package/dist/m365/aad/commands/app/app-set.js +4 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -19
- package/dist/m365/aad/commands/o365group/o365group-get.js +3 -9
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +129 -0
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/base/PlannerCommand.js +10 -0
- package/dist/m365/flow/commands/flow-export.js +3 -3
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -16
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -17
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -18
- package/dist/m365/planner/commands/plan/plan-add.js +4 -16
- package/dist/m365/planner/commands/plan/plan-details-get.js +4 -19
- package/dist/m365/planner/commands/plan/plan-get.js +4 -17
- package/dist/m365/planner/commands/plan/plan-list.js +4 -17
- package/dist/m365/planner/commands/task/task-add.js +60 -23
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +89 -0
- package/dist/m365/planner/commands/task/{task-details-get.js → task-checklistitem-list.js} +21 -13
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +85 -0
- package/dist/m365/planner/commands/task/task-get.js +40 -29
- package/dist/m365/planner/commands/task/task-list.js +4 -16
- package/dist/m365/planner/commands/task/task-reference-remove.js +125 -0
- package/dist/m365/planner/commands/task/task-remove.js +201 -0
- package/dist/m365/planner/commands/task/task-set.js +21 -17
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +33 -0
- package/dist/m365/planner/commands.js +8 -2
- package/dist/m365/planner/taskPriority.js +27 -0
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +102 -0
- package/dist/m365/spo/commands/field/field-add.js +1 -1
- package/dist/m365/spo/commands/field/field-get.js +5 -5
- package/dist/m365/spo/commands/field/field-list.js +3 -3
- package/dist/m365/spo/commands/field/field-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -1
- package/dist/m365/spo/commands/list/ListPrincipalType.js +13 -0
- package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +2 -2
- package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-get.js +8 -2
- package/dist/m365/spo/commands/list/list-label-get.js +3 -3
- package/dist/m365/spo/commands/list/list-label-set.js +2 -2
- package/dist/m365/spo/commands/list/list-list.js +10 -1
- package/dist/m365/spo/commands/list/list-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/list/list-sitescript-get.js +3 -3
- package/dist/m365/spo/commands/list/list-view-add.js +3 -3
- package/dist/m365/spo/commands/list/list-view-field-add.js +2 -2
- package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-view-field-set.js +2 -2
- package/dist/m365/spo/commands/list/list-view-get.js +4 -4
- package/dist/m365/spo/commands/list/list-view-list.js +3 -3
- package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-view-set.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-get.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-list.js +5 -5
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-set.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-add.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-get.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-list.js +31 -11
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +82 -0
- package/dist/m365/spo/commands/site/site-remove.js +23 -37
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/app/app-list.js +6 -20
- package/dist/m365/teams/commands/channel/channel-get.js +6 -19
- package/dist/m365/teams/commands/channel/channel-list.js +6 -18
- package/dist/m365/teams/commands/channel/channel-member-add.js +7 -18
- package/dist/m365/teams/commands/channel/channel-member-list.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-set.js +6 -19
- package/dist/m365/teams/commands/tab/tab-get.js +6 -19
- package/dist/m365/teams/commands/team/team-add.js +2 -7
- package/dist/m365/teams/commands/team/team-get.js +6 -19
- package/dist/utils/aadGroup.js +57 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/validation.js +12 -2
- package/docs/docs/cmd/aad/app/app-set.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-remove.md +45 -0
- package/docs/docs/cmd/file/file-list.md +4 -4
- package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -4
- package/docs/docs/cmd/planner/plan/plan-details-get.md +2 -2
- package/docs/docs/cmd/planner/plan/plan-get.md +4 -4
- package/docs/docs/cmd/planner/task/task-add.md +40 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-add.md +36 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +24 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.md +36 -0
- package/docs/docs/cmd/planner/task/task-get.md +3 -0
- package/docs/docs/cmd/planner/task/task-reference-remove.md +39 -0
- package/docs/docs/cmd/planner/task/task-remove.md +78 -0
- package/docs/docs/cmd/planner/task/task-set.md +13 -3
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +28 -0
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.md +64 -0
- package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +1 -4
- package/docs/docs/cmd/spo/list/list-list.md +3 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +16 -10
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +36 -0
- package/package.json +12 -7
- package/docs/docs/cmd/planner/task/task-details-get.md +0 -24
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const cli_1 = require("../../../../cli");
|
|
5
|
+
const request_1 = require("../../../../request");
|
|
6
|
+
const utils_1 = require("../../../../utils");
|
|
7
|
+
const planner_1 = require("../../../../utils/planner");
|
|
8
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
9
|
+
const commands_1 = require("../../commands");
|
|
10
|
+
class PlannerTaskRemoveCommand extends GraphCommand_1.default {
|
|
11
|
+
get name() {
|
|
12
|
+
return commands_1.default.TASK_REMOVE;
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Removes the Microsoft Planner task from a plan';
|
|
16
|
+
}
|
|
17
|
+
commandAction(logger, args, cb) {
|
|
18
|
+
const removeTask = () => {
|
|
19
|
+
this
|
|
20
|
+
.getTask(args.options)
|
|
21
|
+
.then(task => {
|
|
22
|
+
const requestOptions = {
|
|
23
|
+
url: `${this.resource}/v1.0/planner/tasks/${task.id}`,
|
|
24
|
+
headers: {
|
|
25
|
+
accept: 'application/json;odata.metadata=none',
|
|
26
|
+
'if-match': task['@odata.etag']
|
|
27
|
+
},
|
|
28
|
+
responseType: 'json'
|
|
29
|
+
};
|
|
30
|
+
return request_1.default.delete(requestOptions);
|
|
31
|
+
})
|
|
32
|
+
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
33
|
+
};
|
|
34
|
+
if (args.options.confirm) {
|
|
35
|
+
removeTask();
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
cli_1.Cli.prompt({
|
|
39
|
+
type: 'confirm',
|
|
40
|
+
name: 'continue',
|
|
41
|
+
default: false,
|
|
42
|
+
message: `Are you sure you want to remove the task ${args.options.id || args.options.title}?`
|
|
43
|
+
}, (result) => {
|
|
44
|
+
if (!result.continue) {
|
|
45
|
+
cb();
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
removeTask();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
getTask(options) {
|
|
54
|
+
const { id, title } = options;
|
|
55
|
+
if (id) {
|
|
56
|
+
const requestOptions = {
|
|
57
|
+
url: `${this.resource}/v1.0/planner/tasks/${id}`,
|
|
58
|
+
headers: {
|
|
59
|
+
accept: 'application/json'
|
|
60
|
+
},
|
|
61
|
+
responseType: 'json'
|
|
62
|
+
};
|
|
63
|
+
return request_1.default.get(requestOptions);
|
|
64
|
+
}
|
|
65
|
+
return this
|
|
66
|
+
.getBucketId(options)
|
|
67
|
+
.then(bucketId => {
|
|
68
|
+
// $filter is not working on the buckets/{bucketId}/tasks endpoint, hence it is not being used.
|
|
69
|
+
return utils_1.odata.getAllItems(`${this.resource}/v1.0/planner/buckets/${bucketId}/tasks?$select=title,id`, 'minimal');
|
|
70
|
+
})
|
|
71
|
+
.then(tasks => {
|
|
72
|
+
const filteredtasks = tasks.filter(b => title.toLocaleLowerCase() === b.title.toLocaleLowerCase());
|
|
73
|
+
if (filteredtasks.length === 0) {
|
|
74
|
+
return Promise.reject(`The specified task ${title} does not exist`);
|
|
75
|
+
}
|
|
76
|
+
if (filteredtasks.length > 1) {
|
|
77
|
+
return Promise.reject(`Multiple tasks with title ${title} found: Please disambiguate: ${os.EOL}${filteredtasks.map(f => `- ${f.id}`).join(os.EOL)}`);
|
|
78
|
+
}
|
|
79
|
+
return Promise.resolve(filteredtasks[0]);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
getBucketId(options) {
|
|
83
|
+
const { bucketId, bucketName } = options;
|
|
84
|
+
if (bucketId) {
|
|
85
|
+
return Promise.resolve(bucketId);
|
|
86
|
+
}
|
|
87
|
+
return this
|
|
88
|
+
.getPlanId(options)
|
|
89
|
+
.then(planId => {
|
|
90
|
+
const requestOptions = {
|
|
91
|
+
url: `${this.resource}/v1.0/planner/plans/${planId}/buckets?$select=id,name`,
|
|
92
|
+
headers: {
|
|
93
|
+
accept: 'application/json;odata.metadata=none'
|
|
94
|
+
},
|
|
95
|
+
responseType: 'json'
|
|
96
|
+
};
|
|
97
|
+
return request_1.default.get(requestOptions);
|
|
98
|
+
})
|
|
99
|
+
.then((buckets) => {
|
|
100
|
+
const filteredBuckets = buckets.value.filter(b => bucketName.toLocaleLowerCase() === b.name.toLocaleLowerCase());
|
|
101
|
+
if (filteredBuckets.length === 0) {
|
|
102
|
+
return Promise.reject(`The specified bucket ${bucketName} does not exist`);
|
|
103
|
+
}
|
|
104
|
+
if (filteredBuckets.length > 1) {
|
|
105
|
+
return Promise.reject(`Multiple buckets with name ${bucketName} found: Please disambiguate:${os.EOL}${filteredBuckets.map(f => `- ${f.id}`).join(os.EOL)}`);
|
|
106
|
+
}
|
|
107
|
+
return Promise.resolve(filteredBuckets[0].id);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
getPlanId(options) {
|
|
111
|
+
const { planId, planTitle } = options;
|
|
112
|
+
if (planId) {
|
|
113
|
+
return Promise.resolve(planId);
|
|
114
|
+
}
|
|
115
|
+
return this
|
|
116
|
+
.getGroupId(options)
|
|
117
|
+
.then(groupId => planner_1.planner.getPlanByName(planTitle, groupId))
|
|
118
|
+
.then(plan => plan.id);
|
|
119
|
+
}
|
|
120
|
+
getGroupId(options) {
|
|
121
|
+
const { ownerGroupId, ownerGroupName } = options;
|
|
122
|
+
if (ownerGroupId) {
|
|
123
|
+
return Promise.resolve(ownerGroupId);
|
|
124
|
+
}
|
|
125
|
+
const requestOptions = {
|
|
126
|
+
url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(ownerGroupName)}'`,
|
|
127
|
+
headers: {
|
|
128
|
+
accept: 'application/json;odata.metadata=none'
|
|
129
|
+
},
|
|
130
|
+
responseType: 'json'
|
|
131
|
+
};
|
|
132
|
+
return request_1.default
|
|
133
|
+
.get(requestOptions)
|
|
134
|
+
.then(response => {
|
|
135
|
+
if (response.value.length === 0) {
|
|
136
|
+
return Promise.reject(`The specified owner group ${ownerGroupName} does not exist`);
|
|
137
|
+
}
|
|
138
|
+
if (response.value.length > 1) {
|
|
139
|
+
return Promise.reject(`Multiple owner groups with name ${ownerGroupName} found: ${response.value.map(x => x.id)}`);
|
|
140
|
+
}
|
|
141
|
+
return Promise.resolve(response.value[0].id);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
options() {
|
|
145
|
+
const options = [
|
|
146
|
+
{ option: '-i, --id [id]' },
|
|
147
|
+
{ option: '-t, --title [title]' },
|
|
148
|
+
{ option: '--bucketId [bucketId]' },
|
|
149
|
+
{ option: '--bucketName [bucketName]' },
|
|
150
|
+
{ option: '--planId [planId]' },
|
|
151
|
+
{ option: '--planTitle [planTitle]' },
|
|
152
|
+
{ option: '--ownerGroupId [ownerGroupId]' },
|
|
153
|
+
{ option: '--ownerGroupName [ownerGroupName]' },
|
|
154
|
+
{ option: '--confirm' }
|
|
155
|
+
];
|
|
156
|
+
const parentOptions = super.options();
|
|
157
|
+
return options.concat(parentOptions);
|
|
158
|
+
}
|
|
159
|
+
optionSets() {
|
|
160
|
+
return [
|
|
161
|
+
['id', 'title']
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
validate(args) {
|
|
165
|
+
if (args.options.id) {
|
|
166
|
+
if (args.options.bucketId || args.options.bucketName || args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
167
|
+
return 'Don\'t specify bucketId,bucketName, planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (args.options.title) {
|
|
171
|
+
if (!args.options.bucketId && !args.options.bucketName) {
|
|
172
|
+
return 'Specify either bucketId or bucketName when using title';
|
|
173
|
+
}
|
|
174
|
+
if (args.options.bucketId && args.options.bucketName) {
|
|
175
|
+
return 'Specify either bucketId or bucketName when using title but not both';
|
|
176
|
+
}
|
|
177
|
+
if (args.options.bucketName) {
|
|
178
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
179
|
+
return 'Specify either planId or planTitle when using bucketName';
|
|
180
|
+
}
|
|
181
|
+
if (args.options.planId && args.options.planTitle) {
|
|
182
|
+
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (args.options.planTitle) {
|
|
186
|
+
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
187
|
+
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
188
|
+
}
|
|
189
|
+
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
190
|
+
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
194
|
+
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
module.exports = new PlannerTaskRemoveCommand();
|
|
201
|
+
//# sourceMappingURL=task-remove.js.map
|
|
@@ -6,6 +6,8 @@ const request_1 = require("../../../../request");
|
|
|
6
6
|
const planner_1 = require("../../../../utils/planner");
|
|
7
7
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
8
8
|
const commands_1 = require("../../commands");
|
|
9
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
10
|
+
const taskPriority_1 = require("../../taskPriority");
|
|
9
11
|
class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
@@ -35,6 +37,7 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
35
37
|
telemetryProps.description = typeof args.options.description !== 'undefined';
|
|
36
38
|
telemetryProps.appliedCategories = typeof args.options.appliedCategories !== 'undefined';
|
|
37
39
|
telemetryProps.orderHint = typeof args.options.orderHint !== 'undefined';
|
|
40
|
+
telemetryProps.priority = typeof args.options.priority !== 'undefined';
|
|
38
41
|
return telemetryProps;
|
|
39
42
|
}
|
|
40
43
|
commandAction(logger, args, cb) {
|
|
@@ -230,22 +233,9 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
230
233
|
if (options.ownerGroupId) {
|
|
231
234
|
return Promise.resolve(options.ownerGroupId);
|
|
232
235
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
accept: 'application/json;odata.metadata=none'
|
|
237
|
-
},
|
|
238
|
-
responseType: 'json'
|
|
239
|
-
};
|
|
240
|
-
return request_1.default
|
|
241
|
-
.get(requestOptions)
|
|
242
|
-
.then(response => {
|
|
243
|
-
const group = response.value[0];
|
|
244
|
-
if (!group) {
|
|
245
|
-
return Promise.reject(`The specified owner group does not exist`);
|
|
246
|
-
}
|
|
247
|
-
return Promise.resolve(group.id);
|
|
248
|
-
});
|
|
236
|
+
return aadGroup_1.aadGroup
|
|
237
|
+
.getGroupByDisplayName(options.ownerGroupName)
|
|
238
|
+
.then(group => group.id);
|
|
249
239
|
}
|
|
250
240
|
mapRequestBody(options, appliedCategories) {
|
|
251
241
|
const requestBody = {};
|
|
@@ -276,6 +266,9 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
276
266
|
if (options.orderHint) {
|
|
277
267
|
requestBody.orderHint = options.orderHint;
|
|
278
268
|
}
|
|
269
|
+
if (options.priority !== undefined) {
|
|
270
|
+
requestBody.priority = taskPriority_1.taskPriority.getPriorityValue(options.priority);
|
|
271
|
+
}
|
|
279
272
|
return requestBody;
|
|
280
273
|
}
|
|
281
274
|
options() {
|
|
@@ -296,7 +289,8 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
296
289
|
{ option: '--assigneePriority [assigneePriority]' },
|
|
297
290
|
{ option: '--description [description]' },
|
|
298
291
|
{ option: '--appliedCategories [appliedCategories]' },
|
|
299
|
-
{ option: '--orderHint [orderHint]' }
|
|
292
|
+
{ option: '--orderHint [orderHint]' },
|
|
293
|
+
{ option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues }
|
|
300
294
|
];
|
|
301
295
|
const parentOptions = super.options();
|
|
302
296
|
return options.concat(parentOptions);
|
|
@@ -341,6 +335,16 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
341
335
|
if (args.options.appliedCategories && args.options.appliedCategories.split(',').filter(category => this.allowedAppliedCategories.indexOf(category.toLocaleLowerCase()) < 0).length !== 0) {
|
|
342
336
|
return 'The appliedCategories contains invalid value. Specify either category1, category2, category3, category4, category5 and/or category6 as properties';
|
|
343
337
|
}
|
|
338
|
+
if (args.options.priority !== undefined) {
|
|
339
|
+
if (typeof args.options.priority === "number") {
|
|
340
|
+
if (isNaN(args.options.priority) || args.options.priority < 0 || args.options.priority > 10 || !Number.isInteger(args.options.priority)) {
|
|
341
|
+
return 'priority should be an integer between 0 and 10.';
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
else if (taskPriority_1.taskPriority.priorityValues.map(l => l.toLowerCase()).indexOf(args.options.priority.toString().toLowerCase()) === -1) {
|
|
345
|
+
return `${args.options.priority} is not a valid priority value. Allowed values are ${taskPriority_1.taskPriority.priorityValues.join('|')}.`;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
344
348
|
return true;
|
|
345
349
|
}
|
|
346
350
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const PlannerCommand_1 = require("../../../base/PlannerCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class PlannerTenantSettingsListCommand extends PlannerCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.TENANT_SETTINGS_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Lists the Microsoft Planner configuration of the tenant';
|
|
12
|
+
}
|
|
13
|
+
defaultProperties() {
|
|
14
|
+
return ['isPlannerAllowed', 'allowCalendarSharing', 'allowTenantMoveWithDataLoss', 'allowTenantMoveWithDataMigration', 'allowRosterCreation', 'allowPlannerMobilePushNotifications'];
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
const requestOptions = {
|
|
18
|
+
url: `${this.resource}/taskAPI/tenantAdminSettings/Settings`,
|
|
19
|
+
headers: {
|
|
20
|
+
accept: 'application/json;odata.metadata=none'
|
|
21
|
+
},
|
|
22
|
+
responseType: 'json'
|
|
23
|
+
};
|
|
24
|
+
request_1.default
|
|
25
|
+
.get(requestOptions)
|
|
26
|
+
.then((result) => {
|
|
27
|
+
logger.log(result);
|
|
28
|
+
cb();
|
|
29
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
module.exports = new PlannerTenantSettingsListCommand();
|
|
33
|
+
//# sourceMappingURL=tenant-settings-list.js.map
|
|
@@ -3,20 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const prefix = 'planner';
|
|
4
4
|
exports.default = {
|
|
5
5
|
BUCKET_ADD: `${prefix} bucket add`,
|
|
6
|
+
BUCKET_GET: `${prefix} bucket get`,
|
|
6
7
|
BUCKET_LIST: `${prefix} bucket list`,
|
|
7
8
|
BUCKET_SET: `${prefix} bucket set`,
|
|
8
9
|
BUCKET_REMOVE: `${prefix} bucket remove`,
|
|
9
|
-
BUCKET_GET: `${prefix} bucket get`,
|
|
10
10
|
PLAN_ADD: `${prefix} plan add`,
|
|
11
11
|
PLAN_DETAILS_GET: `${prefix} plan details get`,
|
|
12
12
|
PLAN_GET: `${prefix} plan get`,
|
|
13
13
|
PLAN_LIST: `${prefix} plan list`,
|
|
14
14
|
TASK_ADD: `${prefix} task add`,
|
|
15
|
+
TASK_CHECKLISTITEM_ADD: `${prefix} task checklistitem add`,
|
|
16
|
+
TASK_CHECKLISTITEM_LIST: `${prefix} task checklistitem list`,
|
|
17
|
+
TASK_CHECKLISTITEM_REMOVE: `${prefix} task checklistitem remove`,
|
|
15
18
|
TASK_DETAILS_GET: `${prefix} task details get`,
|
|
16
19
|
TASK_GET: `${prefix} task get`,
|
|
17
20
|
TASK_LIST: `${prefix} task list`,
|
|
18
21
|
TASK_REFERENCE_ADD: `${prefix} task reference add`,
|
|
19
22
|
TASK_REFERENCE_LIST: `${prefix} task reference list`,
|
|
20
|
-
|
|
23
|
+
TASK_REFERENCE_REMOVE: `${prefix} task reference remove`,
|
|
24
|
+
TASK_REMOVE: `${prefix} task remove`,
|
|
25
|
+
TASK_SET: `${prefix} task set`,
|
|
26
|
+
TENANT_SETTINGS_LIST: `${prefix} tenant settings list`
|
|
21
27
|
};
|
|
22
28
|
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskPriority = void 0;
|
|
4
|
+
exports.taskPriority = {
|
|
5
|
+
/** Priority labels used in Planner. */
|
|
6
|
+
priorityValues: ["Urgent", "Important", "Medium", "Low"],
|
|
7
|
+
/**
|
|
8
|
+
* Transform priority label to the corresponding number value.
|
|
9
|
+
* @param priority Priority label or number.
|
|
10
|
+
*/
|
|
11
|
+
getPriorityValue(priority) {
|
|
12
|
+
if (typeof priority === "string") {
|
|
13
|
+
switch (priority.toLowerCase()) {
|
|
14
|
+
case "urgent":
|
|
15
|
+
return 1;
|
|
16
|
+
case "important":
|
|
17
|
+
return 3;
|
|
18
|
+
case "medium":
|
|
19
|
+
return 5;
|
|
20
|
+
case "low":
|
|
21
|
+
return 9;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return priority;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=taskPriority.js.map
|
|
@@ -116,7 +116,7 @@ class SpoContentTypeAddCommand extends SpoCommand_1.default {
|
|
|
116
116
|
logger.logToStderr(`Retrieving list id...`);
|
|
117
117
|
}
|
|
118
118
|
const requestOptions = {
|
|
119
|
-
url: `${webUrl}/_api/web/lists/getByTitle('${
|
|
119
|
+
url: `${webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitle)}')?$select=Id`,
|
|
120
120
|
headers: {
|
|
121
121
|
accept: 'application/json;odata=nometadata'
|
|
122
122
|
},
|
|
@@ -70,7 +70,7 @@ class SpoContentTypeFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
70
70
|
}
|
|
71
71
|
// Request for the ListId
|
|
72
72
|
const requestOptions = {
|
|
73
|
-
url: `${args.options.webUrl}/_api/lists/GetByTitle('${
|
|
73
|
+
url: `${args.options.webUrl}/_api/lists/GetByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')?$select=Id`,
|
|
74
74
|
headers: {
|
|
75
75
|
accept: 'application/json;odata=nometadata'
|
|
76
76
|
},
|
|
@@ -18,7 +18,7 @@ class SpoContentTypeGetCommand extends SpoCommand_1.default {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
commandAction(logger, args, cb) {
|
|
21
|
-
let requestUrl = `${args.options.webUrl}/_api/web/${(args.options.listTitle ? `lists/getByTitle('${
|
|
21
|
+
let requestUrl = `${args.options.webUrl}/_api/web/${(args.options.listTitle ? `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/` : '')}contenttypes`;
|
|
22
22
|
if (args.options.id) {
|
|
23
23
|
requestUrl += `('${encodeURIComponent(args.options.id)}')`;
|
|
24
24
|
}
|
|
@@ -26,14 +26,14 @@ class SpoEventreceiverGetCommand extends SpoCommand_1.default {
|
|
|
26
26
|
let listUrl = '';
|
|
27
27
|
let filter = '?$filter=';
|
|
28
28
|
if (args.options.listId) {
|
|
29
|
-
listUrl = `lists(guid'${
|
|
29
|
+
listUrl = `lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
|
|
30
30
|
}
|
|
31
31
|
else if (args.options.listTitle) {
|
|
32
|
-
listUrl = `lists/getByTitle('${
|
|
32
|
+
listUrl = `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
|
|
33
33
|
}
|
|
34
34
|
else if (args.options.listUrl) {
|
|
35
35
|
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
36
|
-
listUrl = `GetList('${
|
|
36
|
+
listUrl = `GetList('${utils_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/`;
|
|
37
37
|
}
|
|
38
38
|
if (!args.options.scope || args.options.scope === 'web') {
|
|
39
39
|
requestUrl += `web/${listUrl}eventreceivers`;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class SpoEventreceiverListCommand extends SpoCommand_1.default {
|
|
8
|
+
get name() {
|
|
9
|
+
return commands_1.default.EVENTRECEIVER_LIST;
|
|
10
|
+
}
|
|
11
|
+
get description() {
|
|
12
|
+
return 'Retrieves event receivers for the specified web, site or list.';
|
|
13
|
+
}
|
|
14
|
+
defaultProperties() {
|
|
15
|
+
return ['ReceiverId', 'ReceiverName'];
|
|
16
|
+
}
|
|
17
|
+
getTelemetryProperties(args) {
|
|
18
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
19
|
+
telemetryProps.listId = typeof args.options.listId !== 'undefined';
|
|
20
|
+
telemetryProps.listTitle = typeof args.options.listTitle !== 'undefined';
|
|
21
|
+
telemetryProps.listUrl = typeof args.options.listUrl !== 'undefined';
|
|
22
|
+
telemetryProps.scope = typeof args.options.scope !== 'undefined';
|
|
23
|
+
return telemetryProps;
|
|
24
|
+
}
|
|
25
|
+
commandAction(logger, args, cb) {
|
|
26
|
+
let requestUrl = `${args.options.webUrl}/_api/`;
|
|
27
|
+
let listUrl = '';
|
|
28
|
+
if (args.options.listId) {
|
|
29
|
+
listUrl = `lists(guid'${encodeURIComponent(args.options.listId)}')/`;
|
|
30
|
+
}
|
|
31
|
+
else if (args.options.listTitle) {
|
|
32
|
+
listUrl = `lists/getByTitle('${encodeURIComponent(args.options.listTitle)}')/`;
|
|
33
|
+
}
|
|
34
|
+
else if (args.options.listUrl) {
|
|
35
|
+
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
36
|
+
listUrl = `GetList('${encodeURIComponent(listServerRelativeUrl)}')/`;
|
|
37
|
+
}
|
|
38
|
+
if (!args.options.scope || args.options.scope === 'web') {
|
|
39
|
+
requestUrl += `web/${listUrl}eventreceivers`;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
requestUrl += 'site/eventreceivers';
|
|
43
|
+
}
|
|
44
|
+
const requestOptions = {
|
|
45
|
+
url: requestUrl,
|
|
46
|
+
headers: {
|
|
47
|
+
'accept': 'application/json;odata=nometadata'
|
|
48
|
+
},
|
|
49
|
+
responseType: 'json'
|
|
50
|
+
};
|
|
51
|
+
request_1.default
|
|
52
|
+
.get(requestOptions)
|
|
53
|
+
.then((res) => {
|
|
54
|
+
logger.log(res.value);
|
|
55
|
+
cb();
|
|
56
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
57
|
+
}
|
|
58
|
+
options() {
|
|
59
|
+
const options = [
|
|
60
|
+
{
|
|
61
|
+
option: '-u, --webUrl <webUrl>'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
option: '--listTitle [listTitle]'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
option: '--listId [listId]'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
option: '--listUrl [listUrl]'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
option: '-s, --scope [scope]',
|
|
74
|
+
autocomplete: ['web', 'site']
|
|
75
|
+
}
|
|
76
|
+
];
|
|
77
|
+
const parentOptions = super.options();
|
|
78
|
+
return options.concat(parentOptions);
|
|
79
|
+
}
|
|
80
|
+
validate(args) {
|
|
81
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
82
|
+
if (isValidSharePointUrl !== true) {
|
|
83
|
+
return isValidSharePointUrl;
|
|
84
|
+
}
|
|
85
|
+
const listOptions = [args.options.listId, args.options.listTitle, args.options.listUrl];
|
|
86
|
+
if (listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1) {
|
|
87
|
+
return `Specify either list id or title or list url`;
|
|
88
|
+
}
|
|
89
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
90
|
+
return `${args.options.listId} is not a valid GUID`;
|
|
91
|
+
}
|
|
92
|
+
if (args.options.scope && ['web', 'site'].indexOf(args.options.scope) === -1) {
|
|
93
|
+
return `${args.options.scope} is not a valid type value. Allowed values web|site.`;
|
|
94
|
+
}
|
|
95
|
+
if (args.options.scope && args.options.scope === 'site' && (args.options.listId || args.options.listUrl || args.options.listTitle)) {
|
|
96
|
+
return 'Scope cannot be set to site when retrieving list event receivers.';
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
module.exports = new SpoEventreceiverListCommand();
|
|
102
|
+
//# sourceMappingURL=eventreceiver-list.js.map
|
|
@@ -16,7 +16,7 @@ class SpoFieldAddCommand extends SpoCommand_1.default {
|
|
|
16
16
|
.getRequestDigest(args.options.webUrl)
|
|
17
17
|
.then((res) => {
|
|
18
18
|
const requestOptions = {
|
|
19
|
-
url: `${args.options.webUrl}/_api/web/${(args.options.listTitle ? `lists/getByTitle('${
|
|
19
|
+
url: `${args.options.webUrl}/_api/web/${(args.options.listTitle ? `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/` : '')}fields/CreateFieldAsXml`,
|
|
20
20
|
headers: {
|
|
21
21
|
'X-RequestDigest': res.FormDigestValue,
|
|
22
22
|
accept: 'application/json;odata=nometadata'
|
|
@@ -23,21 +23,21 @@ class SpoFieldGetCommand extends SpoCommand_1.default {
|
|
|
23
23
|
commandAction(logger, args, cb) {
|
|
24
24
|
let listRestUrl = '';
|
|
25
25
|
if (args.options.listId) {
|
|
26
|
-
listRestUrl = `lists(guid'${
|
|
26
|
+
listRestUrl = `lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
|
|
27
27
|
}
|
|
28
28
|
else if (args.options.listTitle) {
|
|
29
|
-
listRestUrl = `lists/getByTitle('${
|
|
29
|
+
listRestUrl = `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
|
|
30
30
|
}
|
|
31
31
|
else if (args.options.listUrl) {
|
|
32
32
|
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
33
|
-
listRestUrl = `GetList('${
|
|
33
|
+
listRestUrl = `GetList('${utils_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/`;
|
|
34
34
|
}
|
|
35
35
|
let fieldRestUrl = '';
|
|
36
36
|
if (args.options.id) {
|
|
37
|
-
fieldRestUrl = `/getbyid('${
|
|
37
|
+
fieldRestUrl = `/getbyid('${utils_1.formatting.encodeQueryParameter(args.options.id)}')`;
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
fieldRestUrl = `/getbyinternalnameortitle('${
|
|
40
|
+
fieldRestUrl = `/getbyinternalnameortitle('${utils_1.formatting.encodeQueryParameter(args.options.fieldTitle)}')`;
|
|
41
41
|
}
|
|
42
42
|
const requestOptions = {
|
|
43
43
|
url: `${args.options.webUrl}/_api/web/${listRestUrl}fields${fieldRestUrl}`,
|
|
@@ -24,14 +24,14 @@ class SpoFieldListCommand extends SpoCommand_1.default {
|
|
|
24
24
|
commandAction(logger, args, cb) {
|
|
25
25
|
let listUrl = '';
|
|
26
26
|
if (args.options.listId) {
|
|
27
|
-
listUrl = `lists(guid'${
|
|
27
|
+
listUrl = `lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
|
|
28
28
|
}
|
|
29
29
|
else if (args.options.listTitle) {
|
|
30
|
-
listUrl = `lists/getByTitle('${
|
|
30
|
+
listUrl = `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
|
|
31
31
|
}
|
|
32
32
|
else if (args.options.listUrl) {
|
|
33
33
|
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
34
|
-
listUrl = `GetList('${
|
|
34
|
+
listUrl = `GetList('${utils_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/`;
|
|
35
35
|
}
|
|
36
36
|
const requestOptions = {
|
|
37
37
|
url: `${args.options.webUrl}/_api/web/${listUrl}fields`,
|
|
@@ -37,10 +37,10 @@ class SpoFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
let fieldRestUrl = '';
|
|
39
39
|
if (fieldId) {
|
|
40
|
-
fieldRestUrl = `/getbyid('${
|
|
40
|
+
fieldRestUrl = `/getbyid('${utils_1.formatting.encodeQueryParameter(fieldId)}')`;
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
fieldRestUrl = `/getbyinternalnameortitle('${
|
|
43
|
+
fieldRestUrl = `/getbyinternalnameortitle('${utils_1.formatting.encodeQueryParameter(fieldTitle)}')`;
|
|
44
44
|
}
|
|
45
45
|
const requestOptions = {
|
|
46
46
|
url: `${args.options.webUrl}/_api/web/${listRestUrl}fields${fieldRestUrl}`,
|
|
@@ -57,14 +57,14 @@ class SpoFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
57
57
|
const prepareRemoval = () => {
|
|
58
58
|
let listRestUrl = '';
|
|
59
59
|
if (args.options.listId) {
|
|
60
|
-
listRestUrl = `lists(guid'${
|
|
60
|
+
listRestUrl = `lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
|
|
61
61
|
}
|
|
62
62
|
else if (args.options.listTitle) {
|
|
63
|
-
listRestUrl = `lists/getByTitle('${
|
|
63
|
+
listRestUrl = `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
|
|
64
64
|
}
|
|
65
65
|
else if (args.options.listUrl) {
|
|
66
66
|
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
67
|
-
listRestUrl = `GetList('${
|
|
67
|
+
listRestUrl = `GetList('${utils_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/`;
|
|
68
68
|
}
|
|
69
69
|
if (args.options.group) {
|
|
70
70
|
if (this.verbose) {
|
|
@@ -32,7 +32,7 @@ class SpoFileSharinginfoGetCommand extends SpoCommand_1.default {
|
|
|
32
32
|
logger.logToStderr(`Retrieving sharing information report for the file with item Id ${fileInformation.fileItemId}`);
|
|
33
33
|
}
|
|
34
34
|
const requestOptions = {
|
|
35
|
-
url: `${args.options.webUrl}/_api/web/lists/getbytitle('${fileInformation.libraryName}')/items(${fileInformation.fileItemId})/GetSharingInformation?$select=permissionsInformation&$Expand=permissionsInformation`,
|
|
35
|
+
url: `${args.options.webUrl}/_api/web/lists/getbytitle('${utils_1.formatting.encodeQueryParameter(fileInformation.libraryName)}')/items(${fileInformation.fileItemId})/GetSharingInformation?$select=permissionsInformation&$Expand=permissionsInformation`,
|
|
36
36
|
headers: {
|
|
37
37
|
'accept': 'application/json;odata=nometadata'
|
|
38
38
|
},
|
|
@@ -42,7 +42,7 @@ class SpoHubSiteListCommand extends SpoCommand_1.default {
|
|
|
42
42
|
})
|
|
43
43
|
.then((res) => {
|
|
44
44
|
hubSites = res.value;
|
|
45
|
-
if (args.options.includeAssociatedSites !== true || args.options.output !== 'json') {
|
|
45
|
+
if (args.options.includeAssociatedSites !== true || args.options.output && args.options.output !== 'json') {
|
|
46
46
|
return Promise.resolve();
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPrincipalType = void 0;
|
|
4
|
+
var ListPrincipalType;
|
|
5
|
+
(function (ListPrincipalType) {
|
|
6
|
+
ListPrincipalType[ListPrincipalType["None"] = 0] = "None";
|
|
7
|
+
ListPrincipalType[ListPrincipalType["User"] = 1] = "User";
|
|
8
|
+
ListPrincipalType[ListPrincipalType["DistributionList"] = 2] = "DistributionList";
|
|
9
|
+
ListPrincipalType[ListPrincipalType["SecurityGroup"] = 4] = "SecurityGroup";
|
|
10
|
+
ListPrincipalType[ListPrincipalType["SharePointGroup"] = 8] = "SharePointGroup";
|
|
11
|
+
ListPrincipalType[ListPrincipalType["All"] = 15] = "All";
|
|
12
|
+
})(ListPrincipalType = exports.ListPrincipalType || (exports.ListPrincipalType = {}));
|
|
13
|
+
//# sourceMappingURL=ListPrincipalType.js.map
|