@5minds/processcube_engine_client 6.0.0-alpha.1 → 6.0.0-alpha.11
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 +4 -5
- package/dist/ClientFactory.d.ts +16 -17
- package/dist/Clients/ApplicationInfoHttpClient.d.ts +5 -4
- package/dist/Clients/BaseClient.d.ts +10 -8
- package/dist/Clients/CorrelationHttpClient.d.ts +4 -3
- package/dist/Clients/CronjobHttpClient.d.ts +5 -4
- package/dist/Clients/DataObjectInstanceHttpClient.d.ts +3 -2
- package/dist/Clients/EventHttpClient.d.ts +15 -11
- package/dist/Clients/ExternalTaskApiHttpClient.d.ts +7 -6
- package/dist/Clients/ExternalTaskHttpClient.d.ts +4 -3
- package/dist/Clients/FlowNodeInstanceHttpClient.d.ts +11 -7
- package/dist/Clients/Lib/SocketIoManager.d.ts +15 -28
- package/dist/Clients/ManualTaskHttpClient.d.ts +7 -6
- package/dist/Clients/NotificationHttpClient.d.ts +60 -51
- package/dist/Clients/ProcessDefinitionHttpClient.d.ts +11 -10
- package/dist/Clients/ProcessDefinitionHttpClientNode.d.ts +2 -2
- package/dist/Clients/ProcessInstanceHttpClient.d.ts +10 -9
- package/dist/Clients/ProcessModelHttpClient.d.ts +11 -10
- package/dist/Clients/UntypedTaskHttpClient.d.ts +18 -6
- package/dist/Clients/UserTaskHttpClient.d.ts +11 -10
- package/dist/Clients/index.d.ts +0 -1
- package/dist/ExternalTaskExecution.d.ts +1 -0
- package/dist/ExternalTaskWorker.d.ts +10 -1
- package/dist/IdentityAccessor.d.ts +54 -0
- package/dist/IdentityAccessorClientCredentials.d.ts +14 -0
- package/dist/Retry.d.ts +1 -0
- package/dist/Types/IExternalTaskWorker.d.ts +3 -2
- package/dist/Types/RestSettings.d.ts +28 -0
- package/dist/Types/SocketSettings.d.ts +2 -0
- package/dist/commonjs/Client.js +22 -27
- package/dist/commonjs/Client.js.map +1 -1
- package/dist/commonjs/ClientFactory.js +23 -29
- package/dist/commonjs/ClientFactory.js.map +1 -1
- package/dist/commonjs/Clients/ApplicationInfoHttpClient.js +5 -5
- package/dist/commonjs/Clients/ApplicationInfoHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/BaseClient.js +23 -15
- 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 +9 -3
- 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 +7 -5
- package/dist/commonjs/Clients/ExternalTaskHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js +13 -8
- package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js.map +1 -1
- package/dist/commonjs/Clients/Lib/SocketIoManager.js +149 -67
- 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 +9 -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 +17 -7
- 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 +15 -4
- 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 +0 -1
- package/dist/commonjs/Clients/index.js.map +1 -1
- package/dist/commonjs/ExternalTaskExecution.js +14 -3
- package/dist/commonjs/ExternalTaskExecution.js.map +1 -1
- package/dist/commonjs/ExternalTaskWorker.js +50 -18
- package/dist/commonjs/ExternalTaskWorker.js.map +1 -1
- package/dist/commonjs/IdentityAccessor.js +246 -0
- package/dist/commonjs/IdentityAccessor.js.map +1 -0
- package/dist/commonjs/IdentityAccessorClientCredentials.js +94 -0
- package/dist/commonjs/IdentityAccessorClientCredentials.js.map +1 -0
- package/dist/commonjs/Retry.js +30 -0
- package/dist/commonjs/Retry.js.map +1 -0
- package/dist/commonjs/Types/RestSettings.js +29 -0
- package/dist/commonjs/Types/RestSettings.js.map +1 -1
- package/dist/commonjs/Types/SocketSettings.js +2 -0
- package/dist/commonjs/Types/SocketSettings.js.map +1 -1
- package/dist/commonjs/Types/index.js +17 -7
- package/dist/commonjs/Types/index.js.map +1 -1
- package/dist/commonjs/index.js +5 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/package.json +14 -8
- package/tsconfig.tests.json +20 -0
- package/dist/Clients/AnonymousSessionHttpClient.d.ts +0 -26
- package/dist/commonjs/Clients/AnonymousSessionHttpClient.js +0 -48
- package/dist/commonjs/Clients/AnonymousSessionHttpClient.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"typingOptions": {
|
|
3
|
+
"enableAutoDiscovery": true
|
|
4
|
+
},
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"rootDir": "./",
|
|
7
|
+
"outDir": "./dist_test/commonjs",
|
|
8
|
+
"module": "NodeNext",
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"target": "esnext",
|
|
11
|
+
"lib": ["esnext"],
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"declarationDir": "./dist_test",
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"emitDecoratorMetadata": true,
|
|
17
|
+
"experimentalDecorators": true
|
|
18
|
+
},
|
|
19
|
+
"include": ["src", "test"]
|
|
20
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Identity } from '@5minds/processcube_engine_sdk';
|
|
2
|
-
import { BaseClient } from './BaseClient';
|
|
3
|
-
export type AnonymousSession = {
|
|
4
|
-
sessionId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
createdAt: Date;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
10
|
-
Therefore, this client is no longer needed and will be removed with a future major update.
|
|
11
|
-
*/
|
|
12
|
-
export declare class AnonymousSessionHttpClient extends BaseClient {
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
15
|
-
*/
|
|
16
|
-
getAnonymousSessionById(sessionId: string): Promise<AnonymousSession>;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
19
|
-
*/
|
|
20
|
-
getAnonymousSessionsByUserId(userId: string): Promise<Array<AnonymousSession>>;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
23
|
-
*/
|
|
24
|
-
createAnonymousSessionForIdentity(identity: Identity): Promise<string>;
|
|
25
|
-
private mapAnonymousSession;
|
|
26
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnonymousSessionHttpClient = void 0;
|
|
4
|
-
const index_1 = require("../Types/index");
|
|
5
|
-
const BaseClient_1 = require("./BaseClient");
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
8
|
-
Therefore, this client is no longer needed and will be removed with a future major update.
|
|
9
|
-
*/
|
|
10
|
-
class AnonymousSessionHttpClient extends BaseClient_1.BaseClient {
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
13
|
-
*/
|
|
14
|
-
async getAnonymousSessionById(sessionId) {
|
|
15
|
-
const requestAuthHeaders = this.createRequestAuthHeaders(this.identity);
|
|
16
|
-
const endpoint = index_1.restSettings.paths.getAnonymousSessionById.replace(index_1.restSettings.params.sessionId, sessionId);
|
|
17
|
-
const url = this.buildUrl(endpoint);
|
|
18
|
-
const httpResponse = await this.httpClient.get(url, requestAuthHeaders);
|
|
19
|
-
return this.mapAnonymousSession(httpResponse.result);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
23
|
-
*/
|
|
24
|
-
async getAnonymousSessionsByUserId(userId) {
|
|
25
|
-
const requestAuthHeaders = this.createRequestAuthHeaders(this.identity);
|
|
26
|
-
const endpoint = index_1.restSettings.paths.getAnonymousSessionsByUserId.replace(index_1.restSettings.params.userId, userId);
|
|
27
|
-
const url = this.buildUrl(endpoint);
|
|
28
|
-
const httpResponse = await this.httpClient.get(url, requestAuthHeaders);
|
|
29
|
-
return httpResponse.result.map(this.mapAnonymousSession.bind(this));
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated The Anonymous Session Feature has been moved to the ProcessCube Authority.
|
|
33
|
-
*/
|
|
34
|
-
async createAnonymousSessionForIdentity(identity) {
|
|
35
|
-
const requestAuthHeaders = this.createRequestAuthHeaders(identity);
|
|
36
|
-
const url = this.buildUrl(index_1.restSettings.paths.createAnonymousSession);
|
|
37
|
-
const httpResponse = await this.httpClient.post(url, {}, requestAuthHeaders);
|
|
38
|
-
return httpResponse.result.sessionId;
|
|
39
|
-
}
|
|
40
|
-
mapAnonymousSession(data) {
|
|
41
|
-
return {
|
|
42
|
-
...data,
|
|
43
|
-
createdAt: new Date(data.createdAt),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AnonymousSessionHttpClient = AnonymousSessionHttpClient;
|
|
48
|
-
//# sourceMappingURL=AnonymousSessionHttpClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnonymousSessionHttpClient.js","sourceRoot":"","sources":["../../../src/Clients/AnonymousSessionHttpClient.ts"],"names":[],"mappings":";;;AAEA,0CAA8C;AAC9C,6CAA0C;AAQ1C;;;GAGG;AAEH,MAAa,0BAA2B,SAAQ,uBAAU;IACxD;;OAEG;IACI,KAAK,CAAC,uBAAuB,CAAC,SAAiB;QACpD,MAAM,kBAAkB,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAExE,MAAM,QAAQ,GAAG,oBAAY,CAAC,KAAK,CAAC,uBAAuB,CAAC,OAAO,CAAC,oBAAY,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAE9G,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmB,GAAG,EAAE,kBAAkB,CAAC,CAAC;QAE1F,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,MAAM,CAA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