@emilgroup/public-api-sdk-node 1.21.0 → 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 (181) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/documents-api.ts +114 -0
  4. package/api/products-api.ts +120 -0
  5. package/models/calculate-product-fields-request-dto.ts +37 -0
  6. package/models/calculate-product-fields-response-class.ts +31 -0
  7. package/models/create-estimated-invoice-response-class.ts +8 -1
  8. package/models/create-lead-request-dto.ts +7 -7
  9. package/models/document-class.ts +6 -0
  10. package/models/index.ts +3 -0
  11. package/models/inline-response200.ts +6 -6
  12. package/models/inline-response503.ts +6 -6
  13. package/models/lead-account-class.ts +1 -1
  14. package/models/policy-object-request-dto.ts +1 -1
  15. package/{dist/models/policy-object-request-dto.d.ts → models/policy-object-response-class.ts} +16 -16
  16. package/models/product-document-class.ts +7 -7
  17. package/models/update-lead-request-dto.ts +5 -5
  18. package/package.json +2 -2
  19. package/dist/api/address-completions-validations-api.d.ts +0 -215
  20. package/dist/api/address-completions-validations-api.js +0 -373
  21. package/dist/api/default-api.d.ts +0 -66
  22. package/dist/api/default-api.js +0 -200
  23. package/dist/api/documents-api.d.ts +0 -475
  24. package/dist/api/documents-api.js +0 -757
  25. package/dist/api/leads-api.d.ts +0 -441
  26. package/dist/api/leads-api.js +0 -791
  27. package/dist/api/notifications-api.d.ts +0 -211
  28. package/dist/api/notifications-api.js +0 -414
  29. package/dist/api/payments-setup-api.d.ts +0 -228
  30. package/dist/api/payments-setup-api.js +0 -426
  31. package/dist/api/products-api.d.ts +0 -497
  32. package/dist/api/products-api.js +0 -827
  33. package/dist/api.d.ts +0 -18
  34. package/dist/api.js +0 -36
  35. package/dist/base.d.ts +0 -78
  36. package/dist/base.js +0 -394
  37. package/dist/common.d.ts +0 -92
  38. package/dist/common.js +0 -277
  39. package/dist/configuration.d.ts +0 -90
  40. package/dist/configuration.js +0 -44
  41. package/dist/index.d.ts +0 -15
  42. package/dist/index.js +0 -36
  43. package/dist/models/address-completion-item-class.d.ts +0 -49
  44. package/dist/models/address-completion-item-class.js +0 -15
  45. package/dist/models/address-completion-response-class.d.ts +0 -25
  46. package/dist/models/address-completion-response-class.js +0 -15
  47. package/dist/models/address-field-score-class.d.ts +0 -48
  48. package/dist/models/address-field-score-class.js +0 -15
  49. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  50. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  51. package/dist/models/complete-email-verification-dto.d.ts +0 -30
  52. package/dist/models/complete-email-verification-dto.js +0 -15
  53. package/dist/models/complete-email-verification-response-class.d.ts +0 -24
  54. package/dist/models/complete-email-verification-response-class.js +0 -15
  55. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  56. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  57. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  58. package/dist/models/complete-payment-setup-response-class.js +0 -15
  59. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  60. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  61. package/dist/models/create-account-request-dto.d.ts +0 -132
  62. package/dist/models/create-account-request-dto.js +0 -31
  63. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  64. package/dist/models/create-bank-account-request-dto.js +0 -15
  65. package/dist/models/create-custom-application-request-dto.d.ts +0 -35
  66. package/dist/models/create-custom-application-request-dto.js +0 -20
  67. package/dist/models/create-custom-application-response-class.d.ts +0 -24
  68. package/dist/models/create-custom-application-response-class.js +0 -15
  69. package/dist/models/create-document-request-dto.d.ts +0 -132
  70. package/dist/models/create-document-request-dto.js +0 -43
  71. package/dist/models/create-estimated-invoice-request-dto.d.ts +0 -55
  72. package/dist/models/create-estimated-invoice-request-dto.js +0 -20
  73. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  74. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  75. package/dist/models/create-lead-async-response-class.d.ts +0 -24
  76. package/dist/models/create-lead-async-response-class.js +0 -15
  77. package/dist/models/create-lead-request-dto.d.ts +0 -108
  78. package/dist/models/create-lead-request-dto.js +0 -15
  79. package/dist/models/create-lead-response-class.d.ts +0 -25
  80. package/dist/models/create-lead-response-class.js +0 -15
  81. package/dist/models/create-payment-method-request-dto.d.ts +0 -36
  82. package/dist/models/create-payment-method-request-dto.js +0 -20
  83. package/dist/models/create-presigned-post-request-dto.d.ts +0 -128
  84. package/dist/models/create-presigned-post-request-dto.js +0 -52
  85. package/dist/models/create-presigned-post-response-class.d.ts +0 -30
  86. package/dist/models/create-presigned-post-response-class.js +0 -15
  87. package/dist/models/document-class.d.ts +0 -138
  88. package/dist/models/document-class.js +0 -49
  89. package/dist/models/get-custom-css-response-class.d.ts +0 -24
  90. package/dist/models/get-custom-css-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-product-document-download-url-response-class.d.ts +0 -24
  94. package/dist/models/get-product-document-download-url-response-class.js +0 -15
  95. package/dist/models/get-public-psp-settings-response-class.d.ts +0 -30
  96. package/dist/models/get-public-psp-settings-response-class.js +0 -15
  97. package/dist/models/index.d.ts +0 -69
  98. package/dist/models/index.js +0 -85
  99. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  100. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  101. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  102. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  103. package/dist/models/initiate-email-verification-dto.d.ts +0 -30
  104. package/dist/models/initiate-email-verification-dto.js +0 -15
  105. package/dist/models/initiate-email-verification-response-class.d.ts +0 -24
  106. package/dist/models/initiate-email-verification-response-class.js +0 -15
  107. package/dist/models/initiate-lead-response-class.d.ts +0 -24
  108. package/dist/models/initiate-lead-response-class.js +0 -15
  109. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -32
  110. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  111. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  112. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  113. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  114. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  115. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  116. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  117. package/dist/models/inline-response200.d.ts +0 -54
  118. package/dist/models/inline-response200.js +0 -15
  119. package/dist/models/inline-response503.d.ts +0 -54
  120. package/dist/models/inline-response503.js +0 -15
  121. package/dist/models/insured-object-class.d.ts +0 -85
  122. package/dist/models/insured-object-class.js +0 -15
  123. package/dist/models/insured-object-type-class.d.ts +0 -48
  124. package/dist/models/insured-object-type-class.js +0 -15
  125. package/dist/models/invoice-class.d.ts +0 -134
  126. package/dist/models/invoice-class.js +0 -15
  127. package/dist/models/invoice-item-class.d.ts +0 -120
  128. package/dist/models/invoice-item-class.js +0 -15
  129. package/dist/models/invoice-status-class.d.ts +0 -42
  130. package/dist/models/invoice-status-class.js +0 -15
  131. package/dist/models/lead-account-class.d.ts +0 -109
  132. package/dist/models/lead-account-class.js +0 -22
  133. package/dist/models/lead-bank-account-class.d.ts +0 -30
  134. package/dist/models/lead-bank-account-class.js +0 -15
  135. package/dist/models/lead-class.d.ts +0 -109
  136. package/dist/models/lead-class.js +0 -15
  137. package/dist/models/lead-policy-class.d.ts +0 -43
  138. package/dist/models/lead-policy-class.js +0 -15
  139. package/dist/models/lead-policy-object-class.d.ts +0 -36
  140. package/dist/models/lead-policy-object-class.js +0 -15
  141. package/dist/models/list-documents-response-class.d.ts +0 -31
  142. package/dist/models/list-documents-response-class.js +0 -15
  143. package/dist/models/list-product-documents-response-class.d.ts +0 -31
  144. package/dist/models/list-product-documents-response-class.js +0 -15
  145. package/dist/models/list-products-response-class.d.ts +0 -31
  146. package/dist/models/list-products-response-class.js +0 -15
  147. package/dist/models/payment-method-class.d.ts +0 -60
  148. package/dist/models/payment-method-class.js +0 -15
  149. package/dist/models/policy-object-request-dto.js +0 -15
  150. package/dist/models/premium-override-dto.d.ts +0 -55
  151. package/dist/models/premium-override-dto.js +0 -27
  152. package/dist/models/premium-override-request-dto.d.ts +0 -25
  153. package/dist/models/premium-override-request-dto.js +0 -15
  154. package/dist/models/product-class.d.ts +0 -80
  155. package/dist/models/product-class.js +0 -15
  156. package/dist/models/product-document-class.d.ts +0 -111
  157. package/dist/models/product-document-class.js +0 -36
  158. package/dist/models/product-factor-for-version-class.d.ts +0 -60
  159. package/dist/models/product-factor-for-version-class.js +0 -15
  160. package/dist/models/product-field-class.d.ts +0 -132
  161. package/dist/models/product-field-class.js +0 -15
  162. package/dist/models/product-version-class.d.ts +0 -61
  163. package/dist/models/product-version-class.js +0 -22
  164. package/dist/models/send-notification-request-dto.d.ts +0 -36
  165. package/dist/models/send-notification-request-dto.js +0 -15
  166. package/dist/models/send-notification-response-class.d.ts +0 -24
  167. package/dist/models/send-notification-response-class.js +0 -15
  168. package/dist/models/sepa-dto.d.ts +0 -30
  169. package/dist/models/sepa-dto.js +0 -15
  170. package/dist/models/structured-address-class.d.ts +0 -54
  171. package/dist/models/structured-address-class.js +0 -15
  172. package/dist/models/suggested-address-details-class.d.ts +0 -90
  173. package/dist/models/suggested-address-details-class.js +0 -15
  174. package/dist/models/update-lead-request-dto.d.ts +0 -95
  175. package/dist/models/update-lead-request-dto.js +0 -15
  176. package/dist/models/update-lead-response-class.d.ts +0 -25
  177. package/dist/models/update-lead-response-class.js +0 -15
  178. package/dist/models/uploaded-document-dto.d.ts +0 -24
  179. package/dist/models/uploaded-document-dto.js +0 -15
  180. package/dist/models/validate-address-response-class.d.ts +0 -50
  181. package/dist/models/validate-address-response-class.js +0 -15
