@hiver/connector-agent 0.0.1-beta.0 → 0.0.3-beta.0

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 (59) hide show
  1. package/app/index.d.ts +8 -1
  2. package/app/index.d.ts.map +1 -1
  3. package/constants/card.d.ts +2 -0
  4. package/constants/card.d.ts.map +1 -1
  5. package/constants/noConnector.d.ts +5 -0
  6. package/constants/noConnector.d.ts.map +1 -0
  7. package/context/index.d.ts +11 -0
  8. package/context/index.d.ts.map +1 -1
  9. package/context/main-app-provider/index.d.ts.map +1 -1
  10. package/features/connector-cards/api/index.d.ts +1 -0
  11. package/features/connector-cards/api/index.d.ts.map +1 -1
  12. package/features/connector-cards/components/card-list/Card.d.ts +18 -0
  13. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -0
  14. package/features/connector-cards/components/card-list/CardContent.d.ts +15 -0
  15. package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -0
  16. package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts.map +1 -1
  17. package/features/connector-cards/components/card-list/index.d.ts +7 -1
  18. package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
  19. package/features/connector-cards/components/card-list/style.d.ts +10 -3
  20. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  21. package/features/connector-cards/components/no-connectors/index.d.ts +3 -0
  22. package/features/connector-cards/components/no-connectors/index.d.ts.map +1 -0
  23. package/features/connector-cards/components/no-connectors/style.d.ts +7 -0
  24. package/features/connector-cards/components/no-connectors/style.d.ts.map +1 -0
  25. package/features/connector-cards/constants/api.d.ts.map +1 -1
  26. package/features/connector-cards/store/index.d.ts +7 -0
  27. package/features/connector-cards/store/index.d.ts.map +1 -1
  28. package/features/connector-cards/store/initial-state.d.ts +5 -3
  29. package/features/connector-cards/store/initial-state.d.ts.map +1 -1
  30. package/features/connector-cards/store/selectors.d.ts +5 -3
  31. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  32. package/features/connector-cards/store/slice.d.ts +16 -1
  33. package/features/connector-cards/store/slice.d.ts.map +1 -1
  34. package/features/connector-cards/utils/type-guards.d.ts +6 -0
  35. package/features/connector-cards/utils/type-guards.d.ts.map +1 -0
  36. package/features/toast-message/CloseButton.d.ts +4 -0
  37. package/features/toast-message/CloseButton.d.ts.map +1 -0
  38. package/features/toast-message/HiverIconToast.d.ts +7 -0
  39. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  40. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  41. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  42. package/features/toast-message/constants/toast.d.ts +4 -0
  43. package/features/toast-message/constants/toast.d.ts.map +1 -0
  44. package/features/toast-message/showMessage.d.ts +13 -0
  45. package/features/toast-message/showMessage.d.ts.map +1 -0
  46. package/features/toast-message/style.d.ts +7 -0
  47. package/features/toast-message/style.d.ts.map +1 -0
  48. package/index.es.js +9395 -8191
  49. package/index.umd.js +281 -92
  50. package/main.d.ts +5 -0
  51. package/main.d.ts.map +1 -1
  52. package/package.json +2 -5
  53. package/testing/mocks/handlers/fetch-cards.d.ts +6 -0
  54. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  55. package/testing/test-utils.d.ts +6 -1
  56. package/testing/test-utils.d.ts.map +1 -1
  57. package/types/cards.d.ts +12 -6
  58. package/types/cards.d.ts.map +1 -1
  59. /package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts +0 -0
package/app/index.d.ts CHANGED
@@ -1,2 +1,9 @@
1
- export declare const App: () => import("react/jsx-runtime").JSX.Element;
1
+ import { FC } from 'react';
2
+ import { IBaseUrls } from '../context';
3
+ interface IApp {
4
+ senderEmail?: string;
5
+ baseUrls?: IBaseUrls;
6
+ }
7
+ export declare const App: FC<IApp>;
8
+ export {};
2
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,+CAMf,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,IAAI;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,IAAI,CAgBxB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export declare const OPEN = "open";
2
2
  export declare const CLOSED = "closed";
