rerobe-js-orm 2.6.94 → 2.6.97

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.
@@ -205,6 +205,11 @@ class Order extends Base_1.default {
205
205
  name: 'documentId',
206
206
  type: 'string',
207
207
  },
208
+ {
209
+ facet: false,
210
+ name: 'userId',
211
+ type: 'string',
212
+ },
208
213
  {
209
214
  facet: true,
210
215
  name: 'createdAtTimestamp',
@@ -238,7 +243,7 @@ class Order extends Base_1.default {
238
243
  {
239
244
  facet: true,
240
245
  name: 'totalPrice',
241
- type: 'int32',
246
+ type: 'float',
242
247
  },
243
248
  {
244
249
  facet: true,
@@ -260,6 +265,16 @@ class Order extends Base_1.default {
260
265
  name: 'salesChannel',
261
266
  type: 'string',
262
267
  },
268
+ {
269
+ facet: true,
270
+ name: 'paymentType',
271
+ type: 'string',
272
+ },
273
+ {
274
+ facet: true,
275
+ name: 'shippingType',
276
+ type: 'string',
277
+ },
263
278
  {
264
279
  facet: true,
265
280
  name: 'productIds',
@@ -281,7 +296,7 @@ class Order extends Base_1.default {
281
296
  type: 'string',
282
297
  },
283
298
  ],
284
- name: 'dev_chatRooms_20220725',
299
+ name: 'prod_orders_20220809',
285
300
  };
286
301
  }
287
302
  toObjForTypesense() {
@@ -289,6 +304,7 @@ class Order extends Base_1.default {
289
304
  const stagedObj = {
290
305
  id: this.utilities.sanitizeString(this.documentId),
291
306
  documentId: this.utilities.sanitizeString(this.documentId),
307
+ userId: this.utilities.sanitizeString(this.userId),
292
308
  createdAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.createdAtTimestamp),
293
309
  updatedAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.updatedAtTimestamp),
294
310
  merchantId: this.utilities.sanitizeString(this.merchantId),
@@ -301,6 +317,8 @@ class Order extends Base_1.default {
301
317
  financialStatus: this.utilities.sanitizeString(this.financialStatus),
302
318
  fulfillmentStatus: this.utilities.sanitizeString(this.fulfillmentStatus),
303
319
  salesChannel: this.utilities.sanitizeString(this.salesChannel),
320
+ paymentType: this.utilities.sanitizeString(this.paymentType),
321
+ shippingType: this.utilities.sanitizeString(this.shippingType),
304
322
  productIds: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.productId)),
305
323
  productTitles: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.title)),
306
324
  productBrands: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.brand)),
@@ -680,6 +680,7 @@ declare type OrderRefundFormFields = {
680
680
  declare type TypesenseOrderObj = {
681
681
  id: string;
682
682
  documentId: string;
683
+ userId: string;
683
684
  createdAtTimestamp: number;
684
685
  updatedAtTimestamp: number;
685
686
  image: string;
@@ -691,6 +692,8 @@ declare type TypesenseOrderObj = {
691
692
  financialStatus: string;
692
693
  fulfillmentStatus: string;
693
694
  salesChannel: string;
695
+ paymentType: string;
696
+ shippingType: string;
694
697
  productIds: string[];
695
698
  productTitles: string[];
696
699
  productBrands: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.6.94",
3
+ "version": "2.6.97",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",