@pnp/cli-microsoft365 7.0.0-beta.5fdb9e3 → 7.0.0-beta.607e42d
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/.eslintrc.cjs +0 -2
- package/dist/GlobalOptions.js +1 -7
- package/dist/m365/aad/commands/app/app-add.js +8 -8
- package/dist/m365/aad/commands/app/app-role-add.js +5 -5
- package/dist/m365/aad/commands/app/app-set.js +5 -5
- package/dist/m365/aad/commands/group/group-get.js +4 -4
- package/dist/m365/aad/commands/group/group-list.js +1 -23
- package/dist/m365/aad/commands/policy/policy-list.js +5 -5
- package/dist/m365/cli/commands/cli-issue.js +5 -5
- package/dist/m365/cli/commands/config/config-get.js +5 -5
- package/dist/m365/cli/commands/config/config-reset.js +5 -5
- package/dist/m365/cli/commands/config/config-set.js +5 -5
- package/dist/m365/commands/login.js +5 -5
- package/dist/m365/commands/request.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +5 -5
- package/dist/m365/pa/commands/app/app-export.js +7 -7
- package/dist/m365/pa/commands/app/app-owner-set.js +5 -5
- package/dist/m365/pa/commands/app/app-permission-ensure.js +5 -5
- package/dist/m365/pa/commands.js +1 -4
- package/dist/m365/planner/commands/task/task-add.js +17 -11
- package/dist/m365/planner/commands/task/task-get.js +35 -25
- package/dist/m365/planner/commands/task/task-list.js +26 -19
- package/dist/m365/planner/commands/task/task-remove.js +39 -34
- package/dist/m365/planner/commands/task/task-set.js +35 -23
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +14 -14
- package/dist/m365/spfx/commands/package/package-generate.js +15 -15
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +55 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +8 -8
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +157 -0
- package/dist/m365/spfx/commands/project/project-github-workflow-model.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -13
- package/dist/m365/spfx/commands.js +1 -0
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +5 -5
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-add.js +11 -11
- package/dist/m365/spo/commands/commandset/commandset-get.js +8 -8
- package/dist/m365/spo/commands/commandset/commandset-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-remove.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-set.js +11 -11
- package/dist/m365/spo/commands/file/file-get.js +9 -6
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +5 -5
- package/dist/m365/spo/commands/list/list-add.js +4 -4
- package/dist/m365/spo/commands/list/list-set.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +8 -8
- package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
- package/dist/m365/spo/commands/page/page-get.js +1 -0
- package/dist/m365/spo/commands/page/page-list.js +4 -3
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +30 -32
- package/dist/m365/spo/commands/site/site-add.js +114 -161
- package/dist/m365/spo/commands/site/site-apppermission-add.js +15 -18
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +34 -38
- package/dist/m365/spo/commands/site/site-apppermission-set.js +11 -14
- package/dist/m365/spo/commands/site/site-ensure.js +13 -66
- package/dist/m365/spo/commands/site/site-list.js +9 -17
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +6 -6
- package/dist/m365/spo/commands/site/site-remove.js +166 -210
- package/dist/m365/spo/commands/site/site-set.js +121 -153
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +4 -4
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/web/web-set.js +5 -5
- package/dist/m365/teams/commands/app/app-list.js +5 -5
- package/dist/m365/teams/commands/chat/chat-member-add.js +5 -5
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +4 -4
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +4 -4
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +4 -4
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +5 -5
- package/dist/m365/teams/commands/team/team-set.js +3 -3
- package/dist/m365/todo/commands/task/task-add.js +6 -6
- package/dist/m365/yammer/commands/message/message-list.js +5 -5
- package/dist/m365/yammer/commands/yammer-search.js +5 -5
- package/dist/utils/aadGroup.js +18 -0
- package/dist/utils/fsUtil.js +5 -0
- package/dist/utils/spo.js +582 -0
- package/dist/utils/validation.js +0 -3
- package/docs/docs/cmd/aad/group/group-get.mdx +5 -5
- package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
- package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
- package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
- package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
- package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +2 -5
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
- package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
- package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +2 -4
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
- package/npm-shrinkwrap.json +239 -1416
- package/package.json +6 -12
- package/dist/m365/pa/cds-project-mutator.js +0 -91
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
- package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
- package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
- package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
- package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
- package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
- package/dist/m365/pa/commands/solution/solution-init.js +0 -126
- package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
- package/dist/m365/pa/template-instantiator.js +0 -57
- package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
- package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
- package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsAppListCommand_instances, _TeamsAppListCommand_initTelemetry, _TeamsAppListCommand_initOptions, _TeamsAppListCommand_initValidators;
|
|
6
|
+
var _TeamsAppListCommand_instances, _a, _TeamsAppListCommand_initTelemetry, _TeamsAppListCommand_initOptions, _TeamsAppListCommand_initValidators;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
@@ -38,7 +38,7 @@ class TeamsAppListCommand extends GraphCommand {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
_TeamsAppListCommand_instances = new WeakSet(), _TeamsAppListCommand_initTelemetry = function _TeamsAppListCommand_initTelemetry() {
|
|
41
|
+
_a = TeamsAppListCommand, _TeamsAppListCommand_instances = new WeakSet(), _TeamsAppListCommand_initTelemetry = function _TeamsAppListCommand_initTelemetry() {
|
|
42
42
|
this.telemetry.push((args) => {
|
|
43
43
|
Object.assign(this.telemetryProperties, {
|
|
44
44
|
distributionMethod: args.options.distributionMethod || false
|
|
@@ -47,13 +47,13 @@ _TeamsAppListCommand_instances = new WeakSet(), _TeamsAppListCommand_initTelemet
|
|
|
47
47
|
}, _TeamsAppListCommand_initOptions = function _TeamsAppListCommand_initOptions() {
|
|
48
48
|
this.options.unshift({
|
|
49
49
|
option: '--distributionMethod [distributionMethod]',
|
|
50
|
-
autocomplete:
|
|
50
|
+
autocomplete: _a.allowedDistributionMethods
|
|
51
51
|
});
|
|
52
52
|
}, _TeamsAppListCommand_initValidators = function _TeamsAppListCommand_initValidators() {
|
|
53
53
|
this.validators.push(async (args) => {
|
|
54
54
|
if (args.options.distributionMethod &&
|
|
55
|
-
|
|
56
|
-
return `'${args.options.distributionMethod}' is not a valid distributionMethod. Allowed distribution methods are: ${
|
|
55
|
+
_a.allowedDistributionMethods.indexOf(args.options.distributionMethod) < 0) {
|
|
56
|
+
return `'${args.options.distributionMethod}' is not a valid distributionMethod. Allowed distribution methods are: ${_a.allowedDistributionMethods.join(', ')}`;
|
|
57
57
|
}
|
|
58
58
|
return true;
|
|
59
59
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsChatMemberAddCommand_instances, _TeamsChatMemberAddCommand_initTelemetry, _TeamsChatMemberAddCommand_initOptions, _TeamsChatMemberAddCommand_initValidators, _TeamsChatMemberAddCommand_initOptionSets;
|
|
6
|
+
var _TeamsChatMemberAddCommand_instances, _a, _TeamsChatMemberAddCommand_initTelemetry, _TeamsChatMemberAddCommand_initOptions, _TeamsChatMemberAddCommand_initValidators, _TeamsChatMemberAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -49,7 +49,7 @@ class TeamsChatMemberAddCommand extends GraphCommand {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
_TeamsChatMemberAddCommand_instances = new WeakSet(), _TeamsChatMemberAddCommand_initTelemetry = function _TeamsChatMemberAddCommand_initTelemetry() {
|
|
52
|
+
_a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakSet(), _TeamsChatMemberAddCommand_initTelemetry = function _TeamsChatMemberAddCommand_initTelemetry() {
|
|
53
53
|
this.telemetry.push((args) => {
|
|
54
54
|
Object.assign(this.telemetryProperties, {
|
|
55
55
|
userId: typeof args.options.userId !== 'undefined',
|
|
@@ -68,7 +68,7 @@ _TeamsChatMemberAddCommand_instances = new WeakSet(), _TeamsChatMemberAddCommand
|
|
|
68
68
|
option: '--userName [userName]'
|
|
69
69
|
}, {
|
|
70
70
|
option: '--role [role]',
|
|
71
|
-
autocomplete:
|
|
71
|
+
autocomplete: _a.roles
|
|
72
72
|
}, {
|
|
73
73
|
option: '--visibleHistoryStartDateTime [visibleHistoryStartDateTime]'
|
|
74
74
|
}, {
|
|
@@ -85,8 +85,8 @@ _TeamsChatMemberAddCommand_instances = new WeakSet(), _TeamsChatMemberAddCommand
|
|
|
85
85
|
if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
|
|
86
86
|
return `${args.options.userName} is not a valid userName.`;
|
|
87
87
|
}
|
|
88
|
-
if (args.options.role &&
|
|
89
|
-
return `${args.options.role} is not a valid role. Allowed values are ${
|
|
88
|
+
if (args.options.role && _a.roles.indexOf(args.options.role) < 0) {
|
|
89
|
+
return `${args.options.role} is not a valid role. Allowed values are ${_a.roles.join(', ')}`;
|
|
90
90
|
}
|
|
91
91
|
if (args.options.visibleHistoryStartDateTime && !validation.isValidISODateTime(args.options.visibleHistoryStartDateTime)) {
|
|
92
92
|
return `'${args.options.visibleHistoryStartDateTime}' is not a valid visibleHistoryStartDateTime.`;
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsFunSettingsSetCommand_instances, _TeamsFunSettingsSetCommand_initTelemetry, _TeamsFunSettingsSetCommand_initOptions, _TeamsFunSettingsSetCommand_initTypes, _TeamsFunSettingsSetCommand_initValidators;
|
|
6
|
+
var _TeamsFunSettingsSetCommand_instances, _a, _TeamsFunSettingsSetCommand_initTelemetry, _TeamsFunSettingsSetCommand_initOptions, _TeamsFunSettingsSetCommand_initTypes, _TeamsFunSettingsSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -32,7 +32,7 @@ class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
|
32
32
|
const data = {
|
|
33
33
|
funSettings: {}
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
_a.booleanProps.forEach(p => {
|
|
36
36
|
if (typeof args.options[p] !== 'undefined') {
|
|
37
37
|
data.funSettings[p] = args.options[p];
|
|
38
38
|
}
|
|
@@ -55,12 +55,12 @@ class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
_TeamsFunSettingsSetCommand_instances = new WeakSet(), _TeamsFunSettingsSetCommand_initTelemetry = function _TeamsFunSettingsSetCommand_initTelemetry() {
|
|
58
|
+
_a = TeamsFunSettingsSetCommand, _TeamsFunSettingsSetCommand_instances = new WeakSet(), _TeamsFunSettingsSetCommand_initTelemetry = function _TeamsFunSettingsSetCommand_initTelemetry() {
|
|
59
59
|
this.telemetry.push((args) => {
|
|
60
60
|
Object.assign(this.telemetryProperties, {
|
|
61
61
|
giphyContentRating: args.options.giphyContentRating
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
_a.booleanProps.forEach(p => {
|
|
64
64
|
this.telemetryProperties[p] = args.options[p];
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsGuestSettingsSetCommand_instances, _TeamsGuestSettingsSetCommand_initTelemetry, _TeamsGuestSettingsSetCommand_initOptions, _TeamsGuestSettingsSetCommand_initTypes, _TeamsGuestSettingsSetCommand_initValidators;
|
|
6
|
+
var _TeamsGuestSettingsSetCommand_instances, _a, _TeamsGuestSettingsSetCommand_initTelemetry, _TeamsGuestSettingsSetCommand_initOptions, _TeamsGuestSettingsSetCommand_initTypes, _TeamsGuestSettingsSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -28,7 +28,7 @@ class TeamsGuestSettingsSetCommand extends GraphCommand {
|
|
|
28
28
|
const data = {
|
|
29
29
|
guestSettings: {}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
_a.booleanProps.forEach(p => {
|
|
32
32
|
if (typeof args.options[p] !== 'undefined') {
|
|
33
33
|
data.guestSettings[p] = args.options[p];
|
|
34
34
|
}
|
|
@@ -49,9 +49,9 @@ class TeamsGuestSettingsSetCommand extends GraphCommand {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
_TeamsGuestSettingsSetCommand_instances = new WeakSet(), _TeamsGuestSettingsSetCommand_initTelemetry = function _TeamsGuestSettingsSetCommand_initTelemetry() {
|
|
52
|
+
_a = TeamsGuestSettingsSetCommand, _TeamsGuestSettingsSetCommand_instances = new WeakSet(), _TeamsGuestSettingsSetCommand_initTelemetry = function _TeamsGuestSettingsSetCommand_initTelemetry() {
|
|
53
53
|
this.telemetry.push((args) => {
|
|
54
|
-
|
|
54
|
+
_a.booleanProps.forEach(p => {
|
|
55
55
|
this.telemetryProperties[p] = args.options[p];
|
|
56
56
|
});
|
|
57
57
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsMemberSettingsSetCommand_instances, _TeamsMemberSettingsSetCommand_initTelemetry, _TeamsMemberSettingsSetCommand_initOptions, _TeamsMemberSettingsSetCommand_initTypes, _TeamsMemberSettingsSetCommand_initValidators;
|
|
6
|
+
var _TeamsMemberSettingsSetCommand_instances, _a, _TeamsMemberSettingsSetCommand_initTelemetry, _TeamsMemberSettingsSetCommand_initOptions, _TeamsMemberSettingsSetCommand_initTypes, _TeamsMemberSettingsSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -28,7 +28,7 @@ class TeamsMemberSettingsSetCommand extends GraphCommand {
|
|
|
28
28
|
const data = {
|
|
29
29
|
memberSettings: {}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
_a.booleanProps.forEach(p => {
|
|
32
32
|
if (typeof args.options[p] !== 'undefined') {
|
|
33
33
|
data.memberSettings[p] = args.options[p];
|
|
34
34
|
}
|
|
@@ -49,9 +49,9 @@ class TeamsMemberSettingsSetCommand extends GraphCommand {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
_TeamsMemberSettingsSetCommand_instances = new WeakSet(), _TeamsMemberSettingsSetCommand_initTelemetry = function _TeamsMemberSettingsSetCommand_initTelemetry() {
|
|
52
|
+
_a = TeamsMemberSettingsSetCommand, _TeamsMemberSettingsSetCommand_instances = new WeakSet(), _TeamsMemberSettingsSetCommand_initTelemetry = function _TeamsMemberSettingsSetCommand_initTelemetry() {
|
|
53
53
|
this.telemetry.push((args) => {
|
|
54
|
-
|
|
54
|
+
_a.booleanProps.forEach(p => {
|
|
55
55
|
this.telemetryProperties[p] = args.options[p];
|
|
56
56
|
});
|
|
57
57
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsMessagingSettingsSetCommand_instances, _TeamsMessagingSettingsSetCommand_initTelemetry, _TeamsMessagingSettingsSetCommand_initOptions, _TeamsMessagingSettingsSetCommand_initTypes, _TeamsMessagingSettingsSetCommand_initValidators;
|
|
6
|
+
var _TeamsMessagingSettingsSetCommand_instances, _a, _TeamsMessagingSettingsSetCommand_initTelemetry, _TeamsMessagingSettingsSetCommand_initOptions, _TeamsMessagingSettingsSetCommand_initTypes, _TeamsMessagingSettingsSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -28,7 +28,7 @@ class TeamsMessagingSettingsSetCommand extends GraphCommand {
|
|
|
28
28
|
const data = {
|
|
29
29
|
messagingSettings: {}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
_a.booleanProps.forEach((p) => {
|
|
32
32
|
if (typeof args.options[p] !== 'undefined') {
|
|
33
33
|
data.messagingSettings[p] = args.options[p];
|
|
34
34
|
}
|
|
@@ -49,9 +49,9 @@ class TeamsMessagingSettingsSetCommand extends GraphCommand {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
_TeamsMessagingSettingsSetCommand_instances = new WeakSet(), _TeamsMessagingSettingsSetCommand_initTelemetry = function _TeamsMessagingSettingsSetCommand_initTelemetry() {
|
|
52
|
+
_a = TeamsMessagingSettingsSetCommand, _TeamsMessagingSettingsSetCommand_instances = new WeakSet(), _TeamsMessagingSettingsSetCommand_initTelemetry = function _TeamsMessagingSettingsSetCommand_initTelemetry() {
|
|
53
53
|
this.telemetry.push((args) => {
|
|
54
|
-
|
|
54
|
+
_a.booleanProps.forEach((p) => {
|
|
55
55
|
this.telemetryProperties[p] = args.options[p];
|
|
56
56
|
});
|
|
57
57
|
});
|
|
@@ -83,7 +83,7 @@ _TeamsMessagingSettingsSetCommand_instances = new WeakSet(), _TeamsMessagingSett
|
|
|
83
83
|
}
|
|
84
84
|
let hasDuplicate = false;
|
|
85
85
|
let property = '';
|
|
86
|
-
|
|
86
|
+
_a.booleanProps.forEach((prop) => {
|
|
87
87
|
if (args.options[prop] instanceof Array) {
|
|
88
88
|
property = prop;
|
|
89
89
|
hasDuplicate = true;
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators;
|
|
6
|
+
var _TeamsTeamSetCommand_instances, _a, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -60,9 +60,9 @@ class TeamsTeamSetCommand extends GraphCommand {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
_TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemetry = function _TeamsTeamSetCommand_initTelemetry() {
|
|
63
|
+
_a = TeamsTeamSetCommand, _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemetry = function _TeamsTeamSetCommand_initTelemetry() {
|
|
64
64
|
this.telemetry.push((args) => {
|
|
65
|
-
|
|
65
|
+
_a.props.forEach((p) => {
|
|
66
66
|
this.telemetryProperties[p] = typeof args.options[p] !== 'undefined';
|
|
67
67
|
});
|
|
68
68
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _TodoTaskAddCommand_instances, _TodoTaskAddCommand_initTelemetry, _TodoTaskAddCommand_initOptions, _TodoTaskAddCommand_initValidators, _TodoTaskAddCommand_initOptionSets;
|
|
6
|
+
var _TodoTaskAddCommand_instances, _a, _TodoTaskAddCommand_initTelemetry, _TodoTaskAddCommand_initOptions, _TodoTaskAddCommand_initValidators, _TodoTaskAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -27,7 +27,7 @@ class TodoTaskAddCommand extends GraphCommand {
|
|
|
27
27
|
const endpoint = `${this.resource}/v1.0`;
|
|
28
28
|
try {
|
|
29
29
|
const listId = await this.getTodoListId(args);
|
|
30
|
-
const status = args.options.status &&
|
|
30
|
+
const status = args.options.status && _a.allowedStatuses.filter(x => x.toLowerCase() === args.options.status.toLowerCase())[0];
|
|
31
31
|
const requestOptions = {
|
|
32
32
|
url: `${endpoint}/me/todo/lists/${listId}/tasks`,
|
|
33
33
|
headers: {
|
|
@@ -85,7 +85,7 @@ class TodoTaskAddCommand extends GraphCommand {
|
|
|
85
85
|
return taskList.id;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
_TodoTaskAddCommand_instances = new WeakSet(), _TodoTaskAddCommand_initTelemetry = function _TodoTaskAddCommand_initTelemetry() {
|
|
88
|
+
_a = TodoTaskAddCommand, _TodoTaskAddCommand_instances = new WeakSet(), _TodoTaskAddCommand_initTelemetry = function _TodoTaskAddCommand_initTelemetry() {
|
|
89
89
|
this.telemetry.push((args) => {
|
|
90
90
|
Object.assign(this.telemetryProperties, {
|
|
91
91
|
listId: typeof args.options.listId !== 'undefined',
|
|
@@ -128,7 +128,7 @@ _TodoTaskAddCommand_instances = new WeakSet(), _TodoTaskAddCommand_initTelemetry
|
|
|
128
128
|
option: '--startDateTime [startDateTime]'
|
|
129
129
|
}, {
|
|
130
130
|
option: '--status [status]',
|
|
131
|
-
autocomplete:
|
|
131
|
+
autocomplete: _a.allowedStatuses
|
|
132
132
|
});
|
|
133
133
|
}, _TodoTaskAddCommand_initValidators = function _TodoTaskAddCommand_initValidators() {
|
|
134
134
|
this.validators.push(async (args) => {
|
|
@@ -150,8 +150,8 @@ _TodoTaskAddCommand_instances = new WeakSet(), _TodoTaskAddCommand_initTelemetry
|
|
|
150
150
|
if (args.options.startDateTime && !validation.isValidISODateTime(args.options.startDateTime)) {
|
|
151
151
|
return `'${args.options.startDateTime}' is not a valid datetime.`;
|
|
152
152
|
}
|
|
153
|
-
if (args.options.status &&
|
|
154
|
-
return `${args.options.status} is not a valid value for status. Valid values are ${
|
|
153
|
+
if (args.options.status && _a.allowedStatuses.map(x => x.toLowerCase()).indexOf(args.options.status.toLowerCase()) === -1) {
|
|
154
|
+
return `${args.options.status} is not a valid value for status. Valid values are ${_a.allowedStatuses.join(', ')}`;
|
|
155
155
|
}
|
|
156
156
|
if (args.options.completedDateTime && args.options.status?.toLowerCase() !== 'completed') {
|
|
157
157
|
return `The completedDateTime option can only be used when the status option is set to completed`;
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _YammerMessageListCommand_instances, _YammerMessageListCommand_initTelemetry, _YammerMessageListCommand_initOptions, _YammerMessageListCommand_initValidators;
|
|
6
|
+
var _YammerMessageListCommand_instances, _a, _YammerMessageListCommand_initTelemetry, _YammerMessageListCommand_initOptions, _YammerMessageListCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import YammerCommand from '../../../base/YammerCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
@@ -117,7 +117,7 @@ class YammerMessageListCommand extends YammerCommand {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
_YammerMessageListCommand_instances = new WeakSet(), _YammerMessageListCommand_initTelemetry = function _YammerMessageListCommand_initTelemetry() {
|
|
120
|
+
_a = YammerMessageListCommand, _YammerMessageListCommand_instances = new WeakSet(), _YammerMessageListCommand_initTelemetry = function _YammerMessageListCommand_initTelemetry() {
|
|
121
121
|
this.telemetry.push((args) => {
|
|
122
122
|
Object.assign(this.telemetryProperties, {
|
|
123
123
|
olderThanId: args.options.olderThanId !== undefined,
|
|
@@ -133,7 +133,7 @@ _YammerMessageListCommand_instances = new WeakSet(), _YammerMessageListCommand_i
|
|
|
133
133
|
option: '--olderThanId [olderThanId]'
|
|
134
134
|
}, {
|
|
135
135
|
option: '--feedType [feedType]',
|
|
136
|
-
autocomplete:
|
|
136
|
+
autocomplete: _a.feedTypes
|
|
137
137
|
}, {
|
|
138
138
|
option: '--groupId [groupId]'
|
|
139
139
|
}, {
|
|
@@ -151,8 +151,8 @@ _YammerMessageListCommand_instances = new WeakSet(), _YammerMessageListCommand_i
|
|
|
151
151
|
if (args.options.feedType && (args.options.groupId || args.options.threadId)) {
|
|
152
152
|
return `You cannot specify the feedType with groupId or threadId at the same time`;
|
|
153
153
|
}
|
|
154
|
-
if (args.options.feedType &&
|
|
155
|
-
return `${args.options.feedType} is not a valid value for the feedType option. Allowed values are ${
|
|
154
|
+
if (args.options.feedType && _a.feedTypes.indexOf(args.options.feedType) < 0) {
|
|
155
|
+
return `${args.options.feedType} is not a valid value for the feedType option. Allowed values are ${_a.feedTypes.join('|')}`;
|
|
156
156
|
}
|
|
157
157
|
if (args.options.olderThanId && typeof args.options.olderThanId !== 'number') {
|
|
158
158
|
return `${args.options.olderThanId} is not a number`;
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _YammerSearchCommand_instances, _YammerSearchCommand_initTelemetry, _YammerSearchCommand_initOptions, _YammerSearchCommand_initValidators;
|
|
6
|
+
var _YammerSearchCommand_instances, _a, _YammerSearchCommand_initTelemetry, _YammerSearchCommand_initOptions, _YammerSearchCommand_initValidators;
|
|
7
7
|
import { Cli } from '../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../request.js';
|
|
9
9
|
import { formatting } from '../../../utils/formatting.js';
|
|
@@ -169,7 +169,7 @@ class YammerSearchCommand extends YammerCommand {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
_YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemetry = function _YammerSearchCommand_initTelemetry() {
|
|
172
|
+
_a = YammerSearchCommand, _YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemetry = function _YammerSearchCommand_initTelemetry() {
|
|
173
173
|
this.telemetry.push((args) => {
|
|
174
174
|
Object.assign(this.telemetryProperties, {
|
|
175
175
|
show: typeof args.options.show !== 'undefined',
|
|
@@ -181,7 +181,7 @@ _YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemet
|
|
|
181
181
|
option: '--queryText <queryText>'
|
|
182
182
|
}, {
|
|
183
183
|
option: '--show [show]',
|
|
184
|
-
autocomplete:
|
|
184
|
+
autocomplete: _a.showOptions
|
|
185
185
|
}, {
|
|
186
186
|
option: '--limit [limit]'
|
|
187
187
|
});
|
|
@@ -196,8 +196,8 @@ _YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemet
|
|
|
196
196
|
if (args.options.output !== 'json') {
|
|
197
197
|
if (typeof args.options.show !== 'undefined') {
|
|
198
198
|
const scope = args.options.show.toString().toLowerCase();
|
|
199
|
-
if (
|
|
200
|
-
return `${scope} is not a valid value for show. Allowed values are ${
|
|
199
|
+
if (_a.showOptions.indexOf(scope) < 0) {
|
|
200
|
+
return `${scope} is not a valid value for show. Allowed values are ${_a.showOptions.join(', ')}`;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
package/dist/utils/aadGroup.js
CHANGED
|
@@ -55,6 +55,24 @@ export const aadGroup = {
|
|
|
55
55
|
throw Error(`Multiple groups with name '${displayName}' found: ${groups.map(x => x.id).join(',')}.`);
|
|
56
56
|
}
|
|
57
57
|
return groups[0].id;
|
|
58
|
+
},
|
|
59
|
+
async setGroup(id, isPrivate, logger, verbose) {
|
|
60
|
+
if (verbose && logger) {
|
|
61
|
+
await logger.logToStderr(`Updating Microsoft 365 Group ${id}...`);
|
|
62
|
+
}
|
|
63
|
+
const update = {};
|
|
64
|
+
if (typeof isPrivate !== 'undefined') {
|
|
65
|
+
update.visibility = isPrivate ? 'Private' : 'Public';
|
|
66
|
+
}
|
|
67
|
+
const requestOptions = {
|
|
68
|
+
url: `${graphResource}/v1.0/groups/${id}`,
|
|
69
|
+
headers: {
|
|
70
|
+
'accept': 'application/json;odata.metadata=none'
|
|
71
|
+
},
|
|
72
|
+
responseType: 'json',
|
|
73
|
+
data: update
|
|
74
|
+
};
|
|
75
|
+
await request.patch(requestOptions);
|
|
58
76
|
}
|
|
59
77
|
};
|
|
60
78
|
//# sourceMappingURL=aadGroup.js.map
|
package/dist/utils/fsUtil.js
CHANGED
|
@@ -96,6 +96,11 @@ export const fsUtil = {
|
|
|
96
96
|
},
|
|
97
97
|
getRemoveCommand(command, shell) {
|
|
98
98
|
return removeFileCommands[shell][command];
|
|
99
|
+
},
|
|
100
|
+
ensureDirectory(path) {
|
|
101
|
+
if (!fs.existsSync(path)) {
|
|
102
|
+
fs.mkdirSync(path, { recursive: true });
|
|
103
|
+
}
|
|
99
104
|
}
|
|
100
105
|
};
|
|
101
106
|
//# sourceMappingURL=fsUtil.js.map
|