@extrahorizon/javascript-sdk 8.4.1-dev-68-18958c0 → 8.4.1-dev-70-c69b367
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
CHANGED
|
@@ -8,10 +8,11 @@ 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`
|
|
17
18
|
- Added `TRANSITION_DOCUMENTS` permission to the `GlobalPermissionName` enum
|
package/build/index.cjs.js
CHANGED
package/build/index.mjs
CHANGED
|
@@ -156,15 +156,21 @@ export interface TransitionActionDelay {
|
|
|
156
156
|
type: 'delay';
|
|
157
157
|
time: number;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated Legacy action, should not be used in new projects
|
|
161
|
+
*/
|
|
159
162
|
export interface TransitionActionMeasurementReviewedNotification {
|
|
160
163
|
type: 'measurementReviewedNotification';
|
|
161
164
|
}
|
|
162
|
-
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated Legacy action, the AlgoQueueManager does not exist anymore
|
|
167
|
+
*/
|
|
163
168
|
export interface TransitionActionNotifyAlgoQueueManager {
|
|
164
169
|
type: 'notifyAlgoQueueManager';
|
|
165
170
|
id: string;
|
|
166
171
|
version: string;
|
|
167
172
|
}
|
|
173
|
+
export declare type TransitionAction = TransitionActionSet | TransitionActionUnset | TransitionActionAddItems | TransitionActionRemoveItems | TransitionActionTask | TransitionActionLinkCreator | TransitionActionLinkEnlistedGroups | TransitionActionLinkUserFromData | TransitionActionLinkGroupFromData | TransitionActionDelay | TransitionActionMeasurementReviewedNotification;
|
|
168
174
|
export declare type TransitionAfterAction = TransitionActionNotifyAlgoQueueManager | TransitionActionTask;
|
|
169
175
|
export interface CreationTransition {
|
|
170
176
|
toStatus: string;
|
|
@@ -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
|
*
|
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-70-c69b367";
|
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-70-c69b367",
|
|
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",
|