@emilgroup/billing-sdk-node 1.47.1-beta.2 → 1.47.1-beta.20

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/billing-sdk-node@1.47.1-beta.2 --save
20
+ npm install @emilgroup/billing-sdk-node@1.47.1-beta.20 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.47.1-beta.2
24
+ yarn add @emilgroup/billing-sdk-node@1.47.1-beta.20
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
package/base.ts CHANGED
@@ -278,7 +278,7 @@ export class BaseAPI {
278
278
  * @extends {Error}
279
279
  */
280
280
  export class RequiredError extends Error {
281
- name: "RequiredError" = "RequiredError";
281
+ override name: "RequiredError" = "RequiredError";
282
282
  constructor(public field: string, msg?: string) {
283
283
  super(msg);
284
284
  }
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ createCorrectionInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  switch (_a.label) {
114
127
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var DefaultApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- check: function (options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ check: function () {
114
+ var args_1 = [];
115
+ for (var _i = 0; _i < arguments.length; _i++) {
116
+ args_1[_i] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  localVarPath = "/billingservice/health";
110
123
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -103,10 +112,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
103
112
  * @param {*} [options] Override http request option.
104
113
  * @throws {RequiredError}
105
114
  */
106
- createDraftInvoice: function (createDraftInvoiceRequestDto, authorization, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
115
+ createDraftInvoice: function (createDraftInvoiceRequestDto_1, authorization_1) {
116
+ var args_1 = [];
117
+ for (var _i = 2; _i < arguments.length; _i++) {
118
+ args_1[_i - 2] = arguments[_i];
119
+ }
120
+ return __awaiter(_this, __spreadArray([createDraftInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createDraftInvoiceRequestDto, authorization, options) {
109
121
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
122
+ if (options === void 0) { options = {}; }
110
123
  return __generator(this, function (_a) {
111
124
  switch (_a.label) {
112
125
  case 0:
@@ -150,10 +163,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
150
163
  * @param {*} [options] Override http request option.
151
164
  * @throws {RequiredError}
152
165
  */
153
- deleteAllDraftInvoices: function (authorization, options) {
154
- if (options === void 0) { options = {}; }
155
- return __awaiter(_this, void 0, void 0, function () {
166
+ deleteAllDraftInvoices: function (authorization_1) {
167
+ var args_1 = [];
168
+ for (var _i = 1; _i < arguments.length; _i++) {
169
+ args_1[_i - 1] = arguments[_i];
170
+ }
171
+ return __awaiter(_this, __spreadArray([authorization_1], args_1, true), void 0, function (authorization, options) {
156
172
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
173
+ if (options === void 0) { options = {}; }
157
174
  return __generator(this, function (_a) {
158
175
  switch (_a.label) {
159
176
  case 0:
@@ -194,10 +211,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
194
211
  * @param {*} [options] Override http request option.
195
212
  * @throws {RequiredError}
196
213
  */
197
- deleteDraftInvoice: function (body, authorization, options) {
198
- if (options === void 0) { options = {}; }
199
- return __awaiter(_this, void 0, void 0, function () {
214
+ deleteDraftInvoice: function (body_1, authorization_1) {
215
+ var args_1 = [];
216
+ for (var _i = 2; _i < arguments.length; _i++) {
217
+ args_1[_i - 2] = arguments[_i];
218
+ }
219
+ return __awaiter(_this, __spreadArray([body_1, authorization_1], args_1, true), void 0, function (body, authorization, options) {
200
220
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
221
+ if (options === void 0) { options = {}; }
201
222
  return __generator(this, function (_a) {
202
223
  switch (_a.label) {
203
224
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -104,10 +113,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
104
113
  * @param {*} [options] Override http request option.
105
114
  * @throws {RequiredError}
106
115
  */
107
- createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
108
- if (options === void 0) { options = {}; }
109
- return __awaiter(_this, void 0, void 0, function () {
116
+ createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto_1, authorization_1) {
117
+ var args_1 = [];
118
+ for (var _i = 2; _i < arguments.length; _i++) {
119
+ args_1[_i - 2] = arguments[_i];
120
+ }
121
+ return __awaiter(_this, __spreadArray([createCustomEstimatedInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
110
122
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
+ if (options === void 0) { options = {}; }
111
124
  return __generator(this, function (_a) {
112
125
  switch (_a.label) {
113
126
  case 0:
@@ -153,10 +166,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
153
166
  * @param {*} [options] Override http request option.
154
167
  * @throws {RequiredError}
155
168
  */
156
- createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
169
+ createEstimatedInvoice: function (createEstimatedInvoiceRequestDto_1, authorization_1) {
170
+ var args_1 = [];
171
+ for (var _i = 2; _i < arguments.length; _i++) {
172
+ args_1[_i - 2] = arguments[_i];
173
+ }
174
+ return __awaiter(_this, __spreadArray([createEstimatedInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createEstimatedInvoiceRequestDto, authorization, options) {
159
175
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
176
+ if (options === void 0) { options = {}; }
160
177
  return __generator(this, function (_a) {
161
178
  switch (_a.label) {
162
179
  case 0:
@@ -202,10 +219,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
202
219
  * @param {*} [options] Override http request option.
203
220
  * @throws {RequiredError}
204
221
  */
205
- createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
206
- if (options === void 0) { options = {}; }
207
- return __awaiter(_this, void 0, void 0, function () {
222
+ createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto_1, authorization_1) {
223
+ var args_1 = [];
224
+ for (var _i = 2; _i < arguments.length; _i++) {
225
+ args_1[_i - 2] = arguments[_i];
226
+ }
227
+ return __awaiter(_this, __spreadArray([createEstimatedInvoiceForIntervalRequestDto_1, authorization_1], args_1, true), void 0, function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
208
228
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
229
+ if (options === void 0) { options = {}; }
209
230
  return __generator(this, function (_a) {
210
231
  switch (_a.label) {
211
232
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ createInitialInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  switch (_a.label) {
114
127
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- createInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ createInvoice: function (createInvoiceRequestDto_1, authorization_1, idempotencyKey_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([createInvoiceRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  switch (_a.label) {
114
127
  case 0:
@@ -158,10 +171,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
158
171
  * @param {*} [options] Override http request option.
159
172
  * @throws {RequiredError}
160
173
  */
161
- getInvoice: function (code, expand, authorization, options) {
162
- if (options === void 0) { options = {}; }
163
- return __awaiter(_this, void 0, void 0, function () {
174
+ getInvoice: function (code_1, expand_1, authorization_1) {
175
+ var args_1 = [];
176
+ for (var _i = 3; _i < arguments.length; _i++) {
177
+ args_1[_i - 3] = arguments[_i];
178
+ }
179
+ return __awaiter(_this, __spreadArray([code_1, expand_1, authorization_1], args_1, true), void 0, function (code, expand, authorization, options) {
164
180
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
181
+ if (options === void 0) { options = {}; }
165
182
  return __generator(this, function (_a) {
166
183
  switch (_a.label) {
167
184
  case 0:
@@ -217,10 +234,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
217
234
  * @param {*} [options] Override http request option.
218
235
  * @throws {RequiredError}
219
236
  */
220
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
221
- if (options === void 0) { options = {}; }
222
- return __awaiter(_this, void 0, void 0, function () {
237
+ listInvoices: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
238
+ var args_1 = [];
239
+ for (var _i = 8; _i < arguments.length; _i++) {
240
+ args_1[_i - 8] = arguments[_i];
241
+ }
242
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
223
243
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
244
+ if (options === void 0) { options = {}; }
224
245
  return __generator(this, function (_a) {
225
246
  switch (_a.label) {
226
247
  case 0:
@@ -290,10 +311,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
290
311
  * @deprecated
291
312
  * @throws {RequiredError}
292
313
  */
293
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
294
- if (options === void 0) { options = {}; }
295
- return __awaiter(_this, void 0, void 0, function () {
314
+ listPoliciesBillingDates: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
315
+ var args_1 = [];
316
+ for (var _i = 8; _i < arguments.length; _i++) {
317
+ args_1[_i - 8] = arguments[_i];
318
+ }
319
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
296
320
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
321
+ if (options === void 0) { options = {}; }
297
322
  return __generator(this, function (_a) {
298
323
  switch (_a.label) {
299
324
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -104,10 +113,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
104
113
  * @param {*} [options] Override http request option.
105
114
  * @throws {RequiredError}
106
115
  */
107
- createPolicyBilling: function (createPolicyBillingRequestDto, authorization, options) {
108
- if (options === void 0) { options = {}; }
109
- return __awaiter(_this, void 0, void 0, function () {
116
+ createPolicyBilling: function (createPolicyBillingRequestDto_1, authorization_1) {
117
+ var args_1 = [];
118
+ for (var _i = 2; _i < arguments.length; _i++) {
119
+ args_1[_i - 2] = arguments[_i];
120
+ }
121
+ return __awaiter(_this, __spreadArray([createPolicyBillingRequestDto_1, authorization_1], args_1, true), void 0, function (createPolicyBillingRequestDto, authorization, options) {
110
122
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
+ if (options === void 0) { options = {}; }
111
124
  return __generator(this, function (_a) {
112
125
  switch (_a.label) {
113
126
  case 0:
@@ -159,10 +172,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
159
172
  * @param {*} [options] Override http request option.
160
173
  * @throws {RequiredError}
161
174
  */
162
- listPoliciesBillings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
163
- if (options === void 0) { options = {}; }
164
- return __awaiter(_this, void 0, void 0, function () {
175
+ listPoliciesBillings: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
176
+ var args_1 = [];
177
+ for (var _i = 8; _i < arguments.length; _i++) {
178
+ args_1[_i - 8] = arguments[_i];
179
+ }
180
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
165
181
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
182
+ if (options === void 0) { options = {}; }
166
183
  return __generator(this, function (_a) {
167
184
  switch (_a.label) {
168
185
  case 0:
@@ -226,10 +243,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
226
243
  * @param {*} [options] Override http request option.
227
244
  * @throws {RequiredError}
228
245
  */
229
- updatePolicyBilling: function (code, updatePolicyBillingRequestDto, authorization, options) {
230
- if (options === void 0) { options = {}; }
231
- return __awaiter(_this, void 0, void 0, function () {
246
+ updatePolicyBilling: function (code_1, updatePolicyBillingRequestDto_1, authorization_1) {
247
+ var args_1 = [];
248
+ for (var _i = 3; _i < arguments.length; _i++) {
249
+ args_1[_i - 3] = arguments[_i];
250
+ }
251
+ return __awaiter(_this, __spreadArray([code_1, updatePolicyBillingRequestDto_1, authorization_1], args_1, true), void 0, function (code, updatePolicyBillingRequestDto, authorization, options) {
232
252
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
+ if (options === void 0) { options = {}; }
233
254
  return __generator(this, function (_a) {
234
255
  switch (_a.label) {
235
256
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- createRecurringInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ createRecurringInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  switch (_a.label) {
114
127
  case 0:
package/dist/base.js CHANGED
@@ -54,13 +54,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
54
54
  }) : function(o, v) {
55
55
  o["default"] = v;
56
56
  });
57
- var __importStar = (this && this.__importStar) || function (mod) {
58
- if (mod && mod.__esModule) return mod;
59
- var result = {};
60
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
61
- __setModuleDefault(result, mod);
62
- return result;
63
- };
57
+ var __importStar = (this && this.__importStar) || (function () {
58
+ var ownKeys = function(o) {
59
+ ownKeys = Object.getOwnPropertyNames || function (o) {
60
+ var ar = [];
61
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
62
+ return ar;
63
+ };
64
+ return ownKeys(o);
65
+ };
66
+ return function (mod) {
67
+ if (mod && mod.__esModule) return mod;
68
+ var result = {};
69
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
70
+ __setModuleDefault(result, mod);
71
+ return result;
72
+ };
73
+ })();
64
74
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
65
75
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
66
76
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -71,8 +81,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
71
81
  });
72
82
  };
73
83
  var __generator = (this && this.__generator) || function (thisArg, body) {
74
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
75
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
84
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
85
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
76
86
  function verb(n) { return function (v) { return step([n, v]); }; }
77
87
  function step(op) {
78
88
  if (f) throw new TypeError("Generator is already executing.");
@@ -101,7 +111,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
101
111
  return (mod && mod.__esModule) ? mod : { "default": mod };
102
112
  };
103
113
  Object.defineProperty(exports, "__esModule", { value: true });
104
- exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
114
+ exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
115
+ exports.resetRetry = resetRetry;
105
116
  var configuration_1 = require("./configuration");
106
117
  // Some imports not used depending on template conditions
107
118
  // @ts-ignore
@@ -132,13 +143,12 @@ var Environment;
132
143
  Environment["Staging"] = "https://apiv2-staging.emil.de";
133
144
  Environment["Development"] = "https://apiv2-dev.emil.de";
134
145
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
135
- })(Environment = exports.Environment || (exports.Environment = {}));
146
+ })(Environment || (exports.Environment = Environment = {}));
136
147
  var _retry_count = 0;
137
148
  var _retry = null;
138
149
  function resetRetry() {
139
150
  _retry_count = 0;
140
151
  }
141
- exports.resetRetry = resetRetry;
142
152
  var NETWORK_ERROR_MESSAGE = "Network Error";
143
153
  /**
144
154
  *
@@ -162,9 +172,9 @@ var BaseAPI = /** @class */ (function () {
162
172
  }
163
173
  this.attachInterceptor(axios);
164
174
  }
165
- BaseAPI.prototype.initialize = function (env) {
166
- if (env === void 0) { env = Environment.Production; }
167
- return __awaiter(this, void 0, void 0, function () {
175
+ BaseAPI.prototype.initialize = function () {
176
+ return __awaiter(this, arguments, void 0, function (env) {
177
+ if (env === void 0) { env = Environment.Production; }
168
178
  return __generator(this, function (_a) {
169
179
  switch (_a.label) {
170
180
  case 0:
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
68
  * EMIL BillingService
69
69
  * The EMIL BillingService API description
package/dist/common.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  });
34
34
  };
35
35
  var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
38
  function verb(n) { return function (v) { return step([n, v]); }; }
39
39
  function step(op) {
40
40
  if (f) throw new TypeError("Generator is already executing.");
@@ -28,4 +28,16 @@ export interface ListInvoicesResponseClass {
28
28
  * @memberof ListInvoicesResponseClass
29
29
  */
30
30
  'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListInvoicesResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListInvoicesResponseClass
41
+ */
42
+ 'totalItems': number;
31
43
  }
@@ -33,5 +33,17 @@ export interface ListInvoicesResponseClass {
33
33
  * @memberof ListInvoicesResponseClass
34
34
  */
35
35
  'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListInvoicesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListInvoicesResponseClass
46
+ */
47
+ 'totalItems': number;
36
48
  }
37
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.47.1-beta.2",
3
+ "version": "1.47.1-beta.20",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2",
21
+ "axios": "^1.9.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
27
- "typescript": "^4.0"
26
+ "@types/node": "^22.15.18",
27
+ "typescript": "^5.8"
28
28
  }
29
29
  }
package/tsconfig.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "module": "CommonJS",
6
6
  "noImplicitAny": true,
7
7
  "esModuleInterop": true,
8
+ "noImplicitOverride": true,
8
9
  "outDir": "dist",
9
10
  "rootDir": ".",
10
11
  "lib": [