@5minds/processcube_engine_client 6.0.0-alpha.4 → 6.0.0-alpha.5
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/dist/Client.d.ts +5 -3
- package/dist/ClientFactory.d.ts +17 -16
- package/dist/Clients/AnonymousSessionHttpClient.d.ts +26 -0
- package/dist/Clients/ApplicationInfoHttpClient.d.ts +4 -5
- package/dist/Clients/BaseClient.d.ts +8 -10
- package/dist/Clients/CorrelationHttpClient.d.ts +3 -4
- package/dist/Clients/CronjobHttpClient.d.ts +4 -5
- package/dist/Clients/DataObjectInstanceHttpClient.d.ts +2 -3
- package/dist/Clients/EventHttpClient.d.ts +12 -13
- package/dist/Clients/ExternalTaskApiHttpClient.d.ts +6 -7
- package/dist/Clients/ExternalTaskHttpClient.d.ts +3 -3
- package/dist/Clients/FlowNodeInstanceHttpClient.d.ts +7 -8
- package/dist/Clients/Lib/SocketIoManager.d.ts +28 -13
- package/dist/Clients/ManualTaskHttpClient.d.ts +6 -7
- package/dist/Clients/NotificationHttpClient.d.ts +51 -52
- package/dist/Clients/ProcessDefinitionHttpClient.d.ts +10 -11
- package/dist/Clients/ProcessDefinitionHttpClientNode.d.ts +2 -2
- package/dist/Clients/ProcessInstanceHttpClient.d.ts +9 -10
- package/dist/Clients/ProcessModelHttpClient.d.ts +10 -11
- package/dist/Clients/UntypedTaskHttpClient.d.ts +6 -7
- package/dist/Clients/UserTaskHttpClient.d.ts +10 -11
- package/dist/Clients/index.d.ts +1 -0
- package/dist/ExternalTaskExecution.d.ts +0 -1
- package/dist/ExternalTaskWorker.d.ts +1 -8
- package/dist/Types/IExternalTaskWorker.d.ts +2 -3
- package/dist/commonjs/Client.js +26 -18
- package/dist/commonjs/Client.js.map +1 -1
- package/dist/commonjs/ClientFactory.js +29 -23
- package/dist/commonjs/ClientFactory.js.map +1 -1
- package/dist/commonjs/Clients/AnonymousSessionHttpClient.js +48 -0
- package/dist/commonjs/Clients/AnonymousSessionHttpClient.js.map +1 -0
- package/dist/commonjs/Clients/ApplicationInfoHttpClient.js +5 -5
- package/dist/commonjs/Clients/ApplicationInfoHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/BaseClient.js +15 -23
- package/dist/commonjs/Clients/BaseClient.js.map +1 -1
- package/dist/commonjs/Clients/CorrelationHttpClient.js +2 -2
- package/dist/commonjs/Clients/CorrelationHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/CronjobHttpClient.js +3 -3
- package/dist/commonjs/Clients/CronjobHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/DataObjectInstanceHttpClient.js +1 -1
- package/dist/commonjs/Clients/DataObjectInstanceHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/EventHttpClient.js +4 -4
- package/dist/commonjs/Clients/EventHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/ExternalTaskApiHttpClient.js +5 -5
- package/dist/commonjs/Clients/ExternalTaskApiHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/ExternalTaskHttpClient.js +5 -4
- package/dist/commonjs/Clients/ExternalTaskHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js +6 -6
- package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/Lib/SocketIoManager.js +49 -129
- package/dist/commonjs/Clients/Lib/SocketIoManager.js.map +1 -1
- package/dist/commonjs/Clients/ManualTaskHttpClient.js +2 -2
- package/dist/commonjs/Clients/ManualTaskHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/NotificationHttpClient.js +3 -3
- package/dist/commonjs/Clients/NotificationHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/ProcessDefinitionHttpClient.js +8 -8
- package/dist/commonjs/Clients/ProcessDefinitionHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/ProcessDefinitionHttpClientNode.js.map +1 -1
- package/dist/commonjs/Clients/ProcessInstanceHttpClient.js +9 -9
- package/dist/commonjs/Clients/ProcessInstanceHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/ProcessModelHttpClient.js +9 -9
- package/dist/commonjs/Clients/ProcessModelHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/UntypedTaskHttpClient.js +2 -2
- package/dist/commonjs/Clients/UntypedTaskHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/UserTaskHttpClient.js +4 -4
- package/dist/commonjs/Clients/UserTaskHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/index.js +1 -0
- package/dist/commonjs/Clients/index.js.map +1 -1
- package/dist/commonjs/ExternalTaskExecution.js +3 -6
- package/dist/commonjs/ExternalTaskExecution.js.map +1 -1
- package/dist/commonjs/ExternalTaskWorker.js +10 -16
- package/dist/commonjs/ExternalTaskWorker.js.map +1 -1
- package/dist/commonjs/index.js +1 -5
- package/dist/commonjs/index.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/package.json +2 -7
- package/dist/ClientCredentialsIdentityAccessor.d.ts +0 -12
- package/dist/IdentityAccessor.d.ts +0 -41
- package/dist/Retry.d.ts +0 -1
- package/dist/commonjs/ClientCredentialsIdentityAccessor.js +0 -79
- package/dist/commonjs/ClientCredentialsIdentityAccessor.js.map +0 -1
- package/dist/commonjs/IdentityAccessor.js +0 -200
- package/dist/commonjs/IdentityAccessor.js.map +0 -1
- package/dist/commonjs/Retry.js +0 -30
- package/dist/commonjs/Retry.js.map +0 -1
- package/tsconfig.tests.json +0 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { INotificationExtensionAdapter, Messages, Subscription } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { INotificationExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { Messages as ClientMessages } from '../Types/index';
|
|
4
3
|
import { BaseClient } from './BaseClient';
|
|
5
4
|
export interface INotificationHttpClient extends INotificationExtensionAdapter {
|
|
@@ -8,192 +7,192 @@ export interface INotificationHttpClient extends INotificationExtensionAdapter {
|
|
|
8
7
|
onReconnected(callback: ClientMessages.CallbackTypes.OnReconnected, subscribeOnce?: boolean): Subscription;
|
|
9
8
|
}
|
|
10
9
|
export declare class NotificationHttpClient extends BaseClient implements INotificationHttpClient {
|
|
11
|
-
removeSubscription(subscription: Subscription, identity?:
|
|
12
|
-
onConnected(callback: ClientMessages.CallbackTypes.OnConnected, subscribeOnce?: boolean, identity?:
|
|
13
|
-
onDisconnected(callback: ClientMessages.CallbackTypes.OnDisconnected, subscribeOnce?: boolean, identity?:
|
|
14
|
-
onReconnected(callback: ClientMessages.CallbackTypes.OnReconnected, subscribeOnce?: boolean, identity?:
|
|
10
|
+
removeSubscription(subscription: Subscription, identity?: Identity): void;
|
|
11
|
+
onConnected(callback: ClientMessages.CallbackTypes.OnConnected, subscribeOnce?: boolean, identity?: Identity): Subscription;
|
|
12
|
+
onDisconnected(callback: ClientMessages.CallbackTypes.OnDisconnected, subscribeOnce?: boolean, identity?: Identity): Subscription;
|
|
13
|
+
onReconnected(callback: ClientMessages.CallbackTypes.OnReconnected, subscribeOnce?: boolean, identity?: Identity): Subscription;
|
|
15
14
|
onActivityError(callback: Messages.CallbackTypes.OnActivityErrorCallback, options?: {
|
|
16
15
|
subscribeOnce?: boolean;
|
|
17
|
-
identity?:
|
|
16
|
+
identity?: Identity;
|
|
18
17
|
}): Promise<Subscription>;
|
|
19
18
|
onProcessDeployed(callback: Messages.CallbackTypes.OnProcessDeployedCallback, options?: {
|
|
20
19
|
subscribeOnce?: boolean;
|
|
21
|
-
identity?:
|
|
20
|
+
identity?: Identity;
|
|
22
21
|
}): Promise<Subscription>;
|
|
23
22
|
onProcessUndeployed(callback: Messages.CallbackTypes.OnProcessUndeployedCallback, options?: {
|
|
24
23
|
subscribeOnce?: boolean;
|
|
25
|
-
identity?:
|
|
24
|
+
identity?: Identity;
|
|
26
25
|
}): Promise<Subscription>;
|
|
27
26
|
onProcessIsExecutableChanged(callback: Messages.CallbackTypes.OnProcessIsExecutableChangedCallback, options?: {
|
|
28
27
|
subscribeOnce?: boolean;
|
|
29
|
-
identity?:
|
|
28
|
+
identity?: Identity;
|
|
30
29
|
}): Promise<Subscription>;
|
|
31
30
|
onCronjobEnabledChanged(callback: Messages.CallbackTypes.OnCronjobEnabledChangedCallback, options?: {
|
|
32
31
|
subscribeOnce?: boolean;
|
|
33
|
-
identity?:
|
|
32
|
+
identity?: Identity;
|
|
34
33
|
}): Promise<Subscription>;
|
|
35
34
|
onProcessStarting(callback: Messages.CallbackTypes.OnProcessStartingCallback, options?: {
|
|
36
35
|
subscribeOnce?: boolean;
|
|
37
|
-
identity?:
|
|
36
|
+
identity?: Identity;
|
|
38
37
|
}): Promise<Subscription>;
|
|
39
38
|
onProcessStarted(callback: Messages.CallbackTypes.OnProcessStartedCallback, options?: {
|
|
40
39
|
subscribeOnce?: boolean;
|
|
41
|
-
identity?:
|
|
40
|
+
identity?: Identity;
|
|
42
41
|
}): Promise<Subscription>;
|
|
43
42
|
onProcessResumed(callback: Messages.CallbackTypes.OnProcessStartedCallback, options?: {
|
|
44
43
|
subscribeOnce?: boolean;
|
|
45
|
-
identity?:
|
|
44
|
+
identity?: Identity;
|
|
46
45
|
}): Promise<Subscription>;
|
|
47
46
|
onProcessEnded(callback: Messages.CallbackTypes.OnProcessEndedCallback, options?: {
|
|
48
47
|
subscribeOnce?: boolean;
|
|
49
|
-
identity?:
|
|
48
|
+
identity?: Identity;
|
|
50
49
|
}): Promise<Subscription>;
|
|
51
50
|
onProcessOwnerChanged(callback: Messages.CallbackTypes.OnProcessOwnerChangedCallback, options?: {
|
|
52
51
|
subscribeOnce?: boolean;
|
|
53
|
-
identity?:
|
|
52
|
+
identity?: Identity;
|
|
54
53
|
}): Promise<Subscription>;
|
|
55
54
|
onProcessTerminated(callback: Messages.CallbackTypes.OnProcessTerminatedCallback, options?: {
|
|
56
55
|
subscribeOnce?: boolean;
|
|
57
|
-
identity?:
|
|
56
|
+
identity?: Identity;
|
|
58
57
|
}): Promise<Subscription>;
|
|
59
58
|
onProcessError(callback: Messages.CallbackTypes.OnProcessErrorCallback, options?: {
|
|
60
59
|
subscribeOnce?: boolean;
|
|
61
|
-
identity?:
|
|
60
|
+
identity?: Identity;
|
|
62
61
|
}): Promise<Subscription>;
|
|
63
62
|
onProcessInstancesDeleted(callback: Messages.CallbackTypes.OnProcessInstancesDeletedCallback, options?: {
|
|
64
63
|
subscribeOnce?: boolean;
|
|
65
|
-
identity?:
|
|
64
|
+
identity?: Identity;
|
|
66
65
|
}): Promise<Subscription>;
|
|
67
66
|
onCronjobCreated(callback: Messages.CallbackTypes.OnCronjobCreatedCallback, options?: {
|
|
68
67
|
subscribeOnce?: boolean;
|
|
69
|
-
identity?:
|
|
68
|
+
identity?: Identity;
|
|
70
69
|
}): Promise<Subscription>;
|
|
71
70
|
onCronjobStopped(callback: Messages.CallbackTypes.OnCronjobStoppedCallback, options?: {
|
|
72
71
|
subscribeOnce?: boolean;
|
|
73
|
-
identity?:
|
|
72
|
+
identity?: Identity;
|
|
74
73
|
}): Promise<Subscription>;
|
|
75
74
|
onCronjobUpdated(callback: Messages.CallbackTypes.OnCronjobUpdatedCallback, options?: {
|
|
76
75
|
subscribeOnce?: boolean;
|
|
77
|
-
identity?:
|
|
76
|
+
identity?: Identity;
|
|
78
77
|
}): Promise<Subscription>;
|
|
79
78
|
onCronjobExecuted(callback: Messages.CallbackTypes.OnCronjobExecutedCallback, options?: {
|
|
80
79
|
subscribeOnce?: boolean;
|
|
81
|
-
identity?:
|
|
80
|
+
identity?: Identity;
|
|
82
81
|
}): Promise<Subscription>;
|
|
83
82
|
onCronjobRemoved(callback: Messages.CallbackTypes.OnCronjobRemovedCallback, options?: {
|
|
84
83
|
subscribeOnce?: boolean;
|
|
85
|
-
identity?:
|
|
84
|
+
identity?: Identity;
|
|
86
85
|
}): Promise<Subscription>;
|
|
87
86
|
onActivityReached(callback: Messages.CallbackTypes.OnActivityReachedCallback, options?: {
|
|
88
87
|
subscribeOnce?: boolean;
|
|
89
|
-
identity?:
|
|
88
|
+
identity?: Identity;
|
|
90
89
|
}): Promise<Subscription>;
|
|
91
90
|
onActivityFinished(callback: Messages.CallbackTypes.OnActivityFinishedCallback, options?: {
|
|
92
91
|
subscribeOnce?: boolean;
|
|
93
|
-
identity?:
|
|
92
|
+
identity?: Identity;
|
|
94
93
|
}): Promise<Subscription>;
|
|
95
94
|
onActivityCanceled(callback: Messages.CallbackTypes.OnActivityCanceledCallback, options?: {
|
|
96
95
|
subscribeOnce?: boolean;
|
|
97
|
-
identity?:
|
|
96
|
+
identity?: Identity;
|
|
98
97
|
}): Promise<Subscription>;
|
|
99
98
|
onUntypedTaskWaiting(callback: Messages.CallbackTypes.OnUntypedTaskWaitingCallback, options?: {
|
|
100
99
|
subscribeOnce?: boolean;
|
|
101
|
-
identity?:
|
|
100
|
+
identity?: Identity;
|
|
102
101
|
}): Promise<Subscription>;
|
|
103
102
|
onUntypedTaskFinished(callback: Messages.CallbackTypes.OnUntypedTaskFinishedCallback, options?: {
|
|
104
103
|
subscribeOnce?: boolean;
|
|
105
|
-
identity?:
|
|
104
|
+
identity?: Identity;
|
|
106
105
|
}): Promise<Subscription>;
|
|
107
106
|
onManualTaskWaiting(callback: Messages.CallbackTypes.OnManualTaskWaitingCallback, options?: {
|
|
108
107
|
subscribeOnce?: boolean;
|
|
109
|
-
identity?:
|
|
108
|
+
identity?: Identity;
|
|
110
109
|
}): Promise<Subscription>;
|
|
111
110
|
onManualTaskFinished(callback: Messages.CallbackTypes.OnManualTaskFinishedCallback, options?: {
|
|
112
111
|
subscribeOnce?: boolean;
|
|
113
|
-
identity?:
|
|
112
|
+
identity?: Identity;
|
|
114
113
|
}): Promise<Subscription>;
|
|
115
114
|
onUserTaskWaiting(callback: Messages.CallbackTypes.OnUserTaskWaitingCallback, options?: {
|
|
116
115
|
subscribeOnce?: boolean;
|
|
117
|
-
identity?:
|
|
116
|
+
identity?: Identity;
|
|
118
117
|
}): Promise<Subscription>;
|
|
119
118
|
onUserTaskFinished(callback: Messages.CallbackTypes.OnUserTaskFinishedCallback, options?: {
|
|
120
119
|
subscribeOnce?: boolean;
|
|
121
|
-
identity?:
|
|
120
|
+
identity?: Identity;
|
|
122
121
|
}): Promise<Subscription>;
|
|
123
122
|
onUserTaskReserved(callback: Messages.CallbackTypes.OnUserTaskReservedCallback, options?: {
|
|
124
123
|
subscribeOnce?: boolean;
|
|
125
|
-
identity?:
|
|
124
|
+
identity?: Identity;
|
|
126
125
|
}): Promise<Subscription>;
|
|
127
126
|
onUserTaskReservationCanceled(callback: Messages.CallbackTypes.OnUserTaskReservationCanceledCallback, options?: {
|
|
128
127
|
subscribeOnce?: boolean;
|
|
129
|
-
identity?:
|
|
128
|
+
identity?: Identity;
|
|
130
129
|
}): Promise<Subscription>;
|
|
131
130
|
onBoundaryEventWaiting(callback: Messages.CallbackTypes.OnBoundaryEventWaitingCallback, options?: {
|
|
132
131
|
subscribeOnce?: boolean;
|
|
133
|
-
identity?:
|
|
132
|
+
identity?: Identity;
|
|
134
133
|
}): Promise<Subscription>;
|
|
135
134
|
onBoundaryEventTriggered(callback: Messages.CallbackTypes.OnBoundaryEventTriggeredCallback, options?: {
|
|
136
135
|
subscribeOnce?: boolean;
|
|
137
|
-
identity?:
|
|
136
|
+
identity?: Identity;
|
|
138
137
|
}): Promise<Subscription>;
|
|
139
138
|
onBoundaryEventFinished(callback: Messages.CallbackTypes.OnBoundaryEventFinishedCallback, options?: {
|
|
140
139
|
subscribeOnce?: boolean;
|
|
141
|
-
identity?:
|
|
140
|
+
identity?: Identity;
|
|
142
141
|
}): Promise<Subscription>;
|
|
143
142
|
onIntermediateThrowEventTriggered(callback: Messages.CallbackTypes.OnIntermediateThrowEventTriggeredCallback, options?: {
|
|
144
143
|
subscribeOnce?: boolean;
|
|
145
|
-
identity?:
|
|
144
|
+
identity?: Identity;
|
|
146
145
|
}): Promise<Subscription>;
|
|
147
146
|
onIntermediateCatchEventReached(callback: Messages.CallbackTypes.OnIntermediateCatchEventReachedCallback, options?: {
|
|
148
147
|
subscribeOnce?: boolean;
|
|
149
|
-
identity?:
|
|
148
|
+
identity?: Identity;
|
|
150
149
|
}): Promise<Subscription>;
|
|
151
150
|
onIntermediateCatchEventFinished(callback: Messages.CallbackTypes.OnIntermediateCatchEventFinishedCallback, options?: {
|
|
152
151
|
subscribeOnce?: boolean;
|
|
153
|
-
identity?:
|
|
152
|
+
identity?: Identity;
|
|
154
153
|
}): Promise<Subscription>;
|
|
155
154
|
onFlowNodeEventRetrySending(callback: Messages.CallbackTypes.OnFlowNodeEventRetrySendingCallback, options?: {
|
|
156
155
|
subscribeOnce?: boolean;
|
|
157
|
-
identity?:
|
|
156
|
+
identity?: Identity;
|
|
158
157
|
}): Promise<Subscription>;
|
|
159
158
|
onMessageTriggered(callback: Messages.CallbackTypes.OnMessageTriggeredCallback, options?: {
|
|
160
159
|
subscribeOnce?: boolean;
|
|
161
|
-
identity?:
|
|
160
|
+
identity?: Identity;
|
|
162
161
|
}): Promise<Subscription>;
|
|
163
162
|
onSignalTriggered(callback: Messages.CallbackTypes.OnSignalTriggeredCallback, options?: {
|
|
164
163
|
subscribeOnce?: boolean;
|
|
165
|
-
identity?:
|
|
164
|
+
identity?: Identity;
|
|
166
165
|
}): Promise<Subscription>;
|
|
167
166
|
onStartEventFinished(callback: Messages.CallbackTypes.OnStartEventFinishedCallback, options?: {
|
|
168
167
|
subscribeOnce?: boolean;
|
|
169
|
-
identity?:
|
|
168
|
+
identity?: Identity;
|
|
170
169
|
}): Promise<Subscription>;
|
|
171
170
|
onEndEventFinished(callback: Messages.CallbackTypes.OnEndEventFinishedCallback, options?: {
|
|
172
171
|
subscribeOnce?: boolean;
|
|
173
|
-
identity?:
|
|
172
|
+
identity?: Identity;
|
|
174
173
|
}): Promise<Subscription>;
|
|
175
174
|
onExternalTaskCreated(callback: Messages.CallbackTypes.OnExternalTaskCreatedCallback, options?: {
|
|
176
175
|
subscribeOnce?: boolean;
|
|
177
|
-
identity?:
|
|
176
|
+
identity?: Identity;
|
|
178
177
|
}): Promise<Subscription>;
|
|
179
178
|
onExternalTaskLocked(callback: Messages.CallbackTypes.OnExternalTaskLockedCallback, options?: {
|
|
180
179
|
subscribeOnce?: boolean;
|
|
181
|
-
identity?:
|
|
180
|
+
identity?: Identity;
|
|
182
181
|
}): Promise<Subscription>;
|
|
183
182
|
onExternalTaskUnlocked(callback: Messages.CallbackTypes.OnExternalTaskUnlockedCallback, options?: {
|
|
184
183
|
subscribeOnce?: boolean;
|
|
185
|
-
identity?:
|
|
184
|
+
identity?: Identity;
|
|
186
185
|
}): Promise<Subscription>;
|
|
187
186
|
onProcessInstanceMetadataChanged(callback: Messages.CallbackTypes.OnProcessInstanceMetadataChangedCallback, options?: {
|
|
188
187
|
subscribeOnce?: boolean;
|
|
189
|
-
identity?:
|
|
188
|
+
identity?: Identity;
|
|
190
189
|
}): Promise<Subscription>;
|
|
191
190
|
onCorrelationMetadataChanged(callback: Messages.CallbackTypes.OnCorrelationMetadataChangedCallback, options?: {
|
|
192
191
|
subscribeOnce?: boolean;
|
|
193
|
-
identity?:
|
|
192
|
+
identity?: Identity;
|
|
194
193
|
}): Promise<Subscription>;
|
|
195
194
|
onGatewayFinished(callback: Messages.CallbackTypes.OnGatewayFinishedCallback, options?: {
|
|
196
195
|
subscribeOnce?: boolean;
|
|
197
|
-
identity?:
|
|
196
|
+
identity?: Identity;
|
|
198
197
|
}): Promise<Subscription>;
|
|
199
198
|
}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { DataModels, IProcessDefinitionExtensionAdapter } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { DataModels, IProcessDefinitionExtensionAdapter, Identity } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { BaseClient } from './BaseClient';
|
|
4
3
|
type ProcessStartOptions<TPayload extends object> = DataModels.ProcessInstances.ProcessStartOptions<TPayload>;
|
|
5
4
|
type ProcessStartResponse = DataModels.ProcessInstances.ProcessStartResponse;
|
|
6
5
|
export declare class ProcessDefinitionHttpClient extends BaseClient implements IProcessDefinitionExtensionAdapter {
|
|
7
6
|
getAll(options?: {
|
|
8
|
-
identity?:
|
|
7
|
+
identity?: Identity;
|
|
9
8
|
offset?: number;
|
|
10
9
|
limit?: number;
|
|
11
10
|
}): Promise<DataModels.ProcessDefinitions.ProcessDefinitionList>;
|
|
12
|
-
getById(processDefinitionId: string, identity?:
|
|
13
|
-
getByProcessModelId(processModelId: string, identity?:
|
|
11
|
+
getById(processDefinitionId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessDefinition>;
|
|
12
|
+
getByProcessModelId(processModelId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessDefinition>;
|
|
14
13
|
persistProcessDefinitions(xml: string | Array<string>, options?: {
|
|
15
14
|
overwriteExisting?: boolean;
|
|
16
|
-
identity?:
|
|
15
|
+
identity?: Identity;
|
|
17
16
|
}): Promise<void>;
|
|
18
17
|
deployFiles(filePaths: string | Array<string>, options?: {
|
|
19
18
|
overwriteExisting?: boolean;
|
|
20
|
-
identity?:
|
|
19
|
+
identity?: Identity;
|
|
21
20
|
}): Promise<void>;
|
|
22
|
-
startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?:
|
|
23
|
-
startProcessInstanceAndAwaitEndEvent<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?:
|
|
24
|
-
startProcessInstanceAndAwaitSpecificEndEvent<TPayload extends object>(options: DataModels.ProcessInstances.ProcessStartOptions<TPayload>, endEventId: string, identity?:
|
|
21
|
+
startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
|
|
22
|
+
startProcessInstanceAndAwaitEndEvent<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
|
|
23
|
+
startProcessInstanceAndAwaitSpecificEndEvent<TPayload extends object>(options: DataModels.ProcessInstances.ProcessStartOptions<TPayload>, endEventId: string, identity?: Identity): Promise<ProcessStartResponse>;
|
|
25
24
|
/**
|
|
26
25
|
* @param deleteAllRelatedData Optional: If set to true, the Process Definition, as well as all related data, will be completely deleted.
|
|
27
26
|
* Otherwise, the Process Definition will only be flagged as deleted, but all data will be kept.
|
|
28
27
|
* Note that this won't do anything on engines with a version below v13.0.7.
|
|
29
28
|
*/
|
|
30
|
-
deleteById(processDefinitionId: string, identity?:
|
|
29
|
+
deleteById(processDefinitionId: string, identity?: Identity, deleteAllRelatedData?: boolean): Promise<void>;
|
|
31
30
|
}
|
|
32
31
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Identity } from '@5minds/processcube_engine_sdk';
|
|
2
2
|
import { ProcessDefinitionHttpClient } from './ProcessDefinitionHttpClient';
|
|
3
3
|
export declare class ProcessDefinitionHttpClientNode extends ProcessDefinitionHttpClient {
|
|
4
4
|
deployFiles(filePaths: string | Array<string>, options?: {
|
|
5
5
|
overwriteExisting?: boolean;
|
|
6
|
-
identity?:
|
|
6
|
+
identity?: Identity;
|
|
7
7
|
}): Promise<void>;
|
|
8
8
|
}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { BpmnType, DataModels, IProcessInstanceExtensionAdapter } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { BpmnType, DataModels, IProcessInstanceExtensionAdapter, Identity } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { BaseClient } from './BaseClient';
|
|
4
3
|
export declare class ProcessInstanceHttpClient extends BaseClient implements IProcessInstanceExtensionAdapter {
|
|
5
4
|
query(query: DataModels.ProcessInstances.ProcessInstanceQuery, options?: {
|
|
6
|
-
identity?:
|
|
5
|
+
identity?: Identity;
|
|
7
6
|
includeXml?: boolean;
|
|
8
7
|
offset?: number;
|
|
9
8
|
limit?: number;
|
|
10
9
|
sortSettings?: DataModels.ProcessInstances.ProcessInstanceSortSettings;
|
|
11
10
|
}): Promise<DataModels.ProcessInstances.ProcessInstanceList>;
|
|
12
11
|
getChildProcessInstanceIds(processInstanceId: string, options: {
|
|
13
|
-
identity?:
|
|
12
|
+
identity?: Identity;
|
|
14
13
|
parentFlowNodeType?: BpmnType.subProcess | BpmnType.callActivity;
|
|
15
14
|
includeNested?: boolean;
|
|
16
15
|
}): Promise<Array<string>>;
|
|
17
16
|
getAncestorProcessInstanceIds(processInstanceId: string, options: {
|
|
18
|
-
identity?:
|
|
17
|
+
identity?: Identity;
|
|
19
18
|
onlyForEmbeddedProcesses?: boolean;
|
|
20
19
|
}): Promise<Array<string>>;
|
|
21
|
-
getProcessDefinition(processInstanceId: string, identity?:
|
|
22
|
-
getProcessModel(processInstanceId: string, identity?:
|
|
20
|
+
getProcessDefinition(processInstanceId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessDefinition>;
|
|
21
|
+
getProcessModel(processInstanceId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessModel>;
|
|
23
22
|
transferOwnership(processInstanceId: string, newOwner: DataModels.Iam.Identity, identity?: DataModels.Iam.Identity): Promise<void>;
|
|
24
|
-
terminateProcessInstance(processInstanceId: string, identity?:
|
|
23
|
+
terminateProcessInstance(processInstanceId: string, identity?: Identity): Promise<void>;
|
|
25
24
|
retryProcessInstance(processInstanceId: string, options?: {
|
|
26
25
|
flowNodeInstanceId?: string;
|
|
27
26
|
newStartToken?: any;
|
|
28
27
|
updateProcessModel?: boolean;
|
|
29
|
-
identity?:
|
|
28
|
+
identity?: Identity;
|
|
30
29
|
}): Promise<void>;
|
|
31
|
-
deleteProcessInstances(processInstanceIds: string | Array<string>, deleteAllRelatedData?: boolean, identity?:
|
|
30
|
+
deleteProcessInstances(processInstanceIds: string | Array<string>, deleteAllRelatedData?: boolean, identity?: Identity): Promise<void>;
|
|
32
31
|
private handleError;
|
|
33
32
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { DataModels, IProcessModelExtensionAdapter } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { DataModels, IProcessModelExtensionAdapter, Identity } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { BaseClient } from './BaseClient';
|
|
4
3
|
type ProcessStartOptions<TPayload extends object> = DataModels.ProcessInstances.ProcessStartOptions<TPayload>;
|
|
5
4
|
type ProcessStartResponse = DataModels.ProcessInstances.ProcessStartResponse;
|
|
6
5
|
export declare class ProcessModelHttpClient extends BaseClient implements IProcessModelExtensionAdapter {
|
|
7
6
|
getAll(options?: {
|
|
8
|
-
identity?:
|
|
7
|
+
identity?: Identity;
|
|
9
8
|
offset?: number;
|
|
10
9
|
limit?: number;
|
|
11
10
|
}): Promise<DataModels.ProcessDefinitions.ProcessModelList>;
|
|
12
|
-
getById(processModelId: string, identity?:
|
|
13
|
-
getByProcessInstanceId(processInstanceId: string, identity?:
|
|
14
|
-
startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?:
|
|
15
|
-
startProcessInstanceAndAwaitEndEvent<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?:
|
|
16
|
-
startProcessInstanceAndAwaitSpecificEndEvent<TPayload extends object>(options: DataModels.ProcessInstances.ProcessStartOptions<TPayload>, endEventId: string, identity?:
|
|
11
|
+
getById(processModelId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessModel>;
|
|
12
|
+
getByProcessInstanceId(processInstanceId: string, identity?: Identity): Promise<DataModels.ProcessDefinitions.ProcessModel>;
|
|
13
|
+
startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
|
|
14
|
+
startProcessInstanceAndAwaitEndEvent<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
|
|
15
|
+
startProcessInstanceAndAwaitSpecificEndEvent<TPayload extends object>(options: DataModels.ProcessInstances.ProcessStartOptions<TPayload>, endEventId: string, identity?: Identity): Promise<ProcessStartResponse>;
|
|
17
16
|
/**
|
|
18
17
|
* @param deleteAllRelatedData Optional: If set to true, the Process Definition, as well as all related data, will be completely deleted.
|
|
19
18
|
* Otherwise, the Process Definition will only be flagged as deleted, but all data will be kept.
|
|
@@ -21,10 +20,10 @@ export declare class ProcessModelHttpClient extends BaseClient implements IProce
|
|
|
21
20
|
*/
|
|
22
21
|
deleteDefinitionByProcessModelId(processModelId: string, options?: {
|
|
23
22
|
force?: boolean;
|
|
24
|
-
identity?:
|
|
23
|
+
identity?: Identity;
|
|
25
24
|
deleteAllRelatedData?: boolean;
|
|
26
25
|
}): Promise<void>;
|
|
27
|
-
enableProcessModel(processModelId: string, identity?:
|
|
28
|
-
disableProcessModel(processModelId: string, identity?:
|
|
26
|
+
enableProcessModel(processModelId: string, identity?: Identity): Promise<void>;
|
|
27
|
+
disableProcessModel(processModelId: string, identity?: Identity): Promise<void>;
|
|
29
28
|
}
|
|
30
29
|
export {};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { FlowNodeInstanceSortSettings, IUntypedTaskExtensionAdapter, Messages, Subscription, UntypedTaskList, UntypedTaskQuery } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { FlowNodeInstanceSortSettings, IUntypedTaskExtensionAdapter, Identity, Messages, Subscription, UntypedTaskList, UntypedTaskQuery } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { BaseClient } from './BaseClient';
|
|
4
3
|
export declare class UntypedTaskHttpClient extends BaseClient implements IUntypedTaskExtensionAdapter {
|
|
5
4
|
query(query: UntypedTaskQuery, options?: {
|
|
6
|
-
identity?:
|
|
5
|
+
identity?: Identity;
|
|
7
6
|
offset?: number;
|
|
8
7
|
limit?: number;
|
|
9
8
|
sortSettings?: FlowNodeInstanceSortSettings;
|
|
10
9
|
}): Promise<UntypedTaskList>;
|
|
11
|
-
finishTask(taskInstanceId: string, identity?:
|
|
10
|
+
finishTask(taskInstanceId: string, identity?: Identity): Promise<void>;
|
|
12
11
|
onUntypedTaskWaiting(callback: Messages.CallbackTypes.OnUntypedTaskWaitingCallback, options?: {
|
|
13
12
|
subscribeOnce?: boolean;
|
|
14
|
-
identity?:
|
|
13
|
+
identity?: Identity;
|
|
15
14
|
}): Promise<Subscription>;
|
|
16
15
|
onUntypedTaskFinished(callback: Messages.CallbackTypes.OnUntypedTaskFinishedCallback, options?: {
|
|
17
16
|
subscribeOnce?: boolean;
|
|
18
|
-
identity?:
|
|
17
|
+
identity?: Identity;
|
|
19
18
|
}): Promise<Subscription>;
|
|
20
|
-
removeSubscription(subscription: Subscription, identity?:
|
|
19
|
+
removeSubscription(subscription: Subscription, identity?: Identity): void;
|
|
21
20
|
}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { DataModels, IUserTaskExtensionAdapter, Messages, Subscription } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { DataModels, IUserTaskExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
import { BaseClient } from './BaseClient';
|
|
4
3
|
type UserTaskList = DataModels.FlowNodeInstances.UserTaskList;
|
|
5
4
|
export declare class UserTaskHttpClient extends BaseClient implements IUserTaskExtensionAdapter {
|
|
6
5
|
query(query: DataModels.FlowNodeInstances.UserTaskQuery, options?: {
|
|
7
|
-
identity?:
|
|
6
|
+
identity?: Identity;
|
|
8
7
|
offset?: number;
|
|
9
8
|
limit?: number;
|
|
10
9
|
sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
|
|
11
10
|
}): Promise<UserTaskList>;
|
|
12
|
-
reserveUserTaskInstance(identity:
|
|
13
|
-
cancelUserTaskInstanceReservation(identity:
|
|
14
|
-
finishUserTask(userTaskInstanceId: string, userTaskResult: DataModels.FlowNodeInstances.UserTaskResult, identity?:
|
|
11
|
+
reserveUserTaskInstance(identity: Identity, flowNodeInstanceId: string, actualOwnerId: string): Promise<void>;
|
|
12
|
+
cancelUserTaskInstanceReservation(identity: Identity, flowNodeInstanceId: string): Promise<void>;
|
|
13
|
+
finishUserTask(userTaskInstanceId: string, userTaskResult: DataModels.FlowNodeInstances.UserTaskResult, identity?: Identity): Promise<void>;
|
|
15
14
|
onUserTaskWaiting(callback: Messages.CallbackTypes.OnUserTaskWaitingCallback, options?: {
|
|
16
15
|
subscribeOnce?: boolean;
|
|
17
|
-
identity?:
|
|
16
|
+
identity?: Identity;
|
|
18
17
|
}): Promise<Subscription>;
|
|
19
18
|
onUserTaskFinished(callback: Messages.CallbackTypes.OnUserTaskFinishedCallback, options?: {
|
|
20
19
|
subscribeOnce?: boolean;
|
|
21
|
-
identity?:
|
|
20
|
+
identity?: Identity;
|
|
22
21
|
}): Promise<Subscription>;
|
|
23
22
|
onUserTaskReserved(callback: Messages.CallbackTypes.OnUserTaskReservedCallback, options?: {
|
|
24
23
|
subscribeOnce?: boolean;
|
|
25
|
-
identity?:
|
|
24
|
+
identity?: Identity;
|
|
26
25
|
}): Promise<Subscription>;
|
|
27
26
|
onUserTaskReservationCanceled(callback: Messages.CallbackTypes.OnUserTaskReservationCanceledCallback, options?: {
|
|
28
27
|
subscribeOnce?: boolean;
|
|
29
|
-
identity?:
|
|
28
|
+
identity?: Identity;
|
|
30
29
|
}): Promise<Subscription>;
|
|
31
|
-
removeSubscription(subscription: Subscription, identity?:
|
|
30
|
+
removeSubscription(subscription: Subscription, identity?: Identity): void;
|
|
32
31
|
}
|
|
33
32
|
export {};
|
package/dist/Clients/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare class ExternalTaskExecution<TExternalTaskPayload, TResultPayload
|
|
|
13
13
|
private abortSignalSubscription;
|
|
14
14
|
private awaitAbortSignal;
|
|
15
15
|
private abortSignalResolver;
|
|
16
|
-
private identityAccessor;
|
|
17
16
|
private logger;
|
|
18
17
|
constructor(externalTask: ExternalTask<TExternalTaskPayload>, processingFunction: HandleExternalTaskAction<TExternalTaskPayload, TResultPayload>, externalTaskClient: ExternalTaskApiClient, config: IExternalTaskWorkerConfig, topic: string, abortSignal: AbortSignal, customErrorHandler?: WorkerErrorHandler);
|
|
19
18
|
execute(): Promise<void>;
|
|
@@ -8,21 +8,14 @@ export declare class ExternalTaskWorker<TExternalTaskPayload, TResultPayload ext
|
|
|
8
8
|
private readonly longpollingTimeout;
|
|
9
9
|
private readonly processingFunction;
|
|
10
10
|
private readonly payloadFilter;
|
|
11
|
-
private
|
|
11
|
+
private _identity;
|
|
12
12
|
private _pollingActive;
|
|
13
13
|
private externalTaskClient;
|
|
14
14
|
private customErrorHandler;
|
|
15
15
|
private abortController;
|
|
16
16
|
private abortSignal;
|
|
17
17
|
constructor(engineUrl: string, topic: string, processingFunction: HandleExternalTaskAction<TExternalTaskPayload, TResultPayload>, config?: IExternalTaskWorkerConfig);
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use getIdentity instead.
|
|
20
|
-
*/
|
|
21
18
|
get identity(): Identity;
|
|
22
|
-
getIdentity(): Promise<Identity>;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated This is no longer safe to use. Identity should be set via the constructor.
|
|
25
|
-
*/
|
|
26
19
|
set identity(value: Identity);
|
|
27
20
|
get workerId(): string;
|
|
28
21
|
get pollingIsActive(): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ExternalTask } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { IdentityLike } from '../IdentityAccessor';
|
|
1
|
+
import { ExternalTask, Identity } from '@5minds/processcube_engine_sdk';
|
|
3
2
|
/**
|
|
4
3
|
* Definition of the HandleExternalTask Callback.
|
|
5
4
|
*/
|
|
@@ -10,7 +9,7 @@ export type IExternalTaskWorkerConfig = {
|
|
|
10
9
|
lockDuration?: number;
|
|
11
10
|
maxTasks?: number;
|
|
12
11
|
longpollingTimeout?: number;
|
|
13
|
-
identity?:
|
|
12
|
+
identity?: Identity;
|
|
14
13
|
payloadFilter?: RegExp;
|
|
15
14
|
};
|
|
16
15
|
/**
|
package/dist/commonjs/Client.js
CHANGED
|
@@ -3,10 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EngineClient = void 0;
|
|
4
4
|
const ClientFactory_1 = require("./ClientFactory");
|
|
5
5
|
const SocketIoManager_1 = require("./Clients/Lib/SocketIoManager");
|
|
6
|
-
const
|
|
6
|
+
const dummyIdentity = {
|
|
7
|
+
token: 'ZHVtbXlfdG9rZW4=',
|
|
8
|
+
userId: 'dummy_token',
|
|
9
|
+
};
|
|
7
10
|
class EngineClient {
|
|
8
11
|
engineUrl;
|
|
9
|
-
|
|
12
|
+
identity;
|
|
13
|
+
anonymousSessionClient;
|
|
10
14
|
applicationInfoClient;
|
|
11
15
|
correlationClient;
|
|
12
16
|
cronjobClient;
|
|
@@ -23,24 +27,26 @@ class EngineClient {
|
|
|
23
27
|
userTaskClient;
|
|
24
28
|
constructor(engineUrl, identity) {
|
|
25
29
|
this.engineUrl = engineUrl;
|
|
26
|
-
this.
|
|
30
|
+
this.identity = identity ?? dummyIdentity;
|
|
27
31
|
const socketIoManager = new SocketIoManager_1.SocketIoManager(this.engineUrl);
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
32
|
+
this.anonymousSessionClient = ClientFactory_1.ClientFactory.createAnonymousSessionClient(this.engineUrl, this.identity);
|
|
33
|
+
this.applicationInfoClient = ClientFactory_1.ClientFactory.createApplicationInfoClient(this.engineUrl, this.identity, socketIoManager);
|
|
34
|
+
this.correlationClient = ClientFactory_1.ClientFactory.createCorrelationClient(this.engineUrl, this.identity);
|
|
35
|
+
this.cronjobClient = ClientFactory_1.ClientFactory.createCronJobClient(this.engineUrl, this.identity);
|
|
36
|
+
this.dataObjectInstanceClient = ClientFactory_1.ClientFactory.createDataObjectInstanceClient(this.engineUrl, this.identity);
|
|
37
|
+
this.eventClient = ClientFactory_1.ClientFactory.createEventClient(this.engineUrl, this.identity, socketIoManager);
|
|
38
|
+
this.externalTaskClient = ClientFactory_1.ClientFactory.createExternalTaskClient(this.engineUrl, this.identity);
|
|
39
|
+
this.flowNodeInstanceClient = ClientFactory_1.ClientFactory.createFlowNodeInstanceClient(this.engineUrl, this.identity);
|
|
40
|
+
this.manualTaskClient = ClientFactory_1.ClientFactory.createManualTaskClient(this.engineUrl, this.identity, socketIoManager);
|
|
41
|
+
this.notificationClient = ClientFactory_1.ClientFactory.createNotificationClient(this.engineUrl, this.identity, socketIoManager);
|
|
42
|
+
this.processDefinitionClient = ClientFactory_1.ClientFactory.createProcessDefinitionClient(this.engineUrl, this.identity);
|
|
43
|
+
this.processInstanceClient = ClientFactory_1.ClientFactory.createProcessInstanceClient(this.engineUrl, this.identity);
|
|
44
|
+
this.processModelClient = ClientFactory_1.ClientFactory.createProcessModelClient(this.engineUrl, this.identity);
|
|
45
|
+
this.untypedTaskClient = ClientFactory_1.ClientFactory.createUntypedTaskClient(this.engineUrl, this.identity, socketIoManager);
|
|
46
|
+
this.userTaskClient = ClientFactory_1.ClientFactory.createUserTaskClient(this.engineUrl, this.identity, socketIoManager);
|
|
42
47
|
}
|
|
43
48
|
dispose() {
|
|
49
|
+
this.anonymousSessionClient.dispose();
|
|
44
50
|
this.applicationInfoClient.dispose();
|
|
45
51
|
this.correlationClient.dispose();
|
|
46
52
|
this.cronjobClient.dispose();
|
|
@@ -53,7 +59,6 @@ class EngineClient {
|
|
|
53
59
|
this.processInstanceClient.dispose();
|
|
54
60
|
this.untypedTaskClient.dispose();
|
|
55
61
|
this.userTaskClient.dispose();
|
|
56
|
-
this.identityAccessor.dispose();
|
|
57
62
|
}
|
|
58
63
|
/**
|
|
59
64
|
* Gets the url of the engine that this client is communicating with.
|
|
@@ -61,6 +66,9 @@ class EngineClient {
|
|
|
61
66
|
getEngineUrl() {
|
|
62
67
|
return this.engineUrl;
|
|
63
68
|
}
|
|
69
|
+
get anonymousSession() {
|
|
70
|
+
return this.anonymousSessionClient;
|
|
71
|
+
}
|
|
64
72
|
get applicationInfo() {
|
|
65
73
|
return this.applicationInfoClient;
|
|
66
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../src/Client.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../src/Client.ts"],"names":[],"mappings":";;;AAEA,mDAAgD;AAChD,mEAAgE;AAGhE,MAAM,aAAa,GAAa;IAC9B,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAa,YAAY;IACN,SAAS,CAAS;IAClB,QAAQ,CAAW;IAEnB,sBAAsB,CAAqC;IAC3D,qBAAqB,CAAoC;IACzD,iBAAiB,CAAgC;IACjD,aAAa,CAA4B;IACzC,wBAAwB,CAAuC;IAC/D,iBAAiB,CAAgC;IACjD,WAAW,CAA0B;IACrC,kBAAkB,CAA6B;IAC/C,sBAAsB,CAAqC;IAC3D,gBAAgB,CAA+B;IAC/C,kBAAkB,CAAiC;IACnD,uBAAuB,CAAsC;IAC7D,qBAAqB,CAAoC;IACzD,kBAAkB,CAAiC;IACnD,cAAc,CAA6B;IAE5D,YAAY,SAAiB,EAAE,QAAmB;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,aAAa,CAAC;QAE1C,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE5D,IAAI,CAAC,sBAAsB,GAAG,6BAAa,C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