@libgot/whatsapp-bridge-sdk 1.0.20 → 1.0.22

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.20
1
+ ## @1.0.22
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.20 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.22 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -17,6 +17,7 @@ import { Configuration } from '../configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
19
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ import { AssignToMeDto } from '../models';
20
21
  import { ChatsResponseDTO } from '../models';
21
22
  import { WhatsappChatResponseDTO } from '../models';
22
23
  /**
@@ -25,6 +26,54 @@ import { WhatsappChatResponseDTO } from '../models';
25
26
  */
26
27
  export const ChatsApiAxiosParamCreator = function (configuration?: Configuration) {
27
28
  return {
29
+ /**
30
+ *
31
+ * @param {AssignToMeDto} body
32
+ * @param {number} id
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ assignToMe: async (body: AssignToMeDto, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
+ // verify required parameter 'body' is not null or undefined
38
+ if (body === null || body === undefined) {
39
+ throw new RequiredError('body','Required parameter body was null or undefined when calling assignToMe.');
40
+ }
41
+ // verify required parameter 'id' is not null or undefined
42
+ if (id === null || id === undefined) {
43
+ throw new RequiredError('id','Required parameter id was null or undefined when calling assignToMe.');
44
+ }
45
+ const localVarPath = `/api/chats/{id}/assign-to-me`
46
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+
59
+ const query = new URLSearchParams(localVarUrlObj.search);
60
+ for (const key in localVarQueryParameter) {
61
+ query.set(key, localVarQueryParameter[key]);
62
+ }
63
+ for (const key in options.params) {
64
+ query.set(key, options.params[key]);
65
+ }
66
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
70
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
71
+
72
+ return {
73
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
74
+ options: localVarRequestOptions,
75
+ };
76
+ },
28
77
  /**
29
78
  *
30
79
  * @param {number} id
@@ -115,6 +164,20 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
115
164
  */
116
165
  export const ChatsApiFp = function(configuration?: Configuration) {
117
166
  return {
167
+ /**
168
+ *
169
+ * @param {AssignToMeDto} body
170
+ * @param {number} id
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>> {
175
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).assignToMe(body, id, options);
176
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
177
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
178
+ return axios.request(axiosRequestArgs);
179
+ };
180
+ },
118
181
  /**
119
182
  *
120
183
  * @param {number} id
@@ -150,6 +213,16 @@ export const ChatsApiFp = function(configuration?: Configuration) {
150
213
  */
151
214
  export const ChatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
152
215
  return {
216
+ /**
217
+ *
218
+ * @param {AssignToMeDto} body
219
+ * @param {number} id
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>> {
224
+ return ChatsApiFp(configuration).assignToMe(body, id, options).then((request) => request(axios, basePath));
225
+ },
153
226
  /**
154
227
  *
155
228
  * @param {number} id
@@ -178,6 +251,17 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
178
251
  * @extends {BaseAPI}
179
252
  */
180
253
  export class ChatsApi extends BaseAPI {
254
+ /**
255
+ *
256
+ * @param {AssignToMeDto} body
257
+ * @param {number} id
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof ChatsApi
261
+ */
262
+ public async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<WhatsappChatResponseDTO>> {
263
+ return ChatsApiFp(this.configuration).assignToMe(body, id, options).then((request) => request(this.axios, this.basePath));
264
+ }
181
265
  /**
182
266
  *
183
267
  * @param {number} id
@@ -20,6 +20,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
20
20
  import { MessageResponseDto } from '../models';
21
21
  import { ReadMessageDto } from '../models';
22
22
  import { ReadMessageResponseDataDto } from '../models';
23
+ import { SendTemplateDataDto } from '../models';
23
24
  import { SendTextDataResponseDto } from '../models';
24
25
  import { SendTextDto } from '../models';
25
26
  /**
@@ -121,6 +122,48 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat
121
122
  options: localVarRequestOptions,
122
123
  };
123
124
  },
125
+ /**
126
+ *
127
+ * @param {SendTemplateDataDto} body
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ sendTemplateMessage: async (body: SendTemplateDataDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
132
+ // verify required parameter 'body' is not null or undefined
133
+ if (body === null || body === undefined) {
134
+ throw new RequiredError('body','Required parameter body was null or undefined when calling sendTemplateMessage.');
135
+ }
136
+ const localVarPath = `/api/messages/send-template`;
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
144
+ const localVarHeaderParameter = {} as any;
145
+ const localVarQueryParameter = {} as any;
146
+
147
+ localVarHeaderParameter['Content-Type'] = 'application/json';
148
+
149
+ const query = new URLSearchParams(localVarUrlObj.search);
150
+ for (const key in localVarQueryParameter) {
151
+ query.set(key, localVarQueryParameter[key]);
152
+ }
153
+ for (const key in options.params) {
154
+ query.set(key, options.params[key]);
155
+ }
156
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
159
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
160
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
161
+
162
+ return {
163
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
164
+ options: localVarRequestOptions,
165
+ };
166
+ },
124
167
  /**
125
168
  *
126
169
  * @param {SendTextDto} body
@@ -199,6 +242,19 @@ export const MessagesApiFp = function(configuration?: Configuration) {
199
242
  return axios.request(axiosRequestArgs);
200
243
  };
201
244
  },
245
+ /**
246
+ *
247
+ * @param {SendTemplateDataDto} body
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ async sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>> {
252
+ const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).sendTemplateMessage(body, options);
253
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
254
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
255
+ return axios.request(axiosRequestArgs);
256
+ };
257
+ },
202
258
  /**
203
259
  *
204
260
  * @param {SendTextDto} body
@@ -240,6 +296,15 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
240
296
  async readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>> {
241
297
  return MessagesApiFp(configuration).readMessage(body, options).then((request) => request(axios, basePath));
242
298
  },
299
+ /**
300
+ *
301
+ * @param {SendTemplateDataDto} body
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ async sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>> {
306
+ return MessagesApiFp(configuration).sendTemplateMessage(body, options).then((request) => request(axios, basePath));
307
+ },
243
308
  /**
244
309
  *
245
310
  * @param {SendTextDto} body
@@ -280,6 +345,16 @@ export class MessagesApi extends BaseAPI {
280
345
  public async readMessage(body: ReadMessageDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<ReadMessageResponseDataDto>> {
281
346
  return MessagesApiFp(this.configuration).readMessage(body, options).then((request) => request(this.axios, this.basePath));
282
347
  }
348
+ /**
349
+ *
350
+ * @param {SendTemplateDataDto} body
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ * @memberof MessagesApi
354
+ */
355
+ public async sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<SendTextDataResponseDto>> {
356
+ return MessagesApiFp(this.configuration).sendTemplateMessage(body, options).then((request) => request(this.axios, this.basePath));
357
+ }
283
358
  /**
284
359
  *
285
360
  * @param {SendTextDto} body
@@ -12,6 +12,7 @@
12
12
  import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { AssignToMeDto } from '../models';
15
16
  import { ChatsResponseDTO } from '../models';
16
17
  import { WhatsappChatResponseDTO } from '../models';
17
18
  /**
@@ -19,6 +20,14 @@ import { WhatsappChatResponseDTO } from '../models';
19
20
  * @export
20
21
  */
21
22
  export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @param {AssignToMeDto} body
26
+ * @param {number} id
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ assignToMe: (body: AssignToMeDto, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
22
31
  /**
23
32
  *
24
33
  * @param {number} id
@@ -39,6 +48,14 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
39
48
  * @export
40
49
  */
41
50
  export declare const ChatsApiFp: (configuration?: Configuration) => {
51
+ /**
52
+ *
53
+ * @param {AssignToMeDto} body
54
+ * @param {number} id
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
42
59
  /**
43
60
  *
44
61
  * @param {number} id
@@ -59,6 +76,14 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
59
76
  * @export
60
77
  */
61
78
  export declare const ChatsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
79
+ /**
80
+ *
81
+ * @param {AssignToMeDto} body
82
+ * @param {number} id
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
62
87
  /**
63
88
  *
64
89
  * @param {number} id
@@ -81,6 +106,15 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
81
106
  * @extends {BaseAPI}
82
107
  */
83
108
  export declare class ChatsApi extends BaseAPI {
109
+ /**
110
+ *
111
+ * @param {AssignToMeDto} body
112
+ * @param {number} id
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof ChatsApi
116
+ */
117
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
84
118
  /**
85
119
  *
86
120
  * @param {number} id
@@ -96,6 +96,59 @@ var base_1 = require("../base");
96
96
  var ChatsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ *
101
+ * @param {AssignToMeDto} body
102
+ * @param {number} id
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ assignToMe: function (body_1, id_1) {
107
+ var args_1 = [];
108
+ for (var _i = 2; _i < arguments.length; _i++) {
109
+ args_1[_i - 2] = arguments[_i];
110
+ }
111
+ return __awaiter(_this, __spreadArray([body_1, id_1], args_1, true), void 0, function (body, id, options) {
112
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
113
+ if (options === void 0) { options = {}; }
114
+ return __generator(this, function (_a) {
115
+ // verify required parameter 'body' is not null or undefined
116
+ if (body === null || body === undefined) {
117
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling assignToMe.');
118
+ }
119
+ // verify required parameter 'id' is not null or undefined
120
+ if (id === null || id === undefined) {
121
+ throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling assignToMe.');
122
+ }
123
+ localVarPath = "/api/chats/{id}/assign-to-me"
124
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
125
+ localVarUrlObj = new URL(localVarPath, 'https://example.com');
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
130
+ localVarHeaderParameter = {};
131
+ localVarQueryParameter = {};
132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
133
+ query = new URLSearchParams(localVarUrlObj.search);
134
+ for (key in localVarQueryParameter) {
135
+ query.set(key, localVarQueryParameter[key]);
136
+ }
137
+ for (key in options.params) {
138
+ query.set(key, options.params[key]);
139
+ }
140
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
144
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
145
+ return [2 /*return*/, {
146
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
147
+ options: localVarRequestOptions,
148
+ }];
149
+ });
150
+ });
151
+ },
99
152
  /**
100
153
  *
101
154
  * @param {number} id
@@ -197,6 +250,31 @@ exports.ChatsApiAxiosParamCreator = ChatsApiAxiosParamCreator;
197
250
  */
198
251
  var ChatsApiFp = function (configuration) {
199
252
  return {
253
+ /**
254
+ *
255
+ * @param {AssignToMeDto} body
256
+ * @param {number} id
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ assignToMe: function (body, id, options) {
261
+ return __awaiter(this, void 0, void 0, function () {
262
+ var localVarAxiosArgs;
263
+ return __generator(this, function (_a) {
264
+ switch (_a.label) {
265
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToMe(body, id, options)];
266
+ case 1:
267
+ localVarAxiosArgs = _a.sent();
268
+ return [2 /*return*/, function (axios, basePath) {
269
+ if (axios === void 0) { axios = axios_1.default; }
270
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
271
+ var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
272
+ return axios.request(axiosRequestArgs);
273
+ }];
274
+ }
275
+ });
276
+ });
277
+ },
200
278
  /**
201
279
  *
202
280
  * @param {number} id
@@ -254,6 +332,20 @@ exports.ChatsApiFp = ChatsApiFp;
254
332
  */
