@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.33

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.
@@ -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,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -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.32
1
+ ## @1.0.33
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.32 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.33 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -18,8 +18,8 @@ import { Configuration } from '../configuration';
18
18
  // @ts-ignore
19
19
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
20
  import { AssignToMeDto } from '../models';
21
+ import { ChatsResponseDTO } from '../models';
21
22
  import { MarkChatUnreadDto } from '../models';
22
- import { PaginationChatResponseDto } from '../models';
23
23
  import { WhatsappChatResponseDTO } from '../models';
24
24
  /**
25
25
  * ChatsApi - axios parameter creator
@@ -118,14 +118,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
118
118
  *
119
119
  * @param {number} branchId
120
120
  * @param {number} [userId]
121
- * @param {number} [currentPage]
122
- * @param {number} [rowsPerPage]
123
- * @param {boolean} [unread]
124
- * @param {string} [q]
125
121
  * @param {*} [options] Override http request option.
126
122
  * @throws {RequiredError}
127
123
  */
128
- getChats: async (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
124
+ getChats: async (branchId: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
129
125
  // verify required parameter 'branchId' is not null or undefined
130
126
  if (branchId === null || branchId === undefined) {
131
127
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -149,22 +145,6 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
149
145
  localVarQueryParameter['userId'] = userId;
150
146
  }
151
147
 
152
- if (currentPage !== undefined) {
153
- localVarQueryParameter['currentPage'] = currentPage;
154
- }
155
-
156
- if (rowsPerPage !== undefined) {
157
- localVarQueryParameter['rowsPerPage'] = rowsPerPage;
158
- }
159
-
160
- if (unread !== undefined) {
161
- localVarQueryParameter['unread'] = unread;
162
- }
163
-
164
- if (q !== undefined) {
165
- localVarQueryParameter['q'] = q;
166
- }
167
-
168
148
  const query = new URLSearchParams(localVarUrlObj.search);
169
149
  for (const key in localVarQueryParameter) {
170
150
  query.set(key, localVarQueryParameter[key]);
@@ -269,15 +249,11 @@ export const ChatsApiFp = function(configuration?: Configuration) {
269
249
  *
270
250
  * @param {number} branchId
271
251
  * @param {number} [userId]
272
- * @param {number} [currentPage]
273
- * @param {number} [rowsPerPage]
274
- * @param {boolean} [unread]
275
- * @param {string} [q]
276
252
  * @param {*} [options] Override http request option.
277
253
  * @throws {RequiredError}
278
254
  */
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
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options);
255
+ async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
256
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, options);
281
257
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
282
258
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
283
259
  return axios.request(axiosRequestArgs);
@@ -329,15 +305,11 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
329
305
  *
330
306
  * @param {number} branchId
331
307
  * @param {number} [userId]
332
- * @param {number} [currentPage]
333
- * @param {number} [rowsPerPage]
334
- * @param {boolean} [unread]
335
- * @param {string} [q]
336
308
  * @param {*} [options] Override http request option.
337
309
  * @throws {RequiredError}
338
310
  */
339
- async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
340
- return ChatsApiFp(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(axios, basePath));
311
+ async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
312
+ return ChatsApiFp(configuration).getChats(branchId, userId, options).then((request) => request(axios, basePath));
341
313
  },
342
314
  /**
343
315
  *
@@ -384,16 +356,12 @@ export class ChatsApi extends BaseAPI {
384
356
  *
385
357
  * @param {number} branchId
386
358
  * @param {number} [userId]
387
- * @param {number} [currentPage]
388
- * @param {number} [rowsPerPage]
389
- * @param {boolean} [unread]
390
- * @param {string} [q]
391
359
  * @param {*} [options] Override http request option.
392
360
  * @throws {RequiredError}
393
361
  * @memberof ChatsApi
394
362
  */
395
- public async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
396
- return ChatsApiFp(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(this.axios, this.basePath));
363
+ public async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
364
+ return ChatsApiFp(this.configuration).getChats(branchId, userId, options).then((request) => request(this.axios, this.basePath));
397
365
  }
398
366
  /**
399
367
  *