@things-factory/product-base 4.0.21 → 4.0.22
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/dist-server/entities/index.js +30 -0
- package/dist-server/entities/index.js.map +1 -0
- package/dist-server/entities/product-bundle-setting.js +47 -0
- package/dist-server/entities/product-bundle-setting.js.map +1 -0
- package/dist-server/entities/product-bundle.js +98 -0
- package/dist-server/entities/product-bundle.js.map +1 -0
- package/dist-server/entities/product-combination-setting.js +48 -0
- package/dist-server/entities/product-combination-setting.js.map +1 -0
- package/dist-server/entities/product-combination.js +91 -0
- package/dist-server/entities/product-combination.js.map +1 -0
- package/dist-server/entities/product-detail-bizplace-setting.js +91 -0
- package/dist-server/entities/product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/entities/product-detail.js +338 -0
- package/dist-server/entities/product-detail.js.map +1 -0
- package/dist-server/entities/product-set.js +90 -0
- package/dist-server/entities/product-set.js.map +1 -0
- package/dist-server/entities/product.js +293 -0
- package/dist-server/entities/product.js.map +1 -0
- package/dist-server/graphql/index.js +30 -0
- package/dist-server/graphql/index.js.map +1 -0
- package/dist-server/graphql/resolvers/index.js +21 -0
- package/dist-server/graphql/resolvers/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product/create-product.js +60 -0
- package/dist-server/graphql/resolvers/product/create-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/create-products.js +24 -0
- package/dist-server/graphql/resolvers/product/create-products.js.map +1 -0
- package/dist-server/graphql/resolvers/product/delete-product.js +14 -0
- package/dist-server/graphql/resolvers/product/delete-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/delete-products.js +17 -0
- package/dist-server/graphql/resolvers/product/delete-products.js.map +1 -0
- package/dist-server/graphql/resolvers/product/import-multiple-product.js +35 -0
- package/dist-server/graphql/resolvers/product/import-multiple-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/index.js +20 -0
- package/dist-server/graphql/resolvers/product/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product/link-product.js +41 -0
- package/dist-server/graphql/resolvers/product/link-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/my-bizplace-products.js +47 -0
- package/dist-server/graphql/resolvers/product/my-bizplace-products.js.map +1 -0
- package/dist-server/graphql/resolvers/product/product-query.js +94 -0
- package/dist-server/graphql/resolvers/product/product-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product/product.js +33 -0
- package/dist-server/graphql/resolvers/product/product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/products-by-bizplace.js +60 -0
- package/dist-server/graphql/resolvers/product/products-by-bizplace.js.map +1 -0
- package/dist-server/graphql/resolvers/product/products.js +68 -0
- package/dist-server/graphql/resolvers/product/products.js.map +1 -0
- package/dist-server/graphql/resolvers/product/undelete-products.js +17 -0
- package/dist-server/graphql/resolvers/product/undelete-products.js.map +1 -0
- package/dist-server/graphql/resolvers/product/update-multiple-product.js +33 -0
- package/dist-server/graphql/resolvers/product/update-multiple-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/update-product.js +58 -0
- package/dist-server/graphql/resolvers/product/update-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product/validate-product.js +38 -0
- package/dist-server/graphql/resolvers/product/validate-product.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/create-product-bundle.js +12 -0
- package/dist-server/graphql/resolvers/product-bundle/create-product-bundle.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/delete-product-bundle.js +13 -0
- package/dist-server/graphql/resolvers/product-bundle/delete-product-bundle.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/delete-product-bundles.js +19 -0
- package/dist-server/graphql/resolvers/product-bundle/delete-product-bundles.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/index.js +15 -0
- package/dist-server/graphql/resolvers/product-bundle/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/my-bizplace-product-bundles.js +43 -0
- package/dist-server/graphql/resolvers/product-bundle/my-bizplace-product-bundles.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/product-bundle-query.js +21 -0
- package/dist-server/graphql/resolvers/product-bundle/product-bundle-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/update-multiple-product-bundle.js +50 -0
- package/dist-server/graphql/resolvers/product-bundle/update-multiple-product-bundle.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle/update-product-bundle.js +16 -0
- package/dist-server/graphql/resolvers/product-bundle/update-product-bundle.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/create-product-bundle-setting.js +12 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/create-product-bundle-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/delete-product-bundle-setting.js +12 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/delete-product-bundle-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/delete-product-bundle-settings.js +14 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/delete-product-bundle-settings.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/index.js +15 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/link-product-bundle.js +77 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/link-product-bundle.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/product-bundle-sets.js +75 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/product-bundle-sets.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/product-bundle-setting-query.js +14 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/product-bundle-setting-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/update-multiple-product-bundle-setting.js +33 -0
- package/dist-server/graphql/resolvers/product-bundle-setting/update-multiple-product-bundle-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/create-product-combination.js +12 -0
- package/dist-server/graphql/resolvers/product-combination/create-product-combination.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/delete-product-combination.js +13 -0
- package/dist-server/graphql/resolvers/product-combination/delete-product-combination.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/delete-product-combinations.js +19 -0
- package/dist-server/graphql/resolvers/product-combination/delete-product-combinations.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/index.js +14 -0
- package/dist-server/graphql/resolvers/product-combination/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/product-combination-query.js +21 -0
- package/dist-server/graphql/resolvers/product-combination/product-combination-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/update-multiple-product-combination.js +44 -0
- package/dist-server/graphql/resolvers/product-combination/update-multiple-product-combination.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination/update-product-combination.js +16 -0
- package/dist-server/graphql/resolvers/product-combination/update-product-combination.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/create-product-combination-setting.js +12 -0
- package/dist-server/graphql/resolvers/product-combination-setting/create-product-combination-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/delete-product-combination-setting.js +12 -0
- package/dist-server/graphql/resolvers/product-combination-setting/delete-product-combination-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/delete-product-combination-settings.js +14 -0
- package/dist-server/graphql/resolvers/product-combination-setting/delete-product-combination-settings.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/index.js +15 -0
- package/dist-server/graphql/resolvers/product-combination-setting/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/link-product-combination.js +73 -0
- package/dist-server/graphql/resolvers/product-combination-setting/link-product-combination.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/product-combination-sets.js +87 -0
- package/dist-server/graphql/resolvers/product-combination-setting/product-combination-sets.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/product-combination-setting-query.js +16 -0
- package/dist-server/graphql/resolvers/product-combination-setting/product-combination-setting-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-combination-setting/update-multiple-product-combination-setting.js +33 -0
- package/dist-server/graphql/resolvers/product-combination-setting/update-multiple-product-combination-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/create-product-detail.js +17 -0
- package/dist-server/graphql/resolvers/product-detail/create-product-detail.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/delete-product-detail.js +13 -0
- package/dist-server/graphql/resolvers/product-detail/delete-product-detail.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/delete-product-details.js +16 -0
- package/dist-server/graphql/resolvers/product-detail/delete-product-details.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/index.js +15 -0
- package/dist-server/graphql/resolvers/product-detail/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/product-detail-query.js +114 -0
- package/dist-server/graphql/resolvers/product-detail/product-detail-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/update-multiple-product-detail.js +112 -0
- package/dist-server/graphql/resolvers/product-detail/update-multiple-product-detail.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail/update-product-detail.js +20 -0
- package/dist-server/graphql/resolvers/product-detail/update-product-detail.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/create-product-detail-bizplace-setting.js +12 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/create-product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/delete-product-detail-bizplace-setting.js +13 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/delete-product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/delete-product-detail-bizplace-settings.js +16 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/delete-product-detail-bizplace-settings.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/index.js +15 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js +56 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/product-detail-bizplace-setting-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/update-multiple-product-detail-bizplace-setting.js +35 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/update-multiple-product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/update-product-detail-bizplace-setting.js +16 -0
- package/dist-server/graphql/resolvers/product-detail-bizplace-setting/update-product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/create-product-set.js +27 -0
- package/dist-server/graphql/resolvers/product-set/create-product-set.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/delete-product-set.js +14 -0
- package/dist-server/graphql/resolvers/product-set/delete-product-set.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/delete-product-sets.js +20 -0
- package/dist-server/graphql/resolvers/product-set/delete-product-sets.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/index.js +15 -0
- package/dist-server/graphql/resolvers/product-set/index.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/my-bizplace-product-sets.js +39 -0
- package/dist-server/graphql/resolvers/product-set/my-bizplace-product-sets.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/product-set-query.js +30 -0
- package/dist-server/graphql/resolvers/product-set/product-set-query.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/product-set.js +16 -0
- package/dist-server/graphql/resolvers/product-set/product-set.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/product-sets.js +22 -0
- package/dist-server/graphql/resolvers/product-set/product-sets.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/update-multiple-product-set.js +28 -0
- package/dist-server/graphql/resolvers/product-set/update-multiple-product-set.js.map +1 -0
- package/dist-server/graphql/resolvers/product-set/update-product-set.js +23 -0
- package/dist-server/graphql/resolvers/product-set/update-product-set.js.map +1 -0
- package/dist-server/graphql/types/index.js +21 -0
- package/dist-server/graphql/types/index.js.map +1 -0
- package/dist-server/graphql/types/product/index.js +61 -0
- package/dist-server/graphql/types/product/index.js.map +1 -0
- package/dist-server/graphql/types/product/new-product.js +66 -0
- package/dist-server/graphql/types/product/new-product.js.map +1 -0
- package/dist-server/graphql/types/product/product-list.js +14 -0
- package/dist-server/graphql/types/product/product-list.js.map +1 -0
- package/dist-server/graphql/types/product/product-patch.js +70 -0
- package/dist-server/graphql/types/product/product-patch.js.map +1 -0
- package/dist-server/graphql/types/product/product.js +73 -0
- package/dist-server/graphql/types/product/product.js.map +1 -0
- package/dist-server/graphql/types/product-bundle/index.js +37 -0
- package/dist-server/graphql/types/product-bundle/index.js.map +1 -0
- package/dist-server/graphql/types/product-bundle/new-product-bundle.js +14 -0
- package/dist-server/graphql/types/product-bundle/new-product-bundle.js.map +1 -0
- package/dist-server/graphql/types/product-bundle/product-bundle-list.js +14 -0
- package/dist-server/graphql/types/product-bundle/product-bundle-list.js.map +1 -0
- package/dist-server/graphql/types/product-bundle/product-bundle-patch.js +21 -0
- package/dist-server/graphql/types/product-bundle/product-bundle-patch.js.map +1 -0
- package/dist-server/graphql/types/product-bundle/product-bundle.js +26 -0
- package/dist-server/graphql/types/product-bundle/product-bundle.js.map +1 -0
- package/dist-server/graphql/types/product-bundle-setting/index.js +38 -0
- package/dist-server/graphql/types/product-bundle-setting/index.js.map +1 -0
- package/dist-server/graphql/types/product-bundle-setting/new-product-bundle-setting.js +14 -0
- package/dist-server/graphql/types/product-bundle-setting/new-product-bundle-setting.js.map +1 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting-list.js +14 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting-list.js.map +1 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting-patch.js +21 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting-patch.js.map +1 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting.js +36 -0
- package/dist-server/graphql/types/product-bundle-setting/product-bundle-setting.js.map +1 -0
- package/dist-server/graphql/types/product-combination/index.js +39 -0
- package/dist-server/graphql/types/product-combination/index.js.map +1 -0
- package/dist-server/graphql/types/product-combination/new-product-combination.js +15 -0
- package/dist-server/graphql/types/product-combination/new-product-combination.js.map +1 -0
- package/dist-server/graphql/types/product-combination/product-combination-list.js +14 -0
- package/dist-server/graphql/types/product-combination/product-combination-list.js.map +1 -0
- package/dist-server/graphql/types/product-combination/product-combination-patch.js +19 -0
- package/dist-server/graphql/types/product-combination/product-combination-patch.js.map +1 -0
- package/dist-server/graphql/types/product-combination/product-combination.js +26 -0
- package/dist-server/graphql/types/product-combination/product-combination.js.map +1 -0
- package/dist-server/graphql/types/product-combination-setting/index.js +44 -0
- package/dist-server/graphql/types/product-combination-setting/index.js.map +1 -0
- package/dist-server/graphql/types/product-combination-setting/new-product-combination-setting.js +14 -0
- package/dist-server/graphql/types/product-combination-setting/new-product-combination-setting.js.map +1 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting-list.js +14 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting-list.js.map +1 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting-patch.js +18 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting-patch.js.map +1 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting.js +33 -0
- package/dist-server/graphql/types/product-combination-setting/product-combination-setting.js.map +1 -0
- package/dist-server/graphql/types/product-detail/index.js +36 -0
- package/dist-server/graphql/types/product-detail/index.js.map +1 -0
- package/dist-server/graphql/types/product-detail/new-product-detail.js +55 -0
- package/dist-server/graphql/types/product-detail/new-product-detail.js.map +1 -0
- package/dist-server/graphql/types/product-detail/product-detail-list.js +14 -0
- package/dist-server/graphql/types/product-detail/product-detail-list.js.map +1 -0
- package/dist-server/graphql/types/product-detail/product-detail-patch.js +57 -0
- package/dist-server/graphql/types/product-detail/product-detail-patch.js.map +1 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/index.js +36 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/index.js.map +1 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/new-product-detail-bizplace-setting.js +18 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/new-product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting-list.js +14 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting-list.js.map +1 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting-patch.js +20 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting-patch.js.map +1 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting.js +30 -0
- package/dist-server/graphql/types/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +1 -0
- package/dist-server/graphql/types/product-set/index.js +52 -0
- package/dist-server/graphql/types/product-set/index.js.map +1 -0
- package/dist-server/graphql/types/product-set/new-product-set.js +16 -0
- package/dist-server/graphql/types/product-set/new-product-set.js.map +1 -0
- package/dist-server/graphql/types/product-set/product-set-list.js +14 -0
- package/dist-server/graphql/types/product-set/product-set-list.js.map +1 -0
- package/dist-server/graphql/types/product-set/product-set-patch.js +17 -0
- package/dist-server/graphql/types/product-set/product-set-patch.js.map +1 -0
- package/dist-server/graphql/types/product-set/product-set.js +24 -0
- package/dist-server/graphql/types/product-set/product-set.js.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var ProductDetail_1, _a, _b, _c;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ProductDetail = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
16
|
+
const shell_1 = require("@things-factory/shell");
|
|
17
|
+
const _1 = require("./");
|
|
18
|
+
/**
|
|
19
|
+
* @prop {string} id - Primary Key.
|
|
20
|
+
* @prop {Object} domain - Stock Owner company domain.
|
|
21
|
+
* @prop {string} name - Product Detail Name.
|
|
22
|
+
* @prop {string} gtin - Global Trade Item Number or Product Detail Barcode. SKU, Manufacturer, and Packaging specific code. For Product Scanning Feature.
|
|
23
|
+
* @prop {?string} refCode - Product Reference Code.
|
|
24
|
+
* @prop {Object} product - Foreign field. Relation to Product Entity / Table.
|
|
25
|
+
* @prop {boolean} isDefault - Default SKU info.
|
|
26
|
+
* @prop {string} packingType - Packing type of current Product Detail.
|
|
27
|
+
* @prop {number} packingSize - Packing size of current Product Detail.
|
|
28
|
+
* @prop {string} movement - Movement of stocks. eg, FAST, NORMAL, SLOW.
|
|
29
|
+
* @prop {string} primaryUnit - UOM unit. eg, unit, kg, g, Lt, foot, m, cm, inch.
|
|
30
|
+
* @prop {number} primaryValue - nett content.
|
|
31
|
+
* @prop {?Object} childProductDetails - Foreign field. Relation to define child packaging level.
|
|
32
|
+
* @prop {?[Object]} parentProductDetails - Foreign field. List of relation to define parent packaging level.
|
|
33
|
+
* @prop {?number} childQty - (To Be Removed: Packing Size will be used instead)Used with packaging level definition to determine in a Child Product Detail contains how many Child Product Detail Qty.
|
|
34
|
+
* @prop {?string} weightUnit - Weight Unit Definition. eg, kg, g, t.
|
|
35
|
+
* @prop {?number} nettWeight - Nett Weight of this Product Detail.
|
|
36
|
+
* @prop {?number} grossWeight - Gross Weight of this Product Detail.
|
|
37
|
+
* @prop {?string} lengthUnit - Length Unit Definition. eg, m, cm, mm, inch, foot.
|
|
38
|
+
* @prop {?number} width - Width length of Product Detail.
|
|
39
|
+
* @prop {?number} depth - Depth length of Product Detail.
|
|
40
|
+
* @prop {?number} height - Height length of Product Detail.
|
|
41
|
+
* @prop {?number} volume - Volume of Product Detail. In m3.
|
|
42
|
+
* @prop {?number} bufferQty - Quantity for reservation.
|
|
43
|
+
* @prop {?number} minQty - Minimum Quantity targetted in inventory. For reporting purposes.
|
|
44
|
+
* @prop {?number} maxQty - Maximum Quantity targetted in inventory. For reporting purposes.
|
|
45
|
+
* @prop {?string} auxUnit1 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
46
|
+
* @prop {?string} auxValue1 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
47
|
+
* @prop {?string} auxUnit2 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
48
|
+
* @prop {?string} auxValue2 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
49
|
+
* @prop {?string} auxUnit3 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
50
|
+
* @prop {?string} auxValue3 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
51
|
+
* @prop {?string} auxUnit4 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
52
|
+
* @prop {?string} auxValue4 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
53
|
+
* @prop {?string} auxUnit5 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
54
|
+
* @prop {?string} auxValue5 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
55
|
+
* @prop {?boolean} isTrackedAsInventory - For accounting integration purposes.
|
|
56
|
+
* @prop {?number} discountId - For accounting integration purposes.
|
|
57
|
+
* @prop {?number} costPrice - For accounting integration purposes.
|
|
58
|
+
* @prop {?number} mrpPrice - For accounting integration purposes.
|
|
59
|
+
* @prop {?number} sellPrice - For accounting integration purposes.
|
|
60
|
+
* @prop {?number} afterTaxCostPrice - For accounting integration purposes.
|
|
61
|
+
* @prop {?number} afterTaxSalesPrice - For accounting integration purposes.
|
|
62
|
+
* @prop {?string} inventoryAccountCode - For accounting integration purposes.
|
|
63
|
+
* @prop {?string} cogsAccountCode - For accounting integration purposes.
|
|
64
|
+
* @prop {?Date} deletedAt - Soft Delete Date and Time.
|
|
65
|
+
* @prop {Date} createdAt - Created Date and Time.
|
|
66
|
+
* @prop {Date} updatedAt - Updated Date and Time.
|
|
67
|
+
* @prop {?Object} creator - Foreign field. Relation to User Entity / Table.
|
|
68
|
+
* @prop {?Object} updater - Foreign field. Relation to User Entity / Table.
|
|
69
|
+
**/
|
|
70
|
+
let ProductDetail = ProductDetail_1 = class ProductDetail {
|
|
71
|
+
constructor(productDetail, extrasOnly = false) {
|
|
72
|
+
if (productDetail) {
|
|
73
|
+
if (!extrasOnly) {
|
|
74
|
+
this.domain = productDetail.domain;
|
|
75
|
+
this.name = productDetail.name;
|
|
76
|
+
this.creator = productDetail.creator;
|
|
77
|
+
this.updater = productDetail.updater;
|
|
78
|
+
}
|
|
79
|
+
this.gtin = productDetail.gtin;
|
|
80
|
+
this.refCode = productDetail.refCode;
|
|
81
|
+
this.product = productDetail.product;
|
|
82
|
+
this.isDefault = productDetail.isDefault;
|
|
83
|
+
this.packingType = productDetail.packingType;
|
|
84
|
+
this.packingSize = productDetail.packingSize;
|
|
85
|
+
this.movement = productDetail.movement || 'NORMAL';
|
|
86
|
+
this.uom = productDetail.uom;
|
|
87
|
+
this.uomValue = productDetail.uomValue;
|
|
88
|
+
this.childProductDetail = productDetail.childProductDetail;
|
|
89
|
+
this.childQty = productDetail.childQty;
|
|
90
|
+
this.weightUnit = productDetail.weightUnit;
|
|
91
|
+
this.nettWeight = productDetail.nettWeight;
|
|
92
|
+
this.grossWeight = productDetail.grossWeight;
|
|
93
|
+
this.lengthUnit = productDetail.lengthUnit;
|
|
94
|
+
this.width = productDetail.width;
|
|
95
|
+
this.depth = productDetail.depth;
|
|
96
|
+
this.height = productDetail.height;
|
|
97
|
+
this.volume = productDetail.volume;
|
|
98
|
+
this.bufferQty = productDetail.bufferQty || 0;
|
|
99
|
+
this.minQty = productDetail.minQty || 0;
|
|
100
|
+
this.maxQty = productDetail.maxQty || 0;
|
|
101
|
+
this.auxUnit1 = productDetail.auxUnit1;
|
|
102
|
+
this.auxValue1 = productDetail.auxValue1;
|
|
103
|
+
this.auxUnit2 = productDetail.auxUnit2;
|
|
104
|
+
this.auxValue2 = productDetail.auxValue2;
|
|
105
|
+
this.auxUnit3 = productDetail.auxUnit3;
|
|
106
|
+
this.auxValue3 = productDetail.auxValue3;
|
|
107
|
+
this.auxUnit4 = productDetail.auxUnit4;
|
|
108
|
+
this.auxValue4 = productDetail.auxValue4;
|
|
109
|
+
this.auxUnit5 = productDetail.auxUnit5;
|
|
110
|
+
this.auxValue5 = productDetail.auxValue5;
|
|
111
|
+
this.isTrackedAsInventory = productDetail.isTrackedAsInventory;
|
|
112
|
+
this.discountId = productDetail.discountId;
|
|
113
|
+
this.costPrice = productDetail.costPrice;
|
|
114
|
+
this.mrpPrice = productDetail.mrpPrice;
|
|
115
|
+
this.sellPrice = productDetail.sellPrice;
|
|
116
|
+
this.afterTaxCostPrice = productDetail.afterTaxCostPrice;
|
|
117
|
+
this.afterTaxSalesPrice = productDetail.afterTaxSalesPrice;
|
|
118
|
+
this.inventoryAccountCode = productDetail.inventoryAccountCode;
|
|
119
|
+
this.cogsAccountCode = productDetail.cogsAccountCode;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], ProductDetail.prototype, "id", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
129
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
130
|
+
], ProductDetail.prototype, "domain", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)(),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], ProductDetail.prototype, "name", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)(),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], ProductDetail.prototype, "gtin", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], ProductDetail.prototype, "refCode", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.ManyToOne)(type => _1.Product),
|
|
145
|
+
__metadata("design:type", _1.Product)
|
|
146
|
+
], ProductDetail.prototype, "product", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
149
|
+
__metadata("design:type", Boolean)
|
|
150
|
+
], ProductDetail.prototype, "isDefault", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)(),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], ProductDetail.prototype, "packingType", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)('float', { default: 1 }),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], ProductDetail.prototype, "packingSize", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ default: 'NORMAL' }),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], ProductDetail.prototype, "movement", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)(),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], ProductDetail.prototype, "uom", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)('float'),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], ProductDetail.prototype, "uomValue", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.ManyToOne)(type => ProductDetail_1, { nullable: true }),
|
|
173
|
+
__metadata("design:type", ProductDetail)
|
|
174
|
+
], ProductDetail.prototype, "childProductDetail", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.OneToMany)(type => ProductDetail_1, productDetail => productDetail.childProductDetail, { nullable: true }),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], ProductDetail.prototype, "parentProductDetails", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.OneToMany)(type => _1.ProductDetailBizplaceSetting, productDetailBizplaceSetting => productDetailBizplaceSetting.productDetail, { nullable: true }),
|
|
181
|
+
__metadata("design:type", Array)
|
|
182
|
+
], ProductDetail.prototype, "productDetailBizplaceSettings", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
185
|
+
__metadata("design:type", Number)
|
|
186
|
+
], ProductDetail.prototype, "childQty", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], ProductDetail.prototype, "weightUnit", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
193
|
+
__metadata("design:type", Number)
|
|
194
|
+
], ProductDetail.prototype, "nettWeight", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
197
|
+
__metadata("design:type", Number)
|
|
198
|
+
], ProductDetail.prototype, "grossWeight", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], ProductDetail.prototype, "lengthUnit", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
205
|
+
__metadata("design:type", Number)
|
|
206
|
+
], ProductDetail.prototype, "width", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
209
|
+
__metadata("design:type", Number)
|
|
210
|
+
], ProductDetail.prototype, "depth", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
213
|
+
__metadata("design:type", Number)
|
|
214
|
+
], ProductDetail.prototype, "height", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
217
|
+
__metadata("design:type", Number)
|
|
218
|
+
], ProductDetail.prototype, "volume", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
221
|
+
__metadata("design:type", Number)
|
|
222
|
+
], ProductDetail.prototype, "bufferQty", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
225
|
+
__metadata("design:type", Number)
|
|
226
|
+
], ProductDetail.prototype, "minQty", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], ProductDetail.prototype, "maxQty", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], ProductDetail.prototype, "auxUnit1", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
237
|
+
__metadata("design:type", String)
|
|
238
|
+
], ProductDetail.prototype, "auxValue1", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
241
|
+
__metadata("design:type", String)
|
|
242
|
+
], ProductDetail.prototype, "auxUnit2", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
245
|
+
__metadata("design:type", String)
|
|
246
|
+
], ProductDetail.prototype, "auxValue2", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], ProductDetail.prototype, "auxUnit3", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
253
|
+
__metadata("design:type", String)
|
|
254
|
+
], ProductDetail.prototype, "auxValue3", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
257
|
+
__metadata("design:type", String)
|
|
258
|
+
], ProductDetail.prototype, "auxUnit4", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], ProductDetail.prototype, "auxValue4", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
265
|
+
__metadata("design:type", String)
|
|
266
|
+
], ProductDetail.prototype, "auxUnit5", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
269
|
+
__metadata("design:type", String)
|
|
270
|
+
], ProductDetail.prototype, "auxValue5", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
273
|
+
__metadata("design:type", Boolean)
|
|
274
|
+
], ProductDetail.prototype, "isTrackedAsInventory", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
277
|
+
__metadata("design:type", Number)
|
|
278
|
+
], ProductDetail.prototype, "discountId", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
281
|
+
__metadata("design:type", Number)
|
|
282
|
+
], ProductDetail.prototype, "costPrice", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
285
|
+
__metadata("design:type", Number)
|
|
286
|
+
], ProductDetail.prototype, "mrpPrice", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
289
|
+
__metadata("design:type", Number)
|
|
290
|
+
], ProductDetail.prototype, "sellPrice", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
293
|
+
__metadata("design:type", Number)
|
|
294
|
+
], ProductDetail.prototype, "afterTaxCostPrice", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
297
|
+
__metadata("design:type", Number)
|
|
298
|
+
], ProductDetail.prototype, "afterTaxSalesPrice", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
301
|
+
__metadata("design:type", String)
|
|
302
|
+
], ProductDetail.prototype, "inventoryAccountCode", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
305
|
+
__metadata("design:type", String)
|
|
306
|
+
], ProductDetail.prototype, "cogsAccountCode", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
309
|
+
__metadata("design:type", Date)
|
|
310
|
+
], ProductDetail.prototype, "deletedAt", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
313
|
+
__metadata("design:type", Date)
|
|
314
|
+
], ProductDetail.prototype, "createdAt", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
317
|
+
__metadata("design:type", Date)
|
|
318
|
+
], ProductDetail.prototype, "updatedAt", void 0);
|
|
319
|
+
__decorate([
|
|
320
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
321
|
+
nullable: true
|
|
322
|
+
}),
|
|
323
|
+
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
324
|
+
], ProductDetail.prototype, "creator", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
327
|
+
nullable: true
|
|
328
|
+
}),
|
|
329
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
330
|
+
], ProductDetail.prototype, "updater", void 0);
|
|
331
|
+
ProductDetail = ProductDetail_1 = __decorate([
|
|
332
|
+
(0, typeorm_1.Entity)(),
|
|
333
|
+
(0, typeorm_1.Index)('ix_product_detail_0', (productDetail) => [productDetail.domain, productDetail.gtin, productDetail.product], { unique: true }),
|
|
334
|
+
(0, typeorm_1.Index)('ix_product_detail_1', (productDetail) => [productDetail.product]),
|
|
335
|
+
__metadata("design:paramtypes", [Object, Object])
|
|
336
|
+
], ProductDetail);
|
|
337
|
+
exports.ProductDetail = ProductDetail;
|
|
338
|
+
//# sourceMappingURL=product-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail.js","sourceRoot":"","sources":["../../server/entities/product-detail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,yBAA0D;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmDI;AASJ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length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ProductSet = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const shell_1 = require("@things-factory/shell");
|
|
16
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
17
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
|
+
const _1 = require("./");
|
|
19
|
+
let ProductSet = class ProductSet {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ProductSet.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
27
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
28
|
+
], ProductSet.prototype, "domain", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace, {
|
|
31
|
+
nullable: false
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
|
|
34
|
+
], ProductSet.prototype, "bizplace", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ProductSet.prototype, "code", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ProductSet.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
nullable: true
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ProductSet.prototype, "description", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.OneToMany)(type => _1.Product, product => product.productSet, {
|
|
51
|
+
nullable: true
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], ProductSet.prototype, "product", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
nullable: true, default: 'ACTIVE'
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ProductSet.prototype, "status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ProductSet.prototype, "type", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], ProductSet.prototype, "createdAt", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
71
|
+
__metadata("design:type", Date)
|
|
72
|
+
], ProductSet.prototype, "updatedAt", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
75
|
+
nullable: true
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
78
|
+
], ProductSet.prototype, "creator", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
81
|
+
nullable: true
|
|
82
|
+
}),
|
|
83
|
+
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
84
|
+
], ProductSet.prototype, "updater", void 0);
|
|
85
|
+
ProductSet = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)(),
|
|
87
|
+
(0, typeorm_1.Index)('ix_product_set_0', (productSet) => [productSet.bizplace, productSet.name], { unique: true })
|
|
88
|
+
], ProductSet);
|
|
89
|
+
exports.ProductSet = ProductSet;
|
|
90
|
+
//# sourceMappingURL=product-set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-set.js","sourceRoot":"","sources":["../../server/entities/product-set.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAiI;AACjI,iDAA8C;AAC9C,uDAAmD;AACnD,yDAAgD;AAChD,yBAA4B;AAI5B,IAAa,UAAU,GAAvB,MAAa,UAAU;CAwDtB,CAAA;AArDC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACrB;AAGV;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;kDAClB,cAAM,oBAAN,cAAM;0CAAA;AAKd;IAHC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE;QAC3B,QAAQ,EAAE,KAAK;KAChB,CAAC;kDACQ,mBAAQ,oBAAR,mBAAQ;4CAAA;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACf;AAGZ;IADC,IAAA,gBAAM,GAAE;;wCACG;AAKZ;IAHC,IAAA,gBA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