@libgot/whatsapp-bridge-sdk 1.0.45 → 1.0.46-rc.2

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.
Files changed (46) hide show
  1. package/README.md +3 -3
  2. package/apis/messages-api.ts +88 -0
  3. package/apis/sessions-api.ts +96 -0
  4. package/apis/tasks-api.ts +86 -0
  5. package/dist/apis/messages-api.d.ts +35 -0
  6. package/dist/apis/messages-api.js +88 -0
  7. package/dist/apis/sessions-api.d.ts +38 -0
  8. package/dist/apis/sessions-api.js +97 -0
  9. package/dist/apis/tasks-api.d.ts +33 -0
  10. package/dist/apis/tasks-api.js +88 -0
  11. package/dist/models/audio-message-dto.d.ts +31 -0
  12. package/dist/models/audio-message-dto.js +15 -0
  13. package/dist/models/index.d.ts +10 -0
  14. package/dist/models/index.js +10 -0
  15. package/dist/models/send-media-data-dto.d.ts +31 -0
  16. package/dist/models/send-media-data-dto.js +15 -0
  17. package/dist/models/send-media-data-response-dto.d.ts +25 -0
  18. package/dist/models/send-media-data-response-dto.js +15 -0
  19. package/dist/models/send-media-dto.d.ts +99 -0
  20. package/dist/models/send-media-dto.js +25 -0
  21. package/dist/models/send-media-key-dto.d.ts +37 -0
  22. package/dist/models/send-media-key-dto.js +15 -0
  23. package/dist/models/send-media-message-dto.d.ts +25 -0
  24. package/dist/models/send-media-message-dto.js +15 -0
  25. package/dist/models/send-media-response-dto.d.ts +72 -0
  26. package/dist/models/send-media-response-dto.js +15 -0
  27. package/dist/models/session-summary-dto.d.ts +47 -0
  28. package/dist/models/session-summary-dto.js +15 -0
  29. package/dist/models/session-summary-list-response-data-dto.d.ts +25 -0
  30. package/dist/models/session-summary-list-response-data-dto.js +15 -0
  31. package/dist/models/sticker-message-dto.d.ts +31 -0
  32. package/dist/models/sticker-message-dto.js +15 -0
  33. package/dist/models/whatsapp-message-dto.d.ts +4 -2
  34. package/models/audio-message-dto.ts +36 -0
  35. package/models/index.ts +10 -0
  36. package/models/send-media-data-dto.ts +36 -0
  37. package/models/send-media-data-response-dto.ts +29 -0
  38. package/models/send-media-dto.ts +115 -0
  39. package/models/send-media-key-dto.ts +43 -0
  40. package/models/send-media-message-dto.ts +29 -0
  41. package/models/send-media-response-dto.ts +84 -0
  42. package/models/session-summary-dto.ts +55 -0
  43. package/models/session-summary-list-response-data-dto.ts +29 -0
  44. package/models/sticker-message-dto.ts +36 -0
  45. package/models/whatsapp-message-dto.ts +4 -2
  46. package/package.json +2 -2
@@ -170,6 +170,59 @@ const SessionsApiAxiosParamCreator = function (configuration) {
170
170
  options: localVarRequestOptions,
171
171
  };
172
172
  }),
