@emilgroup/public-api-sdk-node 1.26.0 → 1.27.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 (172) hide show
  1. package/README.md +2 -2
  2. package/dist/api/address-completions-validations-api.d.ts +215 -0
  3. package/dist/api/address-completions-validations-api.js +373 -0
  4. package/dist/api/default-api.d.ts +66 -0
  5. package/dist/api/default-api.js +200 -0
  6. package/dist/api/documents-api.d.ts +539 -0
  7. package/dist/api/documents-api.js +855 -0
  8. package/dist/api/leads-api.d.ts +441 -0
  9. package/dist/api/leads-api.js +791 -0
  10. package/dist/api/notifications-api.d.ts +211 -0
  11. package/dist/api/notifications-api.js +414 -0
  12. package/dist/api/payments-setup-api.d.ts +228 -0
  13. package/dist/api/payments-setup-api.js +426 -0
  14. package/dist/api/products-api.d.ts +563 -0
  15. package/dist/api/products-api.js +926 -0
  16. package/dist/api.d.ts +18 -0
  17. package/dist/api.js +36 -0
  18. package/dist/base.d.ts +78 -0
  19. package/dist/base.js +394 -0
  20. package/dist/common.d.ts +92 -0
  21. package/dist/common.js +277 -0
  22. package/dist/configuration.d.ts +90 -0
  23. package/dist/configuration.js +44 -0
  24. package/dist/index.d.ts +15 -0
  25. package/dist/index.js +36 -0
  26. package/dist/models/address-completion-item-class.d.ts +49 -0
  27. package/dist/models/address-completion-item-class.js +15 -0
  28. package/dist/models/address-completion-response-class.d.ts +25 -0
  29. package/dist/models/address-completion-response-class.js +15 -0
  30. package/dist/models/address-field-score-class.d.ts +48 -0
  31. package/dist/models/address-field-score-class.js +15 -0
  32. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  33. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  34. package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
  35. package/dist/models/calculate-product-fields-response-class.js +15 -0
  36. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  37. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  38. package/dist/models/complete-email-verification-dto.d.ts +30 -0
  39. package/dist/models/complete-email-verification-dto.js +15 -0
  40. package/dist/models/complete-email-verification-response-class.d.ts +24 -0
  41. package/dist/models/complete-email-verification-response-class.js +15 -0
  42. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  43. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  44. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  45. package/dist/models/complete-payment-setup-response-class.js +15 -0
  46. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  47. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  48. package/dist/models/create-account-request-dto.d.ts +132 -0
  49. package/dist/models/create-account-request-dto.js +31 -0
  50. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  51. package/dist/models/create-bank-account-request-dto.js +15 -0
  52. package/dist/models/create-custom-application-request-dto.d.ts +35 -0
  53. package/dist/models/create-custom-application-request-dto.js +20 -0
  54. package/dist/models/create-custom-application-response-class.d.ts +24 -0
  55. package/dist/models/create-custom-application-response-class.js +15 -0
  56. package/dist/models/create-document-request-dto.d.ts +132 -0
  57. package/dist/models/create-document-request-dto.js +43 -0
  58. package/dist/models/create-estimated-invoice-request-dto.d.ts +55 -0
  59. package/dist/models/create-estimated-invoice-request-dto.js +20 -0
  60. package/dist/models/create-estimated-invoice-response-class.d.ts +38 -0
  61. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  62. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  63. package/dist/models/create-lead-async-response-class.js +15 -0
  64. package/dist/models/create-lead-request-dto.d.ts +108 -0
  65. package/dist/models/create-lead-request-dto.js +15 -0
  66. package/dist/models/create-lead-response-class.d.ts +25 -0
  67. package/dist/models/create-lead-response-class.js +15 -0
  68. package/dist/models/create-payment-method-request-dto.d.ts +36 -0
  69. package/dist/models/create-payment-method-request-dto.js +20 -0
  70. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  71. package/dist/models/create-presigned-post-request-dto.js +52 -0
  72. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  73. package/dist/models/create-presigned-post-response-class.js +15 -0
  74. package/dist/models/document-class.d.ts +144 -0
  75. package/dist/models/document-class.js +49 -0
  76. package/dist/models/get-custom-css-response-class.d.ts +24 -0
  77. package/dist/models/get-custom-css-response-class.js +15 -0
  78. package/dist/models/get-lead-response-class.d.ts +25 -0
  79. package/dist/models/get-lead-response-class.js +15 -0
  80. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  81. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  82. package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
  83. package/dist/models/get-public-psp-settings-response-class.js +15 -0
  84. package/dist/models/index.d.ts +72 -0
  85. package/dist/models/index.js +88 -0
  86. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  87. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  88. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  89. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  90. package/dist/models/initiate-email-verification-dto.d.ts +30 -0
  91. package/dist/models/initiate-email-verification-dto.js +15 -0
  92. package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
  93. package/dist/models/initiate-email-verification-response-class.js +15 -0
  94. package/dist/models/initiate-lead-response-class.d.ts +24 -0
  95. package/dist/models/initiate-lead-response-class.js +15 -0
  96. package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
  97. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  98. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  99. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  100. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  101. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  102. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  103. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  104. package/dist/models/inline-response200.d.ts +54 -0
  105. package/dist/models/inline-response200.js +15 -0
  106. package/dist/models/inline-response503.d.ts +54 -0
  107. package/dist/models/inline-response503.js +15 -0
  108. package/dist/models/insured-object-class.d.ts +85 -0
  109. package/dist/models/insured-object-class.js +15 -0
  110. package/dist/models/insured-object-type-class.d.ts +48 -0
  111. package/dist/models/insured-object-type-class.js +15 -0
  112. package/dist/models/invoice-class.d.ts +134 -0
  113. package/dist/models/invoice-class.js +15 -0
  114. package/dist/models/invoice-item-class.d.ts +120 -0
  115. package/dist/models/invoice-item-class.js +15 -0
  116. package/dist/models/invoice-status-class.d.ts +42 -0
  117. package/dist/models/invoice-status-class.js +15 -0
  118. package/dist/models/lead-account-class.d.ts +109 -0
  119. package/dist/models/lead-account-class.js +22 -0
  120. package/dist/models/lead-bank-account-class.d.ts +30 -0
  121. package/dist/models/lead-bank-account-class.js +15 -0
  122. package/dist/models/lead-class.d.ts +109 -0
  123. package/dist/models/lead-class.js +15 -0
  124. package/dist/models/lead-policy-class.d.ts +43 -0
  125. package/dist/models/lead-policy-class.js +15 -0
  126. package/dist/models/lead-policy-object-class.d.ts +36 -0
  127. package/dist/models/lead-policy-object-class.js +15 -0
  128. package/dist/models/list-documents-response-class.d.ts +31 -0
  129. package/dist/models/list-documents-response-class.js +15 -0
  130. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  131. package/dist/models/list-product-documents-response-class.js +15 -0
  132. package/dist/models/list-products-response-class.d.ts +31 -0
  133. package/dist/models/list-products-response-class.js +15 -0
  134. package/dist/models/payment-method-class.d.ts +60 -0
  135. package/dist/models/payment-method-class.js +15 -0
  136. package/dist/models/policy-object-request-dto.d.ts +42 -0
  137. package/dist/models/policy-object-request-dto.js +15 -0
  138. package/dist/models/policy-object-response-class.d.ts +36 -0
  139. package/dist/models/policy-object-response-class.js +15 -0
  140. package/dist/models/premium-override-dto.d.ts +55 -0
  141. package/dist/models/premium-override-dto.js +27 -0
  142. package/dist/models/premium-override-request-dto.d.ts +25 -0
  143. package/dist/models/premium-override-request-dto.js +15 -0
  144. package/dist/models/product-class.d.ts +80 -0
  145. package/dist/models/product-class.js +15 -0
  146. package/dist/models/product-document-class.d.ts +111 -0
  147. package/dist/models/product-document-class.js +36 -0
  148. package/dist/models/product-factor-for-version-class.d.ts +60 -0
  149. package/dist/models/product-factor-for-version-class.js +15 -0
  150. package/dist/models/product-field-class.d.ts +132 -0
  151. package/dist/models/product-field-class.js +15 -0
  152. package/dist/models/product-version-class.d.ts +61 -0
  153. package/dist/models/product-version-class.js +22 -0
  154. package/dist/models/send-notification-request-dto.d.ts +36 -0
  155. package/dist/models/send-notification-request-dto.js +15 -0
  156. package/dist/models/send-notification-response-class.d.ts +24 -0
  157. package/dist/models/send-notification-response-class.js +15 -0
  158. package/dist/models/sepa-dto.d.ts +30 -0
  159. package/dist/models/sepa-dto.js +15 -0
  160. package/dist/models/structured-address-class.d.ts +54 -0
  161. package/dist/models/structured-address-class.js +15 -0
  162. package/dist/models/suggested-address-details-class.d.ts +90 -0
  163. package/dist/models/suggested-address-details-class.js +15 -0
  164. package/dist/models/update-lead-request-dto.d.ts +95 -0
  165. package/dist/models/update-lead-request-dto.js +15 -0
  166. package/dist/models/update-lead-response-class.d.ts +25 -0
  167. package/dist/models/update-lead-response-class.js +15 -0
  168. package/dist/models/uploaded-document-dto.d.ts +24 -0
  169. package/dist/models/uploaded-document-dto.js +15 -0
  170. package/dist/models/validate-address-response-class.d.ts +50 -0
  171. package/dist/models/validate-address-response-class.js +15 -0
  172. package/package.json +1 -1
