@libgot/whatsapp-bridge-sdk 1.0.40-rc.2 → 1.0.41-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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.40-rc.2
1
+ ## @1.0.41-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.40-rc.2 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.41-rc.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -28,20 +28,15 @@ export const CellphoneApiAxiosParamCreator = function (configuration?: Configura
28
28
  /**
29
29
  *
30
30
  * @param {CellphoneValidationDto} body
31
- * @param {string} authorization Custom header
32
31
  * @param {string} apikey
33
32
  * @param {*} [options] Override http request option.
34
33
  * @throws {RequiredError}
35
34
  */
36
- validate: async (body: CellphoneValidationDto, authorization: string, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35
+ validate: async (body: CellphoneValidationDto, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
36
  // verify required parameter 'body' is not null or undefined
38
37
  if (body === null || body === undefined) {
39
38
  throw new RequiredError('body','Required parameter body was null or undefined when calling validate.');
40
39
  }
41
- // verify required parameter 'authorization' is not null or undefined
42
- if (authorization === null || authorization === undefined) {
43
- throw new RequiredError('authorization','Required parameter authorization was null or undefined when calling validate.');
44
- }
45
40
  // verify required parameter 'apikey' is not null or undefined
46
41
  if (apikey === null || apikey === undefined) {
47
42
  throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling validate.');
@@ -57,10 +52,6 @@ export const CellphoneApiAxiosParamCreator = function (configuration?: Configura
57
52
  const localVarHeaderParameter = {} as any;
58
53
  const localVarQueryParameter = {} as any;
59
54
 
60
- if (authorization !== undefined && authorization !== null) {
61
- localVarHeaderParameter['Authorization'] = String(authorization);
62
- }
63
-
64
55
  if (apikey !== undefined && apikey !== null) {
65
56
  localVarHeaderParameter['apikey'] = String(apikey);
66
57
  }
@@ -97,13 +88,12 @@ export const CellphoneApiFp = function(configuration?: Configuration) {
97
88
  /**
98
89
  *
99
90
  * @param {CellphoneValidationDto} body
100
- * @param {string} authorization Custom header
101
91
  * @param {string} apikey
102
92
  * @param {*} [options] Override http request option.
103
93
  * @throws {RequiredError}
104
94
  */
105
- async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
106
- const localVarAxiosArgs = await CellphoneApiAxiosParamCreator(configuration).validate(body, authorization, apikey, options);
95
+ async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
96
+ const localVarAxiosArgs = await CellphoneApiAxiosParamCreator(configuration).validate(body, apikey, options);
107
97
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
108
98
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
109
99
  return axios.request(axiosRequestArgs);
@@ -121,13 +111,12 @@ export const CellphoneApiFactory = function (configuration?: Configuration, base
121
111
  /**
122
112
  *
123
113
  * @param {CellphoneValidationDto} body
124
- * @param {string} authorization Custom header
125
114
  * @param {string} apikey
126
115
  * @param {*} [options] Override http request option.
127
116
  * @throws {RequiredError}
128
117
  */
129
- async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
130
- return CellphoneApiFp(configuration).validate(body, authorization, apikey, options).then((request) => request(axios, basePath));
118
+ async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
119
+ return CellphoneApiFp(configuration).validate(body, apikey, options).then((request) => request(axios, basePath));
131
120
  },
132
121
  };
133
122
  };
@@ -142,13 +131,12 @@ export class CellphoneApi extends BaseAPI {
142
131
  /**
143
132
  *
144
133
  * @param {CellphoneValidationDto} body
145
- * @param {string} authorization Custom header
146
134
  * @param {string} apikey
147
135
  * @param {*} [options] Override http request option.
148
136
  * @throws {RequiredError}
149
137
  * @memberof CellphoneApi
150
138
  */
151
- public async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
152
- return CellphoneApiFp(this.configuration).validate(body, authorization, apikey, options).then((request) => request(this.axios, this.basePath));
139
+ public async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
140
+ return CellphoneApiFp(this.configuration).validate(body, apikey, options).then((request) => request(this.axios, this.basePath));
153
141
  }
154
142
  }
package/apis/chats-api.ts CHANGED
@@ -289,15 +289,20 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
289
289
  /**
290
290
  *
291
291
  * @param {MarkChatUnreadDto} body
292
+ * @param {string} apikey
292
293
  * @param {number} id
293
294
  * @param {*} [options] Override http request option.
294
295
  * @throws {RequiredError}
295
296
  */
296
- markChatUnread: async (body: MarkChatUnreadDto, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
297
+ markChatUnread: async (body: MarkChatUnreadDto, apikey: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
297
298
  // verify required parameter 'body' is not null or undefined
298
299
  if (body === null || body === undefined) {
299
300
  throw new RequiredError('body','Required parameter body was null or undefined when calling markChatUnread.');
300
301
  }
302
+ // verify required parameter 'apikey' is not null or undefined
303
+ if (apikey === null || apikey === undefined) {
304
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling markChatUnread.');
305
+ }
301
306
  // verify required parameter 'id' is not null or undefined
302
307
  if (id === null || id === undefined) {
303
308
  throw new RequiredError('id','Required parameter id was null or undefined when calling markChatUnread.');
@@ -314,6 +319,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
314
319
  const localVarHeaderParameter = {} as any;
315
320
  const localVarQueryParameter = {} as any;
316
321
 
322
+ if (apikey !== undefined && apikey !== null) {
323
+ localVarHeaderParameter['apikey'] = String(apikey);
324
+ }
325
+
317
326
  localVarHeaderParameter['Content-Type'] = 'application/json';
318
327
 
319
328
  const query = new URLSearchParams(localVarUrlObj.search);
@@ -413,12 +422,13 @@ export const ChatsApiFp = function(configuration?: Configuration) {
413
422
  /**
414
423
  *
415
424
  * @param {MarkChatUnreadDto} body
425
+ * @param {string} apikey
416
426
  * @param {number} id
417
427
  * @param {*} [options] Override http request option.
418
428
  * @throws {RequiredError}
419
429
  */
420
- async markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
421
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).markChatUnread(body, id, options);
430
+ async markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
431
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).markChatUnread(body, apikey, id, options);
422
432
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
423
433
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
424
434
  return axios.request(axiosRequestArgs);
@@ -487,12 +497,13 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
487
497
  /**
488
498
  *
489
499
  * @param {MarkChatUnreadDto} body
500
+ * @param {string} apikey
490
501
  * @param {number} id
491
502
  * @param {*} [options] Override http request option.
492
503
  * @throws {RequiredError}
493
504
  */
494
- async markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
495
- return ChatsApiFp(configuration).markChatUnread(body, id, options).then((request) => request(axios, basePath));
505
+ async markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
506
+ return ChatsApiFp(configuration).markChatUnread(body, apikey, id, options).then((request) => request(axios, basePath));
496
507
  },
497
508
  };
498
509
  };
@@ -562,12 +573,13 @@ export class ChatsApi extends BaseAPI {
562
573
  /**
563
574
  *
564
575
  * @param {MarkChatUnreadDto} body
576
+ * @param {string} apikey
565
577
  * @param {number} id
566
578
  * @param {*} [options] Override http request option.
567
579
  * @throws {RequiredError}
568
580
  * @memberof ChatsApi
569
581
  */
570
- public async markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
571
- return ChatsApiFp(this.configuration).markChatUnread(body, id, options).then((request) => request(this.axios, this.basePath));
582
+ public async markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
583
+ return ChatsApiFp(this.configuration).markChatUnread(body, apikey, id, options).then((request) => request(this.axios, this.basePath));
572
584
  }
573
585
  }
