@things-factory/integration-accounting 6.0.1 → 6.0.3

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 (88) hide show
  1. package/dist-server/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +9 -9
  3. package/dist-server/constants/account.js +0 -13
  4. package/dist-server/constants/account.js.map +0 -1
  5. package/dist-server/constants/index.js +0 -18
  6. package/dist-server/constants/index.js.map +0 -1
  7. package/dist-server/controllers/xilnex/apis/goods-received/create-goods-received-note.js +0 -48
  8. package/dist-server/controllers/xilnex/apis/goods-received/create-goods-received-note.js.map +0 -1
  9. package/dist-server/controllers/xilnex/apis/goods-received/index.js +0 -18
  10. package/dist-server/controllers/xilnex/apis/goods-received/index.js.map +0 -1
  11. package/dist-server/controllers/xilnex/apis/index.js +0 -26
  12. package/dist-server/controllers/xilnex/apis/index.js.map +0 -1
  13. package/dist-server/controllers/xilnex/apis/purchase-order/cancel-purchase-order.js +0 -22
  14. package/dist-server/controllers/xilnex/apis/purchase-order/cancel-purchase-order.js.map +0 -1
  15. package/dist-server/controllers/xilnex/apis/purchase-order/create-purchase-receive.js +0 -45
  16. package/dist-server/controllers/xilnex/apis/purchase-order/create-purchase-receive.js.map +0 -1
  17. package/dist-server/controllers/xilnex/apis/purchase-order/get-purchase-order.js +0 -47
  18. package/dist-server/controllers/xilnex/apis/purchase-order/get-purchase-order.js.map +0 -1
  19. package/dist-server/controllers/xilnex/apis/purchase-order/index.js +0 -20
  20. package/dist-server/controllers/xilnex/apis/purchase-order/index.js.map +0 -1
  21. package/dist-server/controllers/xilnex/apis/sales/get-sale.js +0 -18
  22. package/dist-server/controllers/xilnex/apis/sales/get-sale.js.map +0 -1
  23. package/dist-server/controllers/xilnex/apis/sales/index.js +0 -18
  24. package/dist-server/controllers/xilnex/apis/sales/index.js.map +0 -1
  25. package/dist-server/controllers/xilnex/apis/sales-order/create-sales-order.js +0 -78
  26. package/dist-server/controllers/xilnex/apis/sales-order/create-sales-order.js.map +0 -1
  27. package/dist-server/controllers/xilnex/apis/sales-order/index.js +0 -19
  28. package/dist-server/controllers/xilnex/apis/sales-order/index.js.map +0 -1
  29. package/dist-server/controllers/xilnex/apis/sales-order/post-sales-order-to-sales-invoice.js +0 -24
  30. package/dist-server/controllers/xilnex/apis/sales-order/post-sales-order-to-sales-invoice.js.map +0 -1
  31. package/dist-server/controllers/xilnex/apis/sales-return/create-sales-return.js +0 -49
  32. package/dist-server/controllers/xilnex/apis/sales-return/create-sales-return.js.map +0 -1
  33. package/dist-server/controllers/xilnex/apis/sales-return/index.js +0 -18
  34. package/dist-server/controllers/xilnex/apis/sales-return/index.js.map +0 -1
  35. package/dist-server/controllers/xilnex/apis/shipment/create-shipment.js +0 -30
  36. package/dist-server/controllers/xilnex/apis/shipment/create-shipment.js.map +0 -1
  37. package/dist-server/controllers/xilnex/apis/shipment/index.js +0 -18
  38. package/dist-server/controllers/xilnex/apis/shipment/index.js.map +0 -1
  39. package/dist-server/controllers/xilnex/apis/stock-request/get-stock-request.js +0 -51
  40. package/dist-server/controllers/xilnex/apis/stock-request/get-stock-request.js.map +0 -1
  41. package/dist-server/controllers/xilnex/apis/stock-request/index.js +0 -18
  42. package/dist-server/controllers/xilnex/apis/stock-request/index.js.map +0 -1
  43. package/dist-server/controllers/xilnex/apis/stocks/create-stock-adjust-record.js +0 -41
  44. package/dist-server/controllers/xilnex/apis/stocks/create-stock-adjust-record.js.map +0 -1
  45. package/dist-server/controllers/xilnex/apis/stocks/index.js +0 -18
  46. package/dist-server/controllers/xilnex/apis/stocks/index.js.map +0 -1
  47. package/dist-server/controllers/xilnex/apis/transfer-note/create-transfer-note.js +0 -43
  48. package/dist-server/controllers/xilnex/apis/transfer-note/create-transfer-note.js.map +0 -1
  49. package/dist-server/controllers/xilnex/apis/transfer-note/delivery-transfer-note.js +0 -24
  50. package/dist-server/controllers/xilnex/apis/transfer-note/delivery-transfer-note.js.map +0 -1
  51. package/dist-server/controllers/xilnex/apis/transfer-note/get-transfer-note.js +0 -49
  52. package/dist-server/controllers/xilnex/apis/transfer-note/get-transfer-note.js.map +0 -1
  53. package/dist-server/controllers/xilnex/apis/transfer-note/index.js +0 -20
  54. package/dist-server/controllers/xilnex/apis/transfer-note/index.js.map +0 -1
  55. package/dist-server/controllers/xilnex/index.js +0 -34
  56. package/dist-server/controllers/xilnex/index.js.map +0 -1
  57. package/dist-server/controllers/xilnex/platform-action.js +0 -41
  58. package/dist-server/controllers/xilnex/platform-action.js.map +0 -1
  59. package/dist-server/controllers/xilnex/xilnex.js +0 -96
  60. package/dist-server/controllers/xilnex/xilnex.js.map +0 -1
  61. package/dist-server/entities/account-webhook-order.js +0 -76
  62. package/dist-server/entities/account-webhook-order.js.map +0 -1
  63. package/dist-server/graphql/resolvers/account-webhook-order/account-webhook-order.js +0 -15
  64. package/dist-server/graphql/resolvers/account-webhook-order/account-webhook-order.js.map +0 -1
  65. package/dist-server/graphql/resolvers/account-webhook-order/account-webhook-orders.js +0 -14
  66. package/dist-server/graphql/resolvers/account-webhook-order/account-webhook-orders.js.map +0 -1
  67. package/dist-server/graphql/resolvers/account-webhook-order/create-account-webhook-order.js +0 -12
  68. package/dist-server/graphql/resolvers/account-webhook-order/create-account-webhook-order.js.map +0 -1
  69. package/dist-server/graphql/resolvers/account-webhook-order/delete-account-webhook-order.js +0 -16
  70. package/dist-server/graphql/resolvers/account-webhook-order/delete-account-webhook-order.js.map +0 -1
  71. package/dist-server/graphql/resolvers/account-webhook-order/delete-account-webhook-orders.js +0 -19
  72. package/dist-server/graphql/resolvers/account-webhook-order/delete-account-webhook-orders.js.map +0 -1
  73. package/dist-server/graphql/resolvers/account-webhook-order/index.js +0 -13
  74. package/dist-server/graphql/resolvers/account-webhook-order/index.js.map +0 -1
  75. package/dist-server/graphql/resolvers/account-webhook-order/update-account-webhook-order.js +0 -15
  76. package/dist-server/graphql/resolvers/account-webhook-order/update-account-webhook-order.js.map +0 -1
  77. package/dist-server/graphql/resolvers/account-webhook-order/update-multiple-account-webhook-orders.js +0 -30
  78. package/dist-server/graphql/resolvers/account-webhook-order/update-multiple-account-webhook-orders.js.map +0 -1
  79. package/dist-server/graphql/types/account-webhook-order/account-webhook-order-list.js +0 -14
  80. package/dist-server/graphql/types/account-webhook-order/account-webhook-order-list.js.map +0 -1
  81. package/dist-server/graphql/types/account-webhook-order/account-webhook-order-patch.js +0 -18
  82. package/dist-server/graphql/types/account-webhook-order/account-webhook-order-patch.js.map +0 -1
  83. package/dist-server/graphql/types/account-webhook-order/account-webhook-order.js +0 -22
  84. package/dist-server/graphql/types/account-webhook-order/account-webhook-order.js.map +0 -1
  85. package/dist-server/graphql/types/account-webhook-order/index.js +0 -35
  86. package/dist-server/graphql/types/account-webhook-order/index.js.map +0 -1
  87. package/dist-server/graphql/types/account-webhook-order/new-account-webhook-order.js +0 -16
  88. package/dist-server/graphql/types/account-webhook-order/new-account-webhook-order.js.map +0 -1
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accountWebhookOrderResolver = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const entities_1 = require("../../../entities");
6
- exports.accountWebhookOrderResolver = {
7
- async accountWebhookOrder(_, { id }, context) {
8
- const repository = (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder);
9
- return await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).findOne({
10
- where: { domain: context.state.domain, id },
11
- relations: ['domain', 'creator', 'updater']
12
- });
13
- }
14
- };
15
- //# sourceMappingURL=account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/account-webhook-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,gDAAuD;AAE1C,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,mBAAmB,CAAC,CAAM,EAAE,EAAE,EAAE,EAAE,EAAE,OAAY;QACpD,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAA;QAErD,OAAO,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,OAAO,CAAC;YACtD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE;YAC3C,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;SAC5C,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accountWebhookOrdersResolver = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const shell_1 = require("@things-factory/shell");
6
- const entities_1 = require("../../../entities");
7
- exports.accountWebhookOrdersResolver = {
8
- async accountWebhookOrders(_, params, context) {
9
- const convertedParams = (0, shell_1.convertListParams)(params, context.state.domain.id);
10
- const [items, total] = await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).findAndCount(Object.assign(Object.assign({}, convertedParams), { relations: ['domain', 'creator', 'updater'] }));
11
- return { items, total };
12
- }
13
- };
14
- //# sourceMappingURL=account-webhook-orders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-webhook-orders.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/account-webhook-orders.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,iDAAoE;AAEpE,gDAAuD;AAE1C,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,oBAAoB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAChE,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAC1E,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,YAAY,iCACvE,eAAe,KAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,IAC3C,CAAA;QACF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;CACF,CAAA"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createAccountWebhookOrder = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const controllers_1 = require("../../../controllers");
6
- const entities_1 = require("../../../entities");
7
- exports.createAccountWebhookOrder = {
8
- async createAccountWebhookOrder(_, { account }, context) {
9
- return await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).save(Object.assign(Object.assign({ status: controllers_1.ACCOUNTING_STATUS.INACTIVE }, account), { domain: context.state.domain, creator: context.state.user, updater: context.state.user }));
10
- }
11
- };
12
- //# sourceMappingURL=create-account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/create-account-webhook-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,sDAAwD;AACxD,gDAAuD;AAE1C,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QAC/D,OAAO,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,IAAI,+BAClD,MAAM,EAAE,+BAAiB,CAAC,QAAQ,IAC/B,OAAO,KACV,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteAccountWebhookOrder = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const controllers_1 = require("../../../controllers");
6
- const entities_1 = require("../../../entities");
7
- exports.deleteAccountWebhookOrder = {
8
- async deleteAccountWebhookOrder(_, { id }, context) {
9
- const foundAccountWebhookOrder = await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).findOne({
10
- where: { domain: context.state.domain, id }
11
- });
12
- await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).save(Object.assign(Object.assign({}, foundAccountWebhookOrder), { status: controllers_1.ACCOUNTING_STATUS.TERMINATED, updater: context.state.user }));
13
- return true;
14
- }
15
- };
16
- //# sourceMappingURL=delete-account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/delete-account-webhook-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,sDAAwD;AACxD,gDAAuD;AAE1C,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,EAAE,EAAE,EAAE,OAAY;QAC1D,MAAM,wBAAwB,GAAwB,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,OAAO,CAAC;YACrG,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE;SAC5C,CAAC,CAAA;QAEF,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,IAAI,iCACxC,wBAAwB,KAC3B,MAAM,EAAE,+BAAiB,CAAC,UAAU,EACpC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteAccountWebhookOrders = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const controllers_1 = require("../../../controllers");
6
- const entities_1 = require("../../../entities");
7
- exports.deleteAccountWebhookOrders = {
8
- async deleteAccountWebhookOrders(_, { ids }, context) {
9
- let foundAccountWebhookOrders = await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).find({
10
- where: { domain: context.state.domain, id: (0, typeorm_1.In)(ids) }
11
- });
12
- const updatedAccountWebhookOrder = foundAccountWebhookOrders.map((accountWebhookOrder) => {
13
- return Object.assign(Object.assign({}, accountWebhookOrder), { status: controllers_1.ACCOUNTING_STATUS.TERMINATED, updater: context.state.user });
14
- });
15
- await (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder).save(updatedAccountWebhookOrder);
16
- return true;
17
- }
18
- };
19
- //# sourceMappingURL=delete-account-webhook-orders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-account-webhook-orders.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/delete-account-webhook-orders.ts"],"names":[],"mappings":";;;AAAA,qCAA2C;AAE3C,sDAAwD;AACxD,gDAAuD;AAE1C,QAAA,0BAA0B,GAAG;IACxC,KAAK,CAAC,0BAA0B,CAAC,CAAM,EAAE,EAAE,GAAG,EAAE,EAAE,OAAY;QAC5D,IAAI,yBAAyB,GAA0B,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,IAAI,CAAC;YACnG,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAA,YAAE,EAAC,GAAG,CAAC,EAAE;SACrD,CAAC,CAAA;QAEF,MAAM,0BAA0B,GAAG,yBAAyB,CAAC,GAAG,CAAC,CAAC,mBAAwC,EAAE,EAAE;YAC5G,uCACK,mBAAmB,KACtB,MAAM,EAAE,+BAAiB,CAAC,UAAU,EACpC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC5B;QACH,CAAC,CAAC,CAAA;QAEF,MAAM,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAA;QACzE,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mutation = exports.Query = void 0;
4
- const account_webhook_order_1 = require("./account-webhook-order");
5
- const account_webhook_orders_1 = require("./account-webhook-orders");
6
- const create_account_webhook_order_1 = require("./create-account-webhook-order");
7
- const delete_account_webhook_order_1 = require("./delete-account-webhook-order");
8
- const delete_account_webhook_orders_1 = require("./delete-account-webhook-orders");
9
- const update_account_webhook_order_1 = require("./update-account-webhook-order");
10
- const update_multiple_account_webhook_orders_1 = require("./update-multiple-account-webhook-orders");
11
- exports.Query = Object.assign(Object.assign({}, account_webhook_orders_1.accountWebhookOrdersResolver), account_webhook_order_1.accountWebhookOrderResolver);
12
- exports.Mutation = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, update_account_webhook_order_1.updateAccountWebhookOrder), update_multiple_account_webhook_orders_1.updateMultipleAccountWebhookOrders), create_account_webhook_order_1.createAccountWebhookOrder), delete_account_webhook_order_1.deleteAccountWebhookOrder), delete_account_webhook_orders_1.deleteAccountWebhookOrders);
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/index.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,qEAAuE;AACvE,iFAA0E;AAC1E,iFAA0E;AAC1E,mFAA4E;AAC5E,iFAA0E;AAC1E,qGAA6F;AAEhF,QAAA,KAAK,mCACb,qDAA4B,GAC5B,mDAA2B,EAC/B;AAEY,QAAA,QAAQ,6EAChB,wDAAyB,GACzB,2EAAkC,GAClC,wDAAyB,GACzB,wDAAyB,GACzB,0DAA0B,EAC9B"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateAccountWebhookOrder = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const entities_1 = require("../../../entities");
6
- exports.updateAccountWebhookOrder = {
7
- async updateAccountWebhookOrder(_, { name, patch }, context) {
8
- const repository = (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder);
9
- const accountWebhookOrder = await repository.findOne({
10
- where: { domain: context.state.domain, name }
11
- });
12
- return await repository.save(Object.assign(Object.assign(Object.assign({}, accountWebhookOrder), patch), { updater: context.state.user }));
13
- }
14
- };
15
- //# sourceMappingURL=update-account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/update-account-webhook-order.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,gDAAuD;AAE1C,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAY;QACnE,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAA;QACrD,MAAM,mBAAmB,GAAQ,MAAM,UAAU,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;SAC9C,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,mBAAmB,GACnB,KAAK,KACR,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateMultipleAccountWebhookOrders = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const entities_1 = require("../../../entities");
6
- exports.updateMultipleAccountWebhookOrders = {
7
- async updateMultipleAccountWebhookOrders(_, { patches }, context) {
8
- let results = [];
9
- const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
10
- const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
11
- const accountWebhookOrderRepo = (0, typeorm_1.getRepository)(entities_1.AccountWebhookOrder);
12
- if (_createRecords.length > 0) {
13
- for (let i = 0; i < _createRecords.length; i++) {
14
- const newRecord = _createRecords[i];
15
- const result = await accountWebhookOrderRepo.save(Object.assign(Object.assign({}, newRecord), { domain: context.state.domain, creator: context.state.user, updater: context.state.user }));
16
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
17
- }
18
- }
19
- if (_updateRecords.length > 0) {
20
- for (let i = 0; i < _updateRecords.length; i++) {
21
- const newRecord = _updateRecords[i];
22
- const accountWebhookOrder = await accountWebhookOrderRepo.findOne(newRecord.id);
23
- const result = await accountWebhookOrderRepo.save(Object.assign(Object.assign(Object.assign({}, accountWebhookOrder), newRecord), { updater: context.state.user }));
24
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
25
- }
26
- }
27
- return results;
28
- }
29
- };
30
- //# sourceMappingURL=update-multiple-account-webhook-orders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-multiple-account-webhook-orders.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/account-webhook-order/update-multiple-account-webhook-orders.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,gDAAuD;AAE1C,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,kCAAkC,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QACxE,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,uBAAuB,GAAG,IAAA,uBAAa,EAAC,8BAAmB,CAAC,CAAA;QAElE,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;YAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;gBAEnC,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,IAAI,iCAC5C,SAAS,KACZ,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;gBAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;aACzC;SACF;QAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;YAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;gBACnC,MAAM,mBAAmB,GAAwB,MAAM,uBAAuB,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;gBAEpG,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,IAAI,+CAC5C,mBAAmB,GACnB,SAAS,KACZ,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;gBAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;aACzC;SACF;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAA"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AccountWebhookOrderList = void 0;
7
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
- exports.AccountWebhookOrderList = (0, graphql_tag_1.default) `
9
- type AccountWebhookOrderList {
10
- items: [AccountWebhookOrder]
11
- total: Int
12
- }
13
- `;
14
- //# sourceMappingURL=account-webhook-order-list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-webhook-order-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/account-webhook-order/account-webhook-order-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKzC,CAAA"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AccountWebhookOrderPatch = void 0;
7
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
- exports.AccountWebhookOrderPatch = (0, graphql_tag_1.default) `
9
- input AccountWebhookOrderPatch {
10
- id: String
11
- name: String
12
- platform: String
13
- request: String
14
- status: String
15
- cuFlag: String
16
- }
17
- `;
18
- //# sourceMappingURL=account-webhook-order-patch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-webhook-order-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/account-webhook-order/account-webhook-order-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,wBAAwB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS1C,CAAA"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AccountWebhookOrder = void 0;
7
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
- exports.AccountWebhookOrder = (0, graphql_tag_1.default) `
9
- type AccountWebhookOrder {
10
- id: String
11
- name: String
12
- domain: Domain
13
- platform: String
14
- request: String
15
- status: String
16
- updater: User
17
- creator: User
18
- updatedAt: String
19
- createdAt: String
20
- }
21
- `;
22
- //# sourceMappingURL=account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/types/account-webhook-order/account-webhook-order.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAarC,CAAA"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Types = exports.Query = exports.Mutation = void 0;
4
- const account_webhook_order_1 = require("./account-webhook-order");
5
- const account_webhook_order_list_1 = require("./account-webhook-order-list");
6
- const account_webhook_order_patch_1 = require("./account-webhook-order-patch");
7
- const new_account_webhook_order_1 = require("./new-account-webhook-order");
8
- exports.Mutation = `
9
- createAccountWebhookOrder (
10
- accountWebhookOrder: NewAccountWebhookOrder!
11
- ): AccountWebhookOrder
12
-
13
- updateAccountWebhookOrder (
14
- id: String!
15
- patch: AccountWebhookOrderPatch!
16
- ): AccountWebhookOrder
17
-
18
- updateMultipleAccountWebhookOrders (
19
- patches: [AccountWebhookOrderPatch]!
20
- ): [AccountWebhookOrder]
21
-
22
- deleteAccountWebhookOrder (
23
- id: String!
24
- ): Boolean
25
-
26
- deleteAccountWebhookOrders (
27
- ids: [String]!
28
- ): Boolean
29
- `;
30
- exports.Query = `
31
- accountWebhookOrders(filters: [Filter], pagination: Pagination, sortings: [Sorting]): AccountWebhookOrderList
32
- accountWebhookOrder(id: String!): AccountWebhookOrder
33
- `;
34
- exports.Types = [account_webhook_order_1.AccountWebhookOrder, new_account_webhook_order_1.NewAccountWebhookOrder, account_webhook_order_patch_1.AccountWebhookOrderPatch, account_webhook_order_list_1.AccountWebhookOrderList];
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/account-webhook-order/index.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAC7D,6EAAsE;AACtE,+EAAwE;AACxE,2EAAoE;AAEvD,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBvB,CAAA;AAEY,QAAA,KAAK,GAAG;;;CAGpB,CAAA;AAEY,QAAA,KAAK,GAAG,CAAC,2CAAmB,EAAE,kDAAsB,EAAE,sDAAwB,EAAE,oDAAuB,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.NewAccountWebhookOrder = void 0;
7
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
- exports.NewAccountWebhookOrder = (0, graphql_tag_1.default) `
9
- input NewAccountWebhookOrder {
10
- name: String!
11
- platform: String!
12
- request: String
13
- status: String
14
- }
15
- `;
16
- //# sourceMappingURL=new-account-webhook-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-account-webhook-order.js","sourceRoot":"","sources":["../../../../server/graphql/types/account-webhook-order/new-account-webhook-order.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOxC,CAAA"}