@libgot/whatsapp-bridge-sdk 1.0.5 → 1.0.6

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
@@ -1,4 +1,4 @@
1
- ## @1.0.5
1
+ ## @1.0.6
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @libgot/whatsapp-bridge-sdk@1.0.5 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.6 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/dist/api.js CHANGED
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
8
12
  }));
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  /* tslint:disable */
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  var extendStatics = function (d, b) {
17
17
  extendStatics = Object.setPrototypeOf ||
18
18
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
20
  return extendStatics(d, b);
21
21
  };
22
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");
23
25
  extendStatics(d, b);
24
26
  function __() { this.constructor = d; }
25
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,12 +48,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
46
48
  });
47
49
  };
48
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- 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;
51
53
  function verb(n) { return function (v) { return step([n, v]); }; }
52
54
  function step(op) {
53
55
  if (f) throw new TypeError("Generator is already executing.");
54
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
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;
56
58
  if (y = 0, t) op = [op[0] & 2, t.value];
57
59
  switch (op[0]) {
@@ -72,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
72
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
75
  }
74
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
+ };
75
86
  Object.defineProperty(exports, "__esModule", { value: true });
76
87
  exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0;
77
88
  var axios_1 = require("axios");
@@ -82,7 +93,7 @@ var base_1 = require("../base");
82
93
  * AuthApi - axios parameter creator
83
94
  * @export
84
95
  */