173
+ /**
174
+ *
175
+ * @param {number} cellphone
176
+ * @param {number} branchId
177
+ * @param {string} apikey
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ getSessionsByCellphone: (cellphone_1, branchId_1, apikey_1, ...args_1) => __awaiter(this, [cellphone_1, branchId_1, apikey_1, ...args_1], void 0, function* (cellphone, branchId, apikey, options = {}) {
182
+ // verify required parameter 'cellphone' is not null or undefined
183
+ if (cellphone === null || cellphone === undefined) {
184
+ throw new base_1.RequiredError('cellphone', 'Required parameter cellphone was null or undefined when calling getSessionsByCellphone.');
185
+ }
186
+ // verify required parameter 'branchId' is not null or undefined
187
+ if (branchId === null || branchId === undefined) {
188
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getSessionsByCellphone.');
189
+ }
190
+ // verify required parameter 'apikey' is not null or undefined
191
+ if (apikey === null || apikey === undefined) {
192
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getSessionsByCellphone.');
193
+ }
194
+ const localVarPath = `/api/sessions/cellphone/{cellphone}`
195
+ .replace(`{${"cellphone"}}`, encodeURIComponent(String(cellphone)));
196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
198
+ let baseOptions;
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ }
202
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
203
+ const localVarHeaderParameter = {};
204
+ const localVarQueryParameter = {};
205
+ if (branchId !== undefined) {
206
+ localVarQueryParameter['branchId'] = branchId;
207
+ }
208
+ if (apikey !== undefined && apikey !== null) {
209
+ localVarHeaderParameter['apikey'] = String(apikey);
210
+ }
211
+ const query = new URLSearchParams(localVarUrlObj.search);
212
+ for (const key in localVarQueryParameter) {
213
+ query.set(key, localVarQueryParameter[key]);
214
+ }
215
+ for (const key in options.params) {
216
+ query.set(key, options.params[key]);
217
+ }
218
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ return {
222
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
223
+ options: localVarRequestOptions,
224
+ };
225
+ }),
173
226
  };
174
227
  };
175
228
  exports.SessionsApiAxiosParamCreator = SessionsApiAxiosParamCreator;
@@ -227,6 +280,23 @@ const SessionsApiFp = function (configuration) {
227
280
  };
228
281
  });
229
282
  },
283
+ /**
284
+ *
285
+ * @param {number} cellphone
286
+ * @param {number} branchId
287
+ * @param {string} apikey
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getSessionsByCellphone(cellphone, branchId, apikey, options) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ const localVarAxiosArgs = yield (0, exports.SessionsApiAxiosParamCreator)(configuration).getSessionsByCellphone(cellphone, branchId, apikey, options);
294
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
295
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
296
+ return axios.request(axiosRequestArgs);
297
+ };
298
+ });
299
+ },
230
300
  };
231
301
  };
232
302
  exports.SessionsApiFp = SessionsApiFp;
@@ -272,6 +342,19 @@ const SessionsApiFactory = function (configuration, basePath, axios) {
272
342
  return (0, exports.SessionsApiFp)(configuration).getSessions(branchId, apikey, options).then((request) => request(axios, basePath));
273
343
  });
274
344
  },
345
+ /**
346
+ *
347
+ * @param {number} cellphone
348
+ * @param {number} branchId
349
+ * @param {string} apikey
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ getSessionsByCellphone(cellphone, branchId, apikey, options) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ return (0, exports.SessionsApiFp)(configuration).getSessionsByCellphone(cellphone, branchId, apikey, options).then((request) => request(axios, basePath));
356
+ });
357
+ },
275
358
  };
276
359
  };
277
360
  exports.SessionsApiFactory = SessionsApiFactory;
@@ -321,5 +404,19 @@ class SessionsApi extends base_1.BaseAPI {
321
404
  return (0, exports.SessionsApiFp)(this.configuration).getSessions(branchId, apikey, options).then((request) => request(this.axios, this.basePath));
322
405
  });
323
406
  }
407
+ /**
408
+ *
409
+ * @param {number} cellphone
410
+ * @param {number} branchId
411
+ * @param {string} apikey
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof SessionsApi
415
+ */
416
+ getSessionsByCellphone(cellphone, branchId, apikey, options) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ return (0, exports.SessionsApiFp)(this.configuration).getSessionsByCellphone(cellphone, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
419
+ });
420
+ }
324
421
  }
325
422
  exports.SessionsApi = SessionsApi;
@@ -26,6 +26,14 @@ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration)
26
26
  * @throws {RequiredError}
27
27
  */
28
28
  repairMissingMessageKeys: (body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ /**
30
+ *
31
+ * @param {string} targetOriginTypeId
32
+ * @param {string} apikey
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ syncWhatsappMessagesOriginType: (targetOriginTypeId: string, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
37
  };
30
38
  /**
31
39
  * TasksApi - functional programming interface
@@ -40,6 +48,14 @@ export declare const TasksApiFp: (configuration?: Configuration) => {
40
48
  * @throws {RequiredError}
41
49
  */
42
50
  repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
51
+ /**
52
+ *
53
+ * @param {string} targetOriginTypeId
54
+ * @param {string} apikey
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ syncWhatsappMessagesOriginType(targetOriginTypeId: string, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
43
59
  };
44
60
  /**
45
61
  * TasksApi - factory interface
@@ -54,6 +70,14 @@ export declare const TasksApiFactory: (configuration?: Configuration, basePath?:
54
70
  * @throws {RequiredError}
55
71
  */
56
72
  repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
73
+ /**
74
+ *
75
+ * @param {string} targetOriginTypeId
76
+ * @param {string} apikey
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ syncWhatsappMessagesOriginType(targetOriginTypeId: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
57
81
  };
58
82
  /**
59
83
  * TasksApi - object-oriented interface
@@ -71,4 +95,13 @@ export declare class TasksApi extends BaseAPI {
71
95
  * @memberof TasksApi
72
96
  */
73
97
  repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
98
+ /**
99
+ *
100
+ * @param {string} targetOriginTypeId
101
+ * @param {string} apikey
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ * @memberof TasksApi
105
+ */
106
+ syncWhatsappMessagesOriginType(targetOriginTypeId: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
74
107
  }
@@ -80,6 +80,53 @@ const TasksApiAxiosParamCreator = function (configuration) {
80
80
  options: localVarRequestOptions,
81
81
  };
82
82
  }),
