@trakit/commands 0.0.21 → 0.0.23
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/Accounts/Users/Requests/PayUserStateGet.d.ts +17 -0
- package/Accounts/Users/Requests/PayUserStateList.d.ts +42 -0
- package/Accounts/Users/Responses/RepUserStateGet.d.ts +16 -0
- package/Accounts/Users/Responses/RepUserStateList.d.ts +41 -0
- package/WebSocket/Requests/Parameters/SubscriptionType.d.ts +10 -0
- package/index.d.ts +6 -6
- package/package.json +3 -3
- package/trakit-commands.min.js +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JsonObject } from "@trakit/objects";
|
|
2
|
+
import { IPayDeletable } from "../../../API/Requests/IPayDeletable";
|
|
3
|
+
import { Reply } from "../../../API/Responses/Reply";
|
|
4
|
+
import { PayUser } from "./PayUser";
|
|
5
|
+
/**
|
|
6
|
+
* Gets details of the specified {@link UserState}.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PayUserStateGet extends PayUser implements IPayDeletable {
|
|
9
|
+
/**
|
|
10
|
+
* When true, the command will also return a deleted {@link UserState} (if it exists).
|
|
11
|
+
*/
|
|
12
|
+
includeDeleted: boolean;
|
|
13
|
+
constructor(json?: JsonObject);
|
|
14
|
+
createReply(json: JsonObject): Reply;
|
|
15
|
+
toJSON(): JsonObject;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=PayUserStateGet.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { JsonObject } from "@trakit/objects";
|
|
2
|
+
import { IPayDeletable } from "../../../API/Requests/IPayDeletable";
|
|
3
|
+
import { IPayListByCompany } from "../../../API/Requests/IPayListByCompany";
|
|
4
|
+
import { ParamId } from "../../../API/Requests/Parameters/ParamId";
|
|
5
|
+
import { Payload } from "../../../API/Requests/Payload";
|
|
6
|
+
import { Reply } from "../../../API/Responses/Reply";
|
|
7
|
+
/**
|
|
8
|
+
* Gets a list of {@link UserState}s.
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class PayUserStateList extends Payload implements IPayDeletable {
|
|
11
|
+
/**
|
|
12
|
+
* When true, the command will also return a deleted {@link UserState} (if it exists).
|
|
13
|
+
*/
|
|
14
|
+
includeDeleted: boolean;
|
|
15
|
+
constructor(json?: JsonObject);
|
|
16
|
+
toJSON(): JsonObject;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Gets the list of {@link UserState}s for the specified {@link Company}.
|
|
20
|
+
*/
|
|
21
|
+
export declare class PayUserStateListByCompany extends PayUserStateList implements IPayListByCompany {
|
|
22
|
+
/**
|
|
23
|
+
* Identifier of the {@link Company} to which this collection belongs.
|
|
24
|
+
*/
|
|
25
|
+
company: ParamId;
|
|
26
|
+
constructor(json?: JsonObject);
|
|
27
|
+
createReply(json: JsonObject): Reply;
|
|
28
|
+
toJSON(): JsonObject;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Gets the list of {@link UserState}s for the specified {@link UserGroup}.
|
|
32
|
+
*/
|
|
33
|
+
export declare class PayUserStateListByUserGroup extends PayUserStateList {
|
|
34
|
+
/**
|
|
35
|
+
* Identifier of the {@link UserGroup} to which this collection belongs.
|
|
36
|
+
*/
|
|
37
|
+
userGroup: ParamId;
|
|
38
|
+
constructor(json?: JsonObject);
|
|
39
|
+
createReply(json: JsonObject): Reply;
|
|
40
|
+
toJSON(): JsonObject;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=PayUserStateList.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JsonObject, nothing, ulong, User, UserState } from "@trakit/objects";
|
|
2
|
+
import { ReplySyncGetPiece } from "../../../API/Responses/ReplySyncGet";
|
|
3
|
+
/**
|
|
4
|
+
* A container for the {@link userGeneral}.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RepUserStateGet extends ReplySyncGetPiece<UserState> {
|
|
7
|
+
/**
|
|
8
|
+
* The requested {@link UserState}.
|
|
9
|
+
*/
|
|
10
|
+
userSetting: UserState | nothing;
|
|
11
|
+
constructor(json: JsonObject);
|
|
12
|
+
protected _createBlank(): User;
|
|
13
|
+
getObject(): UserState;
|
|
14
|
+
getCompanyId(): ulong;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RepUserStateGet.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { codified, email, guid, JsonObject, nothing, ulong, User, UserState } from "@trakit/objects";
|
|
2
|
+
import { ContentId } from "../../../API/Responses/Content/ContentId";
|
|
3
|
+
import { ContentIdCompany } from "../../../API/Responses/Content/ContentIdCompany";
|
|
4
|
+
import { ReplySyncListPiece } from "../../../API/Responses/ReplySyncList";
|
|
5
|
+
/**
|
|
6
|
+
* A container for the requested {@link UserState}s.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class RepUserStateList extends ReplySyncListPiece<UserState> {
|
|
9
|
+
/**
|
|
10
|
+
* The list of requested {@link UserState}s.
|
|
11
|
+
*/
|
|
12
|
+
userSetting: UserState[];
|
|
13
|
+
constructor(json: JsonObject);
|
|
14
|
+
getList(): UserState[];
|
|
15
|
+
protected _createBlank(): User;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A container owner {@link Company} of the collection.
|
|
19
|
+
*/
|
|
20
|
+
export declare class RepUserStateListByCompany extends RepUserStateList {
|
|
21
|
+
/**
|
|
22
|
+
* Identifier of the {@link Company} to which this collection belongs.
|
|
23
|
+
*/
|
|
24
|
+
company: ContentId | nothing;
|
|
25
|
+
constructor(json: JsonObject);
|
|
26
|
+
_filterCollection(pair: [ulong | guid | email | codified | string, UserState], index: number): boolean;
|
|
27
|
+
getCompanyId(): ulong;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A container owner {@link UserGroup} of the collection.
|
|
31
|
+
*/
|
|
32
|
+
export declare class RepUserStateListByUserGroup extends RepUserStateList {
|
|
33
|
+
/**
|
|
34
|
+
* Identifier of the {@link UserGroup} to which this collection belongs.
|
|
35
|
+
*/
|
|
36
|
+
userGroup: ContentIdCompany | nothing;
|
|
37
|
+
constructor(json: JsonObject);
|
|
38
|
+
_filterCollection(pair: [ulong | guid | email | codified | string, UserState], index: number): boolean;
|
|
39
|
+
getCompanyId(): ulong;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=RepUserStateList.d.ts.map
|
|
@@ -199,6 +199,16 @@ export declare enum SubscriptionType {
|
|
|
199
199
|
* @see {@link UserAdvanced}
|
|
200
200
|
*/
|
|
201
201
|
userAdvanced = "userAdvanced",
|
|
202
|
+
/**
|
|
203
|
+
* User information such as permissions and group membership.
|
|
204
|
+
* @see {@link UserAuthentication}
|
|
205
|
+
*/
|
|
206
|
+
userAuthentication = "userAuthentication",
|
|
207
|
+
/**
|
|
208
|
+
* User information such as permissions and group membership.
|
|
209
|
+
* @see {@link UserState}
|
|
210
|
+
*/
|
|
211
|
+
userState = "userState",
|
|
202
212
|
/**
|
|
203
213
|
* Group information for easy access control.
|
|
204
214
|
* @see {@link UserGroup}
|
package/index.d.ts
CHANGED
|
@@ -82,8 +82,8 @@ import { PayUserGet } from "./Accounts/Users/Requests/PayUserGet";
|
|
|
82
82
|
import { PayUserListByCompany } from "./Accounts/Users/Requests/PayUserList";
|
|
83
83
|
import { PayUserMerge } from "./Accounts/Users/Requests/PayUserMerge";
|
|
84
84
|
import { PayUserRestore } from "./Accounts/Users/Requests/PayUserRestore";
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
85
|
+
import { PayUserStateGet } from "./Accounts/Users/Requests/PayUserStateGet";
|
|
86
|
+
import { PayUserStateListByCompany, PayUserStateListByUserGroup } from "./Accounts/Users/Requests/PayUserStateList";
|
|
87
87
|
import { RepUserAdvancedGet } from "./Accounts/Users/Responses/RepUserAdvancedGet";
|
|
88
88
|
import { RepUserAdvancedListByCompany, RepUserAdvancedListByUserGroup } from "./Accounts/Users/Responses/RepUserAdvancedList";
|
|
89
89
|
import { RepUserAuthenticationGet } from "./Accounts/Users/Responses/RepUserAuthenticationGet";
|
|
@@ -96,8 +96,8 @@ import { RepUserGeneralListByCompany, RepUserGeneralListByUserGroup } from "./Ac
|
|
|
96
96
|
import { RepUserGet } from "./Accounts/Users/Responses/RepUserGet";
|
|
97
97
|
import { RepUserListByCompany } from "./Accounts/Users/Responses/RepUserList";
|
|
98
98
|
import { RepUserMerge } from "./Accounts/Users/Responses/RepUserMerge";
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
99
|
+
import { RepUserStateGet } from "./Accounts/Users/Responses/RepUserStateGet";
|
|
100
|
+
import { RepUserStateListByCompany, RepUserStateListByUserGroup } from "./Accounts/Users/Responses/RepUserStateList";
|
|
101
101
|
import { IPayDeletable } from "./API/Requests/IPayDeletable";
|
|
102
102
|
import { IPayListByAsset } from "./API/Requests/IPayListByAsset";
|
|
103
103
|
import { IPayListByBillingProfile } from "./API/Requests/IPayListByBillingProfile";
|
|
@@ -580,7 +580,7 @@ import { RepSubscriptionList } from "./WebSocket/Responses/RepSubscriptionList";
|
|
|
580
580
|
/**
|
|
581
581
|
* Version number for this release.
|
|
582
582
|
*/
|
|
583
|
-
export declare const version = "0.0.
|
|
583
|
+
export declare const version = "0.0.23";
|
|
584
584
|
/**
|
|
585
585
|
* Command request payloads and parameter classes.
|
|
586
586
|
*/
|
|
@@ -593,7 +593,7 @@ export { ContentCode, ContentCodeCompany, ContentCodeDeleted, ContentId, Content
|
|
|
593
593
|
* Error messages and details for responses.
|
|
594
594
|
*/
|
|
595
595
|
export { ErrorCode, ErrorDetail, ErrorDetailBadIds, ErrorDetailBadIndexes, ErrorDetailBadKeys, ErrorDetailBatch, ErrorDetailContactInUse, ErrorDetailCount, ErrorDetailEnum, ErrorDetailEscalation, ErrorDetailExternals, ErrorDetailFormTemplateInUse, ErrorDetailInput, ErrorDetailLocked, ErrorDetailMinMax, ErrorDetailParent, ErrorDetailParse, ErrorDetailPhone, ErrorDetailSecret, ErrorDetailStack, ErrorDetailThrottled, ErrorDetailType, ErrorDetailUserGroupInUse };
|
|
596
|
-
export { ParamContactMerge, ParamHandle, ParamMachineMerge, ParamPermission, ParamSelfContactMerge, ParamUserGroupMerge, ParamUserMerge, PayContact, PayContactBatchDelete, PayContactBatchMerge, PayContactDelete, PayContactGet, PayContactListByCompany, PayContactMerge, PayContactRestore, PayMachineBatchDelete, PayMachineBatchMerge, PayMachineDelete, PayMachineGet, PayMachineListByCompany, PayMachineMerge, PayMachineRestore, PaySelfContact, PaySelfGet, PaySelfLogin, PaySelfLogout, PaySelfPassword, PaySelfPreferences, PaySessionDelete, PaySessionGet, PaySessionListByCompany, PaySessionListByUser, PayUserAdvancedGet, PayUserAdvancedListByCompany, PayUserAdvancedListByUserGroup, PayUserAuthenticationGet, PayUserAuthenticationListByCompany, PayUserAuthenticationListByUserGroup, PayUserBatchDelete, PayUserBatchMerge, PayUserDelete, PayUserGeneralGet, PayUserGeneralListByCompany, PayUserGeneralListByUserGroup, PayUserGet, PayUserGroupBatchDelete, PayUserGroupBatchMerge, PayUserGroupDelete, PayUserGroupGet, PayUserGroupListByCompany, PayUserGroupMerge, PayUserGroupRestore, PayUserListByCompany, PayUserMerge, PayUserRestore,
|
|
596
|
+
export { ParamContactMerge, ParamHandle, ParamMachineMerge, ParamPermission, ParamSelfContactMerge, ParamUserGroupMerge, ParamUserMerge, PayContact, PayContactBatchDelete, PayContactBatchMerge, PayContactDelete, PayContactGet, PayContactListByCompany, PayContactMerge, PayContactRestore, PayMachineBatchDelete, PayMachineBatchMerge, PayMachineDelete, PayMachineGet, PayMachineListByCompany, PayMachineMerge, PayMachineRestore, PaySelfContact, PaySelfGet, PaySelfLogin, PaySelfLogout, PaySelfPassword, PaySelfPreferences, PaySessionDelete, PaySessionGet, PaySessionListByCompany, PaySessionListByUser, PayUserAdvancedGet, PayUserAdvancedListByCompany, PayUserAdvancedListByUserGroup, PayUserAuthenticationGet, PayUserAuthenticationListByCompany, PayUserAuthenticationListByUserGroup, PayUserBatchDelete, PayUserBatchMerge, PayUserDelete, PayUserGeneralGet, PayUserGeneralListByCompany, PayUserGeneralListByUserGroup, PayUserGet, PayUserGroupBatchDelete, PayUserGroupBatchMerge, PayUserGroupDelete, PayUserGroupGet, PayUserGroupListByCompany, PayUserGroupMerge, PayUserGroupRestore, PayUserListByCompany, PayUserMerge, PayUserRestore, PayUserStateGet, PayUserStateListByCompany, PayUserStateListByUserGroup, RepContactBatchDelete, RepContactBatchMerge, RepContactDelete, RepContactGet, RepContactListByCompany, RepContactMerge, RepMachineBatchDelete, RepMachineBatchMerge, RepMachineDelete, RepMachineGet, RepMachineListByCompany, RepMachineListByUserGroup, RepMachineMerge, RepSelfContact, RepSelfGet, RepSelfLogout, RepSelfPassword, RepSelfPreferences, RepSessionDelete, RepSessionGet, RepSessionListByCompany, RepSessionListByUser, RepUserAdvancedGet, RepUserAdvancedListByCompany, RepUserAdvancedListByUserGroup, RepUserAuthenticationGet, RepUserAuthenticationListByCompany, RepUserAuthenticationListByUserGroup, RepUserBatchDelete, RepUserBatchMerge, RepUserDelete, RepUserGeneralGet, RepUserGeneralListByCompany, RepUserGeneralListByUserGroup, RepUserGet, RepUserGroupBatchDelete, RepUserGroupBatchMerge, RepUserGroupDelete, RepUserGroupGet, RepUserGroupListByCompany, RepUserGroupMerge, RepUserListByCompany, RepUserMerge, RepUserStateGet, RepUserStateListByCompany, RepUserStateListByUserGroup, SessionHandle };
|
|
597
597
|
export { ParamAssetMerge, PayAsset, PayAssetAdvancedGet, PayAssetAdvancedListByCompany, PayAssetAdvancedListByCompanyAndLabels, PayAssetAdvancedListByCompanyAndRefPairs, PayAssetBatchDelete, PayAssetBatchMerge, PayAssetDelete, PayAssetDispatchGet, PayAssetDispatchListByCompany, PayAssetDispatchListByCompanyAndLabels, PayAssetDispatchListByCompanyAndRefPairs, PayAssetDispatchMerge, PayAssetGeneralGet, PayAssetGeneralListByCompany, PayAssetGeneralListByCompanyAndLabels, PayAssetGeneralListByCompanyAndRefPairs, PayAssetGet, PayAssetListByCompany, PayAssetListByCompanyAndLabels, PayAssetListByCompanyAndRefPairs, PayAssetMerge, PayAssetReactivate, PayAssetRestore, PayAssetSuspend, RepAssetAdvancedGet, RepAssetAdvancedListByCompany, RepAssetAdvancedListByCompanyAndLabels, RepAssetAdvancedListByCompanyAndRefPairs, RepAssetBatchMerge, RepAssetDelete, RepAssetDispatchGet, RepAssetDispatchListByCompany, RepAssetDispatchListByCompanyAndLabels, RepAssetDispatchListByCompanyAndRefPairs, RepAssetDispatchMerge, RepAssetGeneralGet, RepAssetGeneralListByCompany, RepAssetGeneralListByCompanyAndLabels, RepAssetGeneralListByCompanyAndRefPairs, RepAssetGet, RepAssetListByCompany, RepAssetListByCompanyAndLabels, RepAssetListByCompanyAndRefPairs, RepAssetMerge, RepAssetSuspend };
|
|
598
598
|
export { ParamBehaviourMerge, ParamBehaviourScriptMerge, PayBehaviour, PayBehaviourBatchDelete, PayBehaviourBatchMerge, PayBehaviourDelete, PayBehaviourGet, PayBehaviourListByCompany, PayBehaviourLogBatchDeleteByAsset, PayBehaviourLogBatchDeleteByBehaviour, PayBehaviourLogBatchDeleteByScript, PayBehaviourLogListByAsset, PayBehaviourLogListByBehaviour, PayBehaviourLogListByScript, PayBehaviourMerge, PayBehaviourRestore, PayBehaviourScript, PayBehaviourScriptBatchDelete, PayBehaviourScriptBatchMerge, PayBehaviourScriptDelete, PayBehaviourScriptGet, PayBehaviourScriptListByCompany, PayBehaviourScriptMerge, PayBehaviourScriptRestore, RepBehaviourBatchDelete, RepBehaviourBatchMerge, RepBehaviourDelete, RepBehaviourGet, RepBehaviourListByCompany, RepBehaviourLogBatchDeleteByAsset, RepBehaviourLogBatchDeleteByBehaviour, RepBehaviourLogBatchDeleteByScript, RepBehaviourLogListByAsset, RepBehaviourLogListByBehaviour, RepBehaviourLogListByScript, RepBehaviourMerge, RepBehaviourScriptBatchDelete, RepBehaviourScriptBatchMerge, RepBehaviourScriptDelete, RepBehaviourScriptGet, RepBehaviourScriptListByCompany, RepBehaviourScriptMerge };
|
|
599
599
|
export { PayCompany, PayCompanyBatchDelete, PayCompanyBatchMerge, PayCompanyDelete, PayCompanyDirectoryGet, PayCompanyDirectoryList, PayCompanyDirectoryListByCompany, PayCompanyGeneralGet, PayCompanyGeneralList, PayCompanyGeneralListByCompany, PayCompanyGet, PayCompanyMerge, PayCompanyPolicyGet, PayCompanyPolicyList, PayCompanyPolicyListByCompany, PayCompanyResellerDelete, PayCompanyResellerGet, PayCompanyResellerList, PayCompanyResellerListByCompany, PayCompanyResellerMerge, PayCompanyResellerRestore, PayCompanyRestore, PayCompanyStyleGet, PayCompanyStyleList, PayCompanyStyleListByCompany, RepCompanyBatchDelete, RepCompanyBatchMerge, RepCompanyDelete, RepCompanyDirectoryGet, RepCompanyDirectoryList, RepCompanyDirectoryListByCompany, RepCompanyGeneralGet, RepCompanyGeneralList, RepCompanyGeneralListByCompany, RepCompanyGet, RepCompanyMerge, RepCompanyPolicyGet, RepCompanyPolicyList, RepCompanyPolicyListByCompany, RepCompanyResellerDelete, RepCompanyResellerGet, RepCompanyResellerList, RepCompanyResellerListByCompany, RepCompanyResellerMerge, RepCompanyStyleGet, RepCompanyStyleList, RepCompanyStyleListByCompany };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trakit/commands",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.23",
|
|
5
5
|
"main": "./trakit-commands.min.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rollup/plugin-terser": "^0.4.4",
|
|
32
32
|
"rollup": "^4.36.0",
|
|
33
|
-
"rollup-plugin-typescript2": "^0.
|
|
33
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
34
34
|
"vitest": "^4.0.7"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@trakit/objects": "^0.0.
|
|
37
|
+
"@trakit/objects": "^0.0.26"
|
|
38
38
|
}
|
|
39
39
|
}
|