255
333
  var ChatsApiFactory = function (configuration, basePath, axios) {
256
334
  return {
335
+ /**
336
+ *
337
+ * @param {AssignToMeDto} body
338
+ * @param {number} id
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ assignToMe: function (body, id, options) {
343
+ return __awaiter(this, void 0, void 0, function () {
344
+ return __generator(this, function (_a) {
345
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).assignToMe(body, id, options).then(function (request) { return request(axios, basePath); })];
346
+ });
347
+ });
348
+ },
257
349
  /**
258
350
  *
259
351
  * @param {number} id
@@ -294,6 +386,22 @@ var ChatsApi = /** @class */ (function (_super) {
294
386
  function ChatsApi() {
295
387
  return _super !== null && _super.apply(this, arguments) || this;
296
388
  }
389
+ /**
390
+ *
391
+ * @param {AssignToMeDto} body
392
+ * @param {number} id
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ * @memberof ChatsApi
396
+ */
397
+ ChatsApi.prototype.assignToMe = function (body, id, options) {
398
+ return __awaiter(this, void 0, void 0, function () {
399
+ var _this = this;
400
+ return __generator(this, function (_a) {
401
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).assignToMe(body, id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
402
+ });
403
+ });
404
+ };
297
405
  /**
298
406
  *
299
407
  * @param {number} id
@@ -15,6 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { MessageResponseDto } from '../models';
16
16
  import { ReadMessageDto } from '../models';
17
17
  import { ReadMessageResponseDataDto } from '../models';
18
+ import { SendTemplateDataDto } from '../models';
18
19
  import { SendTextDataResponseDto } from '../models';
19
20
  import { SendTextDto } from '../models';
20
21
  /**
@@ -37,6 +38,13 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
37
38
  * @throws {RequiredError}
38
39
  */
39
40
  readMessage: (body: ReadMessageDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ *
43
+ * @param {SendTemplateDataDto} body
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ sendTemplateMessage: (body: SendTemplateDataDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
48
  /**
41
49
  *
42
50
  * @param {SendTextDto} body
@@ -65,6 +73,13 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
65
73
  * @throws {RequiredError}
66
74
  */
67
75
  readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ReadMessageResponseDataDto>>>;
76
+ /**
77
+ *
78
+ * @param {SendTemplateDataDto} body
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>>;
68
83
  /**
69
84
  *
70
85
  * @param {SendTextDto} body
@@ -93,6 +108,13 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
93
108
  * @throws {RequiredError}
94
109
  */
95
110
  readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>>;
111
+ /**
112
+ *
113
+ * @param {SendTemplateDataDto} body
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
96
118
  /**
97
119
  *
98
120
  * @param {SendTextDto} body
@@ -125,6 +147,14 @@ export declare class MessagesApi extends BaseAPI {
125
147
  * @memberof MessagesApi
126
148
  */
127
149
  readMessage(body: ReadMessageDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReadMessageResponseDataDto>>;
150
+ /**
151
+ *
152
+ * @param {SendTemplateDataDto} body
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ * @memberof MessagesApi
156
+ */
157
+ sendTemplateMessage(body: SendTemplateDataDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
128
158
  /**
129
159
  *
130
160
  * @param {SendTextDto} body
@@ -198,6 +198,53 @@ var MessagesApiAxiosParamCreator = function (configuration) {
198
198
  });
199
199
  });
200
200
  },
201
+ /**
202
+ *
203
+ * @param {SendTemplateDataDto} body
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ sendTemplateMessage: function (body_1) {
208
+ var args_1 = [];
209
+ for (var _i = 1; _i < arguments.length; _i++) {
210
+ args_1[_i - 1] = arguments[_i];
211
+ }
212
+ return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
213
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
214
+ if (options === void 0) { options = {}; }
215
+ return __generator(this, function (_a) {
216
+ // verify required parameter 'body' is not null or undefined
217
+ if (body === null || body === undefined) {
218
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling sendTemplateMessage.');
219
+ }
220
+ localVarPath = "/api/messages/send-template";
221
+ localVarUrlObj = new URL(localVarPath, 'https://example.com');
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ localVarHeaderParameter['Content-Type'] = 'application/json';
229
+ query = new URLSearchParams(localVarUrlObj.search);
230
+ for (key in localVarQueryParameter) {
231
+ query.set(key, localVarQueryParameter[key]);
232
+ }
233
+ for (key in options.params) {
234
+ query.set(key, options.params[key]);
235
+ }
236
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
237
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
+ needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
240
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
241
+ return [2 /*return*/, {
242
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
243
+ options: localVarRequestOptions,
244
+ }];
245
+ });
246
+ });
247
+ },
201
248
  /**
202
249
  *
203
250
  * @param {SendTextDto} body
@@ -303,6 +350,30 @@ var MessagesApiFp = function (configuration) {
303
350
  });
304
351
  });
305
352
  },
353
+ /**
354
+ *
355
+ * @param {SendTemplateDataDto} body
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ sendTemplateMessage: function (body, options) {
360
+ return __awaiter(this, void 0, void 0, function () {
361
+ var localVarAxiosArgs;
362
+ return __generator(this, function (_a) {
363
+ switch (_a.label) {
364
+ case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).sendTemplateMessage(body, options)];
365
+ case 1:
366
+ localVarAxiosArgs = _a.sent();
367
+ return [2 /*return*/, function (axios, basePath) {
368
+ if (axios === void 0) { axios = axios_1.default; }
369
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
370
+ var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
371
+ return axios.request(axiosRequestArgs);
372
+ }];
373
+ }
374
+ });
375
+ });
376
+ },
306
377
  /**
307
378
  *
308
379
  * @param {SendTextDto} body
@@ -363,6 +434,19 @@ var MessagesApiFactory = function (configuration, basePath, axios) {
363
434
  });
364
435
  });
365
436
  },
437
+ /**
438
+ *
439
+ * @param {SendTemplateDataDto} body
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ sendTemplateMessage: function (body, options) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ return __generator(this, function (_a) {
446
+ return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).sendTemplateMessage(body, options).then(function (request) { return request(axios, basePath); })];
447
+ });
448
+ });
449
+ },
366
450
  /**
367
451
  *
368
452
  * @param {SendTextDto} body
@@ -421,6 +505,21 @@ var MessagesApi = /** @class */ (function (_super) {
421
505
  });
