@libgot/whatsapp-bridge-sdk 1.0.38-rc.2 → 1.0.38-rc.3
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/apis/chats-api.ts +8 -17
- package/dist/apis/chats-api.d.ts +4 -8
- package/dist/apis/chats-api.js +8 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.38-rc.
|
|
1
|
+
## @1.0.38-rc.3
|
|
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.38-rc.
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.38-rc.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -31,21 +31,15 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @param {AssignToMeDto} body
|
|
34
|
-
* @param {number} id
|
|
35
34
|
* @param {*} [options] Override http request option.
|
|
36
35
|
* @throws {RequiredError}
|
|
37
36
|
*/
|
|
38
|
-
assignToSeller: async (body: AssignToMeDto,
|
|
37
|
+
assignToSeller: async (body: AssignToMeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
38
|
// verify required parameter 'body' is not null or undefined
|
|
40
39
|
if (body === null || body === undefined) {
|
|
41
40
|
throw new RequiredError('body','Required parameter body was null or undefined when calling assignToSeller.');
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
if (id === null || id === undefined) {
|
|
45
|
-
throw new RequiredError('id','Required parameter id was null or undefined when calling assignToSeller.');
|
|
46
|
-
}
|
|
47
|
-
const localVarPath = `/api/chats/assign-to-seller`
|
|
48
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
42
|
+
const localVarPath = `/api/chats/assign-to-seller`;
|
|
49
43
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
44
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
51
45
|
let baseOptions;
|
|
@@ -316,12 +310,11 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
316
310
|
/**
|
|
317
311
|
*
|
|
318
312
|
* @param {AssignToMeDto} body
|
|
319
|
-
* @param {number} id
|
|
320
313
|
* @param {*} [options] Override http request option.
|
|
321
314
|
* @throws {RequiredError}
|
|
322
315
|
*/
|
|
323
|
-
async assignToSeller(body: AssignToMeDto,
|
|
324
|
-
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).assignToSeller(body,
|
|
316
|
+
async assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
317
|
+
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).assignToSeller(body, options);
|
|
325
318
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
326
319
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
327
320
|
return axios.request(axiosRequestArgs);
|
|
@@ -403,12 +396,11 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
403
396
|
/**
|
|
404
397
|
*
|
|
405
398
|
* @param {AssignToMeDto} body
|
|
406
|
-
* @param {number} id
|
|
407
399
|
* @param {*} [options] Override http request option.
|
|
408
400
|
* @throws {RequiredError}
|
|
409
401
|
*/
|
|
410
|
-
async assignToSeller(body: AssignToMeDto,
|
|
411
|
-
return ChatsApiFp(configuration).assignToSeller(body,
|
|
402
|
+
async assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
403
|
+
return ChatsApiFp(configuration).assignToSeller(body, options).then((request) => request(axios, basePath));
|
|
412
404
|
},
|
|
413
405
|
/**
|
|
414
406
|
*
|
|
@@ -471,13 +463,12 @@ export class ChatsApi extends BaseAPI {
|
|
|
471
463
|
/**
|
|
472
464
|
*
|
|
473
465
|
* @param {AssignToMeDto} body
|
|
474
|
-
* @param {number} id
|
|
475
466
|
* @param {*} [options] Override http request option.
|
|
476
467
|
* @throws {RequiredError}
|
|
477
468
|
* @memberof ChatsApi
|
|
478
469
|
*/
|
|
479
|
-
public async assignToSeller(body: AssignToMeDto,
|
|
480
|
-
return ChatsApiFp(this.configuration).assignToSeller(body,
|
|
470
|
+
public async assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
471
|
+
return ChatsApiFp(this.configuration).assignToSeller(body, options).then((request) => request(this.axios, this.basePath));
|
|
481
472
|
}
|
|
482
473
|
/**
|
|
483
474
|
*
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -25,11 +25,10 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @param {AssignToMeDto} body
|
|
28
|
-
* @param {number} id
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
assignToSeller: (body: AssignToMeDto,
|
|
31
|
+
assignToSeller: (body: AssignToMeDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
32
|
/**
|
|
34
33
|
*
|
|
35
34
|
* @param {AssignmentTypeDto} body
|
|
@@ -79,11 +78,10 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
79
78
|
/**
|
|
80
79
|
*
|
|
81
80
|
* @param {AssignToMeDto} body
|
|
82
|
-
* @param {number} id
|
|
83
81
|
* @param {*} [options] Override http request option.
|
|
84
82
|
* @throws {RequiredError}
|
|
85
83
|
*/
|
|
86
|
-
assignToSeller(body: AssignToMeDto,
|
|
84
|
+
assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
87
85
|
/**
|
|
88
86
|
*
|
|
89
87
|
* @param {AssignmentTypeDto} body
|
|
@@ -133,11 +131,10 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
133
131
|
/**
|
|
134
132
|
*
|
|
135
133
|
* @param {AssignToMeDto} body
|
|
136
|
-
* @param {number} id
|
|
137
134
|
* @param {*} [options] Override http request option.
|
|
138
135
|
* @throws {RequiredError}
|
|
139
136
|
*/
|
|
140
|
-
assignToSeller(body: AssignToMeDto,
|
|
137
|
+
assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
141
138
|
/**
|
|
142
139
|
*
|
|
143
140
|
* @param {AssignmentTypeDto} body
|
|
@@ -189,12 +186,11 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
189
186
|
/**
|
|
190
187
|
*
|
|
191
188
|
* @param {AssignToMeDto} body
|
|
192
|
-
* @param {number} id
|
|
193
189
|
* @param {*} [options] Override http request option.
|
|
194
190
|
* @throws {RequiredError}
|
|
195
191
|
* @memberof ChatsApi
|
|
196
192
|
*/
|
|
197
|
-
assignToSeller(body: AssignToMeDto,
|
|
193
|
+
assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
198
194
|
/**
|
|
199
195
|
*
|
|
200
196
|
* @param {AssignmentTypeDto} body
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -36,21 +36,15 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @param {AssignToMeDto} body
|
|
39
|
-
* @param {number} id
|
|
40
39
|
* @param {*} [options] Override http request option.
|
|
41
40
|
* @throws {RequiredError}
|
|
42
41
|
*/
|
|
43
|
-
assignToSeller: (body_1,
|
|
42
|
+
assignToSeller: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
44
43
|
// verify required parameter 'body' is not null or undefined
|
|
45
44
|
if (body === null || body === undefined) {
|
|
46
45
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling assignToSeller.');
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
if (id === null || id === undefined) {
|
|
50
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling assignToSeller.');
|
|
51
|
-
}
|
|
52
|
-
const localVarPath = `/api/chats/assign-to-seller`
|
|
53
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
47
|
+
const localVarPath = `/api/chats/assign-to-seller`;
|
|
54
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
49
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
56
50
|
let baseOptions;
|
|
@@ -298,13 +292,12 @@ const ChatsApiFp = function (configuration) {
|
|
|
298
292
|
/**
|
|
299
293
|
*
|
|
300
294
|
* @param {AssignToMeDto} body
|
|
301
|
-
* @param {number} id
|
|
302
295
|
* @param {*} [options] Override http request option.
|
|
303
296
|
* @throws {RequiredError}
|
|
304
297
|
*/
|
|
305
|
-
assignToSeller(body,
|
|
298
|
+
assignToSeller(body, options) {
|
|
306
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
-
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToSeller(body,
|
|
300
|
+
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToSeller(body, options);
|
|
308
301
|
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
309
302
|
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
310
303
|
return axios.request(axiosRequestArgs);
|
|
@@ -395,13 +388,12 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
395
388
|
/**
|
|
396
389
|
*
|
|
397
390
|
* @param {AssignToMeDto} body
|
|
398
|
-
* @param {number} id
|
|
399
391
|
* @param {*} [options] Override http request option.
|
|
400
392
|
* @throws {RequiredError}
|
|
401
393
|
*/
|
|
402
|
-
assignToSeller(body,
|
|
394
|
+
assignToSeller(body, options) {
|
|
403
395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
-
return (0, exports.ChatsApiFp)(configuration).assignToSeller(body,
|
|
396
|
+
return (0, exports.ChatsApiFp)(configuration).assignToSeller(body, options).then((request) => request(axios, basePath));
|
|
405
397
|
});
|
|
406
398
|
},
|
|
407
399
|
/**
|
|
@@ -473,14 +465,13 @@ class ChatsApi extends base_1.BaseAPI {
|
|
|
473
465
|
/**
|
|
474
466
|
*
|
|
475
467
|
* @param {AssignToMeDto} body
|
|
476
|
-
* @param {number} id
|
|
477
468
|
* @param {*} [options] Override http request option.
|
|
478
469
|
* @throws {RequiredError}
|
|
479
470
|
* @memberof ChatsApi
|
|
480
471
|
*/
|
|
481
|
-
assignToSeller(body,
|
|
472
|
+
assignToSeller(body, options) {
|
|
482
473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
-
return (0, exports.ChatsApiFp)(this.configuration).assignToSeller(body,
|
|
474
|
+
return (0, exports.ChatsApiFp)(this.configuration).assignToSeller(body, options).then((request) => request(this.axios, this.basePath));
|
|
484
475
|
});
|
|
485
476
|
}
|
|
486
477
|
/**
|