@things-factory/marketplace-base 6.2.48 → 6.2.50
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/graphql/resolvers/marketplace-order/delete-marketplace-orders.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-order/delete-marketplace-orders.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product/delete-marketplace-products.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-product/delete-marketplace-products.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.js +2 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.js +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.js.map +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.js +1 -1
- package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.js.map +1 -1
- package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishment.js +1 -1
- package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishment.js.map +1 -1
- package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishments.js +1 -1
- package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishments.js.map +1 -1
- package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.js +1 -1
- package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.js.map +1 -1
- package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.js +1 -1
- package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts +3 -1
- package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts +3 -1
- package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts +3 -1
- package/server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts +3 -1
- package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts +3 -1
- package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts +3 -1
- package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts +3 -1
- package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts +1 -1
- package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts +1 -1
- package/server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts +1 -1
- package/server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts +1 -1
- package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts +1 -1
- package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.ts +1 -1
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceOrders = {
|
|
8
8
|
async deleteMarketplaceOrders(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceOrder).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-orders.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAoD;AAEvC,QAAA,uBAAuB,GAAG;IACrC,KAAK,CAAC,uBAAuB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACvE,MAAM,IAAA,qBAAa,EAAC,2BAAgB,CAAC,CAAC,MAAM,CAAC;YAC3C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-orders.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAoD;AAEvC,QAAA,uBAAuB,GAAG;IACrC,KAAK,CAAC,uBAAuB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,2BAAgB,CAAC,CAAC,MAAM,CAAC;YAC3C,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceOrder } from '../../../entities'\n\nexport const deleteMarketplaceOrders = {\n async deleteMarketplaceOrders(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceOrder).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js
CHANGED
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceOrderItems = {
|
|
8
8
|
async deleteMarketplaceOrderItems(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceOrderItem).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-order-items.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAwD;AAE3C,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC3E,MAAM,IAAA,qBAAa,EAAC,+BAAoB,CAAC,CAAC,MAAM,CAAC;YAC/C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-order-items.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAwD;AAE3C,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC3E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,+BAAoB,CAAC,CAAC,MAAM,CAAC;YAC/C,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceOrderItem } from '../../../entities'\n\nexport const deleteMarketplaceOrderItems = {\n async deleteMarketplaceOrderItems(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceOrderItem).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceOrderShippings = {
|
|
8
8
|
async deleteMarketplaceOrderShippings(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceOrderShipping).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-order-shippings.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA4D;AAE/C,QAAA,+BAA+B,GAAG;IAC7C,KAAK,CAAC,+BAA+B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC/E,MAAM,IAAA,qBAAa,EAAC,mCAAwB,CAAC,CAAC,MAAM,CAAC;YACnD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-order-shippings.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA4D;AAE/C,QAAA,+BAA+B,GAAG;IAC7C,KAAK,CAAC,+BAA+B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC/E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,mCAAwB,CAAC,CAAC,MAAM,CAAC;YACnD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceOrderShipping } from '../../../entities'\n\nexport const deleteMarketplaceOrderShippings = {\n async deleteMarketplaceOrderShippings(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceOrderShipping).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceProducts = {
|
|
8
8
|
async deleteMarketplaceProducts(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceProduct).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
package/dist-server/graphql/resolvers/marketplace-product/delete-marketplace-products.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-products.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACzE,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC;YAC7C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-products.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC;YAC7C,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProduct } from '../../../entities'\n\nexport const deleteMarketplaceProducts = {\n async deleteMarketplaceProducts(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceProduct).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceProductAttributes = {
|
|
8
8
|
async deleteMarketplaceProductAttributes(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceProductAttribute).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-product-attributes.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA+D;AAElD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,IAAA,qBAAa,EAAC,sCAA2B,CAAC,CAAC,MAAM,CAAC;YACtD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-product-attributes.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA+D;AAElD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,sCAA2B,CAAC,CAAC,MAAM,CAAC;YACtD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProductAttribute } from '../../../entities'\n\nexport const deleteMarketplaceProductAttributes = {\n async deleteMarketplaceProductAttributes(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceProductAttribute).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceProductCategories = {
|
|
8
8
|
async deleteMarketplaceProductCategories(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceProductCategory).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-product-categories.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA8D;AAEjD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,IAAA,qBAAa,EAAC,qCAA0B,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-product-categories.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA8D;AAEjD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,qCAA0B,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProductCategory } from '../../../entities'\n\nexport const deleteMarketplaceProductCategories = {\n async deleteMarketplaceProductCategories(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceProductCategory).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,8 +6,9 @@ const shell_1 = require("@things-factory/shell");
|
|
|
6
6
|
const entities_1 = require("../../../entities");
|
|
7
7
|
exports.deleteMarketplaceProductVariationsResolver = {
|
|
8
8
|
async deleteMarketplaceProductVariations(_, { names }, context) {
|
|
9
|
+
const { domain } = context.state;
|
|
9
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceProductVariation).delete({
|
|
10
|
-
domain:
|
|
11
|
+
domain: { id: domain.id },
|
|
11
12
|
name: (0, typeorm_1.In)(names)
|
|
12
13
|
});
|
|
13
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-product-variations.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA+D;AAElD,QAAA,0CAA0C,GAAG;IACxD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,IAAA,qBAAa,EAAC,sCAA2B,CAAC,CAAC,MAAM,CAAC;YACtD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-marketplace-product-variations.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA+D;AAElD,QAAA,0CAA0C,GAAG;IACxD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAClF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,IAAA,qBAAa,EAAC,sCAA2B,CAAC,CAAC,MAAM,CAAC;YACtD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProductVariation } from '../../../entities'\n\nexport const deleteMarketplaceProductVariationsResolver = {\n async deleteMarketplaceProductVariations(_: any, { names }, context: ResolverContext) {\n const { domain } = context.state\n\n await getRepository(MarketplaceProductVariation).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n return true\n }\n}\n"]}
|
|
@@ -6,7 +6,7 @@ const entities_1 = require("../../../entities");
|
|
|
6
6
|
exports.deleteMarketplaceProductVariationPrice = {
|
|
7
7
|
async deleteMarketplaceProductVariationPrice(_, { name }, context) {
|
|
8
8
|
const { domain, user } = context.state;
|
|
9
|
-
await (0, shell_1.getRepository)(entities_1.MarketplaceProductVariationPrice).delete({ domain, name });
|
|
9
|
+
await (0, shell_1.getRepository)(entities_1.MarketplaceProductVariationPrice).delete({ domain: { id: domain.id }, name });
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-product-variation-price.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAAoE;AAEvD,QAAA,sCAAsC,GAAG;IACpD,KAAK,CAAC,sCAAsC,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QACrF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,2CAAgC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"delete-marketplace-product-variation-price.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAAoE;AAEvD,QAAA,sCAAsC,GAAG;IACpD,KAAK,CAAC,sCAAsC,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QACrF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,2CAAgC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;QAEjG,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProductVariationPrice } from '../../../entities'\n\nexport const deleteMarketplaceProductVariationPrice = {\n async deleteMarketplaceProductVariationPrice(_: any, { name }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(MarketplaceProductVariationPrice).delete({ domain: { id: domain.id }, name })\n\n return true\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ exports.deleteMarketplaceProductVariationPrices = {
|
|
|
8
8
|
async deleteMarketplaceProductVariationPrices(_, { names }, context) {
|
|
9
9
|
const { domain, user } = context.state;
|
|
10
10
|
await (0, shell_1.getRepository)(entities_1.MarketplaceProductVariationPrice).delete({
|
|
11
|
-
domain,
|
|
11
|
+
domain: { id: domain.id },
|
|
12
12
|
name: (0, typeorm_1.In)(names)
|
|
13
13
|
});
|
|
14
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-marketplace-product-variation-prices.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAoE;AAEvD,QAAA,uCAAuC,GAAG;IACrD,KAAK,CAAC,uCAAuC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACvF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,2CAAgC,CAAC,CAAC,MAAM,CAAC;YAC3D,MAAM;
|
|
1
|
+
{"version":3,"file":"delete-marketplace-product-variation-prices.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAoE;AAEvD,QAAA,uCAAuC,GAAG;IACrD,KAAK,CAAC,uCAAuC,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACvF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,2CAAgC,CAAC,CAAC,MAAM,CAAC;YAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { MarketplaceProductVariationPrice } from '../../../entities'\n\nexport const deleteMarketplaceProductVariationPrices = {\n async deleteMarketplaceProductVariationPrices(_: any, { names }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(MarketplaceProductVariationPrice).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -6,7 +6,7 @@ const entities_1 = require("../../../entities");
|
|
|
6
6
|
exports.deleteStoreReplenishment = {
|
|
7
7
|
async deleteStoreReplenishment(_, { name }, context) {
|
|
8
8
|
const { domain, user } = context.state;
|
|
9
|
-
await (0, shell_1.getRepository)(entities_1.StoreReplenishment).delete({ domain, name });
|
|
9
|
+
await (0, shell_1.getRepository)(entities_1.StoreReplenishment).delete({ domain: { id: domain.id }, name });
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-store-replenishment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,wBAAwB,GAAG;IACtC,KAAK,CAAC,wBAAwB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"delete-store-replenishment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,wBAAwB,GAAG;IACtC,KAAK,CAAC,wBAAwB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;QAEnF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { getRepository } from '@things-factory/shell'\n\nimport { StoreReplenishment } from '../../../entities'\n\nexport const deleteStoreReplenishment = {\n async deleteStoreReplenishment(_: any, { name }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(StoreReplenishment).delete({ domain: { id: domain.id }, name })\n\n return true\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ exports.deleteStoreReplenishments = {
|
|
|
8
8
|
async deleteStoreReplenishments(_, { names }, context) {
|
|
9
9
|
const { domain, user } = context.state;
|
|
10
10
|
await (0, shell_1.getRepository)(entities_1.StoreReplenishment).delete({
|
|
11
|
-
domain,
|
|
11
|
+
domain: { id: domain.id },
|
|
12
12
|
name: (0, typeorm_1.In)(names)
|
|
13
13
|
});
|
|
14
14
|
return true;
|
package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishments.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-store-replenishments.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC;YAC7C,MAAM;
|
|
1
|
+
{"version":3,"file":"delete-store-replenishments.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAAsD;AAEzC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,6BAAkB,CAAC,CAAC,MAAM,CAAC;YAC7C,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { StoreReplenishment } from '../../../entities'\n\nexport const deleteStoreReplenishments = {\n async deleteStoreReplenishments(_: any, { names }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(StoreReplenishment).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n\n return true\n }\n}\n"]}
|
package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.js
CHANGED
|
@@ -6,7 +6,7 @@ const entities_1 = require("../../../entities");
|
|
|
6
6
|
exports.deleteStoreReplenishmentItem = {
|
|
7
7
|
async deleteStoreReplenishmentItem(_, { name }, context) {
|
|
8
8
|
const { domain, user } = context.state;
|
|
9
|
-
await (0, shell_1.getRepository)(entities_1.StoreReplenishmentItem).delete({ domain, name });
|
|
9
|
+
await (0, shell_1.getRepository)(entities_1.StoreReplenishmentItem).delete({ domain: { id: domain.id }, name });
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-store-replenishment-item.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAA0D;AAE7C,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QAC3E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,iCAAsB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"delete-store-replenishment-item.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,gDAA0D;AAE7C,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAwB;QAC3E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,iCAAsB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;QAEvF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { getRepository } from '@things-factory/shell'\n\nimport { StoreReplenishmentItem } from '../../../entities'\n\nexport const deleteStoreReplenishmentItem = {\n async deleteStoreReplenishmentItem(_: any, { name }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(StoreReplenishmentItem).delete({ domain: { id: domain.id }, name })\n\n return true\n }\n}\n"]}
|
package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.deleteStoreReplenishmentItems = {
|
|
|
8
8
|
async deleteStoreReplenishmentItems(_, { names }, context) {
|
|
9
9
|
const { domain, user } = context.state;
|
|
10
10
|
await (0, shell_1.getRepository)(entities_1.StoreReplenishmentItem).delete({
|
|
11
|
-
domain,
|
|
11
|
+
domain: { id: domain.id },
|
|
12
12
|
name: (0, typeorm_1.In)(names)
|
|
13
13
|
});
|
|
14
14
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-store-replenishment-items.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA0D;AAE7C,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,6BAA6B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC7E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,iCAAsB,CAAC,CAAC,MAAM,CAAC;YACjD,MAAM;
|
|
1
|
+
{"version":3,"file":"delete-store-replenishment-items.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAE5B,iDAAqD;AAErD,gDAA0D;AAE7C,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,6BAA6B,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAwB;QAC7E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,IAAA,qBAAa,EAAC,iCAAsB,CAAC,CAAC,MAAM,CAAC;YACjD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YACzB,IAAI,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;SAChB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA","sourcesContent":["import { In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\n\nimport { StoreReplenishmentItem } from '../../../entities'\n\nexport const deleteStoreReplenishmentItems = {\n async deleteStoreReplenishmentItems(_: any, { names }, context: ResolverContext) {\n const { domain, user } = context.state\n\n await getRepository(StoreReplenishmentItem).delete({\n domain: { id: domain.id },\n name: In(names)\n })\n\n return true\n }\n}\n"]}
|