orbitx-core-models 11.72.0 → 11.73.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;AA+N7E,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;AA+P7E,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
@@ -165,6 +165,38 @@ const companySchema = new mongoose_1.Schema({
165
165
  accountName: { type: String, default: null },
166
166
  lastSyncedAt: { type: Date, default: null }
167
167
  },
168
+ salesforceIntegration: {
169
+ isConnected: { type: Boolean, default: false },
170
+ isSyncActive: { type: Boolean, default: false },
171
+ accessToken: String,
172
+ refreshToken: String,
173
+ instanceUrl: String,
174
+ lastSyncedAt: Date
175
+ },
176
+ zohoIntegration: {
177
+ isConnected: { type: Boolean, default: false },
178
+ isSyncActive: { type: Boolean, default: false },
179
+ accessToken: String,
180
+ refreshToken: String,
181
+ apiDomain: String,
182
+ dc: String,
183
+ lastSyncedAt: Date
184
+ },
185
+ slackIntegration: {
186
+ isConnected: { type: Boolean, default: false },
187
+ isSyncActive: { type: Boolean, default: false },
188
+ accessToken: String,
189
+ teamId: String,
190
+ channelName: String,
191
+ channelId: String,
192
+ lastSyncedAt: Date
193
+ },
194
+ googleChatIntegration: {
195
+ isConnected: { type: Boolean, default: false },
196
+ isSyncActive: { type: Boolean, default: false },
197
+ webhookUrl: String,
198
+ lastSyncedAt: Date
199
+ },
168
200
  officeHours: {
169
201
  type: [hourSchema],
170
202
  validate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.72.0",
3
+ "version": "11.73.0",
4
4
  "description": "Shared Mongoose models and interfaces for OrbitX services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",