@pnp/cli-microsoft365 5.8.0-beta.40c8ac8 → 5.8.0-beta.421ec27
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-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/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 +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/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/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 +1 -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 _TeamsChannelMemberSetCommand_instances, _TeamsChannelMemberSetCommand_initTelemetry, _TeamsChannelMemberSetCommand_initOptions, _TeamsChannelMemberSetCommand_initValidators;
|
|
16
|
+
var _TeamsChannelMemberSetCommand_instances, _TeamsChannelMemberSetCommand_initTelemetry, _TeamsChannelMemberSetCommand_initOptions, _TeamsChannelMemberSetCommand_initValidators, _TeamsChannelMemberSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -29,6 +29,7 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.CHANNEL_MEMBER_SET;
|
|
@@ -167,32 +168,12 @@ _TeamsChannelMemberSetCommand_instances = new WeakSet(), _TeamsChannelMemberSetC
|
|
|
167
168
|
});
|
|
168
169
|
}, _TeamsChannelMemberSetCommand_initValidators = function _TeamsChannelMemberSetCommand_initValidators() {
|
|
169
170
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
170
|
-
if (args.options.teamId && args.options.teamName) {
|
|
171
|
-
return 'Specify either teamId or teamName, but not both';
|
|
172
|
-
}
|
|
173
|
-
if (!args.options.teamId && !args.options.teamName) {
|
|
174
|
-
return 'Specify teamId or teamName, one is required';
|
|
175
|
-
}
|
|
176
171
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
177
172
|
return `${args.options.teamId} is not a valid GUID`;
|
|
178
173
|
}
|
|
179
|
-
if (args.options.channelId && args.options.channelName) {
|
|
180
|
-
return 'Specify either channelId or channelName, but not both';
|
|
181
|
-
}
|
|
182
|
-
if (!args.options.channelId && !args.options.channelName) {
|
|
183
|
-
return 'Specify channelId or channelName, one is required';
|
|
184
|
-
}
|
|
185
174
|
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
186
175
|
return `${args.options.channelId} is not a valid Teams Channel ID`;
|
|
187
176
|
}
|
|
188
|
-
if ((args.options.userName && args.options.userId) ||
|
|
189
|
-
(args.options.userName && args.options.id) ||
|
|
190
|
-
(args.options.userId && args.options.id)) {
|
|
191
|
-
return 'Specify either userName, userId or id, but not multiple.';
|
|
192
|
-
}
|
|
193
|
-
if (!args.options.userName && !args.options.userId && !args.options.id) {
|
|
194
|
-
return 'Specify either userName, userId or id, one is required';
|
|
195
|
-
}
|
|
196
177
|
if (args.options.userId && !utils_1.validation.isValidGuid(args.options.userId)) {
|
|
197
178
|
return `${args.options.userId} is not a valid GUID`;
|
|
198
179
|
}
|
|
@@ -201,6 +182,8 @@ _TeamsChannelMemberSetCommand_instances = new WeakSet(), _TeamsChannelMemberSetC
|
|
|
201
182
|
}
|
|
202
183
|
return true;
|
|
203
184
|
}));
|
|
185
|
+
}, _TeamsChannelMemberSetCommand_initOptionSets = function _TeamsChannelMemberSetCommand_initOptionSets() {
|
|
186
|
+
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['userName', 'userId', 'id']);
|
|
204
187
|
};
|
|
205
188
|
module.exports = new TeamsChannelMemberSetCommand();
|
|
206
189
|
//# sourceMappingURL=channel-member-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 _TeamsChannelRemoveCommand_instances, _TeamsChannelRemoveCommand_initTelemetry, _TeamsChannelRemoveCommand_initOptions, _TeamsChannelRemoveCommand_initValidators;
|
|
16
|
+
var _TeamsChannelRemoveCommand_instances, _TeamsChannelRemoveCommand_initTelemetry, _TeamsChannelRemoveCommand_initOptions, _TeamsChannelRemoveCommand_initValidators, _TeamsChannelRemoveCommand_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 TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.CHANNEL_REMOVE;
|
|
@@ -117,12 +118,6 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
|
|
|
117
118
|
});
|
|
118
119
|
}, _TeamsChannelRemoveCommand_initValidators = function _TeamsChannelRemoveCommand_initValidators() {
|
|
119
120
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
if (args.options.channelId && args.options.channelName) {
|
|
121
|
-
return 'Specify channelId or channelName but not both';
|
|
122
|
-
}
|
|
123
|
-
if (!args.options.channelId && !args.options.channelName) {
|
|
124
|
-
return 'Specify channelId or channelName';
|
|
125
|
-
}
|
|
126
121
|
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
127
122
|
return `${args.options.channelId} is not a valid Teams Channel Id`;
|
|
128
123
|
}
|
|
@@ -131,6 +126,8 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
|
|
|
131
126
|
}
|
|
132
127
|
return true;
|
|
133
128
|
}));
|
|
129
|
+
}, _TeamsChannelRemoveCommand_initOptionSets = function _TeamsChannelRemoveCommand_initOptionSets() {
|
|
130
|
+
this.optionSets.push(['channelId', 'channelName']);
|
|
134
131
|
};
|
|
135
132
|
module.exports = new TeamsChannelRemoveCommand();
|
|
136
133
|
//# sourceMappingURL=channel-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 _TeamsChatGetCommand_instances, _TeamsChatGetCommand_initTelemetry, _TeamsChatGetCommand_initOptions, _TeamsChatGetCommand_initValidators;
|
|
16
|
+
var _TeamsChatGetCommand_instances, _TeamsChatGetCommand_initTelemetry, _TeamsChatGetCommand_initOptions, _TeamsChatGetCommand_initValidators, _TeamsChatGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const Auth_1 = require("../../../../Auth");
|
|
@@ -30,6 +30,7 @@ class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initTelemetry).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initOptions).call(this);
|
|
32
32
|
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initValidators).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initOptionSets).call(this);
|
|
33
34
|
}
|
|
34
35
|
get name() {
|
|
35
36
|
return commands_1.default.CHAT_GET;
|
|
@@ -120,22 +121,6 @@ _TeamsChatGetCommand_instances = new WeakSet(), _TeamsChatGetCommand_initTelemet
|
|
|
120
121
|
});
|
|
121
122
|
}, _TeamsChatGetCommand_initValidators = function _TeamsChatGetCommand_initValidators() {
|
|
122
123
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
if (!args.options.id && !args.options.participants && !args.options.name) {
|
|
124
|
-
return 'Specify id or participants or name, one is required.';
|
|
125
|
-
}
|
|
126
|
-
let nrOfMutuallyExclusiveOptionsInUse = 0;
|
|
127
|
-
if (args.options.id) {
|
|
128
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
129
|
-
}
|
|
130
|
-
if (args.options.participants) {
|
|
131
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
132
|
-
}
|
|
133
|
-
if (args.options.name) {
|
|
134
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
135
|
-
}
|
|
136
|
-
if (nrOfMutuallyExclusiveOptionsInUse > 1) {
|
|
137
|
-
return 'Specify either id or participants or name, but not multiple.';
|
|
138
|
-
}
|
|
139
124
|
if (args.options.id && !validation_1.validation.isValidTeamsChatId(args.options.id)) {
|
|
140
125
|
return `${args.options.id} is not a valid Teams ChatId.`;
|
|
141
126
|
}
|
|
@@ -147,6 +132,8 @@ _TeamsChatGetCommand_instances = new WeakSet(), _TeamsChatGetCommand_initTelemet
|
|
|
147
132
|
}
|
|
148
133
|
return true;
|
|
149
134
|
}));
|
|
135
|
+
}, _TeamsChatGetCommand_initOptionSets = function _TeamsChatGetCommand_initOptionSets() {
|
|
136
|
+
this.optionSets.push(['id', 'participants', 'name']);
|
|
150
137
|
};
|
|
151
138
|
module.exports = new TeamsChatGetCommand();
|
|
152
139
|
//# sourceMappingURL=chat-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 _TeamsChatMessageSendCommand_instances, _TeamsChatMessageSendCommand_initTelemetry, _TeamsChatMessageSendCommand_initOptions, _TeamsChatMessageSendCommand_initValidators;
|
|
16
|
+
var _TeamsChatMessageSendCommand_instances, _TeamsChatMessageSendCommand_initTelemetry, _TeamsChatMessageSendCommand_initOptions, _TeamsChatMessageSendCommand_initValidators, _TeamsChatMessageSendCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const Auth_1 = require("../../../../Auth");
|
|
@@ -29,6 +29,7 @@ class TeamsChatMessageSendCommand extends GraphCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsChatMessageSendCommand_instances, "m", _TeamsChatMessageSendCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsChatMessageSendCommand_instances, "m", _TeamsChatMessageSendCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _TeamsChatMessageSendCommand_instances, "m", _TeamsChatMessageSendCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsChatMessageSendCommand_instances, "m", _TeamsChatMessageSendCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.CHAT_MESSAGE_SEND;
|
|
@@ -165,22 +166,6 @@ _TeamsChatMessageSendCommand_instances = new WeakSet(), _TeamsChatMessageSendCom
|
|
|
165
166
|
});
|
|
166
167
|
}, _TeamsChatMessageSendCommand_initValidators = function _TeamsChatMessageSendCommand_initValidators() {
|
|
167
168
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
if (!args.options.chatId && !args.options.userEmails && !args.options.chatName) {
|
|
169
|
-
return 'Specify chatId or userEmails or chatName, one is required.';
|
|
170
|
-
}
|
|
171
|
-
let nrOfMutuallyExclusiveOptionsInUse = 0;
|
|
172
|
-
if (args.options.chatId) {
|
|
173
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
174
|
-
}
|
|
175
|
-
if (args.options.userEmails) {
|
|
176
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
177
|
-
}
|
|
178
|
-
if (args.options.chatName) {
|
|
179
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
180
|
-
}
|
|
181
|
-
if (nrOfMutuallyExclusiveOptionsInUse > 1) {
|
|
182
|
-
return 'Specify either chatId or userEmails or chatName, but not multiple.';
|
|
183
|
-
}
|
|
184
169
|
if (args.options.chatId && !utils_1.validation.isValidTeamsChatId(args.options.chatId)) {
|
|
185
170
|
return `${args.options.chatId} is not a valid Teams ChatId.`;
|
|
186
171
|
}
|
|
@@ -192,6 +177,8 @@ _TeamsChatMessageSendCommand_instances = new WeakSet(), _TeamsChatMessageSendCom
|
|
|
192
177
|
}
|
|
193
178
|
return true;
|
|
194
179
|
}));
|
|
180
|
+
}, _TeamsChatMessageSendCommand_initOptionSets = function _TeamsChatMessageSendCommand_initOptionSets() {
|
|
181
|
+
this.optionSets.push(['chatId', 'userEmails', 'chatName']);
|
|
195
182
|
};
|
|
196
183
|
module.exports = new TeamsChatMessageSendCommand();
|
|
197
184
|
//# sourceMappingURL=chat-message-send.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 _TeamsTabGetCommand_instances, _TeamsTabGetCommand_initTelemetry, _TeamsTabGetCommand_initOptions, _TeamsTabGetCommand_initValidators;
|
|
16
|
+
var _TeamsTabGetCommand_instances, _TeamsTabGetCommand_initTelemetry, _TeamsTabGetCommand_initOptions, _TeamsTabGetCommand_initValidators, _TeamsTabGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -29,6 +29,7 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.TAB_GET;
|
|
@@ -146,35 +147,19 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
|
|
|
146
147
|
});
|
|
147
148
|
}, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
|
|
148
149
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
if (args.options.teamId && args.options.teamName) {
|
|
150
|
-
return 'Specify either teamId or teamName, but not both.';
|
|
151
|
-
}
|
|
152
|
-
if (!args.options.teamId && !args.options.teamName) {
|
|
153
|
-
return 'Specify teamId or teamName, one is required';
|
|
154
|
-
}
|
|
155
150
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
156
151
|
return `${args.options.teamId} is not a valid GUID`;
|
|
157
152
|
}
|
|
158
|
-
if (args.options.channelId && args.options.channelName) {
|
|
159
|
-
return 'Specify either channelId or channelName, but not both.';
|
|
160
|
-
}
|
|
161
|
-
if (!args.options.channelId && !args.options.channelName) {
|
|
162
|
-
return 'Specify channelId or channelName, one is required';
|
|
163
|
-
}
|
|
164
153
|
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
165
154
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
166
155
|
}
|
|
167
|
-
if (args.options.tabId && args.options.tabName) {
|
|
168
|
-
return 'Specify either tabId or tabName, but not both.';
|
|
169
|
-
}
|
|
170
|
-
if (!args.options.tabId && !args.options.tabName) {
|
|
171
|
-
return 'Specify tabId or tabName, one is required';
|
|
172
|
-
}
|
|
173
156
|
if (args.options.tabId && !utils_1.validation.isValidGuid(args.options.tabId)) {
|
|
174
157
|
return `${args.options.tabId} is not a valid GUID`;
|
|
175
158
|
}
|
|
176
159
|
return true;
|
|
177
160
|
}));
|
|
161
|
+
}, _TeamsTabGetCommand_initOptionSets = function _TeamsTabGetCommand_initOptionSets() {
|
|
162
|
+
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['tabId', 'tabName']);
|
|
178
163
|
};
|
|
179
164
|
module.exports = new TeamsTabGetCommand();
|
|
180
165
|
//# sourceMappingURL=tab-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 _TeamsTeamGetCommand_instances, _TeamsTeamGetCommand_initTelemetry, _TeamsTeamGetCommand_initOptions, _TeamsTeamGetCommand_initValidators;
|
|
16
|
+
var _TeamsTeamGetCommand_instances, _TeamsTeamGetCommand_initTelemetry, _TeamsTeamGetCommand_initOptions, _TeamsTeamGetCommand_initValidators, _TeamsTeamGetCommand_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 TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.TEAM_GET;
|
|
@@ -81,17 +82,13 @@ _TeamsTeamGetCommand_instances = new WeakSet(), _TeamsTeamGetCommand_initTelemet
|
|
|
81
82
|
});
|
|
82
83
|
}, _TeamsTeamGetCommand_initValidators = function _TeamsTeamGetCommand_initValidators() {
|
|
83
84
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
if (args.options.id && args.options.name) {
|
|
85
|
-
return 'Specify either teamId or teamName, but not both.';
|
|
86
|
-
}
|
|
87
|
-
if (!args.options.id && !args.options.name) {
|
|
88
|
-
return 'Specify teamId or teamName, one is required';
|
|
89
|
-
}
|
|
90
85
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
91
86
|
return `${args.options.id} is not a valid GUID`;
|
|
92
87
|
}
|
|
93
88
|
return true;
|
|
94
89
|
}));
|
|
90
|
+
}, _TeamsTeamGetCommand_initOptionSets = function _TeamsTeamGetCommand_initOptionSets() {
|
|
91
|
+
this.optionSets.push(['id', 'name']);
|
|
95
92
|
};
|
|
96
93
|
module.exports = new TeamsTeamGetCommand();
|
|
97
94
|
//# sourceMappingURL=team-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 _TeamsUserAppListCommand_instances, _TeamsUserAppListCommand_initTelemetry, _TeamsUserAppListCommand_initOptions, _TeamsUserAppListCommand_initValidators;
|
|
16
|
+
var _TeamsUserAppListCommand_instances, _TeamsUserAppListCommand_initTelemetry, _TeamsUserAppListCommand_initOptions, _TeamsUserAppListCommand_initValidators, _TeamsUserAppListCommand_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 TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _TeamsUserAppListCommand_instances, "m", _TeamsUserAppListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsUserAppListCommand_instances, "m", _TeamsUserAppListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsUserAppListCommand_instances, "m", _TeamsUserAppListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsUserAppListCommand_instances, "m", _TeamsUserAppListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.USER_APP_LIST;
|
|
@@ -93,12 +94,6 @@ _TeamsUserAppListCommand_instances = new WeakSet(), _TeamsUserAppListCommand_ini
|
|
|
93
94
|
});
|
|
94
95
|
}, _TeamsUserAppListCommand_initValidators = function _TeamsUserAppListCommand_initValidators() {
|
|
95
96
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
if (!args.options.userId && !args.options.userName) {
|
|
97
|
-
return `userId or userName need to be provided`;
|
|
98
|
-
}
|
|
99
|
-
if (args.options.userId && args.options.userName) {
|
|
100
|
-
return `Please specify either userId or userName, not both`;
|
|
101
|
-
}
|
|
102
97
|
if (args.options.userId && !utils_1.validation.isValidGuid(args.options.userId)) {
|
|
103
98
|
return `${args.options.userId} is not a valid GUID`;
|
|
104
99
|
}
|
|
@@ -107,6 +102,8 @@ _TeamsUserAppListCommand_instances = new WeakSet(), _TeamsUserAppListCommand_ini
|
|
|
107
102
|
}
|
|
108
103
|
return true;
|
|
109
104
|
}));
|
|
105
|
+
}, _TeamsUserAppListCommand_initOptionSets = function _TeamsUserAppListCommand_initOptionSets() {
|
|
106
|
+
this.optionSets.push(['userId', 'userName']);
|
|
110
107
|
};
|
|
111
108
|
module.exports = new TeamsUserAppListCommand();
|
|
112
109
|
//# sourceMappingURL=user-app-list.js.map
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _TodoListRemoveCommand_instances, _TodoListRemoveCommand_initTelemetry, _TodoListRemoveCommand_initOptions,
|
|
7
|
+
var _TodoListRemoveCommand_instances, _TodoListRemoveCommand_initTelemetry, _TodoListRemoveCommand_initOptions, _TodoListRemoveCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const cli_1 = require("../../../../cli");
|
|
19
10
|
const request_1 = require("../../../../request");
|
|
@@ -25,7 +16,7 @@ class TodoListRemoveCommand extends GraphCommand_1.default {
|
|
|
25
16
|
_TodoListRemoveCommand_instances.add(this);
|
|
26
17
|
__classPrivateFieldGet(this, _TodoListRemoveCommand_instances, "m", _TodoListRemoveCommand_initTelemetry).call(this);
|
|
27
18
|
__classPrivateFieldGet(this, _TodoListRemoveCommand_instances, "m", _TodoListRemoveCommand_initOptions).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _TodoListRemoveCommand_instances, "m",
|
|
19
|
+
__classPrivateFieldGet(this, _TodoListRemoveCommand_instances, "m", _TodoListRemoveCommand_initOptionSets).call(this);
|
|
29
20
|
}
|
|
30
21
|
get name() {
|
|
31
22
|
return commands_1.default.LIST_REMOVE;
|
|
@@ -103,16 +94,8 @@ _TodoListRemoveCommand_instances = new WeakSet(), _TodoListRemoveCommand_initTel
|
|
|
103
94
|
}, {
|
|
104
95
|
option: '--confirm'
|
|
105
96
|
});
|
|
106
|
-
},
|
|
107
|
-
this.
|
|
108
|
-
if (!args.options.name && !args.options.id) {
|
|
109
|
-
return 'Specify name or id of the list to remove';
|
|
110
|
-
}
|
|
111
|
-
if (args.options.name && args.options.id) {
|
|
112
|
-
return 'Specify either the name or the id of the list to remove but not both';
|
|
113
|
-
}
|
|
114
|
-
return true;
|
|
115
|
-
}));
|
|
97
|
+
}, _TodoListRemoveCommand_initOptionSets = function _TodoListRemoveCommand_initOptionSets() {
|
|
98
|
+
this.optionSets.push(['name', 'id']);
|
|
116
99
|
};
|
|
117
100
|
module.exports = new TodoListRemoveCommand();
|
|
118
101
|
//# sourceMappingURL=list-remove.js.map
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _TodoListSetCommand_instances, _TodoListSetCommand_initTelemetry, _TodoListSetCommand_initOptions,
|
|
7
|
+
var _TodoListSetCommand_instances, _TodoListSetCommand_initTelemetry, _TodoListSetCommand_initOptions, _TodoListSetCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const request_1 = require("../../../../request");
|
|
19
10
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -24,7 +15,7 @@ class TodoListSetCommand extends GraphCommand_1.default {
|
|
|
24
15
|
_TodoListSetCommand_instances.add(this);
|
|
25
16
|
__classPrivateFieldGet(this, _TodoListSetCommand_instances, "m", _TodoListSetCommand_initTelemetry).call(this);
|
|
26
17
|
__classPrivateFieldGet(this, _TodoListSetCommand_instances, "m", _TodoListSetCommand_initOptions).call(this);
|
|
27
|
-
__classPrivateFieldGet(this, _TodoListSetCommand_instances, "m",
|
|
18
|
+
__classPrivateFieldGet(this, _TodoListSetCommand_instances, "m", _TodoListSetCommand_initOptionSets).call(this);
|
|
28
19
|
}
|
|
29
20
|
get name() {
|
|
30
21
|
return commands_1.default.LIST_SET;
|
|
@@ -88,16 +79,8 @@ _TodoListSetCommand_instances = new WeakSet(), _TodoListSetCommand_initTelemetry
|
|
|
88
79
|
}, {
|
|
89
80
|
option: '--newName <newName>'
|
|
90
81
|
});
|
|
91
|
-
},
|
|
92
|
-
this.
|
|
93
|
-
if (!args.options.name && !args.options.id) {
|
|
94
|
-
return 'Specify name or id of the list to update';
|
|
95
|
-
}
|
|
96
|
-
if (args.options.name && args.options.id) {
|
|
97
|
-
return 'Specify either the name or the id of the list to update but not both';
|
|
98
|
-
}
|
|
99
|
-
return true;
|
|
100
|
-
}));
|
|
82
|
+
}, _TodoListSetCommand_initOptionSets = function _TodoListSetCommand_initOptionSets() {
|
|
83
|
+
this.optionSets.push(['name', 'id']);
|
|
101
84
|
};
|
|
102
85
|
module.exports = new TodoListSetCommand();
|
|
103
86
|
//# sourceMappingURL=list-set.js.map
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _TodoTaskAddCommand_instances, _TodoTaskAddCommand_initTelemetry, _TodoTaskAddCommand_initOptions,
|
|
7
|
+
var _TodoTaskAddCommand_instances, _TodoTaskAddCommand_initTelemetry, _TodoTaskAddCommand_initOptions, _TodoTaskAddCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const request_1 = require("../../../../request");
|
|
19
10
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -24,7 +15,7 @@ class TodoTaskAddCommand extends GraphCommand_1.default {
|
|
|
24
15
|
_TodoTaskAddCommand_instances.add(this);
|
|
25
16
|
__classPrivateFieldGet(this, _TodoTaskAddCommand_instances, "m", _TodoTaskAddCommand_initTelemetry).call(this);
|
|
26
17
|
__classPrivateFieldGet(this, _TodoTaskAddCommand_instances, "m", _TodoTaskAddCommand_initOptions).call(this);
|
|
27
|
-
__classPrivateFieldGet(this, _TodoTaskAddCommand_instances, "m",
|
|
18
|
+
__classPrivateFieldGet(this, _TodoTaskAddCommand_instances, "m", _TodoTaskAddCommand_initOptionSets).call(this);
|
|
28
19
|
}
|
|
29
20
|
get name() {
|
|
30
21
|
return commands_1.default.TASK_ADD;
|
|
@@ -91,16 +82,8 @@ _TodoTaskAddCommand_instances = new WeakSet(), _TodoTaskAddCommand_initTelemetry
|
|
|
91
82
|
}, {
|
|
92
83
|
option: '--listId [listId]'
|
|
93
84
|
});
|
|
94
|
-
},
|
|
95
|
-
this.
|
|
96
|
-
if (args.options.listId && args.options.listName) {
|
|
97
|
-
return 'Specify listId or listName but not both';
|
|
98
|
-
}
|
|
99
|
-
if (!args.options.listId && !args.options.listName) {
|
|
100
|
-
return 'Specify listId or listName';
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
}));
|
|
85
|
+
}, _TodoTaskAddCommand_initOptionSets = function _TodoTaskAddCommand_initOptionSets() {
|
|
86
|
+
this.optionSets.push(['listId', 'listName']);
|
|
104
87
|
};
|
|
105
88
|
module.exports = new TodoTaskAddCommand();
|
|
106
89
|
//# sourceMappingURL=task-add.js.map
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _TodoTaskListCommand_instances, _TodoTaskListCommand_initTelemetry, _TodoTaskListCommand_initOptions,
|
|
7
|
+
var _TodoTaskListCommand_instances, _TodoTaskListCommand_initTelemetry, _TodoTaskListCommand_initOptions, _TodoTaskListCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const request_1 = require("../../../../request");
|
|
19
10
|
const utils_1 = require("../../../../utils");
|
|
@@ -25,7 +16,7 @@ class TodoTaskListCommand extends GraphCommand_1.default {
|
|
|
25
16
|
_TodoTaskListCommand_instances.add(this);
|
|
26
17
|
__classPrivateFieldGet(this, _TodoTaskListCommand_instances, "m", _TodoTaskListCommand_initTelemetry).call(this);
|
|
27
18
|
__classPrivateFieldGet(this, _TodoTaskListCommand_instances, "m", _TodoTaskListCommand_initOptions).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _TodoTaskListCommand_instances, "m",
|
|
19
|
+
__classPrivateFieldGet(this, _TodoTaskListCommand_instances, "m", _TodoTaskListCommand_initOptionSets).call(this);
|
|
29
20
|
}
|
|
30
21
|
get name() {
|
|
31
22
|
return commands_1.default.TASK_LIST;
|
|
@@ -95,16 +86,8 @@ _TodoTaskListCommand_instances = new WeakSet(), _TodoTaskListCommand_initTelemet
|
|
|
95
86
|
}, {
|
|
96
87
|
option: '--listId [listId]'
|
|
97
88
|
});
|
|
98
|
-
},
|
|
99
|
-
this.
|
|
100
|
-
if (args.options.listId && args.options.listName) {
|
|
101
|
-
return 'Specify listId or listName, but not both';
|
|
102
|
-
}
|
|
103
|
-
if (!args.options.listId && !args.options.listName) {
|
|
104
|
-
return 'Specify listId or listName';
|
|
105
|
-
}
|
|
106
|
-
return true;
|
|
107
|
-
}));
|
|
89
|
+
}, _TodoTaskListCommand_initOptionSets = function _TodoTaskListCommand_initOptionSets() {
|
|
90
|
+
this.optionSets.push(['listId', 'listName']);
|
|
108
91
|
};
|
|
109
92
|
module.exports = new TodoTaskListCommand();
|
|
110
93
|
//# sourceMappingURL=task-list.js.map
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _TodoTaskRemoveCommand_instances, _TodoTaskRemoveCommand_initTelemetry, _TodoTaskRemoveCommand_initOptions,
|
|
7
|
+
var _TodoTaskRemoveCommand_instances, _TodoTaskRemoveCommand_initTelemetry, _TodoTaskRemoveCommand_initOptions, _TodoTaskRemoveCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const cli_1 = require("../../../../cli");
|
|
19
10
|
const request_1 = require("../../../../request");
|
|
@@ -25,7 +16,7 @@ class TodoTaskRemoveCommand extends GraphCommand_1.default {
|
|
|
25
16
|
_TodoTaskRemoveCommand_instances.add(this);
|
|
26
17
|
__classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initTelemetry).call(this);
|
|
27
18
|
__classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initOptions).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m",
|
|
19
|
+
__classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initOptionSets).call(this);
|
|
29
20
|
}
|
|
30
21
|
get name() {
|
|
31
22
|
return commands_1.default.TASK_REMOVE;
|
|
@@ -105,16 +96,8 @@ _TodoTaskRemoveCommand_instances = new WeakSet(), _TodoTaskRemoveCommand_initTel
|
|
|
105
96
|
}, {
|
|
106
97
|
option: '--confirm'
|
|
107
98
|
});
|
|
108
|
-
},
|
|
109
|
-
this.
|
|
110
|
-
if (!args.options.listName && !args.options.listId) {
|
|
111
|
-
return 'Specify name or id of the To Do list';
|
|
112
|
-
}
|
|
113
|
-
if (args.options.listName && args.options.listId) {
|
|
114
|
-
return 'Specify either the name or the id of the To Do list but not both';
|
|
115
|
-
}
|
|
116
|
-
return true;
|
|
117
|
-
}));
|
|
99
|
+
}, _TodoTaskRemoveCommand_initOptionSets = function _TodoTaskRemoveCommand_initOptionSets() {
|
|
100
|
+
this.optionSets.push(['listName', 'listId']);
|
|
118
101
|
};
|
|
119
102
|
module.exports = new TodoTaskRemoveCommand();
|
|
120
103
|
//# sourceMappingURL=task-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 _TodoTaskSetCommand_instances, _TodoTaskSetCommand_initTelemetry, _TodoTaskSetCommand_initOptions, _TodoTaskSetCommand_initValidators;
|
|
16
|
+
var _TodoTaskSetCommand_instances, _TodoTaskSetCommand_initTelemetry, _TodoTaskSetCommand_initOptions, _TodoTaskSetCommand_initValidators, _TodoTaskSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -25,6 +25,7 @@ class TodoTaskSetCommand extends GraphCommand_1.default {
|
|
|
25
25
|
__classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initTelemetry).call(this);
|
|
26
26
|
__classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initOptions).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initValidators).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initOptionSets).call(this);
|
|
28
29
|
}
|
|
29
30
|
get name() {
|
|
30
31
|
return commands_1.default.TASK_SET;
|
|
@@ -109,12 +110,6 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
|
|
|
109
110
|
});
|
|
110
111
|
}, _TodoTaskSetCommand_initValidators = function _TodoTaskSetCommand_initValidators() {
|
|
111
112
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
if (args.options.listId && args.options.listName) {
|
|
113
|
-
return 'Specify listId or listName but not both';
|
|
114
|
-
}
|
|
115
|
-
if (!args.options.listId && !args.options.listName) {
|
|
116
|
-
return 'Specify listId or listName';
|
|
117
|
-
}
|
|
118
113
|
if (args.options.status &&
|
|
119
114
|
args.options.status !== 'notStarted' &&
|
|
120
115
|
args.options.status !== 'inProgress' &&
|
|
@@ -125,6 +120,8 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
|
|
|
125
120
|
}
|
|
126
121
|
return true;
|
|
127
122
|
}));
|
|
123
|
+
}, _TodoTaskSetCommand_initOptionSets = function _TodoTaskSetCommand_initOptionSets() {
|
|
124
|
+
this.optionSets.push(['listId', 'listName']);
|
|
128
125
|
};
|
|
129
126
|
module.exports = new TodoTaskSetCommand();
|
|
130
127
|
//# sourceMappingURL=task-set.js.map
|