@@ -0,0 +1,211 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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
+ import { SendNotificationRequestDto } from '../models';
20
+ import { SendNotificationResponseClass } from '../models';
21
+ /**
22
+ * NotificationsApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ * This validates a token provided by customer.
28
+ * @summary Complete Email Verification.
29
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
30
+ * @param {string} [authorization] Bearer Token
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ completeEmailVerification: (completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ * This sends an email to the specific recipient set to receive verification code.
37
+ * @summary Initiate Email Verification.
38
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
39
+ * @param {string} [authorization] Bearer Token
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ initiateEmailVerification: (initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
45
+ * This sends an email to the specific recipient set to receive customers\' messages.
46
+ * @summary Send an email.
47
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
48
+ * @param {string} [authorization] Bearer Token
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ sendNotification: (sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ };
54
+ /**
55
+ * NotificationsApi - functional programming interface
56
+ * @export
57
+ */
58
+ export declare const NotificationsApiFp: (configuration?: Configuration) => {
59
+ /**
60
+ * This validates a token provided by customer.
61
+ * @summary Complete Email Verification.
62
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
63
+ * @param {string} [authorization] Bearer Token
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteEmailVerificationResponseClass>>;
68
+ /**
69
+ * This sends an email to the specific recipient set to receive verification code.
70
+ * @summary Initiate Email Verification.
71
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
72
+ * @param {string} [authorization] Bearer Token
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateEmailVerificationResponseClass>>;
77
+ /**
78
+ * This sends an email to the specific recipient set to receive customers\' messages.
79
+ * @summary Send an email.
80
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
81
+ * @param {string} [authorization] Bearer Token
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendNotificationResponseClass>>;
86
+ };
87
+ /**
88
+ * NotificationsApi - factory interface
89
+ * @export
90
+ */
91
+ export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
92
+ /**
93
+ * This validates a token provided by customer.
94
+ * @summary Complete Email Verification.
95
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
96
+ * @param {string} [authorization] Bearer Token
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<CompleteEmailVerificationResponseClass>;
101
+ /**
102
+ * This sends an email to the specific recipient set to receive verification code.
103
+ * @summary Initiate Email Verification.
104
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
105
+ * @param {string} [authorization] Bearer Token
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<InitiateEmailVerificationResponseClass>;
110
+ /**
111
+ * This sends an email to the specific recipient set to receive customers\' messages.
112
+ * @summary Send an email.
113
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
114
+ * @param {string} [authorization] Bearer Token
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<SendNotificationResponseClass>;
119
+ };
120
+ /**
121
+ * Request parameters for completeEmailVerification operation in NotificationsApi.
122
+ * @export
123
+ * @interface NotificationsApiCompleteEmailVerificationRequest
124
+ */
125
+ export interface NotificationsApiCompleteEmailVerificationRequest {
126
+ /**
127
+ *
128
+ * @type {CompleteEmailVerificationDto}
129
+ * @memberof NotificationsApiCompleteEmailVerification
130
+ */
131
+ readonly completeEmailVerificationDto: CompleteEmailVerificationDto;
132
+ /**
133
+ * Bearer Token
134
+ * @type {string}
135
+ * @memberof NotificationsApiCompleteEmailVerification
136
+ */
137
+ readonly authorization?: string;
138
+ }
139
+ /**
140
+ * Request parameters for initiateEmailVerification operation in NotificationsApi.
141
+ * @export
142
+ * @interface NotificationsApiInitiateEmailVerificationRequest
143
+ */
144
+ export interface NotificationsApiInitiateEmailVerificationRequest {
145
+ /**
146
+ *
147
+ * @type {InitiateEmailVerificationDto}
148
+ * @memberof NotificationsApiInitiateEmailVerification
149
+ */
150
+ readonly initiateEmailVerificationDto: InitiateEmailVerificationDto;
151
+ /**
152
+ * Bearer Token
153
+ * @type {string}
154
+ * @memberof NotificationsApiInitiateEmailVerification
155
+ */
156
+ readonly authorization?: string;
157
+ }
158
+ /**
159
+ * Request parameters for sendNotification operation in NotificationsApi.
160
+ * @export
161
+ * @interface NotificationsApiSendNotificationRequest
162
+ */
163
+ export interface NotificationsApiSendNotificationRequest {
164
+ /**
165
+ *
166
+ * @type {SendNotificationRequestDto}
167
+ * @memberof NotificationsApiSendNotification
168
+ */
169
+ readonly sendNotificationRequestDto: SendNotificationRequestDto;
170
+ /**
171
+ * Bearer Token
172
+ * @type {string}
173
+ * @memberof NotificationsApiSendNotification
174
+ */
175
+ readonly authorization?: string;
176
+ }
177
+ /**
178
+ * NotificationsApi - object-oriented interface
179
+ * @export
180
+ * @class NotificationsApi
181
+ * @extends {BaseAPI}
182
+ */
183
+ export declare class NotificationsApi extends BaseAPI {
184
+ /**
185
+ * This validates a token provided by customer.
186
+ * @summary Complete Email Verification.
187
+ * @param {NotificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ * @memberof NotificationsApi
191
+ */
192
+ completeEmailVerification(requestParameters: NotificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any>>;
193
+ /**
194
+ * This sends an email to the specific recipient set to receive verification code.
195
+ * @summary Initiate Email Verification.
196
+ * @param {NotificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ * @memberof NotificationsApi
200
+ */
201
+ initiateEmailVerification(requestParameters: NotificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any>>;
202
+ /**
203
+ * This sends an email to the specific recipient set to receive customers\' messages.
204
+ * @summary Send an email.
205
+ * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ * @memberof NotificationsApi
209
+ */
210
+ sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendNotificationResponseClass, any>>;
211
+ }
@@ -0,0 +1,414 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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
+ * NotificationsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var NotificationsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This validates a token provided by customer.
101
+ * @summary Complete Email Verification.
102
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'completeEmailVerificationDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('completeEmailVerification', 'completeEmailVerificationDto', completeEmailVerificationDto);
116
+ localVarPath = "/publicapi/v1/email-verification/complete";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeEmailVerificationDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This sends an email to the specific recipient set to receive verification code.
150
+ * @summary Initiate Email Verification.
151
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'initiateEmailVerificationDto' is not null or undefined
164
+ (0, common_1.assertParamExists)('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto);
165
+ localVarPath = "/publicapi/v1/email-verification/initiate";
166
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
+ case 1:
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ _a.sent();
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ }
184
+ localVarHeaderParameter['Content-Type'] = 'application/json';
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateEmailVerificationDto, localVarRequestOptions, configuration);
189
+ return [2 /*return*/, {
190
+ url: (0, common_1.toPathString)(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ }];
193
+ }
194
+ });
195
+ });
196
+ },
197
+ /**
198
+ * This sends an email to the specific recipient set to receive customers\' messages.
199
+ * @summary Send an email.
200
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ sendNotification: function (sendNotificationRequestDto, authorization, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ // verify required parameter 'sendNotificationRequestDto' is not null or undefined
213
+ (0, common_1.assertParamExists)('sendNotification', 'sendNotificationRequestDto', sendNotificationRequestDto);
214
+ localVarPath = "/publicapi/v1/emails/send";
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
234
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendNotificationRequestDto, localVarRequestOptions, configuration);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ };
247
+ };
248
+ exports.NotificationsApiAxiosParamCreator = NotificationsApiAxiosParamCreator;
249
+ /**
250
+ * NotificationsApi - functional programming interface
251
+ * @export
252
+ */
253
+ var NotificationsApiFp = function (configuration) {
254
+ var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
255
+ return {
256
+ /**
257
+ * This validates a token provided by customer.
258
+ * @summary Complete Email Verification.
259
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
260
+ * @param {string} [authorization] Bearer Token
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
265
+ return __awaiter(this, void 0, void 0, function () {
266
+ var localVarAxiosArgs;
267
+ return __generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completeEmailVerification(completeEmailVerificationDto, authorization, options)];
270
+ case 1:
271
+ localVarAxiosArgs = _a.sent();
272
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
273
+ }
274
+ });
275
+ });
276
+ },
277
+ /**
278
+ * This sends an email to the specific recipient set to receive verification code.
279
+ * @summary Initiate Email Verification.
280
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
281
+ * @param {string} [authorization] Bearer Token
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
286
+ return __awaiter(this, void 0, void 0, function () {
287
+ var localVarAxiosArgs;
288
+ return __generator(this, function (_a) {
289
+ switch (_a.label) {
290
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateEmailVerification(initiateEmailVerificationDto, authorization, options)];
291
+ case 1:
292
+ localVarAxiosArgs = _a.sent();
293
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
294
+ }
295
+ });
296
+ });
297
+ },
298
+ /**
299
+ * This sends an email to the specific recipient set to receive customers\' messages.
300
+ * @summary Send an email.
301
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
302
+ * @param {string} [authorization] Bearer Token
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ sendNotification: function (sendNotificationRequestDto, authorization, options) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ var localVarAxiosArgs;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendNotification(sendNotificationRequestDto, authorization, options)];
312
+ case 1:
313
+ localVarAxiosArgs = _a.sent();
314
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
315
+ }
316
+ });
317
+ });
318
+ },
319
+ };
320
+ };
321
+ exports.NotificationsApiFp = NotificationsApiFp;
322
+ /**
323
+ * NotificationsApi - factory interface
324
+ * @export
325
+ */
326
+ var NotificationsApiFactory = function (configuration, basePath, axios) {
327
+ var localVarFp = (0, exports.NotificationsApiFp)(configuration);
328
+ return {
329
+ /**
330
+ * This validates a token provided by customer.
331
+ * @summary Complete Email Verification.
332
+ * @param {CompleteEmailVerificationDto} completeEmailVerificationDto
333
+ * @param {string} [authorization] Bearer Token
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
338
+ return localVarFp.completeEmailVerification(completeEmailVerificationDto, authorization, options).then(function (request) { return request(axios, basePath); });
339
+ },
340
+ /**
341
+ * This sends an email to the specific recipient set to receive verification code.
342
+ * @summary Initiate Email Verification.
343
+ * @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
344
+ * @param {string} [authorization] Bearer Token
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
349
+ return localVarFp.initiateEmailVerification(initiateEmailVerificationDto, authorization, options).then(function (request) { return request(axios, basePath); });
350
+ },
351
+ /**
352
+ * This sends an email to the specific recipient set to receive customers\' messages.
353
+ * @summary Send an email.
354
+ * @param {SendNotificationRequestDto} sendNotificationRequestDto
355
+ * @param {string} [authorization] Bearer Token
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ sendNotification: function (sendNotificationRequestDto, authorization, options) {
360
+ return localVarFp.sendNotification(sendNotificationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
361
+ },
362
+ };
363
+ };
364
+ exports.NotificationsApiFactory = NotificationsApiFactory;
365
+ /**
366
+ * NotificationsApi - object-oriented interface
367
+ * @export
368
+ * @class NotificationsApi
369
+ * @extends {BaseAPI}
370
+ */
371
+ var NotificationsApi = /** @class */ (function (_super) {
372
+ __extends(NotificationsApi, _super);
373
+ function NotificationsApi() {
374
+ return _super !== null && _super.apply(this, arguments) || this;
375
+ }
376
+ /**
377
+ * This validates a token provided by customer.
378
+ * @summary Complete Email Verification.
379
+ * @param {NotificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof NotificationsApi
383
+ */
384
+ NotificationsApi.prototype.completeEmailVerification = function (requestParameters, options) {
385
+ var _this = this;
386
+ return (0, exports.NotificationsApiFp)(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
387
+ };
388
+ /**
389
+ * This sends an email to the specific recipient set to receive verification code.
390
+ * @summary Initiate Email Verification.
391
+ * @param {NotificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ * @memberof NotificationsApi
395
+ */
396
+ NotificationsApi.prototype.initiateEmailVerification = function (requestParameters, options) {
397
+ var _this = this;
398
+ return (0, exports.NotificationsApiFp)(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
399
+ };
400
+ /**
401
+ * This sends an email to the specific recipient set to receive customers\' messages.
402
+ * @summary Send an email.
403
+ * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ * @memberof NotificationsApi
407
+ */
408
+ NotificationsApi.prototype.sendNotification = function (requestParameters, options) {
409
+ var _this = this;
410
+ return (0, exports.NotificationsApiFp)(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
411
+ };
412
+ return NotificationsApi;
413
+ }(base_1.BaseAPI));
414
+ exports.NotificationsApi = NotificationsApi;