@@ -21,12 +21,11 @@ export declare const CellphoneApiAxiosParamCreator: (configuration?: Configurati
21
21
  /**
22
22
  *
23
23
  * @param {CellphoneValidationDto} body
24
- * @param {string} authorization Custom header
25
24
  * @param {string} apikey
26
25
  * @param {*} [options] Override http request option.
27
26
  * @throws {RequiredError}
28
27
  */
29
- validate: (body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ validate: (body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
29
  };
31
30
  /**
32
31
  * CellphoneApi - functional programming interface
@@ -36,12 +35,11 @@ export declare const CellphoneApiFp: (configuration?: Configuration) => {
36
35
  /**
37
36
  *
38
37
  * @param {CellphoneValidationDto} body
39
- * @param {string} authorization Custom header
40
38
  * @param {string} apikey
41
39
  * @param {*} [options] Override http request option.
42
40
  * @throws {RequiredError}
43
41
  */
44
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
42
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
45
43
  };
46
44
  /**
47
45
  * CellphoneApi - factory interface
@@ -51,12 +49,11 @@ export declare const CellphoneApiFactory: (configuration?: Configuration, basePa
51
49
  /**
52
50
  *
53
51
  * @param {CellphoneValidationDto} body
54
- * @param {string} authorization Custom header
55
52
  * @param {string} apikey
56
53
  * @param {*} [options] Override http request option.
57
54
  * @throws {RequiredError}
58
55
  */
59
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
56
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
60
57
  };
