@pnp/cli-microsoft365 7.5.0-beta.494c631 → 7.5.0-beta.c0c1edf
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/.devcontainer/Dockerfile +2 -2
- package/.eslintrc.cjs +6 -2
- package/.mocharc.json +3 -5
- package/Dockerfile +2 -5
- package/README.md +2 -2
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Command.js +1 -1
- package/dist/m365/app/commands/app-get.js +2 -2
- package/dist/m365/base/AppCommand.js +2 -2
- package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
- package/dist/m365/cli/commands/cli-consent.js +5 -3
- package/dist/m365/entra/aadCommands.js +3 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +8 -8
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +4 -4
- package/dist/m365/entra/commands/app/app-add.js +1 -1
- package/dist/m365/entra/commands/app/app-get.js +1 -1
- package/dist/m365/entra/commands/app/app-list.js +1 -1
- package/dist/m365/entra/commands/app/app-permission-add.js +4 -8
- package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
- package/dist/m365/entra/commands/app/app-remove.js +1 -1
- package/dist/m365/entra/commands/app/app-role-add.js +1 -1
- package/dist/m365/entra/commands/app/app-role-list.js +1 -1
- package/dist/m365/entra/commands/app/app-role-remove.js +1 -1
- package/dist/m365/entra/commands/app/app-set.js +1 -1
- package/dist/m365/entra/commands/{sp/sp-add.js → enterpriseapp/enterpriseapp-add.js} +18 -18
- package/dist/m365/entra/commands/{sp/sp-get.js → enterpriseapp/enterpriseapp-get.js} +19 -19
- package/dist/m365/entra/commands/{sp/sp-list.js → enterpriseapp/enterpriseapp-list.js} +13 -13
- package/dist/m365/entra/commands/group/group-add.js +224 -0
- package/dist/m365/entra/commands/group/group-get.js +3 -3
- package/dist/m365/entra/commands/group/group-remove.js +2 -2
- package/dist/m365/entra/commands/group/group-user-add.js +145 -0
- package/dist/m365/entra/commands/group/group-user-list.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-get.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-remove.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-renew.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-set.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +2 -2
- package/dist/m365/entra/commands/user/user-get.js +38 -38
- package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
- package/dist/m365/entra/commands.js +17 -0
- package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
- package/dist/m365/file/commands/file-copy.js +151 -0
- package/dist/m365/file/commands.js +1 -0
- package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
- package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
- package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
- package/dist/m365/onenote/commands/page/page-list.js +2 -2
- package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-ensure.js +4 -4
- package/dist/m365/pa/commands/app/app-permission-remove.js +4 -4
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-add.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +2 -2
- package/dist/m365/planner/commands/plan/plan-list.js +2 -2
- package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +2 -2
- package/dist/m365/planner/commands/task/task-get.js +2 -2
- package/dist/m365/planner/commands/task/task-list.js +2 -2
- package/dist/m365/planner/commands/task/task-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
- package/dist/m365/spo/commands/group/group-member-add.js +4 -4
- package/dist/m365/spo/commands/group/group-member-remove.js +2 -2
- package/dist/m365/spo/commands/group/group-set.js +2 -2
- package/dist/m365/spo/commands/site/site-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +2 -2
- package/dist/m365/spo/commands/spo-search.js +52 -22
- package/dist/m365/spo/commands/user/user-ensure.js +2 -2
- package/dist/m365/teams/commands/app/app-install.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +2 -2
- package/dist/m365/teams/commands/channel/channel-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-add.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-get.js +3 -3
- package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +2 -2
- package/dist/m365/teams/commands/tab/tab-get.js +2 -2
- package/dist/m365/teams/commands/team/team-add.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +2 -2
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- package/dist/m365/{yammer/commands/group/group-list.js → viva/commands/engage/engage-group-list.js} +19 -14
- package/dist/m365/{yammer/commands/group/group-user-add.js → viva/commands/engage/engage-group-user-add.js} +19 -14
- package/dist/m365/{yammer/commands/group/group-user-remove.js → viva/commands/engage/engage-group-user-remove.js} +19 -14
- package/dist/m365/{yammer/commands/message/message-add.js → viva/commands/engage/engage-message-add.js} +19 -14
- package/dist/m365/{yammer/commands/message/message-get.js → viva/commands/engage/engage-message-get.js} +17 -12
- package/dist/m365/{yammer/commands/message/message-like-set.js → viva/commands/engage/engage-message-like-set.js} +21 -16
- package/dist/m365/{yammer/commands/message/message-list.js → viva/commands/engage/engage-message-list.js} +21 -16
- package/dist/m365/{yammer/commands/message/message-remove.js → viva/commands/engage/engage-message-remove.js} +20 -15
- package/dist/m365/{yammer/commands/network/network-list.js → viva/commands/engage/engage-network-list.js} +16 -11
- package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +23 -0
- package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js} +23 -18
- package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js} +18 -13
- package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js} +18 -13
- package/dist/m365/{yammer/commands.js → viva/commands/engage/yammerCommands.js} +1 -1
- package/dist/m365/viva/commands.js +22 -1
- package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
- package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
- package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
- package/dist/utils/{aadUser.js → entraUser.js} +38 -2
- package/dist/utils/spo.js +24 -2
- package/dist/utils/urlUtil.js +31 -0
- package/dist/utils/validation.js +8 -0
- package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +5 -3
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +107 -0
- package/docs/docs/cmd/entra/app/app-add.mdx +2 -1
- package/docs/docs/cmd/entra/app/app-get.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-list.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +3 -2
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-list.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +1 -0
- package/docs/docs/cmd/entra/{sp/sp-add.mdx → enterpriseapp/enterpriseapp-add.mdx} +16 -15
- package/docs/docs/cmd/entra/{sp/sp-get.mdx → enterpriseapp/enterpriseapp-get.mdx} +15 -14
- package/docs/docs/cmd/entra/{sp/sp-list.mdx → enterpriseapp/enterpriseapp-list.mdx} +22 -21
- package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
- package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -3
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +246 -0
- package/docs/docs/cmd/external/item/item-add.mdx +1 -1
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +4 -0
- package/docs/docs/cmd/file/file-add.mdx +4 -0
- package/docs/docs/cmd/file/file-copy.mdx +68 -0
- package/docs/docs/cmd/file/file-list.mdx +100 -0
- package/docs/docs/cmd/setup.mdx +4 -0
- package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/spo-search.mdx +6 -2
- package/docs/docs/cmd/spo/theme/theme-set.mdx +14 -2
- package/docs/docs/cmd/{yammer/group/group-list.mdx → viva/engage/engage-group-list.mdx} +13 -13
- package/docs/docs/cmd/{yammer/group/group-user-add.mdx → viva/engage/engage-group-user-add.mdx} +7 -7
- package/docs/docs/cmd/{yammer/group/group-user-remove.mdx → viva/engage/engage-group-user-remove.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-add.mdx → viva/engage/engage-message-add.mdx} +12 -13
- package/docs/docs/cmd/{yammer/message/message-get.mdx → viva/engage/engage-message-get.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-like-set.mdx → viva/engage/engage-message-like-set.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-list.mdx → viva/engage/engage-message-list.mdx} +21 -21
- package/docs/docs/cmd/{yammer/message/message-remove.mdx → viva/engage/engage-message-remove.mdx} +10 -10
- package/docs/docs/cmd/{yammer/network/network-list.mdx → viva/engage/engage-network-list.mdx} +6 -6
- package/docs/docs/cmd/{yammer/report/report-activitycounts.mdx → viva/engage/engage-report-activitycounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-activityusercounts.mdx → viva/engage/engage-report-activityusercounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-activityuserdetail.mdx → viva/engage/engage-report-activityuserdetail.mdx} +11 -12
- package/docs/docs/cmd/{yammer/report/report-deviceusagedistributionusercounts.mdx → viva/engage/engage-report-deviceusagedistributionusercounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/report/report-deviceusageusercounts.mdx → viva/engage/engage-report-deviceusageusercounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/report/report-deviceusageuserdetail.mdx → viva/engage/engage-report-deviceusageuserdetail.mdx} +11 -11
- package/docs/docs/cmd/{yammer/report/report-groupsactivitycounts.mdx → viva/engage/engage-report-groupsactivitycounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-groupsactivitydetail.mdx → viva/engage/engage-report-groupsactivitydetail.mdx} +11 -11
- package/docs/docs/cmd/{yammer/report/report-groupsactivitygroupcounts.mdx → viva/engage/engage-report-groupsactivitygroupcounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/yammer-search.mdx → viva/engage/engage-search.mdx} +10 -10
- package/docs/docs/cmd/{yammer/user/user-get.mdx → viva/engage/engage-user-get.mdx} +8 -8
- package/docs/docs/cmd/{yammer/user/user-list.mdx → viva/engage/engage-user-list.mdx} +11 -11
- package/npm-shrinkwrap.json +228 -166
- package/package.json +20 -19
- package/dist/m365/base/AzmgmtCommand.js +0 -18
- package/dist/m365/base/AzmgmtItemsListCommand.js +0 -41
- package/dist/m365/yammer/commands/report/report-activitycounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-activityusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-activityuserdetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +0 -15
|
@@ -3,27 +3,32 @@ 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
|
|
6
|
+
var _VivaEngageNetworkListCommand_instances, _VivaEngageNetworkListCommand_initTelemetry, _VivaEngageNetworkListCommand_initOptions;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import
|
|
8
|
+
import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
|
-
|
|
10
|
+
import yammerCommands from './yammerCommands.js';
|
|
11
|
+
class VivaEngageNetworkListCommand extends VivaEngageCommand {
|
|
11
12
|
get name() {
|
|
12
|
-
return commands.
|
|
13
|
+
return commands.ENGAGE_NETWORK_LIST;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Returns a list of networks to which the current user has access';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [yammerCommands.NETWORK_LIST];
|
|
20
|
+
}
|
|
17
21
|
defaultProperties() {
|
|
18
22
|
return ['id', 'name', 'email', 'community', 'permalink', 'web_url'];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_VivaEngageNetworkListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _VivaEngageNetworkListCommand_instances, "m", _VivaEngageNetworkListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _VivaEngageNetworkListCommand_instances, "m", _VivaEngageNetworkListCommand_initOptions).call(this);
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
31
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
27
32
|
const requestOptions = {
|
|
28
33
|
url: `${this.resource}/v1/networks/current.json`,
|
|
29
34
|
headers: {
|
|
@@ -44,16 +49,16 @@ class YammerNetworkListCommand extends YammerCommand {
|
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
|
-
|
|
52
|
+
_VivaEngageNetworkListCommand_instances = new WeakSet(), _VivaEngageNetworkListCommand_initTelemetry = function _VivaEngageNetworkListCommand_initTelemetry() {
|
|
48
53
|
this.telemetry.push((args) => {
|
|
49
54
|
Object.assign(this.telemetryProperties, {
|
|
50
55
|
includeSuspended: args.options.includeSuspended
|
|
51
56
|
});
|
|
52
57
|
});
|
|
53
|
-
},
|
|
58
|
+
}, _VivaEngageNetworkListCommand_initOptions = function _VivaEngageNetworkListCommand_initOptions() {
|
|
54
59
|
this.options.unshift({
|
|
55
60
|
option: '--includeSuspended'
|
|
56
61
|
});
|
|
57
62
|
};
|
|
58
|
-
export default new
|
|
59
|
-
//# sourceMappingURL=network-list.js.map
|
|
63
|
+
export default new VivaEngageNetworkListCommand();
|
|
64
|
+
//# sourceMappingURL=engage-network-list.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportActivityCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_ACTIVITYCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_ACTIVITYCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerActivityCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the trends on the amount of VivaEngage activity in your organization by how many messages were posted, read, and liked';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportActivityCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-activitycounts.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportActivityUserCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_ACTIVITYUSERCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_ACTIVITYUSERCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerActivityUserCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the trends on the number of unique users who posted, read, and liked Viva Engage messages';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportActivityUserCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-activityusercounts.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportActivityUserDetailCommand extends DateAndPeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_ACTIVITYUSERDETAIL;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_ACTIVITYUSERDETAIL];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerActivityUserDetail';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets details about Viva Engage activity by user';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportActivityUserDetailCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-activityuserdetail.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportDeviceUsageDistributionUserCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerDeviceUsageDistributionUserCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the number of users by device type';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportDeviceUsageDistributionUserCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-deviceusagedistributionusercounts.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportDeviceUsageUserCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_DEVICEUSAGEUSERCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_DEVICEUSAGEUSERCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerDeviceUsageUserCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the number of daily users by device type';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportDeviceUsageUserCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-deviceusageusercounts.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportDeviceUsageUserDetailCommand extends DateAndPeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_DEVICEUSAGEUSERDETAIL;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_DEVICEUSAGEUSERDETAIL];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerDeviceUsageUserDetail';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets details about Viva Engage device usage by user';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportDeviceUsageUserDetailCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-deviceusageuserdetail.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportGroupsActivityCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_GROUPSACTIVITYCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_GROUPSACTIVITYCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerGroupsActivityCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the number of Viva Engage messages posted, read, and liked in groups';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportGroupsActivityCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-groupsactivitycounts.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportGroupsActivityDetailCommand extends DateAndPeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_GROUPSACTIVITYDETAIL;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_GROUPSACTIVITYDETAIL];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerGroupsActivityDetail';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets details about Viva Engage groups activity by group';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportGroupsActivityDetailCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-groupsactivitydetail.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import commands from '../../commands.js';
|
|
3
|
+
import yammerCommands from './yammerCommands.js';
|
|
4
|
+
class VivaEngageReportGroupsActivityGroupCountsCommand extends PeriodBasedReport {
|
|
5
|
+
get name() {
|
|
6
|
+
return commands.ENGAGE_REPORT_GROUPSACTIVITYGROUPCOUNTS;
|
|
7
|
+
}
|
|
8
|
+
alias() {
|
|
9
|
+
return [yammerCommands.REPORT_GROUPSACTIVITYGROUPCOUNTS];
|
|
10
|
+
}
|
|
11
|
+
get usageEndpoint() {
|
|
12
|
+
return 'getYammerGroupsActivityGroupCounts';
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Gets the total number of groups that existed and how many included group conversation activity';
|
|
16
|
+
}
|
|
17
|
+
async commandAction(logger, args) {
|
|
18
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
19
|
+
await super.commandAction(logger, args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new VivaEngageReportGroupsActivityGroupCountsCommand();
|
|
23
|
+
//# sourceMappingURL=engage-report-groupsactivitygroupcounts.js.map
|
package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js}
RENAMED
|
@@ -3,22 +3,26 @@ 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
|
|
7
|
-
import { cli } from '
|
|
8
|
-
import request from '
|
|
9
|
-
import { formatting } from '
|
|
10
|
-
import
|
|
11
|
-
import commands from '
|
|
12
|
-
|
|
6
|
+
var _VivaEngageSearchCommand_instances, _a, _VivaEngageSearchCommand_initTelemetry, _VivaEngageSearchCommand_initOptions, _VivaEngageSearchCommand_initValidators;
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
|
+
import request from '../../../../request.js';
|
|
9
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
10
|
+
import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
|
|
11
|
+
import commands from '../../commands.js';
|
|
12
|
+
import yammerCommands from './yammerCommands.js';
|
|
13
|
+
class VivaEngageSearchCommand extends VivaEngageCommand {
|
|
13
14
|
get name() {
|
|
14
|
-
return commands.
|
|
15
|
+
return commands.ENGAGE_SEARCH;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Returns a list of messages, users, topics and groups that match the specified query.';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [yammerCommands.SEARCH];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
25
|
+
_VivaEngageSearchCommand_instances.add(this);
|
|
22
26
|
this.summary = {
|
|
23
27
|
messages: 0,
|
|
24
28
|
groups: 0,
|
|
@@ -29,9 +33,9 @@ class YammerSearchCommand extends YammerCommand {
|
|
|
29
33
|
this.groups = [];
|
|
30
34
|
this.topics = [];
|
|
31
35
|
this.users = [];
|
|
32
|
-
__classPrivateFieldGet(this,
|
|
33
|
-
__classPrivateFieldGet(this,
|
|
34
|
-
__classPrivateFieldGet(this,
|
|
36
|
+
__classPrivateFieldGet(this, _VivaEngageSearchCommand_instances, "m", _VivaEngageSearchCommand_initTelemetry).call(this);
|
|
37
|
+
__classPrivateFieldGet(this, _VivaEngageSearchCommand_instances, "m", _VivaEngageSearchCommand_initOptions).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _VivaEngageSearchCommand_instances, "m", _VivaEngageSearchCommand_initValidators).call(this);
|
|
35
39
|
}
|
|
36
40
|
async getAllItems(logger, args, page) {
|
|
37
41
|
const endpoint = `${this.resource}/v1/search.json?search=${formatting.encodeQueryParameter(args.options.queryText)}&page=${page}`;
|
|
@@ -89,6 +93,7 @@ class YammerSearchCommand extends YammerCommand {
|
|
|
89
93
|
}
|
|
90
94
|
}
|
|
91
95
|
async commandAction(logger, args) {
|
|
96
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
92
97
|
this.summary = {
|
|
93
98
|
messages: 0,
|
|
94
99
|
groups: 0,
|
|
@@ -169,14 +174,14 @@ class YammerSearchCommand extends YammerCommand {
|
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
}
|
|
172
|
-
_a =
|
|
177
|
+
_a = VivaEngageSearchCommand, _VivaEngageSearchCommand_instances = new WeakSet(), _VivaEngageSearchCommand_initTelemetry = function _VivaEngageSearchCommand_initTelemetry() {
|
|
173
178
|
this.telemetry.push((args) => {
|
|
174
179
|
Object.assign(this.telemetryProperties, {
|
|
175
180
|
show: typeof args.options.show !== 'undefined',
|
|
176
181
|
limit: typeof args.options.limit !== 'undefined'
|
|
177
182
|
});
|
|
178
183
|
});
|
|
179
|
-
},
|
|
184
|
+
}, _VivaEngageSearchCommand_initOptions = function _VivaEngageSearchCommand_initOptions() {
|
|
180
185
|
this.options.unshift({
|
|
181
186
|
option: '--queryText <queryText>'
|
|
182
187
|
}, {
|
|
@@ -185,7 +190,7 @@ _a = YammerSearchCommand, _YammerSearchCommand_instances = new WeakSet(), _Yamme
|
|
|
185
190
|
}, {
|
|
186
191
|
option: '--limit [limit]'
|
|
187
192
|
});
|
|
188
|
-
},
|
|
193
|
+
}, _VivaEngageSearchCommand_initValidators = function _VivaEngageSearchCommand_initValidators() {
|
|
189
194
|
this.validators.push(async (args) => {
|
|
190
195
|
if (args.options.queryText && typeof args.options.queryText !== 'string') {
|
|
191
196
|
return `${args.options.queryText} is not a string`;
|
|
@@ -209,8 +214,8 @@ _a = YammerSearchCommand, _YammerSearchCommand_instances = new WeakSet(), _Yamme
|
|
|
209
214
|
return true;
|
|
210
215
|
});
|
|
211
216
|
};
|
|
212
|
-
|
|
217
|
+
VivaEngageSearchCommand.showOptions = [
|
|
213
218
|
'summary', 'messages', 'users', 'topics', 'groups'
|
|
214
219
|
];
|
|
215
|
-
export default new
|
|
216
|
-
//# sourceMappingURL=
|
|
220
|
+
export default new VivaEngageSearchCommand();
|
|
221
|
+
//# sourceMappingURL=engage-search.js.map
|
package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js}
RENAMED
|
@@ -3,29 +3,34 @@ 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
|
|
6
|
+
var _VivaEngageUserGetCommand_instances, _VivaEngageUserGetCommand_initTelemetry, _VivaEngageUserGetCommand_initOptions, _VivaEngageUserGetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
-
import
|
|
9
|
+
import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
|
|
11
|
+
import yammerCommands from './yammerCommands.js';
|
|
12
|
+
class VivaEngageUserGetCommand extends VivaEngageCommand {
|
|
12
13
|
get name() {
|
|
13
|
-
return commands.
|
|
14
|
+
return commands.ENGAGE_USER_GET;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Retrieves the current user or searches for a user by ID or e-mail';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [yammerCommands.USER_GET];
|
|
21
|
+
}
|
|
18
22
|
defaultProperties() {
|
|
19
23
|
return ['id', 'full_name', 'email', 'job_title', 'state', 'url'];
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_VivaEngageUserGetCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _VivaEngageUserGetCommand_instances, "m", _VivaEngageUserGetCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _VivaEngageUserGetCommand_instances, "m", _VivaEngageUserGetCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _VivaEngageUserGetCommand_instances, "m", _VivaEngageUserGetCommand_initValidators).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
33
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
29
34
|
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
30
35
|
if (args.options.id) {
|
|
31
36
|
endPoint = `${this.resource}/v1/users/${args.options.id}.json`;
|
|
@@ -50,20 +55,20 @@ class YammerUserGetCommand extends YammerCommand {
|
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
|
-
|
|
58
|
+
_VivaEngageUserGetCommand_instances = new WeakSet(), _VivaEngageUserGetCommand_initTelemetry = function _VivaEngageUserGetCommand_initTelemetry() {
|
|
54
59
|
this.telemetry.push((args) => {
|
|
55
60
|
Object.assign(this.telemetryProperties, {
|
|
56
61
|
userId: args.options.id !== undefined,
|
|
57
62
|
email: args.options.email !== undefined
|
|
58
63
|
});
|
|
59
64
|
});
|
|
60
|
-
},
|
|
65
|
+
}, _VivaEngageUserGetCommand_initOptions = function _VivaEngageUserGetCommand_initOptions() {
|
|
61
66
|
this.options.unshift({
|
|
62
67
|
option: '-i, --id [id]'
|
|
63
68
|
}, {
|
|
64
69
|
option: '--email [email]'
|
|
65
70
|
});
|
|
66
|
-
},
|
|
71
|
+
}, _VivaEngageUserGetCommand_initValidators = function _VivaEngageUserGetCommand_initValidators() {
|
|
67
72
|
this.validators.push(async (args) => {
|
|
68
73
|
if (args.options.id !== undefined && args.options.email !== undefined) {
|
|
69
74
|
return `You are only allowed to search by ID or e-mail but not both`;
|
|
@@ -71,5 +76,5 @@ _YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelem
|
|
|
71
76
|
return true;
|
|
72
77
|
});
|
|
73
78
|
};
|
|
74
|
-
export default new
|
|
75
|
-
//# sourceMappingURL=user-get.js.map
|
|
79
|
+
export default new VivaEngageUserGetCommand();
|
|
80
|
+
//# sourceMappingURL=engage-user-get.js.map
|
package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js}
RENAMED
|
@@ -3,27 +3,31 @@ 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
|
|
6
|
+
var _VivaEngageUserListCommand_instances, _VivaEngageUserListCommand_initTelemetry, _VivaEngageUserListCommand_initOptions, _VivaEngageUserListCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import
|
|
8
|
+
import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
|
-
|
|
10
|
+
import yammerCommands from './yammerCommands.js';
|
|
11
|
+
class VivaEngageUserListCommand extends VivaEngageCommand {
|
|
11
12
|
get name() {
|
|
12
|
-
return commands.
|
|
13
|
+
return commands.ENGAGE_USER_LIST;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Returns users from the current network';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [yammerCommands.USER_LIST];
|
|
20
|
+
}
|
|
17
21
|
defaultProperties() {
|
|
18
22
|
return ['id', 'full_name', 'email'];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
26
|
+
_VivaEngageUserListCommand_instances.add(this);
|
|
23
27
|
this.items = [];
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
28
|
+
__classPrivateFieldGet(this, _VivaEngageUserListCommand_instances, "m", _VivaEngageUserListCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _VivaEngageUserListCommand_instances, "m", _VivaEngageUserListCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _VivaEngageUserListCommand_instances, "m", _VivaEngageUserListCommand_initValidators).call(this);
|
|
27
31
|
}
|
|
28
32
|
getAllItems(logger, args, page) {
|
|
29
33
|
return new Promise((resolve, reject) => {
|
|
@@ -88,6 +92,7 @@ class YammerUserListCommand extends YammerCommand {
|
|
|
88
92
|
});
|
|
89
93
|
}
|
|
90
94
|
async commandAction(logger, args) {
|
|
95
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
91
96
|
this.items = []; // this will reset the items array in interactive mode
|
|
92
97
|
try {
|
|
93
98
|
await this.getAllItems(logger, args, 1);
|
|
@@ -98,7 +103,7 @@ class YammerUserListCommand extends YammerCommand {
|
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
|
-
|
|
106
|
+
_VivaEngageUserListCommand_instances = new WeakSet(), _VivaEngageUserListCommand_initTelemetry = function _VivaEngageUserListCommand_initTelemetry() {
|
|
102
107
|
this.telemetry.push((args) => {
|
|
103
108
|
Object.assign(this.telemetryProperties, {
|
|
104
109
|
letter: args.options.letter !== undefined,
|
|
@@ -108,7 +113,7 @@ _YammerUserListCommand_instances = new WeakSet(), _YammerUserListCommand_initTel
|
|
|
108
113
|
groupId: args.options.groupId !== undefined
|
|
109
114
|
});
|
|
110
115
|
});
|
|
111
|
-
},
|
|
116
|
+
}, _VivaEngageUserListCommand_initOptions = function _VivaEngageUserListCommand_initOptions() {
|
|
112
117
|
this.options.unshift({
|
|
113
118
|
option: '-g, --groupId [groupId]'
|
|
114
119
|
}, {
|
|
@@ -121,7 +126,7 @@ _YammerUserListCommand_instances = new WeakSet(), _YammerUserListCommand_initTel
|
|
|
121
126
|
option: '--sortBy [sortBy]',
|
|
122
127
|
autocomplete: ['messages', 'followers']
|
|
123
128
|
});
|
|
124
|
-
},
|
|
129
|
+
}, _VivaEngageUserListCommand_initValidators = function _VivaEngageUserListCommand_initValidators() {
|
|
125
130
|
this.validators.push(async (args) => {
|
|
126
131
|
if (args.options.groupId && typeof args.options.groupId !== 'number') {
|
|
127
132
|
return `${args.options.groupId} is not a number`;
|
|
@@ -141,5 +146,5 @@ _YammerUserListCommand_instances = new WeakSet(), _YammerUserListCommand_initTel
|
|
|
141
146
|
return true;
|
|
142
147
|
});
|
|
143
148
|
};
|
|
144
|
-
export default new
|
|
145
|
-
//# sourceMappingURL=user-list.js.map
|
|
149
|
+
export default new VivaEngageUserListCommand();
|
|
150
|
+
//# sourceMappingURL=engage-user-list.js.map
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
const prefix = 'viva';
|
|
2
2
|
export default {
|
|
3
|
-
CONNECTIONS_APP_CREATE: `${prefix} connections app create
|
|
3
|
+
CONNECTIONS_APP_CREATE: `${prefix} connections app create`,
|
|
4
|
+
ENGAGE_GROUP_LIST: `${prefix} engage group list`,
|
|
5
|
+
ENGAGE_GROUP_USER_ADD: `${prefix} engage group user add`,
|
|
6
|
+
ENGAGE_GROUP_USER_REMOVE: `${prefix} engage group user remove`,
|
|
7
|
+
ENGAGE_MESSAGE_ADD: `${prefix} engage message add`,
|
|
8
|
+
ENGAGE_MESSAGE_GET: `${prefix} engage message get`,
|
|
9
|
+
ENGAGE_MESSAGE_LIKE_SET: `${prefix} engage message like set`,
|
|
10
|
+
ENGAGE_MESSAGE_LIST: `${prefix} engage message list`,
|
|
11
|
+
ENGAGE_MESSAGE_REMOVE: `${prefix} engage message remove`,
|
|
12
|
+
ENGAGE_NETWORK_LIST: `${prefix} engage network list`,
|
|
13
|
+
ENGAGE_REPORT_ACTIVITYCOUNTS: `${prefix} engage report activitycounts`,
|
|
14
|
+
ENGAGE_REPORT_ACTIVITYUSERCOUNTS: `${prefix} engage report activityusercounts`,
|
|
15
|
+
ENGAGE_REPORT_ACTIVITYUSERDETAIL: `${prefix} engage report activityuserdetail`,
|
|
16
|
+
ENGAGE_REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS: `${prefix} engage report deviceusagedistributionusercounts`,
|
|
17
|
+
ENGAGE_REPORT_DEVICEUSAGEUSERCOUNTS: `${prefix} engage report deviceusageusercounts`,
|
|
18
|
+
ENGAGE_REPORT_DEVICEUSAGEUSERDETAIL: `${prefix} engage report deviceusageuserdetail`,
|
|
19
|
+
ENGAGE_REPORT_GROUPSACTIVITYCOUNTS: `${prefix} engage report groupsactivitycounts`,
|
|
20
|
+
ENGAGE_REPORT_GROUPSACTIVITYDETAIL: `${prefix} engage report groupsactivitydetail`,
|
|
21
|
+
ENGAGE_REPORT_GROUPSACTIVITYGROUPCOUNTS: `${prefix} engage report groupsactivitygroupcounts`,
|
|
22
|
+
ENGAGE_SEARCH: `${prefix} engage search`,
|
|
23
|
+
ENGAGE_USER_GET: `${prefix} engage user get`,
|
|
24
|
+
ENGAGE_USER_LIST: `${prefix} engage user list`
|
|
4
25
|
};
|
|
5
26
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { odata } from './odata.js';
|
|
2
2
|
import { formatting } from './formatting.js';
|
|
3
3
|
import { cli } from '../cli/cli.js';
|
|
4
|
-
export const
|
|
4
|
+
export const entraAdministrativeUnit = {
|
|
5
5
|
/**
|
|
6
6
|
* Get an administrative unit by its display name.
|
|
7
7
|
* @param displayName Administrative unit display name.
|
|
@@ -22,4 +22,4 @@ export const aadAdministrativeUnit = {
|
|
|
22
22
|
return administrativeUnits[0];
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=entraAdministrativeUnit.js.map
|
|
@@ -2,7 +2,7 @@ import { odata } from "./odata.js";
|
|
|
2
2
|
import { formatting } from "./formatting.js";
|
|
3
3
|
import { cli } from "../cli/cli.js";
|
|
4
4
|
const graphResource = 'https://graph.microsoft.com';
|
|
5
|
-
export const
|
|
5
|
+
export const entraDevice = {
|
|
6
6
|
/**
|
|
7
7
|
* Get a device by its display name.
|
|
8
8
|
* @param displayName Device display name.
|
|
@@ -22,4 +22,4 @@ export const aadDevice = {
|
|
|
22
22
|
return devices[0];
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=entraDevice.js.map
|
|
@@ -3,7 +3,7 @@ import { formatting } from "./formatting.js";
|
|
|
3
3
|
import { odata } from "./odata.js";
|
|
4
4
|
import { cli } from '../cli/cli.js';
|
|
5
5
|
const graphResource = 'https://graph.microsoft.com';
|
|
6
|
-
export const
|
|
6
|
+
export const entraGroup = {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieve a single group.
|
|
9
9
|
* @param id Group ID.
|
|
@@ -95,4 +95,4 @@ export const aadGroup = {
|
|
|
95
95
|
return group.groupTypes.some(type => type === 'Unified');
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
//# sourceMappingURL=
|
|
98
|
+
//# sourceMappingURL=entraGroup.js.map
|