@hiver/connector-agent 1.3.4-beta.2 → 1.3.5-beta.2

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 (76) hide show
  1. package/app/index.d.ts.map +1 -1
  2. package/constants/card.d.ts +2 -0
  3. package/constants/card.d.ts.map +1 -1
  4. package/constants/global-constants.d.ts +1 -0
  5. package/constants/global-constants.d.ts.map +1 -1
  6. package/constants/tracking-events.d.ts +4 -0
  7. package/constants/tracking-events.d.ts.map +1 -1
  8. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
  9. package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
  10. package/features/connector-cards/components/card-list/style.d.ts +0 -1
  11. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  12. package/features/connector-cards/components/card-list/whats-new-card.d.ts.map +1 -1
  13. package/features/connector-cards/constants/card-content.d.ts +0 -2
  14. package/features/connector-cards/constants/card-content.d.ts.map +1 -1
  15. package/features/connector-cards/store/hooks.d.ts +7 -0
  16. package/features/connector-cards/store/hooks.d.ts.map +1 -0
  17. package/features/connector-cards/store/index.d.ts +25 -0
  18. package/features/connector-cards/store/index.d.ts.map +1 -0
  19. package/features/connector-cards/store/selectors.d.ts +1 -1
  20. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  21. package/features/connector-cards/store/slice.d.ts +2 -0
  22. package/features/connector-cards/store/slice.d.ts.map +1 -1
  23. package/features/schedule-call/constants.d.ts +6 -0
  24. package/features/schedule-call/constants.d.ts.map +1 -0
  25. package/features/schedule-call/index.d.ts +2 -0
  26. package/features/schedule-call/index.d.ts.map +1 -0
  27. package/features/schedule-call/style.d.ts +12 -0
  28. package/features/schedule-call/style.d.ts.map +1 -0
  29. package/index.es.js +17356 -26870
  30. package/index.umd.js +211 -329
  31. package/package.json +1 -1
  32. package/testing/mocks/handlers/fetch-cards.d.ts +1 -0
  33. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  34. package/testing/mocks/handlers.d.ts.map +1 -1
  35. package/testing/test-utils.d.ts +1 -1
  36. package/testing/test-utils.d.ts.map +1 -1
  37. package/types/cards.d.ts +14 -0
  38. package/types/cards.d.ts.map +1 -1
  39. package/utils.d.ts +10 -5
  40. package/utils.d.ts.map +1 -1
  41. package/components/ui/layover/index.d.ts +0 -9
  42. package/components/ui/layover/index.d.ts.map +0 -1
  43. package/components/ui/layover/styles.d.ts +0 -6
  44. package/components/ui/layover/styles.d.ts.map +0 -1
  45. package/constants/app-constants.d.ts +0 -4
  46. package/constants/app-constants.d.ts.map +0 -1
  47. package/features/write-form/api/index.d.ts +0 -13
  48. package/features/write-form/api/index.d.ts.map +0 -1
  49. package/features/write-form/components/write-form/index.d.ts +0 -6
  50. package/features/write-form/components/write-form/index.d.ts.map +0 -1
  51. package/features/write-form/components/write-form/reducer.d.ts +0 -12
  52. package/features/write-form/components/write-form/reducer.d.ts.map +0 -1
  53. package/features/write-form/components/write-form/styles.d.ts +0 -6
  54. package/features/write-form/components/write-form/styles.d.ts.map +0 -1
  55. package/features/write-form/constants/api.d.ts +0 -5
  56. package/features/write-form/constants/api.d.ts.map +0 -1
  57. package/features/write-form/constants/index.d.ts +0 -13
  58. package/features/write-form/constants/index.d.ts.map +0 -1
  59. package/features/write-form/store/initial-state.d.ts +0 -31
  60. package/features/write-form/store/initial-state.d.ts.map +0 -1
  61. package/features/write-form/store/selectors.d.ts +0 -15
  62. package/features/write-form/store/selectors.d.ts.map +0 -1
  63. package/features/write-form/store/slice.d.ts +0 -88
  64. package/features/write-form/store/slice.d.ts.map +0 -1
  65. package/features/write-form/types/form.d.ts +0 -85
  66. package/features/write-form/types/form.d.ts.map +0 -1
  67. package/features/write-form/utils/index.d.ts +0 -24
  68. package/features/write-form/utils/index.d.ts.map +0 -1
  69. package/store/hooks.d.ts +0 -9
  70. package/store/hooks.d.ts.map +0 -1
  71. package/store/index.d.ts +0 -31
  72. package/store/index.d.ts.map +0 -1
  73. package/testing/mocks/handlers/write-capability.d.ts +0 -2
  74. package/testing/mocks/handlers/write-capability.d.ts.map +0 -1
  75. package/types/json.d.ts +0 -7
  76. package/types/json.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "1.3.4-beta.2",