83
+ /**
84
+ *
85
+ * @param {string} targetOriginTypeId
86
+ * @param {string} apikey
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ syncWhatsappMessagesOriginType: (targetOriginTypeId_1, apikey_1, ...args_1) => __awaiter(this, [targetOriginTypeId_1, apikey_1, ...args_1], void 0, function* (targetOriginTypeId, apikey, options = {}) {
91
+ // verify required parameter 'targetOriginTypeId' is not null or undefined
92
+ if (targetOriginTypeId === null || targetOriginTypeId === undefined) {
93
+ throw new base_1.RequiredError('targetOriginTypeId', 'Required parameter targetOriginTypeId was null or undefined when calling syncWhatsappMessagesOriginType.');
94
+ }
95
+ // verify required parameter 'apikey' is not null or undefined
96
+ if (apikey === null || apikey === undefined) {
97
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling syncWhatsappMessagesOriginType.');
98
+ }
99
+ const localVarPath = `/api/tasks/sync-whatsapp-messages-origin-type`;
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
102
+ let baseOptions;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ }
106
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
107
+ const localVarHeaderParameter = {};
108
+ const localVarQueryParameter = {};
109
+ if (targetOriginTypeId !== undefined) {
110
+ localVarQueryParameter['targetOriginTypeId'] = targetOriginTypeId;
111
+ }
112
+ if (apikey !== undefined && apikey !== null) {
113
+ localVarHeaderParameter['apikey'] = String(apikey);
114
+ }
115
+ const query = new URLSearchParams(localVarUrlObj.search);
116
+ for (const key in localVarQueryParameter) {
117
+ query.set(key, localVarQueryParameter[key]);
118
+ }
119
+ for (const key in options.params) {
120
+ query.set(key, options.params[key]);
121
+ }
122
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
+ return {
126
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
127
+ options: localVarRequestOptions,
128
+ };
129
+ }),
83
130
  };
84
131
  };
85
132
  exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
@@ -105,6 +152,22 @@ const TasksApiFp = function (configuration) {
105
152
  };
106
153
  });
107
154
  },
155
+ /**
156
+ *
157
+ * @param {string} targetOriginTypeId
158
+ * @param {string} apikey
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const localVarAxiosArgs = yield (0, exports.TasksApiAxiosParamCreator)(configuration).syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options);
165
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
166
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
167
+ return axios.request(axiosRequestArgs);
168
+ };
169
+ });
170
+ },
108
171
  };
109
172
  };
110
173
  exports.TasksApiFp = TasksApiFp;
@@ -126,6 +189,18 @@ const TasksApiFactory = function (configuration, basePath, axios) {
126
189
  return (0, exports.TasksApiFp)(configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(axios, basePath));
127
190
  });
128
191
  },
192
+ /**
193
+ *
194
+ * @param {string} targetOriginTypeId
195
+ * @param {string} apikey
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ return (0, exports.TasksApiFp)(configuration).syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options).then((request) => request(axios, basePath));
202
+ });
203
+ },
129
204
  };
130
205
  };
131
206
  exports.TasksApiFactory = TasksApiFactory;
@@ -149,5 +224,18 @@ class TasksApi extends base_1.BaseAPI {
149
224
  return (0, exports.TasksApiFp)(this.configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(this.axios, this.basePath));
150
225
  });
151
226
  }
227
+ /**
228
+ *
229
+ * @param {string} targetOriginTypeId
230
+ * @param {string} apikey
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ * @memberof TasksApi
234
+ */
235
+ syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options) {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ return (0, exports.TasksApiFp)(this.configuration).syncWhatsappMessagesOriginType(targetOriginTypeId, apikey, options).then((request) => request(this.axios, this.basePath));
238
+ });
239
+ }
152
240
  }
153
241
  exports.TasksApi = TasksApi;
