@libgot/whatsapp-bridge-sdk 1.0.5 → 1.0.7
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 +2 -2
- package/dist/api.js +6 -2
- package/dist/apis/auth-api.js +51 -25
- package/dist/apis/chats-api.js +31 -13
- package/dist/apis/contacts-api.js +31 -13
- package/dist/apis/default-api.js +31 -13
- package/dist/apis/healthchecks-api.js +41 -19
- package/dist/apis/messages-api.js +31 -13
- package/dist/apis/users-api.js +73 -39
- package/dist/base.js +3 -1
- package/dist/index.js +6 -2
- package/dist/models/index.js +6 -2
- package/dist/models/whatsapp-chat-dto.d.ts +1 -1
- package/models/whatsapp-chat-dto.ts +1 -1
- package/package.json +3 -3
|
@@ -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 (
|
|
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 =
|
|
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.HealthchecksApi = exports.HealthchecksApiFactory = exports.HealthchecksApiFp = exports.HealthchecksApiAxiosParamCreator = void 0;
|
|
77
88
|
var axios_1 = require("axios");
|
|
@@ -82,7 +93,7 @@ var base_1 = require("../base");
|
|
|
82
93
|
* HealthchecksApi - axios parameter creator
|
|
83
94
|
* @export
|
|
84
95
|
*/
|
|
85
|
-
|
|
96
|
+
var HealthchecksApiAxiosParamCreator = function (configuration) {
|
|
86
97
|
var _this = this;
|
|
87
98
|
return {
|
|
88
99
|
/**
|
|
@@ -90,10 +101,14 @@ exports.HealthchecksApiAxiosParamCreator = function (configuration) {
|
|
|
90
101
|
* @param {*} [options] Override http request option.
|
|
91
102
|
* @throws {RequiredError}
|
|
92
103
|
*/
|
|
93
|
-
healthcheckControllerLiveness: function (
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
healthcheckControllerLiveness: 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/healthcheck/liveness";
|
|
99
114
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
@@ -125,10 +140,14 @@ exports.HealthchecksApiAxiosParamCreator = function (configuration) {
|
|
|
125
140
|
* @param {*} [options] Override http request option.
|
|
126
141
|
* @throws {RequiredError}
|
|
127
142
|
*/
|
|
128
|
-
healthcheckControllerReadiness: function (
|
|
129
|
-
|
|
130
|
-
|
|
143
|
+
healthcheckControllerReadiness: function () {
|
|
144
|
+
var args_1 = [];
|
|
145
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
146
|
+
args_1[_i] = arguments[_i];
|
|
147
|
+
}
|
|
148
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
131
149
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
150
|
+
if (options === void 0) { options = {}; }
|
|
132
151
|
return __generator(this, function (_a) {
|
|
133
152
|
localVarPath = "/api/healthcheck/readiness";
|
|
134
153
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
@@ -157,11 +176,12 @@ exports.HealthchecksApiAxiosParamCreator = function (configuration) {
|
|
|
157
176
|
},
|
|
158
177
|
};
|
|
159
178
|
};
|
|
179
|
+
exports.HealthchecksApiAxiosParamCreator = HealthchecksApiAxiosParamCreator;
|
|
160
180
|
/**
|
|
161
181
|
* HealthchecksApi - functional programming interface
|
|
162
182
|
* @export
|
|
163
183
|
*/
|
|
164
|
-
|
|
184
|
+
var HealthchecksApiFp = function (configuration) {
|
|
165
185
|
return {
|
|
166
186
|
/**
|
|
167
187
|
*
|
|
@@ -173,7 +193,7 @@ exports.HealthchecksApiFp = function (configuration) {
|
|
|
173
193
|
var localVarAxiosArgs;
|
|
174
194
|
return __generator(this, function (_a) {
|
|
175
195
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, exports.HealthchecksApiAxiosParamCreator(configuration).healthcheckControllerLiveness(options)];
|
|
196
|
+
case 0: return [4 /*yield*/, (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerLiveness(options)];
|
|
177
197
|
case 1:
|
|
178
198
|
localVarAxiosArgs = _a.sent();
|
|
179
199
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -196,7 +216,7 @@ exports.HealthchecksApiFp = function (configuration) {
|
|
|
196
216
|
var localVarAxiosArgs;
|
|
197
217
|
return __generator(this, function (_a) {
|
|
198
218
|
switch (_a.label) {
|
|
199
|
-
case 0: return [4 /*yield*/, exports.HealthchecksApiAxiosParamCreator(configuration).healthcheckControllerReadiness(options)];
|
|
219
|
+
case 0: return [4 /*yield*/, (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerReadiness(options)];
|
|
200
220
|
case 1:
|
|
201
221
|
localVarAxiosArgs = _a.sent();
|
|
202
222
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -211,11 +231,12 @@ exports.HealthchecksApiFp = function (configuration) {
|
|
|
211
231
|
},
|
|
212
232
|
};
|
|
213
233
|
};
|
|
234
|
+
exports.HealthchecksApiFp = HealthchecksApiFp;
|
|
214
235
|
/**
|
|
215
236
|
* HealthchecksApi - factory interface
|
|
216
237
|
* @export
|
|
217
238
|
*/
|
|
218
|
-
|
|
239
|
+
var HealthchecksApiFactory = function (configuration, basePath, axios) {
|
|
219
240
|
return {
|
|
220
241
|
/**
|
|
221
242
|
*
|
|
@@ -225,7 +246,7 @@ exports.HealthchecksApiFactory = function (configuration, basePath, axios) {
|
|
|
225
246
|
healthcheckControllerLiveness: function (options) {
|
|
226
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
248
|
return __generator(this, function (_a) {
|
|
228
|
-
return [2 /*return*/, exports.HealthchecksApiFp(configuration).healthcheckControllerLiveness(options).then(function (request) { return request(axios, basePath); })];
|
|
249
|
+
return [2 /*return*/, (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerLiveness(options).then(function (request) { return request(axios, basePath); })];
|
|
229
250
|
});
|
|
230
251
|
});
|
|
231
252
|
},
|
|
@@ -237,12 +258,13 @@ exports.HealthchecksApiFactory = function (configuration, basePath, axios) {
|
|
|
237
258
|
healthcheckControllerReadiness: function (options) {
|
|
238
259
|
return __awaiter(this, void 0, void 0, function () {
|
|
239
260
|
return __generator(this, function (_a) {
|
|
240
|
-
return [2 /*return*/, exports.HealthchecksApiFp(configuration).healthcheckControllerReadiness(options).then(function (request) { return request(axios, basePath); })];
|
|
261
|
+
return [2 /*return*/, (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerReadiness(options).then(function (request) { return request(axios, basePath); })];
|
|
241
262
|
});
|
|
242
263
|
});
|
|
243
264
|
},
|
|
244
265
|
};
|
|
245
266
|
};
|
|
267
|
+
exports.HealthchecksApiFactory = HealthchecksApiFactory;
|
|
246
268
|
/**
|
|
247
269
|
* HealthchecksApi - object-oriented interface
|
|
248
270
|
* @export
|
|
@@ -264,7 +286,7 @@ var HealthchecksApi = /** @class */ (function (_super) {
|
|
|
264
286
|
return __awaiter(this, void 0, void 0, function () {
|
|
265
287
|
var _this = this;
|
|
266
288
|
return __generator(this, function (_a) {
|
|
267
|
-
return [2 /*return*/, exports.HealthchecksApiFp(this.configuration).healthcheckControllerLiveness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
289
|
+
return [2 /*return*/, (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerLiveness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
268
290
|
});
|
|
269
291
|
});
|
|
270
292
|
};
|
|
@@ -278,7 +300,7 @@ var HealthchecksApi = /** @class */ (function (_super) {
|
|
|
278
300
|
return __awaiter(this, void 0, void 0, function () {
|
|
279
301
|
var _this = this;
|
|
280
302
|
return __generator(this, function (_a) {
|
|
281
|
-
return [2 /*return*/, exports.HealthchecksApiFp(this.configuration).healthcheckControllerReadiness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
303
|
+
return [2 /*return*/, (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerReadiness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
282
304
|
});
|
|
283
305
|
});
|
|
284
306
|
};
|
|
@@ -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 (
|
|
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 =
|
|
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.MessagesApi = exports.MessagesApiFactory = exports.MessagesApiFp = exports.MessagesApiAxiosParamCreator = void 0;
|
|
77
88
|
var axios_1 = require("axios");
|
|
@@ -82,7 +93,7 @@ var base_1 = require("../base");
|
|
|
82
93
|
* MessagesApi - axios parameter creator
|
|
83
94
|
* @export
|
|
84
95
|
*/
|
|
85
|
-
|
|
96
|
+
var MessagesApiAxiosParamCreator = function (configuration) {
|
|
86
97
|
var _this = this;
|
|
87
98
|
return {
|
|
88
99
|
/**
|
|
@@ -90,10 +101,14 @@ exports.MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
90
101
|
* @param {*} [options] Override http request option.
|
|
91
102
|
* @throws {RequiredError}
|
|
92
103
|
*/
|
|
93
|
-
getMessages: function (
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
getMessages: 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/messages";
|
|
99
114
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
@@ -122,11 +137,12 @@ exports.MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
122
137
|
},
|
|
123
138
|
};
|
|
124
139
|
};
|
|
140
|
+
exports.MessagesApiAxiosParamCreator = MessagesApiAxiosParamCreator;
|
|
125
141
|
/**
|
|
126
142
|
* MessagesApi - functional programming interface
|
|
127
143
|
* @export
|
|
128
144
|
*/
|
|
129
|
-
|
|
145
|
+
var MessagesApiFp = function (configuration) {
|
|
130
146
|
return {
|
|
131
147
|
/**
|
|
132
148
|
*
|
|
@@ -138,7 +154,7 @@ exports.MessagesApiFp = 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.MessagesApiAxiosParamCreator(configuration).getMessages(options)];
|
|
157
|
+
case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).getMessages(options)];
|
|
142
158
|
case 1:
|
|
143
159
|
localVarAxiosArgs = _a.sent();
|
|
144
160
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -153,11 +169,12 @@ exports.MessagesApiFp = function (configuration) {
|
|
|
153
169
|
},
|
|
154
170
|
};
|
|
155
171
|
};
|
|
172
|
+
exports.MessagesApiFp = MessagesApiFp;
|
|
156
173
|
/**
|
|
157
174
|
* MessagesApi - factory interface
|
|
158
175
|
* @export
|
|
159
176
|
*/
|
|
160
|
-
|
|
177
|
+
var MessagesApiFactory = function (configuration, basePath, axios) {
|
|
161
178
|
return {
|
|
162
179
|
/**
|
|
163
180
|
*
|
|
@@ -167,12 +184,13 @@ exports.MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
167
184
|
getMessages: function (options) {
|
|
168
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
169
186
|
return __generator(this, function (_a) {
|
|
170
|
-
return [2 /*return*/, exports.MessagesApiFp(configuration).getMessages(options).then(function (request) { return request(axios, basePath); })];
|
|
187
|
+
return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).getMessages(options).then(function (request) { return request(axios, basePath); })];
|
|
171
188
|
});
|
|
172
189
|
});
|
|
173
190
|
},
|
|
174
191
|
};
|
|
175
192
|
};
|
|
193
|
+
exports.MessagesApiFactory = MessagesApiFactory;
|
|
176
194
|
/**
|
|
177
195
|
* MessagesApi - object-oriented interface
|
|
178
196
|
* @export
|
|
@@ -194,7 +212,7 @@ var MessagesApi = /** @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.MessagesApiFp(this.configuration).getMessages(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
215
|
+
return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).getMessages(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
198
216
|
});
|
|
199
217
|
});
|
|
200
218
|
};
|
package/dist/apis/users-api.js
CHANGED
|
@@ -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 (
|
|
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 =
|
|
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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
77
88
|
var axios_1 = require("axios");
|
|
@@ -82,7 +93,7 @@ var base_1 = require("../base");
|
|
|
82
93
|
* UsersApi - axios parameter creator
|
|
83
94
|
* @export
|
|
84
95
|
*/
|
|
85
|
-
|
|
96
|
+
var UsersApiAxiosParamCreator = function (configuration) {
|
|
86
97
|
var _this = this;
|
|
87
98
|
return {
|
|
88
99
|
/**
|
|
@@ -91,10 +102,14 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
91
102
|
* @param {*} [options] Override http request option.
|
|
92
103
|
* @throws {RequiredError}
|
|
93
104
|
*/
|
|
94
|
-
createSetter: function (
|
|
95
|
-
|
|
96
|
-
|
|
105
|
+
createSetter: 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, accessToken, _a, query, key, key, headersFromBaseOptions, needsSerialization;
|
|
112
|
+
if (options === void 0) { options = {}; }
|
|
98
113
|
return __generator(this, function (_b) {
|
|
99
114
|
switch (_b.label) {
|
|
100
115
|
case 0:
|
|
@@ -151,10 +166,14 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
151
166
|
* @param {*} [options] Override http request option.
|
|
152
167
|
* @throws {RequiredError}
|
|
153
168
|
*/
|
|
154
|
-
usersControllerGet: function (
|
|
155
|
-
|
|
156
|
-
|
|
169
|
+
usersControllerGet: function () {
|
|
170
|
+
var args_1 = [];
|
|
171
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
172
|
+
args_1[_i] = arguments[_i];
|
|
173
|
+
}
|
|
174
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
157
175
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
176
|
+
if (options === void 0) { options = {}; }
|
|
158
177
|
return __generator(this, function (_a) {
|
|
159
178
|
localVarPath = "/api/users";
|
|
160
179
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
@@ -187,17 +206,21 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
187
206
|
* @param {*} [options] Override http request option.
|
|
188
207
|
* @throws {RequiredError}
|
|
189
208
|
*/
|
|
190
|
-
usersControllerShow: function (
|
|
191
|
-
|
|
192
|
-
|
|
209
|
+
usersControllerShow: function (id_1) {
|
|
210
|
+
var args_1 = [];
|
|
211
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
212
|
+
args_1[_i - 1] = arguments[_i];
|
|
213
|
+
}
|
|
214
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
193
215
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
216
|
+
if (options === void 0) { options = {}; }
|
|
194
217
|
return __generator(this, function (_a) {
|
|
195
218
|
// verify required parameter 'id' is not null or undefined
|
|
196
219
|
if (id === null || id === undefined) {
|
|
197
220
|
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling usersControllerShow.');
|
|
198
221
|
}
|
|
199
222
|
localVarPath = "/api/users/{id}"
|
|
200
|
-
.replace("{"
|
|
223
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
201
224
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
202
225
|
if (configuration) {
|
|
203
226
|
baseOptions = configuration.baseOptions;
|
|
@@ -227,10 +250,14 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
227
250
|
* @param {*} [options] Override http request option.
|
|
228
251
|
* @throws {RequiredError}
|
|
229
252
|
*/
|
|
230
|
-
usersControllerStore: function (
|
|
231
|
-
|
|
232
|
-
|
|
253
|
+
usersControllerStore: function () {
|
|
254
|
+
var args_1 = [];
|
|
255
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
256
|
+
args_1[_i] = arguments[_i];
|
|
257
|
+
}
|
|
258
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
233
259
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
260
|
+
if (options === void 0) { options = {}; }
|
|
234
261
|
return __generator(this, function (_a) {
|
|
235
262
|
localVarPath = "/api/users";
|
|
236
263
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
@@ -263,17 +290,21 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
263
290
|
* @param {*} [options] Override http request option.
|
|
264
291
|
* @throws {RequiredError}
|
|
265
292
|
*/
|
|
266
|
-
usersControllerUpdate: function (
|
|
267
|
-
|
|
268
|
-
|
|
293
|
+
usersControllerUpdate: function (id_1) {
|
|
294
|
+
var args_1 = [];
|
|
295
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
296
|
+
args_1[_i - 1] = arguments[_i];
|
|
297
|
+
}
|
|
298
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
269
299
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
300
|
+
if (options === void 0) { options = {}; }
|
|
270
301
|
return __generator(this, function (_a) {
|
|
271
302
|
// verify required parameter 'id' is not null or undefined
|
|
272
303
|
if (id === null || id === undefined) {
|
|
273
304
|
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling usersControllerUpdate.');
|
|
274
305
|
}
|
|
275
306
|
localVarPath = "/api/users/{id}"
|
|
276
|
-
.replace("{"
|
|
307
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
277
308
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
278
309
|
if (configuration) {
|
|
279
310
|
baseOptions = configuration.baseOptions;
|
|
@@ -300,11 +331,12 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
300
331
|
},
|
|
301
332
|
};
|
|
302
333
|
};
|
|
334
|
+
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
303
335
|
/**
|
|
304
336
|
* UsersApi - functional programming interface
|
|
305
337
|
* @export
|
|
306
338
|
*/
|
|
307
|
-
|
|
339
|
+
var UsersApiFp = function (configuration) {
|
|
308
340
|
return {
|
|
309
341
|
/**
|
|
310
342
|
*
|
|
@@ -317,7 +349,7 @@ exports.UsersApiFp = function (configuration) {
|
|
|
317
349
|
var localVarAxiosArgs;
|
|
318
350
|
return __generator(this, function (_a) {
|
|
319
351
|
switch (_a.label) {
|
|
320
|
-
case 0: return [4 /*yield*/, exports.UsersApiAxiosParamCreator(configuration).createSetter(body, options)];
|
|
352
|
+
case 0: return [4 /*yield*/, (0, exports.UsersApiAxiosParamCreator)(configuration).createSetter(body, options)];
|
|
321
353
|
case 1:
|
|
322
354
|
localVarAxiosArgs = _a.sent();
|
|
323
355
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -340,7 +372,7 @@ exports.UsersApiFp = function (configuration) {
|
|
|
340
372
|
var localVarAxiosArgs;
|
|
341
373
|
return __generator(this, function (_a) {
|
|
342
374
|
switch (_a.label) {
|
|
343
|
-
case 0: return [4 /*yield*/, exports.UsersApiAxiosParamCreator(configuration).usersControllerGet(options)];
|
|
375
|
+
case 0: return [4 /*yield*/, (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerGet(options)];
|
|
344
376
|
case 1:
|
|
345
377
|
localVarAxiosArgs = _a.sent();
|
|
346
378
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -364,7 +396,7 @@ exports.UsersApiFp = function (configuration) {
|
|
|
364
396
|
var localVarAxiosArgs;
|
|
365
397
|
return __generator(this, function (_a) {
|
|
366
398
|
switch (_a.label) {
|
|
367
|
-
case 0: return [4 /*yield*/, exports.UsersApiAxiosParamCreator(configuration).usersControllerShow(id, options)];
|
|
399
|
+
case 0: return [4 /*yield*/, (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerShow(id, options)];
|
|
368
400
|
case 1:
|
|
369
401
|
localVarAxiosArgs = _a.sent();
|
|
370
402
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -387,7 +419,7 @@ exports.UsersApiFp = function (configuration) {
|
|
|
387
419
|
var localVarAxiosArgs;
|
|
388
420
|
return __generator(this, function (_a) {
|
|
389
421
|
switch (_a.label) {
|
|
390
|
-
case 0: return [4 /*yield*/, exports.UsersApiAxiosParamCreator(configuration).usersControllerStore(options)];
|
|
422
|
+
case 0: return [4 /*yield*/, (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerStore(options)];
|
|
391
423
|
case 1:
|
|
392
424
|
localVarAxiosArgs = _a.sent();
|
|
393
425
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -411,7 +443,7 @@ exports.UsersApiFp = function (configuration) {
|
|
|
411
443
|
var localVarAxiosArgs;
|
|
412
444
|
return __generator(this, function (_a) {
|
|
413
445
|
switch (_a.label) {
|
|
414
|
-
case 0: return [4 /*yield*/, exports.UsersApiAxiosParamCreator(configuration).usersControllerUpdate(id, options)];
|
|
446
|
+
case 0: return [4 /*yield*/, (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerUpdate(id, options)];
|
|
415
447
|
case 1:
|
|
416
448
|
localVarAxiosArgs = _a.sent();
|
|
417
449
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -426,11 +458,12 @@ exports.UsersApiFp = function (configuration) {
|
|
|
426
458
|
},
|
|
427
459
|
};
|
|
428
460
|
};
|
|
461
|
+
exports.UsersApiFp = UsersApiFp;
|
|
429
462
|
/**
|
|
430
463
|
* UsersApi - factory interface
|
|
431
464
|
* @export
|
|
432
465
|
*/
|
|
433
|
-
|
|
466
|
+
var UsersApiFactory = function (configuration, basePath, axios) {
|
|
434
467
|
return {
|
|
435
468
|
/**
|
|
436
469
|
*
|
|
@@ -441,7 +474,7 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
441
474
|
createSetter: function (body, options) {
|
|
442
475
|
return __awaiter(this, void 0, void 0, function () {
|
|
443
476
|
return __generator(this, function (_a) {
|
|
444
|
-
return [2 /*return*/, exports.UsersApiFp(configuration).createSetter(body, options).then(function (request) { return request(axios, basePath); })];
|
|
477
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).createSetter(body, options).then(function (request) { return request(axios, basePath); })];
|
|
445
478
|
});
|
|
446
479
|
});
|
|
447
480
|
},
|
|
@@ -453,7 +486,7 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
453
486
|
usersControllerGet: function (options) {
|
|
454
487
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
488
|
return __generator(this, function (_a) {
|
|
456
|
-
return [2 /*return*/, exports.UsersApiFp(configuration).usersControllerGet(options).then(function (request) { return request(axios, basePath); })];
|
|
489
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerGet(options).then(function (request) { return request(axios, basePath); })];
|
|
457
490
|
});
|
|
458
491
|
});
|
|
459
492
|
},
|
|
@@ -466,7 +499,7 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
466
499
|
usersControllerShow: function (id, options) {
|
|
467
500
|
return __awaiter(this, void 0, void 0, function () {
|
|
468
501
|
return __generator(this, function (_a) {
|
|
469
|
-
return [2 /*return*/, exports.UsersApiFp(configuration).usersControllerShow(id, options).then(function (request) { return request(axios, basePath); })];
|
|
502
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerShow(id, options).then(function (request) { return request(axios, basePath); })];
|
|
470
503
|
});
|
|
471
504
|
});
|
|
472
505
|
},
|
|
@@ -478,7 +511,7 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
478
511
|
usersControllerStore: function (options) {
|
|
479
512
|
return __awaiter(this, void 0, void 0, function () {
|
|
480
513
|
return __generator(this, function (_a) {
|
|
481
|
-
return [2 /*return*/, exports.UsersApiFp(configuration).usersControllerStore(options).then(function (request) { return request(axios, basePath); })];
|
|
514
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerStore(options).then(function (request) { return request(axios, basePath); })];
|
|
482
515
|
});
|
|
483
516
|
});
|
|
484
517
|
},
|
|
@@ -491,12 +524,13 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
491
524
|
usersControllerUpdate: function (id, options) {
|
|
492
525
|
return __awaiter(this, void 0, void 0, function () {
|
|
493
526
|
return __generator(this, function (_a) {
|
|
494
|
-
return [2 /*return*/, exports.UsersApiFp(configuration).usersControllerUpdate(id, options).then(function (request) { return request(axios, basePath); })];
|
|
527
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerUpdate(id, options).then(function (request) { return request(axios, basePath); })];
|
|
495
528
|
});
|
|
496
529
|
});
|
|
497
530
|
},
|
|
498
531
|
};
|
|
499
532
|
};
|
|
533
|
+
exports.UsersApiFactory = UsersApiFactory;
|
|
500
534
|
/**
|
|
501
535
|
* UsersApi - object-oriented interface
|
|
502
536
|
* @export
|
|
@@ -519,7 +553,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
519
553
|
return __awaiter(this, void 0, void 0, function () {
|
|
520
554
|
var _this = this;
|
|
521
555
|
return __generator(this, function (_a) {
|
|
522
|
-
return [2 /*return*/, exports.UsersApiFp(this.configuration).createSetter(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
556
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).createSetter(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
523
557
|
});
|
|
524
558
|
});
|
|
525
559
|
};
|
|
@@ -533,7 +567,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
533
567
|
return __awaiter(this, void 0, void 0, function () {
|
|
534
568
|
var _this = this;
|
|
535
569
|
return __generator(this, function (_a) {
|
|
536
|
-
return [2 /*return*/, exports.UsersApiFp(this.configuration).usersControllerGet(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
570
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerGet(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
537
571
|
});
|
|
538
572
|
});
|
|
539
573
|
};
|
|
@@ -548,7 +582,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
548
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
549
583
|
var _this = this;
|
|
550
584
|
return __generator(this, function (_a) {
|
|
551
|
-
return [2 /*return*/, exports.UsersApiFp(this.configuration).usersControllerShow(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
585
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerShow(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
552
586
|
});
|
|
553
587
|
});
|
|
554
588
|
};
|
|
@@ -562,7 +596,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
562
596
|
return __awaiter(this, void 0, void 0, function () {
|
|
563
597
|
var _this = this;
|
|
564
598
|
return __generator(this, function (_a) {
|
|
565
|
-
return [2 /*return*/, exports.UsersApiFp(this.configuration).usersControllerStore(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
599
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerStore(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
566
600
|
});
|
|
567
601
|
});
|
|
568
602
|
};
|
|
@@ -577,7 +611,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
577
611
|
return __awaiter(this, void 0, void 0, function () {
|
|
578
612
|
var _this = this;
|
|
579
613
|
return __generator(this, function (_a) {
|
|
580
|
-
return [2 /*return*/, exports.UsersApiFp(this.configuration).usersControllerUpdate(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
614
|
+
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerUpdate(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
581
615
|
});
|
|
582
616
|
});
|
|
583
617
|
};
|
package/dist/base.js
CHANGED
|
@@ -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 (
|
|
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 __());
|