@extrahorizon/javascript-sdk 8.4.1-dev-67-8947251 → 8.4.1-dev-69-1aac904
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/CHANGELOG.md +5 -2
- package/build/index.cjs.js +2 -3
- package/build/index.mjs +2 -3
- package/build/types/services/data/types.d.ts +4 -1
- package/build/types/services/templates/types.d.ts +3 -6
- package/build/types/services/users/types.d.ts +1 -2
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,12 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
10
|
### Fixed
|
|
11
|
-
- Corrected
|
|
11
|
+
- Corrected `functioName` field to `functionName` in the `TransitionActionTask` type
|
|
12
|
+
- `exh.templates.findFirst`, `findById` and `findByName` now correctly state `undefined` can be returned
|
|
12
13
|
|
|
13
14
|
### Added
|
|
14
|
-
- `exh.data.documents.unlinkAllUsers` and `unlinkAllGroups` methods to unlink all users or groups from a document
|
|
15
|
+
- Added `exh.data.documents.unlinkAllUsers` and `unlinkAllGroups` methods to unlink all users or groups from a document
|
|
15
16
|
- Added `priority` field to the `TransitionActionTask` type
|
|
16
17
|
- Added `TransitionActionTask` to the `AfterActions`
|
|
18
|
+
- Added `TRANSITION_DOCUMENTS` permission to the `GlobalPermissionName` enum
|
|
19
|
+
- Added `TRANSITION_DOCUMENTS` permission to the documentation of the transition document function
|
|
17
20
|
|
|
18
21
|
### Changed
|
|
19
22
|
- RQL `contains` and `excludes` now have their different variations better separated in the type definitions
|
package/build/index.cjs.js
CHANGED
|
@@ -1070,6 +1070,7 @@ exports.GlobalPermissionName = void 0;
|
|
|
1070
1070
|
GlobalPermissionName["SEND_MAILS"] = "SEND_MAILS";
|
|
1071
1071
|
GlobalPermissionName["SYNC_PROFILE_GROUPS"] = "SYNC_PROFILE_GROUPS";
|
|
1072
1072
|
GlobalPermissionName["TRANSFER_PERIOD"] = "TRANSFER_PERIOD";
|
|
1073
|
+
GlobalPermissionName["TRANSITION_DOCUMENTS"] = "TRANSITION_DOCUMENTS";
|
|
1073
1074
|
GlobalPermissionName["TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION"] = "TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION";
|
|
1074
1075
|
GlobalPermissionName["TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION"] = "TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION";
|
|
1075
1076
|
GlobalPermissionName["UNLINK_USER_FROM_OIDC"] = "UNLINK_USER_FROM_OIDC";
|
|
@@ -1207,8 +1208,6 @@ exports.GlobalPermissionName = void 0;
|
|
|
1207
1208
|
/** @deprecated Not in use any longer */
|
|
1208
1209
|
GlobalPermissionName["MANAGE_SERVICE_ALERTS"] = "MANAGE_SERVICE_ALERTS";
|
|
1209
1210
|
/** @deprecated Not in use any longer */
|
|
1210
|
-
GlobalPermissionName["TRANSITION_DOCUMENTS"] = "TRANSITION_DOCUMENTS";
|
|
1211
|
-
/** @deprecated Not in use any longer */
|
|
1212
1211
|
GlobalPermissionName["VIEW_AWS_SES_STATISTICS"] = "VIEW_AWS_SES_STATISTICS";
|
|
1213
1212
|
/** @deprecated Not in use any longer */
|
|
1214
1213
|
GlobalPermissionName["CREATE_USER_PERIODS"] = "CREATE_USER_PERIODS";
|
|
@@ -5376,7 +5375,7 @@ const logsService = (httpWithAuth) => {
|
|
|
5376
5375
|
};
|
|
5377
5376
|
};
|
|
5378
5377
|
|
|
5379
|
-
const version = '8.4.1-dev-
|
|
5378
|
+
const version = '8.4.1-dev-69-1aac904';
|
|
5380
5379
|
|
|
5381
5380
|
/**
|
|
5382
5381
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -1040,6 +1040,7 @@ var GlobalPermissionName;
|
|
|
1040
1040
|
GlobalPermissionName["SEND_MAILS"] = "SEND_MAILS";
|
|
1041
1041
|
GlobalPermissionName["SYNC_PROFILE_GROUPS"] = "SYNC_PROFILE_GROUPS";
|
|
1042
1042
|
GlobalPermissionName["TRANSFER_PERIOD"] = "TRANSFER_PERIOD";
|
|
1043
|
+
GlobalPermissionName["TRANSITION_DOCUMENTS"] = "TRANSITION_DOCUMENTS";
|
|
1043
1044
|
GlobalPermissionName["TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION"] = "TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION";
|
|
1044
1045
|
GlobalPermissionName["TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION"] = "TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION";
|
|
1045
1046
|
GlobalPermissionName["UNLINK_USER_FROM_OIDC"] = "UNLINK_USER_FROM_OIDC";
|
|
@@ -1177,8 +1178,6 @@ var GlobalPermissionName;
|
|
|
1177
1178
|
/** @deprecated Not in use any longer */
|
|
1178
1179
|
GlobalPermissionName["MANAGE_SERVICE_ALERTS"] = "MANAGE_SERVICE_ALERTS";
|
|
1179
1180
|
/** @deprecated Not in use any longer */
|
|
1180
|
-
GlobalPermissionName["TRANSITION_DOCUMENTS"] = "TRANSITION_DOCUMENTS";
|
|
1181
|
-
/** @deprecated Not in use any longer */
|
|
1182
1181
|
GlobalPermissionName["VIEW_AWS_SES_STATISTICS"] = "VIEW_AWS_SES_STATISTICS";
|
|
1183
1182
|
/** @deprecated Not in use any longer */
|
|
1184
1183
|
GlobalPermissionName["CREATE_USER_PERIODS"] = "CREATE_USER_PERIODS";
|
|
@@ -5346,7 +5345,7 @@ const logsService = (httpWithAuth) => {
|
|
|
5346
5345
|
};
|
|
5347
5346
|
};
|
|
5348
5347
|
|
|
5349
|
-
const version = '8.4.1-dev-
|
|
5348
|
+
const version = '8.4.1-dev-69-1aac904';
|
|
5350
5349
|
|
|
5351
5350
|
/**
|
|
5352
5351
|
* Create ExtraHorizon client.
|
|
@@ -536,7 +536,10 @@ export interface DataDocumentsService {
|
|
|
536
536
|
* - | - | -
|
|
537
537
|
* none | | Update your own documents
|
|
538
538
|
* none | `staff enlistment` | Update all the documents belonging to the group
|
|
539
|
-
* `UPDATE_DOCUMENTS` | `global` |
|
|
539
|
+
* `UPDATE_DOCUMENTS` | `global` | Transition all the documents
|
|
540
|
+
* `TRANSITION_DOCUMENTS` | `global` | Transition all the documents
|
|
541
|
+
* `TRANSITION_DOCUMENTS:{SCHEMA_NAME}` | `global` | Transition all the documents of the specified schema
|
|
542
|
+
* `TRANSITION_DOCUMENTS:{SCHEMA_NAME}:{TRANSITION_NAME}` | `global` | Transition all the documents of the specified schema with the specified transition name
|
|
540
543
|
* @param schemaIdOrName The id or name of the targeted schema.
|
|
541
544
|
* @param documentId The id of the targeted document.
|
|
542
545
|
* @param requestBody
|
|
@@ -89,23 +89,20 @@ export interface TemplatesService {
|
|
|
89
89
|
/**
|
|
90
90
|
* Find By Id
|
|
91
91
|
* @param id the Id to search for
|
|
92
|
-
* @param rql an optional rql string
|
|
93
92
|
* @returns the first element found
|
|
94
93
|
*/
|
|
95
|
-
findById(id: ObjectId, options?: OptionsWithRql): Promise<TemplateOut>;
|
|
94
|
+
findById(id: ObjectId, options?: OptionsWithRql): Promise<TemplateOut | undefined>;
|
|
96
95
|
/**
|
|
97
96
|
* Find By Name
|
|
98
97
|
* @param name the name to search for
|
|
99
|
-
* @param rql an optional rql string
|
|
100
98
|
* @returns the first element found
|
|
101
99
|
*/
|
|
102
|
-
findByName(name: string, options?: OptionsWithRql): Promise<TemplateOut>;
|
|
100
|
+
findByName(name: string, options?: OptionsWithRql): Promise<TemplateOut | undefined>;
|
|
103
101
|
/**
|
|
104
102
|
* Find First
|
|
105
|
-
* @param rql an optional rql string
|
|
106
103
|
* @returns the first element found
|
|
107
104
|
*/
|
|
108
|
-
findFirst(options?: OptionsWithRql): Promise<TemplateOut>;
|
|
105
|
+
findFirst(options?: OptionsWithRql): Promise<TemplateOut | undefined>;
|
|
109
106
|
/**
|
|
110
107
|
* Create a new template
|
|
111
108
|
*
|
|
@@ -210,6 +210,7 @@ export declare enum GlobalPermissionName {
|
|
|
210
210
|
SEND_MAILS = "SEND_MAILS",
|
|
211
211
|
SYNC_PROFILE_GROUPS = "SYNC_PROFILE_GROUPS",
|
|
212
212
|
TRANSFER_PERIOD = "TRANSFER_PERIOD",
|
|
213
|
+
TRANSITION_DOCUMENTS = "TRANSITION_DOCUMENTS",
|
|
213
214
|
TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION = "TRIGGER_APP_STORE_SUBSCRIPTION_REEVALUATION",
|
|
214
215
|
TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION = "TRIGGER_PLAY_STORE_SUBSCRIPTION_REEVALUATION",
|
|
215
216
|
UNLINK_USER_FROM_OIDC = "UNLINK_USER_FROM_OIDC",
|
|
@@ -347,8 +348,6 @@ export declare enum GlobalPermissionName {
|
|
|
347
348
|
/** @deprecated Not in use any longer */
|
|
348
349
|
MANAGE_SERVICE_ALERTS = "MANAGE_SERVICE_ALERTS",
|
|
349
350
|
/** @deprecated Not in use any longer */
|
|
350
|
-
TRANSITION_DOCUMENTS = "TRANSITION_DOCUMENTS",
|
|
351
|
-
/** @deprecated Not in use any longer */
|
|
352
351
|
VIEW_AWS_SES_STATISTICS = "VIEW_AWS_SES_STATISTICS",
|
|
353
352
|
/** @deprecated Not in use any longer */
|
|
354
353
|
CREATE_USER_PERIODS = "CREATE_USER_PERIODS",
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.4.1-dev-
|
|
1
|
+
export declare const version = "8.4.1-dev-69-1aac904";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/javascript-sdk",
|
|
3
|
-
"version": "8.4.1-dev-
|
|
3
|
+
"version": "8.4.1-dev-69-1aac904",
|
|
4
4
|
"description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
|
|
5
5
|
"main": "build/index.cjs.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|