@libgot/whatsapp-bridge-sdk 1.0.26 → 1.0.28

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.26
1
+ ## @1.0.28
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.26 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.28 --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';
22
21
  import { MarkChatUnreadDto } from '../models';
22
+ import { PaginationChatResponseDto } from '../models';
23
23
  import { WhatsappChatResponseDTO } from '../models';
24
24
  /**
25
25
  * ChatsApi - axios parameter creator
@@ -117,15 +117,25 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
117
117
  /**
118
118
  *
119
119
  * @param {number} branchId
120
+ * @param {number} currentPage
121
+ * @param {number} rowsPerPage
120
122
  * @param {number} [userId]
121
123
  * @param {*} [options] Override http request option.
122
124
  * @throws {RequiredError}
123
125
  */
124
- getChats: async (branchId: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
126
+ getChats: async (branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
125
127
  // verify required parameter 'branchId' is not null or undefined
126
128
  if (branchId === null || branchId === undefined) {
127
129
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
128
130
  }
131
+ // verify required parameter 'currentPage' is not null or undefined
132
+ if (currentPage === null || currentPage === undefined) {
133
+ throw new RequiredError('currentPage','Required parameter currentPage was null or undefined when calling getChats.');
134
+ }
135
+ // verify required parameter 'rowsPerPage' is not null or undefined
136
+ if (rowsPerPage === null || rowsPerPage === undefined) {
137
+ throw new RequiredError('rowsPerPage','Required parameter rowsPerPage was null or undefined when calling getChats.');
138
+ }
129
139
  const localVarPath = `/api/chats`;
130
140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
141
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -145,6 +155,14 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
145
155
  localVarQueryParameter['userId'] = userId;
146
156
  }
147
157
 
158
+ if (currentPage !== undefined) {
159
+ localVarQueryParameter['currentPage'] = currentPage;
160
+ }
161
+
162
+ if (rowsPerPage !== undefined) {
163
+ localVarQueryParameter['rowsPerPage'] = rowsPerPage;
164
+ }
165
+
148
166
  const query = new URLSearchParams(localVarUrlObj.search);
149
167
  for (const key in localVarQueryParameter) {
150
168
  query.set(key, localVarQueryParameter[key]);
@@ -248,12 +266,14 @@ export const ChatsApiFp = function(configuration?: Configuration) {
248
266
  /**
249
267
  *
250
268
  * @param {number} branchId
269
+ * @param {number} currentPage
270
+ * @param {number} rowsPerPage
251
271
  * @param {number} [userId]
252
272
  * @param {*} [options] Override http request option.
253
273
  * @throws {RequiredError}
254
274
  */
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);
275
+ async getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
276
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, currentPage, rowsPerPage, userId, options);
257
277
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
258
278
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
259
279
  return axios.request(axiosRequestArgs);
@@ -304,12 +324,14 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
304
324
  /**
305
325
  *
306
326
  * @param {number} branchId
327
+ * @param {number} currentPage
328
+ * @param {number} rowsPerPage
307
329
  * @param {number} [userId]
308
330
  * @param {*} [options] Override http request option.
309
331
  * @throws {RequiredError}
310
332
  */
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));
333
+ async getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
334
+ return ChatsApiFp(configuration).getChats(branchId, currentPage, rowsPerPage, userId, options).then((request) => request(axios, basePath));
313
335
  },
314
336
  /**
315
337
  *
@@ -355,13 +377,15 @@ export class ChatsApi extends BaseAPI {
355
377
  /**
356
378
  *
357
379
  * @param {number} branchId
380
+ * @param {number} currentPage
381
+ * @param {number} rowsPerPage
358
382
  * @param {number} [userId]
359
383
  * @param {*} [options] Override http request option.
360
384
  * @throws {RequiredError}
361
385
  * @memberof ChatsApi
362
386
  */
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));
387
+ public async getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
388
+ return ChatsApiFp(this.configuration).getChats(branchId, currentPage, rowsPerPage, userId, options).then((request) => request(this.axios, this.basePath));
365
389
  }
