@its/core 1.1.22 → 1.1.24

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 (68) hide show
  1. package/dist/core.es.js +5287 -5312
  2. package/dist/core.umd.js +54 -83
  3. package/dist/src/hooks/useAuth/types.d.ts +40 -3
  4. package/dist/src/hooks/useAuth/types.d.ts.map +1 -1
  5. package/dist/src/hooks/useAuth/useAuth.d.ts +7 -1
  6. package/dist/src/hooks/useAuth/useAuth.d.ts.map +1 -1
  7. package/dist/src/main.d.ts +0 -1
  8. package/dist/src/main.d.ts.map +1 -1
  9. package/dist/src/store/AuthContext/AuthProvider.d.ts +7 -2
  10. package/dist/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
  11. package/dist/types/src/hooks/useAuth/types.d.ts +40 -3
  12. package/dist/types/src/hooks/useAuth/types.d.ts.map +1 -1
  13. package/dist/types/src/hooks/useAuth/useAuth.d.ts +7 -1
  14. package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +1 -1
  15. package/dist/types/src/main.d.ts +0 -1
  16. package/dist/types/src/main.d.ts.map +1 -1
  17. package/dist/types/src/store/AuthContext/AuthProvider.d.ts +7 -2
  18. package/dist/types/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
  19. package/dist/types/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/dist/src/graphQL/Fragments/Error.d.ts +0 -2
  22. package/dist/src/graphQL/Fragments/Error.d.ts.map +0 -1
  23. package/dist/src/graphQL/Fragments/index.d.ts +0 -2
  24. package/dist/src/graphQL/Fragments/index.d.ts.map +0 -1
  25. package/dist/src/graphQL/Mutations/Login.d.ts +0 -2
  26. package/dist/src/graphQL/Mutations/Login.d.ts.map +0 -1
  27. package/dist/src/graphQL/Mutations/Logout.d.ts +0 -2
  28. package/dist/src/graphQL/Mutations/Logout.d.ts.map +0 -1
  29. package/dist/src/graphQL/Mutations/index.d.ts +0 -3
  30. package/dist/src/graphQL/Mutations/index.d.ts.map +0 -1
  31. package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
  32. package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
  33. package/dist/src/graphQL/Subscriptions/index.d.ts +0 -2
  34. package/dist/src/graphQL/Subscriptions/index.d.ts.map +0 -1
  35. package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -12
  36. package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
  37. package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -13
  38. package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
  39. package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -33
  40. package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
  41. package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -14
  42. package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
  43. package/dist/src/graphQL/index.d.ts +0 -8
  44. package/dist/src/graphQL/index.d.ts.map +0 -1
  45. package/dist/types/src/graphQL/Fragments/Error.d.ts +0 -2
  46. package/dist/types/src/graphQL/Fragments/Error.d.ts.map +0 -1
  47. package/dist/types/src/graphQL/Fragments/index.d.ts +0 -2
  48. package/dist/types/src/graphQL/Fragments/index.d.ts.map +0 -1
  49. package/dist/types/src/graphQL/Mutations/Login.d.ts +0 -2
  50. package/dist/types/src/graphQL/Mutations/Login.d.ts.map +0 -1
  51. package/dist/types/src/graphQL/Mutations/Logout.d.ts +0 -2
  52. package/dist/types/src/graphQL/Mutations/Logout.d.ts.map +0 -1
  53. package/dist/types/src/graphQL/Mutations/index.d.ts +0 -3
  54. package/dist/types/src/graphQL/Mutations/index.d.ts.map +0 -1
  55. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
  56. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
  57. package/dist/types/src/graphQL/Subscriptions/index.d.ts +0 -2
  58. package/dist/types/src/graphQL/Subscriptions/index.d.ts.map +0 -1
  59. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -17
  60. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
  61. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -19
  62. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
  63. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -38
  64. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
  65. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -19
  66. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
  67. package/dist/types/src/graphQL/index.d.ts +0 -8
  68. package/dist/types/src/graphQL/index.d.ts.map +0 -1
