orbitx-core-models 11.61.0 → 11.63.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.
@@ -10,12 +10,15 @@ export interface IMessage {
10
10
  mediaUrl?: string;
11
11
  mediaType?: string;
12
12
  macroId?: Schema.Types.ObjectId;
13
+ replyToMessageId?: Schema.Types.ObjectId;
14
+ selectedOptionId?: string;
13
15
  ctaPayload?: any;
14
16
  linkPreview?: {
15
17
  url?: string;
16
18
  title?: string;
17
19
  description?: string;
18
20
  image?: string;
21
+ mimeType?: string;
19
22
  };
20
23
  deliveredAt?: Date;
21
24
  readAt?: Date;
@@ -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,KA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AAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;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;AAsG3D,eAAO,MAAM,OAAO;;;;OAAqD,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;AAgH3D,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
  },
@@ -102,6 +109,7 @@ const messageSchema = new mongoose_1.Schema({
102
109
  title: String,
103
110
  description: String,
104
111
  image: String,
112
+ mimeType: String,
105
113
  },
106
114
  // ─────────────────────────────────────────────
107
115
  // DELIVERY
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.61.0",
3
+ "version": "11.63.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",