orbitx-core-models 11.59.0 → 11.61.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":"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 },
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AA0IrD,eAAO,MAAM,IAAI;;;;OAA4C,CAAC"}
1
+ {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAwJrD,eAAO,MAAM,IAAI;;;;OAA4C,CAAC"}
@@ -73,6 +73,19 @@ const userSchema = new mongoose_1.Schema({
73
73
  index: true,
74
74
  },
75
75
  // ─────────────────────────────────────────────
76
+ // HUBSPOT INTEGRATION
77
+ // ─────────────────────────────────────────────
78
+ hubspotIntegration: {
79
+ isConnected: { type: Boolean, default: false },
80
+ isSyncActive: { type: Boolean, default: false },
81
+ accessToken: { type: String, default: null },
82
+ refreshToken: { type: String, default: null },
83
+ tokenExpiresAt: { type: Date, default: null },
84
+ hubId: { type: String, default: null },
85
+ accountName: { type: String, default: null },
86
+ lastSyncedAt: { type: Date, default: null }
87
+ },
88
+ // ─────────────────────────────────────────────
76
89
  // MULTI-TENANT OWNERSHIP
77
90
  // ─────────────────────────────────────────────
78
91
  ownerType: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.59.0",
3
+ "version": "11.61.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",