422
506
  });
423
507
  };
508
+ /**
509
+ *
510
+ * @param {SendTemplateDataDto} body
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ * @memberof MessagesApi
514
+ */
515
+ MessagesApi.prototype.sendTemplateMessage = function (body, options) {
516
+ return __awaiter(this, void 0, void 0, function () {
517
+ var _this = this;
518
+ return __generator(this, function (_a) {
519
+ return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).sendTemplateMessage(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
520
+ });
521
+ });
522
+ };
424
523
  /**
425
524
  *
426
525
  * @param {SendTextDto} body
@@ -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 AssignToMeDto
17
+ */
18
+ export interface AssignToMeDto {
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,43 @@
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 { ParameterTemplateDto } from './parameter-template-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface ComponentTemplateDto
18
+ */
19
+ export interface ComponentTemplateDto {
20
+ /**
21
+ * @type {string}
22
+ * @memberof ComponentTemplateDto
23
+ * @example body
24
+ */
25
+ type: string;
26
+ /**
27
+ * @type {string}
28
+ * @memberof ComponentTemplateDto
29
+ * @example URL
30
+ */
31
+ subType: string;
32
+ /**
33
+ * @type {string}
34
+ * @memberof ComponentTemplateDto
35
+ * @example 1
36
+ */
37
+ index: string;
38
+ /**
39
+ * @type {Array<ParameterTemplateDto>}
40
+ * @memberof ComponentTemplateDto
41
+ */
42
+ parameters: Array<ParameterTemplateDto>;
43
+ }
@@ -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 });
@@ -1,9 +1,11 @@
1
1
  export * from './api-request-user-update-password-dto';