@@ -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 AudioMessageDto
17
+ */
18
+ export interface AudioMessageDto {
19
+ /**
20
+ * @type {string}
21
+ * @memberof AudioMessageDto
22
+ * @example https://example.com/audio.ogg
23
+ */
24
+ mediaUrl: string;
25
+ /**
26
+ * @type {string}
27
+ * @memberof AudioMessageDto
28
+ * @example audioMessage
29
+ */
30
+ mediaType: 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 });
@@ -5,6 +5,7 @@ export * from './apply-for-loan-response-dto';
5
5
  export * from './assign-to-me-dto';
6
6
  export * from './assignment-type-dto';
7
7
  export * from './attributes';
8
+ export * from './audio-message-dto';
8
9
  export * from './cellphone-validation-dto';
9
10
  export * from './chat-latest-status-dto';
10
11
  export * from './chat-lifecycle-event-dto';
@@ -32,6 +33,12 @@ export * from './read-message-dto';
32
33
  export * from './read-message-response-data-dto';
33
34
  export * from './repair-missing-message-keys-dto';
34
35
  export * from './role-dto';
36
+ export * from './send-media-data-dto';
37
+ export * from './send-media-data-response-dto';
38
+ export * from './send-media-dto';
39
+ export * from './send-media-key-dto';
40
+ export * from './send-media-message-dto';
41
+ export * from './send-media-response-dto';
35
42
  export * from './send-template-data-dto';
36
43
  export * from './send-template-dto';
37
44
  export * from './send-text-data-response-dto';
@@ -39,9 +46,12 @@ export * from './send-text-dto';
39
46
  export * from './send-text-response-dto';
40
47
  export * from './session-response-data-dto';
41
48
  export * from './session-response-dto';
49
+ export * from './session-summary-dto';
50
+ export * from './session-summary-list-response-data-dto';
42
51
  export * from './sessions-response-data-dto';
43
52
  export * from './signature-data-dto';
44
53
  export * from './status-dto';
54
+ export * from './sticker-message-dto';
45
55
  export * from './tokens-dto';
46
56
  export * from './unauthorized-dto';
47
57
  export * from './unauthorized-token-dto';
@@ -21,6 +21,7 @@ __exportStar(require("./apply-for-loan-response-dto"), exports);
21
21
  __exportStar(require("./assign-to-me-dto"), exports);
22
22
  __exportStar(require("./assignment-type-dto"), exports);
23
23
  __exportStar(require("./attributes"), exports);
24
+ __exportStar(require("./audio-message-dto"), exports);
24
25
  __exportStar(require("./cellphone-validation-dto"), exports);
25
26
  __exportStar(require("./chat-latest-status-dto"), exports);
26
27
  __exportStar(require("./chat-lifecycle-event-dto"), exports);
@@ -48,6 +49,12 @@ __exportStar(require("./read-message-dto"), exports);
48
49
  __exportStar(require("./read-message-response-data-dto"), exports);
49
50
  __exportStar(require("./repair-missing-message-keys-dto"), exports);
50
51
  __exportStar(require("./role-dto"), exports);
52
+ __exportStar(require("./send-media-data-dto"), exports);
53
+ __exportStar(require("./send-media-data-response-dto"), exports);
54
+ __exportStar(require("./send-media-dto"), exports);
55
+ __exportStar(require("./send-media-key-dto"), exports);
56
+ __exportStar(require("./send-media-message-dto"), exports);
57
+ __exportStar(require("./send-media-response-dto"), exports);
51
58
  __exportStar(require("./send-template-data-dto"), exports);
52
59
  __exportStar(require("./send-template-dto"), exports);
53
60
  __exportStar(require("./send-text-data-response-dto"), exports);
@@ -55,9 +62,12 @@ __exportStar(require("./send-text-dto"), exports);
55
62
  __exportStar(require("./send-text-response-dto"), exports);
56
63
  __exportStar(require("./session-response-data-dto"), exports);
57
64
  __exportStar(require("./session-response-dto"), exports);
65
+ __exportStar(require("./session-summary-dto"), exports);
66
+ __exportStar(require("./session-summary-list-response-data-dto"), exports);
58
67
  __exportStar(require("./sessions-response-data-dto"), exports);
59
68
  __exportStar(require("./signature-data-dto"), exports);
60
69
  __exportStar(require("./status-dto"), exports);
70
+ __exportStar(require("./sticker-message-dto"), exports);
61
71
  __exportStar(require("./tokens-dto"), exports);
62
72
  __exportStar(require("./unauthorized-dto"), exports);
