@libgot/whatsapp-bridge-sdk 1.0.14 → 1.0.16

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.14
1
+ ## @1.0.16
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.14 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.16 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -66,10 +66,15 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
66
66
  },
67
67
  /**
68
68
  *
69
+ * @param {number} branchId
69
70
  * @param {*} [options] Override http request option.
70
71
  * @throws {RequiredError}
71
72
  */
72
- getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
73
+ getChats: async (branchId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
74
+ // verify required parameter 'branchId' is not null or undefined
75
+ if (branchId === null || branchId === undefined) {
76
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
77
+ }
73
78
  const localVarPath = `/api/chats`;
74
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
80
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -81,6 +86,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
81
86
  const localVarHeaderParameter = {} as any;
82
87
  const localVarQueryParameter = {} as any;
83
88
 
89
+ if (branchId !== undefined) {
90
+ localVarQueryParameter['branchId'] = branchId;
91
+ }
92
+
84
93
  const query = new URLSearchParams(localVarUrlObj.search);
85
94
  for (const key in localVarQueryParameter) {
86
95
  query.set(key, localVarQueryParameter[key]);
@@ -121,11 +130,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
121
130
  },
122
131
  /**
123
132
  *
133
+ * @param {number} branchId
124
134
  * @param {*} [options] Override http request option.
125
135
  * @throws {RequiredError}
126
136
  */
127
- async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
128
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(options);
137
+ async getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
138
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, options);
129
139
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
130
140
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
131
141
  return axios.request(axiosRequestArgs);
@@ -151,11 +161,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
151
161
  },
152
162
  /**
153
163
  *
164
+ * @param {number} branchId
154
165
  * @param {*} [options] Override http request option.
155
166
  * @throws {RequiredError}
156
167
  */
157
- async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
158
- return ChatsApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
168
+ async getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
169
+ return ChatsApiFp(configuration).getChats(branchId, options).then((request) => request(axios, basePath));
159
170
  },
160
171
  };
161
172
  };
@@ -179,11 +190,12 @@ export class ChatsApi extends BaseAPI {
179
190
  }
180
191
  /**
181
192
  *
193
+ * @param {number} branchId
182
194
  * @param {*} [options] Override http request option.
183
195
  * @throws {RequiredError}
184
196
  * @memberof ChatsApi
185
197
  */
186
- public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
187
- return ChatsApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
198
+ public async getChats(branchId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
199
+ return ChatsApiFp(this.configuration).getChats(branchId, options).then((request) => request(this.axios, this.basePath));
188
200
  }
189
201
  }