61
58
  /**
62
59
  * CellphoneApi - object-oriented interface
@@ -68,11 +65,10 @@ export declare class CellphoneApi extends BaseAPI {
68
65
  /**
69
66
  *
70
67
  * @param {CellphoneValidationDto} body
71
- * @param {string} authorization Custom header
72
68
  * @param {string} apikey
73
69
  * @param {*} [options] Override http request option.
74
70
  * @throws {RequiredError}
75
71
  * @memberof CellphoneApi
76
72
  */
77
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
73
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
78
74
  }
@@ -36,20 +36,15 @@ const CellphoneApiAxiosParamCreator = function (configuration) {
36
36
  /**
37
37
  *
38
38
  * @param {CellphoneValidationDto} body
39
- * @param {string} authorization Custom header
40
39
  * @param {string} apikey
41
40
  * @param {*} [options] Override http request option.
42
41
  * @throws {RequiredError}
43
42
  */
44
- validate: (body_1, authorization_1, apikey_1, ...args_1) => __awaiter(this, [body_1, authorization_1, apikey_1, ...args_1], void 0, function* (body, authorization, apikey, options = {}) {
43
+ validate: (body_1, apikey_1, ...args_1) => __awaiter(this, [body_1, apikey_1, ...args_1], void 0, function* (body, apikey, options = {}) {
45
44
  // verify required parameter 'body' is not null or undefined
46
45
  if (body === null || body === undefined) {
47
46
  throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling validate.');
48
47
  }
49
- // verify required parameter 'authorization' is not null or undefined
50
- if (authorization === null || authorization === undefined) {
51
- throw new base_1.RequiredError('authorization', 'Required parameter authorization was null or undefined when calling validate.');
52
- }
53
48
  // verify required parameter 'apikey' is not null or undefined
54
49
  if (apikey === null || apikey === undefined) {
55
50
  throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling validate.');
@@ -64,9 +59,6 @@ const CellphoneApiAxiosParamCreator = function (configuration) {
64
59
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
65
60
  const localVarHeaderParameter = {};
66
61
  const localVarQueryParameter = {};
67
- if (authorization !== undefined && authorization !== null) {
68
- localVarHeaderParameter['Authorization'] = String(authorization);
69
- }
70
62
  if (apikey !== undefined && apikey !== null) {
71
63
  localVarHeaderParameter['apikey'] = String(apikey);
72
64
  }
@@ -100,14 +92,13 @@ const CellphoneApiFp = function (configuration) {
100
92
  /**
101
93
  *
102
94
  * @param {CellphoneValidationDto} body
103
- * @param {string} authorization Custom header
104
95
  * @param {string} apikey
105
96
  * @param {*} [options] Override http request option.
106
97
  * @throws {RequiredError}
107
98
  */
108
- validate(body, authorization, apikey, options) {
99
+ validate(body, apikey, options) {
109
100
  return __awaiter(this, void 0, void 0, function* () {
110
- const localVarAxiosArgs = yield (0, exports.CellphoneApiAxiosParamCreator)(configuration).validate(body, authorization, apikey, options);
101
+ const localVarAxiosArgs = yield (0, exports.CellphoneApiAxiosParamCreator)(configuration).validate(body, apikey, options);
111
102
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
112
103
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
113
104
  return axios.request(axiosRequestArgs);
@@ -126,14 +117,13 @@ const CellphoneApiFactory = function (configuration, basePath, axios) {
126
117
  /**
127
118
  *
128
119
  * @param {CellphoneValidationDto} body
129
- * @param {string} authorization Custom header
130
120
  * @param {string} apikey
131
121
  * @param {*} [options] Override http request option.
132
122
  * @throws {RequiredError}
133
123
  */
134
- validate(body, authorization, apikey, options) {
124
+ validate(body, apikey, options) {
135
125
  return __awaiter(this, void 0, void 0, function* () {
136
- return (0, exports.CellphoneApiFp)(configuration).validate(body, authorization, apikey, options).then((request) => request(axios, basePath));
126
+ return (0, exports.CellphoneApiFp)(configuration).validate(body, apikey, options).then((request) => request(axios, basePath));
137
127
  });
138
128
  },
139
129
  };
@@ -149,15 +139,14 @@ class CellphoneApi extends base_1.BaseAPI {
149
139
  /**
150
140
  *
151
141
  * @param {CellphoneValidationDto} body
152
- * @param {string} authorization Custom header
153
142
  * @param {string} apikey
154
143
  * @param {*} [options] Override http request option.
155
144
  * @throws {RequiredError}
156
145
  * @memberof CellphoneApi
157
146
  */
158
- validate(body, authorization, apikey, options) {
147
+ validate(body, apikey, options) {
159
148
  return __awaiter(this, void 0, void 0, function* () {
160
- return (0, exports.CellphoneApiFp)(this.configuration).validate(body, authorization, apikey, options).then((request) => request(this.axios, this.basePath));
149
+ return (0, exports.CellphoneApiFp)(this.configuration).validate(body, apikey, options).then((request) => request(this.axios, this.basePath));
161
150
  });
162
151
  }
163
152
  }
@@ -68,11 +68,12 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
68
68
  /**
69
69
  *
70
70
  * @param {MarkChatUnreadDto} body
71
+ * @param {string} apikey
71
72
  * @param {number} id
72
73
  * @param {*} [options] Override http request option.
73
74
  * @throws {RequiredError}
74
75
  */
75
- markChatUnread: (body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ markChatUnread: (body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
77
  };
77
78
  /**
78
79
  * ChatsApi - functional programming interface
@@ -125,11 +126,12 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
125
126
  /**
126
127
  *
127
128
  * @param {MarkChatUnreadDto} body
129
+ * @param {string} apikey
128
130
  * @param {number} id
129
131
  * @param {*} [options] Override http request option.
130
132
  * @throws {RequiredError}
131
133
  */
132
- markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
134
+ markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
133
135
  };
134
136
  /**
135
137
  * ChatsApi - factory interface
@@ -182,11 +184,12 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
182
184
  /**
183
185
  *
184
186
  * @param {MarkChatUnreadDto} body
187
+ * @param {string} apikey
185
188
  * @param {number} id
186
189
  * @param {*} [options] Override http request option.
187
190
  * @throws {RequiredError}
188
191
  */
189
- markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
192
+ markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
190
193
  };
191
194
  /**
192
195
  * ChatsApi - object-oriented interface
@@ -245,10 +248,11 @@ export declare class ChatsApi extends BaseAPI {
245
248
  /**
246
249
  *
247
250
  * @param {MarkChatUnreadDto} body
251
+ * @param {string} apikey
248
252
  * @param {number} id
249
253
  * @param {*} [options] Override http request option.
250
254
  * @throws {RequiredError}
251
255
  * @memberof ChatsApi
252
256
  */
253
- markChatUnread(body: MarkChatUnreadDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
257
+ markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
254
258
  }
@@ -270,15 +270,20 @@ const ChatsApiAxiosParamCreator = function (configuration) {
270
270
  /**
271
271
  *
272
272
  * @param {MarkChatUnreadDto} body
273
+ * @param {string} apikey
273
274
  * @param {number} id
274
275
  * @param {*} [options] Override http request option.
275
276
  * @throws {RequiredError}
276
277
  */
277
- markChatUnread: (body_1, id_1, ...args_1) => __awaiter(this, [body_1, id_1, ...args_1], void 0, function* (body, id, options = {}) {
278
+ markChatUnread: (body_1, apikey_1, id_1, ...args_1) => __awaiter(this, [body_1, apikey_1, id_1, ...args_1], void 0, function* (body, apikey, id, options = {}) {
278
279
  // verify required parameter 'body' is not null or undefined
279
280
  if (body === null || body === undefined) {
280
281
  throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling markChatUnread.');
281
282
  }
283
+ // verify required parameter 'apikey' is not null or undefined
284
+ if (apikey === null || apikey === undefined) {
285
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling markChatUnread.');
286
+ }
282
287
  // verify required parameter 'id' is not null or undefined
283
288
  if (id === null || id === undefined) {
284
289
  throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling markChatUnread.');
@@ -294,6 +299,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
294
299
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
295
300
  const localVarHeaderParameter = {};
296
301
  const localVarQueryParameter = {};
302
+ if (apikey !== undefined && apikey !== null) {
303
+ localVarHeaderParameter['apikey'] = String(apikey);
304
+ }
297
305
  localVarHeaderParameter['Content-Type'] = 'application/json';
298
306
  const query = new URLSearchParams(localVarUrlObj.search);
299
307
  for (const key in localVarQueryParameter) {
@@ -399,13 +407,14 @@ const ChatsApiFp = function (configuration) {
399
407
  /**
400
408
  *
401
409
  * @param {MarkChatUnreadDto} body
410
+ * @param {string} apikey
402
411
  * @param {number} id
403
412
  * @param {*} [options] Override http request option.
404
413
  * @throws {RequiredError}
405
414
  */
406
- markChatUnread(body, id, options) {
415
+ markChatUnread(body, apikey, id, options) {
407
416
  return __awaiter(this, void 0, void 0, function* () {
408
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).markChatUnread(body, id, options);
417
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).markChatUnread(body, apikey, id, options);
409
418
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
410
419
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
411
420
  return axios.request(axiosRequestArgs);
@@ -483,13 +492,14 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
483
492
  /**
484
493
  *
485
494
  * @param {MarkChatUnreadDto} body
495
+ * @param {string} apikey
486
496
  * @param {number} id
487
497
  * @param {*} [options] Override http request option.
488
498
  * @throws {RequiredError}
489
499
  */
490
- markChatUnread(body, id, options) {
500
+ markChatUnread(body, apikey, id, options) {
491
501
  return __awaiter(this, void 0, void 0, function* () {
492
- return (0, exports.ChatsApiFp)(configuration).markChatUnread(body, id, options).then((request) => request(axios, basePath));
502
+ return (0, exports.ChatsApiFp)(configuration).markChatUnread(body, apikey, id, options).then((request) => request(axios, basePath));
493
503
  });
494
504
  },
495
505
  };
@@ -568,14 +578,15 @@ class ChatsApi extends base_1.BaseAPI {
568
578
  /**
569
579
  *
570
580
  * @param {MarkChatUnreadDto} body
581
+ * @param {string} apikey
571
582
  * @param {number} id
572
583
  * @param {*} [options] Override http request option.
573
584
  * @throws {RequiredError}
574
585
  * @memberof ChatsApi
575
586
  */
576
- markChatUnread(body, id, options) {
587
+ markChatUnread(body, apikey, id, options) {
577
588
  return __awaiter(this, void 0, void 0, function* () {
578
- return (0, exports.ChatsApiFp)(this.configuration).markChatUnread(body, id, options).then((request) => request(this.axios, this.basePath));
589
+ return (0, exports.ChatsApiFp)(this.configuration).markChatUnread(body, apikey, id, options).then((request) => request(this.axios, this.basePath));
579
590
  });
580
591
  }
581
592
  }
@@ -46,6 +46,12 @@ export interface SendTemplateDataDto {
46
46
  * @example INBOUND
47
47
  */
48
48
  origin?: SendTemplateDataDtoOriginEnum;
49
+ /**
50
+ * @type {number}
51
+ * @memberof SendTemplateDataDto
52
+ * @example 3265
53
+ */
54
+ senderId?: number;
49
55
  }
50
56
  /**
51
57
  * @export
@@ -57,5 +63,7 @@ export declare enum SendTemplateDataDtoOriginEnum {
57
63
  OPERATOR = "OPERATOR",
58
64
  AUTOMATIC = "AUTOMATIC",
59
65
  MASSIVE = "MASSIVE",
60
- AUTH = "AUTH"
66
+ AUTH = "AUTH",
67
+ N8N = "N8N",
68
+ PUSHERAGENT = "PUSHER_AGENT"
61
69
  }
@@ -26,4 +26,6 @@ var SendTemplateDataDtoOriginEnum;
26
26
  SendTemplateDataDtoOriginEnum["AUTOMATIC"] = "AUTOMATIC";
27
27
  SendTemplateDataDtoOriginEnum["MASSIVE"] = "MASSIVE";
28
28
  SendTemplateDataDtoOriginEnum["AUTH"] = "AUTH";
29
+ SendTemplateDataDtoOriginEnum["N8N"] = "N8N";
30
+ SendTemplateDataDtoOriginEnum["PUSHERAGENT"] = "PUSHER_AGENT";
29
31
  })(SendTemplateDataDtoOriginEnum || (exports.SendTemplateDataDtoOriginEnum = SendTemplateDataDtoOriginEnum = {}));
@@ -28,6 +28,18 @@ export interface SendTextDto {
28
28
  * @example 12
29
29
  */
30
30
  contactId?: number;
31
+ /**
32
+ * @type {number}
33
+ * @memberof SendTextDto
34
+ * @example 1500
35
+ */
36
+ leadId?: number;
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTextDto
40
+ * @example 3265
41
+ */
42
+ senderId?: number;
31
43
  /**
32
44
  * @type {string}
33
45
  * @memberof SendTextDto
@@ -57,5 +69,7 @@ export declare enum SendTextDtoOriginEnum {
57
69
  OPERATOR = "OPERATOR",
58
70
  AUTOMATIC = "AUTOMATIC",
59
71
  MASSIVE = "MASSIVE",
60
- AUTH = "AUTH"
72
+ AUTH = "AUTH",
73
+ N8N = "N8N",
74
+ PUSHERAGENT = "PUSHER_AGENT"
61
75
  }
@@ -26,4 +26,6 @@ var SendTextDtoOriginEnum;
26
26
  SendTextDtoOriginEnum["AUTOMATIC"] = "AUTOMATIC";
27
27
  SendTextDtoOriginEnum["MASSIVE"] = "MASSIVE";
28
28
  SendTextDtoOriginEnum["AUTH"] = "AUTH";
29
+ SendTextDtoOriginEnum["N8N"] = "N8N";
30
+ SendTextDtoOriginEnum["PUSHERAGENT"] = "PUSHER_AGENT";
29
31
  })(SendTextDtoOriginEnum || (exports.SendTextDtoOriginEnum = SendTextDtoOriginEnum = {}));
@@ -40,6 +40,12 @@ export interface WhatsappMessageDto {
40
40
  * @example 1736452031
41
41
  */
42
42
  messageTimestamp: number;
43
+ /**
44
+ * @type {number}
45
+ * @memberof WhatsappMessageDto
46
+ * @example 3265
47
+ */
48
+ senderId?: number;
43
49
  /**
44
50
  * @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
45
51
  * @memberof WhatsappMessageDto
@@ -54,6 +54,13 @@ export interface SendTemplateDataDto {
54
54
  * @example INBOUND
55
55
  */
56
56
  origin?: SendTemplateDataDtoOriginEnum;
57
+
58
+ /**
59
+ * @type {number}
60
+ * @memberof SendTemplateDataDto
61
+ * @example 3265
62
+ */
63
+ senderId?: number;
57
64
  }
58
65
 
59
66
  /**
@@ -66,6 +73,8 @@ export enum SendTemplateDataDtoOriginEnum {
66
73
  OPERATOR = 'OPERATOR',
67
74
  AUTOMATIC = 'AUTOMATIC',
68
75
  MASSIVE = 'MASSIVE',
69
- AUTH = 'AUTH'
76
+ AUTH = 'AUTH',
77
+ N8N = 'N8N',
78
+ PUSHERAGENT = 'PUSHER_AGENT'
70
79
  }
71
80
 
@@ -34,6 +34,20 @@ export interface SendTextDto {
34
34
  */
35
35
  contactId?: number;
36
36
 
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTextDto
40
+ * @example 1500
41
+ */
42
+ leadId?: number;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof SendTextDto
47
+ * @example 3265
48
+ */
49
+ senderId?: number;
50
+
37
51
  /**
38
52
  * @type {string}
39
53
  * @memberof SendTextDto
@@ -66,6 +80,8 @@ export enum SendTextDtoOriginEnum {
66
80
  OPERATOR = 'OPERATOR',
67
81
  AUTOMATIC = 'AUTOMATIC',
68
82
  MASSIVE = 'MASSIVE',
69
- AUTH = 'AUTH'
83
+ AUTH = 'AUTH',
84
+ N8N = 'N8N',
85
+ PUSHERAGENT = 'PUSHER_AGENT'
70
86
  }
71
87
 
@@ -47,6 +47,13 @@ export interface WhatsappMessageDto {
47
47
  */
48
48
  messageTimestamp: number;
49
49
 
50
+ /**
51
+ * @type {number}
52
+ * @memberof WhatsappMessageDto
53
+ * @example 3265
54
+ */
55
+ senderId?: number;
56
+
50
57
  /**
51
58
  * @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
52
59
  * @memberof WhatsappMessageDto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.40-rc.2",
3
+ "version": "1.0.41-rc.1",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [