@5minds/processcube_engine_client 5.2.0-feature-9a5b28-m1yxdd4u → 6.0.0-alpha.10

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.
Files changed (95) hide show
  1. package/dist/Client.d.ts +4 -5
  2. package/dist/ClientFactory.d.ts +16 -17
  3. package/dist/Clients/ApplicationInfoHttpClient.d.ts +5 -4
  4. package/dist/Clients/BaseClient.d.ts +10 -8
  5. package/dist/Clients/CorrelationHttpClient.d.ts +4 -3
  6. package/dist/Clients/CronjobHttpClient.d.ts +5 -4
  7. package/dist/Clients/DataObjectInstanceHttpClient.d.ts +3 -2
  8. package/dist/Clients/EventHttpClient.d.ts +15 -11
  9. package/dist/Clients/ExternalTaskApiHttpClient.d.ts +7 -6
  10. package/dist/Clients/ExternalTaskHttpClient.d.ts +4 -3
  11. package/dist/Clients/FlowNodeInstanceHttpClient.d.ts +8 -10
  12. package/dist/Clients/Lib/SocketIoManager.d.ts +15 -28
  13. package/dist/Clients/ManualTaskHttpClient.d.ts +7 -6
  14. package/dist/Clients/NotificationHttpClient.d.ts +52 -59
  15. package/dist/Clients/ProcessDefinitionHttpClient.d.ts +11 -10
  16. package/dist/Clients/ProcessDefinitionHttpClientNode.d.ts +2 -2
  17. package/dist/Clients/ProcessInstanceHttpClient.d.ts +17 -7
  18. package/dist/Clients/ProcessModelHttpClient.d.ts +11 -10
  19. package/dist/Clients/UntypedTaskHttpClient.d.ts +7 -17
  20. package/dist/Clients/UserTaskHttpClient.d.ts +11 -10
  21. package/dist/Clients/index.d.ts +0 -1
  22. package/dist/ExternalTaskExecution.d.ts +1 -0
  23. package/dist/ExternalTaskWorker.d.ts +10 -1
  24. package/dist/IdentityAccessor.d.ts +54 -0
  25. package/dist/IdentityAccessorClientCredentials.d.ts +14 -0
  26. package/dist/Retry.d.ts +1 -0
  27. package/dist/Types/IExternalTaskWorker.d.ts +3 -2
  28. package/dist/Types/RestSettings.d.ts +18 -20
  29. package/dist/Types/SocketSettings.d.ts +0 -2
  30. package/dist/commonjs/Client.js +22 -27
  31. package/dist/commonjs/Client.js.map +1 -1
  32. package/dist/commonjs/ClientFactory.js +23 -29
  33. package/dist/commonjs/ClientFactory.js.map +1 -1
  34. package/dist/commonjs/Clients/ApplicationInfoHttpClient.js +5 -5
  35. package/dist/commonjs/Clients/ApplicationInfoHttpClient.js.map +1 -1
  36. package/dist/commonjs/Clients/BaseClient.js +23 -15
  37. package/dist/commonjs/Clients/BaseClient.js.map +1 -1
  38. package/dist/commonjs/Clients/CorrelationHttpClient.js +2 -2
  39. package/dist/commonjs/Clients/CorrelationHttpClient.js.map +1 -1
  40. package/dist/commonjs/Clients/CronjobHttpClient.js +3 -3
  41. package/dist/commonjs/Clients/CronjobHttpClient.js.map +1 -1
  42. package/dist/commonjs/Clients/DataObjectInstanceHttpClient.js +1 -1
  43. package/dist/commonjs/Clients/DataObjectInstanceHttpClient.js.map +1 -1
  44. package/dist/commonjs/Clients/EventHttpClient.js +9 -3
  45. package/dist/commonjs/Clients/EventHttpClient.js.map +1 -1
  46. package/dist/commonjs/Clients/ExternalTaskApiHttpClient.js +5 -5
  47. package/dist/commonjs/Clients/ExternalTaskApiHttpClient.js.map +1 -1
  48. package/dist/commonjs/Clients/ExternalTaskHttpClient.js +7 -5
  49. package/dist/commonjs/Clients/ExternalTaskHttpClient.js.map +1 -1
  50. package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js +8 -13
  51. package/dist/commonjs/Clients/FlowNodeInstanceHttpClient.js.map +1 -1
  52. package/dist/commonjs/Clients/Lib/SocketIoManager.js +149 -67
  53. package/dist/commonjs/Clients/Lib/SocketIoManager.js.map +1 -1
  54. package/dist/commonjs/Clients/ManualTaskHttpClient.js +2 -2
  55. package/dist/commonjs/Clients/ManualTaskHttpClient.js.map +1 -1
  56. package/dist/commonjs/Clients/NotificationHttpClient.js +3 -9
  57. package/dist/commonjs/Clients/NotificationHttpClient.js.map +1 -1
  58. package/dist/commonjs/Clients/ProcessDefinitionHttpClient.js +8 -8
  59. package/dist/commonjs/Clients/ProcessDefinitionHttpClient.js.map +1 -1
  60. package/dist/commonjs/Clients/ProcessDefinitionHttpClientNode.js +17 -7
  61. package/dist/commonjs/Clients/ProcessDefinitionHttpClientNode.js.map +1 -1
  62. package/dist/commonjs/Clients/ProcessInstanceHttpClient.js +22 -8
  63. package/dist/commonjs/Clients/ProcessInstanceHttpClient.js.map +1 -1
  64. package/dist/commonjs/Clients/ProcessModelHttpClient.js +9 -9
  65. package/dist/commonjs/Clients/ProcessModelHttpClient.js.map +1 -1
  66. package/dist/commonjs/Clients/UntypedTaskHttpClient.js +4 -15
  67. package/dist/commonjs/Clients/UntypedTaskHttpClient.js.map +1 -1
  68. package/dist/commonjs/Clients/UserTaskHttpClient.js +4 -4
  69. package/dist/commonjs/Clients/UserTaskHttpClient.js.map +1 -1
  70. package/dist/commonjs/Clients/index.js +0 -1
  71. package/dist/commonjs/Clients/index.js.map +1 -1
  72. package/dist/commonjs/ExternalTaskExecution.js +14 -3
  73. package/dist/commonjs/ExternalTaskExecution.js.map +1 -1
  74. package/dist/commonjs/ExternalTaskWorker.js +50 -18
  75. package/dist/commonjs/ExternalTaskWorker.js.map +1 -1
  76. package/dist/commonjs/IdentityAccessor.js +246 -0
  77. package/dist/commonjs/IdentityAccessor.js.map +1 -0
  78. package/dist/commonjs/IdentityAccessorClientCredentials.js +94 -0
  79. package/dist/commonjs/IdentityAccessorClientCredentials.js.map +1 -0
  80. package/dist/commonjs/Retry.js +30 -0
  81. package/dist/commonjs/Retry.js.map +1 -0
  82. package/dist/commonjs/Types/RestSettings.js +18 -21
  83. package/dist/commonjs/Types/RestSettings.js.map +1 -1
  84. package/dist/commonjs/Types/SocketSettings.js +0 -2
  85. package/dist/commonjs/Types/SocketSettings.js.map +1 -1
  86. package/dist/commonjs/Types/index.js +17 -7
  87. package/dist/commonjs/Types/index.js.map +1 -1
  88. package/dist/commonjs/index.js +5 -1
  89. package/dist/commonjs/index.js.map +1 -1
  90. package/dist/index.d.ts +2 -0
  91. package/package.json +16 -10
  92. package/tsconfig.tests.json +20 -0
  93. package/dist/Clients/AnonymousSessionHttpClient.d.ts +0 -26
  94. package/dist/commonjs/Clients/AnonymousSessionHttpClient.js +0 -48
  95. package/dist/commonjs/Clients/AnonymousSessionHttpClient.js.map +0 -1