366
390
  /**
367
391
  *
@@ -13,8 +13,8 @@ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { AssignToMeDto } from '../models';
16
- import { ChatsResponseDTO } from '../models';
17
16
  import { MarkChatUnreadDto } from '../models';
17
+ import { PaginationChatResponseDto } from '../models';
18
18
  import { WhatsappChatResponseDTO } from '../models';
19
19
  /**
20
20
  * ChatsApi - axios parameter creator
@@ -39,11 +39,13 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
39
39
  /**
40
40
  *
41
41
  * @param {number} branchId
42
+ * @param {number} currentPage
43
+ * @param {number} rowsPerPage
42
44
  * @param {number} [userId]
43
45
  * @param {*} [options] Override http request option.
44
46
  * @throws {RequiredError}
45
47
  */
46
- getChats: (branchId: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ getChats: (branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
49
  /**
48
50
  *
49
51
  * @param {MarkChatUnreadDto} body
@@ -76,11 +78,13 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
76
78
  /**
77
79
  *
78
80
  * @param {number} branchId
81
+ * @param {number} currentPage
82
+ * @param {number} rowsPerPage
79
83
  * @param {number} [userId]
80
84
  * @param {*} [options] Override http request option.
81
85
  * @throws {RequiredError}
82
86
  */
83
- getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
87
+ getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
84
88
  /**
85
89
  *
86
90
  * @param {MarkChatUnreadDto} body
@@ -113,11 +117,13 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
113
117
  /**
114
118
  *
115
119
  * @param {number} branchId
120
+ * @param {number} currentPage
121
+ * @param {number} rowsPerPage
116
122
  * @param {number} [userId]
117
123
  * @param {*} [options] Override http request option.
118
124
  * @throws {RequiredError}
119
125
  */
120
- getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
126
+ getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
121
127
  /**
122
128
  *
123
129
  * @param {MarkChatUnreadDto} body
@@ -154,12 +160,14 @@ export declare class ChatsApi extends BaseAPI {
154
160
  /**
155
161
  *
156
162
  * @param {number} branchId
163
+ * @param {number} currentPage
164
+ * @param {number} rowsPerPage
157
165
  * @param {number} [userId]
158
166
  * @param {*} [options] Override http request option.
159
167
  * @throws {RequiredError}
160
168
  * @memberof ChatsApi
161
169
  */
162
- getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
170
+ getChats(branchId: number, currentPage: number, rowsPerPage: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
163
171
  /**
164
172
  *
165
173
  * @param {MarkChatUnreadDto} body
@@ -197,16 +197,18 @@ var ChatsApiAxiosParamCreator = function (configuration) {
197
197
  /**
198
198
  *
199
199
  * @param {number} branchId
200
+ * @param {number} currentPage
201
+ * @param {number} rowsPerPage
200
202
  * @param {number} [userId]
201
203
  * @param {*} [options] Override http request option.
202
204
  * @throws {RequiredError}
203
205
  */
204
- getChats: function (branchId_1, userId_1) {
206
+ getChats: function (branchId_1, currentPage_1, rowsPerPage_1, userId_1) {
205
207
  var args_1 = [];
206
- for (var _i = 2; _i < arguments.length; _i++) {
207
- args_1[_i - 2] = arguments[_i];
208
+ for (var _i = 4; _i < arguments.length; _i++) {
209
+ args_1[_i - 4] = arguments[_i];
208
210
  }
209
- return __awaiter(_this, __spreadArray([branchId_1, userId_1], args_1, true), void 0, function (branchId, userId, options) {
211
+ return __awaiter(_this, __spreadArray([branchId_1, currentPage_1, rowsPerPage_1, userId_1], args_1, true), void 0, function (branchId, currentPage, rowsPerPage, userId, options) {
210
212
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
211
213
  if (options === void 0) { options = {}; }
212
214
  return __generator(this, function (_a) {
@@ -214,6 +216,14 @@ var ChatsApiAxiosParamCreator = function (configuration) {
214
216
  if (branchId === null || branchId === undefined) {
215
217
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
216
218
  }
219
+ // verify required parameter 'currentPage' is not null or undefined
220
+ if (currentPage === null || currentPage === undefined) {
221
+ throw new base_1.RequiredError('currentPage', 'Required parameter currentPage was null or undefined when calling getChats.');
222
+ }
223
+ // verify required parameter 'rowsPerPage' is not null or undefined
224
+ if (rowsPerPage === null || rowsPerPage === undefined) {
225
+ throw new base_1.RequiredError('rowsPerPage', 'Required parameter rowsPerPage was null or undefined when calling getChats.');
226
+ }
217
227
  localVarPath = "/api/chats";
218
228
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
219
229
  if (configuration) {
@@ -228,6 +238,12 @@ var ChatsApiAxiosParamCreator = function (configuration) {
228
238
  if (userId !== undefined) {
229
239
  localVarQueryParameter['userId'] = userId;
230
240
  }
241
+ if (currentPage !== undefined) {
242
+ localVarQueryParameter['currentPage'] = currentPage;
243
+ }
244
+ if (rowsPerPage !== undefined) {
245
+ localVarQueryParameter['rowsPerPage'] = rowsPerPage;
246
+ }
231
247
  query = new URLSearchParams(localVarUrlObj.search);
232
248
  for (key in localVarQueryParameter) {
233
249
  query.set(key, localVarQueryParameter[key]);
@@ -359,16 +375,18 @@ var ChatsApiFp = function (configuration) {
359
375
  /**
360
376
  *
361
377
  * @param {number} branchId
378
+ * @param {number} currentPage
379
+ * @param {number} rowsPerPage
362
380
  * @param {number} [userId]
363
381
  * @param {*} [options] Override http request option.
364
382
  * @throws {RequiredError}
365
383
  */
366
- getChats: function (branchId, userId, options) {
384
+ getChats: function (branchId, currentPage, rowsPerPage, userId, options) {
367
385
  return __awaiter(this, void 0, void 0, function () {
368
386
  var localVarAxiosArgs;
369
387
  return __generator(this, function (_a) {
370
388
  switch (_a.label) {
371
- case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, userId, options)];
389
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, currentPage, rowsPerPage, userId, options)];
372
390
  case 1:
373
391
  localVarAxiosArgs = _a.sent();
374
392
  return [2 /*return*/, function (axios, basePath) {
@@ -445,14 +463,16 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
445
463
  /**
446
464
  *
447
465
  * @param {number} branchId
466
+ * @param {number} currentPage
467
+ * @param {number} rowsPerPage
448
468
  * @param {number} [userId]
449
469
  * @param {*} [options] Override http request option.
450
470
  * @throws {RequiredError}
451
471
  */
452
- getChats: function (branchId, userId, options) {
472
+ getChats: function (branchId, currentPage, rowsPerPage, userId, options) {
453
473
  return __awaiter(this, void 0, void 0, function () {
454
474
  return __generator(this, function (_a) {
455
- return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, userId, options).then(function (request) { return request(axios, basePath); })];
475
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, currentPage, rowsPerPage, userId, options).then(function (request) { return request(axios, basePath); })];
456
476
  });
457
477
  });
458
478
  },
@@ -518,16 +538,18 @@ var ChatsApi = /** @class */ (function (_super) {
518
538
  /**
519
539
  *
520
540
  * @param {number} branchId
541
+ * @param {number} currentPage
542
+ * @param {number} rowsPerPage
521
543
  * @param {number} [userId]
522
544
  * @param {*} [options] Override http request option.
523
545
  * @throws {RequiredError}
524
546
  * @memberof ChatsApi
525
547
  */
526
- ChatsApi.prototype.getChats = function (branchId, userId, options) {
548
+ ChatsApi.prototype.getChats = function (branchId, currentPage, rowsPerPage, userId, options) {
527
549
  return __awaiter(this, void 0, void 0, function () {
528
550
  var _this = this;
529
551
  return __generator(this, function (_a) {
530
- return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
552
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, currentPage, rowsPerPage, userId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
531
553
  });
532
554
  });
533
555
  };
@@ -4,7 +4,6 @@ export * from './api-response-user-dto';
4
4
  export * from './assign-to-me-dto';
5
5
  export * from './attributes';
6
6
  export * from './auth-dto';
7
- export * from './chats-response-dto';
8
7
  export * from './component-template-dto';
9
8
  export * from './contacts-response-dto';
10
9
  export * from './conversation-message-dto';
@@ -19,6 +18,7 @@ export * from './inline-response503-info';
19
18
  export * from './key-dto';
20
19
  export * from './mark-chat-unread-dto';
21
20
  export * from './message-response-dto';
21
+ export * from './pagination-chat-response-dto';
22
22
  export * from './parameter-template-dto';
23
23
  export * from './read-message-dto';
24
24
  export * from './read-message-response-data-dto';
@@ -20,7 +20,6 @@ __exportStar(require("./api-response-user-dto"), exports);
20
20
  __exportStar(require("./assign-to-me-dto"), exports);
21
21
  __exportStar(require("./attributes"), exports);
22
22
  __exportStar(require("./auth-dto"), exports);
23
- __exportStar(require("./chats-response-dto"), exports);
24
23
  __exportStar(require("./component-template-dto"), exports);
25
24
  __exportStar(require("./contacts-response-dto"), exports);
26
25
  __exportStar(require("./conversation-message-dto"), exports);
@@ -35,6 +34,7 @@ __exportStar(require("./inline-response503-info"), exports);
35
34
  __exportStar(require("./key-dto"), exports);
36
35
  __exportStar(require("./mark-chat-unread-dto"), exports);
37
36
  __exportStar(require("./message-response-dto"), exports);
37
+ __exportStar(require("./pagination-chat-response-dto"), exports);
38
38
  __exportStar(require("./parameter-template-dto"), exports);
39
39
  __exportStar(require("./read-message-dto"), exports);
40
40
  __exportStar(require("./read-message-response-data-dto"), exports);
@@ -0,0 +1,67 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { WhatsappChatDto } from './whatsapp-chat-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface PaginationChatResponseDto
18
+ */
19
+ export interface PaginationChatResponseDto {
20
+ /**
21
+ * @type {Array<WhatsappChatDto>}
22
+ * @memberof PaginationChatResponseDto
23
+ */
24
+ data: Array<WhatsappChatDto>;
25
+ /**
26
+ * @type {number}
27
+ * @memberof PaginationChatResponseDto
28
+ * @example 9001
29
+ */
30
+ assignedUserId: number;
31
+ /**
32
+ * @type {number}
33
+ * @memberof PaginationChatResponseDto
34
+ * @example 10
35
+ */
36
+ perPage: number;
37
+ /**
38
+ * @type {number}
39
+ * @memberof PaginationChatResponseDto
40
+ * @example 50
41
+ */
42
+ total: number;
43
+ /**
44
+ * @type {number}
45
+ * @memberof PaginationChatResponseDto
46
+ * @example 2
47
+ */
48
+ currentPage: number;
49
+ /**
50
+ * @type {number}
51
+ * @memberof PaginationChatResponseDto
52
+ * @example 10
53
+ */
54
+ lastPage: number;
55
+ /**
56
+ * @type {number}
57
+ * @memberof PaginationChatResponseDto
58
+ * @example 1
59
+ */
60
+ from: number;
61
+ /**
62
+ * @type {number}
63
+ * @memberof PaginationChatResponseDto
64
+ * @example 10
65
+ */
66
+ to: number;
67
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * whatsapp-bridge Node Api
6
+ * The whatsapp-bridge API description
7
+ *
8
+ * OpenAPI spec version: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,4 +28,16 @@ export interface SendTemplateDataDto {
28
28
  * @example 1
29
29
  */
30
30
  branchId: number;
31
+ /**
32
+ * @type {number}
33
+ * @memberof SendTemplateDataDto
34
+ * @example 1
35
+ */
36
+ leadId?: number;
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTemplateDataDto
40
+ * @example 1
41
+ */
42
+ sellerId?: number;
31
43
  }
@@ -54,6 +54,12 @@ export interface WhatsappChatDto {
54
54
  * @example true
55
55
  */
56
56
  unread: boolean;
57
+ /**
58
+ * @type {number}
59
+ * @memberof WhatsappChatDto
60
+ * @example 1965
61
+ */
62
+ assignedUserId: number;
57
63
  /**
58
64
  * @type {Array<WhatsappMessageDto>}
59
65
  * @memberof WhatsappChatDto
package/models/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './api-response-user-dto';
4
4
  export * from './assign-to-me-dto';
5
5
  export * from './attributes';
6
6
  export * from './auth-dto';
7
- export * from './chats-response-dto';
8
7
  export * from './component-template-dto';
9
8
  export * from './contacts-response-dto';
10
9
  export * from './conversation-message-dto';
@@ -19,6 +18,7 @@ export * from './inline-response503-info';
19
18
  export * from './key-dto';
20
19
  export * from './mark-chat-unread-dto';
21
20
  export * from './message-response-dto';
21
+ export * from './pagination-chat-response-dto';
22
22
  export * from './parameter-template-dto';
23
23
  export * from './read-message-dto';
24
24
  export * from './read-message-response-data-dto';
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { WhatsappChatDto } from './whatsapp-chat-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface PaginationChatResponseDto
21
+ */
22
+ export interface PaginationChatResponseDto {
23
+
24
+ /**
25
+ * @type {Array<WhatsappChatDto>}
26
+ * @memberof PaginationChatResponseDto
27
+ */
28
+ data: Array<WhatsappChatDto>;
29
+
30
+ /**
31
+ * @type {number}
32
+ * @memberof PaginationChatResponseDto
33
+ * @example 9001
34
+ */
35
+ assignedUserId: number;
36
+
37
+ /**
38
+ * @type {number}
39
+ * @memberof PaginationChatResponseDto
40
+ * @example 10
41
+ */
42
+ perPage: number;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof PaginationChatResponseDto
47
+ * @example 50
48
+ */
49
+ total: number;
50
+
51
+ /**
52
+ * @type {number}
53
+ * @memberof PaginationChatResponseDto
54
+ * @example 2
55
+ */
56
+ currentPage: number;
57
+
58
+ /**
59
+ * @type {number}
60
+ * @memberof PaginationChatResponseDto
61
+ * @example 10
62
+ */
63
+ lastPage: number;
64
+
65
+ /**
66
+ * @type {number}
67
+ * @memberof PaginationChatResponseDto
68
+ * @example 1
69
+ */
70
+ from: number;
71
+
72
+ /**
73
+ * @type {number}
74
+ * @memberof PaginationChatResponseDto
75
+ * @example 10
76
+ */
77
+ to: number;
78
+ }
@@ -33,4 +33,18 @@ export interface SendTemplateDataDto {
33
33
  * @example 1
34
34
  */
35
35
  branchId: number;
36
+
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTemplateDataDto
40
+ * @example 1
41
+ */
42
+ leadId?: number;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof SendTemplateDataDto
47
+ * @example 1
48
+ */
49
+ sellerId?: number;
36
50
  }
@@ -64,6 +64,13 @@ export interface WhatsappChatDto {
64
64
  */
65
65
  unread: boolean;
66
66
 
67
+ /**
68
+ * @type {number}
69
+ * @memberof WhatsappChatDto
70
+ * @example 1965
71
+ */
72
+ assignedUserId: number;
73
+
67
74
  /**
68
75
  * @type {Array<WhatsappMessageDto>}
69
76
  * @memberof WhatsappChatDto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [