@things-factory/operato-mms 4.3.646 → 4.3.651
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/package.json +6 -6
- package/dist-server/controllers/index.js +0 -1
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/entities/index.js +0 -5
- package/dist-server/entities/index.js.map +0 -1
- package/dist-server/graphql/index.js +0 -33
- package/dist-server/graphql/index.js.map +0 -1
- package/dist-server/graphql/resolvers/index.js +0 -32
- package/dist-server/graphql/resolvers/index.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js +0 -242
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js +0 -218
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/auto-update-all-marketplace-product-variation-quantity.js +0 -159
- package/dist-server/graphql/resolvers/interface-with-hub/auto-update-all-marketplace-product-variation-quantity.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/generate-replenishment-order.js +0 -27
- package/dist-server/graphql/resolvers/interface-with-hub/generate-replenishment-order.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/index.js +0 -12
- package/dist-server/graphql/resolvers/interface-with-hub/index.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/warehouse-marketplace-products.js +0 -157
- package/dist-server/graphql/resolvers/interface-with-hub/warehouse-marketplace-products.js.map +0 -1
- package/dist-server/graphql/resolvers/shipping-provider/index.js +0 -6
- package/dist-server/graphql/resolvers/shipping-provider/index.js.map +0 -1
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js +0 -32
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js.map +0 -1
- package/dist-server/graphql/resolvers/warehouse-product/auto-link-warehouse-marketplace-product-variations.js +0 -63
- package/dist-server/graphql/resolvers/warehouse-product/auto-link-warehouse-marketplace-product-variations.js.map +0 -1
- package/dist-server/graphql/resolvers/warehouse-product/index.js +0 -6
- package/dist-server/graphql/resolvers/warehouse-product/index.js.map +0 -1
- package/dist-server/graphql/types/index.js +0 -33
- package/dist-server/graphql/types/index.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/index.js +0 -29
- package/dist-server/graphql/types/interface-with-hub/index.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/new-stock-replenishment.js +0 -34
- package/dist-server/graphql/types/interface-with-hub/new-stock-replenishment.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/replenishment-order-product.js +0 -50
- package/dist-server/graphql/types/interface-with-hub/replenishment-order-product.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/stock-replenishment-list.js +0 -16
- package/dist-server/graphql/types/interface-with-hub/stock-replenishment-list.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/stock-replenishment.js +0 -47
- package/dist-server/graphql/types/interface-with-hub/stock-replenishment.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/warehouse-inventory.js +0 -17
- package/dist-server/graphql/types/interface-with-hub/warehouse-inventory.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/warehouse-marketplace-product-list.js +0 -14
- package/dist-server/graphql/types/interface-with-hub/warehouse-marketplace-product-list.js.map +0 -1
- package/dist-server/graphql/types/interface-with-hub/warehouse-marketplace-product.js +0 -20
- package/dist-server/graphql/types/interface-with-hub/warehouse-marketplace-product.js.map +0 -1
- package/dist-server/graphql/types/shipping-provider/index.js +0 -10
- package/dist-server/graphql/types/shipping-provider/index.js.map +0 -1
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js +0 -13
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js.map +0 -1
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js +0 -13
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js.map +0 -1
- package/dist-server/graphql/types/warehouse-product/index.js +0 -11
- package/dist-server/graphql/types/warehouse-product/index.js.map +0 -1
- package/dist-server/graphql/types/warehouse-product/warehouse-product.js +0 -12
- package/dist-server/graphql/types/warehouse-product/warehouse-product.js.map +0 -1
- package/dist-server/index.js +0 -34
- package/dist-server/index.js.map +0 -1
- package/dist-server/middlewares/index.js +0 -4
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/1599732967233-SeedCommonCode.js +0 -52
- package/dist-server/migrations/1599732967233-SeedCommonCode.js.map +0 -1
- package/dist-server/migrations/1608009991075-SeedUser.js +0 -51
- package/dist-server/migrations/1608009991075-SeedUser.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/routers/etrax-router.js +0 -155
- package/dist-server/routers/etrax-router.js.map +0 -1
- package/dist-server/routers/shopify-pos-public-router.js +0 -109
- package/dist-server/routers/shopify-pos-public-router.js.map +0 -1
- package/dist-server/routes.js +0 -11
- package/dist-server/routes.js.map +0 -1
- package/dist-server/util/interface-helper.js +0 -53
- package/dist-server/util/interface-helper.js.map +0 -1
- package/dist-server/util/no-generator.js +0 -14
- package/dist-server/util/no-generator.js.map +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NewStockReplenishment = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.NewStockReplenishment = (0, graphql_tag_1.default) `
|
|
9
|
-
input NewStockReplenishment {
|
|
10
|
-
name: String
|
|
11
|
-
description: String
|
|
12
|
-
containerNo: String
|
|
13
|
-
container: Boolean
|
|
14
|
-
ownTransport: Boolean!
|
|
15
|
-
crossDocking: Boolean
|
|
16
|
-
importCargo: Boolean
|
|
17
|
-
jobSheetNo: String
|
|
18
|
-
looseItem: Boolean
|
|
19
|
-
ata: String
|
|
20
|
-
eta: String
|
|
21
|
-
etaDate: String
|
|
22
|
-
truckNo: String
|
|
23
|
-
refNo: String
|
|
24
|
-
status: String
|
|
25
|
-
remark: String
|
|
26
|
-
orderProducts: [Object]!
|
|
27
|
-
orderVass: [Object]
|
|
28
|
-
deliveryOrderNo: String
|
|
29
|
-
containerSize: String
|
|
30
|
-
warehouseId: String #outletID
|
|
31
|
-
supplier: String
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
34
|
-
//# sourceMappingURL=new-stock-replenishment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-stock-replenishment.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/new-stock-replenishment.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvC,CAAA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ReplenishmentOrderProduct = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.ReplenishmentOrderProduct = (0, graphql_tag_1.default) `
|
|
9
|
-
type ReplenishmentOrderProduct {
|
|
10
|
-
id: String
|
|
11
|
-
domain: Domain
|
|
12
|
-
bizplace: Bizplace
|
|
13
|
-
sku: String
|
|
14
|
-
name: String
|
|
15
|
-
description: String
|
|
16
|
-
type: String
|
|
17
|
-
stockReplenishment: StockReplenishment
|
|
18
|
-
# collectionOrder: CollectionOrder
|
|
19
|
-
# deliveryOrder: DeliveryOrder
|
|
20
|
-
# releaseGood: ReleaseGood
|
|
21
|
-
# shippingOrder: ShippingOrder
|
|
22
|
-
# retailReplenishmentOrder: RetailReplenishmentOrder
|
|
23
|
-
# fromInventory: Inventory
|
|
24
|
-
# currentInventory: Inventory
|
|
25
|
-
# toInventory: Inventory
|
|
26
|
-
product: MarketplaceProduct
|
|
27
|
-
batchId: String
|
|
28
|
-
batchExp: String
|
|
29
|
-
adjustedBatchId: String
|
|
30
|
-
adjustedPalletQty: Int
|
|
31
|
-
packingType: String
|
|
32
|
-
uom: String
|
|
33
|
-
uomValue: Float
|
|
34
|
-
packQty: Int
|
|
35
|
-
actualPackQty: Int
|
|
36
|
-
palletQty: Int
|
|
37
|
-
actualPalletQty: Int
|
|
38
|
-
totalUomValue: String
|
|
39
|
-
releaseQty: Int
|
|
40
|
-
releaseUomValue: Float
|
|
41
|
-
remark: String
|
|
42
|
-
issue: String
|
|
43
|
-
status: String
|
|
44
|
-
createdAt: String
|
|
45
|
-
updatedAt: String
|
|
46
|
-
creator: User
|
|
47
|
-
updater: User
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
//# sourceMappingURL=replenishment-order-product.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replenishment-order-product.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/replenishment-order-product.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3C,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StockReplenishmentList = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.StockReplenishmentList = (0, graphql_tag_1.default) `
|
|
9
|
-
type StockReplenishmentList {
|
|
10
|
-
items: [StockReplenishment]
|
|
11
|
-
total: Int
|
|
12
|
-
errorcode: String
|
|
13
|
-
message: String
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
//# sourceMappingURL=stock-replenishment-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stock-replenishment-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/stock-replenishment-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOxC,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StockReplenishment = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.StockReplenishment = (0, graphql_tag_1.default) `
|
|
9
|
-
type StockReplenishment {
|
|
10
|
-
id: String
|
|
11
|
-
name: String
|
|
12
|
-
domain: Domain
|
|
13
|
-
bizplace: Bizplace
|
|
14
|
-
description: String
|
|
15
|
-
errorcode: Int
|
|
16
|
-
message: String
|
|
17
|
-
containerNo: String
|
|
18
|
-
containerSize: String
|
|
19
|
-
container: Boolean
|
|
20
|
-
ownTransport: Boolean
|
|
21
|
-
crossDocking: Boolean
|
|
22
|
-
# releaseGood: ReleaseGood
|
|
23
|
-
importCargo: Boolean
|
|
24
|
-
jobSheetNo: String
|
|
25
|
-
looseItem: Boolean
|
|
26
|
-
ata: String
|
|
27
|
-
eta: String
|
|
28
|
-
etaDate: String
|
|
29
|
-
truckNo: String
|
|
30
|
-
refNo: String
|
|
31
|
-
status: String
|
|
32
|
-
remark: String
|
|
33
|
-
# jobSheet: JobSheet
|
|
34
|
-
orderProducts: [ReplenishmentOrderProduct]
|
|
35
|
-
# orderVass: [OrderVas]
|
|
36
|
-
# collectionOrders: [CollectionOrder]
|
|
37
|
-
# attachment: [Attachment]
|
|
38
|
-
deliveryOrderNo: String
|
|
39
|
-
creator: User
|
|
40
|
-
updater: User
|
|
41
|
-
acceptedBy: User
|
|
42
|
-
createdAt: String
|
|
43
|
-
updatedAt: String
|
|
44
|
-
# supplier: ContactPoint
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
//# sourceMappingURL=stock-replenishment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stock-replenishment.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/stock-replenishment.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpC,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WarehouseInventory = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.WarehouseInventory = (0, graphql_tag_1.default) `
|
|
9
|
-
type WarehouseInventory {
|
|
10
|
-
product: Product
|
|
11
|
-
qty: Int
|
|
12
|
-
lockedQty: Int
|
|
13
|
-
remainQty: Int
|
|
14
|
-
bizplace: Bizplace
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
//# sourceMappingURL=warehouse-inventory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-inventory.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/warehouse-inventory.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQpC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WarehouseMarketplaceProductList = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.WarehouseMarketplaceProductList = (0, graphql_tag_1.default) `
|
|
9
|
-
type WarehouseMarketplaceProductList {
|
|
10
|
-
items: [WarehouseMarketplaceProduct]
|
|
11
|
-
total: Int
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
//# sourceMappingURL=warehouse-marketplace-product-list.js.map
|
package/dist-server/graphql/types/interface-with-hub/warehouse-marketplace-product-list.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-marketplace-product-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/warehouse-marketplace-product-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;CAKjD,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WarehouseMarketplaceProduct = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.WarehouseMarketplaceProduct = (0, graphql_tag_1.default) `
|
|
9
|
-
type WarehouseMarketplaceProduct {
|
|
10
|
-
seq: Int
|
|
11
|
-
id: String
|
|
12
|
-
domain: Domain
|
|
13
|
-
sku: String
|
|
14
|
-
name: String
|
|
15
|
-
description: String
|
|
16
|
-
marketplaceProduct: [MarketplaceProduct]
|
|
17
|
-
warehouseInventory: [WarehouseInventory]
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
//# sourceMappingURL=warehouse-marketplace-product.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-marketplace-product.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/warehouse-marketplace-product.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;CAW7C,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Types = exports.Query = void 0;
|
|
4
|
-
const shipping_provider_list_1 = require("./shipping-provider-list");
|
|
5
|
-
const shipping_provider_1 = require("./shipping-provider");
|
|
6
|
-
exports.Query = `
|
|
7
|
-
shippingProviders(storeId: String!, statuses: [String]): ShippingProviderList @transaction
|
|
8
|
-
`;
|
|
9
|
-
exports.Types = [shipping_provider_list_1.ShippingProviderList, shipping_provider_1.ShippingProvider];
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/shipping-provider/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,2DAAsD;AAEzC,QAAA,KAAK,GAAG;;CAEpB,CAAA;AAEY,QAAA,KAAK,GAAG,CAAC,6CAAoB,EAAE,oCAAgB,CAAC,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ShippingProviderList = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.ShippingProviderList = (0, graphql_tag_1.default) `
|
|
9
|
-
type ShippingProviderList {
|
|
10
|
-
items: [ShippingProvider]
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
//# sourceMappingURL=shipping-provider-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-provider-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/shipping-provider/shipping-provider-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,oBAAoB,GAAG,IAAA,qBAAG,EAAA;;;;CAItC,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ShippingProvider = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.ShippingProvider = (0, graphql_tag_1.default) `
|
|
9
|
-
type ShippingProvider {
|
|
10
|
-
shippingProvider: String
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
//# sourceMappingURL=shipping-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-provider.js","sourceRoot":"","sources":["../../../../server/graphql/types/shipping-provider/shipping-provider.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;CAIlC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Types = exports.Mutation = void 0;
|
|
4
|
-
const warehouse_product_1 = require("./warehouse-product");
|
|
5
|
-
exports.Mutation = `
|
|
6
|
-
autoLinkWarehouseMarketplaceProductVariations(
|
|
7
|
-
marketplaceStoreIds: [String]!
|
|
8
|
-
isCheckedSku: Boolean!
|
|
9
|
-
): Boolean @transaction `;
|
|
10
|
-
exports.Types = [warehouse_product_1.WarehouseProduct];
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/warehouse-product/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAEzC,QAAA,QAAQ,GAAiB;;;;kCAIJ,CAAA;AAErB,QAAA,KAAK,GAAG,CAAC,oCAAgB,CAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseProduct = void 0;
|
|
4
|
-
const apollo_server_koa_1 = require("apollo-server-koa");
|
|
5
|
-
exports.WarehouseProduct = (0, apollo_server_koa_1.gql) `
|
|
6
|
-
input WarehouseProduct {
|
|
7
|
-
id: String
|
|
8
|
-
sku: String
|
|
9
|
-
name: String
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
//# sourceMappingURL=warehouse-product.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-product.js","sourceRoot":"","sources":["../../../../server/graphql/types/warehouse-product/warehouse-product.ts"],"names":[],"mappings":";;;AAAA,yDAAuC;AAE1B,QAAA,gBAAgB,GAAG,IAAA,uBAAG,EAAA;;;;;;CAMlC,CAAA"}
|
package/dist-server/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./entities"), exports);
|
|
18
|
-
__exportStar(require("./graphql"), exports);
|
|
19
|
-
__exportStar(require("./migrations"), exports);
|
|
20
|
-
require("./routes");
|
|
21
|
-
const integration_base_1 = require("@things-factory/integration-base");
|
|
22
|
-
const debug = require('debug')('things-factory:operato-mms:bootstrap');
|
|
23
|
-
process.on('bootstrap-module-start', async ({ app, config, client }) => {
|
|
24
|
-
debug('%%%%%%%%%%%%%%%% TASK ENGINE - BEGIN %%%%%%%%%%%%%%%%');
|
|
25
|
-
try {
|
|
26
|
-
await integration_base_1.ConnectionManager.ready();
|
|
27
|
-
await integration_base_1.ScenarioEngine.loadAll();
|
|
28
|
-
}
|
|
29
|
-
catch (ex) {
|
|
30
|
-
integration_base_1.ConnectionManager.logger.error(ex);
|
|
31
|
-
}
|
|
32
|
-
debug('%%%%%%%%%%%%%%%% TASK ENGINE - END %%%%%%%%%%%%%%%%');
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/dist-server/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,+CAA4B;AAE5B,oBAAiB;AACjB,uEAAoF;AAEpF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,sCAAsC,CAAC,CAAA;AAEtE,OAAO,CAAC,EAAE,CAAC,wBAA+B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAO,EAAE,EAAE;IACjF,KAAK,CAAC,uDAAuD,CAAC,CAAA;IAC9D,IAAI;QACF,MAAM,oCAAiB,CAAC,KAAK,EAAE,CAAA;QAC/B,MAAM,iCAAc,CAAC,OAAO,EAAE,CAAA;KAC/B;IAAC,OAAO,EAAE,EAAE;QACX,oCAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KACnC;IACD,KAAK,CAAC,qDAAqD,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,uCAAuC;AACvC,IAAI"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedCommonCode1599732967233 = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const code_base_1 = require("@things-factory/code-base");
|
|
6
|
-
const shell_1 = require("@things-factory/shell");
|
|
7
|
-
const codes = [
|
|
8
|
-
{
|
|
9
|
-
name: 'COUNTRY_CODES',
|
|
10
|
-
description: 'country code',
|
|
11
|
-
details: [
|
|
12
|
-
{ name: 'my', description: 'Malaysia' },
|
|
13
|
-
{ name: 'sg', description: 'Singapore' },
|
|
14
|
-
{ name: 'th', description: 'Thailand' },
|
|
15
|
-
{ name: 'vn', description: 'Vietnam' },
|
|
16
|
-
{ name: 'id', description: 'Indonesia' },
|
|
17
|
-
{ name: 'ph', description: 'Philippines' }
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'ECOMMERCE_PLATFORM',
|
|
22
|
-
description: 'ecommerce platform',
|
|
23
|
-
details: [
|
|
24
|
-
{ name: 'lazada', description: 'Lazada' },
|
|
25
|
-
{ name: 'shopee', description: 'Shopee' },
|
|
26
|
-
{ name: 'shopify', description: 'Shopify' },
|
|
27
|
-
{ name: 'zalora', description: 'Zalora' }
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
class SeedCommonCode1599732967233 {
|
|
32
|
-
async up(queryRunner) {
|
|
33
|
-
const codeRepo = (0, typeorm_1.getRepository)(code_base_1.CommonCode);
|
|
34
|
-
const codeDetailRepo = (0, typeorm_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
35
|
-
const domain = await (0, typeorm_1.getRepository)(shell_1.Domain).findOne({
|
|
36
|
-
subdomain: 'maybank'
|
|
37
|
-
});
|
|
38
|
-
return await Promise.all(codes.map(async (code) => {
|
|
39
|
-
const commonCode = await codeRepo.save(Object.assign(Object.assign({}, code), { domain }));
|
|
40
|
-
await codeDetailRepo.save(commonCode.details.map((detail, idx) => {
|
|
41
|
-
return Object.assign(Object.assign({}, detail), { commonCode,
|
|
42
|
-
domain, rank: (idx + 1) * 10 });
|
|
43
|
-
}));
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
async down(queryRunner) {
|
|
47
|
-
const codeRepo = (0, typeorm_1.getRepository)(code_base_1.CommonCode);
|
|
48
|
-
const codeDetailRepo = (0, typeorm_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.SeedCommonCode1599732967233 = SeedCommonCode1599732967233;
|
|
52
|
-
//# sourceMappingURL=1599732967233-SeedCommonCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1599732967233-SeedCommonCode.js","sourceRoot":"","sources":["../../server/migrations/1599732967233-SeedCommonCode.ts"],"names":[],"mappings":";;;AAAA,qCAAwE;AACxE,yDAAwE;AACxE,iDAA8C;AAE9C,MAAM,KAAK,GAAG;IACZ;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE;YACvC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE;YACxC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE;YACvC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE;YACtC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE;YACxC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C;KACF;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACzC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACzC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE;YAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SAC1C;KACF;CACF,CAAA;AAED,MAAa,2BAA2B;IAC/B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,QAAQ,GAAG,IAAA,uBAAa,EAAC,sBAAU,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,IAAA,uBAAa,EAAC,4BAAgB,CAAC,CAAA;QACtD,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAC,OAAO,CAAC;YACjD,SAAS,EAAE,SAAS;SACrB,CAAC,CAAA;QAEF,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,KAAK,CAAC,GAAG,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;YACrB,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,IAAI,iCACjC,IAAI,KACP,MAAM,IACN,CAAA;YAEF,MAAM,cAAc,CAAC,IAAI,CACvB,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;gBACrC,uCACK,MAAM,KACT,UAAU;oBACV,MAAM,EACN,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,IACrB;YACH,CAAC,CAAC,CACH,CAAA;QACH,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,QAAQ,GAAG,IAAA,uBAAa,EAAC,sBAAU,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,IAAA,uBAAa,EAAC,4BAAgB,CAAC,CAAA;IACxD,CAAC;CACF;AAjCD,kEAiCC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedUser1608009991075 = void 0;
|
|
4
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const ADMIN_USER = {
|
|
8
|
-
name: 'Admin',
|
|
9
|
-
email: 'admin@hatiolab.com',
|
|
10
|
-
password: 'admin',
|
|
11
|
-
userType: 'user',
|
|
12
|
-
status: auth_base_1.UserStatus.ACTIVATED
|
|
13
|
-
};
|
|
14
|
-
class SeedUser1608009991075 {
|
|
15
|
-
async up(queryRunner) {
|
|
16
|
-
const userRepository = (0, typeorm_1.getRepository)(auth_base_1.User);
|
|
17
|
-
const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
|
|
18
|
-
let adminUser = await userRepository.findOne({ where: { name: ADMIN_USER.name }, relations: ['domains'] });
|
|
19
|
-
let systemDomain = await domainRepository.findOne({ where: { systemFlag: true } });
|
|
20
|
-
if (!adminUser) {
|
|
21
|
-
const salt = auth_base_1.User.generateSalt();
|
|
22
|
-
adminUser = await userRepository.save(Object.assign(Object.assign({}, ADMIN_USER), { salt, password: auth_base_1.User.encode(ADMIN_USER.password, salt) }));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
adminUser.userType = 'user';
|
|
26
|
-
await userRepository.save(adminUser);
|
|
27
|
-
}
|
|
28
|
-
if (systemDomain) {
|
|
29
|
-
systemDomain.extType = 'company';
|
|
30
|
-
await domainRepository.save(systemDomain);
|
|
31
|
-
}
|
|
32
|
-
const companyInput = {
|
|
33
|
-
name: systemDomain.name,
|
|
34
|
-
description: systemDomain.description || null,
|
|
35
|
-
address: '',
|
|
36
|
-
postalCode: '',
|
|
37
|
-
countryCode: '',
|
|
38
|
-
brn: ''
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
async down(queryRunner) {
|
|
42
|
-
const userRepository = (0, typeorm_1.getRepository)(auth_base_1.User);
|
|
43
|
-
const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
|
|
44
|
-
const user = await userRepository.findOne({ where: { name: ADMIN_USER.name } });
|
|
45
|
-
await userRepository.delete(user);
|
|
46
|
-
const systemDomain = await domainRepository.findOne({ where: { systemFlag: true } });
|
|
47
|
-
await domainRepository.delete(systemDomain);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.SeedUser1608009991075 = SeedUser1608009991075;
|
|
51
|
-
//# sourceMappingURL=1608009991075-SeedUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1608009991075-SeedUser.js","sourceRoot":"","sources":["../../server/migrations/1608009991075-SeedUser.ts"],"names":[],"mappings":";;;AAAA,yDAA4D;AAE5D,iDAA8C;AAC9C,qCAAoF;AAEpF,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,oBAAoB;IAC3B,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,sBAAU,CAAC,SAAS;CAC7B,CAAA;AACD,MAAa,qBAAqB;IACzB,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,cAAc,GAAqB,IAAA,uBAAa,EAAC,gBAAI,CAAC,CAAA;QAC5D,MAAM,gBAAgB,GAAuB,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAElE,IAAI,SAAS,GAAS,MAAM,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAChH,IAAI,YAAY,GAAW,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;QAE1F,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,GAAG,gBAAI,CAAC,YAAY,EAAE,CAAA;YAEhC,SAAS,GAAG,MAAM,cAAc,CAAC,IAAI,iCAChC,UAAU,KACb,IAAI,EACJ,QAAQ,EAAE,gBAAI,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,IAChD,CAAA;SACH;aAAM;YACL,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAA;YAC3B,MAAM,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;SACrC;QAED,IAAI,YAAY,EAAE;YAChB,YAAY,CAAC,OAAO,GAAG,SAAS,CAAA;YAChC,MAAM,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;SAC1C;QAED,MAAM,YAAY,GAAY;YAC5B,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,IAAI;YAC7C,OAAO,EAAE,EAAE;YACX,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,GAAG,EAAE,EAAE;SACR,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,cAAc,GAAG,IAAA,uBAAa,EAAC,gBAAI,CAAC,CAAA;QAC1C,MAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAE9C,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QAC/E,MAAM,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAEjC,MAAM,YAAY,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;QACpF,MAAM,gBAAgB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;IAC7C,CAAC;CACF;AA9CD,sDA8CC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrations = void 0;
|
|
4
|
-
const glob = require('glob');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
exports.migrations = [];
|
|
7
|
-
glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
|
|
8
|
-
if (file.indexOf('index.js') !== -1)
|
|
9
|
-
return;
|
|
10
|
-
exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,IAAI;IAC1E,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA"}
|