@@ -1,5 +1,3 @@
1
- import { LoginMutation, LoginMutation$variables } from '../../graphQL/__generated__/LoginMutation.graphql';
2
- import { LogoutMutation } from '../../graphQL/__generated__/LogoutMutation.graphql';
3
1
  export type LoginType = [(formData: FormData) => void, boolean];
4
2
  export type LogoutType = [() => void, pending: boolean];
5
3
  export type AuthActions = {
@@ -7,11 +5,50 @@ export type AuthActions = {
7
5
  logout: LogoutType;
8
6
  removeError: (index: number) => void;
9
7
  };
10
- export type LoginMutationType = LoginMutation;
8
+ type LoginMutation$data = {
9
+ readonly authMutation: {
10
+ readonly login: {
11
+ readonly errors: ReadonlyArray<{
12
+ readonly code: string;
13
+ readonly description: string;
14
+ }>;
15
+ readonly expires: any | null | undefined;
16
+ readonly token: string | null | undefined;
17
+ readonly username: string | null | undefined;
18
+ };
19
+ };
20
+ };
21
+ export type InputAuthenticationRequest = {
22
+ captchaValue?: string | null | undefined;
23
+ client_id?: string | null | undefined;
24
+ grant_type?: string | null | undefined;
25
+ newPassword?: string | null | undefined;
26
+ password?: string | null | undefined;
27
+ rFID?: string | null | undefined;
28
+ username?: string | null | undefined;
29
+ };
30
+ type LoginMutation$variables = {
31
+ credentials: InputAuthenticationRequest;
32
+ };
33
+ export type LoginMutationType = {
34
+ response: LoginMutation$data;
35
+ variables: LoginMutation$variables;
36
+ };
37
+ export type LogoutMutation$data = {
38
+ readonly authMutation: {
39
+ readonly logout: string;
40
+ };
41
+ };
42
+ export type LogoutMutation$variables = Record<PropertyKey, never>;
43
+ export type LogoutMutation = {
44
+ response: LogoutMutation$data;
45
+ variables: LogoutMutation$variables;
46
+ };
11
47
  export type LogoutMutationType = LogoutMutation;
12
48
  export type LoginMutationVariables = LoginMutation$variables;
13
49
  export type ErrorFragmentType = {
14
50
  code: string;
15
51
  description: string;
16
52
  };
53
+ export {};
17
54
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAi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AG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,0BAA0B,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,EAAE,uBAAuB,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,3 +1,9 @@
1
+ import { GraphQLTaggedNode } from 'react-relay';
1
2
  import { AuthActions, ErrorFragmentType } from './types';
2
- export default function useAuth(): [boolean, ErrorFragmentType[], AuthActions];
3
+ type useAuthProps = {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ };
7
+ export default function useAuth({ LoginMutation, LogoutMutation, }: useAuthProps): [boolean, ErrorFragmentType[], AuthActions];
8
+ export {};
3
9
  //# sourceMappingURL=useAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAIX,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE7E"}
1
+ {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAE7D,OAAO,EACL,WAAW,EAGX,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAIjB,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,aAAa,EACb,cAAc,GACf,EAAE,YAAY,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE5D"}
@@ -11,5 +11,4 @@ export * from './state_manager';
11
11
  export * from './store';
12
12
  export * from './theme';
13
13
  export * from './utils';
14
- export * from './graphQL';
15
14
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,5 +1,10 @@
1
+ import { GraphQLTaggedNode } from 'relay-runtime';
1
2
  export declare const AuthContext: import('react').Context<[boolean, import('../../hooks/useAuth/types').ErrorFragmentType[], import('../../hooks/useAuth/types').AuthActions] | null>;
2
- export default function AuthProvider({ children }: {
3
+ type AuthProviderProps = {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
3
6
  children?: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
5
10
  //# sourceMappingURL=AuthProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAQhF"}
1
+ {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE,iBAAiB,2CAWnB"}
@@ -1,5 +1,3 @@
1
- import type { LoginMutation, LoginMutation$variables } from '../../graphQL/__generated__/LoginMutation.graphql';
2
- import { LogoutMutation } from '../../graphQL/__generated__/LogoutMutation.graphql';
3
1
  export type LoginType = [(formData: FormData) => void, boolean];
4
2
  export type LogoutType = [() => void, pending: boolean];
5
3
  export type AuthActions = {
@@ -7,11 +5,50 @@ export type AuthActions = {
7
5
  logout: LogoutType;
8
6
  removeError: (index: number) => void;
9
7
  };
10
- export type LoginMutationType = LoginMutation;
8
+ type LoginMutation$data = {
9
+ readonly authMutation: {
10
+ readonly login: {
11
+ readonly errors: ReadonlyArray<{
12
+ readonly code: string;
13
+ readonly description: string;
14
+ }>;
15
+ readonly expires: any | null | undefined;
16
+ readonly token: string | null | undefined;
17
+ readonly username: string | null | undefined;
18
+ };
19
+ };
20
+ };
21
+ export type InputAuthenticationRequest = {
22
+ captchaValue?: string | null | undefined;
23
+ client_id?: string | null | undefined;
24
+ grant_type?: string | null | undefined;
25
+ newPassword?: string | null | undefined;
26
+ password?: string | null | undefined;
27
+ rFID?: string | null | undefined;
28
+ username?: string | null | undefined;
29
+ };
30
+ type LoginMutation$variables = {
31
+ credentials: InputAuthenticationRequest;
32
+ };
33
+ export type LoginMutationType = {
34
+ response: LoginMutation$data;
35
+ variables: LoginMutation$variables;
36
+ };
37
+ export type LogoutMutation$data = {
38
+ readonly authMutation: {
39
+ readonly logout: string;
40
+ };
41
+ };
42
+ export type LogoutMutation$variables = Record<PropertyKey, never>;
43
+ export type LogoutMutation = {
44
+ response: LogoutMutation$data;
45
+ variables: LogoutMutation$variables;
46
+ };
11
47
  export type LogoutMutationType = LogoutMutation;
12
48
  export type LoginMutationVariables = LoginMutation$variables;
13
49
  export type ErrorFragmentType = {
14
50
  code: string;
15
51
  description: string;
16
52
  };
53
+ export {};
17
54
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK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AAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,0BAA0B,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,EAAE,uBAAuB,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,3 +1,9 @@
1
+ import { GraphQLTaggedNode } from 'react-relay';
1
2
  import { AuthActions, ErrorFragmentType } from './types';
2
- export default function useAuth(): [boolean, ErrorFragmentType[], AuthActions];
3
+ type useAuthProps = {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ };
7
+ export default function useAuth({ LoginMutation, LogoutMutation, }: useAuthProps): [boolean, ErrorFragmentType[], AuthActions];
8
+ export {};
3
9
  //# sourceMappingURL=useAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAIX,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE7E"}
1
+ {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAE7D,OAAO,EACL,WAAW,EAGX,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAIjB,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,aAAa,EACb,cAAc,GACf,EAAE,YAAY,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE5D"}
@@ -11,5 +11,4 @@ export * from './state_manager';
11
11
  export * from './store';
12
12
  export * from './theme';
13
13
  export * from './utils';
14
- export * from './graphQL';
15
14
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,5 +1,10 @@
1
+ import { GraphQLTaggedNode } from 'relay-runtime';
1
2
  export declare const AuthContext: import("react").Context<[boolean, import("../../hooks/useAuth/types").ErrorFragmentType[], import("../../hooks/useAuth/types").AuthActions] | null>;
2
- export default function AuthProvider({ children }: {
3
+ type AuthProviderProps = {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
3
6
  children?: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
5
10
  //# sourceMappingURL=AuthProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAQhF"}
1
+ {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE,iBAAiB,2CAWnB"}