@@ -17,8 +17,6 @@ const messagePaths = {
17
17
  cronjobRemoved: 'cronjob_removed',
18
18
  cronjobStopped: 'cronjob_stopped',
19
19
  cronjobUpdated: 'cronjob_updated',
20
- emptyActivityWaiting: 'empty_activity_waiting',
21
- emptyActivityFinished: 'empty_activity_finished',
22
20
  untypedTaskWaiting: 'untyped_task_waiting',
23
21
  untypedTaskFinished: 'untyped_task_finished',
24
22
  endEventFinished: 'end_event_finished',
@@ -1 +1 @@
1
- {"version":3,"file":"SocketSettings.js","sourceRoot":"","sources":["../../../src/Types/SocketSettings.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG;IACnB,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,kBAAkB;IACnC,gBAAgB,EAAE,mBAAmB;IACrC,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,wBAAwB;IAC9C,sBAAsB,EAAE,0BAA0B;IAClD,qBAAqB,EAAE,yBAAyB;IAChD,4BAA4B,EAAE,wCAAwC;IACtE,0BAA0B,EAAE,8BAA8B;IAC1D,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,qBAAqB,EAAE,yBAAyB;IAChD,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,gBAAgB,EAAE,oBAAoB;IACtC,mBAAmB,EAAE,uBAAuB;IAC5C,kBAAkB,EAAE,s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,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,4BAA4B;IACtD,OAAO;IACP,sIAAsI;IACtI,mFAAmF;IACnF,eAAe,EAAE,mBAAmB;IACpC,cAAc,EAAE,kBAAkB;IAClC,cAAc,EAAE,kBAAkB;IAClC,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,gBAAgB;IAC9B,iBAAiB,EAAE,qBAAqB;IACxC,OAAO;IACP,2BAA2B,EAAE,gCAAgC;IAC7D,8BAA8B,EAAE,mCAAmC;IACnE,uBAAuB,EAAE,2BAA2B;IACpD,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,wBAAwB;IAC7C,wBAAwB,EAAE,6BAA6B;IACvD,wBAAwB,EAAE,iCAAiC;IAC3D,eAAe,EAAE,kBAAkB;IACnC,kBAAkB,EAAE,sBAAsB;IAC1C,eAAe,EAAE,mBAAmB;IACpC,gBAAgB,EAAE,oBAAoB;IACtC,gBAAgB,EAAE,oBAAoB;IACtC,2BAA2B,EAAE,gCAAgC;CAC9D,CAAC;AAEW,QAAA,cAAc,GAAG;IAC5B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,YAAY;CACpB,CAAC"}
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAAyE;AAEzE,+DAAiD;AAEjD,uFAAuF;AACvF,IAAiB,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IAGT,mBAAU,GAAG,iCAAW,CAAC,UAAU,CAAC;IACpC,qBAAY,GAAG,iCAAW,CAAC,YAAY,CAAC;IACxC,sBAAa,GAAG,aAAa,CAAC;AAC9C,CAAC,EANgB,QAAQ,wBAAR,QAAQ,QAMxB;AAMD,wDAAsC;AACtC,iDAA+B;AAC/B,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAAyE;AAEzE,+DAAiD;AAEjD,uFAAuF;AACvF,IAAiB,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IAGT,mBAAU,GAAG,iCAAW,CAAC,UAAU,CAAC;IACpC,qBAAY,GAAG,iCAAW,CAAC,YAAY,CAAC;IACxC,sBAAa,GAAG,aAAa,CAAC;AAC9C,CAAC,EANgB,QAAQ,wBAAR,QAAQ,QAMxB;AAMD,wDAAsC;AACtC,iDAA+B;AAC/B,mDAAiC"}
@@ -14,12 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Model = exports.EventType = exports.DataModels = exports.BpmnType = void 0;
17
+ exports.Model = exports.EventType = exports.DataModels = exports.BpmnType = exports.ClientCredentialsIdentityAccessor = exports.IdentityAccessor = void 0;
18
18
  __exportStar(require("./Client"), exports);
19
19
  __exportStar(require("./ClientFactory"), exports);
20
20
  __exportStar(require("./ExternalTaskWorker"), exports);
21
21
  __exportStar(require("./Clients/index"), exports);
22
22
  __exportStar(require("./Types/index"), exports);
23
+ var IdentityAccessor_1 = require("./IdentityAccessor");
24
+ Object.defineProperty(exports, "IdentityAccessor", { enumerable: true, get: function () { return IdentityAccessor_1.IdentityAccessor; } });
25
+ var IdentityAccessorClientCredentials_1 = require("./IdentityAccessorClientCredentials");
26
+ Object.defineProperty(exports, "ClientCredentialsIdentityAccessor", { enumerable: true, get: function () { return IdentityAccessorClientCredentials_1.ClientCredentialsIdentityAccessor; } });
23
27
  var processcube_engine_sdk_1 = require("@5minds/processcube_engine_sdk");
24
28
  Object.defineProperty(exports, "BpmnType", { enumerable: true, get: function () { return processcube_engine_sdk_1.BpmnType; } });
25
29
  Object.defineProperty(exports, "DataModels", { enumerable: true, get: function () { return processcube_engine_sdk_1.DataModels; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,uDAAqC;AAErC,kDAAgC;AAChC,gDAA8B;AAE9B,yEAAuI;AAA9H,kHAAA,QAAQ,OAAA;AAAE,oHAAA,UAAU,OAAA;AAAE,mHAAA,SAAS,OAAA;AAAY,+GAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,uDAAqC;AAErC,kDAAgC;AAChC,gDAA8B;AAE9B,uDAA6F;AAA3D,oHAAA,gBAAgB,OAAA;AAClD,yFAAwF;AAA/E,sJAAA,iCAAiC,OAAA;AAE1C,yEAAuI;AAA9H,kHAAA,QAAQ,OAAA;AAAE,oHAAA,UAAU,OAAA;AAAE,mHAAA,SAAS,OAAA;AAAY,+GAAA,KAAK,OAAA"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,6 @@ export * from './ClientFactory';
3
3
  export * from './ExternalTaskWorker';
4
4
  export * from './Clients/index';
5
5
  export * from './Types/index';
6
+ export { ClientCredentialsConfig, IdentityAccessor, IdentityLike } from './IdentityAccessor';
7
+ export { ClientCredentialsIdentityAccessor } from './IdentityAccessorClientCredentials';
6
8
  export { BpmnType, DataModels, EventType, Identity, Model, EventReceivedCallback, Subscription } from '@5minds/processcube_engine_sdk';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "utf-8-validate": "Not used by the client directly, but a requirement of the 'ws' sub-dependency. Since it is not available in the browser, the client would be unusable for the APP SDK, if we did not install it explicitly here"
5
5
  },
6
6
  "name": "@5minds/processcube_engine_client",
7
- "version": "5.2.0-feature-9a5b28-m1yxdd4u",
7
+ "version": "6.0.0-alpha.10",
8
8
  "description": "Contains a typescript based client for accessing the Engine.",
9
9
  "main": "dist/commonjs/index.js",
10
10
  "types": "dist/index.d.ts",
@@ -33,20 +33,26 @@
33
33
  "build": "tsc",
34
34
  "lint": "prettier --write --config ./.prettierrc.json ./src",
35
35
  "prepare": "npm run build",
36
- "test": ":"
36
+ "build:test": "tsc --project tsconfig.tests.json",
37
+ "test": "npm run test:smoke",
38
+ "test:smoke": "npm run build:test && node ./dist_test/commonjs/test/smoke-test.js",
39
+ "test:integration": "npm run build:test && node ./dist_test/commonjs/test/integration-test.js"
37
40
  },
38
41
  "dependencies": {
39
- "@5minds/processcube_engine_sdk": "6.0.0",
40
- "bufferutil": "4.0.8",
41
- "cross-fetch": "4.0.0",
42
- "socket.io-client": "4.8.0",
42
+ "@5minds/processcube_engine_sdk": "6.1.0-alpha.8",
43
+ "async-lock": "^1.4.1",
44
+ "bufferutil": "4.0.9",
45
+ "cross-fetch": "4.1.0",
46
+ "openid-client": "^6.1.7",
47
+ "socket.io-client": "4.8.1",
43
48
  "utf-8-validate": "5.0.10",
44
- "uuid": "^10.0.0"
49
+ "uuid": "^11.0.0"
45
50
  },
46
51
  "devDependencies": {
47
- "@trivago/prettier-plugin-sort-imports": "^4.3.0",
48
- "@types/node": "^22.7.4",
52
+ "@trivago/prettier-plugin-sort-imports": "^5.2.0",
53
+ "@types/node": "^22.10.2",
49
54
  "prettier": "^3.3.2",
50
- "typescript": "^5.5.3"
55
+ "typescript": "^5.5.3",
56
+ "why-is-node-running": "^3.2.1"
51
57
  }
52
58
  }
@@ -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,CAAC,CAAC;IACvD,CAAC;IACD;;OAEG;IACI,KAAK,CAAC,4BAA4B,CAAC,MAAc;QACtD,MAAM,kBAAkB,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAExE,MAAM,QAAQ,GAAG,oBAAY,CAAC,KAAK,CAAC,4BAA4B,CAAC,OAAO,CAAC,oBAAY,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA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