rerobe-js-orm 3.5.6 → 3.5.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.
@@ -4,6 +4,8 @@ export default class SellerProductLedger extends Base {
4
4
  createdAtTimestamp: number;
5
5
  updatedAtTimestamp: number;
6
6
  pendingReturnPeriodStartTimestamp: number;
7
+ sellerToBePaidTimestamp: number;
8
+ sellerPaidTimestamp: number;
7
9
  merchantId: string;
8
10
  merchantCurrency: string;
9
11
  sellerId: string;
@@ -9,6 +9,8 @@ class SellerProductLedger extends Base_1.default {
9
9
  this.createdAtTimestamp = this.utilities.sanitizeMillisTimeStamp(props === null || props === void 0 ? void 0 : props.createdAtTimestamp);
10
10
  this.updatedAtTimestamp = this.utilities.sanitizeMillisTimeStamp(props === null || props === void 0 ? void 0 : props.createdAtTimestamp);
11
11
  this.pendingReturnPeriodStartTimestamp = this.utilities.sanitizeMillisTimeStamp(props === null || props === void 0 ? void 0 : props.pendingReturnPeriodStartTimestamp);
12
+ this.sellerToBePaidTimestamp = this.utilities.sanitizeMillisTimeStamp(props === null || props === void 0 ? void 0 : props.sellerToBePaidTimestamp);
13
+ this.sellerPaidTimestamp = this.utilities.sanitizeMillisTimeStamp(props === null || props === void 0 ? void 0 : props.sellerPaidTimestamp);
12
14
  this.merchantId = this.utilities.sanitizeString(props === null || props === void 0 ? void 0 : props.merchantId);
13
15
  this.merchantCurrency = this.utilities.sanitizeString(props === null || props === void 0 ? void 0 : props.merchantCurrency);
14
16
  this.sellerId = this.utilities.sanitizeString(props === null || props === void 0 ? void 0 : props.sellerId);
@@ -33,6 +35,8 @@ class SellerProductLedger extends Base_1.default {
33
35
  createdAtTimestamp: this.createdAtTimestamp,
34
36
  updatedAtTimestamp: this.updatedAtTimestamp,
35
37
  pendingReturnPeriodStartTimestamp: this.pendingReturnPeriodStartTimestamp,
38
+ sellerToBePaidTimestamp: this.sellerToBePaidTimestamp,
39
+ sellerPaidTimestamp: this.sellerPaidTimestamp,
36
40
  merchantId: this.merchantId,
37
41
  merchantCurrency: this.merchantCurrency,
38
42
  sellerId: this.sellerId,
@@ -61,11 +65,13 @@ class SellerProductLedger extends Base_1.default {
61
65
  { name: 'createdAtTimestamp', type: 'int64', facet: true },
62
66
  { name: 'updatedAtTimestamp', type: 'int64', facet: true },
63
67
  { name: 'pendingReturnPeriodStartTimestamp', type: 'int64', facet: true },
68
+ { name: 'sellerToBePaidTimestamp', type: 'int64', facet: true },
69
+ { name: 'sellerPaidTimestamp', type: 'int64', facet: true },
64
70
  { name: 'merchantId', type: 'string', facet: true },
65
71
  { name: 'merchantCurrency', type: 'string', facet: true },
66
72
  { name: 'sellerId', type: 'string', facet: true },
67
- { name: 'sellerFirstName', type: 'string', facet: false },
68
- { name: 'sellerLastName', type: 'string', facet: false },
73
+ { name: 'sellerFirstName', type: 'string', facet: true },
74
+ { name: 'sellerLastName', type: 'string', facet: true },
69
75
  { name: 'sellerEmail', type: 'string', facet: true },
70
76
  { name: 'saleType', type: 'string', facet: true },
71
77
  { name: 'productId', type: 'string', facet: true },
@@ -85,9 +91,12 @@ class SellerProductLedger extends Base_1.default {
85
91
  toObjForTypesense() {
86
92
  const stagedObj = {
87
93
  documentId: this.utilities.sanitizeString(this.documentId),
94
+ id: this.utilities.sanitizeString(this.documentId),
88
95
  createdAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.createdAtTimestamp),
89
96
  updatedAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.updatedAtTimestamp),
90
97
  pendingReturnPeriodStartTimestamp: this.utilities.sanitizeMillisTimeStamp(this.pendingReturnPeriodStartTimestamp),
98
+ sellerToBePaidTimestamp: this.utilities.sanitizeMillisTimeStamp(this.sellerToBePaidTimestamp),
99
+ sellerPaidTimestamp: this.utilities.sanitizeMillisTimeStamp(this.sellerPaidTimestamp),
91
100
  merchantId: this.utilities.sanitizeString(this.merchantId),
92
101
  merchantCurrency: this.utilities.sanitizeString(this.merchantCurrency),
93
102
  sellerId: this.utilities.sanitizeString(this.sellerId),
@@ -90,6 +90,8 @@ type SellerProductLedgerType = {
90
90
  createdAtTimestamp: number;
91
91
  updatedAtTimestamp: number;
92
92
  pendingReturnPeriodStartTimestamp: number;
93
+ sellerToBePaidTimestamp: number;
94
+ sellerPaidTimestamp: number;
93
95
  merchantId: string;
94
96
  merchantCurrency: string;
95
97
  sellerId: string;
@@ -109,9 +111,12 @@ type SellerProductLedgerType = {
109
111
  };
110
112
  type TypesenseSellerProductLedgerObj = {
111
113
  documentId: string;
114
+ id: string;
112
115
  createdAtTimestamp: number;
113
116
  updatedAtTimestamp: number;
114
117
  pendingReturnPeriodStartTimestamp: number;
118
+ sellerToBePaidTimestamp: number;
119
+ sellerPaidTimestamp: number;
115
120
  merchantId: string;
116
121
  merchantCurrency: string;
117
122
  sellerId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.5.6",
3
+ "version": "3.5.8",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",