@emilgroup/auth-sdk 1.2.0 → 1.4.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 (61) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +120 -0
  4. package/api.ts +2 -0
  5. package/base.ts +1 -0
  6. package/models/index.ts +2 -0
  7. package/models/inline-response200.ts +48 -0
  8. package/models/inline-response503.ts +48 -0
  9. package/package.json +1 -1
  10. package/dist/api/authservice-api.d.ts +0 -613
  11. package/dist/api/authservice-api.js +0 -1065
  12. package/dist/api.d.ts +0 -12
  13. package/dist/api.js +0 -30
  14. package/dist/base.d.ts +0 -73
  15. package/dist/base.js +0 -297
  16. package/dist/common.d.ts +0 -91
  17. package/dist/common.js +0 -276
  18. package/dist/configuration.d.ts +0 -83
  19. package/dist/configuration.js +0 -44
  20. package/dist/index.d.ts +0 -15
  21. package/dist/index.js +0 -36
  22. package/dist/models/create-org-and-user-request-dto.d.ts +0 -84
  23. package/dist/models/create-org-and-user-request-dto.js +0 -15
  24. package/dist/models/create-org-and-user-response-class.d.ts +0 -32
  25. package/dist/models/create-org-and-user-response-class.js +0 -15
  26. package/dist/models/create-user-request-dto.d.ts +0 -54
  27. package/dist/models/create-user-request-dto.js +0 -15
  28. package/dist/models/create-user-response-class.d.ts +0 -25
  29. package/dist/models/create-user-response-class.js +0 -15
  30. package/dist/models/custom-schema-class.d.ts +0 -66
  31. package/dist/models/custom-schema-class.js +0 -15
  32. package/dist/models/forgot-password-request-dto.d.ts +0 -24
  33. package/dist/models/forgot-password-request-dto.js +0 -15
  34. package/dist/models/get-samllogin-link-request-dto.d.ts +0 -24
  35. package/dist/models/get-samllogin-link-request-dto.js +0 -15
  36. package/dist/models/index.d.ts +0 -19
  37. package/dist/models/index.js +0 -35
  38. package/dist/models/login-by-samlrequest-dto.d.ts +0 -30
  39. package/dist/models/login-by-samlrequest-dto.js +0 -15
  40. package/dist/models/login-class.d.ts +0 -30
  41. package/dist/models/login-class.js +0 -15
  42. package/dist/models/login-request-dto.d.ts +0 -30
  43. package/dist/models/login-request-dto.js +0 -15
  44. package/dist/models/logout-request-dto.d.ts +0 -24
  45. package/dist/models/logout-request-dto.js +0 -15
  46. package/dist/models/org-invitation-class.d.ts +0 -109
  47. package/dist/models/org-invitation-class.js +0 -15
  48. package/dist/models/organization-class.d.ts +0 -114
  49. package/dist/models/organization-class.js +0 -15
  50. package/dist/models/refresh-token-dto.d.ts +0 -24
  51. package/dist/models/refresh-token-dto.js +0 -15
  52. package/dist/models/reset-password-request-dto.d.ts +0 -36
  53. package/dist/models/reset-password-request-dto.js +0 -15
  54. package/dist/models/role-class.d.ts +0 -54
  55. package/dist/models/role-class.js +0 -15
  56. package/dist/models/user-class.d.ts +0 -85
  57. package/dist/models/user-class.js +0 -15
  58. package/dist/models/verify-org-invitation-request-dto.d.ts +0 -24
  59. package/dist/models/verify-org-invitation-request-dto.js +0 -15
  60. package/dist/models/verify-org-invitation-response-class.d.ts +0 -32
  61. package/dist/models/verify-org-invitation-response-class.js +0 -15
@@ -4,6 +4,7 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/authservice-api.ts
7
+ api/default-api.ts
7
8
  base.ts
8
9
  common.ts
9
10
  configuration.ts
@@ -17,6 +18,8 @@ models/custom-schema-class.ts
17
18
  models/forgot-password-request-dto.ts
18
19
  models/get-samllogin-link-request-dto.ts
19
20
  models/index.ts
21
+ models/inline-response200.ts
22
+ models/inline-response503.ts
20
23
  models/login-by-samlrequest-dto.ts
21
24
  models/login-class.ts
22
25
  models/login-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/auth-sdk@1.2.0 --save
20
+ npm install @emilgroup/auth-sdk@1.4.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.2.0
24
+ yarn add @emilgroup/auth-sdk@1.4.0
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { InlineResponse200 } from '../models';
25
+ // @ts-ignore
26
+ import { InlineResponse503 } from '../models';
27
+ /**
28
+ * DefaultApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/authservice/health`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ let baseAccessToken;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ baseAccessToken = configuration.accessToken;
47
+ }
48
+
49
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50
+ const localVarHeaderParameter = {} as any;
51
+ const localVarQueryParameter = {} as any;
52
+
53
+
54
+
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58
+
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ }
65
+ };
66
+
67
+ /**
68
+ * DefaultApi - functional programming interface
69
+ * @export
70
+ */
71
+ export const DefaultApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
73
+ return {
74
+ /**
75
+ *
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
80
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
81
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DefaultApi - factory interface
88
+ * @export
89
+ */
90
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
+ const localVarFp = DefaultApiFp(configuration)
92
+ return {
93
+ /**
94
+ *
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ check(options?: any): AxiosPromise<InlineResponse200> {
99
+ return localVarFp.check(options).then((request) => request(axios, basePath));
100
+ },
101
+ };
102
+ };
103
+
104
+ /**
105
+ * DefaultApi - object-oriented interface
106
+ * @export
107
+ * @class DefaultApi
108
+ * @extends {BaseAPI}
109
+ */
110
+ export class DefaultApi extends BaseAPI {
111
+ /**
112
+ *
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof DefaultApi
116
+ */
117
+ public check(options?: AxiosRequestConfig) {
118
+ return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
+ }
120
+ }
package/api.ts CHANGED
@@ -21,7 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { AuthserviceApi } from './api';
24
+ import { DefaultApi } from './api';
24
25
 
25
26
 
26
27
  export * from './api/authservice-api';
28
+ export * from './api/default-api';
27
29
 
package/base.ts CHANGED
@@ -41,6 +41,7 @@ export enum Environment {
41
41
  Production = 'https://apiv2.emil.de',
42
42
  Test = 'https://apiv2-test.emil.de',
43
43
  Development = 'https://apiv2-dev.emil.de',
44
+ ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
44
45
  }
45
46
 
46
47
  let _retry_count = 0
package/models/index.ts CHANGED
@@ -5,6 +5,8 @@ export * from './create-user-response-class';
5
5
  export * from './custom-schema-class';
6
6
  export * from './forgot-password-request-dto';
7
7
  export * from './get-samllogin-link-request-dto';
8
+ export * from './inline-response200';
9
+ export * from './inline-response503';
8
10
  export * from './login-by-samlrequest-dto';
9
11
  export * from './login-class';
10
12
  export * from './login-request-dto';
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [