@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.
- package/dist/cjs/SipgateAiflowSession.js +9 -0
- package/dist/cjs/SipgateAiflowSession.js.map +1 -1
- package/dist/esm2015/SipgateAiflowSession.js +9 -0
- package/dist/esm2015/SipgateAiflowSession.js.map +1 -1
- package/dist/esm5/SipgateAiflowSession.js +9 -0
- package/dist/esm5/SipgateAiflowSession.js.map +1 -1
- package/dist/types/SipgateAiflowSession.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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;
|
|
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"}
|