@emilgroup/customer-sdk-node 1.25.1 → 1.26.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 (210) hide show
  1. package/README.md +2 -2
  2. package/models/claim-class.ts +14 -8
  3. package/models/create-customer-claim-request-dto.ts +9 -9
  4. package/models/lead-class.ts +6 -0
  5. package/models/update-customer-claim-request-dto.ts +9 -15
  6. package/package.json +2 -2
  7. package/dist/api/authentication-api.d.ts +0 -332
  8. package/dist/api/authentication-api.js +0 -604
  9. package/dist/api/claims-api.d.ts +0 -431
  10. package/dist/api/claims-api.js +0 -670
  11. package/dist/api/customers-api.d.ts +0 -271
  12. package/dist/api/customers-api.js +0 -425
  13. package/dist/api/default-api.d.ts +0 -66
  14. package/dist/api/default-api.js +0 -200
  15. package/dist/api/documents-api.d.ts +0 -262
  16. package/dist/api/documents-api.js +0 -417
  17. package/dist/api/invites-api.d.ts +0 -249
  18. package/dist/api/invites-api.js +0 -456
  19. package/dist/api/invoices-api.d.ts +0 -150
  20. package/dist/api/invoices-api.js +0 -253
  21. package/dist/api/leads-api.d.ts +0 -365
  22. package/dist/api/leads-api.js +0 -571
  23. package/dist/api/payments-api.d.ts +0 -162
  24. package/dist/api/payments-api.js +0 -306
  25. package/dist/api/policies-api.d.ts +0 -578
  26. package/dist/api/policies-api.js +0 -808
  27. package/dist/api/products-api.d.ts +0 -215
  28. package/dist/api/products-api.js +0 -341
  29. package/dist/api.d.ts +0 -22
  30. package/dist/api.js +0 -40
  31. package/dist/base.d.ts +0 -82
  32. package/dist/base.js +0 -502
  33. package/dist/common.d.ts +0 -66
  34. package/dist/common.js +0 -244
  35. package/dist/configuration.d.ts +0 -98
  36. package/dist/configuration.js +0 -45
  37. package/dist/index.d.ts +0 -15
  38. package/dist/index.js +0 -36
  39. package/dist/models/account-class.d.ts +0 -169
  40. package/dist/models/account-class.js +0 -26
  41. package/dist/models/account-policy-class.d.ts +0 -30
  42. package/dist/models/account-policy-class.js +0 -15
  43. package/dist/models/authentication-result-class.d.ts +0 -30
  44. package/dist/models/authentication-result-class.js +0 -15
  45. package/dist/models/claim-class.d.ts +0 -156
  46. package/dist/models/claim-class.js +0 -15
  47. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  48. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  49. package/dist/models/complete-payment-setup-psp-request.d.ts +0 -32
  50. package/dist/models/complete-payment-setup-psp-request.js +0 -15
  51. package/dist/models/complete-payment-setup-response-class.d.ts +0 -24
  52. package/dist/models/complete-payment-setup-response-class.js +0 -15
  53. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  54. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  55. package/dist/models/create-account-request-dto.d.ts +0 -132
  56. package/dist/models/create-account-request-dto.js +0 -31
  57. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  58. package/dist/models/create-bank-account-request-dto.js +0 -15
  59. package/dist/models/create-customer-claim-request-dto.d.ts +0 -114
  60. package/dist/models/create-customer-claim-request-dto.js +0 -15
  61. package/dist/models/create-customer-claim-response-class.d.ts +0 -25
  62. package/dist/models/create-customer-claim-response-class.js +0 -15
  63. package/dist/models/create-customer-request-dto.d.ts +0 -43
  64. package/dist/models/create-customer-request-dto.js +0 -15
  65. package/dist/models/create-customer-response-class.d.ts +0 -25
  66. package/dist/models/create-customer-response-class.js +0 -15
  67. package/dist/models/create-lead-request-dto.d.ts +0 -83
  68. package/dist/models/create-lead-request-dto.js +0 -15
  69. package/dist/models/create-lead-response-class.d.ts +0 -25
  70. package/dist/models/create-lead-response-class.js +0 -15
  71. package/dist/models/create-payment-method-request-dto.d.ts +0 -31
  72. package/dist/models/create-payment-method-request-dto.js +0 -15
  73. package/dist/models/create-policy-request-dto.d.ts +0 -56
  74. package/dist/models/create-policy-request-dto.js +0 -15
  75. package/dist/models/create-presigned-post-response-class.d.ts +0 -30
  76. package/dist/models/create-presigned-post-response-class.js +0 -15
  77. package/dist/models/customer-class.d.ts +0 -73
  78. package/dist/models/customer-class.js +0 -15
  79. package/dist/models/customer-document-class.d.ts +0 -99
  80. package/dist/models/customer-document-class.js +0 -36
  81. package/dist/models/customer-product-class.d.ts +0 -54
  82. package/dist/models/customer-product-class.js +0 -15
  83. package/dist/models/forgot-password-request-dto.d.ts +0 -30
  84. package/dist/models/forgot-password-request-dto.js +0 -15
  85. package/dist/models/get-customer-claim-response-class.d.ts +0 -25
  86. package/dist/models/get-customer-claim-response-class.js +0 -15
  87. package/dist/models/get-customer-document-download-url-response-class.d.ts +0 -24
  88. package/dist/models/get-customer-document-download-url-response-class.js +0 -15
  89. package/dist/models/get-customer-response-class.d.ts +0 -25
  90. package/dist/models/get-customer-response-class.js +0 -15
  91. package/dist/models/get-lead-response-class.d.ts +0 -25
  92. package/dist/models/get-lead-response-class.js +0 -15
  93. package/dist/models/get-policy-response-class.d.ts +0 -25
  94. package/dist/models/get-policy-response-class.js +0 -15
  95. package/dist/models/get-product-response-class.d.ts +0 -25
  96. package/dist/models/get-product-response-class.js +0 -15
  97. package/dist/models/grpc-update-lead-request-dto.d.ts +0 -50
  98. package/dist/models/grpc-update-lead-request-dto.js +0 -15
  99. package/dist/models/index.d.ts +0 -85
  100. package/dist/models/index.js +0 -101
  101. package/dist/models/initiate-auth-request-dto.d.ts +0 -36
  102. package/dist/models/initiate-auth-request-dto.js +0 -15
  103. package/dist/models/initiate-auth-response-class.d.ts +0 -43
  104. package/dist/models/initiate-auth-response-class.js +0 -15
  105. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  106. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  107. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  108. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  109. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  110. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  111. package/dist/models/inline-response200.d.ts +0 -54
  112. package/dist/models/inline-response200.js +0 -15
  113. package/dist/models/inline-response503.d.ts +0 -54
  114. package/dist/models/inline-response503.js +0 -15
  115. package/dist/models/invite-by-customer-request-dto.d.ts +0 -30
  116. package/dist/models/invite-by-customer-request-dto.js +0 -15
  117. package/dist/models/invite-by-customer-response-class.d.ts +0 -25
  118. package/dist/models/invite-by-customer-response-class.js +0 -15
  119. package/dist/models/invite-by-tenant-request-dto.d.ts +0 -24
  120. package/dist/models/invite-by-tenant-request-dto.js +0 -15
  121. package/dist/models/invite-by-tenant-response-class.d.ts +0 -25
  122. package/dist/models/invite-by-tenant-response-class.js +0 -15
  123. package/dist/models/invite-class.d.ts +0 -54
  124. package/dist/models/invite-class.js +0 -15
  125. package/dist/models/invoice-class.d.ts +0 -148
  126. package/dist/models/invoice-class.js +0 -28
  127. package/dist/models/lead-bank-account-class.d.ts +0 -30
  128. package/dist/models/lead-bank-account-class.js +0 -15
  129. package/dist/models/lead-class.d.ts +0 -121
  130. package/dist/models/lead-class.js +0 -15
  131. package/dist/models/list-customer-claims-response-class.d.ts +0 -31
  132. package/dist/models/list-customer-claims-response-class.js +0 -15
  133. package/dist/models/list-documents-response-class.d.ts +0 -31
  134. package/dist/models/list-documents-response-class.js +0 -15
  135. package/dist/models/list-invoices-response-class.d.ts +0 -31
  136. package/dist/models/list-invoices-response-class.js +0 -15
  137. package/dist/models/list-leads-response-class.d.ts +0 -43
  138. package/dist/models/list-leads-response-class.js +0 -15
  139. package/dist/models/list-policies-response-class.d.ts +0 -43
  140. package/dist/models/list-policies-response-class.js +0 -15
  141. package/dist/models/list-products-response-class.d.ts +0 -31
  142. package/dist/models/list-products-response-class.js +0 -15
  143. package/dist/models/policy-class.d.ts +0 -80
  144. package/dist/models/policy-class.js +0 -15
  145. package/dist/models/policy-object-class.d.ts +0 -54
  146. package/dist/models/policy-object-class.js +0 -15
  147. package/dist/models/policy-object-dto.d.ts +0 -42
  148. package/dist/models/policy-object-dto.js +0 -15
  149. package/dist/models/policy-premium-class.d.ts +0 -43
  150. package/dist/models/policy-premium-class.js +0 -15
  151. package/dist/models/policy-premium-item-class.d.ts +0 -36
  152. package/dist/models/policy-premium-item-class.js +0 -15
  153. package/dist/models/policy-version-class.d.ts +0 -49
  154. package/dist/models/policy-version-class.js +0 -15
  155. package/dist/models/premium-override-dto.d.ts +0 -55
  156. package/dist/models/premium-override-dto.js +0 -27
  157. package/dist/models/premium-override-request-class.d.ts +0 -25
  158. package/dist/models/premium-override-request-class.js +0 -15
  159. package/dist/models/premium-override-request-dto.d.ts +0 -25
  160. package/dist/models/premium-override-request-dto.js +0 -15
  161. package/dist/models/refresh-token-dto.d.ts +0 -30
  162. package/dist/models/refresh-token-dto.js +0 -15
  163. package/dist/models/request-policy-update-request-dto.d.ts +0 -43
  164. package/dist/models/request-policy-update-request-dto.js +0 -15
  165. package/dist/models/request-policy-update-response-class.d.ts +0 -25
  166. package/dist/models/request-policy-update-response-class.js +0 -15
  167. package/dist/models/reset-password-by-customer-request-dto.d.ts +0 -36
  168. package/dist/models/reset-password-by-customer-request-dto.js +0 -15
  169. package/dist/models/respond-to-auth-challenge-class.d.ts +0 -43
  170. package/dist/models/respond-to-auth-challenge-class.js +0 -15
  171. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +0 -42
  172. package/dist/models/respond-to-auth-challenge-request-dto.js +0 -15
  173. package/dist/models/sepa-dto.d.ts +0 -30
  174. package/dist/models/sepa-dto.js +0 -15
  175. package/dist/models/shared-customer-policy-object-request-dto.d.ts +0 -36
  176. package/dist/models/shared-customer-policy-object-request-dto.js +0 -15
  177. package/dist/models/shared-invoice-item-class.d.ts +0 -129
  178. package/dist/models/shared-invoice-item-class.js +0 -24
  179. package/dist/models/shared-invoice-status-class.d.ts +0 -47
  180. package/dist/models/shared-invoice-status-class.js +0 -20
  181. package/dist/models/terminate-customer-policy-request-dto.d.ts +0 -24
  182. package/dist/models/terminate-customer-policy-request-dto.js +0 -15
  183. package/dist/models/terminate-customer-policy-response-class.d.ts +0 -25
  184. package/dist/models/terminate-customer-policy-response-class.js +0 -15
  185. package/dist/models/timeslice-class.d.ts +0 -56
  186. package/dist/models/timeslice-class.js +0 -15
  187. package/dist/models/update-account-request-dto.d.ts +0 -113
  188. package/dist/models/update-account-request-dto.js +0 -25
  189. package/dist/models/update-customer-claim-request-dto.d.ts +0 -120
  190. package/dist/models/update-customer-claim-request-dto.js +0 -15
  191. package/dist/models/update-customer-claim-response-class.d.ts +0 -25
  192. package/dist/models/update-customer-claim-response-class.js +0 -15
  193. package/dist/models/update-customer-request-dto.d.ts +0 -31
  194. package/dist/models/update-customer-request-dto.js +0 -15
  195. package/dist/models/update-customer-response-class.d.ts +0 -25
  196. package/dist/models/update-customer-response-class.js +0 -15
  197. package/dist/models/update-lead-request-dto.d.ts +0 -44
  198. package/dist/models/update-lead-request-dto.js +0 -15
  199. package/dist/models/update-lead-response-class.d.ts +0 -25
  200. package/dist/models/update-lead-response-class.js +0 -15
  201. package/dist/models/upload-customer-claim-documents-request-dto.d.ts +0 -36
  202. package/dist/models/upload-customer-claim-documents-request-dto.js +0 -15
  203. package/dist/models/upload-customer-policy-documents-request-dto.d.ts +0 -47
  204. package/dist/models/upload-customer-policy-documents-request-dto.js +0 -20
  205. package/dist/models/uploaded-document-dto.d.ts +0 -24
  206. package/dist/models/uploaded-document-dto.js +0 -15
  207. package/dist/models/verify-customer-invite-response-class.d.ts +0 -36
  208. package/dist/models/verify-customer-invite-response-class.js +0 -15
  209. package/dist/models/withdraw-customer-policy-response-class.d.ts +0 -25
  210. package/dist/models/withdraw-customer-policy-response-class.js +0 -15