2
2
  export * from './api-response-auth-dto';
3
3
  export * from './api-response-user-dto';
4
+ export * from './assign-to-me-dto';
4
5
  export * from './attributes';
5
6
  export * from './auth-dto';
6
7
  export * from './chats-response-dto';
8
+ export * from './component-template-dto';
7
9
  export * from './contacts-response-dto';
8
10
  export * from './conversation-message-dto';
9
11
  export * from './data-dto';
@@ -15,9 +17,12 @@ export * from './inline-response503-info';
15
17
  export * from './key-dto';
16
18
  export * from './message-detail-dto';
17
19
  export * from './message-response-dto';
20
+ export * from './parameter-template-dto';
18
21
  export * from './read-message-dto';
19
22
  export * from './read-message-response-data-dto';
20
23
  export * from './role-dto';
24
+ export * from './send-template-data-dto';
25
+ export * from './send-template-dto';
21
26
  export * from './send-text-data-response-dto';
22
27
  export * from './send-text-dto';
23
28
  export * from './send-text-response-dto';
@@ -17,9 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api-request-user-update-password-dto"), exports);
18
18
  __exportStar(require("./api-response-auth-dto"), exports);
19
19
  __exportStar(require("./api-response-user-dto"), exports);
20
+ __exportStar(require("./assign-to-me-dto"), exports);
20
21
  __exportStar(require("./attributes"), exports);
