@libgot/whatsapp-bridge-sdk 1.0.37 → 1.0.38-rc.1
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 +9 -9
- package/dist/apis/chats-api.d.ts +4 -4
- package/dist/apis/chats-api.js +9 -9
- package/dist/models/assign-to-me-dto.d.ts +12 -0
- package/models/assign-to-me-dto.ts +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.38-rc.1
|
|
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.
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.38-rc.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -35,14 +35,14 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
assignToSeller: async (body: AssignToMeDto, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
39
|
// verify required parameter 'body' is not null or undefined
|
|
40
40
|
if (body === null || body === undefined) {
|
|
41
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling
|
|
41
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling assignToSeller.');
|
|
42
42
|
}
|
|
43
43
|
// verify required parameter 'id' is not null or undefined
|
|
44
44
|
if (id === null || id === undefined) {
|
|
45
|
-
throw new RequiredError('id','Required parameter id was null or undefined when calling
|
|
45
|
+
throw new RequiredError('id','Required parameter id was null or undefined when calling assignToSeller.');
|
|
46
46
|
}
|
|
47
47
|
const localVarPath = `/api/chats/{id}/assign-to-me`
|
|
48
48
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
@@ -320,8 +320,8 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
320
320
|
* @param {*} [options] Override http request option.
|
|
321
321
|
* @throws {RequiredError}
|
|
322
322
|
*/
|
|
323
|
-
async
|
|
324
|
-
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).
|
|
323
|
+
async assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
324
|
+
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).assignToSeller(body, id, options);
|
|
325
325
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
326
326
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
327
327
|
return axios.request(axiosRequestArgs);
|
|
@@ -407,8 +407,8 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
407
407
|
* @param {*} [options] Override http request option.
|
|
408
408
|
* @throws {RequiredError}
|
|
409
409
|
*/
|
|
410
|
-
async
|
|
411
|
-
return ChatsApiFp(configuration).
|
|
410
|
+
async assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
411
|
+
return ChatsApiFp(configuration).assignToSeller(body, id, options).then((request) => request(axios, basePath));
|
|
412
412
|
},
|
|
413
413
|
/**
|
|
414
414
|
*
|
|
@@ -476,8 +476,8 @@ export class ChatsApi extends BaseAPI {
|
|
|
476
476
|
* @throws {RequiredError}
|
|
477
477
|
* @memberof ChatsApi
|
|
478
478
|
*/
|
|
479
|
-
public async
|
|
480
|
-
return ChatsApiFp(this.configuration).
|
|
479
|
+
public async assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
480
|
+
return ChatsApiFp(this.configuration).assignToSeller(body, id, options).then((request) => request(this.axios, this.basePath));
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
*
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
30
30
|
* @throws {RequiredError}
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
assignToSeller: (body: AssignToMeDto, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @param {AssignmentTypeDto} body
|
|
@@ -83,7 +83,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
89
89
|
* @param {AssignmentTypeDto} body
|
|
@@ -137,7 +137,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
137
137
|
* @param {*} [options] Override http request option.
|
|
138
138
|
* @throws {RequiredError}
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
141
141
|
/**
|
|
142
142
|
*
|
|
143
143
|
* @param {AssignmentTypeDto} body
|
|
@@ -194,7 +194,7 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
* @memberof ChatsApi
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
assignToSeller(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* @param {AssignmentTypeDto} body
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -40,14 +40,14 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
assignToSeller: (body_1, id_1, ...args_1) => __awaiter(this, [body_1, id_1, ...args_1], void 0, function* (body, id, options = {}) {
|
|
44
44
|
// verify required parameter 'body' is not null or undefined
|
|
45
45
|
if (body === null || body === undefined) {
|
|
46
|
-
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
46
|
+
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling assignToSeller.');
|
|
47
47
|
}
|
|
48
48
|
// verify required parameter 'id' is not null or undefined
|
|
49
49
|
if (id === null || id === undefined) {
|
|
50
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling
|
|
50
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling assignToSeller.');
|
|
51
51
|
}
|
|
52
52
|
const localVarPath = `/api/chats/{id}/assign-to-me`
|
|
53
53
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
@@ -302,9 +302,9 @@ const ChatsApiFp = function (configuration) {
|
|
|
302
302
|
* @param {*} [options] Override http request option.
|
|
303
303
|
* @throws {RequiredError}
|
|
304
304
|
*/
|
|
305
|
-
|
|
305
|
+
assignToSeller(body, id, options) {
|
|
306
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
-
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).
|
|
307
|
+
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToSeller(body, id, options);
|
|
308
308
|
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
309
309
|
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
310
310
|
return axios.request(axiosRequestArgs);
|
|
@@ -399,9 +399,9 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
399
399
|
* @param {*} [options] Override http request option.
|
|
400
400
|
* @throws {RequiredError}
|
|
401
401
|
*/
|
|
402
|
-
|
|
402
|
+
assignToSeller(body, id, options) {
|
|
403
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
-
return (0, exports.ChatsApiFp)(configuration).
|
|
404
|
+
return (0, exports.ChatsApiFp)(configuration).assignToSeller(body, id, options).then((request) => request(axios, basePath));
|
|
405
405
|
});
|
|
406
406
|
},
|
|
407
407
|
/**
|
|
@@ -478,9 +478,9 @@ class ChatsApi extends base_1.BaseAPI {
|
|
|
478
478
|
* @throws {RequiredError}
|
|
479
479
|
* @memberof ChatsApi
|
|
480
480
|
*/
|
|
481
|
-
|
|
481
|
+
assignToSeller(body, id, options) {
|
|
482
482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
-
return (0, exports.ChatsApiFp)(this.configuration).
|
|
483
|
+
return (0, exports.ChatsApiFp)(this.configuration).assignToSeller(body, id, options).then((request) => request(this.axios, this.basePath));
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
@@ -28,4 +28,16 @@ export interface AssignToMeDto {
|
|
|
28
28
|
* @example 1
|
|
29
29
|
*/
|
|
30
30
|
branchId: number;
|
|
31
|
+
/**
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AssignToMeDto
|
|
34
|
+
* @example 1
|
|
35
|
+
*/
|
|
36
|
+
chatId?: number;
|
|
37
|
+
/**
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AssignToMeDto
|
|
40
|
+
* @example 3941232654
|
|
41
|
+
*/
|
|
42
|
+
cellphone?: number;
|
|
31
43
|
}
|
|
@@ -33,4 +33,18 @@ export interface AssignToMeDto {
|
|
|
33
33
|
* @example 1
|
|
34
34
|
*/
|
|
35
35
|
branchId: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AssignToMeDto
|
|
40
|
+
* @example 1
|
|
41
|
+
*/
|
|
42
|
+
chatId?: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof AssignToMeDto
|
|
47
|
+
* @example 3941232654
|
|
48
|
+
*/
|
|
49
|
+
cellphone?: number;
|
|
36
50
|
}
|