@@ -26,10 +26,15 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
26
26
  return {
27
27
  /**
28
28
  *
29
+ * @param {number} branchId
29
30
  * @param {*} [options] Override http request option.
30
31
  * @throws {RequiredError}
31
32
  */
32
- getContacts: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33
+ getContacts: async (branchId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34
+ // verify required parameter 'branchId' is not null or undefined
35
+ if (branchId === null || branchId === undefined) {
36
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getContacts.');
37
+ }
33
38
  const localVarPath = `/api/contacts`;
34
39
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35
40
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -41,6 +46,10 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
41
46
  const localVarHeaderParameter = {} as any;
42
47
  const localVarQueryParameter = {} as any;
43
48
 
49
+ if (branchId !== undefined) {
50
+ localVarQueryParameter['branchId'] = branchId;
51
+ }
52
+
44
53
  const query = new URLSearchParams(localVarUrlObj.search);
45
54
  for (const key in localVarQueryParameter) {
46
55
  query.set(key, localVarQueryParameter[key]);
@@ -68,11 +77,12 @@ export const ContactsApiFp = function(configuration?: Configuration) {
68
77
  return {
69
78
  /**
70
79
  *
80
+ * @param {number} branchId
71
81
  * @param {*} [options] Override http request option.
72
82
  * @throws {RequiredError}
73
83
  */
74
- async getContacts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>> {
75
- const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).getContacts(options);
84
+ async getContacts(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>> {
85
+ const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).getContacts(branchId, options);
76
86
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
77
87
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
78
88
  return axios.request(axiosRequestArgs);
@@ -89,11 +99,12 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
89
99
  return {
90
100
  /**
91
101
  *
102
+ * @param {number} branchId
92
103
  * @param {*} [options] Override http request option.
93
104
  * @throws {RequiredError}
94
105
  */
95
- async getContacts(options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>> {
96
- return ContactsApiFp(configuration).getContacts(options).then((request) => request(axios, basePath));
106
+ async getContacts(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>> {
107
+ return ContactsApiFp(configuration).getContacts(branchId, options).then((request) => request(axios, basePath));
97
108
  },
98
109
  };
99
110
  };
@@ -107,11 +118,12 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
107
118
  export class ContactsApi extends BaseAPI {
108
119
  /**
109
120
  *
121
+ * @param {number} branchId
110
122
  * @param {*} [options] Override http request option.
111
123
  * @throws {RequiredError}
112
124
  * @memberof ContactsApi
113
125
  */
114
- public async getContacts(options?: AxiosRequestConfig) : Promise<AxiosResponse<ContactsResponseDTO>> {
115
- return ContactsApiFp(this.configuration).getContacts(options).then((request) => request(this.axios, this.basePath));
126
+ public async getContacts(branchId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ContactsResponseDTO>> {
127
+ return ContactsApiFp(this.configuration).getContacts(branchId, options).then((request) => request(this.axios, this.basePath));
116
128
  }
117
129
  }
@@ -18,6 +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 { MessageResponseDto } from '../models';
21
+ import { ReadMessageDto } from '../models';
22
+ import { ReadMessageResponseDataDto } from '../models';
21
23
  import { SendTextDataResponseDto } from '../models';
22
24
  import { SendTextDto } from '../models';
23
25
  /**
@@ -68,16 +70,58 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat
68
70
  options: localVarRequestOptions,
69
71
  };
70
72
  },
73
+ /**
74
+ *
75
+ * @param {ReadMessageDto} body
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ readMessage: async (body: ReadMessageDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
80
+ // verify required parameter 'body' is not null or undefined
81
+ if (body === null || body === undefined) {
82
+ throw new RequiredError('body','Required parameter body was null or undefined when calling readMessage.');
83
+ }
84
+ const localVarPath = `/api/messages/read`;
85
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
87
+ let baseOptions;
88
+ if (configuration) {
89
+ baseOptions = configuration.baseOptions;
90
+ }
91
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
92
+ const localVarHeaderParameter = {} as any;
93
+ const localVarQueryParameter = {} as any;
94
+
95
+ localVarHeaderParameter['Content-Type'] = 'application/json';
96
+
97
+ const query = new URLSearchParams(localVarUrlObj.search);
98
+ for (const key in localVarQueryParameter) {
99
+ query.set(key, localVarQueryParameter[key]);
100
+ }
101
+ for (const key in options.params) {
102
+ query.set(key, options.params[key]);
103
+ }
104
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
107
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
108
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
109
+
110
+ return {
111
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
112
+ options: localVarRequestOptions,
113
+ };
114
+ },
71
115
  /**
72
116
  *
73
117
  * @param {SendTextDto} body
74
118
  * @param {*} [options] Override http request option.
75
119
  * @throws {RequiredError}
76
120
  */
77
- sendMessage: async (body: SendTextDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
121
+ sendTextMessage: async (body: SendTextDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
78
122
  // verify required parameter 'body' is not null or undefined
79
123
  if (body === null || body === undefined) {
80
- throw new RequiredError('body','Required parameter body was null or undefined when calling sendMessage.');
124
+ throw new RequiredError('body','Required parameter body was null or undefined when calling sendTextMessage.');
81
125
  }
82
126
  const localVarPath = `/api/messages/send-text`;
83
127
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -132,14 +176,27 @@ export const MessagesApiFp = function(configuration?: Configuration) {
132
176
  return axios.request(axiosRequestArgs);
133
177
  };
134
178
  },
179
+ /**
180
+ *
181
+ * @param {ReadMessageDto} body
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ async readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ReadMessageResponseDataDto>>> {
186
+ const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).readMessage(body, options);
187
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
188
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
189
+ return axios.request(axiosRequestArgs);
190
+ };
191
+ },
135
192
  /**
136
193
  *
137
194
  * @param {SendTextDto} body
138
195
  * @param {*} [options] Override http request option.
139
196
  * @throws {RequiredError}
140
197
  */
141
- async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>> {
142
- const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).sendMessage(body, options);
198
+ async sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>> {
199
+ const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).sendTextMessage(body, options);
143
200
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
144
201
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
145
202
  return axios.request(axiosRequestArgs);
@@ -163,14 +220,23 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
163
220
  async getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>> {
164
221
  return MessagesApiFp(configuration).getMessages(chatId, options).then((request) => request(axios, basePath));
165
222
  },
223
+ /**
224
+ *
225
+ * @param {ReadMessageDto} body
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ async readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>> {
230
+ return MessagesApiFp(configuration).readMessage(body, options).then((request) => request(axios, basePath));
231
+ },
166
232
  /**
167
233
  *
168
234
  * @param {SendTextDto} body
169
235
  * @param {*} [options] Override http request option.
170
236
  * @throws {RequiredError}
171
237
  */
172
- async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>> {
173
- return MessagesApiFp(configuration).sendMessage(body, options).then((request) => request(axios, basePath));
238
+ async sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>> {
239
+ return MessagesApiFp(configuration).sendTextMessage(body, options).then((request) => request(axios, basePath));
174
240
  },
175
241
  };
176
242
  };
@@ -192,6 +258,16 @@ export class MessagesApi extends BaseAPI {
192
258
  public async getMessages(chatId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<MessageResponseDto>> {
193
259
  return MessagesApiFp(this.configuration).getMessages(chatId, options).then((request) => request(this.axios, this.basePath));
194
260
  }
261
+ /**
262
+ *
263
+ * @param {ReadMessageDto} body
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ * @memberof MessagesApi
267
+ */
268
+ public async readMessage(body: ReadMessageDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<ReadMessageResponseDataDto>> {
269
+ return MessagesApiFp(this.configuration).readMessage(body, options).then((request) => request(this.axios, this.basePath));
270
+ }
195
271
  /**
196
272
  *
197
273
  * @param {SendTextDto} body
@@ -199,7 +275,7 @@ export class MessagesApi extends BaseAPI {
199
275
  * @throws {RequiredError}
200
276
  * @memberof MessagesApi
201
277
  */
202
- public async sendMessage(body: SendTextDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<SendTextDataResponseDto>> {
203
- return MessagesApiFp(this.configuration).sendMessage(body, options).then((request) => request(this.axios, this.basePath));
278
+ public async sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<SendTextDataResponseDto>> {
279
+ return MessagesApiFp(this.configuration).sendTextMessage(body, options).then((request) => request(this.axios, this.basePath));
204
280
  }
205
281
  }
@@ -28,10 +28,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
28
28
  getChat: (id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
29
  /**
30
30
  *
31
+ * @param {number} branchId
31
32
  * @param {*} [options] Override http request option.
32
33
  * @throws {RequiredError}
33
34
  */
34
- getChats: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ getChats: (branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
36
  };
36
37
  /**
37
38
  * ChatsApi - functional programming interface
@@ -47,10 +48,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
47
48
  getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
48
49
  /**
49
50
  *
51
+ * @param {number} branchId
50
52
  * @param {*} [options] Override http request option.
51
53
  * @throws {RequiredError}
52
54
  */
53
- getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
55
+ getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
54
56
  };
55
57
  /**
56
58
  * ChatsApi - factory interface
@@ -66,10 +68,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
66
68
  getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
67
69
  /**
68
70
  *
71
+ * @param {number} branchId
69
72
  * @param {*} [options] Override http request option.
70
73
  * @throws {RequiredError}
71
74
  */
72
- getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
75
+ getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
73
76
  };
74
77
  /**
75
78
  * ChatsApi - object-oriented interface
@@ -88,9 +91,10 @@ export declare class ChatsApi extends BaseAPI {
88
91
  getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
89
92
  /**
90
93
  *
94
+ * @param {number} branchId
91
95
  * @param {*} [options] Override http request option.
92
96
  * @throws {RequiredError}
93
97
  * @memberof ChatsApi
94
98
  */
95
- getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
99
+ getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
96
100
  }
@@ -143,18 +143,23 @@ var ChatsApiAxiosParamCreator = function (configuration) {
143
143
  },
144
144
  /**
145
145
  *
146
+ * @param {number} branchId
146
147
  * @param {*} [options] Override http request option.
147
148
  * @throws {RequiredError}
148
149
  */
149
- getChats: function () {
150
+ getChats: function (branchId_1) {
150
151
  var args_1 = [];
151
- for (var _i = 0; _i < arguments.length; _i++) {
152
- args_1[_i] = arguments[_i];
152
+ for (var _i = 1; _i < arguments.length; _i++) {
153
+ args_1[_i - 1] = arguments[_i];
153
154
  }
154
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
155
+ return __awaiter(_this, __spreadArray([branchId_1], args_1, true), void 0, function (branchId, options) {
155
156
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
156
157
  if (options === void 0) { options = {}; }
157
158
  return __generator(this, function (_a) {
159
+ // verify required parameter 'branchId' is not null or undefined
160
+ if (branchId === null || branchId === undefined) {
161
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
162
+ }
158
163
  localVarPath = "/api/chats";
159
164
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
160
165
  if (configuration) {
@@ -163,6 +168,9 @@ var ChatsApiAxiosParamCreator = function (configuration) {
163
168
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
164
169
  localVarHeaderParameter = {};
165
170
  localVarQueryParameter = {};
171
+ if (branchId !== undefined) {
172
+ localVarQueryParameter['branchId'] = branchId;
173
+ }
166
174
  query = new URLSearchParams(localVarUrlObj.search);
167
175
  for (key in localVarQueryParameter) {
168
176
  query.set(key, localVarQueryParameter[key]);
@@ -215,15 +223,16 @@ var ChatsApiFp = function (configuration) {
215
223
  },
216
224
  /**
217
225
  *
226
+ * @param {number} branchId
218
227
  * @param {*} [options] Override http request option.
219
228
  * @throws {RequiredError}
220
229
  */
221
- getChats: function (options) {
230
+ getChats: function (branchId, options) {
222
231
  return __awaiter(this, void 0, void 0, function () {
223
232
  var localVarAxiosArgs;
224
233
  return __generator(this, function (_a) {
225
234
  switch (_a.label) {
226
- case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(options)];
235
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, options)];
227
236
  case 1:
228
237
  localVarAxiosArgs = _a.sent();
229
238
  return [2 /*return*/, function (axios, basePath) {
@@ -260,13 +269,14 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
260
269
  },
261
270
  /**
262
271
  *
272
+ * @param {number} branchId
263
273
  * @param {*} [options] Override http request option.
264
274
  * @throws {RequiredError}
265
275
  */
266
- getChats: function (options) {
276
+ getChats: function (branchId, options) {
267
277
  return __awaiter(this, void 0, void 0, function () {
268
278
  return __generator(this, function (_a) {
269
- return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(options).then(function (request) { return request(axios, basePath); })];
279
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, options).then(function (request) { return request(axios, basePath); })];
270
280
  });
271
281
  });
272
282
  },
@@ -301,15 +311,16 @@ var ChatsApi = /** @class */ (function (_super) {
301
311
  };
302
312
  /**
303
313
  *
314
+ * @param {number} branchId
304
315
  * @param {*} [options] Override http request option.
305
316
  * @throws {RequiredError}
306
317
  * @memberof ChatsApi
307
318
  */
308
- ChatsApi.prototype.getChats = function (options) {
319
+ ChatsApi.prototype.getChats = function (branchId, options) {
309
320
  return __awaiter(this, void 0, void 0, function () {
310
321
  var _this = this;
311
322
  return __generator(this, function (_a) {
312
- return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(options).then(function (request) { return request(_this.axios, _this.basePath); })];
323
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
313
324
  });
314
325
  });
315
326
  };
@@ -20,10 +20,11 @@ import { ContactsResponseDTO } from '../models';
20
20
  export declare const ContactsApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  *
23
+ * @param {number} branchId
23
24
  * @param {*} [options] Override http request option.
24
25
  * @throws {RequiredError}
25
26
  */
26
- getContacts: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ getContacts: (branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
28
  };
28
29
  /**
29
30
  * ContactsApi - functional programming interface
@@ -32,10 +33,11 @@ export declare const ContactsApiAxiosParamCreator: (configuration?: Configuratio
32
33
  export declare const ContactsApiFp: (configuration?: Configuration) => {
33
34
  /**
34
35
  *
36
+ * @param {number} branchId
35
37
  * @param {*} [options] Override http request option.
36
38
  * @throws {RequiredError}
37
39
  */
38
- getContacts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>>;
40
+ getContacts(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>>;
39
41
  };
40
42
  /**
41
43
  * ContactsApi - factory interface
@@ -44,10 +46,11 @@ export declare const ContactsApiFp: (configuration?: Configuration) => {
44
46
  export declare const ContactsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
47
  /**
46
48
  *
49
+ * @param {number} branchId
47
50
  * @param {*} [options] Override http request option.
48
51
  * @throws {RequiredError}
49
52
  */
50
- getContacts(options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
53
+ getContacts(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
51
54
  };
52
55
  /**
53
56
  * ContactsApi - object-oriented interface
@@ -58,9 +61,10 @@ export declare const ContactsApiFactory: (configuration?: Configuration, basePat
58
61
  export declare class ContactsApi extends BaseAPI {
59
62
  /**
60
63
  *
64
+ * @param {number} branchId
61
65
  * @param {*} [options] Override http request option.
62
66
  * @throws {RequiredError}
63
67
  * @memberof ContactsApi
64
68
  */
65
- getContacts(options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
69
+ getContacts(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
66
70
  }
@@ -98,18 +98,23 @@ var ContactsApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  *
101
+ * @param {number} branchId
101
102
  * @param {*} [options] Override http request option.
102
103
  * @throws {RequiredError}
103
104
  */
104
- getContacts: function () {
105
+ getContacts: function (branchId_1) {
105
106
  var args_1 = [];
106
- for (var _i = 0; _i < arguments.length; _i++) {
107
- args_1[_i] = arguments[_i];
107
+ for (var _i = 1; _i < arguments.length; _i++) {
108
+ args_1[_i - 1] = arguments[_i];
108
109
  }
109
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
110
+ return __awaiter(_this, __spreadArray([branchId_1], args_1, true), void 0, function (branchId, options) {
110
111
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
112
  if (options === void 0) { options = {}; }
112
113
  return __generator(this, function (_a) {
114
+ // verify required parameter 'branchId' is not null or undefined
115
+ if (branchId === null || branchId === undefined) {
116
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getContacts.');
117
+ }
113
118
  localVarPath = "/api/contacts";
114
119
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
115
120
  if (configuration) {
@@ -118,6 +123,9 @@ var ContactsApiAxiosParamCreator = function (configuration) {
118
123
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
119
124
  localVarHeaderParameter = {};
120
125
  localVarQueryParameter = {};
126
+ if (branchId !== undefined) {
127
+ localVarQueryParameter['branchId'] = branchId;
128
+ }
121
129
  query = new URLSearchParams(localVarUrlObj.search);
122
130
  for (key in localVarQueryParameter) {
123
131
  query.set(key, localVarQueryParameter[key]);
@@ -146,15 +154,16 @@ var ContactsApiFp = function (configuration) {
146
154
  return {
147
155
  /**
148
156
  *
157
+ * @param {number} branchId
149
158
  * @param {*} [options] Override http request option.
150
159
  * @throws {RequiredError}
151
160
  */
152
- getContacts: function (options) {
161
+ getContacts: function (branchId, options) {
153
162
  return __awaiter(this, void 0, void 0, function () {
154
163
  var localVarAxiosArgs;
155
164
  return __generator(this, function (_a) {
156
165
  switch (_a.label) {
157
- case 0: return [4 /*yield*/, (0, exports.ContactsApiAxiosParamCreator)(configuration).getContacts(options)];
166
+ case 0: return [4 /*yield*/, (0, exports.ContactsApiAxiosParamCreator)(configuration).getContacts(branchId, options)];
158
167
  case 1:
159
168
  localVarAxiosArgs = _a.sent();
160
169
  return [2 /*return*/, function (axios, basePath) {
@@ -178,13 +187,14 @@ var ContactsApiFactory = function (configuration, basePath, axios) {
178
187
  return {
179
188
  /**
180
189
  *
190
+ * @param {number} branchId
181
191
  * @param {*} [options] Override http request option.
182
192
  * @throws {RequiredError}
183
193
  */
184
- getContacts: function (options) {
194
+ getContacts: function (branchId, options) {
185
195
  return __awaiter(this, void 0, void 0, function () {
186
196
  return __generator(this, function (_a) {
187
- return [2 /*return*/, (0, exports.ContactsApiFp)(configuration).getContacts(options).then(function (request) { return request(axios, basePath); })];
197
+ return [2 /*return*/, (0, exports.ContactsApiFp)(configuration).getContacts(branchId, options).then(function (request) { return request(axios, basePath); })];
188
198
  });
189
199
  });
190
200
  },
@@ -204,15 +214,16 @@ var ContactsApi = /** @class */ (function (_super) {
204
214
  }
205
215
  /**
206
216
  *
217
+ * @param {number} branchId
207
218
  * @param {*} [options] Override http request option.
208
219
  * @throws {RequiredError}
209
220
  * @memberof ContactsApi
210
221
  */
211
- ContactsApi.prototype.getContacts = function (options) {
222
+ ContactsApi.prototype.getContacts = function (branchId, options) {
212
223
  return __awaiter(this, void 0, void 0, function () {
213
224
  var _this = this;
214
225
  return __generator(this, function (_a) {
215
- return [2 /*return*/, (0, exports.ContactsApiFp)(this.configuration).getContacts(options).then(function (request) { return request(_this.axios, _this.basePath); })];
226
+ return [2 /*return*/, (0, exports.ContactsApiFp)(this.configuration).getContacts(branchId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
216
227
  });
217
228
  });
218
229
  };
@@ -13,6 +13,8 @@ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { MessageResponseDto } from '../models';
16
+ import { ReadMessageDto } from '../models';
17
+ import { ReadMessageResponseDataDto } from '../models';
16
18
  import { SendTextDataResponseDto } from '../models';
17
19
  import { SendTextDto } from '../models';
18
20
  /**
@@ -27,13 +29,20 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
27
29
  * @throws {RequiredError}
28
30
  */
29
31
  getMessages: (chatId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ *
34
+ * @param {ReadMessageDto} body
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ readMessage: (body: ReadMessageDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
39
  /**
31
40
  *
32
41
  * @param {SendTextDto} body
33
42
  * @param {*} [options] Override http request option.
34
43
  * @throws {RequiredError}
35
44
  */
36
- sendMessage: (body: SendTextDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ sendTextMessage: (body: SendTextDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
46
  };
38
47
  /**
39
48
  * MessagesApi - functional programming interface
@@ -47,13 +56,20 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
47
56
  * @throws {RequiredError}
48
57
  */
49
58
  getMessages(chatId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<MessageResponseDto>>>;
59
+ /**
60
+ *
61
+ * @param {ReadMessageDto} body
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ReadMessageResponseDataDto>>>;
50
66
  /**
51
67
  *
52
68
  * @param {SendTextDto} body
53
69
  * @param {*} [options] Override http request option.
54
70
  * @throws {RequiredError}
55
71
  */
56
- sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>>;
72
+ sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>>;
57
73
  };
58
74
  /**
59
75
  * MessagesApi - factory interface
@@ -67,13 +83,20 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
67
83
  * @throws {RequiredError}
68
84
  */
69
85
  getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>>;
86
+ /**
87
+ *
88
+ * @param {ReadMessageDto} body
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>>;
70
93
  /**
71
94
  *
72
95
  * @param {SendTextDto} body
73
96
  * @param {*} [options] Override http request option.
74
97
  * @throws {RequiredError}
75
98
  */
76
- sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
99
+ sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
77
100
  };
78
101
  /**
79
102
  * MessagesApi - object-oriented interface
@@ -90,6 +113,14 @@ export declare class MessagesApi extends BaseAPI {
90
113
  * @memberof MessagesApi
91
114
  */
92
115
  getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>>;
116
+ /**
117
+ *
118
+ * @param {ReadMessageDto} body
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ * @memberof MessagesApi
122
+ */
123
+ readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>>;
93
124
  /**
94
125
  *
95
126
  * @param {SendTextDto} body
@@ -97,5 +128,5 @@ export declare class MessagesApi extends BaseAPI {
97
128
  * @throws {RequiredError}
98
129
  * @memberof MessagesApi
99
130
  */
100
- sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
131
+ sendTextMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
101
132
  }
@@ -143,13 +143,60 @@ var MessagesApiAxiosParamCreator = function (configuration) {
143
143
  });
144
144
  });
145
145
  },
146
+ /**
147
+ *
148
+ * @param {ReadMessageDto} body
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ readMessage: function (body_1) {
153
+ var args_1 = [];
154
+ for (var _i = 1; _i < arguments.length; _i++) {
155
+ args_1[_i - 1] = arguments[_i];
156
+ }
157
+ return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
158
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
159
+ if (options === void 0) { options = {}; }
160
+ return __generator(this, function (_a) {
161
+ // verify required parameter 'body' is not null or undefined
162
+ if (body === null || body === undefined) {
163
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling readMessage.');
164
+ }
165
+ localVarPath = "/api/messages/read";
166
+ localVarUrlObj = new URL(localVarPath, 'https://example.com');
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
174
+ query = new URLSearchParams(localVarUrlObj.search);
175
+ for (key in localVarQueryParameter) {
176
+ query.set(key, localVarQueryParameter[key]);
177
+ }
178
+ for (key in options.params) {
179
+ query.set(key, options.params[key]);
180
+ }
181
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
185
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
186
+ return [2 /*return*/, {
187
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
188
+ options: localVarRequestOptions,
189
+ }];
190
+ });
191
+ });
192
+ },
146
193
  /**
147
194
  *
148
195
  * @param {SendTextDto} body
149
196
  * @param {*} [options] Override http request option.
150
197
  * @throws {RequiredError}
151
198
  */
152
- sendMessage: function (body_1) {
199
+ sendTextMessage: function (body_1) {
153
200
  var args_1 = [];
154
201
  for (var _i = 1; _i < arguments.length; _i++) {
155
202
  args_1[_i - 1] = arguments[_i];
@@ -160,7 +207,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
160
207
  return __generator(this, function (_a) {
161
208
  // verify required parameter 'body' is not null or undefined
162
209
  if (body === null || body === undefined) {
163
- throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling sendMessage.');
210
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling sendTextMessage.');
164
211
  }
165
212
  localVarPath = "/api/messages/send-text";
166
213
  localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -223,18 +270,42 @@ var MessagesApiFp = function (configuration) {
223
270
  });
224
271
  });
225
272
  },
273
+ /**
274
+ *
275
+ * @param {ReadMessageDto} body
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ readMessage: function (body, options) {
280
+ return __awaiter(this, void 0, void 0, function () {
281
+ var localVarAxiosArgs;
282
+ return __generator(this, function (_a) {
283
+ switch (_a.label) {
284
+ case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).readMessage(body, options)];
285
+ case 1:
286
+ localVarAxiosArgs = _a.sent();
287
+ return [2 /*return*/, function (axios, basePath) {
288
+ if (axios === void 0) { axios = axios_1.default; }
289
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
290
+ var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
291
+ return axios.request(axiosRequestArgs);
292
+ }];
293
+ }
294
+ });
295
+ });
296
+ },
226
297
  /**
227
298
  *
228
299
  * @param {SendTextDto} body
229
300
  * @param {*} [options] Override http request option.
230
301
  * @throws {RequiredError}
231
302
  */
232
- sendMessage: function (body, options) {
303
+ sendTextMessage: function (body, options) {
233
304
  return __awaiter(this, void 0, void 0, function () {
234
305
  var localVarAxiosArgs;
235
306
  return __generator(this, function (_a) {
236
307
  switch (_a.label) {
237
- case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).sendMessage(body, options)];
308
+ case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).sendTextMessage(body, options)];
238
309
  case 1:
239
310
  localVarAxiosArgs = _a.sent();
240
311
  return [2 /*return*/, function (axios, basePath) {
@@ -269,16 +340,29 @@ var MessagesApiFactory = function (configuration, basePath, axios) {
269
340
  });
270
341
  });
271
342
  },
343
+ /**
344
+ *
345
+ * @param {ReadMessageDto} body
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ readMessage: function (body, options) {
350
+ return __awaiter(this, void 0, void 0, function () {
351
+ return __generator(this, function (_a) {
352
+ return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).readMessage(body, options).then(function (request) { return request(axios, basePath); })];
353
+ });
354
+ });
355
+ },
272
356
  /**
273
357
  *
274
358
  * @param {SendTextDto} body
275
359
  * @param {*} [options] Override http request option.
276
360
  * @throws {RequiredError}
277
361
  */
278
- sendMessage: function (body, options) {
362
+ sendTextMessage: function (body, options) {
279
363
  return __awaiter(this, void 0, void 0, function () {
280
364
  return __generator(this, function (_a) {
281
- return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).sendMessage(body, options).then(function (request) { return request(axios, basePath); })];
365
+ return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).sendTextMessage(body, options).then(function (request) { return request(axios, basePath); })];
282
366
  });
283
367
  });
284
368
  },
@@ -311,6 +395,21 @@ var MessagesApi = /** @class */ (function (_super) {
311
395
  });
312
396
  });
313
397
  };
398
+ /**
399
+ *
400
+ * @param {ReadMessageDto} body
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ * @memberof MessagesApi
404
+ */
405
+ MessagesApi.prototype.readMessage = function (body, options) {
406
+ return __awaiter(this, void 0, void 0, function () {
407
+ var _this = this;
408
+ return __generator(this, function (_a) {
409
+ return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).readMessage(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
410
+ });
411
+ });
412
+ };
314
413
  /**
315
414
  *
316
415
  * @param {SendTextDto} body
@@ -318,11 +417,11 @@ var MessagesApi = /** @class */ (function (_super) {
318
417
  * @throws {RequiredError}
319
418
  * @memberof MessagesApi
320
419
  */
321
- MessagesApi.prototype.sendMessage = function (body, options) {
420
+ MessagesApi.prototype.sendTextMessage = function (body, options) {
322
421
  return __awaiter(this, void 0, void 0, function () {
323
422
  var _this = this;
324
423
  return __generator(this, function (_a) {
325
- return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).sendMessage(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
424
+ return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).sendTextMessage(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
326
425
  });
327
426
  });
328
427
  };
@@ -13,7 +13,10 @@ export * from './inline-response2011-message';
13
13
  export * from './inline-response503';
14
14
  export * from './inline-response503-info';
15
15
  export * from './key-dto';
16
+ export * from './message-detail-dto';
16
17
  export * from './message-response-dto';
18
+ export * from './read-message-dto';
19
+ export * from './read-message-response-data-dto';
17
20
  export * from './role-dto';
18
21
  export * from './send-text-data-response-dto';
19
22
  export * from './send-text-dto';
@@ -29,7 +29,10 @@ __exportStar(require("./inline-response2011-message"), exports);
29
29
  __exportStar(require("./inline-response503"), exports);
30
30
  __exportStar(require("./inline-response503-info"), exports);
31
31
  __exportStar(require("./key-dto"), exports);
32
+ __exportStar(require("./message-detail-dto"), exports);
32
33
  __exportStar(require("./message-response-dto"), exports);
34
+ __exportStar(require("./read-message-dto"), exports);
35
+ __exportStar(require("./read-message-response-data-dto"), exports);
33
36
  __exportStar(require("./role-dto"), exports);
34
37
  __exportStar(require("./send-text-data-response-dto"), exports);
35
38
  __exportStar(require("./send-text-dto"), exports);
@@ -0,0 +1,19 @@
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
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface MessageDetailDto
17
+ */
18
+ export interface MessageDetailDto {
19
+ }
@@ -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 });
@@ -0,0 +1,19 @@
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
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface ReadMessageDto
17
+ */
18
+ export interface ReadMessageDto {
19
+ }
@@ -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 });
@@ -0,0 +1,19 @@
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
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface ReadMessageResponseDataDto
17
+ */
18
+ export interface ReadMessageResponseDataDto {
19
+ }
@@ -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 });
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { InlineResponse2011Class } from './inline-response2011-class';
13
+ import { WhatsappChatDto } from './whatsapp-chat-dto';
13
14
  /**
14
15
  *
15
16
  *
@@ -22,4 +23,9 @@ export interface SendTextResponseDto {
22
23
  * @memberof SendTextResponseDto
23
24
  */
24
25
  message: InlineResponse2011Class;
26
+ /**
27
+ * @type {WhatsappChatDto}
28
+ * @memberof SendTextResponseDto
29
+ */
30
+ chat: WhatsappChatDto;
25
31
  }
package/models/index.ts CHANGED
@@ -13,7 +13,10 @@ export * from './inline-response2011-message';
13
13
  export * from './inline-response503';
14
14
  export * from './inline-response503-info';
15
15
  export * from './key-dto';
16
+ export * from './message-detail-dto';
16
17
  export * from './message-response-dto';
18
+ export * from './read-message-dto';
19
+ export * from './read-message-response-data-dto';
17
20
  export * from './role-dto';
18
21
  export * from './send-text-data-response-dto';
19
22
  export * from './send-text-dto';
@@ -0,0 +1,22 @@
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
+ /**
16
+ *
17
+ *
18
+ * @export
19
+ * @interface MessageDetailDto
20
+ */
21
+ export interface MessageDetailDto {
22
+ }
@@ -0,0 +1,22 @@
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
+ /**
16
+ *
17
+ *
18
+ * @export
19
+ * @interface ReadMessageDto
20
+ */
21
+ export interface ReadMessageDto {
22
+ }
@@ -0,0 +1,22 @@
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
+ /**
16
+ *
17
+ *
18
+ * @export
19
+ * @interface ReadMessageResponseDataDto
20
+ */
21
+ export interface ReadMessageResponseDataDto {
22
+ }
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
  import { InlineResponse2011Class } from './inline-response2011-class';
16
+ import { WhatsappChatDto } from './whatsapp-chat-dto';
16
17
  /**
17
18
  *
18
19
  *
@@ -26,4 +27,10 @@ export interface SendTextResponseDto {
26
27
  * @memberof SendTextResponseDto
27
28
  */
28
29
  message: InlineResponse2011Class;
30
+
31
+ /**
32
+ * @type {WhatsappChatDto}
33
+ * @memberof SendTextResponseDto
34
+ */
35
+ chat: WhatsappChatDto;
29
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [