@pnp/cli-microsoft365 5.7.0-beta.d90ad27 → 5.8.0-beta.5250f08
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/booking/commands/business/business-get.js +86 -0
- package/dist/m365/booking/commands/business/business-list.js +30 -0
- package/dist/m365/booking/commands.js +8 -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/pp/commands/managementapp/managementapp-add.js +4 -11
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
- package/dist/m365/search/commands.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/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/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-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-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/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 +4 -19
- 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/docs/docs/cmd/aad/app/app-add.md +1 -1
- package/docs/docs/cmd/aad/app/app-set.md +1 -1
- package/docs/docs/cmd/booking/business/business-get.md +33 -0
- package/docs/docs/cmd/booking/business/business-list.md +21 -0
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +1 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +1 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +1 -1
- package/docs/docs/cmd/cli/completion/completion-sh-setup.md +1 -1
- package/docs/docs/cmd/cli/completion/completion-sh-update.md +1 -1
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
- package/npm-shrinkwrap.json +202 -163
- package/package.json +10 -10
- 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 _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators;
|
|
16
|
+
var _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators, _SpoListItemIsRecordCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Auth_1 = require("../../../../Auth");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoListItemIsRecordCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.LISTITEM_ISRECORD;
|
|
@@ -148,18 +149,14 @@ _SpoListItemIsRecordCommand_instances = new WeakSet(), _SpoListItemIsRecordComma
|
|
|
148
149
|
if (isValidSharePointUrl !== true) {
|
|
149
150
|
return isValidSharePointUrl;
|
|
150
151
|
}
|
|
151
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
152
|
-
return `Specify listId or listTitle`;
|
|
153
|
-
}
|
|
154
|
-
if (args.options.listId && args.options.listTitle) {
|
|
155
|
-
return `Specify listId or listTitle but not both`;
|
|
156
|
-
}
|
|
157
152
|
if (args.options.listId &&
|
|
158
153
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
159
154
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
160
155
|
}
|
|
161
156
|
return true;
|
|
162
157
|
}));
|
|
158
|
+
}, _SpoListItemIsRecordCommand_initOptionSets = function _SpoListItemIsRecordCommand_initOptionSets() {
|
|
159
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
163
160
|
};
|
|
164
161
|
module.exports = new SpoListItemIsRecordCommand();
|
|
165
162
|
//# sourceMappingURL=listitem-isrecord.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 _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators;
|
|
16
|
+
var _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators, _SpoListItemRecordDeclareCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.LISTITEM_RECORD_DECLARE;
|
|
@@ -125,12 +126,6 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
125
126
|
if (isValidSharePointUrl !== true) {
|
|
126
127
|
return isValidSharePointUrl;
|
|
127
128
|
}
|
|
128
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
129
|
-
return `Specify listId or listTitle`;
|
|
130
|
-
}
|
|
131
|
-
if (args.options.listId && args.options.listTitle) {
|
|
132
|
-
return `Specify listId or listTitle but not both`;
|
|
133
|
-
}
|
|
134
129
|
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
135
130
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
136
131
|
}
|
|
@@ -146,6 +141,8 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
146
141
|
}
|
|
147
142
|
return true;
|
|
148
143
|
}));
|
|
144
|
+
}, _SpoListItemRecordDeclareCommand_initOptionSets = function _SpoListItemRecordDeclareCommand_initOptionSets() {
|
|
145
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
149
146
|
};
|
|
150
147
|
module.exports = new SpoListItemRecordDeclareCommand();
|
|
151
148
|
//# sourceMappingURL=listitem-record-declare.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 _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators;
|
|
16
|
+
var _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators, _SpoListItemRecordUndeclareCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const config_1 = require("../../../../config");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LISTITEM_RECORD_UNDECLARE;
|
|
@@ -116,18 +117,14 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
|
|
|
116
117
|
if (isValidSharePointUrl !== true) {
|
|
117
118
|
return isValidSharePointUrl;
|
|
118
119
|
}
|
|
119
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
120
|
-
return `Specify listId or listTitle`;
|
|
121
|
-
}
|
|
122
|
-
if (args.options.listId && args.options.listTitle) {
|
|
123
|
-
return `Specify listId or listTitle but not both`;
|
|
124
|
-
}
|
|
125
120
|
if (args.options.listId &&
|
|
126
121
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
127
122
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
128
123
|
}
|
|
129
124
|
return true;
|
|
130
125
|
}));
|
|
126
|
+
}, _SpoListItemRecordUndeclareCommand_initOptionSets = function _SpoListItemRecordUndeclareCommand_initOptionSets() {
|
|
127
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
131
128
|
};
|
|
132
129
|
module.exports = new SpoListItemRecordUndeclareCommand();
|
|
133
130
|
//# sourceMappingURL=listitem-record-undeclare.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 _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators;
|
|
16
|
+
var _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators, _SpoListItemRemoveCommand_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 SpoListItemRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LISTITEM_REMOVE;
|
|
@@ -124,14 +125,10 @@ _SpoListItemRemoveCommand_instances = new WeakSet(), _SpoListItemRemoveCommand_i
|
|
|
124
125
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
125
126
|
return `${args.options.listId} is not a valid GUID`;
|
|
126
127
|
}
|
|
127
|
-
if (args.options.listId && args.options.listTitle) {
|
|
128
|
-
return 'Specify id or title, but not both';
|
|
129
|
-
}
|
|
130
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
131
|
-
return 'Specify id or title';
|
|
132
|
-
}
|
|
133
128
|
return true;
|
|
134
129
|
}));
|
|
130
|
+
}, _SpoListItemRemoveCommand_initOptionSets = function _SpoListItemRemoveCommand_initOptionSets() {
|
|
131
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
135
132
|
};
|
|
136
133
|
module.exports = new SpoListItemRemoveCommand();
|
|
137
134
|
//# sourceMappingURL=listitem-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 _SpoListItemSetCommand_instances, _SpoListItemSetCommand_initTelemetry, _SpoListItemSetCommand_initOptions, _SpoListItemSetCommand_initValidators, _SpoListItemSetCommand_initTypes;
|
|
16
|
+
var _SpoListItemSetCommand_instances, _SpoListItemSetCommand_initTelemetry, _SpoListItemSetCommand_initOptions, _SpoListItemSetCommand_initValidators, _SpoListItemSetCommand_initTypes, _SpoListItemSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const config_1 = require("../../../../config");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class SpoListItemSetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initTypes).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
allowUnknownOptions() {
|
|
33
34
|
return true;
|
|
@@ -320,12 +321,6 @@ _SpoListItemSetCommand_instances = new WeakSet(), _SpoListItemSetCommand_initTel
|
|
|
320
321
|
if (isValidSharePointUrl !== true) {
|
|
321
322
|
return isValidSharePointUrl;
|
|
322
323
|
}
|
|
323
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
324
|
-
return `Specify listId or listTitle`;
|
|
325
|
-
}
|
|
326
|
-
if (args.options.listId && args.options.listTitle) {
|
|
327
|
-
return `Specify listId or listTitle but not both`;
|
|
328
|
-
}
|
|
329
324
|
if (args.options.listId &&
|
|
330
325
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
331
326
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
@@ -335,6 +330,8 @@ _SpoListItemSetCommand_instances = new WeakSet(), _SpoListItemSetCommand_initTel
|
|
|
335
330
|
}, _SpoListItemSetCommand_initTypes = function _SpoListItemSetCommand_initTypes() {
|
|
336
331
|
this.types.string.push('webUrl', 'listId', 'listTitle', 'id', 'contentType');
|
|
337
332
|
this.types.boolean.push('systemUpdate');
|
|
333
|
+
}, _SpoListItemSetCommand_initOptionSets = function _SpoListItemSetCommand_initOptionSets() {
|
|
334
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
338
335
|
};
|
|
339
336
|
module.exports = new SpoListItemSetCommand();
|
|
340
337
|
//# sourceMappingURL=listitem-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 _SpoSiteAppPermissionAddCommand_instances, _SpoSiteAppPermissionAddCommand_initTelemetry, _SpoSiteAppPermissionAddCommand_initOptions, _SpoSiteAppPermissionAddCommand_initValidators;
|
|
16
|
+
var _SpoSiteAppPermissionAddCommand_instances, _SpoSiteAppPermissionAddCommand_initTelemetry, _SpoSiteAppPermissionAddCommand_initOptions, _SpoSiteAppPermissionAddCommand_initValidators, _SpoSiteAppPermissionAddCommand_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 SpoSiteAppPermissionAddCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionAddCommand_instances, "m", _SpoSiteAppPermissionAddCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionAddCommand_instances, "m", _SpoSiteAppPermissionAddCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionAddCommand_instances, "m", _SpoSiteAppPermissionAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoSiteAppPermissionAddCommand_instances, "m", _SpoSiteAppPermissionAddCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.SITE_APPPERMISSION_ADD;
|
|
@@ -137,9 +138,6 @@ _SpoSiteAppPermissionAddCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
137
138
|
});
|
|
138
139
|
}, _SpoSiteAppPermissionAddCommand_initValidators = function _SpoSiteAppPermissionAddCommand_initValidators() {
|
|
139
140
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
if (!args.options.appId && !args.options.appDisplayName) {
|
|
141
|
-
return `Specify appId or appDisplayName, one is required`;
|
|
142
|
-
}
|
|
143
141
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
144
142
|
return `${args.options.appId} is not a valid GUID`;
|
|
145
143
|
}
|
|
@@ -148,6 +146,8 @@ _SpoSiteAppPermissionAddCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
148
146
|
}
|
|
149
147
|
return utils_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
150
148
|
}));
|
|
149
|
+
}, _SpoSiteAppPermissionAddCommand_initOptionSets = function _SpoSiteAppPermissionAddCommand_initOptionSets() {
|
|
150
|
+
this.optionSets.push(['appId', 'appDisplayName']);
|
|
151
151
|
};
|
|
152
152
|
module.exports = new SpoSiteAppPermissionAddCommand();
|
|
153
153
|
//# sourceMappingURL=site-apppermission-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 _SpoSiteAppPermissionRemoveCommand_instances, _SpoSiteAppPermissionRemoveCommand_initTelemetry, _SpoSiteAppPermissionRemoveCommand_initOptions, _SpoSiteAppPermissionRemoveCommand_initValidators;
|
|
16
|
+
var _SpoSiteAppPermissionRemoveCommand_instances, _SpoSiteAppPermissionRemoveCommand_initTelemetry, _SpoSiteAppPermissionRemoveCommand_initOptions, _SpoSiteAppPermissionRemoveCommand_initValidators, _SpoSiteAppPermissionRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class SpoSiteAppPermissionRemoveCommand extends GraphCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionRemoveCommand_instances, "m", _SpoSiteAppPermissionRemoveCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionRemoveCommand_instances, "m", _SpoSiteAppPermissionRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionRemoveCommand_instances, "m", _SpoSiteAppPermissionRemoveCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoSiteAppPermissionRemoveCommand_instances, "m", _SpoSiteAppPermissionRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.SITE_APPPERMISSION_REMOVE;
|
|
@@ -156,19 +157,13 @@ _SpoSiteAppPermissionRemoveCommand_instances = new WeakSet(), _SpoSiteAppPermiss
|
|
|
156
157
|
});
|
|
157
158
|
}, _SpoSiteAppPermissionRemoveCommand_initValidators = function _SpoSiteAppPermissionRemoveCommand_initValidators() {
|
|
158
159
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
159
|
-
if (!args.options.appId && !args.options.appDisplayName && !args.options.permissionId) {
|
|
160
|
-
return `Specify appId, appDisplayName, or permissionId. One is required`;
|
|
161
|
-
}
|
|
162
|
-
if ((args.options.appId && args.options.appDisplayName) ||
|
|
163
|
-
(args.options.appId && args.options.permissionId) ||
|
|
164
|
-
(args.options.permissionId && args.options.appDisplayName)) {
|
|
165
|
-
return 'Use either appId, appDisplayName, or permissionId, but not multiple';
|
|
166
|
-
}
|
|
167
160
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
168
161
|
return `${args.options.appId} is not a valid GUID`;
|
|
169
162
|
}
|
|
170
163
|
return utils_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
171
164
|
}));
|
|
165
|
+
}, _SpoSiteAppPermissionRemoveCommand_initOptionSets = function _SpoSiteAppPermissionRemoveCommand_initOptionSets() {
|
|
166
|
+
this.optionSets.push(['appId', 'appDisplayName', 'permissionId']);
|
|
172
167
|
};
|
|
173
168
|
module.exports = new SpoSiteAppPermissionRemoveCommand();
|
|
174
169
|
//# sourceMappingURL=site-apppermission-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 _SpoSiteAppPermissionSetCommand_instances, _SpoSiteAppPermissionSetCommand_initTelemetry, _SpoSiteAppPermissionSetCommand_initOptions, _SpoSiteAppPermissionSetCommand_initValidators;
|
|
16
|
+
var _SpoSiteAppPermissionSetCommand_instances, _SpoSiteAppPermissionSetCommand_initTelemetry, _SpoSiteAppPermissionSetCommand_initOptions, _SpoSiteAppPermissionSetCommand_initValidators, _SpoSiteAppPermissionSetCommand_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 SpoSiteAppPermissionSetCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionSetCommand_instances, "m", _SpoSiteAppPermissionSetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionSetCommand_instances, "m", _SpoSiteAppPermissionSetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoSiteAppPermissionSetCommand_instances, "m", _SpoSiteAppPermissionSetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoSiteAppPermissionSetCommand_instances, "m", _SpoSiteAppPermissionSetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.SITE_APPPERMISSION_SET;
|
|
@@ -129,9 +130,6 @@ _SpoSiteAppPermissionSetCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
129
130
|
});
|
|
130
131
|
}, _SpoSiteAppPermissionSetCommand_initValidators = function _SpoSiteAppPermissionSetCommand_initValidators() {
|
|
131
132
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
if (!args.options.permissionId && !args.options.appId && !args.options.appDisplayName) {
|
|
133
|
-
return `Specify permissionId, appId or appDisplayName, one is required`;
|
|
134
|
-
}
|
|
135
133
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
136
134
|
return `${args.options.appId} is not a valid GUID`;
|
|
137
135
|
}
|
|
@@ -140,6 +138,8 @@ _SpoSiteAppPermissionSetCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
140
138
|
}
|
|
141
139
|
return utils_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
142
140
|
}));
|
|
141
|
+
}, _SpoSiteAppPermissionSetCommand_initOptionSets = function _SpoSiteAppPermissionSetCommand_initOptionSets() {
|
|
142
|
+
this.optionSets.push(['permissionId', 'appId', 'appDisplayName']);
|
|
143
143
|
};
|
|
144
144
|
module.exports = new SpoSiteAppPermissionSetCommand();
|
|
145
145
|
//# sourceMappingURL=site-apppermission-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 _SpoTermAddCommand_instances, _SpoTermAddCommand_initTelemetry, _SpoTermAddCommand_initOptions, _SpoTermAddCommand_initValidators;
|
|
16
|
+
var _SpoTermAddCommand_instances, _SpoTermAddCommand_initTelemetry, _SpoTermAddCommand_initOptions, _SpoTermAddCommand_initValidators, _SpoTermAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const uuid_1 = require("uuid");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoTermAddCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermAddCommand_instances, "m", _SpoTermAddCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermAddCommand_instances, "m", _SpoTermAddCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoTermAddCommand_instances, "m", _SpoTermAddCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoTermAddCommand_instances, "m", _SpoTermAddCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.TERM_ADD;
|
|
@@ -191,12 +192,6 @@ _SpoTermAddCommand_instances = new WeakSet(), _SpoTermAddCommand_initTelemetry =
|
|
|
191
192
|
return 'Specify either parentTermId, termSetId or termSetName but not both';
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
if (!args.options.termGroupId && !args.options.termGroupName) {
|
|
195
|
-
return 'Specify termGroupId or termGroupName';
|
|
196
|
-
}
|
|
197
|
-
if (args.options.termGroupId && args.options.termGroupName) {
|
|
198
|
-
return 'Specify termGroupId or termGroupName but not both';
|
|
199
|
-
}
|
|
200
195
|
if (args.options.termGroupId) {
|
|
201
196
|
if (!utils_1.validation.isValidGuid(args.options.termGroupId)) {
|
|
202
197
|
return `${args.options.termGroupId} is not a valid GUID`;
|
|
@@ -231,6 +226,8 @@ _SpoTermAddCommand_instances = new WeakSet(), _SpoTermAddCommand_initTelemetry =
|
|
|
231
226
|
}
|
|
232
227
|
return true;
|
|
233
228
|
}));
|
|
229
|
+
}, _SpoTermAddCommand_initOptionSets = function _SpoTermAddCommand_initOptionSets() {
|
|
230
|
+
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
234
231
|
};
|
|
235
232
|
module.exports = new SpoTermAddCommand();
|
|
236
233
|
//# sourceMappingURL=term-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 _SpoTermGetCommand_instances, _SpoTermGetCommand_initTelemetry, _SpoTermGetCommand_initOptions, _SpoTermGetCommand_initValidators;
|
|
16
|
+
var _SpoTermGetCommand_instances, _SpoTermGetCommand_initTelemetry, _SpoTermGetCommand_initOptions, _SpoTermGetCommand_initValidators, _SpoTermGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoTermGetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoTermGetCommand_instances, "m", _SpoTermGetCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermGetCommand_instances, "m", _SpoTermGetCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermGetCommand_instances, "m", _SpoTermGetCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoTermGetCommand_instances, "m", _SpoTermGetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TERM_GET;
|
|
@@ -114,12 +115,6 @@ _SpoTermGetCommand_instances = new WeakSet(), _SpoTermGetCommand_initTelemetry =
|
|
|
114
115
|
});
|
|
115
116
|
}, _SpoTermGetCommand_initValidators = function _SpoTermGetCommand_initValidators() {
|
|
116
117
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
if (!args.options.id && !args.options.name) {
|
|
118
|
-
return 'Specify either id or name';
|
|
119
|
-
}
|
|
120
|
-
if (args.options.id && args.options.name) {
|
|
121
|
-
return 'Specify either id or name but not both';
|
|
122
|
-
}
|
|
123
118
|
if (args.options.id) {
|
|
124
119
|
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
125
120
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -151,6 +146,8 @@ _SpoTermGetCommand_instances = new WeakSet(), _SpoTermGetCommand_initTelemetry =
|
|
|
151
146
|
}
|
|
152
147
|
return true;
|
|
153
148
|
}));
|
|
149
|
+
}, _SpoTermGetCommand_initOptionSets = function _SpoTermGetCommand_initOptionSets() {
|
|
150
|
+
this.optionSets.push(['id', 'name']);
|
|
154
151
|
};
|
|
155
152
|
module.exports = new SpoTermGetCommand();
|
|
156
153
|
//# sourceMappingURL=term-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 _SpoTermGroupGetCommand_instances, _SpoTermGroupGetCommand_initTelemetry, _SpoTermGroupGetCommand_initOptions, _SpoTermGroupGetCommand_initValidators;
|
|
16
|
+
var _SpoTermGroupGetCommand_instances, _SpoTermGroupGetCommand_initTelemetry, _SpoTermGroupGetCommand_initOptions, _SpoTermGroupGetCommand_initValidators, _SpoTermGroupGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoTermGroupGetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoTermGroupGetCommand_instances, "m", _SpoTermGroupGetCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermGroupGetCommand_instances, "m", _SpoTermGroupGetCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermGroupGetCommand_instances, "m", _SpoTermGroupGetCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoTermGroupGetCommand_instances, "m", _SpoTermGroupGetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TERM_GROUP_GET;
|
|
@@ -90,12 +91,6 @@ _SpoTermGroupGetCommand_instances = new WeakSet(), _SpoTermGroupGetCommand_initT
|
|
|
90
91
|
});
|
|
91
92
|
}, _SpoTermGroupGetCommand_initValidators = function _SpoTermGroupGetCommand_initValidators() {
|
|
92
93
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
if (!args.options.id && !args.options.name) {
|
|
94
|
-
return 'Specify either id or name';
|
|
95
|
-
}
|
|
96
|
-
if (args.options.id && args.options.name) {
|
|
97
|
-
return 'Specify either id or name but not both';
|
|
98
|
-
}
|
|
99
94
|
if (args.options.id) {
|
|
100
95
|
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
101
96
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -103,6 +98,8 @@ _SpoTermGroupGetCommand_instances = new WeakSet(), _SpoTermGroupGetCommand_initT
|
|
|
103
98
|
}
|
|
104
99
|
return true;
|
|
105
100
|
}));
|
|
101
|
+
}, _SpoTermGroupGetCommand_initOptionSets = function _SpoTermGroupGetCommand_initOptionSets() {
|
|
102
|
+
this.optionSets.push(['id', 'name']);
|
|
106
103
|
};
|
|
107
104
|
module.exports = new SpoTermGroupGetCommand();
|
|
108
105
|
//# sourceMappingURL=term-group-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 _SpoTermListCommand_instances, _SpoTermListCommand_initTelemetry, _SpoTermListCommand_initOptions, _SpoTermListCommand_initValidators;
|
|
16
|
+
var _SpoTermListCommand_instances, _SpoTermListCommand_initTelemetry, _SpoTermListCommand_initOptions, _SpoTermListCommand_initValidators, _SpoTermListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoTermListCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TERM_LIST;
|
|
@@ -102,23 +103,11 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
|
|
|
102
103
|
});
|
|
103
104
|
}, _SpoTermListCommand_initValidators = function _SpoTermListCommand_initValidators() {
|
|
104
105
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (!args.options.termGroupId && !args.options.termGroupName) {
|
|
106
|
-
return 'Specify either termGroupId or termGroupName';
|
|
107
|
-
}
|
|
108
|
-
if (args.options.termGroupId && args.options.termGroupName) {
|
|
109
|
-
return 'Specify either termGroupId or termGroupName but not both';
|
|
110
|
-
}
|
|
111
106
|
if (args.options.termGroupId) {
|
|
112
107
|
if (!utils_1.validation.isValidGuid(args.options.termGroupId)) {
|
|
113
108
|
return `${args.options.termGroupId} is not a valid GUID`;
|
|
114
109
|
}
|
|
115
110
|
}
|
|
116
|
-
if (!args.options.termSetId && !args.options.termSetName) {
|
|
117
|
-
return 'Specify either termSetId or termSetName';
|
|
118
|
-
}
|
|
119
|
-
if (args.options.termSetId && args.options.termSetName) {
|
|
120
|
-
return 'Specify either termSetId or termSetName but not both';
|
|
121
|
-
}
|
|
122
111
|
if (args.options.termSetId) {
|
|
123
112
|
if (!utils_1.validation.isValidGuid(args.options.termSetId)) {
|
|
124
113
|
return `${args.options.termSetId} is not a valid GUID`;
|
|
@@ -126,6 +115,8 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
|
|
|
126
115
|
}
|
|
127
116
|
return true;
|
|
128
117
|
}));
|
|
118
|
+
}, _SpoTermListCommand_initOptionSets = function _SpoTermListCommand_initOptionSets() {
|
|
119
|
+
this.optionSets.push(['termGroupId', 'termGroupName'], ['termSetId', 'termSetName']);
|
|
129
120
|
};
|
|
130
121
|
module.exports = new SpoTermListCommand();
|
|
131
122
|
//# sourceMappingURL=term-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 _SpoTermSetAddCommand_instances, _SpoTermSetAddCommand_initTelemetry, _SpoTermSetAddCommand_initOptions, _SpoTermSetAddCommand_initValidators;
|
|
16
|
+
var _SpoTermSetAddCommand_instances, _SpoTermSetAddCommand_initTelemetry, _SpoTermSetAddCommand_initOptions, _SpoTermSetAddCommand_initValidators, _SpoTermSetAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const uuid_1 = require("uuid");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoTermSetAddCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermSetAddCommand_instances, "m", _SpoTermSetAddCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermSetAddCommand_instances, "m", _SpoTermSetAddCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoTermSetAddCommand_instances, "m", _SpoTermSetAddCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoTermSetAddCommand_instances, "m", _SpoTermSetAddCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.TERM_SET_ADD;
|
|
@@ -159,12 +160,6 @@ _SpoTermSetAddCommand_instances = new WeakSet(), _SpoTermSetAddCommand_initTelem
|
|
|
159
160
|
return `${args.options.id} is not a valid GUID`;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
if (!args.options.termGroupId && !args.options.termGroupName) {
|
|
163
|
-
return 'Specify termGroupId or termGroupName';
|
|
164
|
-
}
|
|
165
|
-
if (args.options.termGroupId && args.options.termGroupName) {
|
|
166
|
-
return 'Specify termGroupId or termGroupName but not both';
|
|
167
|
-
}
|
|
168
163
|
if (args.options.termGroupId) {
|
|
169
164
|
if (!utils_1.validation.isValidGuid(args.options.termGroupId)) {
|
|
170
165
|
return `${args.options.termGroupId} is not a valid GUID`;
|
|
@@ -180,6 +175,8 @@ _SpoTermSetAddCommand_instances = new WeakSet(), _SpoTermSetAddCommand_initTelem
|
|
|
180
175
|
}
|
|
181
176
|
return true;
|
|
182
177
|
}));
|
|
178
|
+
}, _SpoTermSetAddCommand_initOptionSets = function _SpoTermSetAddCommand_initOptionSets() {
|
|
179
|
+
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
183
180
|
};
|
|
184
181
|
module.exports = new SpoTermSetAddCommand();
|
|
185
182
|
//# sourceMappingURL=term-set-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 _SpoTermSetGetCommand_instances, _SpoTermSetGetCommand_initTelemetry, _SpoTermSetGetCommand_initOptions, _SpoTermSetGetCommand_initValidators;
|
|
16
|
+
var _SpoTermSetGetCommand_instances, _SpoTermSetGetCommand_initTelemetry, _SpoTermSetGetCommand_initOptions, _SpoTermSetGetCommand_initValidators, _SpoTermSetGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoTermSetGetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoTermSetGetCommand_instances, "m", _SpoTermSetGetCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermSetGetCommand_instances, "m", _SpoTermSetGetCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermSetGetCommand_instances, "m", _SpoTermSetGetCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoTermSetGetCommand_instances, "m", _SpoTermSetGetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TERM_SET_GET;
|
|
@@ -97,23 +98,11 @@ _SpoTermSetGetCommand_instances = new WeakSet(), _SpoTermSetGetCommand_initTelem
|
|
|
97
98
|
});
|
|
98
99
|
}, _SpoTermSetGetCommand_initValidators = function _SpoTermSetGetCommand_initValidators() {
|
|
99
100
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
if (!args.options.id && !args.options.name) {
|
|
101
|
-
return 'Specify either id or name';
|
|
102
|
-
}
|
|
103
|
-
if (args.options.id && args.options.name) {
|
|
104
|
-
return 'Specify either id or name but not both';
|
|
105
|
-
}
|
|
106
101
|
if (args.options.id) {
|
|
107
102
|
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
108
103
|
return `${args.options.id} is not a valid GUID`;
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
|
-
if (!args.options.termGroupId && !args.options.termGroupName) {
|
|
112
|
-
return 'Specify termGroupId or termGroupName';
|
|
113
|
-
}
|
|
114
|
-
if (args.options.termGroupId && args.options.termGroupName) {
|
|
115
|
-
return 'Specify termGroupId or termGroupName but not both';
|
|
116
|
-
}
|
|
117
106
|
if (args.options.termGroupId) {
|
|
118
107
|
if (!utils_1.validation.isValidGuid(args.options.termGroupId)) {
|
|
119
108
|
return `${args.options.termGroupId} is not a valid GUID`;
|
|
@@ -121,6 +110,8 @@ _SpoTermSetGetCommand_instances = new WeakSet(), _SpoTermSetGetCommand_initTelem
|
|
|
121
110
|
}
|
|
122
111
|
return true;
|
|
123
112
|
}));
|
|
113
|
+
}, _SpoTermSetGetCommand_initOptionSets = function _SpoTermSetGetCommand_initOptionSets() {
|
|
114
|
+
this.optionSets.push(['id', 'name'], ['termGroupId', 'termGroupName']);
|
|
124
115
|
};
|
|
125
116
|
module.exports = new SpoTermSetGetCommand();
|
|
126
117
|
//# sourceMappingURL=term-set-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 _SpoTermSetListCommand_instances, _SpoTermSetListCommand_initTelemetry, _SpoTermSetListCommand_initOptions, _SpoTermSetListCommand_initValidators;
|
|
16
|
+
var _SpoTermSetListCommand_instances, _SpoTermSetListCommand_initTelemetry, _SpoTermSetListCommand_initOptions, _SpoTermSetListCommand_initValidators, _SpoTermSetListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoTermSetListCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoTermSetListCommand_instances, "m", _SpoTermSetListCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoTermSetListCommand_instances, "m", _SpoTermSetListCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoTermSetListCommand_instances, "m", _SpoTermSetListCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoTermSetListCommand_instances, "m", _SpoTermSetListCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TERM_SET_LIST;
|
|
@@ -96,12 +97,6 @@ _SpoTermSetListCommand_instances = new WeakSet(), _SpoTermSetListCommand_initTel
|
|
|
96
97
|
});
|
|
97
98
|
}, _SpoTermSetListCommand_initValidators = function _SpoTermSetListCommand_initValidators() {
|
|
98
99
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
if (!args.options.termGroupId && !args.options.termGroupName) {
|
|
100
|
-
return 'Specify either termGroupId or termGroupName';
|
|
101
|
-
}
|
|
102
|
-
if (args.options.termGroupId && args.options.termGroupName) {
|
|
103
|
-
return 'Specify either termGroupId or termGroupName but not both';
|
|
104
|
-
}
|
|
105
100
|
if (args.options.termGroupId) {
|
|
106
101
|
if (!utils_1.validation.isValidGuid(args.options.termGroupId)) {
|
|
107
102
|
return `${args.options.termGroupId} is not a valid GUID`;
|
|
@@ -109,6 +104,8 @@ _SpoTermSetListCommand_instances = new WeakSet(), _SpoTermSetListCommand_initTel
|
|
|
109
104
|
}
|
|
110
105
|
return true;
|
|
111
106
|
}));
|
|
107
|
+
}, _SpoTermSetListCommand_initOptionSets = function _SpoTermSetListCommand_initOptionSets() {
|
|
108
|
+
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
112
109
|
};
|
|
113
110
|
module.exports = new SpoTermSetListCommand();
|
|
114
111
|
//# sourceMappingURL=term-set-list.js.map
|