fintalk-pkg 2.3.24 → 2.3.26

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/index.js CHANGED
@@ -6,6 +6,7 @@ module.exports = {
6
6
  //SCHEMAS
7
7
  CustomerSchema : require("./model/Customer"),
8
8
  TransactionSchema : require("./model/Transaction"),
9
+ AuxSchema: require("./model/AuxStructure"),
9
10
 
10
11
  BaseController : require("./base/BaseController"),
11
12
  FlowControl : require("./base/FlowControl"),
@@ -0,0 +1,23 @@
1
+ const dynamoose = require("dynamoose");
2
+
3
+ dynamoose.model.defaults.set({ create: false, waitForActive: false });
4
+ const Schema = dynamoose.Schema;
5
+
6
+ const AuxStructureSchema = new Schema(
7
+ {
8
+ id: {
9
+ type: String,
10
+ hashKey: String,
11
+ },
12
+ sessionId: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ data: String,
17
+ },
18
+ {
19
+ timestamps: true,
20
+ },
21
+ );
22
+
23
+ module.exports = dynamoose.model("fintalk-orchestrator-aux-structure", AuxStructureSchema);
package/model/Customer.js CHANGED
@@ -84,17 +84,48 @@ var CustomerSchema = new Schema({
84
84
  userData5: String,
85
85
  isAudioOutputEnabled: { type: Boolean, default: false },
86
86
  optin: { type: Boolean, default: false },
87
- // flexChatChannel: {
88
- // type: String,
89
- // index: {
90
- // global: true,
91
- // name: `fintalk-orchestrator-${process.env.BOT}-GSI-flexChatChannel`,
92
- // rangeKey: "stage"
93
- // }
94
- // },
87
+ quotiUserId: String,
88
+ quotiChatRoom: {
89
+ type: String,
90
+ index: {
91
+ global: true,
92
+ name: `fintalk-orchestrator-${process.env.BOT}-GSI-quotiChatRoom`,
93
+ rangeKey: "stage",
94
+ },
95
+ },
96
+ flexChatChannel: {
97
+ type: String,
98
+ index: {
99
+ global: true,
100
+ name: `fintalk-orchestrator-${process.env.BOT}-GSI-flexChatChannel`,
101
+ rangeKey: "stage",
102
+ },
103
+ },
95
104
  flexUserId: String,
96
- returnEvent: String,
105
+ salesForceSessionId: String,
106
+ salesForceSessionKey: {
107
+ type: String,
108
+ index: {
109
+ global: true,
110
+ name: `fintalk-orchestrator-${process.env.BOT}-GSI-salesForceSessionKey`,
111
+ rangeKey: "stage",
112
+ },
113
+ },
114
+ salesForceAffinityId: String,
115
+ chatRoomId: {
116
+ type: String,
117
+ index: {
118
+ global: true,
119
+ name: `fintalk-orchestrator-${process.env.BOT}-GSI-chatRoomId`,
120
+ rangeKey: "stage"
121
+ }
122
+ },
123
+ chatId: String,
124
+ chatProvider: String,
125
+ chatData: String,
97
126
  localCapture: Boolean,
127
+ returnEvent: String,
128
+ noAgentsEvent: String,
98
129
  nextEvent: String,
99
130
  },
100
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fintalk-pkg",
3
- "version": "2.3.24",
3
+ "version": "2.3.26",
4
4
  "description": "Common code between projects",
5
5
  "main": "index.js",
6
6
  "scripts": {