@its/core 1.1.23 → 1.1.25

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 (52) hide show
  1. package/dist/core.es.js +9011 -9072
  2. package/dist/core.umd.js +53 -73
  3. package/dist/src/hooks/useAuth/index.d.ts +0 -1
  4. package/dist/src/hooks/useAuth/index.d.ts.map +1 -1
  5. package/dist/src/hooks/useAuth/types.d.ts +40 -3
  6. package/dist/src/hooks/useAuth/types.d.ts.map +1 -1
  7. package/dist/src/store/AuthContext/AuthProvider.d.ts +14 -3
  8. package/dist/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
  9. package/dist/types/src/hooks/useAuth/index.d.ts +0 -1
  10. package/dist/types/src/hooks/useAuth/index.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/store/AuthContext/AuthProvider.d.ts +14 -3
  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/src/hooks/useAuth/useAuth.d.ts +0 -3
  34. package/dist/src/hooks/useAuth/useAuth.d.ts.map +0 -1
  35. package/dist/types/src/graphQL/Fragments/ErrorFragment.d.ts +0 -2
  36. package/dist/types/src/graphQL/Fragments/ErrorFragment.d.ts.map +0 -1
  37. package/dist/types/src/graphQL/Mutations/LoginMutation.d.ts +0 -2
  38. package/dist/types/src/graphQL/Mutations/LoginMutation.d.ts.map +0 -1
  39. package/dist/types/src/graphQL/Mutations/LogoutMutation.d.ts +0 -2
  40. package/dist/types/src/graphQL/Mutations/LogoutMutation.d.ts.map +0 -1
  41. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
  42. package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
  43. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -17
  44. package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
  45. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -19
  46. package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
  47. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -38
  48. package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
  49. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -19
  50. package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
  51. package/dist/types/src/hooks/useAuth/useAuth.d.ts +0 -3
  52. package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +0 -1
@@ -1,2 +1 @@
1
- export { default as useAuth } from './useAuth';
2
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":""}
@@ -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,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,K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F,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,5 +1,16 @@
1
- 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 }: {
1
+ import { GraphQLTaggedNode } from 'relay-runtime';
2
+ import { AuthActions, ErrorFragmentType } from '../../hooks/useAuth/types';
3
+ type useAuthType = (args: {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ }) => [boolean, ErrorFragmentType[], AuthActions];
7
+ type AuthProviderProps = {
8
+ LoginMutation: GraphQLTaggedNode;
9
+ LogoutMutation: GraphQLTaggedNode;
3
10
  children?: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
11
+ useAuth: useAuthType;
12
+ };
13
+ export declare const AuthContext: import('react').Context<[boolean, ErrorFragmentType[], AuthActions] | null>;
14
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, useAuth, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
5
16
  //# 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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE;IACxB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,WAAW,6EAAsD,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,EACd,OAAO,GACR,EAAE,iBAAiB,2CAWnB"}
@@ -1,2 +1 @@
1
- export { default as useAuth } from './useAuth';
2
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":""}
@@ -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,IAAI,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACx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E,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,5 +1,16 @@
1
- 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 }: {
1
+ import { GraphQLTaggedNode } from 'relay-runtime';
2
+ import { AuthActions, ErrorFragmentType } from '../../hooks/useAuth/types';
3
+ type useAuthType = (args: {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ }) => [boolean, ErrorFragmentType[], AuthActions];
7
+ type AuthProviderProps = {
8
+ LoginMutation: GraphQLTaggedNode;
9
+ LogoutMutation: GraphQLTaggedNode;
3
10
  children?: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
11
+ useAuth: useAuthType;
12
+ };
13
+ export declare const AuthContext: import("react").Context<[boolean, ErrorFragmentType[], AuthActions] | null>;
14
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, useAuth, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
5
16
  //# 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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE;IACxB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,WAAW,6EAAsD,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,EACd,OAAO,GACR,EAAE,iBAAiB,2CAWnB"}