@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.
Files changed (120) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +124 -0
  4. package/api/email-verifications-api.ts +268 -0
  5. package/api/layouts-api.ts +1 -1
  6. package/api/notification-templates-api.ts +1 -1
  7. package/api/notifications-api.ts +1 -1
  8. package/api.ts +5 -1
  9. package/base.ts +2 -1
  10. package/common.ts +2 -2
  11. package/configuration.ts +1 -1
  12. package/dist/api/default-api.d.ts +66 -0
  13. package/dist/api/default-api.js +200 -0
  14. package/dist/api/email-verifications-api.d.ts +146 -0
  15. package/dist/api/email-verifications-api.js +313 -0
  16. package/dist/api/layouts-api.d.ts +1 -1
  17. package/dist/api/layouts-api.js +1 -1
  18. package/dist/api/notification-templates-api.d.ts +1 -1
  19. package/dist/api/notification-templates-api.js +1 -1
  20. package/dist/api/notifications-api.d.ts +1 -1
  21. package/dist/api/notifications-api.js +1 -1
  22. package/dist/api.d.ts +3 -1
  23. package/dist/api.js +3 -1
  24. package/dist/base.d.ts +3 -2
  25. package/dist/base.js +2 -1
  26. package/dist/common.d.ts +2 -2
  27. package/dist/common.js +1 -1
  28. package/dist/configuration.d.ts +1 -1
  29. package/dist/configuration.js +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/models/complete-email-verification-dto.d.ts +30 -0
  33. package/dist/models/complete-email-verification-dto.js +15 -0
  34. package/dist/models/complete-email-verification-response-class.d.ts +24 -0
  35. package/dist/models/complete-email-verification-response-class.js +15 -0
  36. package/dist/models/create-layout-request-dto.d.ts +1 -1
  37. package/dist/models/create-layout-request-dto.js +1 -1
  38. package/dist/models/create-layout-response-class.d.ts +1 -1
  39. package/dist/models/create-layout-response-class.js +1 -1
  40. package/dist/models/create-notification-template-request-dto.d.ts +1 -1
  41. package/dist/models/create-notification-template-request-dto.js +1 -1
  42. package/dist/models/create-notification-template-response-class.d.ts +1 -1
  43. package/dist/models/create-notification-template-response-class.js +1 -1
  44. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  45. package/dist/models/delete-layout-request-dto.js +1 -1
  46. package/dist/models/delete-notification-template-request-dto.d.ts +1 -1
  47. package/dist/models/delete-notification-template-request-dto.js +1 -1
  48. package/dist/models/get-layout-request-dto.d.ts +1 -1
  49. package/dist/models/get-layout-request-dto.js +1 -1
  50. package/dist/models/get-layout-response-class.d.ts +1 -1
  51. package/dist/models/get-layout-response-class.js +1 -1
  52. package/dist/models/get-notification-template-request-dto.d.ts +1 -1
  53. package/dist/models/get-notification-template-request-dto.js +1 -1
  54. package/dist/models/get-notification-template-response-class.d.ts +1 -1
  55. package/dist/models/get-notification-template-response-class.js +1 -1
  56. package/dist/models/html-template-class.d.ts +1 -1
  57. package/dist/models/html-template-class.js +1 -1
  58. package/dist/models/index.d.ts +6 -0
  59. package/dist/models/index.js +6 -0
  60. package/dist/models/initiate-email-verification-dto.d.ts +30 -0
  61. package/dist/models/initiate-email-verification-dto.js +15 -0
  62. package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
  63. package/dist/models/initiate-email-verification-response-class.js +15 -0
  64. package/dist/models/inline-response200.d.ts +54 -0
  65. package/dist/models/inline-response200.js +15 -0
  66. package/dist/models/inline-response503.d.ts +54 -0
  67. package/dist/models/inline-response503.js +15 -0
  68. package/dist/models/layout-class.d.ts +1 -1
  69. package/dist/models/layout-class.js +1 -1
  70. package/dist/models/list-layouts-response-class.d.ts +1 -1
  71. package/dist/models/list-layouts-response-class.js +1 -1
  72. package/dist/models/list-notification-templates-response-class.d.ts +1 -1
  73. package/dist/models/list-notification-templates-response-class.js +1 -1
  74. package/dist/models/notification-template-class.d.ts +1 -1
  75. package/dist/models/notification-template-class.js +1 -1
  76. package/dist/models/send-notification-request-dto.d.ts +1 -1
  77. package/dist/models/send-notification-request-dto.js +1 -1
  78. package/dist/models/send-notification-response-class.d.ts +1 -1
  79. package/dist/models/send-notification-response-class.js +1 -1
  80. package/dist/models/update-html-template-request-dto.d.ts +1 -1
  81. package/dist/models/update-html-template-request-dto.js +1 -1
  82. package/dist/models/update-layout-request-dto.d.ts +1 -1
  83. package/dist/models/update-layout-request-dto.js +1 -1
  84. package/dist/models/update-layout-response-class.d.ts +1 -1
  85. package/dist/models/update-layout-response-class.js +1 -1
  86. package/dist/models/update-notification-template-request-dto.d.ts +1 -1
  87. package/dist/models/update-notification-template-request-dto.js +1 -1
  88. package/dist/models/update-notification-template-response-class.d.ts +1 -1
  89. package/dist/models/update-notification-template-response-class.js +1 -1
  90. package/index.ts +1 -1
  91. package/models/complete-email-verification-dto.ts +36 -0
  92. package/models/complete-email-verification-response-class.ts +30 -0
  93. package/models/create-layout-request-dto.ts +1 -1
  94. package/models/create-layout-response-class.ts +1 -1
  95. package/models/create-notification-template-request-dto.ts +1 -1
  96. package/models/create-notification-template-response-class.ts +1 -1
  97. package/models/delete-layout-request-dto.ts +1 -1
  98. package/models/delete-notification-template-request-dto.ts +1 -1
  99. package/models/get-layout-request-dto.ts +1 -1
  100. package/models/get-layout-response-class.ts +1 -1
  101. package/models/get-notification-template-request-dto.ts +1 -1
  102. package/models/get-notification-template-response-class.ts +1 -1
  103. package/models/html-template-class.ts +1 -1
  104. package/models/index.ts +6 -0
  105. package/models/initiate-email-verification-dto.ts +36 -0
  106. package/models/initiate-email-verification-response-class.ts +30 -0
  107. package/models/inline-response200.ts +48 -0
  108. package/models/inline-response503.ts +48 -0
  109. package/models/layout-class.ts +1 -1
  110. package/models/list-layouts-response-class.ts +1 -1
  111. package/models/list-notification-templates-response-class.ts +1 -1
  112. package/models/notification-template-class.ts +1 -1
  113. package/models/send-notification-request-dto.ts +1 -1
  114. package/models/send-notification-response-class.ts +1 -1
  115. package/models/update-html-template-request-dto.ts +1 -1
  116. package/models/update-layout-request-dto.ts +1 -1
  117. package/models/update-layout-response-class.ts +1 -1
  118. package/models/update-notification-template-request-dto.ts +1 -1
  119. package/models/update-notification-template-response-class.ts +1 -1
  120. package/package.json +2 -2
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * DefaultApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var DefaultApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ check: function (options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ localVarPath = "/notificationservice/health";
110
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
116
+ localVarHeaderParameter = {};
117
+ localVarQueryParameter = {};
118
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
119
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
121
+ return [2 /*return*/, {
122
+ url: (0, common_1.toPathString)(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ }];
125
+ });
126
+ });
127
+ },
128
+ };
129
+ };
130
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
131
+ /**
132
+ * DefaultApi - functional programming interface
133
+ * @export
134
+ */
135
+ var DefaultApiFp = function (configuration) {
136
+ var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
137
+ return {
138
+ /**
139
+ *
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ check: function (options) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ var localVarAxiosArgs;
146
+ return __generator(this, function (_a) {
147
+ switch (_a.label) {
148
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
149
+ case 1:
150
+ localVarAxiosArgs = _a.sent();
151
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
152
+ }
153
+ });
154
+ });
155
+ },
156
+ };
157
+ };
158
+ exports.DefaultApiFp = DefaultApiFp;
159
+ /**
160
+ * DefaultApi - factory interface
161
+ * @export
162
+ */
163
+ var DefaultApiFactory = function (configuration, basePath, axios) {
164
+ var localVarFp = (0, exports.DefaultApiFp)(configuration);
165
+ return {
166
+ /**
167
+ *
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ check: function (options) {
172
+ return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
173
+ },
174
+ };
175
+ };
176
+ exports.DefaultApiFactory = DefaultApiFactory;
177
+ /**
178
+ * DefaultApi - object-oriented interface
179
+ * @export
180
+ * @class DefaultApi
181
+ * @extends {BaseAPI}
182
+ */
183
+ var DefaultApi = /** @class */ (function (_super) {
184
+ __extends(DefaultApi, _super);
185
+ function DefaultApi() {
186
+ return _super !== null && _super.apply(this, arguments) || this;
187
+ }
188
+ /**
189
+ *
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ * @memberof DefaultApi
193
+ */
194
+ DefaultApi.prototype.check = function (options) {
195
+ var _this = this;
196
+ return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
197
+ };
198
+ return DefaultApi;
199
+ }(base_1.BaseAPI));
200
+ exports.DefaultApi = DefaultApi;
@@ -0,0 +1,146 @@
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 { CompleteEmailVerificationDto } from '../models';
16
+ import { CompleteEmailVerificationResponseClass } from '../models';
17
+ import { InitiateEmailVerificationDto } from '../models';
18
+ import { InitiateEmailVerificationResponseClass } from '../models';
19
+ /**
20
+ * EmailVerificationsApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const EmailVerificationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
27
+ * @param {string} [authorization] Bearer Token
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ completeEmailVerification: (completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ *
34
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
35
+ * @param {string} [authorization] Bearer Token
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ initiateEmailVerification: (initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ };
41
+ /**
42
+ * EmailVerificationsApi - functional programming interface
43
+ * @export
44
+ */
45
+ export declare const EmailVerificationsApiFp: (configuration?: Configuration) => {
46
+ /**
47
+ *
48
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
49
+ * @param {string} [authorization] Bearer Token
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteEmailVerificationResponseClass>>;
54
+ /**
55
+ *
56
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
57
+ * @param {string} [authorization] Bearer Token
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateEmailVerificationResponseClass>>;
62
+ };
63
+ /**
64
+ * EmailVerificationsApi - factory interface
65
+ * @export
66
+ */
67
+ export declare const EmailVerificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
68
+ /**
69
+ *
70
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
71
+ * @param {string} [authorization] Bearer Token
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<CompleteEmailVerificationResponseClass>;
76
+ /**
77
+ *
78
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
79
+ * @param {string} [authorization] Bearer Token
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<InitiateEmailVerificationResponseClass>;
84
+ };
85
+ /**
86
+ * Request parameters for completeEmailVerification operation in EmailVerificationsApi.
87
+ * @export
88
+ * @interface EmailVerificationsApiCompleteEmailVerificationRequest
89
+ */
90
+ export interface EmailVerificationsApiCompleteEmailVerificationRequest {
91
+ /**
92
+ *
93
+ * @type {CompleteEmailVerificationDto}
94
+ * @memberof EmailVerificationsApiCompleteEmailVerification
95
+ */
96
+ readonly completeEmailVerificationDto: CompleteEmailVerificationDto;
97
+ /**
98
+ * Bearer Token
99
+ * @type {string}
100
+ * @memberof EmailVerificationsApiCompleteEmailVerification
101
+ */
102
+ readonly authorization?: string;
103
+ }
104
+ /**
105
+ * Request parameters for initiateEmailVerification operation in EmailVerificationsApi.
106
+ * @export
107
+ * @interface EmailVerificationsApiInitiateEmailVerificationRequest
108
+ */
109
+ export interface EmailVerificationsApiInitiateEmailVerificationRequest {
110
+ /**
111
+ *
112
+ * @type {InitiateEmailVerificationDto}
113
+ * @memberof EmailVerificationsApiInitiateEmailVerification
114
+ */
115
+ readonly initiateEmailVerificationDto: InitiateEmailVerificationDto;
116
+ /**
117
+ * Bearer Token
118
+ * @type {string}
119
+ * @memberof EmailVerificationsApiInitiateEmailVerification
120
+ */
121
+ readonly authorization?: string;
122
+ }
123
+ /**
124
+ * EmailVerificationsApi - object-oriented interface
125
+ * @export
126
+ * @class EmailVerificationsApi
127
+ * @extends {BaseAPI}
128
+ */
129
+ export declare class EmailVerificationsApi extends BaseAPI {
130
+ /**
131
+ *
132
+ * @param {EmailVerificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ * @memberof EmailVerificationsApi
136
+ */
137
+ completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any>>;
138
+ /**
139
+ *
140
+ * @param {EmailVerificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ * @memberof EmailVerificationsApi
144
+ */
145
+ initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any>>;
146
+ }
@@ -0,0 +1,313 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.EmailVerificationsApi = exports.EmailVerificationsApiFactory = exports.EmailVerificationsApiFp = exports.EmailVerificationsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * EmailVerificationsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'completeEmailVerificationDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('completeEmailVerification', 'completeEmailVerificationDto', completeEmailVerificationDto);
115
+ localVarPath = "/notificationservice/v1/email-verification/complete";
116
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeEmailVerificationDto, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ *
149
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
155
+ if (options === void 0) { options = {}; }
156
+ return __awaiter(_this, void 0, void 0, function () {
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0:
161
+ // verify required parameter 'initiateEmailVerificationDto' is not null or undefined
162
+ (0, common_1.assertParamExists)('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto);
163
+ localVarPath = "/notificationservice/v1/email-verification/initiate";
164
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ baseAccessToken = configuration.accessToken;
168
+ }
169
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
170
+ localVarHeaderParameter = {};
171
+ localVarQueryParameter = {};
172
+ // authentication bearer required
173
+ // http bearer authentication required
174
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
175
+ case 1:
176
+ // authentication bearer required
177
+ // http bearer authentication required
178
+ _a.sent();
179
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
180
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
+ }
182
+ localVarHeaderParameter['Content-Type'] = 'application/json';
183
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateEmailVerificationDto, localVarRequestOptions, configuration);
187
+ return [2 /*return*/, {
188
+ url: (0, common_1.toPathString)(localVarUrlObj),
189
+ options: localVarRequestOptions,
190
+ }];
191
+ }
192
+ });
193
+ });
194
+ },
195
+ };
196
+ };
197
+ exports.EmailVerificationsApiAxiosParamCreator = EmailVerificationsApiAxiosParamCreator;
198
+ /**
199
+ * EmailVerificationsApi - functional programming interface
200
+ * @export
201
+ */
202
+ var EmailVerificationsApiFp = function (configuration) {
203
+ var localVarAxiosParamCreator = (0, exports.EmailVerificationsApiAxiosParamCreator)(configuration);
204
+ return {
205
+ /**
206
+ *
207
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
208
+ * @param {string} [authorization] Bearer Token
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
213
+ return __awaiter(this, void 0, void 0, function () {
214
+ var localVarAxiosArgs;
215
+ return __generator(this, function (_a) {
216
+ switch (_a.label) {
217
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completeEmailVerification(completeEmailVerificationDto, authorization, options)];
218
+ case 1:
219
+ localVarAxiosArgs = _a.sent();
220
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
221
+ }
222
+ });
223
+ });
224
+ },
225
+ /**
226
+ *
227
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
228
+ * @param {string} [authorization] Bearer Token
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ var localVarAxiosArgs;
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
237
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateEmailVerification(initiateEmailVerificationDto, authorization, options)];
238
+ case 1:
239
+ localVarAxiosArgs = _a.sent();
240
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
241
+ }
242
+ });
243
+ });
244
+ },
245
+ };
246
+ };
247
+ exports.EmailVerificationsApiFp = EmailVerificationsApiFp;
248
+ /**
249
+ * EmailVerificationsApi - factory interface
250
+ * @export
251
+ */
252
+ var EmailVerificationsApiFactory = function (configuration, basePath, axios) {
253
+ var localVarFp = (0, exports.EmailVerificationsApiFp)(configuration);
254
+ return {
255
+ /**
256
+ *
257
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
258
+ * @param {string} [authorization] Bearer Token
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
263
+ return localVarFp.completeEmailVerification(completeEmailVerificationDto, authorization, options).then(function (request) { return request(axios, basePath); });
264
+ },
265
+ /**
266
+ *
267
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
268
+ * @param {string} [authorization] Bearer Token
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
273
+ return localVarFp.initiateEmailVerification(initiateEmailVerificationDto, authorization, options).then(function (request) { return request(axios, basePath); });
274
+ },
275
+ };
276
+ };
277
+ exports.EmailVerificationsApiFactory = EmailVerificationsApiFactory;
278
+ /**
279
+ * EmailVerificationsApi - object-oriented interface
280
+ * @export
281
+ * @class EmailVerificationsApi
282
+ * @extends {BaseAPI}
283
+ */
284
+ var EmailVerificationsApi = /** @class */ (function (_super) {
285
+ __extends(EmailVerificationsApi, _super);
286
+ function EmailVerificationsApi() {
287
+ return _super !== null && _super.apply(this, arguments) || this;
288
+ }
289
+ /**
290
+ *
291
+ * @param {EmailVerificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ * @memberof EmailVerificationsApi
295
+ */
296
+ EmailVerificationsApi.prototype.completeEmailVerification = function (requestParameters, options) {
297
+ var _this = this;
298
+ return (0, exports.EmailVerificationsApiFp)(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
299
+ };
300
+ /**
301
+ *
302
+ * @param {EmailVerificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ * @memberof EmailVerificationsApi
306
+ */
307
+ EmailVerificationsApi.prototype.initiateEmailVerification = function (requestParameters, options) {
308
+ var _this = this;
309
+ return (0, exports.EmailVerificationsApiFp)(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
310
+ };
311
+ return EmailVerificationsApi;
312
+ }(base_1.BaseAPI));
313
+ exports.EmailVerificationsApi = EmailVerificationsApi;
@@ -3,7 +3,7 @@
3
3
  * The EMIL NotificationService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -6,7 +6,7 @@
6
6
  * The EMIL NotificationService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech