@emilgroup/public-api-sdk 1.25.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 (222) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/booking-funnels-api.ts +161 -0
  4. package/api/documents-api.ts +36 -22
  5. package/api/leads-api.ts +4 -4
  6. package/api/named-ranges-api.ts +250 -0
  7. package/api/products-api.ts +65 -38
  8. package/api.ts +4 -0
  9. package/base.ts +1 -0
  10. package/dist/api/address-completions-validations-api.d.ts +215 -0
  11. package/dist/api/address-completions-validations-api.js +369 -0
  12. package/dist/api/booking-funnels-api.d.ts +96 -0
  13. package/dist/api/booking-funnels-api.js +223 -0
  14. package/dist/api/default-api.d.ts +66 -0
  15. package/dist/api/default-api.js +196 -0
  16. package/dist/api/documents-api.d.ts +548 -0
  17. package/dist/api/documents-api.js +857 -0
  18. package/dist/api/leads-api.d.ts +441 -0
  19. package/dist/api/leads-api.js +787 -0
  20. package/dist/api/named-ranges-api.d.ts +150 -0
  21. package/dist/api/named-ranges-api.js +263 -0
  22. package/dist/api/notifications-api.d.ts +211 -0
  23. package/dist/api/notifications-api.js +410 -0
  24. package/dist/api/payments-setup-api.d.ts +228 -0
  25. package/dist/api/payments-setup-api.js +422 -0
  26. package/dist/api/products-api.d.ts +581 -0
  27. package/dist/api/products-api.js +933 -0
  28. package/dist/api.d.ts +20 -0
  29. package/dist/api.js +38 -0
  30. package/dist/base.d.ts +74 -0
  31. package/dist/base.js +299 -0
  32. package/dist/common.d.ts +91 -0
  33. package/dist/common.js +276 -0
  34. package/dist/configuration.d.ts +83 -0
  35. package/dist/configuration.js +44 -0
  36. package/dist/index.d.ts +15 -0
  37. package/dist/index.js +36 -0
  38. package/dist/models/address-completion-item-class.d.ts +49 -0
  39. package/dist/models/address-completion-item-class.js +15 -0
  40. package/dist/models/address-completion-response-class.d.ts +25 -0
  41. package/dist/models/address-completion-response-class.js +15 -0
  42. package/dist/models/address-field-score-class.d.ts +48 -0
  43. package/dist/models/address-field-score-class.js +15 -0
  44. package/dist/models/booking-funnel-class.d.ts +90 -0
  45. package/dist/models/booking-funnel-class.js +15 -0
  46. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  47. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  48. package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
  49. package/dist/models/calculate-product-fields-response-class.js +15 -0
  50. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  51. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  52. package/dist/models/complete-email-verification-dto.d.ts +30 -0
  53. package/dist/models/complete-email-verification-dto.js +15 -0
  54. package/dist/models/complete-email-verification-response-class.d.ts +24 -0
  55. package/dist/models/complete-email-verification-response-class.js +15 -0
  56. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  57. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  58. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  59. package/dist/models/complete-payment-setup-response-class.js +15 -0
  60. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  61. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  62. package/dist/models/create-account-request-dto.d.ts +132 -0
  63. package/dist/models/create-account-request-dto.js +31 -0
  64. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  65. package/dist/models/create-bank-account-request-dto.js +15 -0
  66. package/dist/models/create-custom-application-request-dto.d.ts +35 -0
  67. package/dist/models/create-custom-application-request-dto.js +20 -0
  68. package/dist/models/create-custom-application-response-class.d.ts +24 -0
  69. package/dist/models/create-custom-application-response-class.js +15 -0
  70. package/dist/models/create-document-request-dto.d.ts +132 -0
  71. package/dist/models/create-document-request-dto.js +43 -0
  72. package/dist/models/create-estimated-invoice-request-dto.d.ts +55 -0
  73. package/dist/models/create-estimated-invoice-request-dto.js +20 -0
  74. package/dist/models/create-estimated-invoice-response-class.d.ts +38 -0
  75. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  76. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  77. package/dist/models/create-lead-async-response-class.js +15 -0
  78. package/dist/models/create-lead-request-dto.d.ts +120 -0
  79. package/dist/models/create-lead-request-dto.js +15 -0
  80. package/dist/models/create-lead-response-class.d.ts +25 -0
  81. package/dist/models/create-lead-response-class.js +15 -0
  82. package/dist/models/create-payment-method-request-dto.d.ts +36 -0
  83. package/dist/models/create-payment-method-request-dto.js +20 -0
  84. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  85. package/dist/models/create-presigned-post-request-dto.js +52 -0
  86. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  87. package/dist/models/create-presigned-post-response-class.js +15 -0
  88. package/dist/models/document-class.d.ts +144 -0
  89. package/dist/models/document-class.js +49 -0
  90. package/dist/models/filter-named-range-response-class.d.ts +42 -0
  91. package/dist/models/filter-named-range-response-class.js +15 -0
  92. package/dist/models/get-booking-funnel-response-class.d.ts +25 -0
  93. package/dist/models/get-booking-funnel-response-class.js +15 -0
  94. package/dist/models/get-custom-css-response-class.d.ts +24 -0
  95. package/dist/models/get-custom-css-response-class.js +15 -0
  96. package/dist/models/get-lead-response-class.d.ts +25 -0
  97. package/dist/models/get-lead-response-class.js +15 -0
  98. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  99. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  100. package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
  101. package/dist/models/get-public-psp-settings-response-class.js +15 -0
  102. package/dist/models/index.d.ts +79 -0
  103. package/dist/models/index.js +95 -0
  104. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  105. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  106. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  107. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  108. package/dist/models/initiate-email-verification-dto.d.ts +30 -0
  109. package/dist/models/initiate-email-verification-dto.js +15 -0
  110. package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
  111. package/dist/models/initiate-email-verification-response-class.js +15 -0
  112. package/dist/models/initiate-lead-response-class.d.ts +24 -0
  113. package/dist/models/initiate-lead-response-class.js +15 -0
  114. package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
  115. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  116. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  117. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  118. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  119. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  120. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  121. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  122. package/dist/models/inline-response200.d.ts +54 -0
  123. package/dist/models/inline-response200.js +15 -0
  124. package/dist/models/inline-response503.d.ts +54 -0
  125. package/dist/models/inline-response503.js +15 -0
  126. package/dist/models/insured-object-class.d.ts +85 -0
  127. package/dist/models/insured-object-class.js +15 -0
  128. package/dist/models/insured-object-type-class.d.ts +48 -0
  129. package/dist/models/insured-object-type-class.js +15 -0
  130. package/dist/models/invoice-class.d.ts +134 -0
  131. package/dist/models/invoice-class.js +15 -0
  132. package/dist/models/invoice-item-class.d.ts +120 -0
  133. package/dist/models/invoice-item-class.js +15 -0
  134. package/dist/models/invoice-status-class.d.ts +42 -0
  135. package/dist/models/invoice-status-class.js +15 -0
  136. package/dist/models/lead-account-class.d.ts +109 -0
  137. package/dist/models/lead-account-class.js +22 -0
  138. package/dist/models/lead-bank-account-class.d.ts +30 -0
  139. package/dist/models/lead-bank-account-class.js +15 -0
  140. package/dist/models/lead-class.d.ts +116 -0
  141. package/dist/models/lead-class.js +15 -0
  142. package/dist/models/lead-policy-class.d.ts +43 -0
  143. package/dist/models/lead-policy-class.js +15 -0
  144. package/dist/models/lead-policy-object-class.d.ts +36 -0
  145. package/dist/models/lead-policy-object-class.js +15 -0
  146. package/dist/models/list-documents-response-class.d.ts +31 -0
  147. package/dist/models/list-documents-response-class.js +15 -0
  148. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  149. package/dist/models/list-product-documents-response-class.js +15 -0
  150. package/dist/models/list-products-response-class.d.ts +31 -0
  151. package/dist/models/list-products-response-class.js +15 -0
  152. package/dist/models/partner-class.d.ts +60 -0
  153. package/dist/models/partner-class.js +15 -0
  154. package/dist/models/partner-link-class.d.ts +86 -0
  155. package/dist/models/partner-link-class.js +15 -0
  156. package/dist/models/partner-role-class.d.ts +54 -0
  157. package/dist/models/partner-role-class.js +15 -0
  158. package/dist/models/payment-method-class.d.ts +60 -0
  159. package/dist/models/payment-method-class.js +15 -0
  160. package/dist/models/policy-object-request-dto.d.ts +42 -0
  161. package/dist/models/policy-object-request-dto.js +15 -0
  162. package/dist/models/policy-object-response-class.d.ts +36 -0
  163. package/dist/models/policy-object-response-class.js +15 -0
  164. package/dist/models/premium-override-dto.d.ts +55 -0
  165. package/dist/models/premium-override-dto.js +27 -0
  166. package/dist/models/premium-override-request-dto.d.ts +25 -0
  167. package/dist/models/premium-override-request-dto.js +15 -0
  168. package/dist/models/product-class.d.ts +80 -0
  169. package/dist/models/product-class.js +15 -0
  170. package/dist/models/product-document-class.d.ts +123 -0
  171. package/dist/models/product-document-class.js +36 -0
  172. package/dist/models/product-factor-for-version-class.d.ts +61 -0
  173. package/dist/models/product-factor-for-version-class.js +15 -0
  174. package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
  175. package/dist/models/product-factor-value-for-version-class.js +15 -0
  176. package/dist/models/product-field-class.d.ts +132 -0
  177. package/dist/models/product-field-class.js +15 -0
  178. package/dist/models/product-version-class.d.ts +61 -0
  179. package/dist/models/product-version-class.js +22 -0
  180. package/dist/models/send-notification-request-dto.d.ts +36 -0
  181. package/dist/models/send-notification-request-dto.js +15 -0
  182. package/dist/models/send-notification-response-class.d.ts +24 -0
  183. package/dist/models/send-notification-response-class.js +15 -0
  184. package/dist/models/sepa-dto.d.ts +30 -0
  185. package/dist/models/sepa-dto.js +15 -0
  186. package/dist/models/structured-address-class.d.ts +54 -0
  187. package/dist/models/structured-address-class.js +15 -0
  188. package/dist/models/suggested-address-details-class.d.ts +90 -0
  189. package/dist/models/suggested-address-details-class.js +15 -0
  190. package/dist/models/update-lead-request-dto.d.ts +95 -0
  191. package/dist/models/update-lead-request-dto.js +15 -0
  192. package/dist/models/update-lead-response-class.d.ts +25 -0
  193. package/dist/models/update-lead-response-class.js +15 -0
  194. package/dist/models/uploaded-document-dto.d.ts +24 -0
  195. package/dist/models/uploaded-document-dto.js +15 -0
  196. package/dist/models/validate-address-response-class.d.ts +50 -0
  197. package/dist/models/validate-address-response-class.js +15 -0
  198. package/models/address-field-score-class.ts +10 -10
  199. package/models/booking-funnel-class.ts +96 -0
  200. package/models/create-account-request-dto.ts +1 -1
  201. package/models/create-document-request-dto.ts +2 -2
  202. package/models/create-lead-request-dto.ts +13 -1
  203. package/models/create-presigned-post-request-dto.ts +2 -2
  204. package/models/document-class.ts +1 -1
  205. package/models/filter-named-range-response-class.ts +48 -0
  206. package/models/get-booking-funnel-response-class.ts +31 -0
  207. package/models/index.ts +7 -0
  208. package/models/initiate-email-verification-dto.ts +1 -1
  209. package/models/insured-object-type-class.ts +1 -1
  210. package/models/lead-account-class.ts +1 -1
  211. package/models/lead-class.ts +7 -0
  212. package/models/lead-policy-object-class.ts +2 -2
  213. package/models/partner-class.ts +66 -0
  214. package/models/partner-link-class.ts +92 -0
  215. package/models/partner-role-class.ts +60 -0
  216. package/models/product-class.ts +1 -1
  217. package/models/product-document-class.ts +14 -2
  218. package/models/product-factor-for-version-class.ts +4 -3
  219. package/models/product-factor-value-for-version-class.ts +48 -0
  220. package/models/send-notification-request-dto.ts +1 -1
  221. package/models/update-lead-request-dto.ts +1 -1
  222. package/package.json +1 -1
