orbitx-core-models 11.59.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":"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;
|
|
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 },
|