@libgot/whatsapp-bridge-sdk 1.0.31 → 1.0.32
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 -8
- package/dist/apis/chats-api.d.ts +8 -8
- package/dist/apis/chats-api.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.32
|
|
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.32 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -120,12 +120,12 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
120
120
|
* @param {number} [userId]
|
|
121
121
|
* @param {number} [currentPage]
|
|
122
122
|
* @param {number} [rowsPerPage]
|
|
123
|
-
* @param {
|
|
123
|
+
* @param {boolean} [unread]
|
|
124
124
|
* @param {string} [q]
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
getChats: async (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
128
|
+
getChats: async (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
129
129
|
// verify required parameter 'branchId' is not null or undefined
|
|
130
130
|
if (branchId === null || branchId === undefined) {
|
|
131
131
|
throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
|
|
@@ -271,12 +271,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
271
271
|
* @param {number} [userId]
|
|
272
272
|
* @param {number} [currentPage]
|
|
273
273
|
* @param {number} [rowsPerPage]
|
|
274
|
-
* @param {
|
|
274
|
+
* @param {boolean} [unread]
|
|
275
275
|
* @param {string} [q]
|
|
276
276
|
* @param {*} [options] Override http request option.
|
|
277
277
|
* @throws {RequiredError}
|
|
278
278
|
*/
|
|
279
|
-
async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
279
|
+
async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
|
|
280
280
|
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options);
|
|
281
281
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
282
282
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
@@ -331,12 +331,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
331
331
|
* @param {number} [userId]
|
|
332
332
|
* @param {number} [currentPage]
|
|
333
333
|
* @param {number} [rowsPerPage]
|
|
334
|
-
* @param {
|
|
334
|
+
* @param {boolean} [unread]
|
|
335
335
|
* @param {string} [q]
|
|
336
336
|
* @param {*} [options] Override http request option.
|
|
337
337
|
* @throws {RequiredError}
|
|
338
338
|
*/
|
|
339
|
-
async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
339
|
+
async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
340
340
|
return ChatsApiFp(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(axios, basePath));
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
@@ -386,13 +386,13 @@ export class ChatsApi extends BaseAPI {
|
|
|
386
386
|
* @param {number} [userId]
|
|
387
387
|
* @param {number} [currentPage]
|
|
388
388
|
* @param {number} [rowsPerPage]
|
|
389
|
-
* @param {
|
|
389
|
+
* @param {boolean} [unread]
|
|
390
390
|
* @param {string} [q]
|
|
391
391
|
* @param {*} [options] Override http request option.
|
|
392
392
|
* @throws {RequiredError}
|
|
393
393
|
* @memberof ChatsApi
|
|
394
394
|
*/
|
|
395
|
-
public async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
395
|
+
public async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
396
396
|
return ChatsApiFp(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(this.axios, this.basePath));
|
|
397
397
|
}
|
|
398
398
|
/**
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -42,12 +42,12 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
42
42
|
* @param {number} [userId]
|
|
43
43
|
* @param {number} [currentPage]
|
|
44
44
|
* @param {number} [rowsPerPage]
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {boolean} [unread]
|
|
46
46
|
* @param {string} [q]
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
getChats: (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
50
|
+
getChats: (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @param {MarkChatUnreadDto} body
|
|
@@ -83,12 +83,12 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
83
83
|
* @param {number} [userId]
|
|
84
84
|
* @param {number} [currentPage]
|
|
85
85
|
* @param {number} [rowsPerPage]
|
|
86
|
-
* @param {
|
|
86
|
+
* @param {boolean} [unread]
|
|
87
87
|
* @param {string} [q]
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
91
|
+
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @param {MarkChatUnreadDto} body
|
|
@@ -124,12 +124,12 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
124
124
|
* @param {number} [userId]
|
|
125
125
|
* @param {number} [currentPage]
|
|
126
126
|
* @param {number} [rowsPerPage]
|
|
127
|
-
* @param {
|
|
127
|
+
* @param {boolean} [unread]
|
|
128
128
|
* @param {string} [q]
|
|
129
129
|
* @param {*} [options] Override http request option.
|
|
130
130
|
* @throws {RequiredError}
|
|
131
131
|
*/
|
|
132
|
-
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
132
|
+
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @param {MarkChatUnreadDto} body
|
|
@@ -169,13 +169,13 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
169
169
|
* @param {number} [userId]
|
|
170
170
|
* @param {number} [currentPage]
|
|
171
171
|
* @param {number} [rowsPerPage]
|
|
172
|
-
* @param {
|
|
172
|
+
* @param {boolean} [unread]
|
|
173
173
|
* @param {string} [q]
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
175
175
|
* @throws {RequiredError}
|
|
176
176
|
* @memberof ChatsApi
|
|
177
177
|
*/
|
|
178
|
-
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?:
|
|
178
|
+
getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
* @param {MarkChatUnreadDto} body
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -200,7 +200,7 @@ var ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
200
200
|
* @param {number} [userId]
|
|
201
201
|
* @param {number} [currentPage]
|
|
202
202
|
* @param {number} [rowsPerPage]
|
|
203
|
-
* @param {
|
|
203
|
+
* @param {boolean} [unread]
|
|
204
204
|
* @param {string} [q]
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
@@ -378,7 +378,7 @@ var ChatsApiFp = function (configuration) {
|
|
|
378
378
|
* @param {number} [userId]
|
|
379
379
|
* @param {number} [currentPage]
|
|
380
380
|
* @param {number} [rowsPerPage]
|
|
381
|
-
* @param {
|
|
381
|
+
* @param {boolean} [unread]
|
|
382
382
|
* @param {string} [q]
|
|
383
383
|
* @param {*} [options] Override http request option.
|
|
384
384
|
* @throws {RequiredError}
|
|
@@ -468,7 +468,7 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
468
468
|
* @param {number} [userId]
|
|
469
469
|
* @param {number} [currentPage]
|
|
470
470
|
* @param {number} [rowsPerPage]
|
|
471
|
-
* @param {
|
|
471
|
+
* @param {boolean} [unread]
|
|
472
472
|
* @param {string} [q]
|
|
473
473
|
* @param {*} [options] Override http request option.
|
|
474
474
|
* @throws {RequiredError}
|
|
@@ -545,7 +545,7 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
545
545
|
* @param {number} [userId]
|
|
546
546
|
* @param {number} [currentPage]
|
|
547
547
|
* @param {number} [rowsPerPage]
|
|
548
|
-
* @param {
|
|
548
|
+
* @param {boolean} [unread]
|
|
549
549
|
* @param {string} [q]
|
|
550
550
|
* @param {*} [options] Override http request option.
|
|
551
551
|
* @throws {RequiredError}
|