21
22
  __exportStar(require("./auth-dto"), exports);
22
23
  __exportStar(require("./chats-response-dto"), exports);
24
+ __exportStar(require("./component-template-dto"), exports);
23
25
  __exportStar(require("./contacts-response-dto"), exports);
24
26
  __exportStar(require("./conversation-message-dto"), exports);
25
27
  __exportStar(require("./data-dto"), exports);
@@ -31,9 +33,12 @@ __exportStar(require("./inline-response503-info"), exports);
31
33
  __exportStar(require("./key-dto"), exports);
32
34
  __exportStar(require("./message-detail-dto"), exports);
33
35
  __exportStar(require("./message-response-dto"), exports);
36
+ __exportStar(require("./parameter-template-dto"), exports);
34
37
  __exportStar(require("./read-message-dto"), exports);
35
38
  __exportStar(require("./read-message-response-data-dto"), exports);
36
39
  __exportStar(require("./role-dto"), exports);
40
+ __exportStar(require("./send-template-data-dto"), exports);
41
+ __exportStar(require("./send-template-dto"), exports);
37
42
  __exportStar(require("./send-text-data-response-dto"), exports);
38
43
  __exportStar(require("./send-text-dto"), exports);
39
44
  __exportStar(require("./send-text-response-dto"), exports);
