orbitx-core-models 11.58.0 → 11.60.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,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;AAsN7E,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,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;AA+N7E,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
@@ -155,6 +155,16 @@ const companySchema = new mongoose_1.Schema({
155
155
  message: "Duplicate days in call connect hours",
156
156
  },
157
157
  },
158
+ hubspotIntegration: {
159
+ isConnected: { type: Boolean, default: false },
160
+ isSyncActive: { type: Boolean, default: false },
161
+ accessToken: { type: String, default: null },
162
+ refreshToken: { type: String, default: null },
163
+ tokenExpiresAt: { type: Date, default: null },
164
+ hubId: { type: String, default: null },
165
+ accountName: { type: String, default: null },
166
+ lastSyncedAt: { type: Date, default: null }
167
+ },
158
168
  officeHours: {
159
169
  type: [hourSchema],
160
170
  validate: {
@@ -1 +1 @@
1
- {"version":3,"file":"partner.model.d.ts","sourceRoot":"","sources":["../../src/models/partner.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;AAiHzC,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"partner.model.d.ts","sourceRoot":"","sources":["../../src/models/partner.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;AA4HzC,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
@@ -103,6 +103,16 @@ const payoutTierSchema = new mongoose_1.Schema({
103
103
  _id: false,
104
104
  });
105
105
  const partnerSchema = new mongoose_1.Schema({
106
+ hubspotIntegration: {
107
+ isConnected: { type: Boolean, default: false },
108
+ isSyncActive: { type: Boolean, default: false },
109
+ accessToken: { type: String, default: null },
110
+ refreshToken: { type: String, default: null },
111
+ tokenExpiresAt: { type: Date, default: null },
112
+ hubId: { type: String, default: null },
113
+ accountName: { type: String, default: null },
114
+ lastSyncedAt: { type: Date, default: null }
115
+ },
106
116
  accountInfo: accountInfoSchema,
107
117
  payoutTier: payoutTierSchema,
108
118
  referralLink: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.58.0",
3
+ "version": "11.60.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",