@libgot/whatsapp-bridge-sdk 1.0.34-rc.1 → 1.0.34-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 +23 -7
- package/dist/apis/chats-api.d.ts +12 -4
- package/dist/apis/chats-api.js +21 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.34-rc.
|
|
1
|
+
## @1.0.34-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.34-rc.
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.34-rc.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -118,14 +118,16 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
118
118
|
*
|
|
119
119
|
* @param {number} branchId
|
|
120
120
|
* @param {string} [q]
|
|
121
|
+
* @param {boolean} [unassigned]
|
|
121
122
|
* @param {boolean} [unread]
|
|
122
123
|
* @param {number} [rowsPerPage]
|
|
123
124
|
* @param {number} [currentPage]
|
|
124
125
|
* @param {number} [userId]
|
|
126
|
+
* @param {boolean} [externallyInitiated]
|
|
125
127
|
* @param {*} [options] Override http request option.
|
|
126
128
|
* @throws {RequiredError}
|
|
127
129
|
*/
|
|
128
|
-
getChats: async (branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
130
|
+
getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
129
131
|
// verify required parameter 'branchId' is not null or undefined
|
|
130
132
|
if (branchId === null || branchId === undefined) {
|
|
131
133
|
throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
|
|
@@ -145,6 +147,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
145
147
|
localVarQueryParameter['q'] = q;
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
if (unassigned !== undefined) {
|
|
151
|
+
localVarQueryParameter['unassigned'] = unassigned;
|
|
152
|
+
}
|
|
153
|
+
|
|
148
154
|
if (unread !== undefined) {
|
|
149
155
|
localVarQueryParameter['unread'] = unread;
|
|
150
156
|
}
|
|
@@ -165,6 +171,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
165
171
|
localVarQueryParameter['branchId'] = branchId;
|
|
166
172
|
}
|
|
167
173
|
|
|
174
|
+
if (externallyInitiated !== undefined) {
|
|
175
|
+
localVarQueryParameter['externallyInitiated'] = externallyInitiated;
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
169
179
|
for (const key in localVarQueryParameter) {
|
|
170
180
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -269,15 +279,17 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
269
279
|
*
|
|
270
280
|
* @param {number} branchId
|
|
271
281
|
* @param {string} [q]
|
|
282
|
+
* @param {boolean} [unassigned]
|
|
272
283
|
* @param {boolean} [unread]
|
|
273
284
|
* @param {number} [rowsPerPage]
|
|
274
285
|
* @param {number} [currentPage]
|
|
275
286
|
* @param {number} [userId]
|
|
287
|
+
* @param {boolean} [externallyInitiated]
|
|
276
288
|
* @param {*} [options] Override http request option.
|
|
277
289
|
* @throws {RequiredError}
|
|
278
290
|
*/
|
|
279
|
-
async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
|
|
280
|
-
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options);
|
|
291
|
+
async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
|
|
292
|
+
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options);
|
|
281
293
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
282
294
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
283
295
|
return axios.request(axiosRequestArgs);
|
|
@@ -329,15 +341,17 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
329
341
|
*
|
|
330
342
|
* @param {number} branchId
|
|
331
343
|
* @param {string} [q]
|
|
344
|
+
* @param {boolean} [unassigned]
|
|
332
345
|
* @param {boolean} [unread]
|
|
333
346
|
* @param {number} [rowsPerPage]
|
|
334
347
|
* @param {number} [currentPage]
|
|
335
348
|
* @param {number} [userId]
|
|
349
|
+
* @param {boolean} [externallyInitiated]
|
|
336
350
|
* @param {*} [options] Override http request option.
|
|
337
351
|
* @throws {RequiredError}
|
|
338
352
|
*/
|
|
339
|
-
async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
340
|
-
return ChatsApiFp(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
|
|
353
|
+
async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
354
|
+
return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(axios, basePath));
|
|
341
355
|
},
|
|
342
356
|
/**
|
|
343
357
|
*
|
|
@@ -384,16 +398,18 @@ export class ChatsApi extends BaseAPI {
|
|
|
384
398
|
*
|
|
385
399
|
* @param {number} branchId
|
|
386
400
|
* @param {string} [q]
|
|
401
|
+
* @param {boolean} [unassigned]
|
|
387
402
|
* @param {boolean} [unread]
|
|
388
403
|
* @param {number} [rowsPerPage]
|
|
389
404
|
* @param {number} [currentPage]
|
|
390
405
|
* @param {number} [userId]
|
|
406
|
+
* @param {boolean} [externallyInitiated]
|
|
391
407
|
* @param {*} [options] Override http request option.
|
|
392
408
|
* @throws {RequiredError}
|
|
393
409
|
* @memberof ChatsApi
|
|
394
410
|
*/
|
|
395
|
-
public async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
396
|
-
return ChatsApiFp(this.configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
|
|
411
|
+
public async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
|
|
412
|
+
return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(this.axios, this.basePath));
|
|
397
413
|
}
|
|
398
414
|
/**
|
|
399
415
|
*
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -40,14 +40,16 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
40
40
|
*
|
|
41
41
|
* @param {number} branchId
|
|
42
42
|
* @param {string} [q]
|
|
43
|
+
* @param {boolean} [unassigned]
|
|
43
44
|
* @param {boolean} [unread]
|
|
44
45
|
* @param {number} [rowsPerPage]
|
|
45
46
|
* @param {number} [currentPage]
|
|
46
47
|
* @param {number} [userId]
|
|
48
|
+
* @param {boolean} [externallyInitiated]
|
|
47
49
|
* @param {*} [options] Override http request option.
|
|
48
50
|
* @throws {RequiredError}
|
|
49
51
|
*/
|
|
50
|
-
getChats: (branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
53
|
/**
|
|
52
54
|
*
|
|
53
55
|
* @param {MarkChatUnreadDto} body
|
|
@@ -81,14 +83,16 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
81
83
|
*
|
|
82
84
|
* @param {number} branchId
|
|
83
85
|
* @param {string} [q]
|
|
86
|
+
* @param {boolean} [unassigned]
|
|
84
87
|
* @param {boolean} [unread]
|
|
85
88
|
* @param {number} [rowsPerPage]
|
|
86
89
|
* @param {number} [currentPage]
|
|
87
90
|
* @param {number} [userId]
|
|
91
|
+
* @param {boolean} [externallyInitiated]
|
|
88
92
|
* @param {*} [options] Override http request option.
|
|
89
93
|
* @throws {RequiredError}
|
|
90
94
|
*/
|
|
91
|
-
getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
|
|
95
|
+
getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
|
|
92
96
|
/**
|
|
93
97
|
*
|
|
94
98
|
* @param {MarkChatUnreadDto} body
|
|
@@ -122,14 +126,16 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
122
126
|
*
|
|
123
127
|
* @param {number} branchId
|
|
124
128
|
* @param {string} [q]
|
|
129
|
+
* @param {boolean} [unassigned]
|
|
125
130
|
* @param {boolean} [unread]
|
|
126
131
|
* @param {number} [rowsPerPage]
|
|
127
132
|
* @param {number} [currentPage]
|
|
128
133
|
* @param {number} [userId]
|
|
134
|
+
* @param {boolean} [externallyInitiated]
|
|
129
135
|
* @param {*} [options] Override http request option.
|
|
130
136
|
* @throws {RequiredError}
|
|
131
137
|
*/
|
|
132
|
-
getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
138
|
+
getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
133
139
|
/**
|
|
134
140
|
*
|
|
135
141
|
* @param {MarkChatUnreadDto} body
|
|
@@ -167,15 +173,17 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
167
173
|
*
|
|
168
174
|
* @param {number} branchId
|
|
169
175
|
* @param {string} [q]
|
|
176
|
+
* @param {boolean} [unassigned]
|
|
170
177
|
* @param {boolean} [unread]
|
|
171
178
|
* @param {number} [rowsPerPage]
|
|
172
179
|
* @param {number} [currentPage]
|
|
173
180
|
* @param {number} [userId]
|
|
181
|
+
* @param {boolean} [externallyInitiated]
|
|
174
182
|
* @param {*} [options] Override http request option.
|
|
175
183
|
* @throws {RequiredError}
|
|
176
184
|
* @memberof ChatsApi
|
|
177
185
|
*/
|
|
178
|
-
getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
186
|
+
getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
|
|
179
187
|
/**
|
|
180
188
|
*
|
|
181
189
|
* @param {MarkChatUnreadDto} body
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -119,14 +119,16 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
119
119
|
*
|
|
120
120
|
* @param {number} branchId
|
|
121
121
|
* @param {string} [q]
|
|
122
|
+
* @param {boolean} [unassigned]
|
|
122
123
|
* @param {boolean} [unread]
|
|
123
124
|
* @param {number} [rowsPerPage]
|
|
124
125
|
* @param {number} [currentPage]
|
|
125
126
|
* @param {number} [userId]
|
|
127
|
+
* @param {boolean} [externallyInitiated]
|
|
126
128
|
* @param {*} [options] Override http request option.
|
|
127
129
|
* @throws {RequiredError}
|
|
128
130
|
*/
|
|
129
|
-
getChats: (branchId_1, q_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1], void 0, function* (branchId, q, unread, rowsPerPage, currentPage, userId, options = {}) {
|
|
131
|
+
getChats: (branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, ...args_1], void 0, function* (branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options = {}) {
|
|
130
132
|
// verify required parameter 'branchId' is not null or undefined
|
|
131
133
|
if (branchId === null || branchId === undefined) {
|
|
132
134
|
throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
|
|
@@ -144,6 +146,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
144
146
|
if (q !== undefined) {
|
|
145
147
|
localVarQueryParameter['q'] = q;
|
|
146
148
|
}
|
|
149
|
+
if (unassigned !== undefined) {
|
|
150
|
+
localVarQueryParameter['unassigned'] = unassigned;
|
|
151
|
+
}
|
|
147
152
|
if (unread !== undefined) {
|
|
148
153
|
localVarQueryParameter['unread'] = unread;
|
|
149
154
|
}
|
|
@@ -159,6 +164,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
159
164
|
if (branchId !== undefined) {
|
|
160
165
|
localVarQueryParameter['branchId'] = branchId;
|
|
161
166
|
}
|
|
167
|
+
if (externallyInitiated !== undefined) {
|
|
168
|
+
localVarQueryParameter['externallyInitiated'] = externallyInitiated;
|
|
169
|
+
}
|
|
162
170
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
163
171
|
for (const key in localVarQueryParameter) {
|
|
164
172
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -263,16 +271,18 @@ const ChatsApiFp = function (configuration) {
|
|
|
263
271
|
*
|
|
264
272
|
* @param {number} branchId
|
|
265
273
|
* @param {string} [q]
|
|
274
|
+
* @param {boolean} [unassigned]
|
|
266
275
|
* @param {boolean} [unread]
|
|
267
276
|
* @param {number} [rowsPerPage]
|
|
268
277
|
* @param {number} [currentPage]
|
|
269
278
|
* @param {number} [userId]
|
|
279
|
+
* @param {boolean} [externallyInitiated]
|
|
270
280
|
* @param {*} [options] Override http request option.
|
|
271
281
|
* @throws {RequiredError}
|
|
272
282
|
*/
|
|
273
|
-
getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
|
|
283
|
+
getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
|
|
274
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
-
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options);
|
|
285
|
+
const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options);
|
|
276
286
|
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
277
287
|
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
278
288
|
return axios.request(axiosRequestArgs);
|
|
@@ -331,16 +341,18 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
331
341
|
*
|
|
332
342
|
* @param {number} branchId
|
|
333
343
|
* @param {string} [q]
|
|
344
|
+
* @param {boolean} [unassigned]
|
|
334
345
|
* @param {boolean} [unread]
|
|
335
346
|
* @param {number} [rowsPerPage]
|
|
336
347
|
* @param {number} [currentPage]
|
|
337
348
|
* @param {number} [userId]
|
|
349
|
+
* @param {boolean} [externallyInitiated]
|
|
338
350
|
* @param {*} [options] Override http request option.
|
|
339
351
|
* @throws {RequiredError}
|
|
340
352
|
*/
|
|
341
|
-
getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
|
|
353
|
+
getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
|
|
342
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
-
return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
|
|
355
|
+
return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(axios, basePath));
|
|
344
356
|
});
|
|
345
357
|
},
|
|
346
358
|
/**
|
|
@@ -394,17 +406,19 @@ class ChatsApi extends base_1.BaseAPI {
|
|
|
394
406
|
*
|
|
395
407
|
* @param {number} branchId
|
|
396
408
|
* @param {string} [q]
|
|
409
|
+
* @param {boolean} [unassigned]
|
|
397
410
|
* @param {boolean} [unread]
|
|
398
411
|
* @param {number} [rowsPerPage]
|
|
399
412
|
* @param {number} [currentPage]
|
|
400
413
|
* @param {number} [userId]
|
|
414
|
+
* @param {boolean} [externallyInitiated]
|
|
401
415
|
* @param {*} [options] Override http request option.
|
|
402
416
|
* @throws {RequiredError}
|
|
403
417
|
* @memberof ChatsApi
|
|
404
418
|
*/
|
|
405
|
-
getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
|
|
419
|
+
getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
|
|
406
420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
-
return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
|
|
421
|
+
return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(this.axios, this.basePath));
|
|
408
422
|
});
|
|
409
423
|
}
|
|
410
424
|
/**
|