rerobe-js-orm 2.6.98 → 2.6.99

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.
@@ -280,6 +280,11 @@ class Order extends Base_1.default {
280
280
  name: 'productIds',
281
281
  type: 'string[]',
282
282
  },
283
+ {
284
+ facet: true,
285
+ name: 'tags',
286
+ type: 'string[]',
287
+ },
283
288
  {
284
289
  facet: true,
285
290
  name: 'productTitles',
@@ -322,6 +327,7 @@ class Order extends Base_1.default {
322
327
  productIds: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.productId)),
323
328
  productTitles: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.title)),
324
329
  productBrands: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.brand)),
330
+ tags: this.utilities.sanitzeStringArr(this.tags),
325
331
  };
326
332
  return stagedObj;
327
333
  }
@@ -164,7 +164,7 @@ class User extends Base_1.default {
164
164
  };
165
165
  return customerInput;
166
166
  }
167
- generateSchemaForTypesense(name = 'dev_users_20220811') {
167
+ generateSchemaForTypesense(name = 'dev_customers_20220811') {
168
168
  return {
169
169
  default_sorting_field: 'createdAtTimestamp',
170
170
  fields: [
@@ -229,7 +229,7 @@ class User extends Base_1.default {
229
229
  type: 'string',
230
230
  },
231
231
  ],
232
- name: 'dev_users_20220811',
232
+ name: 'prod_customers_20220811',
233
233
  };
234
234
  }
235
235
  toObjForTypesense(merchantId) {
@@ -697,5 +697,6 @@ declare type TypesenseOrderObj = {
697
697
  productIds: string[];
698
698
  productTitles: string[];
699
699
  productBrands: string[];
700
+ tags: string[];
700
701
  merchantId: string;
701
702
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.6.98",
3
+ "version": "2.6.99",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",