@@ -1,757 +0,0 @@
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.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
- * This will create a temporary document.
101
- * @summary Create the temporary document
102
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
103
- * @param {string} [authorization] Bearer Token
104
- * @param {*} [options] Override http request option.
105
- * @throws {RequiredError}
106
- */
107
- createTemporaryDocument: function (createDocumentRequestDto, 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 'createDocumentRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
116
- localVarPath = "/publicapi/v1/documents";
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)(createDocumentRequestDto, localVarRequestOptions, configuration);
140
- return [2 /*return*/, {
141
- url: (0, common_1.toPathString)(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- }];
144
- }
145
- });
146
- });
147
- },
148
- /**
149
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
150
- * @summary Download a document
151
- * @param {string} code
152
- * @param {string} [authorization] Bearer Token
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- downloadDocument: function (code, 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 'code' is not null or undefined
164
- (0, common_1.assertParamExists)('downloadDocument', 'code', code);
165
- localVarPath = "/publicapi/v1/documents/download/{code}"
166
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
- if (configuration) {
169
- baseOptions = configuration.baseOptions;
170
- baseAccessToken = configuration.accessToken;
171
- }
172
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
173
- localVarHeaderParameter = {};
174
- localVarQueryParameter = {};
175
- // authentication bearer required
176
- // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
- case 1:
179
- // authentication bearer required
180
- // http bearer authentication required
181
- _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
- }
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
- return [2 /*return*/, {
189
- url: (0, common_1.toPathString)(localVarUrlObj),
190
- options: localVarRequestOptions,
191
- }];
192
- }
193
- });
194
- });
195
- },
196
- /**
197
- *
198
- * @summary Get pre-signed url for downloading product document
199
- * @param {string} productCode
200
- * @param {string} code
201
- * @param {string} [authorization] Bearer Token
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- */
205
- downloadProductDocumentUrl: function (productCode, code, 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 'productCode' is not null or undefined
213
- (0, common_1.assertParamExists)('downloadProductDocumentUrl', 'productCode', productCode);
214
- // verify required parameter 'code' is not null or undefined
215
- (0, common_1.assertParamExists)('downloadProductDocumentUrl', 'code', code);
216
- localVarPath = "/publicapi/v1/documents/product/{productCode}/{code}/download-url"
217
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
218
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
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: 'GET' }, baseOptions), options);
225
- localVarHeaderParameter = {};
226
- localVarQueryParameter = {};
227
- // authentication bearer required
228
- // http bearer authentication required
229
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
- case 1:
231
- // authentication bearer required
232
- // http bearer authentication required
233
- _a.sent();
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
- }
237
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
- return [2 /*return*/, {
241
- url: (0, common_1.toPathString)(localVarUrlObj),
242
- options: localVarRequestOptions,
243
- }];
244
- }
245
- });
246
- });
247
- },
248
- /**
249
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
250
- * @summary List documents
251
- * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
252
- * @param {string} [authorization] Bearer Token
253
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
254
- * @param {string} [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.
255
- * @param {string} [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.
256
- * @param {string} [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.
257
- * @param {*} [options] Override http request option.
258
- * @throws {RequiredError}
259
- */
260
- listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
261
- if (options === void 0) { options = {}; }
262
- return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
- return __generator(this, function (_a) {
265
- switch (_a.label) {
266
- case 0:
267
- // verify required parameter 'filter' is not null or undefined
268
- (0, common_1.assertParamExists)('listDocuments', 'filter', filter);
269
- localVarPath = "/publicapi/v1/documents";
270
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
271
- if (configuration) {
272
- baseOptions = configuration.baseOptions;
273
- baseAccessToken = configuration.accessToken;
274
- }
275
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
276
- localVarHeaderParameter = {};
277
- localVarQueryParameter = {};
278
- // authentication bearer required
279
- // http bearer authentication required
280
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
281
- case 1:
282
- // authentication bearer required
283
- // http bearer authentication required
284
- _a.sent();
285
- if (pageSize !== undefined) {
286
- localVarQueryParameter['pageSize'] = pageSize;
287
- }
288
- if (pageToken !== undefined) {
289
- localVarQueryParameter['pageToken'] = pageToken;
290
- }
291
- if (filter !== undefined) {
292
- localVarQueryParameter['filter'] = filter;
293
- }
294
- if (order !== undefined) {
295
- localVarQueryParameter['order'] = order;
296
- }
297
- if (expand !== undefined) {
298
- localVarQueryParameter['expand'] = expand;
299
- }
300
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
- }
303
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
304
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
306
- return [2 /*return*/, {
307
- url: (0, common_1.toPathString)(localVarUrlObj),
308
- options: localVarRequestOptions,
309
- }];
310
- }
311
- });
312
- });
313
- },
314
- /**
315
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
316
- * @summary List product documents
317
- * @param {string} productCode
318
- * @param {string} [authorization] Bearer Token
319
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
320
- * @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.
321
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
322
- * @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.
323
- * @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.
324
- * @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.
325
- * @param {*} [options] Override http request option.
326
- * @throws {RequiredError}
327
- */
328
- listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
329
- if (options === void 0) { options = {}; }
330
- return __awaiter(_this, void 0, void 0, function () {
331
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
332
- return __generator(this, function (_a) {
333
- switch (_a.label) {
334
- case 0:
335
- // verify required parameter 'productCode' is not null or undefined
336
- (0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
337
- localVarPath = "/publicapi/v1/documents/{productCode}"
338
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
339
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
340
- if (configuration) {
341
- baseOptions = configuration.baseOptions;
342
- baseAccessToken = configuration.accessToken;
343
- }
344
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
345
- localVarHeaderParameter = {};
346
- localVarQueryParameter = {};
347
- // authentication bearer required
348
- // http bearer authentication required
349
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
350
- case 1:
351
- // authentication bearer required
352
- // http bearer authentication required
353
- _a.sent();
354
- if (pageSize !== undefined) {
355
- localVarQueryParameter['pageSize'] = pageSize;
356
- }
357
- if (pageToken !== undefined) {
358
- localVarQueryParameter['pageToken'] = pageToken;
359
- }
360
- if (filter !== undefined) {
361
- localVarQueryParameter['filter'] = filter;
362
- }
363
- if (search !== undefined) {
364
- localVarQueryParameter['search'] = search;
365
- }
366
- if (order !== undefined) {
367
- localVarQueryParameter['order'] = order;
368
- }
369
- if (expand !== undefined) {
370
- localVarQueryParameter['expand'] = expand;
371
- }
372
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
373
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
374
- }
375
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
376
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
377
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
378
- return [2 /*return*/, {
379
- url: (0, common_1.toPathString)(localVarUrlObj),
380
- options: localVarRequestOptions,
381
- }];
382
- }
383
- });
384
- });
385
- },
386
- /**
387
- * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
388
- * @summary Upload documents using pre-signed URL
389
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
390
- * @param {string} [authorization] Bearer Token
391
- * @param {*} [options] Override http request option.
392
- * @throws {RequiredError}
393
- */
394
- preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
395
- if (options === void 0) { options = {}; }
396
- return __awaiter(_this, void 0, void 0, function () {
397
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
398
- return __generator(this, function (_a) {
399
- switch (_a.label) {
400
- case 0:
401
- // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
402
- (0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
403
- localVarPath = "/publicapi/v1/documents/pre-signed-post";
404
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
405
- if (configuration) {
406
- baseOptions = configuration.baseOptions;
407
- baseAccessToken = configuration.accessToken;
408
- }
409
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
410
- localVarHeaderParameter = {};
411
- localVarQueryParameter = {};
412
- // authentication bearer required
413
- // http bearer authentication required
414
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
415
- case 1:
416
- // authentication bearer required
417
- // http bearer authentication required
418
- _a.sent();
419
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
420
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
421
- }
422
- localVarHeaderParameter['Content-Type'] = 'application/json';
423
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
426
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
427
- return [2 /*return*/, {
428
- url: (0, common_1.toPathString)(localVarUrlObj),
429
- options: localVarRequestOptions,
430
- }];
431
- }
432
- });
433
- });
434
- },
435
- };
436
- };
437
- exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
438
- /**
439
- * DocumentsApi - functional programming interface
440
- * @export
441
- */
442
- var DocumentsApiFp = function (configuration) {
443
- var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
444
- return {
445
- /**
446
- * This will create a temporary document.
447
- * @summary Create the temporary document
448
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
449
- * @param {string} [authorization] Bearer Token
450
- * @param {*} [options] Override http request option.
451
- * @throws {RequiredError}
452
- */
453
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
454
- return __awaiter(this, void 0, void 0, function () {
455
- var localVarAxiosArgs;
456
- return __generator(this, function (_a) {
457
- switch (_a.label) {
458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTemporaryDocument(createDocumentRequestDto, authorization, options)];
459
- case 1:
460
- localVarAxiosArgs = _a.sent();
461
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
462
- }
463
- });
464
- });
465
- },
466
- /**
467
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
468
- * @summary Download a document
469
- * @param {string} code
470
- * @param {string} [authorization] Bearer Token
471
- * @param {*} [options] Override http request option.
472
- * @throws {RequiredError}
473
- */
474
- downloadDocument: function (code, authorization, options) {
475
- return __awaiter(this, void 0, void 0, function () {
476
- var localVarAxiosArgs;
477
- return __generator(this, function (_a) {
478
- switch (_a.label) {
479
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocument(code, authorization, options)];
480
- case 1:
481
- localVarAxiosArgs = _a.sent();
482
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
483
- }
484
- });
485
- });
486
- },
487
- /**
488
- *
489
- * @summary Get pre-signed url for downloading product document
490
- * @param {string} productCode
491
- * @param {string} code
492
- * @param {string} [authorization] Bearer Token
493
- * @param {*} [options] Override http request option.
494
- * @throws {RequiredError}
495
- */
496
- downloadProductDocumentUrl: function (productCode, code, authorization, options) {
497
- return __awaiter(this, void 0, void 0, function () {
498
- var localVarAxiosArgs;
499
- return __generator(this, function (_a) {
500
- switch (_a.label) {
501
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, options)];
502
- case 1:
503
- localVarAxiosArgs = _a.sent();
504
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
505
- }
506
- });
507
- });
508
- },
509
- /**
510
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
511
- * @summary List documents
512
- * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
513
- * @param {string} [authorization] Bearer Token
514
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
515
- * @param {string} [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.
516
- * @param {string} [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.
517
- * @param {string} [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.
518
- * @param {*} [options] Override http request option.
519
- * @throws {RequiredError}
520
- */
521
- listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
522
- return __awaiter(this, void 0, void 0, function () {
523
- var localVarAxiosArgs;
524
- return __generator(this, function (_a) {
525
- switch (_a.label) {
526
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options)];
527
- case 1:
528
- localVarAxiosArgs = _a.sent();
529
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
530
- }
531
- });
532
- });
533
- },
534
- /**
535
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
536
- * @summary List product documents
537
- * @param {string} productCode
538
- * @param {string} [authorization] Bearer Token
539
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
540
- * @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.
541
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
542
- * @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.
543
- * @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.
544
- * @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.
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- */
548
- listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
549
- return __awaiter(this, void 0, void 0, function () {
550
- var localVarAxiosArgs;
551
- return __generator(this, function (_a) {
552
- switch (_a.label) {
553
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
554
- case 1:
555
- localVarAxiosArgs = _a.sent();
556
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
557
- }
558
- });
559
- });
560
- },
561
- /**
562
- * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
563
- * @summary Upload documents using pre-signed URL
564
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
565
- * @param {string} [authorization] Bearer Token
566
- * @param {*} [options] Override http request option.
567
- * @throws {RequiredError}
568
- */
569
- preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
570
- return __awaiter(this, void 0, void 0, function () {
571
- var localVarAxiosArgs;
572
- return __generator(this, function (_a) {
573
- switch (_a.label) {
574
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options)];
575
- case 1:
576
- localVarAxiosArgs = _a.sent();
577
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
578
- }
579
- });
580
- });
581
- },
582
- };
583
- };
584
- exports.DocumentsApiFp = DocumentsApiFp;
585
- /**
586
- * DocumentsApi - factory interface
587
- * @export
588
- */
589
- var DocumentsApiFactory = function (configuration, basePath, axios) {
590
- var localVarFp = (0, exports.DocumentsApiFp)(configuration);
591
- return {
592
- /**
593
- * This will create a temporary document.
594
- * @summary Create the temporary document
595
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
596
- * @param {string} [authorization] Bearer Token
597
- * @param {*} [options] Override http request option.
598
- * @throws {RequiredError}
599
- */
600
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
601
- return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
602
- },
603
- /**
604
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
605
- * @summary Download a document
606
- * @param {string} code
607
- * @param {string} [authorization] Bearer Token
608
- * @param {*} [options] Override http request option.
609
- * @throws {RequiredError}
610
- */
611
- downloadDocument: function (code, authorization, options) {
612
- return localVarFp.downloadDocument(code, authorization, options).then(function (request) { return request(axios, basePath); });
613
- },
614
- /**
615
- *
616
- * @summary Get pre-signed url for downloading product document
617
- * @param {string} productCode
618
- * @param {string} code
619
- * @param {string} [authorization] Bearer Token
620
- * @param {*} [options] Override http request option.
621
- * @throws {RequiredError}
622
- */
623
- downloadProductDocumentUrl: function (productCode, code, authorization, options) {
624
- return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, options).then(function (request) { return request(axios, basePath); });
625
- },
626
- /**
627
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
628
- * @summary List documents
629
- * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
630
- * @param {string} [authorization] Bearer Token
631
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
632
- * @param {string} [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.
633
- * @param {string} [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.
634
- * @param {string} [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.
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- */
638
- listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
639
- return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
640
- },
641
- /**
642
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
643
- * @summary List product documents
644
- * @param {string} productCode
645
- * @param {string} [authorization] Bearer Token
646
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
647
- * @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.
648
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
649
- * @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.
650
- * @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.
651
- * @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.
652
- * @param {*} [options] Override http request option.
653
- * @throws {RequiredError}
654
- */
655
- listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
656
- return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
657
- },
658
- /**
659
- * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
660
- * @summary Upload documents using pre-signed URL
661
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
662
- * @param {string} [authorization] Bearer Token
663
- * @param {*} [options] Override http request option.
664
- * @throws {RequiredError}
665
- */
666
- preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
667
- return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
668
- },
669
- };
670
- };
671
- exports.DocumentsApiFactory = DocumentsApiFactory;
672
- /**
673
- * DocumentsApi - object-oriented interface
674
- * @export
675
- * @class DocumentsApi
676
- * @extends {BaseAPI}
677
- */
678
- var DocumentsApi = /** @class */ (function (_super) {
679
- __extends(DocumentsApi, _super);
680
- function DocumentsApi() {
681
- return _super !== null && _super.apply(this, arguments) || this;
682
- }
683
- /**
684
- * This will create a temporary document.
685
- * @summary Create the temporary document
686
- * @param {DocumentsApiCreateTemporaryDocumentRequest} requestParameters Request parameters.
687
- * @param {*} [options] Override http request option.
688
- * @throws {RequiredError}
689
- * @memberof DocumentsApi
690
- */
691
- DocumentsApi.prototype.createTemporaryDocument = function (requestParameters, options) {
692
- var _this = this;
693
- return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
694
- };
695
- /**
696
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
697
- * @summary Download a document
698
- * @param {DocumentsApiDownloadDocumentRequest} requestParameters Request parameters.
699
- * @param {*} [options] Override http request option.
700
- * @throws {RequiredError}
701
- * @memberof DocumentsApi
702
- */
703
- DocumentsApi.prototype.downloadDocument = function (requestParameters, options) {
704
- var _this = this;
705
- return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
706
- };
707
- /**
708
- *
709
- * @summary Get pre-signed url for downloading product document
710
- * @param {DocumentsApiDownloadProductDocumentUrlRequest} requestParameters Request parameters.
711
- * @param {*} [options] Override http request option.
712
- * @throws {RequiredError}
713
- * @memberof DocumentsApi
714
- */
715
- DocumentsApi.prototype.downloadProductDocumentUrl = function (requestParameters, options) {
716
- var _this = this;
717
- return (0, exports.DocumentsApiFp)(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
718
- };
719
- /**
720
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
721
- * @summary List documents
722
- * @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
723
- * @param {*} [options] Override http request option.
724
- * @throws {RequiredError}
725
- * @memberof DocumentsApi
726
- */
727
- DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
728
- var _this = this;
729
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
730
- };
731
- /**
732
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
733
- * @summary List product documents
734
- * @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
735
- * @param {*} [options] Override http request option.
736
- * @throws {RequiredError}
737
- * @memberof DocumentsApi
738
- */
739
- DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
740
- var _this = this;
741
- return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
742
- };
743
- /**
744
- * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
745
- * @summary Upload documents using pre-signed URL
746
- * @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
747
- * @param {*} [options] Override http request option.
748
- * @throws {RequiredError}
749
- * @memberof DocumentsApi
750
- */
751
- DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
752
- var _this = this;
753
- return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
754
- };
755
- return DocumentsApi;
756
- }(base_1.BaseAPI));
757
- exports.DocumentsApi = DocumentsApi;