3
+ export declare const TRY_AGAIN = "Please refresh and try again";
4
+ export declare const NONE = "-";
3
5
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/constants/card.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/constants/card.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,SAAS,iCAAiC,CAAC;AACxD,eAAO,MAAM,IAAI,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const STREAMLINE_TEXT = "Streamline your workflow with Custom Connectors";
2
+ export declare const PLUGIN_TEXT = "Plugin image";
3
+ export declare const AUTHENTICATION_TEXT = "Authenticate and enable powerful integrations directly from the Admin panel to enhance your team's productivity.";
4
+ export declare const ENABLE_CONNECTORS = "Enable connectors";
5
+ //# sourceMappingURL=noConnector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noConnector.d.ts","sourceRoot":"","sources":["../../src/constants/noConnector.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oDAAoD,CAAC;AACjF,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAC1C,eAAO,MAAM,mBAAmB,qHAAqH,CAAC;AACtJ,eAAO,MAAM,iBAAiB,sBAAsB,CAAC"}
@@ -3,16 +3,27 @@ export interface IConnectorType {
3
3
  name: string;
4
4
  isEnabled: boolean;
5
5
  }
6
+ export interface IBaseUrls {
7
+ [key: string]: string;
8
+ }
6
9
  export interface ICurrentOption {
7
10
  [key: string]: 'open' | 'closed';
8
11
  }
9
12
  export interface IMainAppContext {
10
13
  currentOpenState: ICurrentOption | null;
11
14
  setCurrentOpenState: (value: ICurrentOption | null) => void;
15
+ email: string | null;
16
+ setEmail: (value: string | null) => void;
17
+ baseUrls: IBaseUrls;
18
+ setBaseUrls: (value: IBaseUrls) => void;
12
19
  }
13
20
  export declare const defaultMainAppvalues: {
14
21
  currentOpenState: null;
15
22
  setCurrentOpenState: () => void;
23
+ email: string;
24
+ setEmail: () => void;
25
+ baseUrls: {};
26
+ setBaseUrls: () => void;
16
27
  };
17
28
  export declare const MainAppContext: import('react').Context<IMainAppContext>;
18
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAuD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5D,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,oBAAoB;;;;;;;CAOhC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAuD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,iBAAkB,MAAM,4CAY5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,iBAAkB,MAAM,4CAkB5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const getConnectorData: () => Promise<import('axios').AxiosResponse<any, any> | undefined>;
2
+ export declare const getSpecificConnectorData: (id: string, email: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,oEAK5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,oEAK5B,CAAC;AAEF,eAAO,MAAM,wBAAwB,OAAQ,MAAM,SAAS,MAAM,iEAKjE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ICurrentOption } from '../../../../context';
2
+ import { ICard, ISpecificCard } from '../../../../types/cards';
3
+ import { ApiStatus } from '../../../../types/api';
4
+ interface Iprops {
5
+ card: ICard;
6
+ currentOpenState: ICurrentOption | null;
7
+ setCurrentOpenState: (str: ICurrentOption) => void;
8
+ specificCardData: {
9
+ [key: string]: ISpecificCard;
10
+ } | null;
11
+ email: string;
12
+ specificConnectorApiStatus: {
13
+ [key: string]: ApiStatus;
14
+ } | null;
15
+ }
16
+ export declare const Card: (props: Iprops) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAerD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CA0DjC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISpecificCard } from '../../../../types/cards';
2
+ import { ApiStatus } from '../../../../types/api';
3
+ interface Iprops {
4
+ id: string;
5
+ specificCardData: {
6
+ [key: string]: ISpecificCard;
7
+ } | null;
8
+ specificConnectorApiStatus: {
9
+ [key: string]: ApiStatus;
10
+ } | null;
11
+ isOpen: boolean;
12
+ }
13
+ export declare const CardContent: (props: Iprops) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=CardContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardContent.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,UAAW,MAAM,4CAsExC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-list.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-cards/components/card-list/__test__/card-list.test.tsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"card-list.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-cards/components/card-list/__tests__/card-list.test.tsx"],"names":[],"mappings":""}
@@ -1,3 +1,9 @@
1
1
  import { FC } from 'react';