@@ -0,0 +1,31 @@
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 ParameterTemplateDto
17
+ */
18
+ export interface ParameterTemplateDto {
19
+ /**
20
+ * @type {string}
21
+ * @memberof ParameterTemplateDto
22
+ * @example text
23
+ */
24
+ type: string;
25
+ /**
26
+ * @type {string}
27
+ * @memberof ParameterTemplateDto
28
+ * @example Name
29
+ */
30
+ text: string;
31
+ }
@@ -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,31 @@
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 { SendTemplateDto } from './send-template-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface SendTemplateDataDto
18
+ */
19
+ export interface SendTemplateDataDto {
20
+ /**
21
+ * @type {SendTemplateDto}
22
+ * @memberof SendTemplateDataDto
23
+ */
24
+ data: SendTemplateDto;
25
+ /**
26
+ * @type {number}
27
+ * @memberof SendTemplateDataDto
28
+ * @example 1
29
+ */
30
+ branchId: number;
31
+ }
@@ -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,43 @@
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 { ComponentTemplateDto } from './component-template-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface SendTemplateDto
18
+ */
19
+ export interface SendTemplateDto {
20
+ /**
21
+ * @type {string}
22
+ * @memberof SendTemplateDto
23
+ * @example 543814652933@s.whatsapp.net
24
+ */
25
+ number: string;
26
+ /**
27
+ * @type {string}
28
+ * @memberof SendTemplateDto
29
+ * @example hello_world
30
+ */
31
+ name: string;
32
+ /**
33
+ * @type {string}
34
+ * @memberof SendTemplateDto
35
+ * @example en_US
36
+ */
37
+ language: string;
38
+ /**
39
+ * @type {ComponentTemplateDto}
40
+ * @memberof SendTemplateDto
41
+ */
42
+ components: ComponentTemplateDto;
43
+ }
@@ -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 });
@@ -27,7 +27,7 @@ export interface SendTextDto {
27
27
  * @memberof SendTextDto
28
28
  * @example 12
29
29
  */
30
- contactId: number;
30
+ contactId?: number;
31
31
  /**
32
32
  * @type {string}
33
33
  * @memberof SendTextDto
@@ -39,5 +39,5 @@ export interface SendTextDto {
39
39
  * @memberof SendTextDto
40
40
  * @example 3814652933
41
41
  */
42
- cellphone: number;
42
+ cellphone?: number;
43
43
  }
@@ -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 AssignToMeDto
20
+ */
21
+ export interface AssignToMeDto {
22
+ }
@@ -0,0 +1,50 @@
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 { ParameterTemplateDto } from './parameter-template-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface ComponentTemplateDto
21
+ */
22
+ export interface ComponentTemplateDto {
23
+
24
+ /**
25
+ * @type {string}
26
+ * @memberof ComponentTemplateDto
27
+ * @example body
28
+ */
29
+ type: string;
30
+
31
+ /**
32
+ * @type {string}
33
+ * @memberof ComponentTemplateDto
34
+ * @example URL
35
+ */
36
+ subType: string;
37
+
38
+ /**
39
+ * @type {string}
40
+ * @memberof ComponentTemplateDto
41
+ * @example 1
42
+ */
43
+ index: string;
44
+
45
+ /**
46
+ * @type {Array<ParameterTemplateDto>}
47
+ * @memberof ComponentTemplateDto
48
+ */
49
+ parameters: Array<ParameterTemplateDto>;
50
+ }
package/models/index.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  export * from './api-request-user-update-password-dto';
2
2
  export * from './api-response-auth-dto';
3
3
  export * from './api-response-user-dto';
4
+ export * from './assign-to-me-dto';
4
5
  export * from './attributes';
5
6
  export * from './auth-dto';
6
7
  export * from './chats-response-dto';
8
+ export * from './component-template-dto';
7
9
  export * from './contacts-response-dto';
8
10
  export * from './conversation-message-dto';
9
11
  export * from './data-dto';
@@ -15,9 +17,12 @@ export * from './inline-response503-info';
15
17
  export * from './key-dto';
16
18
  export * from './message-detail-dto';
17
19
  export * from './message-response-dto';
20
+ export * from './parameter-template-dto';
18
21
  export * from './read-message-dto';
19
22
  export * from './read-message-response-data-dto';
20
23
  export * from './role-dto';
24
+ export * from './send-template-data-dto';
25
+ export * from './send-template-dto';
21
26
  export * from './send-text-data-response-dto';
22
27
  export * from './send-text-dto';
23
28
  export * from './send-text-response-dto';
@@ -0,0 +1,36 @@
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 ParameterTemplateDto
20
+ */
21
+ export interface ParameterTemplateDto {
22
+
23
+ /**
24
+ * @type {string}
25
+ * @memberof ParameterTemplateDto
26
+ * @example text
27
+ */
28
+ type: string;
29
+
30
+ /**
31
+ * @type {string}
32
+ * @memberof ParameterTemplateDto
33
+ * @example Name
34
+ */
35
+ text: string;
36
+ }
@@ -0,0 +1,36 @@
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 { SendTemplateDto } from './send-template-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface SendTemplateDataDto
21
+ */
22
+ export interface SendTemplateDataDto {
23
+
24
+ /**
25
+ * @type {SendTemplateDto}
26
+ * @memberof SendTemplateDataDto
27
+ */
28
+ data: SendTemplateDto;
29
+
30
+ /**
31
+ * @type {number}
32
+ * @memberof SendTemplateDataDto
33
+ * @example 1
34
+ */
35
+ branchId: number;
36
+ }
@@ -0,0 +1,50 @@
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 { ComponentTemplateDto } from './component-template-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface SendTemplateDto
21
+ */
22
+ export interface SendTemplateDto {
23
+
24
+ /**
25
+ * @type {string}
26
+ * @memberof SendTemplateDto
27
+ * @example 543814652933@s.whatsapp.net
28
+ */
29
+ number: string;
30
+
31
+ /**
32
+ * @type {string}
33
+ * @memberof SendTemplateDto
34
+ * @example hello_world
35
+ */
36
+ name: string;
37
+
38
+ /**
39
+ * @type {string}
40
+ * @memberof SendTemplateDto
41
+ * @example en_US
42
+ */
43
+ language: string;
44
+
45
+ /**
46
+ * @type {ComponentTemplateDto}
47
+ * @memberof SendTemplateDto
48
+ */
49
+ components: ComponentTemplateDto;
50
+ }
@@ -32,7 +32,7 @@ export interface SendTextDto {
32
32
  * @memberof SendTextDto
33
33
  * @example 12
34
34
  */
35
- contactId: number;
35
+ contactId?: number;
36
36
 
37
37
  /**
38
38
  * @type {string}
@@ -46,5 +46,5 @@ export interface SendTextDto {
46
46
  * @memberof SendTextDto
47
47
  * @example 3814652933
48
48
  */
49
- cellphone: number;
49
+ cellphone?: number;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [