@things-factory/worksheet-base 4.3.790 → 4.3.792

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.completeUnloadingPartially = exports.completeUnloadingPartiallyResolver = void 0;
4
4
  const integration_accounting_1 = require("@things-factory/integration-accounting");
5
+ const integration_base_1 = require("@things-factory/integration-base");
5
6
  const sales_base_1 = require("@things-factory/sales-base");
6
7
  const controllers_1 = require("../../../../controllers");
7
8
  const pos_1 = require("../../../../controllers/pos");
@@ -12,6 +13,7 @@ exports.completeUnloadingPartiallyResolver = {
12
13
  const arrivalNotice = await tx
13
14
  .getRepository(sales_base_1.ArrivalNotice)
14
15
  .findOne({ where: { name: arrivalNoticeNo, domain }, relations: ['domain', 'bizplace', 'bizplace.domain'] });
16
+ (0, integration_base_1.webhookHandler)(arrivalNotice, arrivalNotice.bizplace, integration_base_1.WebhookEventsEnum.UnloadingPartiallyCompleted);
15
17
  const xilnex = await tx
16
18
  .getRepository(integration_accounting_1.Account)
17
19
  .findOne({
@@ -1 +1 @@
1
- {"version":3,"file":"complete-unloading-partially.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/worksheet/unloading/complete-unloading-partially.ts"],"names":[],"mappings":";;;AAGA,mFAAgE;AAChE,2DAA0D;AAG1D,yDAAsE;AACtE,qDAA8D;AAGjD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,0BAA0B,CAAC,CAAM,EAAE,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,OAAY;QACzF,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAC7F,MAAM,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,CAAC,CAAA;QAEpF,MAAM,aAAa,GAAkB,MAAM,EAAE;aAC1C,aAAa,CAAC,0BAAa,CAAC;aAC5B,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAA;QAE9G,MAAM,MAAM,GAAY,MAAM,EAAE;aAC7B,aAAa,CAAC,gCAAO,CAAC;aACtB,OAAO,CAAC;YACP,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;YACtF,SAAS,EAAE,CAAC,QAAQ,CAAC;SACtB,CAAC,CAAA;QAEJ,IAAI,MAAM,EAAE;YACV,MAAM,UAAU,GAAqB,IAAI,sBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;YAC3E,MAAM,UAAU,CAAC,kCAAkC,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,CAAC,CAAA;SAChG;IACH,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,0BAA0B,CAC9C,EAAiB,EACjB,MAAc,EACd,IAAU,EACV,eAAuB,EACvB,wBAAoD;IAEpD,MAAM,mBAAmB,GAAiC,IAAI,0CAA4B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC5G,MAAM,mBAAmB,CAAC,0BAA0B,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAA;AACjG,CAAC;AATD,gEASC"}
1
+ {"version":3,"file":"complete-unloading-partially.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/worksheet/unloading/complete-unloading-partially.ts"],"names":[],"mappings":";;;AAGA,mFAAgE;AAChE,uEAAoF;AACpF,2DAA0D;AAG1D,yDAAsE;AACtE,qDAA8D;AAGjD,QAAA,kCAAkC,GAAG;IAChD,KAAK,CAAC,0BAA0B,CAAC,CAAM,EAAE,EAAE,eAA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MAAM,mBAAmB,CAAC,0BAA0B,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAA;AACjG,CAAC;AATD,gEASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/worksheet-base",
3
- "version": "4.3.790",
3
+ "version": "4.3.792",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -27,24 +27,24 @@
27
27
  "@things-factory/biz-base": "^4.3.767",
28
28
  "@things-factory/document-template-base": "^4.3.767",
29
29
  "@things-factory/id-rule-base": "^4.3.770",
30
- "@things-factory/integration-accounting": "^4.3.790",
31
- "@things-factory/integration-base": "^4.3.788",
32
- "@things-factory/integration-lmd": "^4.3.790",
33
- "@things-factory/integration-marketplace": "^4.3.790",
34
- "@things-factory/integration-powrup": "^4.3.790",
35
- "@things-factory/integration-sellercraft": "^4.3.790",
36
- "@things-factory/integration-sftp": "^4.3.790",
37
- "@things-factory/marketplace-base": "^4.3.790",
30
+ "@things-factory/integration-accounting": "^4.3.791",
31
+ "@things-factory/integration-base": "^4.3.791",
32
+ "@things-factory/integration-lmd": "^4.3.791",
33
+ "@things-factory/integration-marketplace": "^4.3.791",
34
+ "@things-factory/integration-powrup": "^4.3.791",
35
+ "@things-factory/integration-sellercraft": "^4.3.791",
36
+ "@things-factory/integration-sftp": "^4.3.791",
37
+ "@things-factory/marketplace-base": "^4.3.791",
38
38
  "@things-factory/notification": "^4.3.767",
39
- "@things-factory/sales-base": "^4.3.790",
39
+ "@things-factory/sales-base": "^4.3.792",
40
40
  "@things-factory/setting-base": "^4.3.767",
41
41
  "@things-factory/shell": "^4.3.767",
42
42
  "@things-factory/transport-base": "^4.3.767",
43
- "@things-factory/warehouse-base": "^4.3.790",
43
+ "@things-factory/warehouse-base": "^4.3.791",
44
44
  "@things-factory/worksheet-ui": "^4.3.767",
45
45
  "jspdf": "2.5.1",
46
46
  "puppeteer": "21.0.3",
47
47
  "uuid": "^9.0.0"
48
48
  },
49
- "gitHead": "aac8be0c440911f309204b31d37d0b9fabd0c451"
49
+ "gitHead": "7d9aa6f94e1427df6c6830089c862fd840fedaf3"
50
50
  }
@@ -2,6 +2,7 @@ import { EntityManager } from 'typeorm'
2
2
 
3
3
  import { User } from '@things-factory/auth-base'
4
4
  import { Account } from '@things-factory/integration-accounting'
5
+ import { webhookHandler, WebhookEventsEnum } from '@things-factory/integration-base'
5
6
  import { ArrivalNotice } from '@things-factory/sales-base'
6
7
  import { Domain } from '@things-factory/shell'
7
8
 
@@ -18,6 +19,8 @@ export const completeUnloadingPartiallyResolver = {
18
19
  .getRepository(ArrivalNotice)
19
20
  .findOne({ where: { name: arrivalNoticeNo, domain }, relations: ['domain', 'bizplace', 'bizplace.domain'] })
20
21
 
22
+ webhookHandler(arrivalNotice, arrivalNotice.bizplace, WebhookEventsEnum.UnloadingPartiallyCompleted)
23
+
21
24
  const xilnex: Account = await tx
22
25
  .getRepository(Account)
23
26
  .findOne({