@lautmaler/jovo-platform-aiflow 0.2.6 → 0.2.7

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.
@@ -7,6 +7,15 @@ class SipgateAiflowSession extends framework_1.JovoSession {
7
7
  super(data);
8
8
  this.sessionInfo = data === null || data === void 0 ? void 0 : data.sessionInfo;
9
9
  }
10
+ setPersistableData(data, config) {
11
+ const currentId = this.id;
12
+ super.setPersistableData(data, config);
13
+ // Always use the session ID from the current request, not from the DB.
14
+ // Each sipgate call has its own session ID; the DB-loaded ID belongs to
15
+ // a previous call and must not overwrite it.
16
+ this.id = currentId;
17
+ return this;
18
+ }
10
19
  }
11
20
  exports.SipgateAiflowSession = SipgateAiflowSession;
12
21
  //# sourceMappingURL=SipgateAiflowSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAGlD,MAAa,oBAAqB,SAAQ,uBAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;CACF;AAPD,oDAOC"}
1
+ {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAGlD,MAAa,oBAAqB,SAAQ,uBAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;IAED,kBAAkB,CAAC,IAAS,EAAE,MAAY;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvC,uEAAuE;QACvE,wEAAwE;QACxE,6CAA6C;QAC7C,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjBD,oDAiBC"}
@@ -4,5 +4,14 @@ export class SipgateAiflowSession extends JovoSession {
4
4
  super(data);
5
5
  this.sessionInfo = data === null || data === void 0 ? void 0 : data.sessionInfo;
6
6
  }
7
+ setPersistableData(data, config) {
8
+ const currentId = this.id;
9
+ super.setPersistableData(data, config);
10
+ // Always use the session ID from the current request, not from the DB.
11
+ // Each sipgate call has its own session ID; the DB-loaded ID belongs to
12
+ // a previous call and must not overwrite it.
13
+ this.id = currentId;
14
+ return this;
15
+ }
7
16
  }
8
17
  //# sourceMappingURL=SipgateAiflowSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;IAED,kBAAkB,CAAC,IAAS,EAAE,MAAY;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvC,uEAAuE;QACvE,wEAAwE;QACxE,6CAA6C;QAC7C,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -4,5 +4,14 @@ export class SipgateAiflowSession extends JovoSession {
4
4
  super(data);
5
5
  this.sessionInfo = data === null || data === void 0 ? void 0 : data.sessionInfo;
6
6
  }
7
+ setPersistableData(data, config) {
8
+ const currentId = this.id;
9
+ super.setPersistableData(data, config);
10
+ // Always use the session ID from the current request, not from the DB.
11
+ // Each sipgate call has its own session ID; the DB-loaded ID belongs to
12
+ // a previous call and must not overwrite it.
13
+ this.id = currentId;
14
+ return this;
15
+ }
7
16
  }
8
17
  //# sourceMappingURL=SipgateAiflowSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"SipgateAiflowSession.js","sourceRoot":"","sources":["../../src/SipgateAiflowSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IAGnD,YAAY,IAAoC;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAC;IACvC,CAAC;IAED,kBAAkB,CAAC,IAAS,EAAE,MAAY;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvC,uEAAuE;QACvE,wEAAwE;QACxE,6CAA6C;QAC7C,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -3,4 +3,5 @@ import { SipgateAiFlowSession } from './interfaces';
3
3
  export declare class SipgateAiflowSession extends JovoSession {
4
4
  sessionInfo?: SipgateAiFlowSession;
5
5
  constructor(data?: Partial<SipgateAiflowSession>);
6
+ setPersistableData(data: any, config?: any): this;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lautmaler/jovo-platform-aiflow",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Sipgate AI Flow integration for Jovo Framework",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm5/index.js",