2
- export declare const CardList: FC;
2
+ import { IBaseUrls } from '../../../../context';
3
+ interface IcardList {
4
+ senderEmail?: string | null;
5
+ baseUrls?: IBaseUrls;
6
+ }
7
+ export declare const CardList: FC<IcardList>;
8
+ export {};
3
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAiC,MAAM,OAAO,CAAC;AAmB1D,eAAO,MAAM,QAAQ,EAAE,EAkEtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAiC,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAkC,MAAM,WAAW,CAAC;AActE,UAAU,SAAS;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,CAyElC,CAAC"}
@@ -1,10 +1,17 @@
1
- import { BoxProps, GridProps, TypographyProps } from '@hiver/hiver-ui-kit';
1
+ import { BoxProps, GridProps, IconButtonProps, SkeletonProps, StackProps, TypographyProps } from '@hiver/hiver-ui-kit';
2
2
  import { StyledComponent } from '@emotion/styled';
3
3
  export declare const ParentCardWrapper: StyledComponent<GridProps>;
4
4
  export declare const CardWrapper: StyledComponent<BoxProps>;
5
- export declare const CardHeading: StyledComponent<BoxProps>;
5
+ export declare const CardHeading: StyledComponent<StackProps>;
6
+ export declare const FlexBox: StyledComponent<StackProps>;
6
7
  export declare const HeadingText: StyledComponent<TypographyProps>;
7
- export declare const CardContent: StyledComponent<BoxProps>;
8
+ export declare const CardContentWrapper: StyledComponent<BoxProps>;
8
9
  export declare const LabelText: StyledComponent<TypographyProps>;
10
+ export declare const TryAgaintext: StyledComponent<TypographyProps>;
9
11
  export declare const ValueText: StyledComponent<TypographyProps>;
12
+ export declare const Arrow: StyledComponent<BoxProps>;
13
+ export declare const CustomSkeleton: StyledComponent<SkeletonProps & {
14
+ margin?: string;
15
+ }>;
16
+ export declare const IconWrapper: StyledComponent<IconButtonProps>;
10
17
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAAC,SAAS,CAIxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAMjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAUjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAGxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAGjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAGtD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAEtD,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,eAAe,EACf,aAAa,EACb,UAAU,EACV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAAC,SAAS,CAIxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAMjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAYnD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,UAAU,CAG/C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAGxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,QAAQ,CA+BxD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAItD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,eAAe,CAIzD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAEtD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,eAAe,CAAC,QAAQ,CAuC3C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAG/E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAyBxD,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const NoConnectors: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoConnectors;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/no-connectors/index.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,YAAY,+CAqBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StackProps, TypographyProps, ButtonProps } from '@hiver/hiver-ui-kit';
2
+ import { StyledComponent } from '@emotion/styled';
3
+ export declare const StreamLineContent: StyledComponent<StackProps>;
4
+ export declare const StreamText: StyledComponent<TypographyProps>;
5
+ export declare const AuthText: StyledComponent<TypographyProps>;
6
+ export declare const EnableConnectorsBtn: StyledComponent<ButtonProps>;
7
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/no-connectors/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAAC,UAAU,CAWzD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,eAAe,CAMvD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,eAAe,CAKrD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,WAAW,CAU5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,mBAAmB,EAAE,MAAwC,CAAC;AAC3E,eAAO,MAAM,uBAAuB,EAAE,MAAkD,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,mBAAmB,EAAE,MAAwC,CAAC;AAC3E,eAAO,MAAM,uBAAuB,EAAE,MAAqD,CAAC"}
@@ -11,6 +11,13 @@ export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
11
11
  cardList: import('./initial-state').IConnectorState;
12
12
  }, undefined, import('redux').UnknownAction>;
13
13
  }>, import('redux').StoreEnhancer]>>;
