rerobe-js-orm 3.2.6 → 3.2.8

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.
@@ -245,11 +245,6 @@ class User extends Base_1.default {
245
245
  name: 'merchantId',
246
246
  type: 'string',
247
247
  },
248
- {
249
- facet: true,
250
- name: 'merchantIds',
251
- type: 'string[]',
252
- },
253
248
  {
254
249
  facet: true,
255
250
  name: 'itemsUploadedCount',
@@ -332,7 +327,7 @@ class User extends Base_1.default {
332
327
  const createdAtTimestamp = this.utilities.sanitizeMillisTimeStamp(this.createdAtTimestamp);
333
328
  const { createdAtHour, createdAtDay, createdAtMonth, createdAtYear } = this.utilities.formatTimestamp(createdAtTimestamp);
334
329
  const stagedObj = {
335
- id: this.utilities.sanitizeString(this.documentId),
330
+ id: `${this.utilities.sanitizeString(this.documentId)}_${this.utilities.sanitizeString(merchantId)}`,
336
331
  documentId: this.utilities.sanitizeString(this.documentId),
337
332
  userId: this.utilities.sanitizeString(this.uid),
338
333
  createdAtTimestamp,
@@ -358,7 +353,6 @@ class User extends Base_1.default {
358
353
  lastOrderTimestamp: this.utilities.sanitizeMillisTimeStamp(new Date(this.lastOrderDate).getTime()),
359
354
  lastUploadTimestamp: this.utilities.sanitizeMillisTimeStamp(new Date(this.lastUploadDate).getTime()),
360
355
  registrationSource: this.utilities.sanitizeString(this.registrationSource),
361
- merchantIds: this.utilities.sanitzeStringArr(this.customerAt),
362
356
  };
363
357
  return stagedObj;
364
358
  }
@@ -168,5 +168,4 @@ declare type TypesenseUserObj = {
168
168
  createdAtDay: string;
169
169
  createdAtMonth: string;
170
170
  createdAtYear: string;
171
- merchantIds: string[];
172
171
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",