@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.34-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/.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 +35 -35
- package/dist/apis/auth-api.js +147 -301
- package/dist/apis/chats-api.d.ts +20 -20
- package/dist/apis/chats-api.js +230 -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/read-message-dto.d.ts +7 -2
- package/models/read-message-dto.ts +8 -2
- package/package.json +1 -1
- package/tsconfig.json +1 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/whatsapp-bridge-sdk.iml" filepath="$PROJECT_DIR$/.idea/whatsapp-bridge-sdk.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/php.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
+
<option name="transferred" value="true" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
+
<option name="transferred" value="true" />
|
|
8
|
+
</component>
|
|
9
|
+
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
+
<option name="highlightLevel" value="WARNING" />
|
|
11
|
+
<option name="transferred" value="true" />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="PhpStanOptionsConfiguration">
|
|
14
|
+
<option name="transferred" value="true" />
|
|
15
|
+
</component>
|
|
16
|
+
<component name="PsalmOptionsConfiguration">
|
|
17
|
+
<option name="transferred" value="true" />
|
|
18
|
+
</component>
|
|
19
|
+
</project>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
|
|
7
|
+
</content>
|
|
8
|
+
<orderEntry type="inheritedJdk" />
|
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
10
|
+
</component>
|
|
11
|
+
</module>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.68
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Swagger Codegen Ignore
|
|
2
|
+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.34-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.34-rc.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -117,15 +117,15 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
117
117
|
/**
|
|
118
118
|
*
|
|
119
119
|
* @param {number} branchId
|
|
120
|
-
* @param {number} [userId]
|
|
121
|
-
* @param {number} [currentPage]
|
|
122
|
-
* @param {number} [rowsPerPage]
|
|
123
|
-
* @param {boolean} [unread]
|
|
124
120
|
* @param {string} [q]
|
|
121
|
+
* @param {boolean} [unread]
|
|
122
|
+
* @param {number} [rowsPerPage]
|
|
123
|
+
* @param {number} [currentPage]
|
|
124
|
+
* @param {number} [userId]
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
getChats: async (branchId: number,
|
|
128
|
+
getChats: async (branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, 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.');
|
|
@@ -141,28 +141,28 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
141
141
|
const localVarHeaderParameter = {} as any;
|
|
142
142
|
const localVarQueryParameter = {} as any;
|
|
143
143
|
|
|
144
|
-
if (
|
|
145
|
-
localVarQueryParameter['
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
if (userId !== undefined) {
|
|
149
|
-
localVarQueryParameter['userId'] = userId;
|
|
144
|
+
if (q !== undefined) {
|
|
145
|
+
localVarQueryParameter['q'] = q;
|
|
150
146
|
}
|
|
151
147
|
|
|
152
|
-
if (
|
|
153
|
-
localVarQueryParameter['
|
|
148
|
+
if (unread !== undefined) {
|
|
149
|
+
localVarQueryParameter['unread'] = unread;
|
|
154
150
|
}
|
|
155
151
|
|
|
156
152
|
if (rowsPerPage !== undefined) {
|
|
157
153
|
localVarQueryParameter['rowsPerPage'] = rowsPerPage;
|
|
158
154
|
}
|
|
159
155
|
|
|
160
|
-
if (
|
|
161
|
-
localVarQueryParameter['
|
|
156
|
+
if (currentPage !== undefined) {
|
|
157
|
+
localVarQueryParameter['currentPage'] = currentPage;
|
|
162
158
|
}
|
|
163
159
|
|
|
164
|
-
if (
|
|
165
|
-
localVarQueryParameter['
|
|
160
|
+
if (userId !== undefined) {
|
|
161
|
+
localVarQueryParameter['userId'] = userId;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (branchId !== undefined) {
|
|
165
|
+
localVarQueryParameter['branchId'] = branchId;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
@@ -268,16 +268,16 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
268
268
|
/**
|
|
269
269
|
*
|
|
270
270
|
* @param {number} branchId
|
|
271
|
-
* @param {number} [userId]
|
|
272
|
-
* @param {number} [currentPage]
|
|
273
|
-
* @param {number} [rowsPerPage]
|
|
274
|
-
* @param {boolean} [unread]
|
|
275
271
|
* @param {string} [q]
|
|
272
|
+
* @param {boolean} [unread]
|
|
273
|
+
* @param {number} [rowsPerPage]
|
|
274
|
+
* @param {number} [currentPage]
|
|
275
|
+
* @param {number} [userId]
|
|
276
276
|
* @param {*} [options] Override http request option.
|
|
277
277
|
* @throws {RequiredError}
|
|
278
278
|
*/
|
|
279
|
-
async getChats(branchId: number,
|
|
280
|
-
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId,
|
|
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);
|
|
281
281
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
282
282
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
283
283
|
return axios.request(axiosRequestArgs);
|
|
@@ -328,16 +328,16 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
328
328
|
/**
|
|
329
329
|
*
|
|
330
330
|
* @param {number} branchId
|
|
331
|
-
* @param {number} [userId]
|
|
332
|
-
* @param {number} [currentPage]
|
|
333
|
-
* @param {number} [rowsPerPage]
|
|
334
|
-
* @param {boolean} [unread]
|
|
335
331
|
* @param {string} [q]
|
|
332
|
+
* @param {boolean} [unread]
|
|
333
|
+
* @param {number} [rowsPerPage]
|
|
334
|
+
* @param {number} [currentPage]
|
|
335
|
+
* @param {number} [userId]
|
|
336
336
|
* @param {*} [options] Override http request option.
|
|
337
337
|
* @throws {RequiredError}
|
|
338
338
|
*/
|
|
339
|
-
async getChats(branchId: number,
|
|
340
|
-
return ChatsApiFp(configuration).getChats(branchId,
|
|
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));
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
343
343
|
*
|
|
@@ -383,17 +383,17 @@ export class ChatsApi extends BaseAPI {
|
|
|
383
383
|
/**
|
|
384
384
|
*
|
|
385
385
|
* @param {number} branchId
|
|
386
|
-
* @param {number} [userId]
|
|
387
|
-
* @param {number} [currentPage]
|
|
388
|
-
* @param {number} [rowsPerPage]
|
|
389
|
-
* @param {boolean} [unread]
|
|
390
386
|
* @param {string} [q]
|
|
387
|
+
* @param {boolean} [unread]
|
|
388
|
+
* @param {number} [rowsPerPage]
|
|
389
|
+
* @param {number} [currentPage]
|
|
390
|
+
* @param {number} [userId]
|
|
391
391
|
* @param {*} [options] Override http request option.
|
|
392
392
|
* @throws {RequiredError}
|
|
393
393
|
* @memberof ChatsApi
|
|
394
394
|
*/
|
|
395
|
-
public async getChats(branchId: number,
|
|
396
|
-
return ChatsApiFp(this.configuration).getChats(branchId,
|
|
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));
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
*
|