@pnp/cli-microsoft365 6.0.0-beta.5bdba89 → 6.0.0-beta.5ea1353
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 +7 -10
- package/dist/m365/aad/commands/app/app-get.js +3 -2
- package/dist/m365/aad/commands/app/app-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-role-add.js +3 -2
- package/dist/m365/aad/commands/app/app-role-list.js +3 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-set.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
- package/dist/m365/aad/commands/sp/sp-add.js +3 -2
- package/dist/m365/aad/commands/sp/sp-get.js +3 -2
- package/dist/m365/aad/commands/user/user-get.js +5 -4
- package/dist/m365/aad/commands/user/user-hibp.js +2 -1
- package/dist/m365/aad/commands/user/user-list.js +2 -1
- package/dist/m365/aad/commands/user/user-set.js +2 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
- package/dist/m365/base/PeriodBasedReport.js +2 -1
- package/dist/m365/booking/commands/business/business-get.js +2 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/commands/login.js +6 -1
- package/dist/m365/file/commands/file-list.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +2 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -1
- package/dist/m365/flow/commands/flow-enable.js +2 -1
- package/dist/m365/flow/commands/flow-export.js +5 -4
- package/dist/m365/flow/commands/flow-get.js +2 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -1
- package/dist/m365/flow/commands/run/run-cancel.js +2 -1
- package/dist/m365/flow/commands/run/run-get.js +2 -1
- package/dist/m365/flow/commands/run/run-list.js +2 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
- package/dist/m365/outlook/commands/mail/mail-send.js +2 -1
- package/dist/m365/outlook/commands/message/message-list.js +2 -1
- package/dist/m365/outlook/commands/message/message-move.js +2 -1
- package/dist/m365/pa/commands/app/app-get.js +2 -1
- package/dist/m365/pa/commands/app/app-list.js +2 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -1
- package/dist/m365/pa/commands/connector/connector-export.js +2 -1
- package/dist/m365/pa/commands/connector/connector-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +2 -1
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
- package/dist/m365/planner/commands/task/task-get.js +2 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -3
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +95 -0
- package/dist/m365/pp/commands/gateway/gateway-get.js +2 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
- package/dist/m365/pp/commands/solution/solution-list.js +5 -11
- package/dist/m365/pp/commands.js +1 -0
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.16.0-rc.0.js → doctor-1.16.0.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-rc.0.js → upgrade-1.16.0.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
- package/dist/m365/spo/commands/app/app-get.js +2 -1
- package/dist/m365/spo/commands/app/app-install.js +2 -1
- package/dist/m365/spo/commands/app/app-remove.js +2 -1
- package/dist/m365/spo/commands/app/app-retract.js +2 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
- package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +43 -27
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +43 -58
- package/dist/m365/spo/commands/file/file-add.js +14 -13
- package/dist/m365/spo/commands/file/file-checkin.js +4 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -2
- package/dist/m365/spo/commands/file/file-copy.js +2 -1
- package/dist/m365/spo/commands/file/file-get.js +3 -2
- package/dist/m365/spo/commands/file/file-move.js +2 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -2
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/folder/folder-get.js +3 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-get.js +3 -2
- package/dist/m365/spo/commands/group/{group-user-add.js → group-member-add.js} +17 -16
- package/dist/m365/spo/commands/group/{group-user-list.js → group-member-list.js} +19 -18
- package/dist/m365/spo/commands/group/{group-user-remove.js → group-member-remove.js} +18 -17
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +14 -6
- package/dist/m365/spo/commands/list/list-label-get.js +34 -22
- package/dist/m365/spo/commands/list/list-sitescript-get.js +35 -24
- package/dist/m365/spo/commands/list/list-view-field-add.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-set.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +3 -3
- package/dist/m365/spo/commands/page/Page.js +3 -2
- package/dist/m365/spo/commands/page/page-add.js +2 -1
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +4 -3
- package/dist/m365/spo/commands/page/page-control-get.js +2 -1
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -2
- package/dist/m365/spo/commands/page/page-get.js +2 -1
- package/dist/m365/spo/commands/page/page-header-set.js +6 -5
- package/dist/m365/spo/commands/page/page-section-add.js +4 -3
- package/dist/m365/spo/commands/page/page-set.js +2 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +2 -1
- package/dist/m365/spo/commands/site/site-rename.js +2 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
- package/dist/m365/spo/commands/spo-search.js +3 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/user/user-get.js +4 -3
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
- package/dist/m365/spo/commands/web/web-add.js +2 -1
- package/dist/m365/spo/commands.js +3 -3
- package/dist/m365/teams/commands/app/app-install.js +3 -2
- package/dist/m365/teams/commands/app/app-list.js +2 -1
- package/dist/m365/teams/commands/app/app-publish.js +14 -15
- package/dist/m365/teams/commands/app/app-update.js +2 -1
- package/dist/m365/teams/commands/cache/cache-remove.js +41 -10
- package/dist/m365/teams/commands/channel/channel-get.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -2
- package/dist/m365/teams/commands/channel/channel-set.js +3 -2
- package/dist/m365/teams/commands/chat/chat-get.js +2 -1
- package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
- package/dist/m365/teams/commands/tab/tab-add.js +2 -1
- package/dist/m365/teams/commands/tab/tab-get.js +4 -3
- package/dist/m365/teams/commands/tab/tab-list.js +2 -1
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-archive.js +2 -1
- package/dist/m365/teams/commands/team/team-clone.js +2 -1
- package/dist/m365/teams/commands/team/team-get.js +2 -1
- package/dist/m365/teams/commands/team/team-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-set.js +2 -1
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -1
- package/dist/m365/teams/commands/user/user-app-list.js +3 -2
- package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
- package/dist/m365/todo/commands/task/task-set.js +2 -1
- package/dist/m365/yammer/commands/group/group-list.js +12 -27
- package/dist/m365/yammer/commands/user/user-get.js +3 -2
- package/dist/m365/yammer/commands/yammer-search.js +6 -2
- package/dist/utils/aadGroup.js +2 -1
- package/dist/utils/powerPlatform.js +3 -2
- package/dist/utils/spo.js +3 -2
- package/docs/docs/cmd/aad/user/user-guest-add.md +1 -1
- package/docs/docs/cmd/app/app-open.md +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.md +49 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +42 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +6 -1
- package/docs/docs/cmd/spo/group/{group-user-add.md → group-member-add.md} +11 -11
- package/docs/docs/cmd/spo/group/{group-user-list.md → group-member-list.md} +5 -5
- package/docs/docs/cmd/spo/group/group-member-remove.md +39 -0
- package/docs/docs/cmd/spo/list/list-get.md +22 -6
- package/docs/docs/cmd/spo/list/list-label-get.md +23 -7
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +23 -8
- package/docs/docs/cmd/spo/listitem/listitem-add.md +6 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.md +6 -0
- package/docs/docs/cmd/spo/page/page-add.md +2 -2
- package/docs/docs/cmd/spo/page/page-set.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +3 -3
- package/docs/docs/cmd/teams/app/app-publish.md +14 -4
- package/docs/docs/cmd/yammer/group/group-list.md +65 -0
- package/docs/docs/cmd/yammer/group/group-user-add.md +4 -0
- package/docs/docs/cmd/yammer/group/group-user-remove.md +4 -0
- package/docs/docs/cmd/yammer/message/message-add.md +55 -0
- package/docs/docs/cmd/yammer/message/message-get.md +64 -0
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -0
- package/docs/docs/cmd/yammer/message/message-list.md +60 -0
- package/docs/docs/cmd/yammer/message/message-remove.md +4 -0
- package/docs/docs/cmd/yammer/network/network-list.md +96 -0
- package/docs/docs/cmd/yammer/report/report-activitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityusercounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +36 -0
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +33 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +34 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +38 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +37 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +30 -0
- package/docs/docs/cmd/yammer/user/user-get.md +99 -0
- package/docs/docs/cmd/yammer/user/user-list.md +97 -0
- package/docs/docs/cmd/yammer/yammer-search.md +77 -0
- package/npm-shrinkwrap.json +235 -257
- package/package.json +15 -15
- package/docs/docs/cmd/spo/group/group-user-remove.md +0 -39
|
@@ -17,6 +17,7 @@ var _SpoUserRemoveCommand_instances, _SpoUserRemoveCommand_initTelemetry, _SpoUs
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -46,7 +47,7 @@ class SpoUserRemoveCommand extends SpoCommand_1.default {
|
|
|
46
47
|
requestUrl = `${encodeURI(args.options.webUrl)}/_api/web/siteusers/removebyid(${args.options.id})`;
|
|
47
48
|
}
|
|
48
49
|
if (args.options.loginName) {
|
|
49
|
-
requestUrl = `${encodeURI(args.options.webUrl)}/_api/web/siteusers/removeByLoginName('${
|
|
50
|
+
requestUrl = `${encodeURI(args.options.webUrl)}/_api/web/siteusers/removeByLoginName('${formatting_1.formatting.encodeQueryParameter(args.options.loginName)}')`;
|
|
50
51
|
}
|
|
51
52
|
const requestOptions = {
|
|
52
53
|
url: requestUrl,
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _SpoUserProfileGetCommand_instances, _SpoUserProfileGetCommand_initOptions, _SpoUserProfileGetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const spo_1 = require("../../../../utils/spo");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
@@ -39,7 +40,7 @@ class SpoUserProfileGetCommand extends SpoCommand_1.default {
|
|
|
39
40
|
const spoUrl = yield spo_1.spo.getSpoUrl(logger, this.debug);
|
|
40
41
|
const userName = `i:0#.f|membership|${args.options.userName}`;
|
|
41
42
|
const requestOptions = {
|
|
42
|
-
url: `${spoUrl}/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='${
|
|
43
|
+
url: `${spoUrl}/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='${formatting_1.formatting.encodeQueryParameter(`${userName}`)}'`,
|
|
43
44
|
headers: {
|
|
44
45
|
accept: 'application/json;odata=nometadata'
|
|
45
46
|
},
|
|
@@ -17,6 +17,7 @@ var _SpoWebAddCommand_instances, _SpoWebAddCommand_initTelemetry, _SpoWebAddComm
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const config_1 = require("../../../../config");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const spo_1 = require("../../../../utils/spo");
|
|
21
22
|
const validation_1 = require("../../../../utils/validation");
|
|
22
23
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
@@ -72,7 +73,7 @@ class SpoWebAddCommand extends SpoCommand_1.default {
|
|
|
72
73
|
if (this.verbose) {
|
|
73
74
|
logger.logToStderr("Setting inheriting navigation from the parent site...");
|
|
74
75
|
}
|
|
75
|
-
subsiteFullUrl = `${args.options.parentWebUrl}/${
|
|
76
|
+
subsiteFullUrl = `${args.options.parentWebUrl}/${formatting_1.formatting.encodeQueryParameter(args.options.url)}`;
|
|
76
77
|
const requestOptionsPer = {
|
|
77
78
|
url: `${subsiteFullUrl}/_api/web/effectivebasepermissions`,
|
|
78
79
|
headers: {
|
|
@@ -84,9 +84,9 @@ exports.default = {
|
|
|
84
84
|
GROUP_LIST: `${prefix} group list`,
|
|
85
85
|
GROUP_REMOVE: `${prefix} group remove`,
|
|
86
86
|
GROUP_SET: `${prefix} group set`,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
GROUP_MEMBER_ADD: `${prefix} group member add`,
|
|
88
|
+
GROUP_MEMBER_LIST: `${prefix} group member list`,
|
|
89
|
+
GROUP_MEMBER_REMOVE: `${prefix} group member remove`,
|
|
90
90
|
HIDEDEFAULTTHEMES_GET: `${prefix} hidedefaultthemes get`,
|
|
91
91
|
HIDEDEFAULTTHEMES_SET: `${prefix} hidedefaultthemes set`,
|
|
92
92
|
HOMESITE_GET: `${prefix} homesite get`,
|
|
@@ -17,6 +17,7 @@ var _TeamsAppInstallCommand_instances, _TeamsAppInstallCommand_initTelemetry, _T
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const AadUserGetCommand = require("../../../aad/commands/user/user-get");
|
|
22
23
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -43,10 +44,10 @@ class TeamsAppInstallCommand extends GraphCommand_1.default {
|
|
|
43
44
|
yield this.validateUser(args, logger);
|
|
44
45
|
let url = `${this.resource}/v1.0`;
|
|
45
46
|
if (args.options.teamId) {
|
|
46
|
-
url += `/teams/${
|
|
47
|
+
url += `/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}/installedApps`;
|
|
47
48
|
}
|
|
48
49
|
else {
|
|
49
|
-
url += `/users/${
|
|
50
|
+
url += `/users/${formatting_1.formatting.encodeQueryParameter(((_a = args.options.userId) !== null && _a !== void 0 ? _a : args.options.userName))}/teamwork/installedApps`;
|
|
50
51
|
}
|
|
51
52
|
const requestOptions = {
|
|
52
53
|
url: url,
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsAppListCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -56,7 +57,7 @@ class TeamsAppListCommand extends GraphCommand_1.default {
|
|
|
56
57
|
this
|
|
57
58
|
.getTeamId(args)
|
|
58
59
|
.then((teamId) => {
|
|
59
|
-
let endpoint = `${this.resource}/v1.0/teams/${
|
|
60
|
+
let endpoint = `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/installedApps?$expand=teamsApp`;
|
|
60
61
|
if (!args.options.all) {
|
|
61
62
|
endpoint += `&$filter=teamsApp/distributionMethod eq 'organization'`;
|
|
62
63
|
}
|
|
@@ -35,23 +35,22 @@ class TeamsAppPublishCommand extends GraphCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const fullPath = path.resolve(args.options.filePath);
|
|
39
|
-
if (this.verbose) {
|
|
40
|
-
logger.logToStderr(`Adding app '${fullPath}' to app catalog...`);
|
|
41
|
-
}
|
|
42
|
-
const requestOptions = {
|
|
43
|
-
url: `${this.resource}/v1.0/appCatalogs/teamsApps`,
|
|
44
|
-
headers: {
|
|
45
|
-
"content-type": "application/zip",
|
|
46
|
-
accept: 'application/json;odata.metadata=none'
|
|
47
|
-
},
|
|
48
|
-
data: fs.readFileSync(fullPath)
|
|
49
|
-
};
|
|
50
38
|
try {
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
logger.
|
|
39
|
+
const fullPath = path.resolve(args.options.filePath);
|
|
40
|
+
if (this.verbose) {
|
|
41
|
+
logger.logToStderr(`Adding app '${fullPath}' to app catalog...`);
|
|
54
42
|
}
|
|
43
|
+
const requestOptions = {
|
|
44
|
+
url: `${this.resource}/v1.0/appCatalogs/teamsApps`,
|
|
45
|
+
headers: {
|
|
46
|
+
'content-type': 'application/zip',
|
|
47
|
+
accept: 'application/json;odata.metadata=none'
|
|
48
|
+
},
|
|
49
|
+
responseType: 'json',
|
|
50
|
+
data: fs.readFileSync(fullPath)
|
|
51
|
+
};
|
|
52
|
+
const res = yield request_1.default.post(requestOptions);
|
|
53
|
+
logger.log(res);
|
|
55
54
|
}
|
|
56
55
|
catch (err) {
|
|
57
56
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const path = require("path");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
21
22
|
const validation_1 = require("../../../../utils/validation");
|
|
22
23
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
24
|
const commands_1 = require("../../commands");
|
|
@@ -64,7 +65,7 @@ class TeamsAppUpdateCommand extends GraphCommand_1.default {
|
|
|
64
65
|
return Promise.resolve(args.options.id);
|
|
65
66
|
}
|
|
66
67
|
const requestOptions = {
|
|
67
|
-
url: `${this.resource}/v1.0/appCatalogs/teamsApps?$filter=displayName eq '${
|
|
68
|
+
url: `${this.resource}/v1.0/appCatalogs/teamsApps?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'`,
|
|
68
69
|
headers: {
|
|
69
70
|
accept: 'application/json;odata.metadata=none'
|
|
70
71
|
},
|
|
@@ -15,11 +15,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsCacheRemoveCommand_instances, _TeamsCacheRemoveCommand_initTelemetry, _TeamsCacheRemoveCommand_initOptions, _TeamsCacheRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const os_1 = require("os");
|
|
18
20
|
const util = require("util");
|
|
19
21
|
const Cli_1 = require("../../../../cli/Cli");
|
|
20
|
-
const
|
|
22
|
+
const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
|
|
21
23
|
const commands_1 = require("../../commands");
|
|
22
|
-
class TeamsCacheRemoveCommand extends
|
|
24
|
+
class TeamsCacheRemoveCommand extends AnonymousCommand_1.default {
|
|
23
25
|
constructor() {
|
|
24
26
|
super();
|
|
25
27
|
_TeamsCacheRemoveCommand_instances.add(this);
|
|
@@ -63,19 +65,48 @@ class TeamsCacheRemoveCommand extends GraphCommand_1.default {
|
|
|
63
65
|
clearTeamsCache(logger) {
|
|
64
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
67
|
try {
|
|
66
|
-
|
|
67
|
-
yield this.
|
|
68
|
+
const filePath = this.getTeamsCacheFolderPath(logger);
|
|
69
|
+
const folderExists = yield this.checkIfCacheFolderExists(filePath, logger);
|
|
70
|
+
if (folderExists) {
|
|
71
|
+
yield this.killRunningProcess(logger);
|
|
72
|
+
yield this.removeCacheFiles(filePath, logger);
|
|
73
|
+
logger.logToStderr('Teams cache cleared!');
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
logger.logToStderr('Cache folder does not exist. Nothing to remove.');
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
catch (e) {
|
|
70
80
|
throw e.message;
|
|
71
81
|
}
|
|
72
|
-
logger.logToStderr('Teams cache cleared!');
|
|
73
82
|
});
|
|
74
83
|
}
|
|
84
|
+
getTeamsCacheFolderPath(logger) {
|
|
85
|
+
const platform = process.platform;
|
|
86
|
+
if (this.verbose) {
|
|
87
|
+
logger.logToStderr(`Getting path of Teams cache folder for platform ${platform}...`);
|
|
88
|
+
}
|
|
89
|
+
let filePath = '';
|
|
90
|
+
switch (platform) {
|
|
91
|
+
case 'win32':
|
|
92
|
+
filePath = `${process.env.APPDATA}\\Microsoft\\Teams`;
|
|
93
|
+
break;
|
|
94
|
+
case 'darwin':
|
|
95
|
+
filePath = `${os_1.homedir}/Library/Application Support/Microsoft/Teams`;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
return filePath;
|
|
99
|
+
}
|
|
100
|
+
checkIfCacheFolderExists(filePath, logger) {
|
|
101
|
+
if (this.verbose) {
|
|
102
|
+
logger.logToStderr(`Checking if Teams cache folder exists at ${filePath}...`);
|
|
103
|
+
}
|
|
104
|
+
return fs.existsSync(filePath);
|
|
105
|
+
}
|
|
75
106
|
killRunningProcess(logger) {
|
|
76
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
108
|
if (this.verbose) {
|
|
78
|
-
logger.logToStderr('
|
|
109
|
+
logger.logToStderr('Stopping Teams client...');
|
|
79
110
|
}
|
|
80
111
|
const platform = process.platform;
|
|
81
112
|
let cmd = '';
|
|
@@ -112,19 +143,19 @@ class TeamsCacheRemoveCommand extends GraphCommand_1.default {
|
|
|
112
143
|
}
|
|
113
144
|
});
|
|
114
145
|
}
|
|
115
|
-
removeCacheFiles(logger) {
|
|
146
|
+
removeCacheFiles(filePath, logger) {
|
|
116
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
148
|
if (this.verbose) {
|
|
118
|
-
logger.logToStderr('
|
|
149
|
+
logger.logToStderr('Removing Teams cache files...');
|
|
119
150
|
}
|
|
120
151
|
const platform = process.platform;
|
|
121
152
|
let cmd = '';
|
|
122
153
|
switch (platform) {
|
|
123
154
|
case 'win32':
|
|
124
|
-
cmd =
|
|
155
|
+
cmd = `rmdir /s /q "${filePath}"`;
|
|
125
156
|
break;
|
|
126
157
|
case 'darwin':
|
|
127
|
-
cmd =
|
|
158
|
+
cmd = `rm -r "${filePath}"`;
|
|
128
159
|
break;
|
|
129
160
|
}
|
|
130
161
|
if (this.debug) {
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsChannelGetCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -57,7 +58,7 @@ class TeamsChannelGetCommand extends GraphCommand_1.default {
|
|
|
57
58
|
return Promise.resolve('');
|
|
58
59
|
}
|
|
59
60
|
const channelRequestOptions = {
|
|
60
|
-
url: `${this.resource}/v1.0/teams/${
|
|
61
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'`,
|
|
61
62
|
headers: {
|
|
62
63
|
accept: 'application/json;odata.metadata=none'
|
|
63
64
|
},
|
|
@@ -80,10 +81,10 @@ class TeamsChannelGetCommand extends GraphCommand_1.default {
|
|
|
80
81
|
const channelId = yield this.getChannelId(args);
|
|
81
82
|
let url = '';
|
|
82
83
|
if (args.options.primary) {
|
|
83
|
-
url = `${this.resource}/v1.0/teams/${
|
|
84
|
+
url = `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/primaryChannel`;
|
|
84
85
|
}
|
|
85
86
|
else {
|
|
86
|
-
url = `${this.resource}/v1.0/teams/${
|
|
87
|
+
url = `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(channelId)}`;
|
|
87
88
|
}
|
|
88
89
|
const requestOptions = {
|
|
89
90
|
url: url,
|
|
@@ -21,6 +21,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
24
25
|
class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
|
|
25
26
|
constructor() {
|
|
26
27
|
super();
|
|
@@ -42,7 +43,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
|
|
|
42
43
|
const teamId = yield this.getTeamId(args);
|
|
43
44
|
const channelId = yield this.getChannelId(teamId, args);
|
|
44
45
|
const userIds = yield this.getUserId(args);
|
|
45
|
-
const endpoint = `${this.resource}/v1.0/teams/${
|
|
46
|
+
const endpoint = `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(channelId)}/members`;
|
|
46
47
|
const roles = args.options.owner ? ["owner"] : [];
|
|
47
48
|
const tasks = [];
|
|
48
49
|
for (const userId of userIds) {
|
|
@@ -89,7 +90,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
|
|
|
89
90
|
return Promise.resolve(args.options.channelId);
|
|
90
91
|
}
|
|
91
92
|
const channelRequestOptions = {
|
|
92
|
-
url: `${this.resource}/v1.0/teams/${
|
|
93
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.channelName)}'`,
|
|
93
94
|
headers: {
|
|
94
95
|
accept: 'application/json;odata.metadata=none'
|
|
95
96
|
},
|
|
@@ -121,7 +122,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
|
|
|
121
122
|
}
|
|
122
123
|
getSingleUser(userDisplayName) {
|
|
123
124
|
const userRequestOptions = {
|
|
124
|
-
url: `${this.resource}/v1.0/users?$filter=displayName eq '${
|
|
125
|
+
url: `${this.resource}/v1.0/users?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(userDisplayName)}'`,
|
|
125
126
|
headers: {
|
|
126
127
|
accept: 'application/json;odata.metadata=none'
|
|
127
128
|
},
|
|
@@ -21,6 +21,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
24
25
|
class TeamsChannelMemberListCommand extends GraphCommand_1.default {
|
|
25
26
|
constructor() {
|
|
26
27
|
super();
|
|
@@ -81,7 +82,7 @@ class TeamsChannelMemberListCommand extends GraphCommand_1.default {
|
|
|
81
82
|
return Promise.resolve(args.options.channelId);
|
|
82
83
|
}
|
|
83
84
|
const channelRequestOptions = {
|
|
84
|
-
url: `${this.resource}/v1.0/teams/${
|
|
85
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.channelName)}'`,
|
|
85
86
|
headers: {
|
|
86
87
|
accept: 'application/json;odata.metadata=none'
|
|
87
88
|
},
|
|
@@ -21,6 +21,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
24
25
|
class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
25
26
|
constructor() {
|
|
26
27
|
super();
|
|
@@ -107,7 +108,7 @@ class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
|
107
108
|
return Promise.resolve(args.options.channelId);
|
|
108
109
|
}
|
|
109
110
|
const requestOptions = {
|
|
110
|
-
url: `${this.resource}/v1.0/teams/${
|
|
111
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.channelName)}'`,
|
|
111
112
|
headers: {
|
|
112
113
|
accept: 'application/json;odata.metadata=none'
|
|
113
114
|
},
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -81,7 +82,7 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
81
82
|
return Promise.resolve(args.options.channelId);
|
|
82
83
|
}
|
|
83
84
|
const requestOptions = {
|
|
84
|
-
url: `${this.resource}/v1.0/teams/${
|
|
85
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.channelName)}'`,
|
|
85
86
|
headers: {
|
|
86
87
|
accept: 'application/json;odata.metadata=none'
|
|
87
88
|
},
|
|
@@ -21,6 +21,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
24
25
|
class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
25
26
|
constructor() {
|
|
26
27
|
super();
|
|
@@ -44,7 +45,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
44
45
|
this.teamId = yield this.getTeamId(args);
|
|
45
46
|
const channelId = yield this.getChannelId(args);
|
|
46
47
|
const requestOptionsDelete = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(channelId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -93,7 +94,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
93
94
|
return args.options.id;
|
|
94
95
|
}
|
|
95
96
|
const channelRequestOptions = {
|
|
96
|
-
url: `${this.resource}/v1.0/teams/${
|
|
97
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'`,
|
|
97
98
|
headers: {
|
|
98
99
|
accept: 'application/json;odata.metadata=none'
|
|
99
100
|
},
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -42,7 +43,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
42
43
|
const channelId = yield this.getChannelId(teamId, args);
|
|
43
44
|
const data = this.mapRequestBody(args.options);
|
|
44
45
|
const requestOptionsPatch = {
|
|
45
|
-
url: `${this.resource}/v1.0/teams/${
|
|
46
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(channelId)}`,
|
|
46
47
|
headers: {
|
|
47
48
|
'accept': 'application/json;odata.metadata=none'
|
|
48
49
|
},
|
|
@@ -86,7 +87,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
86
87
|
return args.options.id;
|
|
87
88
|
}
|
|
88
89
|
const channelRequestOptions = {
|
|
89
|
-
url: `${this.resource}/v1.0/teams/${
|
|
90
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'`,
|
|
90
91
|
headers: {
|
|
91
92
|
accept: 'application/json;odata.metadata=none'
|
|
92
93
|
},
|
|
@@ -19,6 +19,7 @@ const os = require("os");
|
|
|
19
19
|
const Auth_1 = require("../../../../Auth");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
21
|
const accessToken_1 = require("../../../../utils/accessToken");
|
|
22
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
22
23
|
const validation_1 = require("../../../../utils/validation");
|
|
23
24
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
24
25
|
const commands_1 = require("../../commands");
|
|
@@ -63,7 +64,7 @@ class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
|
63
64
|
getChatDetailsById(id) {
|
|
64
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
66
|
const requestOptions = {
|
|
66
|
-
url: `${this.resource}/v1.0/chats/${
|
|
67
|
+
url: `${this.resource}/v1.0/chats/${formatting_1.formatting.encodeQueryParameter(id)}`,
|
|
67
68
|
headers: {
|
|
68
69
|
accept: 'application/json;odata.metadata=none'
|
|
69
70
|
},
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.chatUtil = void 0;
|
|
13
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
13
14
|
const odata_1 = require("../../../../utils/odata");
|
|
14
15
|
exports.chatUtil = {
|
|
15
16
|
/**
|
|
@@ -42,7 +43,7 @@ exports.chatUtil = {
|
|
|
42
43
|
*/
|
|
43
44
|
findExistingGroupChatsByName(name) {
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const endpoint = `https://graph.microsoft.com/v1.0/chats?$filter=topic eq '${
|
|
46
|
+
const endpoint = `https://graph.microsoft.com/v1.0/chats?$filter=topic eq '${formatting_1.formatting.encodeQueryParameter(name).replace("'", "''")}'&$expand=members&$select=id,topic,createdDateTime,chatType`;
|
|
46
47
|
return odata_1.odata.getAllItems(endpoint);
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsFunSettingsListCommand_instances, _TeamsFunSettingsListCommand_initOptions, _TeamsFunSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsFunSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=funSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsFunSettingsSetCommand_instances, _TeamsFunSettingsSetCommand_initTelemetry, _TeamsFunSettingsSetCommand_initOptions, _TeamsFunSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -48,7 +49,7 @@ class TeamsFunSettingsSetCommand extends GraphCommand_1.default {
|
|
|
48
49
|
data.funSettings.giphyContentRating = args.options.giphyContentRating;
|
|
49
50
|
}
|
|
50
51
|
const requestOptions = {
|
|
51
|
-
url: `${this.resource}/v1.0/teams/${
|
|
52
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
52
53
|
headers: {
|
|
53
54
|
accept: 'application/json;odata.metadata=none'
|
|
54
55
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsGuestSettingsListCommand_instances, _TeamsGuestSettingsListCommand_initOptions, _TeamsGuestSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsGuestSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=guestSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsGuestSettingsSetCommand_instances, _TeamsGuestSettingsSetCommand_initTelemetry, _TeamsGuestSettingsSetCommand_initOptions, _TeamsGuestSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsGuestSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMemberSettingsListCommand_instances, _TeamsMemberSettingsListCommand_initOptions, _TeamsMemberSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsMemberSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=memberSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMemberSettingsSetCommand_instances, _TeamsMemberSettingsSetCommand_initTelemetry, _TeamsMemberSettingsSetCommand_initOptions, _TeamsMemberSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsMemberSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsListCommand_instances, _TeamsMessagingSettingsListCommand_initOptions, _TeamsMessagingSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsMessagingSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=messagingSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsSetCommand_instances, _TeamsMessagingSettingsSetCommand_initTelemetry, _TeamsMessagingSettingsSetCommand_initOptions, _TeamsMessagingSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsMessagingSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|