@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.33
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/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/whatsapp-bridge-sdk.iml +11 -0
- package/.swagger-codegen/VERSION +1 -0
- package/.swagger-codegen-ignore +23 -0
- package/README.md +2 -2
- package/apis/chats-api.ts +8 -40
- package/dist/apis/auth-api.js +147 -301
- package/dist/apis/chats-api.d.ts +5 -21
- package/dist/apis/chats-api.js +202 -386
- package/dist/apis/contacts-api.js +104 -216
- package/dist/apis/default-api.js +46 -136
- package/dist/apis/healthchecks-api.js +85 -197
- package/dist/apis/messages-api.js +198 -354
- package/dist/apis/users-api.js +227 -415
- package/dist/base.js +10 -31
- package/dist/configuration.js +3 -5
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/read-message-dto.d.ts +7 -2
- package/models/index.ts +1 -1
- package/models/read-message-dto.ts +8 -2
- package/package.json +1 -1
- package/tsconfig.json +1 -5
package/dist/apis/users-api.js
CHANGED
|
@@ -12,32 +12,6 @@
|
|
|
12
12
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
15
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
16
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
17
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -47,54 +21,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
47
21
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
22
|
});
|
|
49
23
|
};
|
|
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 = 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
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __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
|
-
};
|
|
86
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
25
|
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
88
|
-
|
|
26
|
+
const axios_1 = require("axios");
|
|
89
27
|
// Some imports not used depending on template conditions
|
|
90
28
|
// @ts-ignore
|
|
91
|
-
|
|
29
|
+
const base_1 = require("../base");
|
|
92
30
|
/**
|
|
93
31
|
* UsersApi - axios parameter creator
|
|
94
32
|
* @export
|
|
95
33
|
*/
|
|
96
|
-
|
|
97
|
-
var _this = this;
|
|
34
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
98
35
|
return {
|
|
99
36
|
/**
|
|
100
37
|
*
|
|
@@ -102,233 +39,183 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
102
39
|
* @param {*} [options] Override http request option.
|
|
103
40
|
* @throws {RequiredError}
|
|
104
41
|
*/
|
|
105
|
-
createSetter: function (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
42
|
+
createSetter: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
43
|
+
// verify required parameter 'body' is not null or undefined
|
|
44
|
+
if (body === null || body === undefined) {
|
|
45
|
+
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling createSetter.');
|
|
109
46
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
query.set(key, localVarQueryParameter[key]);
|
|
147
|
-
}
|
|
148
|
-
for (key in options.params) {
|
|
149
|
-
query.set(key, options.params[key]);
|
|
150
|
-
}
|
|
151
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
152
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
-
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
155
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
156
|
-
return [2 /*return*/, {
|
|
157
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
158
|
-
options: localVarRequestOptions,
|
|
159
|
-
}];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
},
|
|
47
|
+
const localVarPath = `/api/users/update-password`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication access-token required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
if (configuration && configuration.accessToken) {
|
|
60
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
61
|
+
? yield configuration.accessToken()
|
|
62
|
+
: yield configuration.accessToken;
|
|
63
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
64
|
+
}
|
|
65
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
66
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
67
|
+
for (const key in localVarQueryParameter) {
|
|
68
|
+
query.set(key, localVarQueryParameter[key]);
|
|
69
|
+
}
|
|
70
|
+
for (const key in options.params) {
|
|
71
|
+
query.set(key, options.params[key]);
|
|
72
|
+
}
|
|
73
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
76
|
+
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
77
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
78
|
+
return {
|
|
79
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
}),
|
|
164
83
|
/**
|
|
165
84
|
*
|
|
166
85
|
* @param {*} [options] Override http request option.
|
|
167
86
|
* @throws {RequiredError}
|
|
168
87
|
*/
|
|
169
|
-
usersControllerGet: function () {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
88
|
+
usersControllerGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
89
|
+
const localVarPath = `/api/users`;
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
173
95
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
194
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
-
return [2 /*return*/, {
|
|
197
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
198
|
-
options: localVarRequestOptions,
|
|
199
|
-
}];
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
},
|
|
96
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
97
|
+
const localVarHeaderParameter = {};
|
|
98
|
+
const localVarQueryParameter = {};
|
|
99
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
100
|
+
for (const key in localVarQueryParameter) {
|
|
101
|
+
query.set(key, localVarQueryParameter[key]);
|
|
102
|
+
}
|
|
103
|
+
for (const key in options.params) {
|
|
104
|
+
query.set(key, options.params[key]);
|
|
105
|
+
}
|
|
106
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
109
|
+
return {
|
|
110
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
111
|
+
options: localVarRequestOptions,
|
|
112
|
+
};
|
|
113
|
+
}),
|
|
203
114
|
/**
|
|
204
115
|
*
|
|
205
116
|
* @param {number} id
|
|
206
117
|
* @param {*} [options] Override http request option.
|
|
207
118
|
* @throws {RequiredError}
|
|
208
119
|
*/
|
|
209
|
-
usersControllerShow: function (
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
120
|
+
usersControllerShow: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
121
|
+
// verify required parameter 'id' is not null or undefined
|
|
122
|
+
if (id === null || id === undefined) {
|
|
123
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling usersControllerShow.');
|
|
213
124
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
-
return [2 /*return*/, {
|
|
242
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
243
|
-
options: localVarRequestOptions,
|
|
244
|
-
}];
|
|
245
|
-
});
|
|
246
|
-
});
|
|
247
|
-
},
|
|
125
|
+
const localVarPath = `/api/users/{id}`
|
|
126
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
127
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
128
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
129
|
+
let baseOptions;
|
|
130
|
+
if (configuration) {
|
|
131
|
+
baseOptions = configuration.baseOptions;
|
|
132
|
+
}
|
|
133
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
134
|
+
const localVarHeaderParameter = {};
|
|
135
|
+
const localVarQueryParameter = {};
|
|
136
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
137
|
+
for (const key in localVarQueryParameter) {
|
|
138
|
+
query.set(key, localVarQueryParameter[key]);
|
|
139
|
+
}
|
|
140
|
+
for (const key in options.params) {
|
|
141
|
+
query.set(key, options.params[key]);
|
|
142
|
+
}
|
|
143
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
return {
|
|
147
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
}),
|
|
248
151
|
/**
|
|
249
152
|
*
|
|
250
153
|
* @param {*} [options] Override http request option.
|
|
251
154
|
* @throws {RequiredError}
|
|
252
155
|
*/
|
|
253
|
-
usersControllerStore: function () {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
156
|
+
usersControllerStore: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
157
|
+
const localVarPath = `/api/users`;
|
|
158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
159
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
160
|
+
let baseOptions;
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
257
163
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
278
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
-
return [2 /*return*/, {
|
|
281
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
282
|
-
options: localVarRequestOptions,
|
|
283
|
-
}];
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
},
|
|
164
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
165
|
+
const localVarHeaderParameter = {};
|
|
166
|
+
const localVarQueryParameter = {};
|
|
167
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
168
|
+
for (const key in localVarQueryParameter) {
|
|
169
|
+
query.set(key, localVarQueryParameter[key]);
|
|
170
|
+
}
|
|
171
|
+
for (const key in options.params) {
|
|
172
|
+
query.set(key, options.params[key]);
|
|
173
|
+
}
|
|
174
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
+
return {
|
|
178
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
}),
|
|
287
182
|
/**
|
|
288
183
|
*
|
|
289
184
|
* @param {number} id
|
|
290
185
|
* @param {*} [options] Override http request option.
|
|
291
186
|
* @throws {RequiredError}
|
|
292
187
|
*/
|
|
293
|
-
usersControllerUpdate: function (
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
188
|
+
usersControllerUpdate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
189
|
+
// verify required parameter 'id' is not null or undefined
|
|
190
|
+
if (id === null || id === undefined) {
|
|
191
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling usersControllerUpdate.');
|
|
297
192
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
-
return [2 /*return*/, {
|
|
326
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
327
|
-
options: localVarRequestOptions,
|
|
328
|
-
}];
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
},
|
|
193
|
+
const localVarPath = `/api/users/{id}`
|
|
194
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
197
|
+
let baseOptions;
|
|
198
|
+
if (configuration) {
|
|
199
|
+
baseOptions = configuration.baseOptions;
|
|
200
|
+
}
|
|
201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
202
|
+
const localVarHeaderParameter = {};
|
|
203
|
+
const localVarQueryParameter = {};
|
|
204
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
205
|
+
for (const key in localVarQueryParameter) {
|
|
206
|
+
query.set(key, localVarQueryParameter[key]);
|
|
207
|
+
}
|
|
208
|
+
for (const key in options.params) {
|
|
209
|
+
query.set(key, options.params[key]);
|
|
210
|
+
}
|
|
211
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
return {
|
|
215
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
};
|
|
218
|
+
}),
|
|
332
219
|
};
|
|
333
220
|
};
|
|
334
221
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -336,7 +223,7 @@ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
|
336
223
|
* UsersApi - functional programming interface
|
|
337
224
|
* @export
|
|
338
225
|
*/
|
|
339
|
-
|
|
226
|
+
const UsersApiFp = function (configuration) {
|
|
340
227
|
return {
|
|
341
228
|
/**
|
|
342
229
|
*
|
|
@@ -344,22 +231,13 @@ var UsersApiFp = function (configuration) {
|
|
|
344
231
|
* @param {*} [options] Override http request option.
|
|
345
232
|
* @throws {RequiredError}
|
|
346
233
|
*/
|
|
347
|
-
createSetter
|
|
348
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
349
|
-
|
|
350
|
-
return
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
localVarAxiosArgs = _a.sent();
|
|
355
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
356
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
357
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
358
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
359
|
-
return axios.request(axiosRequestArgs);
|
|
360
|
-
}];
|
|
361
|
-
}
|
|
362
|
-
});
|
|
234
|
+
createSetter(body, options) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const localVarAxiosArgs = yield (0, exports.UsersApiAxiosParamCreator)(configuration).createSetter(body, options);
|
|
237
|
+
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
238
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
239
|
+
return axios.request(axiosRequestArgs);
|
|
240
|
+
};
|
|
363
241
|
});
|
|
364
242
|
},
|
|
365
243
|
/**
|
|
@@ -367,22 +245,13 @@ var UsersApiFp = function (configuration) {
|
|
|
367
245
|
* @param {*} [options] Override http request option.
|
|
368
246
|
* @throws {RequiredError}
|
|
369
247
|
*/
|
|
370
|
-
usersControllerGet
|
|
371
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
372
|
-
|
|
373
|
-
return
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
localVarAxiosArgs = _a.sent();
|
|
378
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
379
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
380
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
381
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
382
|
-
return axios.request(axiosRequestArgs);
|
|
383
|
-
}];
|
|
384
|
-
}
|
|
385
|
-
});
|
|
248
|
+
usersControllerGet(options) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
const localVarAxiosArgs = yield (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerGet(options);
|
|
251
|
+
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
252
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
253
|
+
return axios.request(axiosRequestArgs);
|
|
254
|
+
};
|
|
386
255
|
});
|
|
387
256
|
},
|
|
388
257
|
/**
|
|
@@ -391,22 +260,13 @@ var UsersApiFp = function (configuration) {
|
|
|
391
260
|
* @param {*} [options] Override http request option.
|
|
392
261
|
* @throws {RequiredError}
|
|
393
262
|
*/
|
|
394
|
-
usersControllerShow
|
|
395
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
396
|
-
|
|
397
|
-
return
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
localVarAxiosArgs = _a.sent();
|
|
402
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
403
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
404
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
405
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
406
|
-
return axios.request(axiosRequestArgs);
|
|
407
|
-
}];
|
|
408
|
-
}
|
|
409
|
-
});
|
|
263
|
+
usersControllerShow(id, options) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
const localVarAxiosArgs = yield (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerShow(id, options);
|
|
266
|
+
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
267
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
268
|
+
return axios.request(axiosRequestArgs);
|
|
269
|
+
};
|
|
410
270
|
});
|
|
411
271
|
},
|
|
412
272
|
/**
|
|
@@ -414,22 +274,13 @@ var UsersApiFp = function (configuration) {
|
|
|
414
274
|
* @param {*} [options] Override http request option.
|
|
415
275
|
* @throws {RequiredError}
|
|
416
276
|
*/
|
|
417
|
-
usersControllerStore
|
|
418
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
419
|
-
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
localVarAxiosArgs = _a.sent();
|
|
425
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
426
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
427
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
428
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
429
|
-
return axios.request(axiosRequestArgs);
|
|
430
|
-
}];
|
|
431
|
-
}
|
|
432
|
-
});
|
|
277
|
+
usersControllerStore(options) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
const localVarAxiosArgs = yield (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerStore(options);
|
|
280
|
+
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
281
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
282
|
+
return axios.request(axiosRequestArgs);
|
|
283
|
+
};
|
|
433
284
|
});
|
|
434
285
|
},
|
|
435
286
|
/**
|
|
@@ -438,22 +289,13 @@ var UsersApiFp = function (configuration) {
|
|
|
438
289
|
* @param {*} [options] Override http request option.
|
|
439
290
|
* @throws {RequiredError}
|
|
440
291
|
*/
|
|
441
|
-
usersControllerUpdate
|
|
442
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
443
|
-
|
|
444
|
-
return
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
localVarAxiosArgs = _a.sent();
|
|
449
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
450
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
451
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
452
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
453
|
-
return axios.request(axiosRequestArgs);
|
|
454
|
-
}];
|
|
455
|
-
}
|
|
456
|
-
});
|
|
292
|
+
usersControllerUpdate(id, options) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
const localVarAxiosArgs = yield (0, exports.UsersApiAxiosParamCreator)(configuration).usersControllerUpdate(id, options);
|
|
295
|
+
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
296
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
297
|
+
return axios.request(axiosRequestArgs);
|
|
298
|
+
};
|
|
457
299
|
});
|
|
458
300
|
},
|
|
459
301
|
};
|
|
@@ -463,7 +305,7 @@ exports.UsersApiFp = UsersApiFp;
|
|
|
463
305
|
* UsersApi - factory interface
|
|
464
306
|
* @export
|
|
465
307
|
*/
|
|
466
|
-
|
|
308
|
+
const UsersApiFactory = function (configuration, basePath, axios) {
|
|
467
309
|
return {
|
|
468
310
|
/**
|
|
469
311
|
*
|
|
@@ -471,11 +313,9 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
471
313
|
* @param {*} [options] Override http request option.
|
|
472
314
|
* @throws {RequiredError}
|
|
473
315
|
*/
|
|
474
|
-
createSetter
|
|
475
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
-
return
|
|
477
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).createSetter(body, options).then(function (request) { return request(axios, basePath); })];
|
|
478
|
-
});
|
|
316
|
+
createSetter(body, options) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
return (0, exports.UsersApiFp)(configuration).createSetter(body, options).then((request) => request(axios, basePath));
|
|
479
319
|
});
|
|
480
320
|
},
|
|
481
321
|
/**
|
|
@@ -483,11 +323,9 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
483
323
|
* @param {*} [options] Override http request option.
|
|
484
324
|
* @throws {RequiredError}
|
|
485
325
|
*/
|
|
486
|
-
usersControllerGet
|
|
487
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
488
|
-
return
|
|
489
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerGet(options).then(function (request) { return request(axios, basePath); })];
|
|
490
|
-
});
|
|
326
|
+
usersControllerGet(options) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
return (0, exports.UsersApiFp)(configuration).usersControllerGet(options).then((request) => request(axios, basePath));
|
|
491
329
|
});
|
|
492
330
|
},
|
|
493
331
|
/**
|
|
@@ -496,11 +334,9 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
496
334
|
* @param {*} [options] Override http request option.
|
|
497
335
|
* @throws {RequiredError}
|
|
498
336
|
*/
|
|
499
|
-
usersControllerShow
|
|
500
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
501
|
-
return
|
|
502
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerShow(id, options).then(function (request) { return request(axios, basePath); })];
|
|
503
|
-
});
|
|
337
|
+
usersControllerShow(id, options) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
return (0, exports.UsersApiFp)(configuration).usersControllerShow(id, options).then((request) => request(axios, basePath));
|
|
504
340
|
});
|
|
505
341
|
},
|
|
506
342
|
/**
|
|
@@ -508,11 +344,9 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
508
344
|
* @param {*} [options] Override http request option.
|
|
509
345
|
* @throws {RequiredError}
|
|
510
346
|
*/
|
|
511
|
-
usersControllerStore
|
|
512
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
513
|
-
return
|
|
514
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerStore(options).then(function (request) { return request(axios, basePath); })];
|
|
515
|
-
});
|
|
347
|
+
usersControllerStore(options) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
return (0, exports.UsersApiFp)(configuration).usersControllerStore(options).then((request) => request(axios, basePath));
|
|
516
350
|
});
|
|
517
351
|
},
|
|
518
352
|
/**
|
|
@@ -521,11 +355,9 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
521
355
|
* @param {*} [options] Override http request option.
|
|
522
356
|
* @throws {RequiredError}
|
|
523
357
|
*/
|
|
524
|
-
usersControllerUpdate
|
|
525
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
526
|
-
return
|
|
527
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(configuration).usersControllerUpdate(id, options).then(function (request) { return request(axios, basePath); })];
|
|
528
|
-
});
|
|
358
|
+
usersControllerUpdate(id, options) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
return (0, exports.UsersApiFp)(configuration).usersControllerUpdate(id, options).then((request) => request(axios, basePath));
|
|
529
361
|
});
|
|
530
362
|
},
|
|
531
363
|
};
|
|
@@ -537,11 +369,7 @@ exports.UsersApiFactory = UsersApiFactory;
|
|
|
537
369
|
* @class UsersApi
|
|
538
370
|
* @extends {BaseAPI}
|
|
539
371
|
*/
|
|
540
|
-
|
|
541
|
-
__extends(UsersApi, _super);
|
|
542
|
-
function UsersApi() {
|
|
543
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
544
|
-
}
|
|
372
|
+
class UsersApi extends base_1.BaseAPI {
|
|
545
373
|
/**
|
|
546
374
|
*
|
|
547
375
|
* @param {ApiRequestUserUpdatePasswordDto} body
|
|
@@ -549,28 +377,22 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
549
377
|
* @throws {RequiredError}
|
|
550
378
|
* @memberof UsersApi
|
|
551
379
|
*/
|
|
552
|
-
|
|
553
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
554
|
-
|
|
555
|
-
return __generator(this, function (_a) {
|
|
556
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).createSetter(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
557
|
-
});
|
|
380
|
+
createSetter(body, options) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
return (0, exports.UsersApiFp)(this.configuration).createSetter(body, options).then((request) => request(this.axios, this.basePath));
|
|
558
383
|
});
|
|
559
|
-
}
|
|
384
|
+
}
|
|
560
385
|
/**
|
|
561
386
|
*
|
|
562
387
|
* @param {*} [options] Override http request option.
|
|
563
388
|
* @throws {RequiredError}
|
|
564
389
|
* @memberof UsersApi
|
|
565
390
|
*/
|
|
566
|
-
|
|
567
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
568
|
-
|
|
569
|
-
return __generator(this, function (_a) {
|
|
570
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerGet(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
571
|
-
});
|
|
391
|
+
usersControllerGet(options) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
return (0, exports.UsersApiFp)(this.configuration).usersControllerGet(options).then((request) => request(this.axios, this.basePath));
|
|
572
394
|
});
|
|
573
|
-
}
|
|
395
|
+
}
|
|
574
396
|
/**
|
|
575
397
|
*
|
|
576
398
|
* @param {number} id
|
|
@@ -578,28 +400,22 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
578
400
|
* @throws {RequiredError}
|
|
579
401
|
* @memberof UsersApi
|
|
580
402
|
*/
|
|
581
|
-
|
|
582
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
583
|
-
|
|
584
|
-
return __generator(this, function (_a) {
|
|
585
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerShow(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
586
|
-
});
|
|
403
|
+
usersControllerShow(id, options) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
return (0, exports.UsersApiFp)(this.configuration).usersControllerShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
587
406
|
});
|
|
588
|
-
}
|
|
407
|
+
}
|
|
589
408
|
/**
|
|
590
409
|
*
|
|
591
410
|
* @param {*} [options] Override http request option.
|
|
592
411
|
* @throws {RequiredError}
|
|
593
412
|
* @memberof UsersApi
|
|
594
413
|
*/
|
|
595
|
-
|
|
596
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
597
|
-
|
|
598
|
-
return __generator(this, function (_a) {
|
|
599
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerStore(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
600
|
-
});
|
|
414
|
+
usersControllerStore(options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
return (0, exports.UsersApiFp)(this.configuration).usersControllerStore(options).then((request) => request(this.axios, this.basePath));
|
|
601
417
|
});
|
|
602
|
-
}
|
|
418
|
+
}
|
|
603
419
|
/**
|
|
604
420
|
*
|
|
605
421
|
* @param {number} id
|
|
@@ -607,14 +423,10 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
607
423
|
* @throws {RequiredError}
|
|
608
424
|
* @memberof UsersApi
|
|
609
425
|
*/
|
|
610
|
-
|
|
611
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
612
|
-
|
|
613
|
-
return __generator(this, function (_a) {
|
|
614
|
-
return [2 /*return*/, (0, exports.UsersApiFp)(this.configuration).usersControllerUpdate(id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
615
|
-
});
|
|
426
|
+
usersControllerUpdate(id, options) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
return (0, exports.UsersApiFp)(this.configuration).usersControllerUpdate(id, options).then((request) => request(this.axios, this.basePath));
|
|
616
429
|
});
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
}(base_1.BaseAPI));
|
|
430
|
+
}
|
|
431
|
+
}
|
|
620
432
|
exports.UsersApi = UsersApi;
|