@@ -1,417 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL CustomerService
6
- * The EMIL CustomerService 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.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = 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
- * DocumentsApi - axios parameter creator
94
- * @export
95
- */
96
- var DocumentsApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- * Get a presigned download url for document.
101
- * @summary Get a download url for document
102
- * @param {string} documentCode The document code.
103
- * @param {string} customerCode
104
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- */
108
- getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
- return __generator(this, function (_a) {
113
- // verify required parameter 'documentCode' is not null or undefined
114
- (0, common_1.assertParamExists)('getCustomerDocumentDownloadUrl', 'documentCode', documentCode);
115
- // verify required parameter 'customerCode' is not null or undefined
116
- (0, common_1.assertParamExists)('getCustomerDocumentDownloadUrl', 'customerCode', customerCode);
117
- localVarPath = "/v1/customers/{customerCode}/documents/{documentCode}/download-url"
118
- .replace("{".concat("documentCode", "}"), encodeURIComponent(String(documentCode)))
119
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
120
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
- if (configuration) {
122
- baseOptions = configuration.baseOptions;
123
- baseAccessToken = configuration.accessToken;
124
- }
125
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
126
- localVarHeaderParameter = {};
127
- localVarQueryParameter = {};
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
- }
131
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
- return [2 /*return*/, {
135
- url: (0, common_1.toPathString)(localVarUrlObj),
136
- options: localVarRequestOptions,
137
- }];
138
- });
139
- });
140
- },
141
- /**
142
- * List all the documents of a customer.
143
- * @summary List documents of a customer
144
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
145
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
146
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
147
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
148
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
149
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
150
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
151
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
- * @param {*} [options] Override http request option.
153
- * @throws {RequiredError}
154
- */
155
- listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
156
- if (options === void 0) { options = {}; }
157
- return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
- return __generator(this, function (_a) {
160
- // verify required parameter 'customerCode' is not null or undefined
161
- (0, common_1.assertParamExists)('listDocuments', 'customerCode', customerCode);
162
- localVarPath = "/v1/customers/{customerCode}/documents"
163
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
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: 'GET' }, baseOptions), options);
170
- localVarHeaderParameter = {};
171
- localVarQueryParameter = {};
172
- if (pageSize !== undefined) {
173
- localVarQueryParameter['pageSize'] = pageSize;
174
- }
175
- if (pageToken !== undefined) {
176
- localVarQueryParameter['pageToken'] = pageToken;
177
- }
178
- if (filter !== undefined) {
179
- localVarQueryParameter['filter'] = filter;
180
- }
181
- if (search !== undefined) {
182
- localVarQueryParameter['search'] = search;
183
- }
184
- if (order !== undefined) {
185
- localVarQueryParameter['order'] = order;
186
- }
187
- if (expand !== undefined) {
188
- localVarQueryParameter['expand'] = expand;
189
- }
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
- }
193
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
- return [2 /*return*/, {
197
- url: (0, common_1.toPathString)(localVarUrlObj),
198
- options: localVarRequestOptions,
199
- }];
200
- });
201
- });
202
- },
203
- /**
204
- * API to upload and attach documents to an account.
205
- * @summary Upload account documents
206
- * @param {string} customerCode
207
- * @param {*} [options] Override http request option.
208
- * @throws {RequiredError}
209
- */
210
- uploadAccountDocuments: function (customerCode, options) {
211
- if (options === void 0) { options = {}; }
212
- return __awaiter(_this, void 0, void 0, function () {
213
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
- return __generator(this, function (_a) {
215
- // verify required parameter 'customerCode' is not null or undefined
216
- (0, common_1.assertParamExists)('uploadAccountDocuments', 'customerCode', customerCode);
217
- localVarPath = "/v1/customers/{customerCode}/documents"
218
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
219
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
220
- if (configuration) {
221
- baseOptions = configuration.baseOptions;
222
- baseAccessToken = configuration.accessToken;
223
- }
224
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
225
- localVarHeaderParameter = {};
226
- localVarQueryParameter = {};
227
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
228
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
230
- return [2 /*return*/, {
231
- url: (0, common_1.toPathString)(localVarUrlObj),
232
- options: localVarRequestOptions,
233
- }];
234
- });
235
- });
236
- },
237
- };
238
- };
239
- exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
240
- /**
241
- * DocumentsApi - functional programming interface
242
- * @export
243
- */
244
- var DocumentsApiFp = function (configuration) {
245
- var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
246
- return {
247
- /**
248
- * Get a presigned download url for document.
249
- * @summary Get a download url for document
250
- * @param {string} documentCode The document code.
251
- * @param {string} customerCode
252
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
257
- return __awaiter(this, void 0, void 0, function () {
258
- var localVarAxiosArgs;
259
- return __generator(this, function (_a) {
260
- switch (_a.label) {
261
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options)];
262
- case 1:
263
- localVarAxiosArgs = _a.sent();
264
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
265
- }
266
- });
267
- });
268
- },
269
- /**
270
- * List all the documents of a customer.
271
- * @summary List documents of a customer
272
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
273
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
274
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
275
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
276
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
277
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
278
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
279
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
280
- * @param {*} [options] Override http request option.
281
- * @throws {RequiredError}
282
- */
283
- listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
284
- return __awaiter(this, void 0, void 0, function () {
285
- var localVarAxiosArgs;
286
- return __generator(this, function (_a) {
287
- switch (_a.label) {
288
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options)];
289
- case 1:
290
- localVarAxiosArgs = _a.sent();
291
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
292
- }
293
- });
294
- });
295
- },
296
- /**
297
- * API to upload and attach documents to an account.
298
- * @summary Upload account documents
299
- * @param {string} customerCode
300
- * @param {*} [options] Override http request option.
301
- * @throws {RequiredError}
302
- */
303
- uploadAccountDocuments: function (customerCode, options) {
304
- return __awaiter(this, void 0, void 0, function () {
305
- var localVarAxiosArgs;
306
- return __generator(this, function (_a) {
307
- switch (_a.label) {
308
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options)];
309
- case 1:
310
- localVarAxiosArgs = _a.sent();
311
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
312
- }
313
- });
314
- });
315
- },
316
- };
317
- };
318
- exports.DocumentsApiFp = DocumentsApiFp;
319
- /**
320
- * DocumentsApi - factory interface
321
- * @export
322
- */
323
- var DocumentsApiFactory = function (configuration, basePath, axios) {
324
- var localVarFp = (0, exports.DocumentsApiFp)(configuration);
325
- return {
326
- /**
327
- * Get a presigned download url for document.
328
- * @summary Get a download url for document
329
- * @param {string} documentCode The document code.
330
- * @param {string} customerCode
331
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
- * @param {*} [options] Override http request option.
333
- * @throws {RequiredError}
334
- */
335
- getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
336
- return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
337
- },
338
- /**
339
- * List all the documents of a customer.
340
- * @summary List documents of a customer
341
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
342
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
343
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
344
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
345
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
346
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
347
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
348
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- */
352
- listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
353
- return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
354
- },
355
- /**
356
- * API to upload and attach documents to an account.
357
- * @summary Upload account documents
358
- * @param {string} customerCode
359
- * @param {*} [options] Override http request option.
360
- * @throws {RequiredError}
361
- */
362
- uploadAccountDocuments: function (customerCode, options) {
363
- return localVarFp.uploadAccountDocuments(customerCode, options).then(function (request) { return request(axios, basePath); });
364
- },
365
- };
366
- };
367
- exports.DocumentsApiFactory = DocumentsApiFactory;
368
- /**
369
- * DocumentsApi - object-oriented interface
370
- * @export
371
- * @class DocumentsApi
372
- * @extends {BaseAPI}
373
- */
374
- var DocumentsApi = /** @class */ (function (_super) {
375
- __extends(DocumentsApi, _super);
376
- function DocumentsApi() {
377
- return _super !== null && _super.apply(this, arguments) || this;
378
- }
379
- /**
380
- * Get a presigned download url for document.
381
- * @summary Get a download url for document
382
- * @param {DocumentsApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
383
- * @param {*} [options] Override http request option.
384
- * @throws {RequiredError}
385
- * @memberof DocumentsApi
386
- */
387
- DocumentsApi.prototype.getCustomerDocumentDownloadUrl = function (requestParameters, options) {
388
- var _this = this;
389
- return (0, exports.DocumentsApiFp)(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
390
- };
391
- /**
392
- * List all the documents of a customer.
393
- * @summary List documents of a customer
394
- * @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
395
- * @param {*} [options] Override http request option.
396
- * @throws {RequiredError}
397
- * @memberof DocumentsApi
398
- */
399
- DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
400
- var _this = this;
401
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
402
- };
403
- /**
404
- * API to upload and attach documents to an account.
405
- * @summary Upload account documents
406
- * @param {DocumentsApiUploadAccountDocumentsRequest} requestParameters Request parameters.
407
- * @param {*} [options] Override http request option.
408
- * @throws {RequiredError}
409
- * @memberof DocumentsApi
410
- */
411
- DocumentsApi.prototype.uploadAccountDocuments = function (requestParameters, options) {
412
- var _this = this;
413
- return (0, exports.DocumentsApiFp)(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
414
- };
415
- return DocumentsApi;
416
- }(base_1.BaseAPI));
417
- exports.DocumentsApi = DocumentsApi;
@@ -1,249 +0,0 @@
1
- /**
2
- * EMIL CustomerService
3
- * The EMIL CustomerService 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 { CreateCustomerRequestDto } from '../models';
16
- import { CreateCustomerResponseClass } from '../models';
17
- import { InviteByCustomerRequestDto } from '../models';
18
- import { InviteByCustomerResponseClass } from '../models';
19
- import { InviteByTenantRequestDto } from '../models';
20
- import { InviteByTenantResponseClass } from '../models';
21
- import { VerifyCustomerInviteResponseClass } from '../models';
22
- /**
23
- * InvitesApi - axios parameter creator
24
- * @export
25
- */
26
- export declare const InvitesApiAxiosParamCreator: (configuration?: Configuration) => {
27
- /**
28
- * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
29
- * @summary Register a customer after invite
30
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- */
34
- createCustomer: (createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
- /**
36
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
37
- * @summary Invite a customer by self
38
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
39
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- inviteByCustomer: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
- /**
45
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
46
- * @summary Invite a customer by tenant
47
- * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
48
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
49
- * @param {*} [options] Override http request option.
50
- * @throws {RequiredError}
51
- */
52
- inviteByTenant: (inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
- /**
54
- * Verify the invite sent to the customer via email.
55
- * @summary Verify customer\'s invite token
56
- * @param {string} inviteToken Invite token sent to the customer
57
- * @param {*} [options] Override http request option.
58
- * @throws {RequiredError}
59
- */
60
- verifyInvite: (inviteToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
- };
62
- /**
63
- * InvitesApi - functional programming interface
64
- * @export
65
- */
66
- export declare const InvitesApiFp: (configuration?: Configuration) => {
67
- /**
68
- * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
69
- * @summary Register a customer after invite
70
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- */
74
- createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponseClass>>;
75
- /**
76
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
77
- * @summary Invite a customer by self
78
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
79
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
80
- * @param {*} [options] Override http request option.
81
- * @throws {RequiredError}
82
- */
83
- inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>>;
84
- /**
85
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
86
- * @summary Invite a customer by tenant
87
- * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
88
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>>;
93
- /**
94
- * Verify the invite sent to the customer via email.
95
- * @summary Verify customer\'s invite token
96
- * @param {string} inviteToken Invite token sent to the customer
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- verifyInvite(inviteToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCustomerInviteResponseClass>>;
101
- };
102
- /**
103
- * InvitesApi - factory interface
104
- * @export
105
- */
106
- export declare const InvitesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
107
- /**
108
- * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
109
- * @summary Register a customer after invite
110
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
111
- * @param {*} [options] Override http request option.
112
- * @throws {RequiredError}
113
- */
114
- createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: any): AxiosPromise<CreateCustomerResponseClass>;
115
- /**
116
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
117
- * @summary Invite a customer by self
118
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
119
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
120
- * @param {*} [options] Override http request option.
121
- * @throws {RequiredError}
122
- */
123
- inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass>;
124
- /**
125
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
126
- * @summary Invite a customer by tenant
127
- * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
128
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
129
- * @param {*} [options] Override http request option.
130
- * @throws {RequiredError}
131
- */
132
- inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass>;
133
- /**
134
- * Verify the invite sent to the customer via email.
135
- * @summary Verify customer\'s invite token
136
- * @param {string} inviteToken Invite token sent to the customer
137
- * @param {*} [options] Override http request option.
138
- * @throws {RequiredError}
139
- */
140
- verifyInvite(inviteToken: string, options?: any): AxiosPromise<VerifyCustomerInviteResponseClass>;
141
- };
142
- /**
143
- * Request parameters for createCustomer operation in InvitesApi.
144
- * @export
145
- * @interface InvitesApiCreateCustomerRequest
146
- */
147
- export interface InvitesApiCreateCustomerRequest {
148
- /**
149
- *
150
- * @type {CreateCustomerRequestDto}
151
- * @memberof InvitesApiCreateCustomer
152
- */
153
- readonly createCustomerRequestDto: CreateCustomerRequestDto;
154
- }
155
- /**
156
- * Request parameters for inviteByCustomer operation in InvitesApi.
157
- * @export
158
- * @interface InvitesApiInviteByCustomerRequest
159
- */
160
- export interface InvitesApiInviteByCustomerRequest {
161
- /**
162
- *
163
- * @type {InviteByCustomerRequestDto}
164
- * @memberof InvitesApiInviteByCustomer
165
- */
166
- readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
167
- /**
168
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
169
- * @type {string}
170
- * @memberof InvitesApiInviteByCustomer
171
- */
172
- readonly authorization?: string;
173
- }
174
- /**
175
- * Request parameters for inviteByTenant operation in InvitesApi.
176
- * @export
177
- * @interface InvitesApiInviteByTenantRequest
178
- */
179
- export interface InvitesApiInviteByTenantRequest {
180
- /**
181
- *
182
- * @type {InviteByTenantRequestDto}
183
- * @memberof InvitesApiInviteByTenant
184
- */
185
- readonly inviteByTenantRequestDto: InviteByTenantRequestDto;
186
- /**
187
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
188
- * @type {string}
189
- * @memberof InvitesApiInviteByTenant
190
- */
191
- readonly authorization?: string;
192
- }
193
- /**
194
- * Request parameters for verifyInvite operation in InvitesApi.
195
- * @export
196
- * @interface InvitesApiVerifyInviteRequest
197
- */
198
- export interface InvitesApiVerifyInviteRequest {
199
- /**
200
- * Invite token sent to the customer
201
- * @type {string}
202
- * @memberof InvitesApiVerifyInvite
203
- */
204
- readonly inviteToken: string;
205
- }
206
- /**
207
- * InvitesApi - object-oriented interface
208
- * @export
209
- * @class InvitesApi
210
- * @extends {BaseAPI}
211
- */
212
- export declare class InvitesApi extends BaseAPI {
213
- /**
214
- * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
215
- * @summary Register a customer after invite
216
- * @param {InvitesApiCreateCustomerRequest} requestParameters Request parameters.
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- * @memberof InvitesApi
220
- */
221
- createCustomer(requestParameters: InvitesApiCreateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomerResponseClass, any>>;
222
- /**
223
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
224
- * @summary Invite a customer by self
225
- * @param {InvitesApiInviteByCustomerRequest} requestParameters Request parameters.
226
- * @param {*} [options] Override http request option.
227
- * @throws {RequiredError}
228
- * @memberof InvitesApi
229
- */
230
- inviteByCustomer(requestParameters: InvitesApiInviteByCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByCustomerResponseClass, any>>;
231
- /**
232
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
233
- * @summary Invite a customer by tenant
234
- * @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
235
- * @param {*} [options] Override http request option.
236
- * @throws {RequiredError}
237
- * @memberof InvitesApi
238
- */
239
- inviteByTenant(requestParameters: InvitesApiInviteByTenantRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByTenantResponseClass, any>>;
240
- /**
241
- * Verify the invite sent to the customer via email.
242
- * @summary Verify customer\'s invite token
243
- * @param {InvitesApiVerifyInviteRequest} requestParameters Request parameters.
244
- * @param {*} [options] Override http request option.
245
- * @throws {RequiredError}
246
- * @memberof InvitesApi
247
- */
248
- verifyInvite(requestParameters: InvitesApiVerifyInviteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyCustomerInviteResponseClass, any>>;
249
- }