@things-factory/operato-mms 6.2.101 → 6.2.102
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 +5 -5
- 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 -11
- package/dist-server/graphql/index.js.map +0 -1
- package/dist-server/graphql/resolvers/index.js +0 -10
- package/dist-server/graphql/resolvers/index.js.map +0 -1
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js +0 -178
- 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 -181
- 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 -149
- 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 -26
- 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 -221
- 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 -67
- 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 -11
- 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 -32
- 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 -48
- 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 -14
- 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 -45
- 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 -15
- 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 -12
- 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 -18
- 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 -11
- 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 -11
- 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 -13
- package/dist-server/graphql/types/warehouse-product/warehouse-product.js.map +0 -1
- package/dist-server/index.js +0 -8
- 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 -51
- package/dist-server/migrations/1599732967233-SeedCommonCode.js.map +0 -1
- package/dist-server/migrations/1608009991075-SeedUser.js +0 -50
- 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 -156
- package/dist-server/routers/etrax-router.js.map +0 -1
- package/dist-server/routers/shopify-pos-public-router.js +0 -107
- package/dist-server/routers/shopify-pos-public-router.js.map +0 -1
- package/dist-server/routes.js +0 -10
- package/dist-server/routes.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
- package/dist-server/util/interface-helper.js +0 -51
- 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,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.autoLinkWarehouseMarketplaceProductVariationsResolver = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const marketplace_base_1 = require("@things-factory/marketplace-base");
|
|
6
|
-
const shell_1 = require("@things-factory/shell");
|
|
7
|
-
const warehouse_marketplace_products_1 = require("../interface-with-hub/warehouse-marketplace-products");
|
|
8
|
-
exports.autoLinkWarehouseMarketplaceProductVariationsResolver = {
|
|
9
|
-
async autoLinkWarehouseMarketplaceProductVariations(_, { marketplaceStoreIds, isCheckedSku }, context) {
|
|
10
|
-
const { domain, user, tx } = context.state;
|
|
11
|
-
const tag = `progress-link-product`;
|
|
12
|
-
await linkMarketplaceProductVariations({
|
|
13
|
-
domain,
|
|
14
|
-
user,
|
|
15
|
-
tag,
|
|
16
|
-
marketplaceStoreIds,
|
|
17
|
-
isCheckedSku,
|
|
18
|
-
tx
|
|
19
|
-
});
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
async function linkMarketplaceProductVariations({ domain, user, tag, marketplaceStoreIds, isCheckedSku, tx }) {
|
|
24
|
-
try {
|
|
25
|
-
const params = { filters: [], sortings: [] };
|
|
26
|
-
const warehouseMarketplaceProducts = await (0, warehouse_marketplace_products_1.warehouseMarketplaceProduct)(params, domain, user, tx);
|
|
27
|
-
const marketplaceProducts = await tx.getRepository(marketplace_base_1.MarketplaceProduct).find({
|
|
28
|
-
where: { domain: { id: domain.id }, marketplaceStore: (0, typeorm_1.In)(marketplaceStoreIds) }
|
|
29
|
-
});
|
|
30
|
-
let marketplaceProductVariations = await tx
|
|
31
|
-
.getRepository(marketplace_base_1.MarketplaceProductVariation)
|
|
32
|
-
.find({
|
|
33
|
-
where: {
|
|
34
|
-
domain: { id: domain.id },
|
|
35
|
-
marketplaceProduct: (0, typeorm_1.In)(marketplaceProducts.map(product => product.id)),
|
|
36
|
-
sku: (0, typeorm_1.IsNull)()
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
let total = marketplaceProductVariations === null || marketplaceProductVariations === void 0 ? void 0 : marketplaceProductVariations.length;
|
|
40
|
-
const linkedProductVariations = await Promise.all(marketplaceProductVariations.map((productVariation, idx) => {
|
|
41
|
-
let foundSku;
|
|
42
|
-
if (isCheckedSku) {
|
|
43
|
-
foundSku = warehouseMarketplaceProducts.items.find(warehouseProd => warehouseProd.sku === productVariation.variationSku);
|
|
44
|
-
}
|
|
45
|
-
productVariation.sku = (foundSku === null || foundSku === void 0 ? void 0 : foundSku.sku) ? foundSku.sku : null;
|
|
46
|
-
productVariation.updater = user;
|
|
47
|
-
(0, shell_1.publishProgress)({
|
|
48
|
-
domain: { id: domain.id },
|
|
49
|
-
tag,
|
|
50
|
-
progress: Math.floor((idx / total) * 100),
|
|
51
|
-
message: `${idx} / ${total}`
|
|
52
|
-
});
|
|
53
|
-
return productVariation;
|
|
54
|
-
}));
|
|
55
|
-
await tx.getRepository(marketplace_base_1.MarketplaceProductVariation).save(linkedProductVariations);
|
|
56
|
-
}
|
|
57
|
-
catch (ex) {
|
|
58
|
-
(0, shell_1.publishProgress)({
|
|
59
|
-
domain,
|
|
60
|
-
tag,
|
|
61
|
-
progress: -1,
|
|
62
|
-
message: 'failed'
|
|
63
|
-
});
|
|
64
|
-
throw ex;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=auto-link-warehouse-marketplace-product-variations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-link-warehouse-marketplace-product-variations.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-product/auto-link-warehouse-marketplace-product-variations.ts"],"names":[],"mappings":"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","sourcesContent":["import { In, IsNull } from 'typeorm'\n\nimport { MarketplaceProduct, MarketplaceProductVariation } from '@things-factory/marketplace-base'\nimport { publishProgress } from '@things-factory/shell'\n\nimport { warehouseMarketplaceProduct } from '../interface-with-hub/warehouse-marketplace-products'\n\nexport const autoLinkWarehouseMarketplaceProductVariationsResolver = {\n async autoLinkWarehouseMarketplaceProductVariations(\n _: any,\n { marketplaceStoreIds, isCheckedSku },\n context: ResolverContext\n ): Promise<Boolean> {\n const { domain, user, tx } = context.state\n\n const tag = `progress-link-product`\n\n await linkMarketplaceProductVariations({\n domain,\n user,\n tag,\n marketplaceStoreIds,\n isCheckedSku,\n tx\n })\n\n return true\n }\n}\n\nasync function linkMarketplaceProductVariations({ domain, user, tag, marketplaceStoreIds, isCheckedSku, tx }) {\n try {\n const params: any = { filters: [], sortings: [] }\n const warehouseMarketplaceProducts = await warehouseMarketplaceProduct(params, domain, user, tx)\n\n const marketplaceProducts: MarketplaceProduct[] = await tx.getRepository(MarketplaceProduct).find({\n where: { domain: { id: domain.id }, marketplaceStore: In(marketplaceStoreIds) }\n })\n\n let marketplaceProductVariations: MarketplaceProductVariation[] = await tx\n .getRepository(MarketplaceProductVariation)\n .find({\n where: {\n domain: { id: domain.id },\n marketplaceProduct: In(marketplaceProducts.map(product => product.id)),\n sku: IsNull()\n }\n })\n\n let total: number = marketplaceProductVariations?.length\n\n const linkedProductVariations: MarketplaceProductVariation[] = await Promise.all(\n marketplaceProductVariations.map((productVariation: MarketplaceProductVariation, idx) => {\n let foundSku: any\n\n if (isCheckedSku) {\n foundSku = warehouseMarketplaceProducts.items.find(\n warehouseProd => warehouseProd.sku === productVariation.variationSku\n )\n }\n\n productVariation.sku = foundSku?.sku ? foundSku.sku : null\n productVariation.updater = user\n\n publishProgress({\n domain: { id: domain.id },\n tag,\n progress: Math.floor((idx / total) * 100),\n message: `${idx} / ${total}`\n })\n\n return productVariation\n })\n )\n\n await tx.getRepository(MarketplaceProductVariation).save(linkedProductVariations)\n } catch (ex) {\n publishProgress({\n domain,\n tag,\n progress: -1,\n message: 'failed'\n })\n\n throw ex\n }\n}\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Mutation = void 0;
|
|
4
|
-
const auto_link_warehouse_marketplace_product_variations_1 = require("./auto-link-warehouse-marketplace-product-variations");
|
|
5
|
-
exports.Mutation = Object.assign({}, auto_link_warehouse_marketplace_product_variations_1.autoLinkWarehouseMarketplaceProductVariationsResolver);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-product/index.ts"],"names":[],"mappings":";;;AAAA,6HAA4H;AAE/G,QAAA,QAAQ,qBAChB,0GAAqD,EACzD","sourcesContent":["import { autoLinkWarehouseMarketplaceProductVariationsResolver } from './auto-link-warehouse-marketplace-product-variations'\n\nexport const Mutation = {\n ...autoLinkWarehouseMarketplaceProductVariationsResolver\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.types = exports.mutations = exports.queries = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const InterfaceWithHub = tslib_1.__importStar(require("./interface-with-hub"));
|
|
6
|
-
const WarehouseProduct = tslib_1.__importStar(require("./warehouse-product"));
|
|
7
|
-
const ShippingProvider = tslib_1.__importStar(require("./shipping-provider"));
|
|
8
|
-
exports.queries = [InterfaceWithHub.Query, ShippingProvider.Query];
|
|
9
|
-
exports.mutations = [InterfaceWithHub.Mutation, WarehouseProduct.Mutation];
|
|
10
|
-
exports.types = [...InterfaceWithHub.Types, ...WarehouseProduct.Types, ...ShippingProvider.Types];
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;AAAA,+EAAwD;AACxD,8EAAuD;AACvD,8EAAuD;AAE1C,QAAA,OAAO,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAA;AAE1D,QAAA,SAAS,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAA;AAElE,QAAA,KAAK,GAAG,CAAC,GAAG,gBAAgB,CAAC,KAAK,EAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import * as InterfaceWithHub from './interface-with-hub'\nimport * as WarehouseProduct from './warehouse-product'\nimport * as ShippingProvider from './shipping-provider'\n\nexport const queries = [InterfaceWithHub.Query, ShippingProvider.Query]\n\nexport const mutations = [InterfaceWithHub.Mutation, WarehouseProduct.Mutation]\n\nexport const types = [...InterfaceWithHub.Types, ...WarehouseProduct.Types, ...ShippingProvider.Types]\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Types = exports.Query = exports.Mutation = void 0;
|
|
4
|
-
const new_stock_replenishment_1 = require("./new-stock-replenishment");
|
|
5
|
-
const replenishment_order_product_1 = require("./replenishment-order-product");
|
|
6
|
-
const stock_replenishment_1 = require("./stock-replenishment");
|
|
7
|
-
const stock_replenishment_list_1 = require("./stock-replenishment-list");
|
|
8
|
-
const warehouse_inventory_1 = require("./warehouse-inventory");
|
|
9
|
-
const warehouse_marketplace_product_1 = require("./warehouse-marketplace-product");
|
|
10
|
-
const warehouse_marketplace_product_list_1 = require("./warehouse-marketplace-product-list");
|
|
11
|
-
exports.Mutation = `
|
|
12
|
-
addReleaseOrder(marketplaceOrderIds: [String]!, warehouseId: String!): Boolean @transaction
|
|
13
|
-
autoAddReleaseOrder(warehouseId: String): Boolean @transaction
|
|
14
|
-
generateReplenishmentOrder(stockReplenishmentId: String!, warehouseId: String!): StockReplenishment @transaction
|
|
15
|
-
autoUpdateAllMarketplaceProductVariationQuantity(companyDomainId: String, warehouseId: String): Boolean @transaction
|
|
16
|
-
`;
|
|
17
|
-
exports.Query = `
|
|
18
|
-
warehouseMarketplaceProducts(filters: [Filter], pagination: Pagination, sortings: [Sorting]): WarehouseMarketplaceProductList @transaction
|
|
19
|
-
`;
|
|
20
|
-
exports.Types = [
|
|
21
|
-
stock_replenishment_1.StockReplenishment,
|
|
22
|
-
new_stock_replenishment_1.NewStockReplenishment,
|
|
23
|
-
replenishment_order_product_1.ReplenishmentOrderProduct,
|
|
24
|
-
stock_replenishment_list_1.StockReplenishmentList,
|
|
25
|
-
warehouse_inventory_1.WarehouseInventory,
|
|
26
|
-
warehouse_marketplace_product_1.WarehouseMarketplaceProduct,
|
|
27
|
-
warehouse_marketplace_product_list_1.WarehouseMarketplaceProductList
|
|
28
|
-
];
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/interface-with-hub/index.ts"],"names":[],"mappings":";;;AAAA,uEAAiE;AACjE,+EAAyE;AACzE,+DAA0D;AAC1D,yEAAmE;AACnE,+DAA0D;AAC1D,mFAA6E;AAC7E,6FAAsF;AAEzE,QAAA,QAAQ,GAAiB;;;;;CAKrC,CAAA;AAEY,QAAA,KAAK,GAAiB;;CAElC,CAAA;AAEY,QAAA,KAAK,GAAG;IACnB,wCAAkB;IAClB,+CAAqB;IACrB,uDAAyB;IACzB,iDAAsB;IACtB,wCAAkB;IAClB,2DAA2B;IAC3B,oEAA+B;CAChC,CAAA","sourcesContent":["import { NewStockReplenishment } from './new-stock-replenishment'\nimport { ReplenishmentOrderProduct } from './replenishment-order-product'\nimport { StockReplenishment } from './stock-replenishment'\nimport { StockReplenishmentList } from './stock-replenishment-list'\nimport { WarehouseInventory } from './warehouse-inventory'\nimport { WarehouseMarketplaceProduct } from './warehouse-marketplace-product'\nimport { WarehouseMarketplaceProductList } from './warehouse-marketplace-product-list'\n\nexport const Mutation = /* GraphQL */ `\n addReleaseOrder(marketplaceOrderIds: [String]!, warehouseId: String!): Boolean @transaction\n autoAddReleaseOrder(warehouseId: String): Boolean @transaction\n generateReplenishmentOrder(stockReplenishmentId: String!, warehouseId: String!): StockReplenishment @transaction\n autoUpdateAllMarketplaceProductVariationQuantity(companyDomainId: String, warehouseId: String): Boolean @transaction\n`\n\nexport const Query = /* GraphQL */ `\n warehouseMarketplaceProducts(filters: [Filter], pagination: Pagination, sortings: [Sorting]): WarehouseMarketplaceProductList @transaction\n`\n\nexport const Types = [\n StockReplenishment,\n NewStockReplenishment,\n ReplenishmentOrderProduct,\n StockReplenishmentList,\n WarehouseInventory,\n WarehouseMarketplaceProduct,\n WarehouseMarketplaceProductList\n]\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewStockReplenishment = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.NewStockReplenishment = (0, graphql_tag_1.default) `
|
|
7
|
-
input NewStockReplenishment {
|
|
8
|
-
name: String
|
|
9
|
-
description: String
|
|
10
|
-
containerNo: String
|
|
11
|
-
container: Boolean
|
|
12
|
-
ownTransport: Boolean!
|
|
13
|
-
crossDocking: Boolean
|
|
14
|
-
importCargo: Boolean
|
|
15
|
-
jobSheetNo: String
|
|
16
|
-
looseItem: Boolean
|
|
17
|
-
ata: String
|
|
18
|
-
eta: String
|
|
19
|
-
etaDate: String
|
|
20
|
-
truckNo: String
|
|
21
|
-
refNo: String
|
|
22
|
-
status: String
|
|
23
|
-
remark: String
|
|
24
|
-
orderProducts: [Object]!
|
|
25
|
-
orderVass: [Object]
|
|
26
|
-
deliveryOrderNo: String
|
|
27
|
-
containerSize: String
|
|
28
|
-
warehouseId: String #outletID
|
|
29
|
-
supplier: String
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
//# 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,sEAA6B;AAEhB,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const NewStockReplenishment = gql`\n input NewStockReplenishment {\n name: String\n description: String\n containerNo: String\n container: Boolean\n ownTransport: Boolean!\n crossDocking: Boolean\n importCargo: Boolean\n jobSheetNo: String\n looseItem: Boolean\n ata: String\n eta: String\n etaDate: String\n truckNo: String\n refNo: String\n status: String\n remark: String\n orderProducts: [Object]!\n orderVass: [Object]\n deliveryOrderNo: String\n containerSize: String\n warehouseId: String #outletID\n supplier: String\n }\n`\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReplenishmentOrderProduct = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.ReplenishmentOrderProduct = (0, graphql_tag_1.default) `
|
|
7
|
-
type ReplenishmentOrderProduct {
|
|
8
|
-
id: String
|
|
9
|
-
domain: Domain
|
|
10
|
-
bizplace: Bizplace
|
|
11
|
-
sku: String
|
|
12
|
-
name: String
|
|
13
|
-
description: String
|
|
14
|
-
type: String
|
|
15
|
-
stockReplenishment: StockReplenishment
|
|
16
|
-
# collectionOrder: CollectionOrder
|
|
17
|
-
# deliveryOrder: DeliveryOrder
|
|
18
|
-
# releaseGood: ReleaseGood
|
|
19
|
-
# shippingOrder: ShippingOrder
|
|
20
|
-
# retailReplenishmentOrder: RetailReplenishmentOrder
|
|
21
|
-
# fromInventory: Inventory
|
|
22
|
-
# currentInventory: Inventory
|
|
23
|
-
# toInventory: Inventory
|
|
24
|
-
product: MarketplaceProduct
|
|
25
|
-
batchId: String
|
|
26
|
-
batchExp: String
|
|
27
|
-
adjustedBatchId: String
|
|
28
|
-
adjustedPalletQty: Int
|
|
29
|
-
packingType: String
|
|
30
|
-
uom: String
|
|
31
|
-
uomValue: Float
|
|
32
|
-
packQty: Int
|
|
33
|
-
actualPackQty: Int
|
|
34
|
-
palletQty: Int
|
|
35
|
-
actualPalletQty: Int
|
|
36
|
-
totalUomValue: String
|
|
37
|
-
releaseQty: Int
|
|
38
|
-
releaseUomValue: Float
|
|
39
|
-
remark: String
|
|
40
|
-
issue: String
|
|
41
|
-
status: String
|
|
42
|
-
createdAt: String
|
|
43
|
-
updatedAt: String
|
|
44
|
-
creator: User
|
|
45
|
-
updater: User
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
//# 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,sEAA6B;AAEhB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3C,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const ReplenishmentOrderProduct = gql`\n type ReplenishmentOrderProduct {\n id: String\n domain: Domain\n bizplace: Bizplace\n sku: String\n name: String\n description: String\n type: String\n stockReplenishment: StockReplenishment\n # collectionOrder: CollectionOrder\n # deliveryOrder: DeliveryOrder\n # releaseGood: ReleaseGood\n # shippingOrder: ShippingOrder\n # retailReplenishmentOrder: RetailReplenishmentOrder\n # fromInventory: Inventory\n # currentInventory: Inventory\n # toInventory: Inventory\n product: MarketplaceProduct\n batchId: String\n batchExp: String\n adjustedBatchId: String\n adjustedPalletQty: Int\n packingType: String\n uom: String\n uomValue: Float\n packQty: Int\n actualPackQty: Int\n palletQty: Int\n actualPalletQty: Int\n totalUomValue: String\n releaseQty: Int\n releaseUomValue: Float\n remark: String\n issue: String\n status: String\n createdAt: String\n updatedAt: String\n creator: User\n updater: User\n }\n`\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StockReplenishmentList = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.StockReplenishmentList = (0, graphql_tag_1.default) `
|
|
7
|
-
type StockReplenishmentList {
|
|
8
|
-
items: [StockReplenishment]
|
|
9
|
-
total: Int
|
|
10
|
-
errorcode: String
|
|
11
|
-
message: String
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
//# 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,sEAA6B;AAEhB,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOxC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const StockReplenishmentList = gql`\n type StockReplenishmentList {\n items: [StockReplenishment]\n total: Int\n errorcode: String\n message: String\n }\n`\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StockReplenishment = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.StockReplenishment = (0, graphql_tag_1.default) `
|
|
7
|
-
type StockReplenishment {
|
|
8
|
-
id: String
|
|
9
|
-
name: String
|
|
10
|
-
domain: Domain
|
|
11
|
-
bizplace: Bizplace
|
|
12
|
-
description: String
|
|
13
|
-
errorcode: Int
|
|
14
|
-
message: String
|
|
15
|
-
containerNo: String
|
|
16
|
-
containerSize: String
|
|
17
|
-
container: Boolean
|
|
18
|
-
ownTransport: Boolean
|
|
19
|
-
crossDocking: Boolean
|
|
20
|
-
# releaseGood: ReleaseGood
|
|
21
|
-
importCargo: Boolean
|
|
22
|
-
jobSheetNo: String
|
|
23
|
-
looseItem: Boolean
|
|
24
|
-
ata: String
|
|
25
|
-
eta: String
|
|
26
|
-
etaDate: String
|
|
27
|
-
truckNo: String
|
|
28
|
-
refNo: String
|
|
29
|
-
status: String
|
|
30
|
-
remark: String
|
|
31
|
-
# jobSheet: JobSheet
|
|
32
|
-
orderProducts: [ReplenishmentOrderProduct]
|
|
33
|
-
# orderVass: [OrderVas]
|
|
34
|
-
# collectionOrders: [CollectionOrder]
|
|
35
|
-
# attachment: [Attachment]
|
|
36
|
-
deliveryOrderNo: String
|
|
37
|
-
creator: User
|
|
38
|
-
updater: User
|
|
39
|
-
acceptedBy: User
|
|
40
|
-
createdAt: String
|
|
41
|
-
updatedAt: String
|
|
42
|
-
# supplier: ContactPoint
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
//# 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,sEAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const StockReplenishment = gql`\n type StockReplenishment {\n id: String\n name: String\n domain: Domain\n bizplace: Bizplace\n description: String\n errorcode: Int\n message: String\n containerNo: String\n containerSize: String\n container: Boolean\n ownTransport: Boolean\n crossDocking: Boolean\n # releaseGood: ReleaseGood\n importCargo: Boolean\n jobSheetNo: String\n looseItem: Boolean\n ata: String\n eta: String\n etaDate: String\n truckNo: String\n refNo: String\n status: String\n remark: String\n # jobSheet: JobSheet\n orderProducts: [ReplenishmentOrderProduct]\n # orderVass: [OrderVas]\n # collectionOrders: [CollectionOrder]\n # attachment: [Attachment]\n deliveryOrderNo: String\n creator: User\n updater: User\n acceptedBy: User\n createdAt: String\n updatedAt: String\n # supplier: ContactPoint\n }\n`\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseInventory = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.WarehouseInventory = (0, graphql_tag_1.default) `
|
|
7
|
-
type WarehouseInventory {
|
|
8
|
-
product: Product
|
|
9
|
-
qty: Int
|
|
10
|
-
lockedQty: Int
|
|
11
|
-
remainQty: Int
|
|
12
|
-
bizplace: Bizplace
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
//# 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,sEAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQpC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const WarehouseInventory = gql`\n type WarehouseInventory { \n product: Product\n qty: Int\n lockedQty: Int\n remainQty: Int\n bizplace: Bizplace\n }\n`\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseMarketplaceProductList = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.WarehouseMarketplaceProductList = (0, graphql_tag_1.default) `
|
|
7
|
-
type WarehouseMarketplaceProductList {
|
|
8
|
-
items: [WarehouseMarketplaceProduct]
|
|
9
|
-
total: Int
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
//# 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,sEAA6B;AAEhB,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;CAKjD,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const WarehouseMarketplaceProductList = gql`\n type WarehouseMarketplaceProductList {\n items: [WarehouseMarketplaceProduct]\n total: Int\n }\n`"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseMarketplaceProduct = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.WarehouseMarketplaceProduct = (0, graphql_tag_1.default) `
|
|
7
|
-
type WarehouseMarketplaceProduct {
|
|
8
|
-
seq: Int
|
|
9
|
-
id: String
|
|
10
|
-
domain: Domain
|
|
11
|
-
sku: String
|
|
12
|
-
name: String
|
|
13
|
-
description: String
|
|
14
|
-
marketplaceProduct: [MarketplaceProduct]
|
|
15
|
-
warehouseInventory: [WarehouseInventory]
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
//# 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,sEAA6B;AAEhB,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;CAW7C,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const WarehouseMarketplaceProduct = gql`\n type WarehouseMarketplaceProduct {\n seq: Int\n id: String\n domain: Domain\n sku: String\n name: String\n description: String\n marketplaceProduct: [MarketplaceProduct]\n warehouseInventory: [WarehouseInventory]\n }\n`\n"]}
|
|
@@ -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","sourcesContent":["import { ShippingProviderList } from './shipping-provider-list'\nimport { ShippingProvider } from './shipping-provider'\n\nexport const Query = `\n shippingProviders(storeId: String!, statuses: [String]): ShippingProviderList @transaction\n`\n\nexport const Types = [ShippingProviderList, ShippingProvider]\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShippingProviderList = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.ShippingProviderList = (0, graphql_tag_1.default) `
|
|
7
|
-
type ShippingProviderList {
|
|
8
|
-
items: [ShippingProvider]
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
//# 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,sEAA6B;AAEhB,QAAA,oBAAoB,GAAG,IAAA,qBAAG,EAAA;;;;CAItC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const ShippingProviderList = gql`\n type ShippingProviderList {\n items: [ShippingProvider]\n }\n`\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShippingProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.ShippingProvider = (0, graphql_tag_1.default) `
|
|
7
|
-
type ShippingProvider {
|
|
8
|
-
shippingProvider: String
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
//# 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,sEAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;CAIlC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const ShippingProvider = gql`\n type ShippingProvider {\n shippingProvider: String\n }\n`\n"]}
|
|
@@ -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","sourcesContent":["import { WarehouseProduct } from './warehouse-product'\n\nexport const Mutation = /* GraphQL */ `\n autoLinkWarehouseMarketplaceProductVariations(\n marketplaceStoreIds: [String]!\n isCheckedSku: Boolean!\n ): Boolean @transaction `\n\nexport const Types = [WarehouseProduct]\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseProduct = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
exports.WarehouseProduct = (0, graphql_tag_1.default) `
|
|
7
|
-
input WarehouseProduct {
|
|
8
|
-
id: String
|
|
9
|
-
sku: String
|
|
10
|
-
name: String
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
//# 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,sEAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;CAMlC,CAAA","sourcesContent":["import gql from 'graphql-tag'\n\nexport const WarehouseProduct = gql`\n input WarehouseProduct {\n id: String\n sku: String\n name: String\n }\n`\n"]}
|
package/dist-server/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./entities"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./graphql"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./migrations"), exports);
|
|
7
|
-
require("./routes");
|
|
8
|
-
//# 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,qDAA0B;AAC1B,oDAAyB;AACzB,uDAA4B;AAE5B,oBAAiB","sourcesContent":["export * from './entities'\nexport * from './graphql'\nexport * from './migrations'\n\nimport './routes'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,uCAAuC;AACvC,IAAI","sourcesContent":["// export function initMiddlewares(app) {\n// /* can add middlewares into app */\n// }\n"]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedCommonCode1599732967233 = void 0;
|
|
4
|
-
const code_base_1 = require("@things-factory/code-base");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const codes = [
|
|
7
|
-
{
|
|
8
|
-
name: 'COUNTRY_CODES',
|
|
9
|
-
description: 'country code',
|
|
10
|
-
details: [
|
|
11
|
-
{ name: 'my', description: 'Malaysia' },
|
|
12
|
-
{ name: 'sg', description: 'Singapore' },
|
|
13
|
-
{ name: 'th', description: 'Thailand' },
|
|
14
|
-
{ name: 'vn', description: 'Vietnam' },
|
|
15
|
-
{ name: 'id', description: 'Indonesia' },
|
|
16
|
-
{ name: 'ph', description: 'Philippines' }
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'ECOMMERCE_PLATFORM',
|
|
21
|
-
description: 'ecommerce platform',
|
|
22
|
-
details: [
|
|
23
|
-
{ name: 'lazada', description: 'Lazada' },
|
|
24
|
-
{ name: 'shopee', description: 'Shopee' },
|
|
25
|
-
{ name: 'shopify', description: 'Shopify' },
|
|
26
|
-
{ name: 'zalora', description: 'Zalora' }
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
class SeedCommonCode1599732967233 {
|
|
31
|
-
async up(queryRunner) {
|
|
32
|
-
const codeRepo = (0, shell_1.getRepository)(code_base_1.CommonCode);
|
|
33
|
-
const codeDetailRepo = (0, shell_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
34
|
-
const domain = await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({
|
|
35
|
-
subdomain: 'maybank'
|
|
36
|
-
});
|
|
37
|
-
return await Promise.all(codes.map(async (code) => {
|
|
38
|
-
const commonCode = await codeRepo.save(Object.assign(Object.assign({}, code), { domain }));
|
|
39
|
-
await codeDetailRepo.save(commonCode.details.map((detail, idx) => {
|
|
40
|
-
return Object.assign(Object.assign({}, detail), { commonCode,
|
|
41
|
-
domain, rank: (idx + 1) * 10 });
|
|
42
|
-
}));
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
async down(queryRunner) {
|
|
46
|
-
const codeRepo = (0, shell_1.getRepository)(code_base_1.CommonCode);
|
|
47
|
-
const codeDetailRepo = (0, shell_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.SeedCommonCode1599732967233 = SeedCommonCode1599732967233;
|
|
51
|
-
//# sourceMappingURL=1599732967233-SeedCommonCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1599732967233-SeedCommonCode.js","sourceRoot":"","sources":["../../server/migrations/1599732967233-SeedCommonCode.ts"],"names":[],"mappings":";;;AAEA,yDAAwE;AACxE,iDAA6D;AAE7D,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,qBAAa,EAAC,sBAAU,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,IAAA,qBAAa,EAAC,4BAAgB,CAAC,CAAA;QACtD,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAa,EAAC,cAAM,CAAC,CAAC,SAAS,CAAC;YACnD,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,qBAAa,EAAC,sBAAU,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,IAAA,qBAAa,EAAC,4BAAgB,CAAC,CAAA;IACxD,CAAC;CACF;AAjCD,kEAiCC","sourcesContent":["import { MigrationInterface, QueryRunner } from 'typeorm'\n\nimport { CommonCode, CommonCodeDetail } from '@things-factory/code-base'\nimport { Domain, getRepository } from '@things-factory/shell'\n\nconst codes = [\n {\n name: 'COUNTRY_CODES',\n description: 'country code',\n details: [\n { name: 'my', description: 'Malaysia' },\n { name: 'sg', description: 'Singapore' },\n { name: 'th', description: 'Thailand' },\n { name: 'vn', description: 'Vietnam' },\n { name: 'id', description: 'Indonesia' },\n { name: 'ph', description: 'Philippines' }\n ]\n },\n {\n name: 'ECOMMERCE_PLATFORM',\n description: 'ecommerce platform',\n details: [\n { name: 'lazada', description: 'Lazada' },\n { name: 'shopee', description: 'Shopee' },\n { name: 'shopify', description: 'Shopify' },\n { name: 'zalora', description: 'Zalora' }\n ]\n }\n]\n\nexport class SeedCommonCode1599732967233 implements MigrationInterface {\n public async up(queryRunner: QueryRunner): Promise<any> {\n const codeRepo = getRepository(CommonCode)\n const codeDetailRepo = getRepository(CommonCodeDetail)\n const domain = await getRepository(Domain).findOneBy({\n subdomain: 'maybank'\n })\n\n return await Promise.all(\n codes.map(async code => {\n const commonCode = await codeRepo.save({\n ...code,\n domain\n })\n\n await codeDetailRepo.save(\n commonCode.details.map((detail, idx) => {\n return {\n ...detail,\n commonCode,\n domain,\n rank: (idx + 1) * 10\n }\n })\n )\n })\n )\n }\n\n public async down(queryRunner: QueryRunner): Promise<any> {\n const codeRepo = getRepository(CommonCode)\n const codeDetailRepo = getRepository(CommonCodeDetail)\n }\n}\n"]}
|
|
@@ -1,50 +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 ADMIN_USER = {
|
|
7
|
-
name: 'Admin',
|
|
8
|
-
email: 'admin@hatiolab.com',
|
|
9
|
-
password: 'admin',
|
|
10
|
-
userType: 'user',
|
|
11
|
-
status: auth_base_1.UserStatus.ACTIVATED
|
|
12
|
-
};
|
|
13
|
-
class SeedUser1608009991075 {
|
|
14
|
-
async up(queryRunner) {
|
|
15
|
-
const userRepository = (0, shell_1.getRepository)(auth_base_1.User);
|
|
16
|
-
const domainRepository = (0, shell_1.getRepository)(shell_1.Domain);
|
|
17
|
-
let adminUser = await userRepository.findOne({ where: { name: ADMIN_USER.name }, relations: ['domains'] });
|
|
18
|
-
let systemDomain = await domainRepository.findOne({ where: { systemFlag: true } });
|
|
19
|
-
if (!adminUser) {
|
|
20
|
-
const salt = auth_base_1.User.generateSalt();
|
|
21
|
-
adminUser = await userRepository.save(Object.assign(Object.assign({}, ADMIN_USER), { salt, password: auth_base_1.User.encode(ADMIN_USER.password, salt) }));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
adminUser.userType = 'user';
|
|
25
|
-
await userRepository.save(adminUser);
|
|
26
|
-
}
|
|
27
|
-
if (systemDomain) {
|
|
28
|
-
systemDomain.extType = 'company';
|
|
29
|
-
await domainRepository.save(systemDomain);
|
|
30
|
-
}
|
|
31
|
-
const companyInput = {
|
|
32
|
-
name: systemDomain.name,
|
|
33
|
-
description: systemDomain.description || null,
|
|
34
|
-
address: '',
|
|
35
|
-
postalCode: '',
|
|
36
|
-
countryCode: '',
|
|
37
|
-
brn: ''
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
async down(queryRunner) {
|
|
41
|
-
const userRepository = (0, shell_1.getRepository)(auth_base_1.User);
|
|
42
|
-
const domainRepository = (0, shell_1.getRepository)(shell_1.Domain);
|
|
43
|
-
const user = await userRepository.findOne({ where: { name: ADMIN_USER.name } });
|
|
44
|
-
await userRepository.delete({ id: user.id });
|
|
45
|
-
const systemDomain = await domainRepository.findOne({ where: { systemFlag: true } });
|
|
46
|
-
await domainRepository.delete({ id: systemDomain.id });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.SeedUser1608009991075 = SeedUser1608009991075;
|
|
50
|
-
//# sourceMappingURL=1608009991075-SeedUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1608009991075-SeedUser.js","sourceRoot":"","sources":["../../server/migrations/1608009991075-SeedUser.ts"],"names":[],"mappings":";;;AAEA,yDAA4D;AAE5D,iDAA6D;AAE7D,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,qBAAa,EAAC,gBAAI,CAAC,CAAA;QAC5D,MAAM,gBAAgB,GAAuB,IAAA,qBAAa,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;SACD,CAAA;IACV,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,cAAc,GAAG,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAA;QAC1C,MAAM,gBAAgB,GAAG,IAAA,qBAAa,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,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QAE5C,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,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC,CAAA;IACxD,CAAC;CACF;AA9CD,sDA8CC","sourcesContent":["import { MigrationInterface, QueryRunner, Repository } from 'typeorm'\n\nimport { User, UserStatus } from '@things-factory/auth-base'\nimport { Company } from '@things-factory/biz-base'\nimport { Domain, getRepository } from '@things-factory/shell'\n\nconst ADMIN_USER = {\n name: 'Admin',\n email: 'admin@hatiolab.com',\n password: 'admin',\n userType: 'user',\n status: UserStatus.ACTIVATED\n}\nexport class SeedUser1608009991075 implements MigrationInterface {\n public async up(queryRunner: QueryRunner): Promise<any> {\n const userRepository: Repository<User> = getRepository(User)\n const domainRepository: Repository<Domain> = getRepository(Domain)\n\n let adminUser: User = await userRepository.findOne({ where: { name: ADMIN_USER.name }, relations: ['domains'] })\n let systemDomain: Domain = await domainRepository.findOne({ where: { systemFlag: true } })\n\n if (!adminUser) {\n const salt = User.generateSalt()\n\n adminUser = await userRepository.save({\n ...ADMIN_USER,\n salt,\n password: User.encode(ADMIN_USER.password, salt)\n })\n } else {\n adminUser.userType = 'user'\n await userRepository.save(adminUser)\n }\n\n if (systemDomain) {\n systemDomain.extType = 'company'\n await domainRepository.save(systemDomain)\n }\n\n const companyInput: Company = {\n name: systemDomain.name,\n description: systemDomain.description || null,\n address: '',\n postalCode: '',\n countryCode: '',\n brn: ''\n } as any\n }\n\n public async down(queryRunner: QueryRunner): Promise<any> {\n const userRepository = getRepository(User)\n const domainRepository = getRepository(Domain)\n\n const user = await userRepository.findOne({ where: { name: ADMIN_USER.name } })\n await userRepository.delete({ id: user.id })\n\n const systemDomain = await domainRepository.findOne({ where: { systemFlag: true } })\n await domainRepository.delete({ id: systemDomain.id })\n }\n}\n"]}
|
|
@@ -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
|