@things-factory/marketplace-base 6.2.49 → 6.2.51

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.
Files changed (41) hide show
  1. package/dist-server/graphql/resolvers/marketplace-order/delete-marketplace-orders.js +2 -1
  2. package/dist-server/graphql/resolvers/marketplace-order/delete-marketplace-orders.js.map +1 -1
  3. package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js +2 -1
  4. package/dist-server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.js.map +1 -1
  5. package/dist-server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.js +2 -1
  6. package/dist-server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.js.map +1 -1
  7. package/dist-server/graphql/resolvers/marketplace-product/delete-marketplace-products.js +2 -1
  8. package/dist-server/graphql/resolvers/marketplace-product/delete-marketplace-products.js.map +1 -1
  9. package/dist-server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.js +2 -1
  10. package/dist-server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.js.map +1 -1
  11. package/dist-server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.js +2 -1
  12. package/dist-server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.js.map +1 -1
  13. package/dist-server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.js +2 -1
  14. package/dist-server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.js.map +1 -1
  15. package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.js +1 -1
  16. package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.js.map +1 -1
  17. package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.js +1 -1
  18. package/dist-server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.js.map +1 -1
  19. package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishment.js +1 -1
  20. package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishment.js.map +1 -1
  21. package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishments.js +1 -1
  22. package/dist-server/graphql/resolvers/store-replenishment/delete-store-replenishments.js.map +1 -1
  23. package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.js +1 -1
  24. package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.js.map +1 -1
  25. package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.js +1 -1
  26. package/dist-server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.js.map +1 -1
  27. package/dist-server/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +6 -6
  29. package/server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts +3 -1
  30. package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts +3 -1
  31. package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts +3 -1
  32. package/server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts +3 -1
  33. package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts +3 -1
  34. package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts +3 -1
  35. package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts +3 -1
  36. package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts +1 -1
  37. package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts +1 -1
  38. package/server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts +1 -1
  39. package/server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts +1 -1
  40. package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts +1 -1
  41. 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: context.state.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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceOrder).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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"]}
@@ -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: context.state.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-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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceOrderItem).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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: context.state.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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceOrderShipping).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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: context.state.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-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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceProduct).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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: context.state.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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceProductAttribute).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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: context.state.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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceProductCategory).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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: context.state.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,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,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 await getRepository(MarketplaceProductVariation).delete({\n domain: context.state.domain,\n name: In(names)\n })\n return true\n }\n}\n"]}
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;QAE9E,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, name })\n\n return true\n }\n}\n"]}
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;YACN,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,\n name: In(names)\n })\n\n return true\n }\n}\n"]}
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;QAEhE,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, name })\n\n return true\n }\n}\n"]}
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;
@@ -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;YACN,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,\n name: In(names)\n })\n\n return true\n }\n}\n"]}
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"]}
@@ -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;QAEpE,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, name })\n\n return true\n }\n}\n"]}
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"]}
@@ -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;YACN,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,\n name: In(names)\n })\n\n return true\n }\n}\n"]}
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"]}