@libgot/whatsapp-bridge-sdk 1.0.42 → 1.0.44-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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1 -0
  3. package/apis/chats-api.ts +379 -0
  4. package/apis/sessions-api.ts +83 -0
  5. package/apis/tasks-api.ts +141 -0
  6. package/dist/api.d.ts +1 -0
  7. package/dist/api.js +1 -0
  8. package/dist/apis/chats-api.d.ts +149 -0
  9. package/dist/apis/chats-api.js +381 -0
  10. package/dist/apis/sessions-api.d.ts +33 -0
  11. package/dist/apis/sessions-api.js +86 -0
  12. package/dist/apis/tasks-api.d.ts +74 -0
  13. package/dist/apis/tasks-api.js +153 -0
  14. package/dist/models/chat-lifecycle-event-dto.d.ts +65 -0
  15. package/dist/models/chat-lifecycle-event-dto.js +26 -0
  16. package/dist/models/chat-lifecycle-events-response-dto.d.ts +25 -0
  17. package/dist/models/chat-lifecycle-events-response-dto.js +15 -0
  18. package/dist/models/create-chat-lifecycle-event-dto.d.ts +40 -0
  19. package/dist/models/create-chat-lifecycle-event-dto.js +26 -0
  20. package/dist/models/index.d.ts +6 -0
  21. package/dist/models/index.js +6 -0
  22. package/dist/models/repair-missing-message-keys-dto.d.ts +19 -0
  23. package/dist/models/repair-missing-message-keys-dto.js +15 -0
  24. package/dist/models/send-template-data-dto.d.ts +6 -0
  25. package/dist/models/update-agent-dto.d.ts +55 -0
  26. package/dist/models/update-agent-dto.js +15 -0
  27. package/dist/models/update-chat-status-dto.d.ts +43 -0
  28. package/dist/models/update-chat-status-dto.js +15 -0
  29. package/dist/models/whatsapp-chat-dto.d.ts +6 -0
  30. package/models/chat-lifecycle-event-dto.ts +74 -0
  31. package/models/chat-lifecycle-events-response-dto.ts +29 -0
  32. package/models/create-chat-lifecycle-event-dto.ts +47 -0
  33. package/models/index.ts +6 -0
  34. package/models/repair-missing-message-keys-dto.ts +22 -0
  35. package/models/send-template-data-dto.ts +7 -0
  36. package/models/update-agent-dto.ts +64 -0
  37. package/models/update-chat-status-dto.ts +50 -0
  38. package/models/whatsapp-chat-dto.ts +7 -0
  39. package/package.json +2 -2
