@pnp/cli-microsoft365 6.0.0-beta.22bbec5 → 6.0.0-beta.27b9708
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/dist/cli/Cli.js +1 -1
- package/dist/m365/aad/commands/app/app-get.js +4 -11
- package/dist/m365/aad/commands/app/app-remove.js +4 -11
- package/dist/m365/aad/commands/app/app-role-add.js +5 -10
- package/dist/m365/aad/commands/app/app-role-list.js +4 -24
- package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
- package/dist/m365/aad/commands/app/app-set.js +4 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
- package/dist/m365/aad/commands/sp/sp-add.js +4 -8
- package/dist/m365/aad/commands/sp/sp-get.js +4 -8
- package/dist/m365/aad/commands/user/user-get.js +4 -9
- package/dist/m365/aad/commands/user/user-list.js +13 -2
- package/dist/m365/aad/commands/user/user-set.js +4 -7
- package/dist/m365/commands/commands.js +1 -0
- package/dist/m365/commands/request.js +153 -0
- package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
- package/dist/m365/onenote/commands.js +7 -0
- package/dist/m365/outlook/commands/message/message-list.js +4 -23
- package/dist/m365/outlook/commands/message/message-move.js +4 -31
- package/dist/m365/pa/commands/app/app-get.js +4 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
- package/dist/m365/planner/commands/plan/plan-add.js +4 -7
- package/dist/m365/planner/commands/plan/plan-list.js +4 -7
- package/dist/m365/planner/commands/task/task-add.js +4 -13
- package/dist/m365/planner/commands/task/task-get.js +7 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0-beta.1.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +90 -79
- package/dist/m365/spo/commands/app/app-deploy.js +4 -7
- package/dist/m365/spo/commands/app/app-get.js +4 -7
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
- package/dist/m365/spo/commands/file/file-checkin.js +4 -7
- package/dist/m365/spo/commands/file/file-checkout.js +4 -7
- package/dist/m365/spo/commands/file/file-get.js +4 -7
- package/dist/m365/spo/commands/file/file-remove.js +4 -7
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
- package/dist/m365/spo/commands/group/group-remove.js +4 -7
- package/dist/m365/spo/commands/group/group-user-add.js +4 -13
- package/dist/m365/spo/commands/group/group-user-list.js +4 -7
- package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +1 -1
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-set.js +4 -4
- package/dist/m365/spo/commands/list/list-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -0
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +57 -28
- package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
- package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
- package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
- package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
- package/dist/m365/spo/commands/list/list-view-get.js +4 -10
- package/dist/m365/spo/commands/list/list-view-list.js +4 -7
- package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
- package/dist/m365/spo/commands/list/list-view-set.js +4 -13
- package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +206 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
- package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
- package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
- package/dist/m365/spo/commands/term/term-add.js +4 -7
- package/dist/m365/spo/commands/term/term-get.js +4 -7
- package/dist/m365/spo/commands/term/term-group-get.js +4 -7
- package/dist/m365/spo/commands/term/term-list.js +4 -13
- package/dist/m365/spo/commands/term/term-set-add.js +4 -7
- package/dist/m365/spo/commands/term/term-set-get.js +4 -13
- package/dist/m365/spo/commands/term/term-set-list.js +4 -7
- package/dist/m365/spo/commands/user/user-get.js +4 -9
- package/dist/m365/spo/commands/user/user-remove.js +4 -7
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +187 -0
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +170 -0
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +4 -11
- package/dist/m365/teams/commands/app/app-update.js +4 -7
- package/dist/m365/teams/commands/channel/channel-add.js +4 -7
- package/dist/m365/teams/commands/channel/channel-get.js +4 -22
- package/dist/m365/teams/commands/channel/channel-list.js +4 -7
- package/dist/m365/teams/commands/channel/channel-member-list.js +4 -13
- package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
- package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
- package/dist/m365/teams/commands/chat/chat-get.js +4 -17
- package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
- package/dist/m365/teams/commands/tab/tab-get.js +6 -21
- package/dist/m365/teams/commands/team/team-get.js +4 -7
- package/dist/m365/teams/commands/user/user-app-list.js +4 -7
- package/dist/m365/todo/commands/list/list-remove.js +4 -21
- package/dist/m365/todo/commands/list/list-set.js +4 -21
- package/dist/m365/todo/commands/task/task-add.js +4 -21
- package/dist/m365/todo/commands/task/task-list.js +4 -21
- package/dist/m365/todo/commands/task/task-remove.js +4 -21
- package/dist/m365/todo/commands/task/task-set.js +4 -7
- package/dist/request.js +6 -2
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
- package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
- package/docs/docs/cmd/request.md +76 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +3 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
- package/package.json +2 -1
- package/scripts/Register-CLIM365Completion.ps1 +1 -1
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListSiteScriptGetCommand_instances, _SpoListSiteScriptGetCommand_initTelemetry, _SpoListSiteScriptGetCommand_initOptions, _SpoListSiteScriptGetCommand_initValidators;
|
|
16
|
+
var _SpoListSiteScriptGetCommand_instances, _SpoListSiteScriptGetCommand_initTelemetry, _SpoListSiteScriptGetCommand_initOptions, _SpoListSiteScriptGetCommand_initValidators, _SpoListSiteScriptGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_SITESCRIPT_GET;
|
|
@@ -116,14 +117,10 @@ _SpoListSiteScriptGetCommand_instances = new WeakSet(), _SpoListSiteScriptGetCom
|
|
|
116
117
|
return `${args.options.listId} is not a valid GUID`;
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
|
-
if (args.options.listId && args.options.listTitle) {
|
|
120
|
-
return 'Specify listId or listTitle, but not both';
|
|
121
|
-
}
|
|
122
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
123
|
-
return 'Specify listId or listTitle, one is required';
|
|
124
|
-
}
|
|
125
120
|
return true;
|
|
126
121
|
}));
|
|
122
|
+
}, _SpoListSiteScriptGetCommand_initOptionSets = function _SpoListSiteScriptGetCommand_initOptionSets() {
|
|
123
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
127
124
|
};
|
|
128
125
|
module.exports = new SpoListSiteScriptGetCommand();
|
|
129
126
|
//# sourceMappingURL=list-sitescript-get.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewFieldAddCommand_instances, _SpoListViewFieldAddCommand_initTelemetry, _SpoListViewFieldAddCommand_initOptions, _SpoListViewFieldAddCommand_initValidators;
|
|
16
|
+
var _SpoListViewFieldAddCommand_instances, _SpoListViewFieldAddCommand_initTelemetry, _SpoListViewFieldAddCommand_initOptions, _SpoListViewFieldAddCommand_initValidators, _SpoListViewFieldAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_VIEW_FIELD_ADD;
|
|
@@ -158,26 +159,10 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
|
|
|
158
159
|
return `${args.options.position} is not a number`;
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
|
-
if (args.options.listId && args.options.listTitle) {
|
|
162
|
-
return 'Specify listId or listTitle, but not both';
|
|
163
|
-
}
|
|
164
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
165
|
-
return 'Specify listId or listTitle, one is required';
|
|
166
|
-
}
|
|
167
|
-
if (args.options.viewId && args.options.viewTitle) {
|
|
168
|
-
return 'Specify viewId or viewTitle, but not both';
|
|
169
|
-
}
|
|
170
|
-
if (!args.options.viewId && !args.options.viewTitle) {
|
|
171
|
-
return 'Specify viewId or viewTitle, one is required';
|
|
172
|
-
}
|
|
173
|
-
if (args.options.id && args.options.title) {
|
|
174
|
-
return 'Specify id or title, but not both';
|
|
175
|
-
}
|
|
176
|
-
if (!args.options.id && !args.options.title) {
|
|
177
|
-
return 'Specify id or title, one is required';
|
|
178
|
-
}
|
|
179
162
|
return true;
|
|
180
163
|
}));
|
|
164
|
+
}, _SpoListViewFieldAddCommand_initOptionSets = function _SpoListViewFieldAddCommand_initOptionSets() {
|
|
165
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
181
166
|
};
|
|
182
167
|
module.exports = new SpoListViewFieldAddCommand();
|
|
183
168
|
//# sourceMappingURL=list-view-field-add.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewFieldRemoveCommand_instances, _SpoListViewFieldRemoveCommand_initTelemetry, _SpoListViewFieldRemoveCommand_initOptions, _SpoListViewFieldRemoveCommand_initValidators;
|
|
16
|
+
var _SpoListViewFieldRemoveCommand_instances, _SpoListViewFieldRemoveCommand_initTelemetry, _SpoListViewFieldRemoveCommand_initOptions, _SpoListViewFieldRemoveCommand_initValidators, _SpoListViewFieldRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_VIEW_FIELD_REMOVE;
|
|
@@ -145,26 +146,10 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
|
|
|
145
146
|
return `${args.options.viewId} is not a valid GUID`;
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
|
-
if (args.options.listId && args.options.listTitle) {
|
|
149
|
-
return 'Specify listId or listTitle, but not both';
|
|
150
|
-
}
|
|
151
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
152
|
-
return 'Specify listId or listTitle, one is required';
|
|
153
|
-
}
|
|
154
|
-
if (args.options.viewId && args.options.viewTitle) {
|
|
155
|
-
return 'Specify viewId or viewTitle, but not both';
|
|
156
|
-
}
|
|
157
|
-
if (!args.options.viewId && !args.options.viewTitle) {
|
|
158
|
-
return 'Specify viewId or viewTitle, one is required';
|
|
159
|
-
}
|
|
160
|
-
if (args.options.id && args.options.title) {
|
|
161
|
-
return 'Specify id or title, but not both';
|
|
162
|
-
}
|
|
163
|
-
if (!args.options.id && !args.options.title) {
|
|
164
|
-
return 'Specify id or title, one is required';
|
|
165
|
-
}
|
|
166
149
|
return true;
|
|
167
150
|
}));
|
|
151
|
+
}, _SpoListViewFieldRemoveCommand_initOptionSets = function _SpoListViewFieldRemoveCommand_initOptionSets() {
|
|
152
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
168
153
|
};
|
|
169
154
|
module.exports = new SpoListViewFieldRemoveCommand();
|
|
170
155
|
//# sourceMappingURL=list-view-field-remove.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewFieldSetCommand_instances, _SpoListViewFieldSetCommand_initTelemetry, _SpoListViewFieldSetCommand_initOptions, _SpoListViewFieldSetCommand_initValidators;
|
|
16
|
+
var _SpoListViewFieldSetCommand_instances, _SpoListViewFieldSetCommand_initTelemetry, _SpoListViewFieldSetCommand_initOptions, _SpoListViewFieldSetCommand_initValidators, _SpoListViewFieldSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_VIEW_FIELD_SET;
|
|
@@ -128,26 +129,10 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
|
|
|
128
129
|
if (isNaN(position)) {
|
|
129
130
|
return `${args.options.position} is not a number`;
|
|
130
131
|
}
|
|
131
|
-
if (args.options.listId && args.options.listTitle) {
|
|
132
|
-
return 'Specify listId or listTitle, but not both';
|
|
133
|
-
}
|
|
134
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
135
|
-
return 'Specify listId or listTitle, one is required';
|
|
136
|
-
}
|
|
137
|
-
if (args.options.viewId && args.options.viewTitle) {
|
|
138
|
-
return 'Specify viewId or viewTitle, but not both';
|
|
139
|
-
}
|
|
140
|
-
if (!args.options.viewId && !args.options.viewTitle) {
|
|
141
|
-
return 'Specify viewId or viewTitle, one is required';
|
|
142
|
-
}
|
|
143
|
-
if (args.options.id && args.options.title) {
|
|
144
|
-
return 'Specify id or title, but not both';
|
|
145
|
-
}
|
|
146
|
-
if (!args.options.id && !args.options.title) {
|
|
147
|
-
return 'Specify id or title, one is required';
|
|
148
|
-
}
|
|
149
132
|
return true;
|
|
150
133
|
}));
|
|
134
|
+
}, _SpoListViewFieldSetCommand_initOptionSets = function _SpoListViewFieldSetCommand_initOptionSets() {
|
|
135
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
151
136
|
};
|
|
152
137
|
module.exports = new SpoListViewFieldSetCommand();
|
|
153
138
|
//# sourceMappingURL=list-view-field-set.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewGetCommand_instances, _SpoListViewGetCommand_initTelemetry, _SpoListViewGetCommand_initOptions, _SpoListViewGetCommand_initValidators;
|
|
16
|
+
var _SpoListViewGetCommand_instances, _SpoListViewGetCommand_initTelemetry, _SpoListViewGetCommand_initOptions, _SpoListViewGetCommand_initValidators, _SpoListViewGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_VIEW_GET;
|
|
@@ -92,25 +93,18 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
|
|
|
92
93
|
if (isValidSharePointUrl !== true) {
|
|
93
94
|
return isValidSharePointUrl;
|
|
94
95
|
}
|
|
95
|
-
if (!args.options.listId && !args.options.listTitle && !args.options.listUrl) {
|
|
96
|
-
return `Specify listId, listTitle or listUrl`;
|
|
97
|
-
}
|
|
98
96
|
if (args.options.listId &&
|
|
99
97
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
100
98
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
101
99
|
}
|
|
102
|
-
if (!args.options.id && !args.options.title) {
|
|
103
|
-
return `Specify id or title`;
|
|
104
|
-
}
|
|
105
|
-
if (args.options.id && args.options.title) {
|
|
106
|
-
return `Specify id or title but not both`;
|
|
107
|
-
}
|
|
108
100
|
if (args.options.id &&
|
|
109
101
|
!utils_1.validation.isValidGuid(args.options.id)) {
|
|
110
102
|
return `${args.options.id} in option id is not a valid GUID`;
|
|
111
103
|
}
|
|
112
104
|
return true;
|
|
113
105
|
}));
|
|
106
|
+
}, _SpoListViewGetCommand_initOptionSets = function _SpoListViewGetCommand_initOptionSets() {
|
|
107
|
+
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['id', 'title']);
|
|
114
108
|
};
|
|
115
109
|
module.exports = new SpoListViewGetCommand();
|
|
116
110
|
//# sourceMappingURL=list-view-get.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewListCommand_instances, _SpoListViewListCommand_initTelemetry, _SpoListViewListCommand_initOptions, _SpoListViewListCommand_initValidators;
|
|
16
|
+
var _SpoListViewListCommand_instances, _SpoListViewListCommand_initTelemetry, _SpoListViewListCommand_initOptions, _SpoListViewListCommand_initValidators, _SpoListViewListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListViewListCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListViewListCommand_instances, "m", _SpoListViewListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewListCommand_instances, "m", _SpoListViewListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewListCommand_instances, "m", _SpoListViewListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListViewListCommand_instances, "m", _SpoListViewListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_VIEW_LIST;
|
|
@@ -89,14 +90,10 @@ _SpoListViewListCommand_instances = new WeakSet(), _SpoListViewListCommand_initT
|
|
|
89
90
|
return `${args.options.listId} is not a valid GUID`;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
if (args.options.listId && args.options.listTitle) {
|
|
93
|
-
return 'Specify listId or listTitle, but not both';
|
|
94
|
-
}
|
|
95
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
96
|
-
return 'Specify listId or listTitle, one is required';
|
|
97
|
-
}
|
|
98
93
|
return true;
|
|
99
94
|
}));
|
|
95
|
+
}, _SpoListViewListCommand_initOptionSets = function _SpoListViewListCommand_initOptionSets() {
|
|
96
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
100
97
|
};
|
|
101
98
|
module.exports = new SpoListViewListCommand();
|
|
102
99
|
//# sourceMappingURL=list-view-list.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewRemoveCommand_instances, _SpoListViewRemoveCommand_initTelemetry, _SpoListViewRemoveCommand_initOptions, _SpoListViewRemoveCommand_initValidators;
|
|
16
|
+
var _SpoListViewRemoveCommand_instances, _SpoListViewRemoveCommand_initTelemetry, _SpoListViewRemoveCommand_initOptions, _SpoListViewRemoveCommand_initValidators, _SpoListViewRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListViewRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewRemoveCommand_instances, "m", _SpoListViewRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewRemoveCommand_instances, "m", _SpoListViewRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListViewRemoveCommand_instances, "m", _SpoListViewRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListViewRemoveCommand_instances, "m", _SpoListViewRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_VIEW_REMOVE;
|
|
@@ -120,20 +121,10 @@ _SpoListViewRemoveCommand_instances = new WeakSet(), _SpoListViewRemoveCommand_i
|
|
|
120
121
|
return `${args.options.id} is not a valid GUID`;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
if (args.options.listId && args.options.listTitle) {
|
|
124
|
-
return 'Specify listId or listTitle, but not both';
|
|
125
|
-
}
|
|
126
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
127
|
-
return 'Specify listId or listTitle, one is required';
|
|
128
|
-
}
|
|
129
|
-
if (args.options.id && args.options.title) {
|
|
130
|
-
return 'Specify id or title, but not both';
|
|
131
|
-
}
|
|
132
|
-
if (!args.options.id && !args.options.title) {
|
|
133
|
-
return 'Specify id or title, one is required';
|
|
134
|
-
}
|
|
135
124
|
return true;
|
|
136
125
|
}));
|
|
126
|
+
}, _SpoListViewRemoveCommand_initOptionSets = function _SpoListViewRemoveCommand_initOptionSets() {
|
|
127
|
+
this.optionSets.push(['listId', 'listTitle'], ['id', 'title']);
|
|
137
128
|
};
|
|
138
129
|
module.exports = new SpoListViewRemoveCommand();
|
|
139
130
|
//# sourceMappingURL=list-view-remove.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListViewSetCommand_instances, _SpoListViewSetCommand_initTelemetry, _SpoListViewSetCommand_initOptions, _SpoListViewSetCommand_initValidators;
|
|
16
|
+
var _SpoListViewSetCommand_instances, _SpoListViewSetCommand_initTelemetry, _SpoListViewSetCommand_initOptions, _SpoListViewSetCommand_initValidators, _SpoListViewSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
allowUnknownOptions() {
|
|
31
32
|
return true;
|
|
@@ -106,28 +107,18 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
|
|
|
106
107
|
if (isValidSharePointUrl !== true) {
|
|
107
108
|
return isValidSharePointUrl;
|
|
108
109
|
}
|
|
109
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
110
|
-
return `Specify listId or listTitle`;
|
|
111
|
-
}
|
|
112
|
-
if (args.options.listId && args.options.listTitle) {
|
|
113
|
-
return `Specify listId or listTitle but not both`;
|
|
114
|
-
}
|
|
115
110
|
if (args.options.listId &&
|
|
116
111
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
117
112
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
118
113
|
}
|
|
119
|
-
if (!args.options.id && !args.options.title) {
|
|
120
|
-
return `Specify id or title`;
|
|
121
|
-
}
|
|
122
|
-
if (args.options.id && args.options.title) {
|
|
123
|
-
return `Specify id or title but not both`;
|
|
124
|
-
}
|
|
125
114
|
if (args.options.id &&
|
|
126
115
|
!utils_1.validation.isValidGuid(args.options.id)) {
|
|
127
116
|
return `${args.options.id} in option id is not a valid GUID`;
|
|
128
117
|
}
|
|
129
118
|
return true;
|
|
130
119
|
}));
|
|
120
|
+
}, _SpoListViewSetCommand_initOptionSets = function _SpoListViewSetCommand_initOptionSets() {
|
|
121
|
+
this.optionSets.push(['listId', 'listTitle'], ['id', 'title']);
|
|
131
122
|
};
|
|
132
123
|
module.exports = new SpoListViewSetCommand();
|
|
133
124
|
//# sourceMappingURL=list-view-set.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListWebhookAddCommand_instances, _SpoListWebhookAddCommand_initTelemetry, _SpoListWebhookAddCommand_initOptions, _SpoListWebhookAddCommand_initValidators;
|
|
16
|
+
var _SpoListWebhookAddCommand_instances, _SpoListWebhookAddCommand_initTelemetry, _SpoListWebhookAddCommand_initOptions, _SpoListWebhookAddCommand_initValidators, _SpoListWebhookAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -30,6 +30,7 @@ class SpoListWebhookAddCommand extends SpoCommand_1.default {
|
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initTelemetry).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initOptions).call(this);
|
|
32
32
|
__classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initValidators).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initOptionSets).call(this);
|
|
33
34
|
}
|
|
34
35
|
get name() {
|
|
35
36
|
return commands_1.default.LIST_WEBHOOK_ADD;
|
|
@@ -112,12 +113,6 @@ _SpoListWebhookAddCommand_instances = new WeakSet(), _SpoListWebhookAddCommand_i
|
|
|
112
113
|
return `${args.options.listId} is not a valid GUID`;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
if (args.options.listId && args.options.listTitle) {
|
|
116
|
-
return 'Specify listId or listTitle, but not both';
|
|
117
|
-
}
|
|
118
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
119
|
-
return 'Specify listId or listTitle, one is required';
|
|
120
|
-
}
|
|
121
116
|
const parsedDateTime = Date.parse(args.options.expirationDateTime);
|
|
122
117
|
if (args.options.expirationDateTime && !(!parsedDateTime) !== true) {
|
|
123
118
|
return `Provide the date in one of the following formats:
|
|
@@ -131,6 +126,8 @@ _SpoListWebhookAddCommand_instances = new WeakSet(), _SpoListWebhookAddCommand_i
|
|
|
131
126
|
}
|
|
132
127
|
return true;
|
|
133
128
|
}));
|
|
129
|
+
}, _SpoListWebhookAddCommand_initOptionSets = function _SpoListWebhookAddCommand_initOptionSets() {
|
|
130
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
134
131
|
};
|
|
135
132
|
module.exports = new SpoListWebhookAddCommand();
|
|
136
133
|
//# sourceMappingURL=list-webhook-add.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListWebhookGetCommand_instances, _SpoListWebhookGetCommand_initTelemetry, _SpoListWebhookGetCommand_initOptions, _SpoListWebhookGetCommand_initValidators;
|
|
16
|
+
var _SpoListWebhookGetCommand_instances, _SpoListWebhookGetCommand_initTelemetry, _SpoListWebhookGetCommand_initOptions, _SpoListWebhookGetCommand_initValidators, _SpoListWebhookGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListWebhookGetCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_WEBHOOK_GET;
|
|
@@ -98,14 +99,10 @@ _SpoListWebhookGetCommand_instances = new WeakSet(), _SpoListWebhookGetCommand_i
|
|
|
98
99
|
return `${args.options.listId} is not a valid GUID`;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
if (args.options.listId && args.options.listTitle) {
|
|
102
|
-
return 'Specify listId or listTitle, but not both';
|
|
103
|
-
}
|
|
104
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
105
|
-
return 'Specify listId or listTitle, one is required';
|
|
106
|
-
}
|
|
107
102
|
return true;
|
|
108
103
|
}));
|
|
104
|
+
}, _SpoListWebhookGetCommand_initOptionSets = function _SpoListWebhookGetCommand_initOptionSets() {
|
|
105
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
109
106
|
};
|
|
110
107
|
module.exports = new SpoListWebhookGetCommand();
|
|
111
108
|
//# sourceMappingURL=list-webhook-get.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListWebhookRemoveCommand_instances, _SpoListWebhookRemoveCommand_initTelemetry, _SpoListWebhookRemoveCommand_initOptions, _SpoListWebhookRemoveCommand_initValidators;
|
|
16
|
+
var _SpoListWebhookRemoveCommand_instances, _SpoListWebhookRemoveCommand_initTelemetry, _SpoListWebhookRemoveCommand_initOptions, _SpoListWebhookRemoveCommand_initValidators, _SpoListWebhookRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListWebhookRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_WEBHOOK_REMOVE;
|
|
@@ -119,14 +120,10 @@ _SpoListWebhookRemoveCommand_instances = new WeakSet(), _SpoListWebhookRemoveCom
|
|
|
119
120
|
return `${args.options.listId} is not a valid GUID`;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
if (args.options.listId && args.options.listTitle) {
|
|
123
|
-
return 'Specify listId or listTitle, but not both';
|
|
124
|
-
}
|
|
125
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
126
|
-
return 'Specify listId or listTitle, one is required';
|
|
127
|
-
}
|
|
128
123
|
return true;
|
|
129
124
|
}));
|
|
125
|
+
}, _SpoListWebhookRemoveCommand_initOptionSets = function _SpoListWebhookRemoveCommand_initOptionSets() {
|
|
126
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
130
127
|
};
|
|
131
128
|
module.exports = new SpoListWebhookRemoveCommand();
|
|
132
129
|
//# sourceMappingURL=list-webhook-remove.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListWebhookSetCommand_instances, _SpoListWebhookSetCommand_initTelemetry, _SpoListWebhookSetCommand_initOptions, _SpoListWebhookSetCommand_initValidators;
|
|
16
|
+
var _SpoListWebhookSetCommand_instances, _SpoListWebhookSetCommand_initTelemetry, _SpoListWebhookSetCommand_initOptions, _SpoListWebhookSetCommand_initValidators, _SpoListWebhookSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const chalk = require("chalk");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListWebhookSetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_WEBHOOK_SET;
|
|
@@ -108,12 +109,6 @@ _SpoListWebhookSetCommand_instances = new WeakSet(), _SpoListWebhookSetCommand_i
|
|
|
108
109
|
return `${args.options.listId} is not a valid GUID`;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
if (args.options.listId && args.options.listTitle) {
|
|
112
|
-
return 'Specify listId or listTitle, but not both';
|
|
113
|
-
}
|
|
114
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
115
|
-
return 'Specify listId or listTitle, one is required';
|
|
116
|
-
}
|
|
117
112
|
if (!args.options.notificationUrl && !args.options.expirationDateTime) {
|
|
118
113
|
return 'Specify notificationUrl, expirationDateTime or both, at least one is required';
|
|
119
114
|
}
|
|
@@ -127,6 +122,8 @@ _SpoListWebhookSetCommand_instances = new WeakSet(), _SpoListWebhookSetCommand_i
|
|
|
127
122
|
}
|
|
128
123
|
return true;
|
|
129
124
|
}));
|
|
125
|
+
}, _SpoListWebhookSetCommand_initOptionSets = function _SpoListWebhookSetCommand_initOptionSets() {
|
|
126
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
130
127
|
};
|
|
131
128
|
module.exports = new SpoListWebhookSetCommand();
|
|
132
129
|
//# sourceMappingURL=list-webhook-set.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemAddCommand_instances, _SpoListItemAddCommand_initTelemetry, _SpoListItemAddCommand_initOptions, _SpoListItemAddCommand_initValidators, _SpoListItemAddCommand_initTypes;
|
|
16
|
+
var _SpoListItemAddCommand_instances, _SpoListItemAddCommand_initTelemetry, _SpoListItemAddCommand_initOptions, _SpoListItemAddCommand_initValidators, _SpoListItemAddCommand_initTypes, _SpoListItemAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initTypes).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
allowUnknownOptions() {
|
|
32
33
|
return true;
|
|
@@ -211,12 +212,6 @@ _SpoListItemAddCommand_instances = new WeakSet(), _SpoListItemAddCommand_initTel
|
|
|
211
212
|
if (isValidSharePointUrl !== true) {
|
|
212
213
|
return isValidSharePointUrl;
|
|
213
214
|
}
|
|
214
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
215
|
-
return `Specify listId or listTitle`;
|
|
216
|
-
}
|
|
217
|
-
if (args.options.listId && args.options.listTitle) {
|
|
218
|
-
return `Specify listId or listTitle but not both`;
|
|
219
|
-
}
|
|
220
215
|
if (args.options.listId &&
|
|
221
216
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
222
217
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
@@ -225,6 +220,8 @@ _SpoListItemAddCommand_instances = new WeakSet(), _SpoListItemAddCommand_initTel
|
|
|
225
220
|
}));
|
|
226
221
|
}, _SpoListItemAddCommand_initTypes = function _SpoListItemAddCommand_initTypes() {
|
|
227
222
|
this.types.string.push('webUrl', 'listId', 'listTitle', 'contentType', 'folder');
|
|
223
|
+
}, _SpoListItemAddCommand_initOptionSets = function _SpoListItemAddCommand_initOptionSets() {
|
|
224
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
228
225
|
};
|
|
229
226
|
module.exports = new SpoListItemAddCommand();
|
|
230
227
|
//# sourceMappingURL=listitem-add.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators;
|
|
16
|
+
var _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators, _SpoListItemAttachmentListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListItemAttachmentListCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LISTITEM_ATTACHMENT_LIST;
|
|
@@ -88,12 +89,6 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
|
|
|
88
89
|
if (isValidSharePointUrl !== true) {
|
|
89
90
|
return isValidSharePointUrl;
|
|
90
91
|
}
|
|
91
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
92
|
-
return `Specify listId or listTitle`;
|
|
93
|
-
}
|
|
94
|
-
if (args.options.listId && args.options.listTitle) {
|
|
95
|
-
return `Specify listId or listTitle but not both`;
|
|
96
|
-
}
|
|
97
92
|
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
98
93
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
99
94
|
}
|
|
@@ -102,6 +97,8 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
|
|
|
102
97
|
}
|
|
103
98
|
return true;
|
|
104
99
|
}));
|
|
100
|
+
}, _SpoListItemAttachmentListCommand_initOptionSets = function _SpoListItemAttachmentListCommand_initOptionSets() {
|
|
101
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
105
102
|
};
|
|
106
103
|
module.exports = new SpoListItemAttachmentListCommand();
|
|
107
104
|
//# sourceMappingURL=listitem-attachment-list.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes;
|
|
16
|
+
var _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes, _SpoListItemGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoListItemGetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initTypes).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
allowUnknownOptions() {
|
|
32
33
|
return true;
|
|
@@ -89,12 +90,6 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
|
|
|
89
90
|
if (isValidSharePointUrl !== true) {
|
|
90
91
|
return isValidSharePointUrl;
|
|
91
92
|
}
|
|
92
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
93
|
-
return `Specify listId or listTitle`;
|
|
94
|
-
}
|
|
95
|
-
if (args.options.listId && args.options.listTitle) {
|
|
96
|
-
return `Specify listId or listTitle but not both`;
|
|
97
|
-
}
|
|
98
93
|
if (args.options.listId &&
|
|
99
94
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
100
95
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
@@ -106,6 +101,8 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
|
|
|
106
101
|
}));
|
|
107
102
|
}, _SpoListItemGetCommand_initTypes = function _SpoListItemGetCommand_initTypes() {
|
|
108
103
|
this.types.string.push('webUrl', 'listId', 'listTitle', 'id', 'properties');
|
|
104
|
+
}, _SpoListItemGetCommand_initOptionSets = function _SpoListItemGetCommand_initOptionSets() {
|
|
105
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
109
106
|
};
|
|
110
107
|
module.exports = new SpoListItemGetCommand();
|
|
111
108
|
//# sourceMappingURL=listitem-get.js.map
|