63
73
  __exportStar(require("./unauthorized-token-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
+ import { SendMediaDto } from './send-media-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface SendMediaDataDto
18
+ */
19
+ export interface SendMediaDataDto {
20
+ /**
21
+ * @type {SendMediaDto}
22
+ * @memberof SendMediaDataDto
23
+ */
24
+ data: SendMediaDto;
25
+ /**
26
+ * @type {number}
27
+ * @memberof SendMediaDataDto
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,25 @@
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 { SendMediaResponseDto } from './send-media-response-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface SendMediaDataResponseDto
18
+ */
19
+ export interface SendMediaDataResponseDto {
20
+ /**
21
+ * @type {SendMediaResponseDto}
22
+ * @memberof SendMediaDataResponseDto
23
+ */
24
+ data: SendMediaResponseDto;
25
+ }
@@ -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,99 @@
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 SendMediaDto
17
+ */
18
+ export interface SendMediaDto {
19
+ /**
20
+ * WhatsApp remote JID. Required when cellphone is not sent.
21
+ *
22
+ * @type {string}
23
+ * @memberof SendMediaDto
24
+ * @example 5491123123456@s.whatsapp.net
25
+ */
26
+ number?: string;
27
+ /**
28
+ * Phone number without WhatsApp suffix. Required when number is not sent.
29
+ *
30
+ * @type {number}
31
+ * @memberof SendMediaDto
32
+ * @example 3814652933
33
+ */
34
+ cellphone?: number;
35
+ /**
36
+ * @type {string}
37
+ * @memberof SendMediaDto
38
+ * @example image
39
+ */
40
+ mediatype: SendMediaDtoMediatypeEnum;
41
+ /**
42
+ * Base64 or data URL string. Data URL prefix is removed before calling the SDK.
43
+ *
44
+ * @type {string}
45
+ * @memberof SendMediaDto
46
+ * @example data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
47
+ */
48
+ media: string;
49
+ /**
50
+ * @type {string}
51
+ * @memberof SendMediaDto
52
+ * @example image/png
53
+ */
54
+ mimetype?: string;
55
+ /**
56
+ * @type {string}
57
+ * @memberof SendMediaDto
58
+ * @example Invoice #1042
59
+ */
60
+ caption?: string;
61
+ /**
62
+ * @type {string}
63
+ * @memberof SendMediaDto
64
+ * @example invoice-1042.pdf
65
+ */
66
+ fileName?: string;
67
+ /**
68
+ * @type {number}
69
+ * @memberof SendMediaDto
70
+ * @example 2500
71
+ */
72
+ delay?: number;
73
+ /**
74
+ * @type {any}
75
+ * @memberof SendMediaDto
76
+ * @example {"key":{"id":"abc"}}
77
+ */
78
+ quoted?: any;
79
+ /**
80
+ * @type {boolean}
81
+ * @memberof SendMediaDto
82
+ * @example false
83
+ */
84
+ everyOne?: boolean;
85
+ /**
86
+ * @type {Array<string>}
87
+ * @memberof SendMediaDto
88
+ * @example ["5491123123000@s.whatsapp.net"]
89
+ */
90
+ mentioned?: Array<string>;
91
+ }
92
+ /**
93
+ * @export
94
+ * @enum {string}
95
+ */
96
+ export declare enum SendMediaDtoMediatypeEnum {
97
+ Image = "image",
98
+ Document = "document"
99
+ }
@@ -0,0 +1,25 @@
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 });
16
+ exports.SendMediaDtoMediatypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var SendMediaDtoMediatypeEnum;
22
+ (function (SendMediaDtoMediatypeEnum) {
23
+ SendMediaDtoMediatypeEnum["Image"] = "image";
24
+ SendMediaDtoMediatypeEnum["Document"] = "document";
25
+ })(SendMediaDtoMediatypeEnum || (exports.SendMediaDtoMediatypeEnum = SendMediaDtoMediatypeEnum = {}));
@@ -0,0 +1,37 @@
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 SendMediaKeyDto
17
+ */
18
+ export interface SendMediaKeyDto {
19
+ /**
20
+ * @type {string}
21
+ * @memberof SendMediaKeyDto
22
+ * @example 3EB0E925FA7E136C585A91A78E6941C937DFA9CB
23
+ */
24
+ id: string;
25
+ /**
26
+ * @type {boolean}
27
+ * @memberof SendMediaKeyDto
28
+ * @example true
29
+ */
30
+ fromMe: boolean;
31
+ /**
32
+ * @type {string}
33
+ * @memberof SendMediaKeyDto
34
+ * @example 549112312456@s.whatsapp.net
35
+ */
36
+ remoteJid: string;
37
+ }
@@ -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 });