@@ -0,0 +1,933 @@
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.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = 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
+ * ProductsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ProductsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will calculate product fields.
97
+ * @summary Create the product fields
98
+ * @param {string} productCode
99
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
100
+ * @param {string} [authorization] Bearer Token
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'productCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('calculateProductFields', 'productCode', productCode);
113
+ // verify required parameter 'calculateProductFieldsRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('calculateProductFields', 'calculateProductFieldsRequestDto', calculateProductFieldsRequestDto);
115
+ localVarPath = "/publicapi/v1/products/{product_code}/calculate-product-fields"
116
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
117
+ localVarUrlObj = new 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)(calculateProductFieldsRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will create an invoice product.
150
+ * @summary Create the invoice product
151
+ * @param {string} productCode
152
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'productCode' is not null or undefined
165
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'productCode', productCode);
166
+ // verify required parameter 'createEstimatedInvoiceRequestDto' is not null or undefined
167
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'createEstimatedInvoiceRequestDto', createEstimatedInvoiceRequestDto);
168
+ localVarPath = "/publicapi/v1/products/{product_code}/product-invoice"
169
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * This will create a custom application for a specific provider.
203
+ * @summary Create the custom application
204
+ * @param {string} productCode
205
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
206
+ * @param {string} [authorization] Bearer Token
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
211
+ if (options === void 0) { options = {}; }
212
+ return __awaiter(_this, void 0, void 0, function () {
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ // verify required parameter 'productCode' is not null or undefined
218
+ (0, common_1.assertParamExists)('customApplication', 'productCode', productCode);
219
+ // verify required parameter 'createCustomApplicationRequestDto' is not null or undefined
220
+ (0, common_1.assertParamExists)('customApplication', 'createCustomApplicationRequestDto', createCustomApplicationRequestDto);
221
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-application"
222
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
223
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ baseAccessToken = configuration.accessToken;
227
+ }
228
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
229
+ localVarHeaderParameter = {};
230
+ localVarQueryParameter = {};
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
+ case 1:
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ _a.sent();
238
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
239
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ }
241
+ localVarHeaderParameter['Content-Type'] = 'application/json';
242
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomApplicationRequestDto, localVarRequestOptions, configuration);
246
+ return [2 /*return*/, {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ }];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ /**
255
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
256
+ * @summary List insured object types
257
+ * @param {string} productCode
258
+ * @param {string} [authorization] Bearer Token
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ getInsuredObjectTypes: function (productCode, authorization, options) {
263
+ if (options === void 0) { options = {}; }
264
+ return __awaiter(_this, void 0, void 0, function () {
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0:
269
+ // verify required parameter 'productCode' is not null or undefined
270
+ (0, common_1.assertParamExists)('getInsuredObjectTypes', 'productCode', productCode);
271
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-object-types"
272
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
273
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ baseAccessToken = configuration.accessToken;
277
+ }
278
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
279
+ localVarHeaderParameter = {};
280
+ localVarQueryParameter = {};
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
284
+ case 1:
285
+ // authentication bearer required
286
+ // http bearer authentication required
287
+ _a.sent();
288
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
289
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ }
291
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
292
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
+ return [2 /*return*/, {
295
+ url: (0, common_1.toPathString)(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ }];
298
+ }
299
+ });
300
+ });
301
+ },
302
+ /**
303
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
+ * @summary List insured objects
305
+ * @param {string} productCode
306
+ * @param {string} [authorization] Bearer Token
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ getInsuredObjects: function (productCode, authorization, options) {
311
+ if (options === void 0) { options = {}; }
312
+ return __awaiter(_this, void 0, void 0, function () {
313
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0:
317
+ // verify required parameter 'productCode' is not null or undefined
318
+ (0, common_1.assertParamExists)('getInsuredObjects', 'productCode', productCode);
319
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-objects"
320
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
321
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ baseAccessToken = configuration.accessToken;
325
+ }
326
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
327
+ localVarHeaderParameter = {};
328
+ localVarQueryParameter = {};
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
332
+ case 1:
333
+ // authentication bearer required
334
+ // http bearer authentication required
335
+ _a.sent();
336
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
+ }
339
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
340
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
342
+ return [2 /*return*/, {
343
+ url: (0, common_1.toPathString)(localVarUrlObj),
344
+ options: localVarRequestOptions,
345
+ }];
346
+ }
347
+ });
348
+ });
349
+ },
350
+ /**
351
+ * This will generate a custom css for booking funnel, based on product.
352
+ * @summary Generate a custom CSS
353
+ * @param {string} productCode
354
+ * @param {string} [authorization] Bearer Token
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ getProductCustomCss: function (productCode, authorization, options) {
359
+ if (options === void 0) { options = {}; }
360
+ return __awaiter(_this, void 0, void 0, function () {
361
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
362
+ return __generator(this, function (_a) {
363
+ switch (_a.label) {
364
+ case 0:
365
+ // verify required parameter 'productCode' is not null or undefined
366
+ (0, common_1.assertParamExists)('getProductCustomCss', 'productCode', productCode);
367
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-css"
368
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
369
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ baseAccessToken = configuration.accessToken;
373
+ }
374
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
375
+ localVarHeaderParameter = {};
376
+ localVarQueryParameter = {};
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
380
+ case 1:
381
+ // authentication bearer required
382
+ // http bearer authentication required
383
+ _a.sent();
384
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
385
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
386
+ }
387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
388
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
389
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
390
+ return [2 /*return*/, {
391
+ url: (0, common_1.toPathString)(localVarUrlObj),
392
+ options: localVarRequestOptions,
393
+ }];
394
+ }
395
+ });
396
+ });
397
+ },
398
+ /**
399
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
400
+ * @summary List product factors
401
+ * @param {string} productCode
402
+ * @param {string} allValues
403
+ * @param {string} [authorization] Bearer Token
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ getProductFactors: function (productCode, allValues, authorization, options) {
408
+ if (options === void 0) { options = {}; }
409
+ return __awaiter(_this, void 0, void 0, function () {
410
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0:
414
+ // verify required parameter 'productCode' is not null or undefined
415
+ (0, common_1.assertParamExists)('getProductFactors', 'productCode', productCode);
416
+ // verify required parameter 'allValues' is not null or undefined
417
+ (0, common_1.assertParamExists)('getProductFactors', 'allValues', allValues);
418
+ localVarPath = "/publicapi/v1/products/{product_code}/product-factors"
419
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
420
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ baseAccessToken = configuration.accessToken;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
431
+ case 1:
432
+ // authentication bearer required
433
+ // http bearer authentication required
434
+ _a.sent();
435
+ if (allValues !== undefined) {
436
+ localVarQueryParameter['all_values'] = allValues;
437
+ }
438
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
439
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
440
+ }
441
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
442
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
444
+ return [2 /*return*/, {
445
+ url: (0, common_1.toPathString)(localVarUrlObj),
446
+ options: localVarRequestOptions,
447
+ }];
448
+ }
449
+ });
450
+ });
451
+ },
452
+ /**
453
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
454
+ * @summary List products
455
+ * @param {string} [authorization] Bearer Token
456
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
457
+ * @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.
458
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
459
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
460
+ * @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.
461
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
462
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
467
+ if (options === void 0) { options = {}; }
468
+ return __awaiter(_this, void 0, void 0, function () {
469
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
470
+ return __generator(this, function (_a) {
471
+ switch (_a.label) {
472
+ case 0:
473
+ localVarPath = "/publicapi/v1/products";
474
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ baseAccessToken = configuration.accessToken;
478
+ }
479
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
480
+ localVarHeaderParameter = {};
481
+ localVarQueryParameter = {};
482
+ // authentication bearer required
483
+ // http bearer authentication required
484
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
485
+ case 1:
486
+ // authentication bearer required
487
+ // http bearer authentication required
488
+ _a.sent();
489
+ if (pageSize !== undefined) {
490
+ localVarQueryParameter['pageSize'] = pageSize;
491
+ }
492
+ if (pageToken !== undefined) {
493
+ localVarQueryParameter['pageToken'] = pageToken;
494
+ }
495
+ if (filter !== undefined) {
496
+ localVarQueryParameter['filter'] = filter;
497
+ }
498
+ if (search !== undefined) {
499
+ localVarQueryParameter['search'] = search;
500
+ }
501
+ if (order !== undefined) {
502
+ localVarQueryParameter['order'] = order;
503
+ }
504
+ if (expand !== undefined) {
505
+ localVarQueryParameter['expand'] = expand;
506
+ }
507
+ if (filters !== undefined) {
508
+ localVarQueryParameter['filters'] = filters;
509
+ }
510
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
511
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
512
+ }
513
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
514
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
516
+ return [2 /*return*/, {
517
+ url: (0, common_1.toPathString)(localVarUrlObj),
518
+ options: localVarRequestOptions,
519
+ }];
520
+ }
521
+ });
522
+ });
523
+ },
524
+ };
525
+ };
526
+ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
527
+ /**
528
+ * ProductsApi - functional programming interface
529
+ * @export
530
+ */
531
+ var ProductsApiFp = function (configuration) {
532
+ var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
533
+ return {
534
+ /**
535
+ * This will calculate product fields.
536
+ * @summary Create the product fields
537
+ * @param {string} productCode
538
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
539
+ * @param {string} [authorization] Bearer Token
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
544
+ return __awaiter(this, void 0, void 0, function () {
545
+ var localVarAxiosArgs;
546
+ return __generator(this, function (_a) {
547
+ switch (_a.label) {
548
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options)];
549
+ case 1:
550
+ localVarAxiosArgs = _a.sent();
551
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
552
+ }
553
+ });
554
+ });
555
+ },
556
+ /**
557
+ * This will create an invoice product.
558
+ * @summary Create the invoice product
559
+ * @param {string} productCode
560
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
561
+ * @param {string} [authorization] Bearer Token
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, 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.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, 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
+ * This will create a custom application for a specific provider.
580
+ * @summary Create the custom application
581
+ * @param {string} productCode
582
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
583
+ * @param {string} [authorization] Bearer Token
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
588
+ return __awaiter(this, void 0, void 0, function () {
589
+ var localVarAxiosArgs;
590
+ return __generator(this, function (_a) {
591
+ switch (_a.label) {
592
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options)];
593
+ case 1:
594
+ localVarAxiosArgs = _a.sent();
595
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
596
+ }
597
+ });
598
+ });
599
+ },
600
+ /**
601
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
602
+ * @summary List insured object types
603
+ * @param {string} productCode
604
+ * @param {string} [authorization] Bearer Token
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ getInsuredObjectTypes: function (productCode, authorization, options) {
609
+ return __awaiter(this, void 0, void 0, function () {
610
+ var localVarAxiosArgs;
611
+ return __generator(this, function (_a) {
612
+ switch (_a.label) {
613
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjectTypes(productCode, authorization, options)];
614
+ case 1:
615
+ localVarAxiosArgs = _a.sent();
616
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
617
+ }
618
+ });
619
+ });
620
+ },
621
+ /**
622
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
623
+ * @summary List insured objects
624
+ * @param {string} productCode
625
+ * @param {string} [authorization] Bearer Token
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ getInsuredObjects: function (productCode, authorization, options) {
630
+ return __awaiter(this, void 0, void 0, function () {
631
+ var localVarAxiosArgs;
632
+ return __generator(this, function (_a) {
633
+ switch (_a.label) {
634
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
635
+ case 1:
636
+ localVarAxiosArgs = _a.sent();
637
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
638
+ }
639
+ });
640
+ });
641
+ },
642
+ /**
643
+ * This will generate a custom css for booking funnel, based on product.
644
+ * @summary Generate a custom CSS
645
+ * @param {string} productCode
646
+ * @param {string} [authorization] Bearer Token
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ getProductCustomCss: function (productCode, authorization, options) {
651
+ return __awaiter(this, void 0, void 0, function () {
652
+ var localVarAxiosArgs;
653
+ return __generator(this, function (_a) {
654
+ switch (_a.label) {
655
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
656
+ case 1:
657
+ localVarAxiosArgs = _a.sent();
658
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
659
+ }
660
+ });
661
+ });
662
+ },
663
+ /**
664
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
665
+ * @summary List product factors
666
+ * @param {string} productCode
667
+ * @param {string} allValues
668
+ * @param {string} [authorization] Bearer Token
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ getProductFactors: function (productCode, allValues, authorization, options) {
673
+ return __awaiter(this, void 0, void 0, function () {
674
+ var localVarAxiosArgs;
675
+ return __generator(this, function (_a) {
676
+ switch (_a.label) {
677
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
678
+ case 1:
679
+ localVarAxiosArgs = _a.sent();
680
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
681
+ }
682
+ });
683
+ });
684
+ },
685
+ /**
686
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
687
+ * @summary List products
688
+ * @param {string} [authorization] Bearer Token
689
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
690
+ * @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.
691
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
692
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
693
+ * @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.
694
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
695
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
700
+ return __awaiter(this, void 0, void 0, function () {
701
+ var localVarAxiosArgs;
702
+ return __generator(this, function (_a) {
703
+ switch (_a.label) {
704
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
705
+ case 1:
706
+ localVarAxiosArgs = _a.sent();
707
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
708
+ }
709
+ });
710
+ });
711
+ },
712
+ };
713
+ };
714
+ exports.ProductsApiFp = ProductsApiFp;
715
+ /**
716
+ * ProductsApi - factory interface
717
+ * @export
718
+ */
719
+ var ProductsApiFactory = function (configuration, basePath, axios) {
720
+ var localVarFp = (0, exports.ProductsApiFp)(configuration);
721
+ return {
722
+ /**
723
+ * This will calculate product fields.
724
+ * @summary Create the product fields
725
+ * @param {string} productCode
726
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
727
+ * @param {string} [authorization] Bearer Token
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
732
+ return localVarFp.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
733
+ },
734
+ /**
735
+ * This will create an invoice product.
736
+ * @summary Create the invoice product
737
+ * @param {string} productCode
738
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
739
+ * @param {string} [authorization] Bearer Token
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
744
+ return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
745
+ },
746
+ /**
747
+ * This will create a custom application for a specific provider.
748
+ * @summary Create the custom application
749
+ * @param {string} productCode
750
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
751
+ * @param {string} [authorization] Bearer Token
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
756
+ return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
757
+ },
758
+ /**
759
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
760
+ * @summary List insured object types
761
+ * @param {string} productCode
762
+ * @param {string} [authorization] Bearer Token
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ getInsuredObjectTypes: function (productCode, authorization, options) {
767
+ return localVarFp.getInsuredObjectTypes(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
768
+ },
769
+ /**
770
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
771
+ * @summary List insured objects
772
+ * @param {string} productCode
773
+ * @param {string} [authorization] Bearer Token
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ getInsuredObjects: function (productCode, authorization, options) {
778
+ return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
779
+ },
780
+ /**
781
+ * This will generate a custom css for booking funnel, based on product.
782
+ * @summary Generate a custom CSS
783
+ * @param {string} productCode
784
+ * @param {string} [authorization] Bearer Token
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ */
788
+ getProductCustomCss: function (productCode, authorization, options) {
789
+ return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
790
+ },
791
+ /**
792
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
793
+ * @summary List product factors
794
+ * @param {string} productCode
795
+ * @param {string} allValues
796
+ * @param {string} [authorization] Bearer Token
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ getProductFactors: function (productCode, allValues, authorization, options) {
801
+ return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
802
+ },
803
+ /**
804
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
805
+ * @summary List products
806
+ * @param {string} [authorization] Bearer Token
807
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
808
+ * @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.
809
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
810
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
811
+ * @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.
812
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
813
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
818
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
819
+ },
820
+ };
821
+ };
822
+ exports.ProductsApiFactory = ProductsApiFactory;
823
+ /**
824
+ * ProductsApi - object-oriented interface
825
+ * @export
826
+ * @class ProductsApi
827
+ * @extends {BaseAPI}
828
+ */
829
+ var ProductsApi = /** @class */ (function (_super) {
830
+ __extends(ProductsApi, _super);
831
+ function ProductsApi() {
832
+ return _super !== null && _super.apply(this, arguments) || this;
833
+ }
834
+ /**
835
+ * This will calculate product fields.
836
+ * @summary Create the product fields
837
+ * @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof ProductsApi
841
+ */
842
+ ProductsApi.prototype.calculateProductFields = function (requestParameters, options) {
843
+ var _this = this;
844
+ return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
845
+ };
846
+ /**
847
+ * This will create an invoice product.
848
+ * @summary Create the invoice product
849
+ * @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ * @memberof ProductsApi
853
+ */
854
+ ProductsApi.prototype.createEstimatedInvoice = function (requestParameters, options) {
855
+ var _this = this;
856
+ return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
857
+ };
858
+ /**
859
+ * This will create a custom application for a specific provider.
860
+ * @summary Create the custom application
861
+ * @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ * @memberof ProductsApi
865
+ */
866
+ ProductsApi.prototype.customApplication = function (requestParameters, options) {
867
+ var _this = this;
868
+ return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
869
+ };
870
+ /**
871
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
872
+ * @summary List insured object types
873
+ * @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ * @memberof ProductsApi
877
+ */
878
+ ProductsApi.prototype.getInsuredObjectTypes = function (requestParameters, options) {
879
+ var _this = this;
880
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
881
+ };
882
+ /**
883
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
884
+ * @summary List insured objects
885
+ * @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ * @memberof ProductsApi
889
+ */
890
+ ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
891
+ var _this = this;
892
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
893
+ };
894
+ /**
895
+ * This will generate a custom css for booking funnel, based on product.
896
+ * @summary Generate a custom CSS
897
+ * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ * @memberof ProductsApi
901
+ */
902
+ ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
903
+ var _this = this;
904
+ return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
905
+ };
906
+ /**
907
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
908
+ * @summary List product factors
909
+ * @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ * @memberof ProductsApi
913
+ */
914
+ ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
915
+ var _this = this;
916
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
917
+ };
918
+ /**
919
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
920
+ * @summary List products
921
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ * @memberof ProductsApi
925
+ */
926
+ ProductsApi.prototype.listProducts = function (requestParameters, options) {
927
+ var _this = this;
928
+ if (requestParameters === void 0) { requestParameters = {}; }
929
+ return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
930
+ };
931
+ return ProductsApi;
932
+ }(base_1.BaseAPI));
933
+ exports.ProductsApi = ProductsApi;