3
+ "version": "1.3.5-beta.2",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -3,6 +3,7 @@ export declare const getSpecificConnector: (id: string, count?: number) => {
3
3
  id: string;
4
4
  cardType: ICardTypes;
5
5
  data: IFlatDisplay;
6
+ connectorNames: ("Shopify" | "HubSpot" | "ClickUp" | "Asana" | "Jira" | "SalesForce")[];
6
7
  };
7
8
  export declare const handlers: import('msw').HttpHandler[];
8
9
  //# sourceMappingURL=fetch-cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAyBnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM;;cA4CT,UAAU;;CAG9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
1
+ {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAyBnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM;;cA4CT,UAAU;;;CAO9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,6BAAiE,CAAC"}
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,6BAA+C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { RootState, AppStore } from '../store';
1
+ import { RootState, AppStore } from '../features/connector-cards/store';
2
2
  import { render as rtlRender, RenderOptions } from '@testing-library/react';
3
3
  import { default as userEvent } from '@testing-library/user-event';
4
4
  interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,gDACyD,qBAAqB;;;uBAA3E,CAAC,yJAIT,CAAC,6BAEV,CAAR;yBAEY,SAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,gDACyD,qBAAqB;;;uBADnG,CAAC,yJAGY,CAAC,6BAEX,CAAF;yBAE2B,SAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaJ,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
package/types/cards.d.ts CHANGED
@@ -32,5 +32,19 @@ export type ISpecificCard = {
32
32
  id: string;
33
33
  cardType: ICardTypes;
34
34
  data: IFlatDisplay;
35
+ connectorNames: string[];
36
+ };
37
+ export type IEventData = {
38
+ card_title?: string;
39
+ card_state?: string;
40
+ data_state?: string | number;
41
+ connector_names?: string[];
42
+ };
43
+ export type ICardData = {
44
+ status?: string;
45
+ data?: {
46
+ connectorNames?: string[];
47
+ };
48
+ [key: string]: unknown;
35
49
  };
36
50
  //# sourceMappingURL=cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAA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,CAAC;KAC3B,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC"}
package/utils.d.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  import { IAvailableFtr } from './context';
2
+ import { IEventData, ICardData } from './types/cards';
2
3
  export declare const generateUniqueKey: (text: number | string) => string;
3
4
  export declare const getVersionData: (version: string) => string | number | ((index: number) => string | undefined) | (() => string) | ((pos: number) => string) | ((index: number) => number) | ((...strings: string[]) => string) | ((searchString: string, position?: number) => number) | ((searchString: string, position?: number) => number) | {
4
5
  (that: string): number;
5
6
  (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
6
- (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
7
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.
8
+ /**
9
+ * Function to check whether the specified feature(featureName) is availabe or not.
10
+ * @param {Object} availableFeatures
11
+ * @param {String} featureName
12
+ */
13
+ CollatorOptions): number;
7
14
  } | {
8
15
  (regexp: string | RegExp): RegExpMatchArray | null;
9
16
  (matcher: {
@@ -43,14 +50,12 @@ export declare const getVersionData: (version: string) => string | number | ((in
43
50
  } | (() => string) | ((url: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((maxLength: number, fillString?: string) => string) | ((maxLength: number, fillString?: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((regexp: RegExp) => RegExpStringIterator<RegExpExecArray>) | (() => StringIterator<string>) | undefined;
44
51
  export declare const isLocalStorageVersionSame: (version: string) => boolean;
45
52
  export declare const isUserAlreadySeenWhatsNew: (version: string, userId?: string) => boolean;
46
- export declare const setLocalStorageData: (version: string, shouldReset?: boolean) => void;
53
+ export declare const setLocalStorageData: (version: string, shouldReset?: boolean, isExpand?: boolean) => void;
47
54
  /**
48
55
  * Function to check whether the specified feature(featureName) is availabe or not.
49
56
  * @param {Object} availableFeatures
50
57
  * @param {String} featureName
51
58
  */
52
59
  export declare const isFeatureAvailable: (availableFeatures: IAvailableFtr | undefined, featureName: string) => boolean;
53
- export declare const replacePlaceholders: (template: string, values: {
54
- [key: string]: string | number;
55
- }) => string;
60
+ export declare const getCardLoadedGainSightEventsData: (data: ICardData, title: string, isExpanded: boolean, isSuccess?: boolean) => IEventData;
56
61
  //# sourceMappingURL=utils.d.ts.map
package/utils.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DA0D0/5M,eAAe;kCAH185M,eAChG,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA9BnB,eACjB;;;oBAOC,eAAc;;;;;;;+YA9BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,SAwBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DA6E6t4M,eAAe;kCAjCxt4M,eAChE;IAIF;;;;OAIG;IACH,eAJU;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA5BF,eAAc;;;oBAMmB,eAAe;;;;;;;+YAxBvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,aAAoB,OAAO,SA2BnG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC;AAEF,eAAO,MAAM,gCAAgC,SACrC,SAAS,SACR,MAAM,cACD,OAAO,cACR,OAAO,eAcnB,CAAC"}
@@ -1,9 +0,0 @@
1
- interface LayoverProps {
2
- children: React.ReactNode;
3
- isOpen: boolean;
4
- onClose: () => void;
5
- containerRef: React.RefObject<HTMLDivElement>;
6
- }
7
- declare const Layover: ({ children, isOpen, onClose, containerRef }: LayoverProps) => false | import('react').ReactPortal | null;
8
- export default Layover;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/index.tsx"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C;AACD,QAAA,MAAM,OAAO,gDAAiD,YAAY,+CA0CzE,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,6 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { PaperProps, ButtonBaseProps, BoxProps } from '@hiver/hiver-ui-kit';
3
- export declare const LayoverWrapper: StyledComponent<PaperProps>;
4
- export declare const BackButton: StyledComponent<ButtonBaseProps>;
5
- export declare const ChildrenWrapper: StyledComponent<BoxProps>;
6
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,UAAU,CAWtD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,eAAe,CAOvD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,QAAQ,CAErD,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const REQUIRED_FIELD = "Required Field";
2
- export declare const VALIDATION_FAILED = "Validation Failed";
3
- export declare const INVALID_DATE_VALUE = "Invalid date";
4
- //# sourceMappingURL=app-constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-constants.d.ts","sourceRoot":"","sources":["../../src/constants/app-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAGrD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { JSONObject } from '../../../types/json';
2
- export declare const fetchObjectListData: ({ inboxIds, channelType, conversationId }: {
3
- inboxIds: string[];
4
- channelType: string;
5
- conversationId: string;
6
- }) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
7
- export declare const fetchFieldData: (placeholders: {
8
- [key: string]: string | number;
9
- }, data: JSONObject, channelType?: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
10
- export declare const createFormApi: (placeholders: {
11
- [key: string]: string | number;
12
- }, data: JSONObject, channelType?: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/api/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,mBAAmB,8CAI7B;IACD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,iEAUA,CAAC;AAEF,eAAO,MAAM,cAAc,iBACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,QAC1C,UAAU,gBACH,MAAM,iEAUpB,CAAC;AAEF,eAAO,MAAM,aAAa,iBACV;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,QAC1C,UAAU,gBACH,MAAM,iEAUpB,CAAC"}
@@ -1,6 +0,0 @@
1
- interface WriteFormProps {
2
- onClose: () => void;
3
- }
4
- declare const WriteForm: ({ onClose }: WriteFormProps) => import("react/jsx-runtime").JSX.Element;
5
- export default WriteForm;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AAwBA,UAAU,cAAc;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AACD,QAAA,MAAM,SAAS,gBAAiB,cAAc,4CAuO7C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,12 +0,0 @@
1
- import { WriteFormState, FormActionValue } from '../../types/form';
2
- export declare const intialState: WriteFormState;
3
- export declare const ACTIONS: {
4
- SET_FIELD_VALUE: string;
5
- CLEAR_ERROR: string;
6
- SET_FIELD_ERROR: string;
7
- SET_FIELDS: string;
8
- CLEAR_FIELDS: string;
9
- RESET_STATE: string;
10
- };
11
- export declare const reducer: (state: WriteFormState, action: FormActionValue) => WriteFormState;
12
- //# sourceMappingURL=reducer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExE,eAAO,MAAM,WAAW,EAAE,cAGzB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,cAAc,UAAU,eAAe,KAAG,cAyDxE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { BoxProps, ButtonProps, StackProps } from '@hiver/hiver-ui-kit';
3
- export declare const ButtonWrapper: StyledComponent<BoxProps>;
4
- export declare const FormWrapper: StyledComponent<StackProps>;
5
- export declare const ActionBtn: StyledComponent<ButtonProps>;
6
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7E,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAUnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAGnD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,WAAW,CAGlD,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const BASE_URL = "/v1/api";
2
- export declare const FETCH_OBJECT_LIST_API: string;
3
- export declare const FETCH_FIELD_DATA: string;
4
- export declare const CREATE_FORM: string;
5
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAA4C,CAAC;AACjF,eAAO,MAAM,gBAAgB,EAAE,MAAoE,CAAC;AACpG,eAAO,MAAM,WAAW,EAAE,MAA8C,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const INVALID_URL_MSG = "Please enter a valid URL";
2
- export declare const URL_MUST_START_WITH_HTTPS = "URL must start with https://";
3
- export declare const URL_SHOULD_NOT_END_WITH_SLASH = "URL should not end with a slash";
4
- export declare const INVALID_EMAIL = "Invalid email address";
5
- export declare const STRING_EMAIL = "Email must be a string";
6
- export declare const INVALID_DATE_MSG = "Invalid date";
7
- export declare const PAST_DISABLED_MSG = "Date cannot be in the past";
8
- export declare const FUTURE_DISABLED_MSG = "Date cannot be in the future";
9
- export declare const INVALID_NUMBER = "Invalid number";
10
- export declare const INVALID_TEXT = "Invalid text";
11
- export declare const NEW_CARD_CREATED = "New card created";
12
- export declare const CARD_CREATION_FAILED = "Card creation failed!!";
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAE/E,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC"}
@@ -1,31 +0,0 @@
1
- import { ObjectItem, WriteFormFields } from '../types/form';
2
- import { ApiStatus } from '../../../types/api';
3
- import { OptionType } from '@connector/ui';
4
- interface OptionsData {
5
- options: OptionType[];
6
- hasMore: boolean;
7
- currentPage: number;
8
- }
9
- export interface WriteCapabilityState {
10
- objectList: OptionType[];
11
- objectDict: {
12
- [key: string]: ObjectItem;
13
- } | null;
14
- formFields: {
15
- [key: string]: WriteFormFields[];
16
- } | null;
17
- objectListApiStatus: ApiStatus;
18
- optionsMap: {
19
- [key: string]: OptionsData;
20
- } | null;
21
- dependentFieldsMap: {
22
- [key: string]: {
23
- [key: string]: string[];
24
- };
25
- };
26
- dropdownOptionsApis: ApiStatus;
27
- createFormApiStatus: ApiStatus;
28
- }
29
- export declare const initialState: WriteCapabilityState;
30
- export {};
31
- //# sourceMappingURL=initial-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,WAAW;IACnB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACxD,mBAAmB,EAAE,SAAS,CAAC;IAC/B,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,GAAG,IAAI,CAAC;IAClD,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;SAAE,CAAA;KAAE,CAAC;IACnE,mBAAmB,EAAE,SAAS,CAAC;IAC/B,mBAAmB,EAAE,SAAS,CAAC;CAChC;AAGD,eAAO,MAAM,YAAY,EAAE,oBAS1B,CAAC"}
@@ -1,15 +0,0 @@
1
- import { RootState } from '../../../store';
2
- export declare const selectObjectList: (state: RootState) => import('@connector/ui').OptionType[];
3
- export declare const selectObjectDict: (state: RootState) => {
4
- [key: string]: import('../types/form').ObjectItem;
5
- } | null;
6
- export declare const selectFormFields: (state: RootState) => {
7
- [key: string]: import('../types/form').WriteFormFields[];
8
- } | null;
9
- export declare const selectDependentFieldsMap: (state: RootState) => {
10
- [key: string]: {
11
- [key: string]: string[];
12
- };
13
- };
14
- export declare const selectCreateFormApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
15
- //# sourceMappingURL=selectors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,gBAAgB,UAAW,SAAS,yCAA2B,CAAC;AAC7E,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAA2B,CAAC;AAC7E,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAA2B,CAAC;AAC7E,eAAO,MAAM,wBAAwB,UAAW,SAAS;;;;CAAmC,CAAC;AAC7F,eAAO,MAAM,yBAAyB,UAAW,SAAS,2CAAoC,CAAC"}
@@ -1,88 +0,0 @@
1
- import { InterfaceDetails, ObjectItem, WriteFormFields } from '../types/form';
2
- import { OptionType } from '@connector/ui';
3
- export declare const writeCapabilitySlice: import('@reduxjs/toolkit').Slice<import('./initial-state').WriteCapabilityState, {
4
- resetState: () => import('./initial-state').WriteCapabilityState;
5
- }, "writeCapability", "writeCapability", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').WriteCapabilityState>>;
6
- declare const fetchObjectList: import('@reduxjs/toolkit').AsyncThunk<{
7
- objectList: never[];
8
- formFields: null;
9
- objectDict: null;
10
- dependentFieldsMap: {};
11
- } | {
12
- objectList: OptionType[];
13
- formFields: {
14
- [key: string]: WriteFormFields[];
15
- };
16
- objectDict: {
17
- [key: string]: ObjectItem;
18
- };
19
- dependentFieldsMap: {
20
- [key: string]: {
21
- [key: string]: string[];
22
- };
23
- };
24
- }, {
25
- inboxIds: string[];
26
- channelType: string;
27
- conversationId: string;
28
- }, {
29
- state?: unknown;
30
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
31
- extra?: unknown;
32
- rejectValue?: unknown;
33
- serializedErrorType?: unknown;
34
- pendingMeta?: unknown;
35
- fulfilledMeta?: unknown;
36
- rejectedMeta?: unknown;
37
- }>;
38
- declare const fetchDropDownOptions: import('@reduxjs/toolkit').AsyncThunk<{
39
- optionsList: any[];
40
- fieldName: string;
41
- formId: string;
42
- currentPage: number;
43
- hasMore: boolean;
44
- key: string;
45
- }, {
46
- fieldName: string;
47
- formId: string;
48
- interfaceId?: string;
49
- pagination: InterfaceDetails["pagination"];
50
- callback?: (options: OptionType[]) => void;
51
- args?: {
52
- [key: string]: string | number | boolean;
53
- };
54
- isScrollToBottomEvent?: boolean;
55
- }, {
56
- state?: unknown;
57
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
58
- extra?: unknown;
59
- rejectValue?: unknown;
60
- serializedErrorType?: unknown;
61
- pendingMeta?: unknown;
62
- fulfilledMeta?: unknown;
63
- rejectedMeta?: unknown;
64
- }>;
65
- declare const createForm: import('@reduxjs/toolkit').AsyncThunk<undefined, {
66
- formId: string;
67
- args: {
68
- [key: string]: string | number | boolean;
69
- };
70
- conversationId: string;
71
- interfaceId: string;
72
- successCallback?: () => void;
73
- failureCallback?: (err: unknown) => void;
74
- }, {
75
- state?: unknown;
76
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
77
- extra?: unknown;
78
- rejectValue?: unknown;
79
- serializedErrorType?: unknown;
80
- pendingMeta?: unknown;
81
- fulfilledMeta?: unknown;
82
- rejectedMeta?: unknown;
83
- }>;
84
- declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"writeCapability/resetState">;
85
- declare const _default: import('redux').Reducer<import('./initial-state').WriteCapabilityState>;
86
- export default _default;
87
- export { fetchObjectList, resetState, fetchDropDownOptions, createForm };
88
- //# sourceMappingURL=slice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAC;AAEvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,oBAAoB;;mIAkD/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;cAES,MAAM,EAAE;iBAAe,MAAM;oBAAkB,MAAM;;;;;;;;;;EA4HlF,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;eAIT,MAAM;YACT,MAAM;kBACA,MAAM;gBACR,gBAAgB,CAAC,YAAY,CAAC;eAC/B,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI;WACnC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;4BAC3B,OAAO;;;;;;;;;;EAiFpC,CAAC;AAEF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;oBAClC,MAAM;iBACT,MAAM;sBACD,MAAM,IAAI;sBACV,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;;;;;;;;;EAgB7C,CAAC;AAEF,QAAA,MAAQ,UAAU,sFAAiC,CAAC;;AACpD,wBAA4C;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAAE,CAAC"}
@@ -1,85 +0,0 @@
1
- import { FIELD_TYPES, OptionType } from '@connector/ui';
2
- export type FieldValue = string | number | OptionType | boolean | Date;
3
- export type WriteFieldKeys = string;
4
- export interface WriteFormState {
5
- values: Partial<Record<WriteFieldKeys, FieldValue | undefined>>;
6
- errors: Partial<Record<WriteFieldKeys, string | boolean>>;
7
- }
8
- export interface AllValues {
9
- values: Partial<Record<WriteFieldKeys, FieldValue>>;
10
- }
11
- export interface Value {
12
- value?: FieldValue | boolean;
13
- name: string;
14
- }
15
- export interface FormActionValue {
16
- type: string;
17
- payload?: AllValues | Value;
18
- }
19
- export type ValidationObject = {
20
- msg: string;
21
- };
22
- export interface WriteValidations {
23
- isRequired?: boolean | ValidationObject;
24
- isUrl?: boolean | ValidationObject;
25
- isEmail?: boolean | ValidationObject;
26
- disableFuture?: boolean | ValidationObject;
27
- disablePast?: boolean | ValidationObject;
28
- maxCharacters?: number;
29
- maxRows?: number;
30
- range?: {
31
- min: number;
32
- max: number;
33
- };
34
- }
35
- export interface InterfaceDetails {
36
- id: string;
37
- args?: {
38
- [key: string]: string;
39
- };
40
- pagination?: {
41
- enabled: boolean;
42
- limit?: number;
43
- };
44
- }
45
- export interface FieldListResponse {
46
- name: string;
47
- placeholder?: string;
48
- type: FIELD_TYPES | 'multi-select' | 'multiline';
49
- label: string;
50
- value?: string | number;
51
- disabled?: boolean;
52
- disablePast?: boolean;
53
- disableFuture?: boolean;
54
- validations?: WriteValidations;
55
- defaultOptions?: boolean | OptionType[];
56
- interfaceDetails?: InterfaceDetails;
57
- isInfiniteScrollable?: boolean;
58
- isApiSearchEnabled?: boolean;
59
- min?: number;
60
- max?: number;
61
- multiline?: boolean;
62
- maxRows?: number;
63
- maxCharacters?: number;
64
- rows?: number;
65
- priority: number;
66
- defaultValue?: string | number;
67
- }
68
- export interface WriteFormFields extends FieldListResponse {
69
- type: FIELD_TYPES;
70
- isMultiSelect?: boolean;
71
- loadOptionsOnFocus?: boolean;
72
- }
73
- export interface ObjectItem extends OptionType {
74
- id: string;
75
- name: string;
76
- interfaceDetails?: InterfaceDetails;
77
- type: 'create' | 'link';
78
- connectorId: string;
79
- cardId: string;
80
- }
81
- export interface ObjectResponseItem extends Omit<ObjectItem, 'label' | 'value'> {
82
- fieldList?: FieldListResponse[];
83
- }
84
- export type Predicates = Partial<Record<WriteFieldKeys, boolean>>;
85
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AAEvE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IAChE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,SAAS;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AAU,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- import { FormValidation, IValidateConfig } from '@connector/ui';
2
- import { WriteFormFields, WriteFormState } from '../types/form';
3
- export declare const getAllCompletedArgs: (state: WriteFormState, args?: {
4
- [key: string]: string;
5
- }) => string[];
6
- export declare const getFormFieldKey: (name: string, state: WriteFormState, args?: string[]) => string;
7
- export declare const getArgsValueMap: (state: WriteFormState, args?: {
8
- [key: string]: string;
9
- }) => {
10
- [key: string]: string | number | boolean;
11
- };
12
- export declare const generateDropdownOptionKey: (args: {
13
- [key: string]: string | number | boolean;
14
- }, id: string, name: string) => string;
15
- export declare const validateUrl: (msg?: string) => (url: unknown) => string | boolean;
16
- export declare const validateEmail: (msg?: string) => (email: unknown) => string | boolean;
17
- export declare const validateIsRequired: (msg?: string) => (value: unknown) => string | boolean;
18
- export declare const validateDate: (msg?: string) => (date: unknown, appConfigs: IValidateConfig) => string | boolean;
19
- export declare const validateNumber: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
20
- export declare const validateTextField: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
21
- export declare const getFormFieldsValidations: ({ formFields }: {
22
- formFields: WriteFormFields[];
23
- }) => FormValidation;
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAahE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,cAAc,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAAM,EAMnG,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,SAAS,cAAc,SAAS,MAAM,EAAE,WAWnF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,cAAc,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;;CA2BtF,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAC9B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,MAC9C,MAAM,QACJ,MAAM,WAOb,CAAC;AAEF,eAAO,MAAM,WAAW,SACf,MAAM,WACP,OAAO,KAAG,MAAM,GAAG,OAyBxB,CAAC;AAEJ,eAAO,MAAM,aAAa,SACjB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAa1B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,SACtB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAK1B,CAAC;AAEJ,eAAO,MAAM,YAAY,SAChB,MAAM,YACN,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAwBtD,CAAC;AAEJ,eAAO,MAAM,cAAc,SAClB,MAAM,aACL,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAiBvD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,SACrB,MAAM,aACL,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAWvD,CAAC;AAEJ,eAAO,MAAM,wBAAwB,mBAAoB;IAAE,UAAU,EAAE,eAAe,EAAE,CAAA;CAAE,KAAG,cAsC5F,CAAC"}
package/store/hooks.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
2
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
3
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
4
- }, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
5
- export declare const useAppSelector: import('react-redux').UseSelector<{
6
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
7
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
8
- }>;
9
- //# sourceMappingURL=hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;EAAqC,CAAC"}
package/store/index.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { Action, ThunkAction } from '@reduxjs/toolkit';
2
- export declare const rootReducer: import('redux').Reducer<{
3
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
4
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
5
- }, import('redux').UnknownAction, Partial<{
6
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState | undefined;
7
- write: import('../features/write-form/store/initial-state').WriteCapabilityState | undefined;
8
- }>>;
9
- export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
10
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
11
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
12
- }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
13
- dispatch: import('redux-thunk').ThunkDispatch<{
14
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
15
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
16
- }, undefined, import('redux').UnknownAction>;
17
- }>, import('redux').StoreEnhancer]>>;
18
- export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
19
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
20
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
21
- }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
22
- dispatch: import('redux-thunk').ThunkDispatch<{
23
- cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
24
- write: import('../features/write-form/store/initial-state').WriteCapabilityState;
25
- }, undefined, import('redux').UnknownAction>;
26
- }>, import('redux').StoreEnhancer]>>;
27
- export type AppStore = typeof store;
28
- export type RootState = ReturnType<AppStore['getState']>;
29
- export type AppDispatch = AppStore['dispatch'];
30
- export type AppThunk<ThunkReturnType = void> = ThunkAction<ThunkReturnType, RootState, unknown, Action>;
31
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;GAGtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;oCAGhB,CAAC;AAEH,eAAO,MAAM,WAAW,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;oCAM9D,CAAC;AAGF,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const handlers: import('msw').HttpHandler[];
2
- //# sourceMappingURL=write-capability.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AA8bA,eAAO,MAAM,QAAQ,6BAAkC,CAAC"}
package/types/json.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export type JSONPrimitive = string | number | boolean | null;
2
- export type JSONObject = {
3
- [k: string]: JSONValue;
4
- };
5
- export type JSONArray = JSONValue[];
6
- export type JSONValue = JSONArray | JSONObject | JSONPrimitive;
7
- //# sourceMappingURL=json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC"}