orbitx-core-models 11.60.0 → 11.62.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.
- package/dist/interfaces/message.interface.d.ts +2 -0
- package/dist/interfaces/message.interface.d.ts.map +1 -1
- package/dist/models/message.model.d.ts.map +1 -1
- package/dist/models/message.model.js +7 -0
- package/dist/models/user.model.d.ts.map +1 -1
- package/dist/models/user.model.js +13 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/message.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,QAAQ;IAEvB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAGjC,UAAU,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAGjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IAG9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,CAAC;IAGjB,WAAW,CAAC,EAAE;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KA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IAGF,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,IAAI,CAAC;IAGd,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.model.d.ts","sourceRoot":"","sources":["../../src/models/message.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"message.model.d.ts","sourceRoot":"","sources":["../../src/models/message.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AA+G3D,eAAO,MAAM,OAAO;;;;OAAqD,CAAC"}
|
|
@@ -91,6 +91,13 @@ const messageSchema = new mongoose_1.Schema({
|
|
|
91
91
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
92
92
|
ref: "Macro",
|
|
93
93
|
},
|
|
94
|
+
replyToMessageId: {
|
|
95
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
96
|
+
ref: "Message",
|
|
97
|
+
},
|
|
98
|
+
selectedOptionId: {
|
|
99
|
+
type: String,
|
|
100
|
+
}, // for macros with options
|
|
94
101
|
ctaPayload: {
|
|
95
102
|
type: mongoose_1.Schema.Types.Mixed,
|
|
96
103
|
},
|
|
@@ -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;
|
|
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: {
|