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