rerobe-js-orm 3.0.36 → 3.0.38
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.
- package/lib/constants/file-constants.d.ts +6 -0
- package/lib/constants/file-constants.js +9 -0
- package/lib/models/CustomerNotification/CustomerNotification.d.ts +1 -0
- package/lib/models/CustomerNotification/CustomerNotification.js +2 -0
- package/lib/models/Product.js +4 -0
- package/lib/models/RibbnFile.d.ts +16 -0
- package/lib/models/RibbnFile.js +35 -0
- package/lib/types/customer-notification-types.d.ts +1 -0
- package/lib/types/ribbn-file-types.d.ts +10 -0
- package/lib/types/ribbn-file-types.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RIBBN_FILE_CATEGORY = void 0;
|
|
4
|
+
exports.RIBBN_FILE_CATEGORY = {
|
|
5
|
+
product: 'PRODUCT',
|
|
6
|
+
generalAsset: 'GENERAL_ASSET',
|
|
7
|
+
collection: 'COLLECTION',
|
|
8
|
+
mobileAppOnboarding: 'MOBILE_APP_ONBOARDING',
|
|
9
|
+
};
|
|
@@ -8,6 +8,7 @@ class CustomerNotification extends Base_1.default {
|
|
|
8
8
|
this.createdAt = (props === null || props === void 0 ? void 0 : props.createdAt) || '';
|
|
9
9
|
this.merchantId = (props === null || props === void 0 ? void 0 : props.merchantId) || '';
|
|
10
10
|
this.customerId = (props === null || props === void 0 ? void 0 : props.customerId) || '';
|
|
11
|
+
this.referenceId = (props === null || props === void 0 ? void 0 : props.referenceId) || '';
|
|
11
12
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
12
13
|
this.data = props === null || props === void 0 ? void 0 : props.data;
|
|
13
14
|
this.subject = (props === null || props === void 0 ? void 0 : props.subject) || '';
|
|
@@ -21,6 +22,7 @@ class CustomerNotification extends Base_1.default {
|
|
|
21
22
|
createdAt: this.createdAt,
|
|
22
23
|
merchantId: this.merchantId,
|
|
23
24
|
customerId: this.customerId,
|
|
25
|
+
referenceId: this.referenceId,
|
|
24
26
|
type: this.type,
|
|
25
27
|
data: this.data,
|
|
26
28
|
subject: this.subject,
|
package/lib/models/Product.js
CHANGED
|
@@ -230,6 +230,10 @@ class Product extends Base_1.default {
|
|
|
230
230
|
locationId: `${locationId}`,
|
|
231
231
|
},
|
|
232
232
|
],
|
|
233
|
+
inventoryItem: {
|
|
234
|
+
cost: this.attributes.costPerItem,
|
|
235
|
+
},
|
|
236
|
+
sku: this.attributes.sku,
|
|
233
237
|
price: this.attributes.price || '0',
|
|
234
238
|
taxable: false,
|
|
235
239
|
weight: parseFloat(this.attributes.weight) || parseFloat('999'),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
export default class RibbnFile extends Base {
|
|
3
|
+
documentId: string;
|
|
4
|
+
productId: string;
|
|
5
|
+
category: string;
|
|
6
|
+
refName: string;
|
|
7
|
+
name: string;
|
|
8
|
+
size: number;
|
|
9
|
+
type: string;
|
|
10
|
+
url: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
createdAt: string | FireStoreTimeStamp;
|
|
13
|
+
updatedAt: string | FireStoreTimeStamp;
|
|
14
|
+
constructor(props?: any);
|
|
15
|
+
toObj(): RibbnFileAttributes;
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Base_1 = require("../Base");
|
|
4
|
+
class RibbnFile extends Base_1.default {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super();
|
|
7
|
+
this.documentId = (props === null || props === void 0 ? void 0 : props.documentId) || '';
|
|
8
|
+
this.productId = (props === null || props === void 0 ? void 0 : props.productId) || null;
|
|
9
|
+
this.category = (props === null || props === void 0 ? void 0 : props.category) || '';
|
|
10
|
+
this.refName = (props === null || props === void 0 ? void 0 : props.refName) || '';
|
|
11
|
+
this.name = (props === null || props === void 0 ? void 0 : props.name) || '';
|
|
12
|
+
this.size = (props === null || props === void 0 ? void 0 : props.size) || 0;
|
|
13
|
+
this.type = (props === null || props === void 0 ? void 0 : props.type) || '';
|
|
14
|
+
this.url = (props === null || props === void 0 ? void 0 : props.url) || '';
|
|
15
|
+
this.tags = (props === null || props === void 0 ? void 0 : props.tags) || [];
|
|
16
|
+
this.createdAt = (props === null || props === void 0 ? void 0 : props.createdAt) || '';
|
|
17
|
+
this.updatedAt = (props === null || props === void 0 ? void 0 : props.updatedAt) || '';
|
|
18
|
+
}
|
|
19
|
+
toObj() {
|
|
20
|
+
return {
|
|
21
|
+
documentId: this.documentId,
|
|
22
|
+
productId: this.productId,
|
|
23
|
+
category: this.category,
|
|
24
|
+
refName: this.refName,
|
|
25
|
+
name: this.name,
|
|
26
|
+
size: this.size,
|
|
27
|
+
type: this.type,
|
|
28
|
+
url: this.url,
|
|
29
|
+
tags: this.tags,
|
|
30
|
+
createdAt: this.createdAt,
|
|
31
|
+
updatedAt: this.updatedAt,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = RibbnFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|