@@ -0,0 +1,74 @@
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 { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { RepairMissingMessageKeysDto } from '../models';
16
+ /**
17
+ * TasksApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {RepairMissingMessageKeysDto} body
24
+ * @param {string} apikey
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ repairMissingMessageKeys: (body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ };
30
+ /**
31
+ * TasksApi - functional programming interface
32
+ * @export
33
+ */
34
+ export declare const TasksApiFp: (configuration?: Configuration) => {
35
+ /**
36
+ *
37
+ * @param {RepairMissingMessageKeysDto} body
38
+ * @param {string} apikey
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
43
+ };
44
+ /**
45
+ * TasksApi - factory interface
46
+ * @export
47
+ */
48
+ export declare const TasksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
49
+ /**
50
+ *
51
+ * @param {RepairMissingMessageKeysDto} body
52
+ * @param {string} apikey
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
57
+ };
58
+ /**
59
+ * TasksApi - object-oriented interface
60
+ * @export
61
+ * @class TasksApi
62
+ * @extends {BaseAPI}
63
+ */
64
+ export declare class TasksApi extends BaseAPI {
65
+ /**
66
+ *
67
+ * @param {RepairMissingMessageKeysDto} body
68
+ * @param {string} apikey
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ * @memberof TasksApi
72
+ */
73
+ repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
74
+ }
@@ -0,0 +1,153 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TasksApi = exports.TasksApiFactory = exports.TasksApiFp = exports.TasksApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const base_1 = require("../base");
30
+ /**
31
+ * TasksApi - axios parameter creator
32
+ * @export
33
+ */
34
+ const TasksApiAxiosParamCreator = function (configuration) {
35
+ return {
36
+ /**
37
+ *
38
+ * @param {RepairMissingMessageKeysDto} body
39
+ * @param {string} apikey
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ repairMissingMessageKeys: (body_1, apikey_1, ...args_1) => __awaiter(this, [body_1, apikey_1, ...args_1], void 0, function* (body, apikey, options = {}) {
44
+ // verify required parameter 'body' is not null or undefined
45
+ if (body === null || body === undefined) {
46
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling repairMissingMessageKeys.');
47
+ }
48
+ // verify required parameter 'apikey' is not null or undefined
49
+ if (apikey === null || apikey === undefined) {
50
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling repairMissingMessageKeys.');
51
+ }
52
+ const localVarPath = `/api/tasks/repair-missing-message-keys`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
60
+ const localVarHeaderParameter = {};
61
+ const localVarQueryParameter = {};
62
+ if (apikey !== undefined && apikey !== null) {
63
+ localVarHeaderParameter['apikey'] = String(apikey);
64
+ }
65
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
+ const query = new URLSearchParams(localVarUrlObj.search);
67
+ for (const key in localVarQueryParameter) {
68
+ query.set(key, localVarQueryParameter[key]);
69
+ }
70
+ for (const key in options.params) {
71
+ query.set(key, options.params[key]);
72
+ }
73
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
76
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
77
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
78
+ return {
79
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
80
+ options: localVarRequestOptions,
81
+ };
82
+ }),
83
+ };
84
+ };
85
+ exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
86
+ /**
87
+ * TasksApi - functional programming interface
88
+ * @export
89
+ */
90
+ const TasksApiFp = function (configuration) {
91
+ return {
92
+ /**
93
+ *
94
+ * @param {RepairMissingMessageKeysDto} body
95
+ * @param {string} apikey
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ repairMissingMessageKeys(body, apikey, options) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const localVarAxiosArgs = yield (0, exports.TasksApiAxiosParamCreator)(configuration).repairMissingMessageKeys(body, apikey, options);
102
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
103
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
104
+ return axios.request(axiosRequestArgs);
105
+ };
106
+ });
107
+ },
108
+ };
109
+ };
110
+ exports.TasksApiFp = TasksApiFp;
111
+ /**
112
+ * TasksApi - factory interface
113
+ * @export
114
+ */
115
+ const TasksApiFactory = function (configuration, basePath, axios) {
116
+ return {
117
+ /**
118
+ *
119
+ * @param {RepairMissingMessageKeysDto} body
120
+ * @param {string} apikey
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ repairMissingMessageKeys(body, apikey, options) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ return (0, exports.TasksApiFp)(configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(axios, basePath));
127
+ });
128
+ },
129
+ };
130
+ };
131
+ exports.TasksApiFactory = TasksApiFactory;
132
+ /**
133
+ * TasksApi - object-oriented interface
134
+ * @export
135
+ * @class TasksApi
136
+ * @extends {BaseAPI}
137
+ */
138
+ class TasksApi extends base_1.BaseAPI {
139
+ /**
140
+ *
141
+ * @param {RepairMissingMessageKeysDto} body
142
+ * @param {string} apikey
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ * @memberof TasksApi
146
+ */
147
+ repairMissingMessageKeys(body, apikey, options) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ return (0, exports.TasksApiFp)(this.configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(this.axios, this.basePath));
150
+ });
151
+ }
152
+ }
153
+ exports.TasksApi = TasksApi;
@@ -0,0 +1,65 @@
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 ChatLifecycleEventDto
17
+ */
18
+ export interface ChatLifecycleEventDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof ChatLifecycleEventDto
22
+ * @example 1
23
+ */
24
+ id: number;
25
+ /**
26
+ * @type {number}
27
+ * @memberof ChatLifecycleEventDto
28
+ * @example 58
29
+ */
30
+ chatId: number;
31
+ /**
32
+ * @type {string}
33
+ * @memberof ChatLifecycleEventDto
34
+ * @example CHAT_CLOSED
35
+ */
36
+ eventType: ChatLifecycleEventDtoEventTypeEnum;
37
+ /**
38
+ * @type {number}
39
+ * @memberof ChatLifecycleEventDto
40
+ * @example 458
41
+ */
42
+ sessionId: number;
43
+ /**
44
+ * @type {{ [key: string]: any; }}
45
+ * @memberof ChatLifecycleEventDto
46
+ * @example {"from":"CHAT_CLOSED","to":"CHAT_REOPENED","triggeredBy":1203}
47
+ */
48
+ eventPayload: {
49
+ [key: string]: any;
50
+ } | null;
51
+ /**
52
+ * @type {Date}
53
+ * @memberof ChatLifecycleEventDto
54
+ */
55
+ createdAt: Date;
56
+ }
57
+ /**
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ export declare enum ChatLifecycleEventDtoEventTypeEnum {
62
+ OPENED = "CHAT_OPENED",
63
+ CLOSED = "CHAT_CLOSED",
64
+ REOPENED = "CHAT_REOPENED"
65
+ }
@@ -0,0 +1,26 @@
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.ChatLifecycleEventDtoEventTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ChatLifecycleEventDtoEventTypeEnum;
22
+ (function (ChatLifecycleEventDtoEventTypeEnum) {
23
+ ChatLifecycleEventDtoEventTypeEnum["OPENED"] = "CHAT_OPENED";
24
+ ChatLifecycleEventDtoEventTypeEnum["CLOSED"] = "CHAT_CLOSED";
25
+ ChatLifecycleEventDtoEventTypeEnum["REOPENED"] = "CHAT_REOPENED";
26
+ })(ChatLifecycleEventDtoEventTypeEnum || (exports.ChatLifecycleEventDtoEventTypeEnum = ChatLifecycleEventDtoEventTypeEnum = {}));
@@ -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 { ChatLifecycleEventDto } from './chat-lifecycle-event-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface ChatLifecycleEventsResponseDto
18
+ */
19
+ export interface ChatLifecycleEventsResponseDto {
20
+ /**
21
+ * @type {Array<ChatLifecycleEventDto>}
22
+ * @memberof ChatLifecycleEventsResponseDto
23
+ */
24
+ data: Array<ChatLifecycleEventDto>;
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,40 @@
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 CreateChatLifecycleEventDto
17
+ */
18
+ export interface CreateChatLifecycleEventDto {
19
+ /**
20
+ * @type {string}
21
+ * @memberof CreateChatLifecycleEventDto
22
+ * @example CHAT_CLOSED
23
+ */
24
+ eventType: CreateChatLifecycleEventDtoEventTypeEnum;
25
+ /**
26
+ * @type {number}
27
+ * @memberof CreateChatLifecycleEventDto
28
+ * @example 1203
29
+ */
30
+ triggeredBy?: number;
31
+ }
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export declare enum CreateChatLifecycleEventDtoEventTypeEnum {
37
+ OPENED = "CHAT_OPENED",
38
+ CLOSED = "CHAT_CLOSED",
39
+ REOPENED = "CHAT_REOPENED"
40
+ }
@@ -0,0 +1,26 @@
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.CreateChatLifecycleEventDtoEventTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var CreateChatLifecycleEventDtoEventTypeEnum;
22
+ (function (CreateChatLifecycleEventDtoEventTypeEnum) {
23
+ CreateChatLifecycleEventDtoEventTypeEnum["OPENED"] = "CHAT_OPENED";
24
+ CreateChatLifecycleEventDtoEventTypeEnum["CLOSED"] = "CHAT_CLOSED";
25
+ CreateChatLifecycleEventDtoEventTypeEnum["REOPENED"] = "CHAT_REOPENED";
26
+ })(CreateChatLifecycleEventDtoEventTypeEnum || (exports.CreateChatLifecycleEventDtoEventTypeEnum = CreateChatLifecycleEventDtoEventTypeEnum = {}));
@@ -6,9 +6,12 @@ export * from './assign-to-me-dto';
6
6
  export * from './assignment-type-dto';
7
7
  export * from './attributes';
8
8
  export * from './cellphone-validation-dto';
9
+ export * from './chat-lifecycle-event-dto';
10
+ export * from './chat-lifecycle-events-response-dto';
9
11
  export * from './component-template-dto';
10
12
  export * from './contacts-response-dto';
11
13
  export * from './conversation-message-dto';
14
+ export * from './create-chat-lifecycle-event-dto';
12
15
  export * from './data-dto';
13
16
  export * from './data-unauthorized-dto';
14
17
  export * from './document-message-dto';
@@ -25,6 +28,7 @@ export * from './pagination-chat-response-dto';
25
28
  export * from './parameter-template-dto';
26
29
  export * from './read-message-dto';
27
30
  export * from './read-message-response-data-dto';
31
+ export * from './repair-missing-message-keys-dto';
28
32
  export * from './role-dto';
29
33
  export * from './send-template-data-dto';
30
34
  export * from './send-template-dto';
@@ -39,6 +43,8 @@ export * from './status-dto';
39
43
  export * from './tokens-dto';
40
44
  export * from './unauthorized-dto';
41
45
  export * from './unauthorized-token-dto';
46
+ export * from './update-agent-dto';
47
+ export * from './update-chat-status-dto';
42
48
  export * from './user-detail-dto';
43
49
  export * from './user-update-password-dto';
44
50
  export * from './whatsapp-chat-dto';
@@ -22,9 +22,12 @@ __exportStar(require("./assign-to-me-dto"), exports);
22
22
  __exportStar(require("./assignment-type-dto"), exports);
23
23
  __exportStar(require("./attributes"), exports);
24
24
  __exportStar(require("./cellphone-validation-dto"), exports);
25
+ __exportStar(require("./chat-lifecycle-event-dto"), exports);
26
+ __exportStar(require("./chat-lifecycle-events-response-dto"), exports);
25
27
  __exportStar(require("./component-template-dto"), exports);
26
28
  __exportStar(require("./contacts-response-dto"), exports);
27
29
  __exportStar(require("./conversation-message-dto"), exports);
30
+ __exportStar(require("./create-chat-lifecycle-event-dto"), exports);
28
31
  __exportStar(require("./data-dto"), exports);
29
32
  __exportStar(require("./data-unauthorized-dto"), exports);
30
33
  __exportStar(require("./document-message-dto"), exports);
@@ -41,6 +44,7 @@ __exportStar(require("./pagination-chat-response-dto"), exports);
41
44
  __exportStar(require("./parameter-template-dto"), exports);
42
45
  __exportStar(require("./read-message-dto"), exports);
43
46
  __exportStar(require("./read-message-response-data-dto"), exports);
47
+ __exportStar(require("./repair-missing-message-keys-dto"), exports);
44
48
  __exportStar(require("./role-dto"), exports);
45
49
  __exportStar(require("./send-template-data-dto"), exports);
46
50
  __exportStar(require("./send-template-dto"), exports);
@@ -55,6 +59,8 @@ __exportStar(require("./status-dto"), exports);
55
59
  __exportStar(require("./tokens-dto"), exports);
56
60
  __exportStar(require("./unauthorized-dto"), exports);
57
61
  __exportStar(require("./unauthorized-token-dto"), exports);
62
+ __exportStar(require("./update-agent-dto"), exports);
63
+ __exportStar(require("./update-chat-status-dto"), exports);
58
64
  __exportStar(require("./user-detail-dto"), exports);
59
65
  __exportStar(require("./user-update-password-dto"), exports);
60
66
  __exportStar(require("./whatsapp-chat-dto"), exports);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface RepairMissingMessageKeysDto
17
+ */
18
+ export interface RepairMissingMessageKeysDto {
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 });
@@ -52,6 +52,12 @@ export interface SendTemplateDataDto {
52
52
  * @example 3265
53
53
  */
54
54
  senderId?: number;
55
+ /**
56
+ * @type {boolean}
57
+ * @memberof SendTemplateDataDto
58
+ * @example true
59
+ */
60
+ isMessageMarketing?: boolean;
55
61
  }
56
62
  /**
57
63
  * @export
@@ -0,0 +1,55 @@
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 UpdateAgentDto
17
+ */
18
+ export interface UpdateAgentDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof UpdateAgentDto
22
+ * @example 1
23
+ */
24
+ branchId?: number;
25
+ /**
26
+ * @type {boolean}
27
+ * @memberof UpdateAgentDto
28
+ * @example true
29
+ */
30
+ enableAgentPusher?: boolean;
31
+ /**
32
+ * @type {boolean}
33
+ * @memberof UpdateAgentDto
34
+ * @example true
35
+ */
36
+ enableAgentSales?: boolean;
37
+ /**
38
+ * @type {boolean}
39
+ * @memberof UpdateAgentDto
40
+ * @example true
41
+ */
42
+ enableAgentAtc?: boolean;
43
+ /**
44
+ * @type {number}
45
+ * @memberof UpdateAgentDto
46
+ * @example 543814654987
47
+ */
48
+ cellphone?: number;
49
+ /**
50
+ * @type {number}
51
+ * @memberof UpdateAgentDto
52
+ * @example 1354
53
+ */
54
+ leadId?: number;
55
+ }
@@ -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
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface UpdateChatStatusDto
17
+ */
18
+ export interface UpdateChatStatusDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof UpdateChatStatusDto
22
+ * @example 5438132165465
23
+ */
24
+ cellphone: number;
25
+ /**
26
+ * @type {boolean}
27
+ * @memberof UpdateChatStatusDto
28
+ * @example true
29
+ */
30
+ isActive: boolean;
31
+ /**
32
+ * @type {number}
33
+ * @memberof UpdateChatStatusDto
34
+ * @example 1
35
+ */
36
+ branchId: number;
37
+ /**
38
+ * @type {number}
39
+ * @memberof UpdateChatStatusDto
40
+ * @example 1354
41
+ */
42
+ leadId?: number;
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 });
@@ -88,4 +88,10 @@ export interface WhatsappChatDto {
88
88
  * @example 9023
89
89
  */
90
90
  leadId: number;
91
+ /**
92
+ * @type {boolean}
93
+ * @memberof WhatsappChatDto
94
+ * @example false
95
+ */
96
+ isMarketingOptOut: boolean;
91
97
  }