14
+ export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
15
+ cardList: import('./initial-state').IConnectorState;
16
+ }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
17
+ dispatch: import('redux-thunk').ThunkDispatch<{
18
+ cardList: import('./initial-state').IConnectorState;
19
+ }, undefined, import('redux').UnknownAction>;
20
+ }>, import('redux').StoreEnhancer]>>;
14
21
  export type AppStore = typeof store;
15
22
  export type RootState = ReturnType<AppStore['getState']>;
16
23
  export type AppDispatch = AppStore['dispatch'];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;GAEtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;oCAGhB,CAAC;AAGH,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;GAEtB,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"}
@@ -2,11 +2,13 @@ import { ApiStatus } from '../../../types/api';
2
2
  import { ICard, ISpecificCard } from '../../../types/cards';
3
3
  export interface IConnectorState {
4
4
  connectorCards: Array<ICard> | null;
5
- cardSpecificData: ISpecificCard[] | null;
6
- connectorApiStatus: ApiStatus;
7
- specificConnectorApiStatus?: {
5
+ cardSpecificData: {
8
6
  [key: string]: ISpecificCard;
9
7
  } | null;
8
+ connectorApiStatus: ApiStatus;
9
+ specificConnectorApiStatus: {
10
+ [key: string]: ApiStatus;
11
+ } | null;
10
12
  }
11
13
  export declare const initialState: IConnectorState;
12
14
  //# sourceMappingURL=initial-state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACzC,kBAAkB,EAAE,SAAS,CAAC;IAC9B,0BAA0B,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,GAAG,IAAI,CAAC;CACtE;AAGD,eAAO,MAAM,YAAY,EAAE,eAK1B,CAAC"}
1
+ {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,kBAAkB,EAAE,SAAS,CAAC;IAC9B,0BAA0B,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,IAAI,CAAC;CACjE;AAGD,eAAO,MAAM,YAAY,EAAE,eAK1B,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { RootState } from '.';
2
2
  export declare const selectConnector: (state: RootState) => import('../../../types/cards').ICard[] | null;
3
3
  export declare const selectConnectorApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
4
- export declare const selectSpecificConnector: (state: RootState) => import('../../../types/cards').ISpecificCard[] | null;
5
- export declare const selectSpecificConnectorApiStatus: (state: RootState) => {
4
+ export declare const selectSpecificConnector: (state: RootState) => {
6
5
  [key: string]: import('../../../types/cards').ISpecificCard;
7
- } | null | undefined;
6
+ } | null;
7
+ export declare const selectSpecificConnectorApiStatus: (state: RootState) => {
8
+ [key: string]: import('../../../types/api').ApiStatus;
9
+ } | null;
8
10
  //# sourceMappingURL=selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,eAAO,MAAM,eAAe,UAAW,SAAS,kDAAkC,CAAC;AACnF,eAAO,MAAM,wBAAwB,UAAW,SAAS,2CAAsC,CAAC;AAChG,eAAO,MAAM,uBAAuB,UAAW,SAAS,0DAAoC,CAAC;AAC7F,eAAO,MAAM,gCAAgC,UAAW,SAAS;;oBAA8C,CAAC"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,eAAO,MAAM,eAAe,UAAW,SAAS,kDAAkC,CAAC;AACnF,eAAO,MAAM,wBAAwB,UAAW,SAAS,2CAAsC,CAAC;AAChG,eAAO,MAAM,uBAAuB,UAAW,SAAS;;QAAoC,CAAC;AAC7F,eAAO,MAAM,gCAAgC,UAAW,SAAS;;QAA8C,CAAC"}
@@ -10,8 +10,23 @@ declare const fetchAllCardsData: import('@reduxjs/toolkit').AsyncThunk<any, void
10
10
  fulfilledMeta?: unknown;
11
11
  rejectedMeta?: unknown;
12
12
  }>;
13
+ declare const fetchSpecificCardData: import('@reduxjs/toolkit').AsyncThunk<import('axios').AxiosResponse<any, any> | {
14
+ data: {};
15
+ }, {
16
+ id: string;
17
+ email: string;
18
+ }, {
19
+ state?: unknown;
20
+ dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
21
+ extra?: unknown;
22
+ rejectValue?: unknown;
23
+ serializedErrorType?: unknown;
24
+ pendingMeta?: unknown;
25
+ fulfilledMeta?: unknown;
26
+ rejectedMeta?: unknown;
27
+ }>;
13
28
  declare const _default: import('redux').Reducer<import('./initial-state').IConnectorState>;
14
29
  export default _default;
15
30
  export declare const actions: import('@reduxjs/toolkit').CaseReducerActions<{}, "connectorCardLibrary">;
16
- export { selectConnector, fetchAllCardsData };
31
+ export { selectConnector, fetchAllCardsData, fetchSpecificCardData };
17
32
  //# sourceMappingURL=slice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,oBAAoB,qRAiB/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;;;;;;;EAQrB,CAAC;;AAEH,wBAA4C;AAC5C,eAAO,MAAM,OAAO,2EAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAM7E,eAAO,MAAM,oBAAoB,qRAwC/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;;;;;;;EASrB,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;QAEG,MAAM;WAAS,MAAM;;;;;;;;;;EAUlD,CAAC;;AAEF,wBAA4C;AAC5C,eAAO,MAAM,OAAO,2EAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ISpecificCard, ICard } from '../../../types/cards';
2
+ export declare function assertIsAllConnectorData(valueToTest: unknown): asserts valueToTest is ICard;
3
+ export declare function assertIsAllConnectorDataArrayLike(valueToTest: unknown[]): asserts valueToTest is ICard[];
4
+ export declare function assertIsSpecificConnectorData(valueToTest: unknown): asserts valueToTest is ISpecificCard;
5
+ export declare function assertIsSpecificConnectorDataObjectLike(valueToTest: unknown): asserts valueToTest is ISpecificCard[];
6
+ //# sourceMappingURL=type-guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG5D,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,KAAK,CAgB3F;AAED,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,IAAI,KAAK,EAAE,CAOxG;AAED,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,aAAa,CAcxG;AAED,wBAAgB,uCAAuC,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,aAAa,EAAE,CAKpH"}
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ declare const CloseButton: FC;
3
+ export default CloseButton;
4
+ //# sourceMappingURL=CloseButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/CloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,QAAA,MAAM,WAAW,EAAE,EAIlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface IHiverIconToast {
3
+ message: string;
4
+ }
5
+ declare const HiverIconToast: FC<IHiverIconToast>;
6
+ export default HiverIconToast;
7
+ //# sourceMappingURL=HiverIconToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HiverIconToast.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/HiverIconToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAKvC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toastMessage.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/__tests__/toastMessage.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const SUCCESS_TOAST: "success";
2
+ export declare const ERROR_TOAST: "error";
3
+ export declare const INFO_DARK: "info-dark";
4
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/constants/toast.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAqB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Dispatches action to show message
3
+ * @param {Object} message Message object of format { type, message }
4
+ */
5
+ export interface IShowMessage {
6
+ message: string;
7
+ type?: 'success' | 'error' | 'info-dark' | undefined;
8
+ autoClose?: number | false | undefined;
9
+ }
10
+ declare function showMessage(messageObject: IShowMessage): import('react-toastify').Id;
11
+ declare function removeToast(toastId: string | number): void;
12
+ export { showMessage, removeToast };
13
+ //# sourceMappingURL=showMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showMessage.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/showMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gBAAgB,CAAC;AAMxB;;;GAGG;AAEH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACxC;AAED,iBAAS,WAAW,CAAC,aAAa,EAAE,YAAY,+BAoC/C;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,QAE5C;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StyledComponent } from '@emotion/styled';
2
+ import { BoxProps, StackProps, SvgIconOwnProps } from '@hiver/hiver-ui-kit';
3
+ export declare const Wrapper: StyledComponent<BoxProps>;
4
+ export declare const Message: StyledComponent<BoxProps>;
5
+ export declare const Logo: StyledComponent<SvgIconOwnProps>;
6
+ export declare const ImgWrapper: StyledComponent<StackProps>;
7
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAI7C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAG7C,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,eAAe,CAAC,eAAe,CAK/C,CAAC;AAEJ,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAUlD,CAAC"}