@emilgroup/notification-sdk-node 1.0.0-beta.0 → 1.1.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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -0
- package/api/email-verifications-api.ts +268 -0
- package/api/layouts-api.ts +1 -1
- package/api/notification-templates-api.ts +1 -1
- package/api/notifications-api.ts +1 -1
- package/api.ts +5 -1
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/email-verifications-api.d.ts +146 -0
- package/dist/api/email-verifications-api.js +313 -0
- package/dist/api/layouts-api.d.ts +1 -1
- package/dist/api/layouts-api.js +1 -1
- package/dist/api/notification-templates-api.d.ts +1 -1
- package/dist/api/notification-templates-api.js +1 -1
- package/dist/api/notifications-api.d.ts +1 -1
- package/dist/api/notifications-api.js +1 -1
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/base.d.ts +3 -2
- package/dist/base.js +2 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/complete-email-verification-dto.d.ts +30 -0
- package/dist/models/complete-email-verification-dto.js +15 -0
- package/dist/models/complete-email-verification-response-class.d.ts +24 -0
- package/dist/models/complete-email-verification-response-class.js +15 -0
- package/dist/models/create-layout-request-dto.d.ts +1 -1
- package/dist/models/create-layout-request-dto.js +1 -1
- package/dist/models/create-layout-response-class.d.ts +1 -1
- package/dist/models/create-layout-response-class.js +1 -1
- package/dist/models/create-notification-template-request-dto.d.ts +1 -1
- package/dist/models/create-notification-template-request-dto.js +1 -1
- package/dist/models/create-notification-template-response-class.d.ts +1 -1
- package/dist/models/create-notification-template-response-class.js +1 -1
- package/dist/models/delete-layout-request-dto.d.ts +1 -1
- package/dist/models/delete-layout-request-dto.js +1 -1
- package/dist/models/delete-notification-template-request-dto.d.ts +1 -1
- package/dist/models/delete-notification-template-request-dto.js +1 -1
- package/dist/models/get-layout-request-dto.d.ts +1 -1
- package/dist/models/get-layout-request-dto.js +1 -1
- package/dist/models/get-layout-response-class.d.ts +1 -1
- package/dist/models/get-layout-response-class.js +1 -1
- package/dist/models/get-notification-template-request-dto.d.ts +1 -1
- package/dist/models/get-notification-template-request-dto.js +1 -1
- package/dist/models/get-notification-template-response-class.d.ts +1 -1
- package/dist/models/get-notification-template-response-class.js +1 -1
- package/dist/models/html-template-class.d.ts +1 -1
- package/dist/models/html-template-class.js +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/initiate-email-verification-dto.d.ts +30 -0
- package/dist/models/initiate-email-verification-dto.js +15 -0
- package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
- package/dist/models/initiate-email-verification-response-class.js +15 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/layout-class.d.ts +1 -1
- package/dist/models/layout-class.js +1 -1
- package/dist/models/list-layouts-response-class.d.ts +1 -1
- package/dist/models/list-layouts-response-class.js +1 -1
- package/dist/models/list-notification-templates-response-class.d.ts +1 -1
- package/dist/models/list-notification-templates-response-class.js +1 -1
- package/dist/models/notification-template-class.d.ts +1 -1
- package/dist/models/notification-template-class.js +1 -1
- package/dist/models/send-notification-request-dto.d.ts +1 -1
- package/dist/models/send-notification-request-dto.js +1 -1
- package/dist/models/send-notification-response-class.d.ts +1 -1
- package/dist/models/send-notification-response-class.js +1 -1
- package/dist/models/update-html-template-request-dto.d.ts +1 -1
- package/dist/models/update-html-template-request-dto.js +1 -1
- package/dist/models/update-layout-request-dto.d.ts +1 -1
- package/dist/models/update-layout-request-dto.js +1 -1
- package/dist/models/update-layout-response-class.d.ts +1 -1
- package/dist/models/update-layout-response-class.js +1 -1
- package/dist/models/update-notification-template-request-dto.d.ts +1 -1
- package/dist/models/update-notification-template-request-dto.js +1 -1
- package/dist/models/update-notification-template-response-class.d.ts +1 -1
- package/dist/models/update-notification-template-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/complete-email-verification-dto.ts +36 -0
- package/models/complete-email-verification-response-class.ts +30 -0
- package/models/create-layout-request-dto.ts +1 -1
- package/models/create-layout-response-class.ts +1 -1
- package/models/create-notification-template-request-dto.ts +1 -1
- package/models/create-notification-template-response-class.ts +1 -1
- package/models/delete-layout-request-dto.ts +1 -1
- package/models/delete-notification-template-request-dto.ts +1 -1
- package/models/get-layout-request-dto.ts +1 -1
- package/models/get-layout-response-class.ts +1 -1
- package/models/get-notification-template-request-dto.ts +1 -1
- package/models/get-notification-template-response-class.ts +1 -1
- package/models/html-template-class.ts +1 -1
- package/models/index.ts +6 -0
- package/models/initiate-email-verification-dto.ts +36 -0
- package/models/initiate-email-verification-response-class.ts +30 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/layout-class.ts +1 -1
- package/models/list-layouts-response-class.ts +1 -1
- package/models/list-notification-templates-response-class.ts +1 -1
- package/models/notification-template-class.ts +1 -1
- package/models/send-notification-request-dto.ts +1 -1
- package/models/send-notification-response-class.ts +1 -1
- package/models/update-html-template-request-dto.ts +1 -1
- package/models/update-layout-request-dto.ts +1 -1
- package/models/update-layout-response-class.ts +1 -1
- package/models/update-notification-template-request-dto.ts +1 -1
- package/models/update-notification-template-response-class.ts +1 -1
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/default-api.ts
|
|
7
|
+
api/email-verifications-api.ts
|
|
6
8
|
api/layouts-api.ts
|
|
7
9
|
api/notification-templates-api.ts
|
|
8
10
|
api/notifications-api.ts
|
|
@@ -11,6 +13,8 @@ common.ts
|
|
|
11
13
|
configuration.ts
|
|
12
14
|
git_push.sh
|
|
13
15
|
index.ts
|
|
16
|
+
models/complete-email-verification-dto.ts
|
|
17
|
+
models/complete-email-verification-response-class.ts
|
|
14
18
|
models/create-layout-request-dto.ts
|
|
15
19
|
models/create-layout-response-class.ts
|
|
16
20
|
models/create-notification-template-request-dto.ts
|
|
@@ -23,6 +27,10 @@ models/get-notification-template-request-dto.ts
|
|
|
23
27
|
models/get-notification-template-response-class.ts
|
|
24
28
|
models/html-template-class.ts
|
|
25
29
|
models/index.ts
|
|
30
|
+
models/initiate-email-verification-dto.ts
|
|
31
|
+
models/initiate-email-verification-response-class.ts
|
|
32
|
+
models/inline-response200.ts
|
|
33
|
+
models/inline-response503.ts
|
|
26
34
|
models/layout-class.ts
|
|
27
35
|
models/list-layouts-response-class.ts
|
|
28
36
|
models/list-notification-templates-response-class.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/notification-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/notification-sdk-node@1.1.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/notification-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/notification-sdk-node@1.1.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `LayoutApi`.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService 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
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DefaultApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/notificationservice/health`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
let baseAccessToken;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
baseAccessToken = configuration.accessToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DefaultApi - functional programming interface
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
77
|
+
return {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
84
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
85
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* DefaultApi - factory interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
103
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* DefaultApi - object-oriented interface
|
|
110
|
+
* @export
|
|
111
|
+
* @class DefaultApi
|
|
112
|
+
* @extends {BaseAPI}
|
|
113
|
+
*/
|
|
114
|
+
export class DefaultApi extends BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof DefaultApi
|
|
120
|
+
*/
|
|
121
|
+
public check(options?: AxiosRequestConfig) {
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService 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 { CompleteEmailVerificationDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CompleteEmailVerificationResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { InitiateEmailVerificationDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { InitiateEmailVerificationResponseClass } from '../models';
|
|
31
|
+
// URLSearchParams not necessarily used
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { URL, URLSearchParams } from 'url';
|
|
34
|
+
const FormData = require('form-data');
|
|
35
|
+
/**
|
|
36
|
+
* EmailVerificationsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const EmailVerificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
44
|
+
* @param {string} [authorization] Bearer Token
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
completeEmailVerification: async (completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
// verify required parameter 'completeEmailVerificationDto' is not null or undefined
|
|
50
|
+
assertParamExists('completeEmailVerification', 'completeEmailVerificationDto', completeEmailVerificationDto)
|
|
51
|
+
const localVarPath = `/notificationservice/v1/email-verification/complete`;
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
let baseAccessToken;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
baseAccessToken = configuration.accessToken;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
// authentication bearer required
|
|
66
|
+
// http bearer authentication required
|
|
67
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
|
+
|
|
69
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
76
|
+
|
|
77
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeEmailVerificationDto, localVarRequestOptions, configuration)
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
url: toPathString(localVarUrlObj),
|
|
84
|
+
options: localVarRequestOptions,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
90
|
+
* @param {string} [authorization] Bearer Token
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
initiateEmailVerification: async (initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'initiateEmailVerificationDto' is not null or undefined
|
|
96
|
+
assertParamExists('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto)
|
|
97
|
+
const localVarPath = `/notificationservice/v1/email-verification/initiate`;
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
let baseAccessToken;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
baseAccessToken = configuration.accessToken;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
108
|
+
const localVarHeaderParameter = {} as any;
|
|
109
|
+
const localVarQueryParameter = {} as any;
|
|
110
|
+
|
|
111
|
+
// authentication bearer required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
114
|
+
|
|
115
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
116
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
122
|
+
|
|
123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateEmailVerificationDto, localVarRequestOptions, configuration)
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* EmailVerificationsApi - functional programming interface
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export const EmailVerificationsApiFp = function(configuration?: Configuration) {
|
|
141
|
+
const localVarAxiosParamCreator = EmailVerificationsApiAxiosParamCreator(configuration)
|
|
142
|
+
return {
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
146
|
+
* @param {string} [authorization] Bearer Token
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
async completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteEmailVerificationResponseClass>> {
|
|
151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completeEmailVerification(completeEmailVerificationDto, authorization, options);
|
|
152
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
157
|
+
* @param {string} [authorization] Bearer Token
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
async initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateEmailVerificationResponseClass>> {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateEmailVerification(initiateEmailVerificationDto, authorization, options);
|
|
163
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* EmailVerificationsApi - factory interface
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export const EmailVerificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
173
|
+
const localVarFp = EmailVerificationsApiFp(configuration)
|
|
174
|
+
return {
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
178
|
+
* @param {string} [authorization] Bearer Token
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<CompleteEmailVerificationResponseClass> {
|
|
183
|
+
return localVarFp.completeEmailVerification(completeEmailVerificationDto, authorization, options).then((request) => request(axios, basePath));
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
188
|
+
* @param {string} [authorization] Bearer Token
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<InitiateEmailVerificationResponseClass> {
|
|
193
|
+
return localVarFp.initiateEmailVerification(initiateEmailVerificationDto, authorization, options).then((request) => request(axios, basePath));
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for completeEmailVerification operation in EmailVerificationsApi.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface EmailVerificationsApiCompleteEmailVerificationRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface EmailVerificationsApiCompleteEmailVerificationRequest {
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {CompleteEmailVerificationDto}
|
|
207
|
+
* @memberof EmailVerificationsApiCompleteEmailVerification
|
|
208
|
+
*/
|
|
209
|
+
readonly completeEmailVerificationDto: CompleteEmailVerificationDto
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Bearer Token
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof EmailVerificationsApiCompleteEmailVerification
|
|
215
|
+
*/
|
|
216
|
+
readonly authorization?: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Request parameters for initiateEmailVerification operation in EmailVerificationsApi.
|
|
221
|
+
* @export
|
|
222
|
+
* @interface EmailVerificationsApiInitiateEmailVerificationRequest
|
|
223
|
+
*/
|
|
224
|
+
export interface EmailVerificationsApiInitiateEmailVerificationRequest {
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {InitiateEmailVerificationDto}
|
|
228
|
+
* @memberof EmailVerificationsApiInitiateEmailVerification
|
|
229
|
+
*/
|
|
230
|
+
readonly initiateEmailVerificationDto: InitiateEmailVerificationDto
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Bearer Token
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof EmailVerificationsApiInitiateEmailVerification
|
|
236
|
+
*/
|
|
237
|
+
readonly authorization?: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* EmailVerificationsApi - object-oriented interface
|
|
242
|
+
* @export
|
|
243
|
+
* @class EmailVerificationsApi
|
|
244
|
+
* @extends {BaseAPI}
|
|
245
|
+
*/
|
|
246
|
+
export class EmailVerificationsApi extends BaseAPI {
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @param {EmailVerificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
* @memberof EmailVerificationsApi
|
|
253
|
+
*/
|
|
254
|
+
public completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
255
|
+
return EmailVerificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @param {EmailVerificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof EmailVerificationsApi
|
|
264
|
+
*/
|
|
265
|
+
public initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
266
|
+
return EmailVerificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
267
|
+
}
|
|
268
|
+
}
|
package/api/layouts-api.ts
CHANGED
package/api/notifications-api.ts
CHANGED
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL NotificationService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -24,11 +24,15 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { DefaultApi } from './api';
|
|
28
|
+
import { EmailVerificationsApi } from './api';
|
|
27
29
|
import { LayoutsApi } from './api';
|
|
28
30
|
import { NotificationTemplatesApi } from './api';
|
|
29
31
|
import { NotificationsApi } from './api';
|
|
30
32
|
|
|
31
33
|
|
|
34
|
+
export * from './api/default-api';
|
|
35
|
+
export * from './api/email-verifications-api';
|
|
32
36
|
export * from './api/layouts-api';
|
|
33
37
|
export * from './api/notification-templates-api';
|
|
34
38
|
export * from './api/notifications-api';
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL NotificationService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -48,6 +48,7 @@ export enum Environment {
|
|
|
48
48
|
Production = 'https://apiv2.emil.de',
|
|
49
49
|
Test = 'https://apiv2-test.emil.de',
|
|
50
50
|
Development = 'https://apiv2-dev.emil.de',
|
|
51
|
+
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
let _retry_count = 0
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL NotificationService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -144,7 +144,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
144
144
|
* The EMIL NotificationService API description
|
|
145
145
|
*
|
|
146
146
|
* The version of the OpenAPI document: 1.0
|
|
147
|
-
*
|
|
147
|
+
* Contact: kontakt@emil.de
|
|
148
148
|
*
|
|
149
149
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
150
150
|
* https://openapi-generator.tech
|
package/configuration.ts
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DefaultApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class DefaultApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof DefaultApi
|
|
64
|
+
*/
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
+
}
|