awing-library 2.1.2-dev.521 → 2.1.2-dev.522

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.
@@ -9,7 +9,7 @@ var __webpack_modules__ = {
9
9
  "AWING/DataInput": function(module) {
10
10
  module.exports = __WEBPACK_EXTERNAL_MODULE__DataInput_index_js_c7933a4f__;
11
11
  },
12
- "AWING/helper": function(module) {
12
+ "../helper": function(module) {
13
13
  module.exports = __WEBPACK_EXTERNAL_MODULE__helper_js_663c9e82__;
14
14
  }
15
15
  };
@@ -92,9 +92,9 @@ jest.mock('@mui/material', ()=>({
92
92
  })
93
93
  }));
94
94
  const mockInputFactory = __webpack_require__("AWING/DataInput")["default"];
95
- const mockCalculateValue = __webpack_require__("AWING/helper").calculateValue;
96
- const mockConvertFormulaToBinaryTree = __webpack_require__("AWING/helper").convertFormulaToBinaryTree;
97
- const mockReplaceFieldsValue = __webpack_require__("AWING/helper").replaceFieldsValue;
95
+ const mockCalculateValue = __webpack_require__("../helper").calculateValue;
96
+ const mockConvertFormulaToBinaryTree = __webpack_require__("../helper").convertFormulaToBinaryTree;
97
+ const mockReplaceFieldsValue = __webpack_require__("../helper").replaceFieldsValue;
98
98
  describe('DataForm Component', ()=>{
99
99
  const mockFields = [
100
100
  {
@@ -10,6 +10,7 @@
10
10
  * const validInt = generateValidGraphQLInt();
11
11
  * // Trả về một số như 1234567890 hợp lệ cho GraphQL Int
12
12
  */
13
+ import { SagaTransaction } from '../Commons/Types';
13
14
  import { OutputFieldPermission } from '../Features/NOTIFICATION/types';
14
15
  export type FieldCheckPermissions = {
15
16
  [key: string]: boolean | FieldCheckPermissions;
@@ -23,5 +24,5 @@ export declare function generateValidGraphQLInt(): number;
23
24
  export declare const parseFieldPermissions: (outputFieldPermission: OutputFieldPermission, enumPermission?: number) => FieldCheckPermissions;
24
25
  export declare const bufferToString: (buffer: ArrayBuffer) => string;
25
26
  export declare const tryParseJSON: <T = any>(jsonString: string) => T | null;
26
- export declare const handleSagaMessage: (res: Record<string, any>) => Promise<void>;
27
+ export declare const handleSagaMessage: (res: Record<string, any>) => Promise<SagaTransaction>;
27
28
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/Utils/helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,MAAM,MAAM,qBAAqB,GAAG;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,qBAAqB,CAAC;CAClD,CAAC;AAKF,wBAAgB,uBAAuB,WAWtC;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,0BACP,qBAAqB,mBAC5B,MAAM,KACvB,qBA+CF,CAAC;AACF,eAAO,MAAM,cAAc,WAAY,WAAW,WAEjD,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,CAAC,oBAAoB,MAAM,KAAG,CAAC,GAAG,IAO9D,CAAC;AACF,eAAO,MAAM,iBAAiB,QAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAyBzD,CAAC"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/Utils/helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,MAAM,MAAM,qBAAqB,GAAG;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,qBAAqB,CAAC;CAClD,CAAC;AAKF,wBAAgB,uBAAuB,WAWtC;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,0BACP,qBAAqB,mBAC5B,MAAM,KACvB,qBA+CF,CAAC;AACF,eAAO,MAAM,cAAc,WAAY,WAAW,WAEjD,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,CAAC,oBAAoB,MAAM,KAAG,CAAC,GAAG,IAO9D,CAAC;AACF,eAAO,MAAM,iBAAiB,QAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,OAAO,CAAC,eAAe,CAyBnF,CAAC"}
@@ -59,7 +59,7 @@ const handleSagaMessage = (res)=>{
59
59
  if (incomingState !== SagaState.Start) {
60
60
  channel.close();
61
61
  timeout && clearTimeout(timeout);
62
- if (incomingState === SagaState.End) resolve();
62
+ if (incomingState === SagaState.End) resolve(incoming);
63
63
  if (incomingState === SagaState.EndFailed) reject(incoming);
64
64
  }
65
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.521",
3
+ "version": "2.1.2-dev.522",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {