rerobe-js-orm 3.0.37 → 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.
@@ -0,0 +1,6 @@
1
+ export namespace RIBBN_FILE_CATEGORY {
2
+ const product: string;
3
+ const generalAsset: string;
4
+ const collection: string;
5
+ const mobileAppOnboarding: string;
6
+ }
@@ -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
+ };
@@ -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,10 @@
1
+ interface RibbnFileAttributes extends ReRobeDocument {
2
+ productId: string | null;
3
+ category: string;
4
+ refName: string;
5
+ name: string;
6
+ size: number;
7
+ type: string;
8
+ url: string;
9
+ tags: string[];
10
+ }
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.0.37",
3
+ "version": "3.0.38",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",