85
- exports.AuthApiAxiosParamCreator = function (configuration) {
96
+ var AuthApiAxiosParamCreator = function (configuration) {
86
97
  var _this = this;
87
98
  return {
88
99
  /**
@@ -91,10 +102,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
91
102
  * @param {*} [options] Override http request option.
92
103
  * @throws {RequiredError}
93
104
  */
94
- login: function (body, options) {
95
- if (options === void 0) { options = {}; }
96
- return __awaiter(_this, void 0, void 0, function () {
105
+ login: function (body_1) {
106
+ var args_1 = [];
107
+ for (var _i = 1; _i < arguments.length; _i++) {
108
+ args_1[_i - 1] = arguments[_i];
109
+ }
110
+ return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
97
111
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
112
+ if (options === void 0) { options = {}; }
98
113
  return __generator(this, function (_a) {
99
114
  // verify required parameter 'body' is not null or undefined
100
115
  if (body === null || body === undefined) {
@@ -133,10 +148,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
133
148
  * @param {*} [options] Override http request option.
134
149
  * @throws {RequiredError}
135
150
  */
136
- logout: function (options) {
137
- if (options === void 0) { options = {}; }
138
- return __awaiter(_this, void 0, void 0, function () {
151
+ logout: function () {
152
+ var args_1 = [];
153
+ for (var _i = 0; _i < arguments.length; _i++) {
154
+ args_1[_i] = arguments[_i];
155
+ }
156
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
139
157
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, accessToken, _a, query, key, key, headersFromBaseOptions;
158
+ if (options === void 0) { options = {}; }
140
159
  return __generator(this, function (_b) {
141
160
  switch (_b.label) {
142
161
  case 0:
@@ -186,10 +205,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
186
205
  * @param {*} [options] Override http request option.
187
206
  * @throws {RequiredError}
188
207
  */
189
- refreshToken: function (options) {
190
- if (options === void 0) { options = {}; }
191
- return __awaiter(_this, void 0, void 0, function () {
208
+ refreshToken: function () {
209
+ var args_1 = [];
210
+ for (var _i = 0; _i < arguments.length; _i++) {
211
+ args_1[_i] = arguments[_i];
212
+ }
213
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
192
214
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, accessToken, _a, query, key, key, headersFromBaseOptions;
215
+ if (options === void 0) { options = {}; }
193
216
  return __generator(this, function (_b) {
194
217
  switch (_b.label) {
195
218
  case 0:
@@ -236,11 +259,12 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
236
259
  },
237
260
  };
238
261
  };
262
+ exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
239
263
  /**
240
264
  * AuthApi - functional programming interface
241
265
  * @export
242
266
  */
243
- exports.AuthApiFp = function (configuration) {
267
+ var AuthApiFp = function (configuration) {
244
268
  return {
245
269
  /**
246
270
  *
@@ -253,7 +277,7 @@ exports.AuthApiFp = function (configuration) {
253
277
  var localVarAxiosArgs;
254
278
  return __generator(this, function (_a) {
255
279
  switch (_a.label) {
256
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).login(body, options)];
280
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).login(body, options)];
257
281
  case 1:
258
282
  localVarAxiosArgs = _a.sent();
259
283
  return [2 /*return*/, function (axios, basePath) {
@@ -276,7 +300,7 @@ exports.AuthApiFp = function (configuration) {
276
300
  var localVarAxiosArgs;
277
301
  return __generator(this, function (_a) {
278
302
  switch (_a.label) {
279
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).logout(options)];
303
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).logout(options)];
280
304
  case 1:
281
305
  localVarAxiosArgs = _a.sent();
282
306
  return [2 /*return*/, function (axios, basePath) {
@@ -299,7 +323,7 @@ exports.AuthApiFp = function (configuration) {
299
323
  var localVarAxiosArgs;
300
324
  return __generator(this, function (_a) {
301
325
  switch (_a.label) {
302
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).refreshToken(options)];
326
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).refreshToken(options)];
303
327
  case 1:
304
328
  localVarAxiosArgs = _a.sent();
305
329
  return [2 /*return*/, function (axios, basePath) {
@@ -314,11 +338,12 @@ exports.AuthApiFp = function (configuration) {
314
338
  },
315
339
  };
316
340
  };
341
+ exports.AuthApiFp = AuthApiFp;
317
342
  /**
318
343
  * AuthApi - factory interface
319
344
  * @export
320
345
  */
321
- exports.AuthApiFactory = function (configuration, basePath, axios) {
346
+ var AuthApiFactory = function (configuration, basePath, axios) {
322
347
  return {
323
348
  /**
324
349
  *
@@ -329,7 +354,7 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
329
354
  login: function (body, options) {
330
355
  return __awaiter(this, void 0, void 0, function () {
331
356
  return __generator(this, function (_a) {
332
- return [2 /*return*/, exports.AuthApiFp(configuration).login(body, options).then(function (request) { return request(axios, basePath); })];
357
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).login(body, options).then(function (request) { return request(axios, basePath); })];
333
358
  });
334
359
  });
335
360
  },
@@ -341,7 +366,7 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
341
366
  logout: function (options) {
342
367
  return __awaiter(this, void 0, void 0, function () {
343
368
  return __generator(this, function (_a) {
344
- return [2 /*return*/, exports.AuthApiFp(configuration).logout(options).then(function (request) { return request(axios, basePath); })];
369
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).logout(options).then(function (request) { return request(axios, basePath); })];
345
370
  });
346
371
  });
347
372
  },
@@ -353,12 +378,13 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
353
378
  refreshToken: function (options) {
354
379
  return __awaiter(this, void 0, void 0, function () {
355
380
  return __generator(this, function (_a) {
356
- return [2 /*return*/, exports.AuthApiFp(configuration).refreshToken(options).then(function (request) { return request(axios, basePath); })];
381
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).refreshToken(options).then(function (request) { return request(axios, basePath); })];
357
382
  });
358
383
  });
359
384
  },
360
385
  };
361
386
  };
387
+ exports.AuthApiFactory = AuthApiFactory;
362
388
  /**
363
389
  * AuthApi - object-oriented interface
364
390
  * @export
@@ -381,7 +407,7 @@ var AuthApi = /** @class */ (function (_super) {
381
407
  return __awaiter(this, void 0, void 0, function () {
382
408
  var _this = this;
383
409
  return __generator(this, function (_a) {
384
- return [2 /*return*/, exports.AuthApiFp(this.configuration).login(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
410
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).login(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
385
411
  });
386
412
  });
387
413
  };
@@ -395,7 +421,7 @@ var AuthApi = /** @class */ (function (_super) {
395
421
  return __awaiter(this, void 0, void 0, function () {
396
422
  var _this = this;
397
423
  return __generator(this, function (_a) {
398
- return [2 /*return*/, exports.AuthApiFp(this.configuration).logout(options).then(function (request) { return request(_this.axios, _this.basePath); })];
424
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).logout(options).then(function (request) { return request(_this.axios, _this.basePath); })];
399
425
  });
400
426
  });
401
427
  };
@@ -409,7 +435,7 @@ var AuthApi = /** @class */ (function (_super) {
409
435
  return __awaiter(this, void 0, void 0, function () {
410
436
  var _this = this;
411
437
  return __generator(this, function (_a) {
412
- return [2 /*return*/, exports.AuthApiFp(this.configuration).refreshToken(options).then(function (request) { return request(_this.axios, _this.basePath); })];
438
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).refreshToken(options).then(function (request) { return request(_this.axios, _this.basePath); })];
413
439
  });
414
440
  });
415
441
  };
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  var extendStatics = function (d, b) {
17
17
  extendStatics = Object.setPrototypeOf ||
18
18
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
20
  return extendStatics(d, b);
21
21
  };
22
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");
23
25
  extendStatics(d, b);
24
26
  function __() { this.constructor = d; }
25
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,12 +48,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
46
48
  });
47
49
  };
48
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- 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;
51
53
  function verb(n) { return function (v) { return step([n, v]); }; }
52
54
  function step(op) {
53
55
  if (f) throw new TypeError("Generator is already executing.");
54
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
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;
56
58
  if (y = 0, t) op = [op[0] & 2, t.value];
57
59
  switch (op[0]) {
@@ -72,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
72
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
75
  }
74
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
+ };
75
86
  Object.defineProperty(exports, "__esModule", { value: true });
76
87
  exports.ChatsApi = exports.ChatsApiFactory = exports.ChatsApiFp = exports.ChatsApiAxiosParamCreator = void 0;
77
88
  var axios_1 = require("axios");
@@ -82,7 +93,7 @@ var base_1 = require("../base");
82
93
  * ChatsApi - axios parameter creator
83
94
  * @export
84
95
  */
85
- exports.ChatsApiAxiosParamCreator = function (configuration) {
96
+ var ChatsApiAxiosParamCreator = function (configuration) {
86
97
  var _this = this;
87
98
  return {
88
99
  /**
@@ -90,10 +101,14 @@ exports.ChatsApiAxiosParamCreator = function (configuration) {
90
101
  * @param {*} [options] Override http request option.
91
102
  * @throws {RequiredError}
92
103
  */
93
- getChats: function (options) {
94
- if (options === void 0) { options = {}; }
95
- return __awaiter(_this, void 0, void 0, function () {
104
+ getChats: function () {
105
+ var args_1 = [];
106
+ for (var _i = 0; _i < arguments.length; _i++) {
107
+ args_1[_i] = arguments[_i];
108
+ }
109
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
96
110
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
+ if (options === void 0) { options = {}; }
97
112
  return __generator(this, function (_a) {
98
113
  localVarPath = "/api/chats";
99
114
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -122,11 +137,12 @@ exports.ChatsApiAxiosParamCreator = function (configuration) {
122
137
  },
123
138
  };
124
139
  };
140
+ exports.ChatsApiAxiosParamCreator = ChatsApiAxiosParamCreator;
125
141
  /**
126
142
  * ChatsApi - functional programming interface
127
143
  * @export
128
144
  */
129
- exports.ChatsApiFp = function (configuration) {
145
+ var ChatsApiFp = function (configuration) {
130
146
  return {
131
147
  /**
132
148
  *
@@ -138,7 +154,7 @@ exports.ChatsApiFp = function (configuration) {
138
154
  var localVarAxiosArgs;
139
155
  return __generator(this, function (_a) {
140
156
  switch (_a.label) {
141
- case 0: return [4 /*yield*/, exports.ChatsApiAxiosParamCreator(configuration).getChats(options)];
157
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(options)];
142
158
  case 1:
143
159
  localVarAxiosArgs = _a.sent();
144
160
  return [2 /*return*/, function (axios, basePath) {
@@ -153,11 +169,12 @@ exports.ChatsApiFp = function (configuration) {
153
169
  },
154
170
  };
155
171
  };
172
+ exports.ChatsApiFp = ChatsApiFp;
156
173
  /**
157
174
  * ChatsApi - factory interface
158
175
  * @export
159
176
  */
160
- exports.ChatsApiFactory = function (configuration, basePath, axios) {
177
+ var ChatsApiFactory = function (configuration, basePath, axios) {
161
178
  return {
162
179
  /**
163
180
  *
@@ -167,12 +184,13 @@ exports.ChatsApiFactory = function (configuration, basePath, axios) {
167
184
  getChats: function (options) {
168
185
  return __awaiter(this, void 0, void 0, function () {
169
186
  return __generator(this, function (_a) {
170
- return [2 /*return*/, exports.ChatsApiFp(configuration).getChats(options).then(function (request) { return request(axios, basePath); })];
187
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(options).then(function (request) { return request(axios, basePath); })];
171
188
  });
172
189
  });
173
190
  },
174
191
  };
175
192
  };
193
+ exports.ChatsApiFactory = ChatsApiFactory;
176
194
  /**
177
195
  * ChatsApi - object-oriented interface
178
196
  * @export
@@ -194,7 +212,7 @@ var ChatsApi = /** @class */ (function (_super) {
194
212
  return __awaiter(this, void 0, void 0, function () {
195
213
  var _this = this;
196
214
  return __generator(this, function (_a) {
197
- return [2 /*return*/, exports.ChatsApiFp(this.configuration).getChats(options).then(function (request) { return request(_this.axios, _this.basePath); })];
215
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(options).then(function (request) { return request(_this.axios, _this.basePath); })];
198
216
  });
199
217
  });
200
218
  };
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  var extendStatics = function (d, b) {
17
17
  extendStatics = Object.setPrototypeOf ||
18
18
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
20
  return extendStatics(d, b);
21
21
  };
22
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");
23
25
  extendStatics(d, b);
24
26
  function __() { this.constructor = d; }
25
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,12 +48,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
46
48
  });
47
49
  };
48
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- 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;
51
53
  function verb(n) { return function (v) { return step([n, v]); }; }
52
54
  function step(op) {
53
55
  if (f) throw new TypeError("Generator is already executing.");
54
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
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;
56
58
  if (y = 0, t) op = [op[0] & 2, t.value];
57
59
  switch (op[0]) {
@@ -72,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
72
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
75
  }
74
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
+ };
75
86
  Object.defineProperty(exports, "__esModule", { value: true });
76
87
  exports.ContactsApi = exports.ContactsApiFactory = exports.ContactsApiFp = exports.ContactsApiAxiosParamCreator = void 0;
77
88
  var axios_1 = require("axios");
@@ -82,7 +93,7 @@ var base_1 = require("../base");
82
93
  * ContactsApi - axios parameter creator
83
94
  * @export
84
95
  */
85
- exports.ContactsApiAxiosParamCreator = function (configuration) {
96
+ var ContactsApiAxiosParamCreator = function (configuration) {
86
97
  var _this = this;
87
98
  return {
88
99
  /**
@@ -90,10 +101,14 @@ exports.ContactsApiAxiosParamCreator = function (configuration) {
90
101
  * @param {*} [options] Override http request option.
91
102
  * @throws {RequiredError}
92
103
  */
93
- getContacts: function (options) {
94
- if (options === void 0) { options = {}; }
95
- return __awaiter(_this, void 0, void 0, function () {
104
+ getContacts: function () {
105
+ var args_1 = [];
106
+ for (var _i = 0; _i < arguments.length; _i++) {
107
+ args_1[_i] = arguments[_i];
108
+ }
109
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
96
110
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
+ if (options === void 0) { options = {}; }
97
112
  return __generator(this, function (_a) {
98
113
  localVarPath = "/api/contacts";
99
114
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -122,11 +137,12 @@ exports.ContactsApiAxiosParamCreator = function (configuration) {
122
137
  },
123
138
  };
124
139
  };
140
+ exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator;
125
141
  /**
126
142
  * ContactsApi - functional programming interface
127
143
  * @export
128
144
  */
129
- exports.ContactsApiFp = function (configuration) {
145
+ var ContactsApiFp = function (configuration) {
130
146
  return {
131
147
  /**
132
148
  *
@@ -138,7 +154,7 @@ exports.ContactsApiFp = function (configuration) {
138
154
  var localVarAxiosArgs;
139
155
  return __generator(this, function (_a) {
140
156
  switch (_a.label) {
141
- case 0: return [4 /*yield*/, exports.ContactsApiAxiosParamCreator(configuration).getContacts(options)];
157
+ case 0: return [4 /*yield*/, (0, exports.ContactsApiAxiosParamCreator)(configuration).getContacts(options)];
142
158
  case 1:
143
159
  localVarAxiosArgs = _a.sent();
144
160
  return [2 /*return*/, function (axios, basePath) {
@@ -153,11 +169,12 @@ exports.ContactsApiFp = function (configuration) {
153
169
  },
154
170
  };
155
171
  };
172
+ exports.ContactsApiFp = ContactsApiFp;
156
173
  /**
157
174
  * ContactsApi - factory interface
158
175
  * @export
159
176
  */
160
- exports.ContactsApiFactory = function (configuration, basePath, axios) {
177
+ var ContactsApiFactory = function (configuration, basePath, axios) {
161
178
  return {
162
179
  /**
163
180
  *
@@ -167,12 +184,13 @@ exports.ContactsApiFactory = function (configuration, basePath, axios) {
167
184
  getContacts: function (options) {
168
185
  return __awaiter(this, void 0, void 0, function () {
169
186
  return __generator(this, function (_a) {
170
- return [2 /*return*/, exports.ContactsApiFp(configuration).getContacts(options).then(function (request) { return request(axios, basePath); })];
187
+ return [2 /*return*/, (0, exports.ContactsApiFp)(configuration).getContacts(options).then(function (request) { return request(axios, basePath); })];
171
188
  });
172
189
  });
173
190
  },
174
191
  };
175
192
  };
193
+ exports.ContactsApiFactory = ContactsApiFactory;
176
194
  /**
177
195
  * ContactsApi - object-oriented interface
178
196
  * @export
@@ -194,7 +212,7 @@ var ContactsApi = /** @class */ (function (_super) {
194
212
  return __awaiter(this, void 0, void 0, function () {
195
213
  var _this = this;
196
214
  return __generator(this, function (_a) {
197
- return [2 /*return*/, exports.ContactsApiFp(this.configuration).getContacts(options).then(function (request) { return request(_this.axios, _this.basePath); })];
215
+ return [2 /*return*/, (0, exports.ContactsApiFp)(this.configuration).getContacts(options).then(function (request) { return request(_this.axios, _this.basePath); })];
198
216
  });
199
217
  });
200
218
  };
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  var extendStatics = function (d, b) {
17
17
  extendStatics = Object.setPrototypeOf ||
18
18
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
20
  return extendStatics(d, b);
21
21
  };
22
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");
23
25
  extendStatics(d, b);
24
26
  function __() { this.constructor = d; }
25
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,12 +48,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
46
48
  });
47
49
  };
48
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- 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;
51
53
  function verb(n) { return function (v) { return step([n, v]); }; }
52
54
  function step(op) {
53
55
  if (f) throw new TypeError("Generator is already executing.");
54
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
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;
56
58
  if (y = 0, t) op = [op[0] & 2, t.value];
57
59
  switch (op[0]) {
@@ -72,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
72
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
75
  }
74
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
+ };
75
86
  Object.defineProperty(exports, "__esModule", { value: true });
76
87
  exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
77
88
  var axios_1 = require("axios");
@@ -82,7 +93,7 @@ var base_1 = require("../base");
82
93
  * DefaultApi - axios parameter creator
83
94
  * @export
84
95
  */
85
- exports.DefaultApiAxiosParamCreator = function (configuration) {
96
+ var DefaultApiAxiosParamCreator = function (configuration) {
86
97
  var _this = this;
87
98
  return {
88
99
  /**
@@ -90,10 +101,14 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
90
101
  * @param {*} [options] Override http request option.
91
102
  * @throws {RequiredError}
92
103
  */
93
- appControllerGetHello: function (options) {
94
- if (options === void 0) { options = {}; }
95
- return __awaiter(_this, void 0, void 0, function () {
104
+ appControllerGetHello: function () {
105
+ var args_1 = [];
106
+ for (var _i = 0; _i < arguments.length; _i++) {
107
+ args_1[_i] = arguments[_i];
108
+ }
109
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
96
110
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
+ if (options === void 0) { options = {}; }
97
112
  return __generator(this, function (_a) {
98
113
  localVarPath = "/";
99
114
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -122,11 +137,12 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
122
137
  },
123
138
  };
124
139
  };
140
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
125
141
  /**
126
142
  * DefaultApi - functional programming interface
127
143
  * @export
128
144
  */
129
- exports.DefaultApiFp = function (configuration) {
145
+ var DefaultApiFp = function (configuration) {
130
146
  return {
131
147
  /**
132
148
  *
@@ -138,7 +154,7 @@ exports.DefaultApiFp = function (configuration) {
138
154
  var localVarAxiosArgs;
139
155
  return __generator(this, function (_a) {
140
156
  switch (_a.label) {
141
- case 0: return [4 /*yield*/, exports.DefaultApiAxiosParamCreator(configuration).appControllerGetHello(options)];
157
+ case 0: return [4 /*yield*/, (0, exports.DefaultApiAxiosParamCreator)(configuration).appControllerGetHello(options)];
142
158
  case 1:
143
159
  localVarAxiosArgs = _a.sent();
144
160
  return [2 /*return*/, function (axios, basePath) {
@@ -153,11 +169,12 @@ exports.DefaultApiFp = function (configuration) {
153
169
  },
154
170
  };
155
171
  };
172
+ exports.DefaultApiFp = DefaultApiFp;
156
173
  /**
157
174
  * DefaultApi - factory interface
158
175
  * @export
159
176
  */
160
- exports.DefaultApiFactory = function (configuration, basePath, axios) {
177
+ var DefaultApiFactory = function (configuration, basePath, axios) {
161
178
  return {
162
179
  /**
163
180
  *
@@ -167,12 +184,13 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
167
184
  appControllerGetHello: function (options) {
168
185
  return __awaiter(this, void 0, void 0, function () {
169
186
  return __generator(this, function (_a) {
170
- return [2 /*return*/, exports.DefaultApiFp(configuration).appControllerGetHello(options).then(function (request) { return request(axios, basePath); })];
187
+ return [2 /*return*/, (0, exports.DefaultApiFp)(configuration).appControllerGetHello(options).then(function (request) { return request(axios, basePath); })];
171
188
  });
172
189
  });
173
190
  },
174
191
  };
175
192
  };
193
+ exports.DefaultApiFactory = DefaultApiFactory;
176
194
  /**
177
195
  * DefaultApi - object-oriented interface
178
196
  * @export
@@ -194,7 +212,7 @@ var DefaultApi = /** @class */ (function (_super) {
194
212
  return __awaiter(this, void 0, void 0, function () {
195
213
  var _this = this;
196
214
  return __generator(this, function (_a) {
197
- return [2 /*return*/, exports.DefaultApiFp(this.configuration).appControllerGetHello(options).then(function (request) { return request(_this.axios, _this.basePath); })];
215
+ return [2 /*return*/, (0, exports.DefaultApiFp)(this.configuration).appControllerGetHello(options).then(function (request) { return request(_this.axios, _this.basePath); })];
198
216
  });
199
217
  });
200
218
  };