@its/core 1.1.23 → 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 (48) hide show
  1. package/dist/core.es.js +4582 -4594
  2. package/dist/core.umd.js +48 -68
  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/store/AuthContext/AuthProvider.d.ts +7 -2
  8. package/dist/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
  9. package/dist/types/src/hooks/useAuth/types.d.ts +40 -3
  10. package/dist/types/src/hooks/useAuth/types.d.ts.map +1 -1
  11. package/dist/types/src/hooks/useAuth/useAuth.d.ts +7 -1
  12. package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +1 -1
  13. package/dist/types/src/store/AuthContext/AuthProvider.d.ts +7 -2
  14. package/dist/types/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
  15. package/dist/types/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +1 -1
  17. package/dist/src/graphQL/Fragments/ErrorFragment.d.ts +0 -2
  18. package/dist/src/graphQL/Fragments/ErrorFragment.d.ts.map +0 -1
  19. package/dist/src/graphQL/Mutations/LoginMutation.d.ts +0 -2
  20. package/dist/src/graphQL/Mutations/LoginMutation.d.ts.map +0 -1
  21. package/dist/src/graphQL/Mutations/LogoutMutation.d.ts +0 -2
  22. package/dist/src/graphQL/Mutations/LogoutMutation.d.ts.map +0 -1
  23. package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
  24. package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
  25. package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -12
  26. package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
  27. package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -13
  28. package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
  29. package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -33
  30. package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
  31. package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -14
  32. package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
  33. package/dist/types/src/graphQL/Fragments/ErrorFragment.d.ts +0 -2
  34. package/dist/types/src/graphQL/Fragments/ErrorFragment.d.ts.map +0 -1
  35. package/dist/types/src/graphQL/Mutations/LoginMutation.d.ts +0 -2
  36. package/dist/types/src/graphQL/Mutations/LoginMutation.d.ts.map +0 -1
  37. package/dist/types/src/graphQL/Mutations/LogoutMutation.d.ts +0 -2
  38. package/dist/types/src/graphQL/Mutations/LogoutMutation.d.ts.map +0 -1
  39. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
  40. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
  41. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -17
  42. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
  43. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -19
  44. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
  45. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -38
  46. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
  47. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -19
  48. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.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,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,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"}
@@ -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,aAA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Ac,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"}
@@ -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"}