@pnp/cli-microsoft365 7.5.0-beta.cae14d0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +6 -2
- package/.mocharc.json +3 -5
- package/Dockerfile +0 -3
- package/README.md +2 -2
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +171 -69
- package/dist/AuthServer.js +3 -3
- package/dist/Command.js +8 -5
- package/dist/auth/FileTokenStorage.js +4 -1
- package/dist/m365/base/AppCommand.js +2 -2
- package/dist/m365/base/PowerAppsCommand.js +2 -2
- package/dist/m365/base/PowerAutomateCommand.js +2 -2
- package/dist/m365/base/PowerPlatformCommand.js +2 -2
- package/dist/m365/base/SpoCommand.js +3 -3
- package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
- package/dist/m365/cli/commands/cli-consent.js +5 -3
- package/dist/m365/cli/commands/cli-doctor.js +5 -5
- package/dist/m365/commands/ConnectionDetails.js +2 -0
- package/dist/m365/commands/login.js +26 -48
- package/dist/m365/commands/logout.js +2 -2
- package/dist/m365/commands/request.js +2 -2
- package/dist/m365/commands/status.js +15 -23
- package/dist/m365/connection/commands/connection-list.js +47 -0
- package/dist/m365/connection/commands/connection-remove.js +67 -0
- package/dist/m365/connection/commands/connection-set.js +56 -0
- package/dist/m365/connection/commands/connection-use.js +51 -0
- package/dist/m365/connection/commands.js +8 -0
- package/dist/m365/entra/aadCommands.js +3 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
- package/dist/m365/entra/commands/app/app-add.js +2 -2
- 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 +1 -1
- 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/m365group/m365group-report-activitygroupcounts.js +1 -1
- package/dist/m365/entra/commands/user/user-get.js +38 -38
- package/dist/m365/entra/commands/user/user-license-list.js +1 -1
- package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
- package/dist/m365/entra/commands/user/user-set.js +2 -2
- package/dist/m365/entra/commands.js +16 -0
- package/dist/m365/file/commands/convert/convert-pdf.js +1 -1
- package/dist/m365/file/commands/file-copy.js +151 -0
- package/dist/m365/file/commands.js +1 -0
- package/dist/m365/outlook/commands/mail/mail-send.js +1 -1
- package/dist/m365/outlook/commands/message/message-get.js +1 -1
- package/dist/m365/pa/commands/app/app-permission-ensure.js +1 -1
- package/dist/m365/pa/commands/app/app-permission-remove.js +1 -1
- package/dist/m365/planner/commands/roster/roster-plan-list.js +1 -1
- package/dist/m365/purview/commands/auditlog/auditlog-list.js +1 -1
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +1 -1
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +1 -1
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +1 -1
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
- package/dist/m365/spo/commands/spo-get.js +1 -1
- package/dist/m365/spo/commands/spo-search.js +52 -22
- package/dist/m365/spo/commands/spo-set.js +1 -1
- package/dist/m365/teams/commands/chat/chat-get.js +1 -1
- package/dist/m365/teams/commands/chat/chat-list.js +1 -1
- package/dist/m365/teams/commands/chat/chat-message-send.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-add.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-get.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +1 -1
- package/dist/m365/tenant/commands/id/id-get.js +1 -1
- package/dist/m365/tenant/commands/info/info-get.js +1 -1
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +3 -3
- 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/request.js +1 -1
- package/dist/utils/spo.js +36 -14
- package/dist/utils/urlUtil.js +31 -0
- package/dist/utils/validation.js +4 -0
- package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
- package/docs/docs/cmd/connection/connection-list.mdx +100 -0
- package/docs/docs/cmd/connection/connection-remove.mdx +45 -0
- package/docs/docs/cmd/connection/connection-set.mdx +39 -0
- package/docs/docs/cmd/connection/connection-use.mdx +98 -0
- 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 +1 -0
- 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/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/login.mdx +15 -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/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 +60 -0
- package/package.json +4 -3
- 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,31 +3,36 @@ 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 _VivaEngageMessageRemoveCommand_instances, _VivaEngageMessageRemoveCommand_initTelemetry, _VivaEngageMessageRemoveCommand_initOptions, _VivaEngageMessageRemoveCommand_initValidators;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.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 VivaEngageMessageRemoveCommand extends VivaEngageCommand {
|
|
12
13
|
get name() {
|
|
13
|
-
return commands.
|
|
14
|
+
return commands.ENGAGE_MESSAGE_REMOVE;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
|
-
return 'Removes a
|
|
17
|
+
return 'Removes a Viva Engage message';
|
|
18
|
+
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [yammerCommands.MESSAGE_REMOVE];
|
|
17
21
|
}
|
|
18
22
|
constructor() {
|
|
19
23
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_VivaEngageMessageRemoveCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _VivaEngageMessageRemoveCommand_instances, "m", _VivaEngageMessageRemoveCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _VivaEngageMessageRemoveCommand_instances, "m", _VivaEngageMessageRemoveCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _VivaEngageMessageRemoveCommand_instances, "m", _VivaEngageMessageRemoveCommand_initValidators).call(this);
|
|
24
28
|
}
|
|
25
29
|
async commandAction(logger, args) {
|
|
30
|
+
await this.showDeprecationWarning(logger, this.alias()[0], this.name);
|
|
26
31
|
if (args.options.force) {
|
|
27
32
|
await this.removeMessage(args.options);
|
|
28
33
|
}
|
|
29
34
|
else {
|
|
30
|
-
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the
|
|
35
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the Viva Engage message ${args.options.id}?` });
|
|
31
36
|
if (result) {
|
|
32
37
|
await this.removeMessage(args.options);
|
|
33
38
|
}
|
|
@@ -50,19 +55,19 @@ class YammerMessageRemoveCommand extends YammerCommand {
|
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
|
-
|
|
58
|
+
_VivaEngageMessageRemoveCommand_instances = new WeakSet(), _VivaEngageMessageRemoveCommand_initTelemetry = function _VivaEngageMessageRemoveCommand_initTelemetry() {
|
|
54
59
|
this.telemetry.push((args) => {
|
|
55
60
|
Object.assign(this.telemetryProperties, {
|
|
56
61
|
force: (!(!args.options.force)).toString()
|
|
57
62
|
});
|
|
58
63
|
});
|
|
59
|
-
},
|
|
64
|
+
}, _VivaEngageMessageRemoveCommand_initOptions = function _VivaEngageMessageRemoveCommand_initOptions() {
|
|
60
65
|
this.options.unshift({
|
|
61
66
|
option: '--id <id>'
|
|
62
67
|
}, {
|
|
63
68
|
option: '-f, --force'
|
|
64
69
|
});
|
|
65
|
-
},
|
|
70
|
+
}, _VivaEngageMessageRemoveCommand_initValidators = function _VivaEngageMessageRemoveCommand_initValidators() {
|
|
66
71
|
this.validators.push(async (args) => {
|
|
67
72
|
if (typeof args.options.id !== 'number') {
|
|
68
73
|
return `${args.options.id} is not a number`;
|
|
@@ -70,5 +75,5 @@ _YammerMessageRemoveCommand_instances = new WeakSet(), _YammerMessageRemoveComma
|
|
|
70
75
|
return true;
|
|
71
76
|
});
|
|
72
77
|
};
|
|
73
|
-
export default new
|
|
74
|
-
//# sourceMappingURL=message-remove.js.map
|
|
78
|
+
export default new VivaEngageMessageRemoveCommand();
|
|
79
|
+
//# sourceMappingURL=engage-message-remove.js.map
|
|
@@ -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
|