@libgot/whatsapp-bridge-sdk 1.0.40-rc.3 → 1.0.42-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.40-rc.3
1
+ ## @1.0.42-rc.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @libgot/whatsapp-bridge-sdk@1.0.40-rc.3 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.42-rc.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -28,20 +28,15 @@ export const CellphoneApiAxiosParamCreator = function (configuration?: Configura
28
28
  /**
29
29
  *
30
30
  * @param {CellphoneValidationDto} body
31
- * @param {string} authorization Custom header
32
31
  * @param {string} apikey
33
32
  * @param {*} [options] Override http request option.
34
33
  * @throws {RequiredError}
35
34
  */
36
- validate: async (body: CellphoneValidationDto, authorization: string, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35
+ validate: async (body: CellphoneValidationDto, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
36
  // verify required parameter 'body' is not null or undefined
38
37
  if (body === null || body === undefined) {
39
38
  throw new RequiredError('body','Required parameter body was null or undefined when calling validate.');
40
39
  }
41
- // verify required parameter 'authorization' is not null or undefined
42
- if (authorization === null || authorization === undefined) {
43
- throw new RequiredError('authorization','Required parameter authorization was null or undefined when calling validate.');
44
- }
45
40
  // verify required parameter 'apikey' is not null or undefined
46
41
  if (apikey === null || apikey === undefined) {
47
42
  throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling validate.');
@@ -57,10 +52,6 @@ export const CellphoneApiAxiosParamCreator = function (configuration?: Configura
57
52
  const localVarHeaderParameter = {} as any;
58
53
  const localVarQueryParameter = {} as any;
59
54
 
60
- if (authorization !== undefined && authorization !== null) {
61
- localVarHeaderParameter['Authorization'] = String(authorization);
62
- }
63
-
64
55
  if (apikey !== undefined && apikey !== null) {
65
56
  localVarHeaderParameter['apikey'] = String(apikey);
66
57
  }
@@ -97,13 +88,12 @@ export const CellphoneApiFp = function(configuration?: Configuration) {
97
88
  /**
98
89
  *
99
90
  * @param {CellphoneValidationDto} body
100
- * @param {string} authorization Custom header
101
91
  * @param {string} apikey
102
92
  * @param {*} [options] Override http request option.
103
93
  * @throws {RequiredError}
104
94
  */
105
- async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
106
- const localVarAxiosArgs = await CellphoneApiAxiosParamCreator(configuration).validate(body, authorization, apikey, options);
95
+ async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
96
+ const localVarAxiosArgs = await CellphoneApiAxiosParamCreator(configuration).validate(body, apikey, options);
107
97
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
108
98
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
109
99
  return axios.request(axiosRequestArgs);
@@ -121,13 +111,12 @@ export const CellphoneApiFactory = function (configuration?: Configuration, base
121
111
  /**
122
112
  *
123
113
  * @param {CellphoneValidationDto} body
124
- * @param {string} authorization Custom header
125
114
  * @param {string} apikey
126
115
  * @param {*} [options] Override http request option.
127
116
  * @throws {RequiredError}
128
117
  */
129
- async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
130
- return CellphoneApiFp(configuration).validate(body, authorization, apikey, options).then((request) => request(axios, basePath));
118
+ async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
119
+ return CellphoneApiFp(configuration).validate(body, apikey, options).then((request) => request(axios, basePath));
131
120
  },
132
121
  };
133
122
  };
@@ -142,13 +131,12 @@ export class CellphoneApi extends BaseAPI {
142
131
  /**
143
132
  *
144
133
  * @param {CellphoneValidationDto} body
145
- * @param {string} authorization Custom header
146
134
  * @param {string} apikey
147
135
  * @param {*} [options] Override http request option.
148
136
  * @throws {RequiredError}
149
137
  * @memberof CellphoneApi
150
138
  */
151
- public async validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
152
- return CellphoneApiFp(this.configuration).validate(body, authorization, apikey, options).then((request) => request(this.axios, this.basePath));
139
+ public async validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
140
+ return CellphoneApiFp(this.configuration).validate(body, apikey, options).then((request) => request(this.axios, this.basePath));
153
141
  }
154
142
  }
@@ -21,12 +21,11 @@ export declare const CellphoneApiAxiosParamCreator: (configuration?: Configurati
21
21
  /**
22
22
  *
23
23
  * @param {CellphoneValidationDto} body
24
- * @param {string} authorization Custom header
25
24
  * @param {string} apikey
26
25
  * @param {*} [options] Override http request option.
27
26
  * @throws {RequiredError}
28
27
  */
29
- validate: (body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ validate: (body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
29
  };
31
30
  /**
32
31
  * CellphoneApi - functional programming interface
@@ -36,12 +35,11 @@ export declare const CellphoneApiFp: (configuration?: Configuration) => {
36
35
  /**
37
36
  *
38
37
  * @param {CellphoneValidationDto} body
39
- * @param {string} authorization Custom header
40
38
  * @param {string} apikey
41
39
  * @param {*} [options] Override http request option.
42
40
  * @throws {RequiredError}
43
41
  */
44
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
42
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
45
43
  };
46
44
  /**
47
45
  * CellphoneApi - factory interface
@@ -51,12 +49,11 @@ export declare const CellphoneApiFactory: (configuration?: Configuration, basePa
51
49
  /**
52
50
  *
53
51
  * @param {CellphoneValidationDto} body
54
- * @param {string} authorization Custom header
55
52
  * @param {string} apikey
56
53
  * @param {*} [options] Override http request option.
57
54
  * @throws {RequiredError}
58
55
  */
59
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
56
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
60
57
  };
61
58
  /**
62
59
  * CellphoneApi - object-oriented interface
@@ -68,11 +65,10 @@ export declare class CellphoneApi extends BaseAPI {
68
65
  /**
69
66
  *
70
67
  * @param {CellphoneValidationDto} body
71
- * @param {string} authorization Custom header
72
68
  * @param {string} apikey
73
69
  * @param {*} [options] Override http request option.
74
70
  * @throws {RequiredError}
75
71
  * @memberof CellphoneApi
76
72
  */
77
- validate(body: CellphoneValidationDto, authorization: string, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
73
+ validate(body: CellphoneValidationDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
78
74
  }
@@ -36,20 +36,15 @@ const CellphoneApiAxiosParamCreator = function (configuration) {
36
36
  /**
37
37
  *
38
38
  * @param {CellphoneValidationDto} body
39
- * @param {string} authorization Custom header
40
39
  * @param {string} apikey
41
40
  * @param {*} [options] Override http request option.
42
41
  * @throws {RequiredError}
43
42
  */
44
- validate: (body_1, authorization_1, apikey_1, ...args_1) => __awaiter(this, [body_1, authorization_1, apikey_1, ...args_1], void 0, function* (body, authorization, apikey, options = {}) {
43
+ validate: (body_1, apikey_1, ...args_1) => __awaiter(this, [body_1, apikey_1, ...args_1], void 0, function* (body, apikey, options = {}) {
45
44
  // verify required parameter 'body' is not null or undefined
46
45
  if (body === null || body === undefined) {
47
46
  throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling validate.');
48
47
  }
49
- // verify required parameter 'authorization' is not null or undefined
50
- if (authorization === null || authorization === undefined) {
51
- throw new base_1.RequiredError('authorization', 'Required parameter authorization was null or undefined when calling validate.');
52
- }
53
48
  // verify required parameter 'apikey' is not null or undefined
54
49
  if (apikey === null || apikey === undefined) {
55
50
  throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling validate.');
@@ -64,9 +59,6 @@ const CellphoneApiAxiosParamCreator = function (configuration) {
64
59
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
65
60
  const localVarHeaderParameter = {};
66
61
  const localVarQueryParameter = {};
67
- if (authorization !== undefined && authorization !== null) {
68
- localVarHeaderParameter['Authorization'] = String(authorization);
69
- }
70
62
  if (apikey !== undefined && apikey !== null) {
71
63
  localVarHeaderParameter['apikey'] = String(apikey);
72
64
  }
@@ -100,14 +92,13 @@ const CellphoneApiFp = function (configuration) {
100
92
  /**
101
93
  *
102
94
  * @param {CellphoneValidationDto} body
103
- * @param {string} authorization Custom header
104
95
  * @param {string} apikey
105
96
  * @param {*} [options] Override http request option.
106
97
  * @throws {RequiredError}
107
98
  */
108
- validate(body, authorization, apikey, options) {
99
+ validate(body, apikey, options) {
109
100
  return __awaiter(this, void 0, void 0, function* () {
110
- const localVarAxiosArgs = yield (0, exports.CellphoneApiAxiosParamCreator)(configuration).validate(body, authorization, apikey, options);
101
+ const localVarAxiosArgs = yield (0, exports.CellphoneApiAxiosParamCreator)(configuration).validate(body, apikey, options);
111
102
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
112
103
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
113
104
  return axios.request(axiosRequestArgs);
@@ -126,14 +117,13 @@ const CellphoneApiFactory = function (configuration, basePath, axios) {
126
117
  /**
127
118
  *
128
119
  * @param {CellphoneValidationDto} body
129
- * @param {string} authorization Custom header
130
120
  * @param {string} apikey
131
121
  * @param {*} [options] Override http request option.
132
122
  * @throws {RequiredError}
133
123
  */
134
- validate(body, authorization, apikey, options) {
124
+ validate(body, apikey, options) {
135
125
  return __awaiter(this, void 0, void 0, function* () {
136
- return (0, exports.CellphoneApiFp)(configuration).validate(body, authorization, apikey, options).then((request) => request(axios, basePath));
126
+ return (0, exports.CellphoneApiFp)(configuration).validate(body, apikey, options).then((request) => request(axios, basePath));
137
127
  });
138
128
  },
139
129
  };
@@ -149,15 +139,14 @@ class CellphoneApi extends base_1.BaseAPI {
149
139
  /**
150
140
  *
151
141
  * @param {CellphoneValidationDto} body
152
- * @param {string} authorization Custom header
153
142
  * @param {string} apikey
154
143
  * @param {*} [options] Override http request option.
155
144
  * @throws {RequiredError}
156
145
  * @memberof CellphoneApi
157
146
  */
158
- validate(body, authorization, apikey, options) {
147
+ validate(body, apikey, options) {
159
148
  return __awaiter(this, void 0, void 0, function* () {
160
- return (0, exports.CellphoneApiFp)(this.configuration).validate(body, authorization, apikey, options).then((request) => request(this.axios, this.basePath));
149
+ return (0, exports.CellphoneApiFp)(this.configuration).validate(body, apikey, options).then((request) => request(this.axios, this.basePath));
161
150
  });
162
151
  }
163
152
  }
@@ -20,6 +20,7 @@ export * from './inline-response503-info';
20
20
  export * from './key-dto';
21
21
  export * from './mark-chat-unread-dto';
22
22
  export * from './message-response-dto';
23
+ export * from './origin-type-dto';
23
24
  export * from './pagination-chat-response-dto';
24
25
  export * from './parameter-template-dto';
25
26
  export * from './read-message-dto';
@@ -36,6 +36,7 @@ __exportStar(require("./inline-response503-info"), exports);
36
36
  __exportStar(require("./key-dto"), exports);
37
37
  __exportStar(require("./mark-chat-unread-dto"), exports);
38
38
  __exportStar(require("./message-response-dto"), exports);
39
+ __exportStar(require("./origin-type-dto"), exports);
39
40
  __exportStar(require("./pagination-chat-response-dto"), exports);
40
41
  __exportStar(require("./parameter-template-dto"), exports);
41
42
  __exportStar(require("./read-message-dto"), exports);
@@ -0,0 +1,45 @@
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 OriginTypeDto
17
+ */
18
+ export interface OriginTypeDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof OriginTypeDto
22
+ * @example 131048
23
+ */
24
+ id: number;
25
+ /**
26
+ * @type {string}
27
+ * @memberof OriginTypeDto
28
+ * @example INBOUND
29
+ */
30
+ originType: OriginTypeDtoOriginTypeEnum;
31
+ }
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export declare enum OriginTypeDtoOriginTypeEnum {
37
+ INBOUND = "INBOUND",
38
+ SESSION = "SESSION",
39
+ OPERATOR = "OPERATOR",
40
+ AUTOMATIC = "AUTOMATIC",
41
+ MASSIVE = "MASSIVE",
42
+ AUTH = "AUTH",
43
+ N8N = "N8N",
44
+ PUSHERAGENT = "PUSHER_AGENT"
45
+ }
@@ -0,0 +1,31 @@
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.OriginTypeDtoOriginTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var OriginTypeDtoOriginTypeEnum;
22
+ (function (OriginTypeDtoOriginTypeEnum) {
23
+ OriginTypeDtoOriginTypeEnum["INBOUND"] = "INBOUND";
24
+ OriginTypeDtoOriginTypeEnum["SESSION"] = "SESSION";
25
+ OriginTypeDtoOriginTypeEnum["OPERATOR"] = "OPERATOR";
26
+ OriginTypeDtoOriginTypeEnum["AUTOMATIC"] = "AUTOMATIC";
27
+ OriginTypeDtoOriginTypeEnum["MASSIVE"] = "MASSIVE";
28
+ OriginTypeDtoOriginTypeEnum["AUTH"] = "AUTH";
29
+ OriginTypeDtoOriginTypeEnum["N8N"] = "N8N";
30
+ OriginTypeDtoOriginTypeEnum["PUSHERAGENT"] = "PUSHER_AGENT";
31
+ })(OriginTypeDtoOriginTypeEnum || (exports.OriginTypeDtoOriginTypeEnum = OriginTypeDtoOriginTypeEnum = {}));
@@ -46,6 +46,12 @@ export interface SendTemplateDataDto {
46
46
  * @example INBOUND
47
47
  */
48
48
  origin?: SendTemplateDataDtoOriginEnum;
49
+ /**
50
+ * @type {number}
51
+ * @memberof SendTemplateDataDto
52
+ * @example 3265
53
+ */
54
+ senderId?: number;
49
55
  }
50
56
  /**
51
57
  * @export
@@ -57,5 +63,7 @@ export declare enum SendTemplateDataDtoOriginEnum {
57
63
  OPERATOR = "OPERATOR",
58
64
  AUTOMATIC = "AUTOMATIC",
59
65
  MASSIVE = "MASSIVE",
60
- AUTH = "AUTH"
66
+ AUTH = "AUTH",
67
+ N8N = "N8N",
68
+ PUSHERAGENT = "PUSHER_AGENT"
61
69
  }
@@ -26,4 +26,6 @@ var SendTemplateDataDtoOriginEnum;
26
26
  SendTemplateDataDtoOriginEnum["AUTOMATIC"] = "AUTOMATIC";
27
27
  SendTemplateDataDtoOriginEnum["MASSIVE"] = "MASSIVE";
28
28
  SendTemplateDataDtoOriginEnum["AUTH"] = "AUTH";
29
+ SendTemplateDataDtoOriginEnum["N8N"] = "N8N";
30
+ SendTemplateDataDtoOriginEnum["PUSHERAGENT"] = "PUSHER_AGENT";
29
31
  })(SendTemplateDataDtoOriginEnum || (exports.SendTemplateDataDtoOriginEnum = SendTemplateDataDtoOriginEnum = {}));
@@ -28,6 +28,18 @@ export interface SendTextDto {
28
28
  * @example 12
29
29
  */
30
30
  contactId?: number;
31
+ /**
32
+ * @type {number}
33
+ * @memberof SendTextDto
34
+ * @example 1500
35
+ */
36
+ leadId?: number;
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTextDto
40
+ * @example 3265
41
+ */
42
+ senderId?: number;
31
43
  /**
32
44
  * @type {string}
33
45
  * @memberof SendTextDto
@@ -57,5 +69,7 @@ export declare enum SendTextDtoOriginEnum {
57
69
  OPERATOR = "OPERATOR",
58
70
  AUTOMATIC = "AUTOMATIC",
59
71
  MASSIVE = "MASSIVE",
60
- AUTH = "AUTH"
72
+ AUTH = "AUTH",
73
+ N8N = "N8N",
74
+ PUSHERAGENT = "PUSHER_AGENT"
61
75
  }
@@ -26,4 +26,6 @@ var SendTextDtoOriginEnum;
26
26
  SendTextDtoOriginEnum["AUTOMATIC"] = "AUTOMATIC";
27
27
  SendTextDtoOriginEnum["MASSIVE"] = "MASSIVE";
28
28
  SendTextDtoOriginEnum["AUTH"] = "AUTH";
29
+ SendTextDtoOriginEnum["N8N"] = "N8N";
30
+ SendTextDtoOriginEnum["PUSHERAGENT"] = "PUSHER_AGENT";
29
31
  })(SendTextDtoOriginEnum || (exports.SendTextDtoOriginEnum = SendTextDtoOriginEnum = {}));
@@ -12,6 +12,7 @@
12
12
  import { ConversationMessageDto } from './conversation-message-dto';
13
13
  import { DocumentMessageDto } from './document-message-dto';
14
14
  import { ImageMessageDto } from './image-message-dto';
15
+ import { OriginTypeDto } from './origin-type-dto';
15
16
  import { WhatsappMessageError } from './whatsapp-message-error';
16
17
  import { WhatsappMessageFeedback } from './whatsapp-message-feedback';
17
18
  import { WhatsappMessageKeyDto } from './whatsapp-message-key-dto';
@@ -40,6 +41,12 @@ export interface WhatsappMessageDto {
40
41
  * @example 1736452031
41
42
  */
42
43
  messageTimestamp: number;
44
+ /**
45
+ * @type {number}
46
+ * @memberof WhatsappMessageDto
47
+ * @example 3265
48
+ */
49
+ senderId?: number;
43
50
  /**
44
51
  * @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
45
52
  * @memberof WhatsappMessageDto
@@ -60,4 +67,9 @@ export interface WhatsappMessageDto {
60
67
  * @memberof WhatsappMessageDto
61
68
  */
62
69
  error: WhatsappMessageError;
70
+ /**
71
+ * @type {OriginTypeDto}
72
+ * @memberof WhatsappMessageDto
73
+ */
74
+ originType?: OriginTypeDto;
63
75
  }
package/models/index.ts CHANGED
@@ -20,6 +20,7 @@ export * from './inline-response503-info';
20
20
  export * from './key-dto';
21
21
  export * from './mark-chat-unread-dto';
22
22
  export * from './message-response-dto';
23
+ export * from './origin-type-dto';
23
24
  export * from './pagination-chat-response-dto';
24
25
  export * from './parameter-template-dto';
25
26
  export * from './read-message-dto';
@@ -0,0 +1,52 @@
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 OriginTypeDto
20
+ */
21
+ export interface OriginTypeDto {
22
+
23
+ /**
24
+ * @type {number}
25
+ * @memberof OriginTypeDto
26
+ * @example 131048
27
+ */
28
+ id: number;
29
+
30
+ /**
31
+ * @type {string}
32
+ * @memberof OriginTypeDto
33
+ * @example INBOUND
34
+ */
35
+ originType: OriginTypeDtoOriginTypeEnum;
36
+ }
37
+
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export enum OriginTypeDtoOriginTypeEnum {
43
+ INBOUND = 'INBOUND',
44
+ SESSION = 'SESSION',
45
+ OPERATOR = 'OPERATOR',
46
+ AUTOMATIC = 'AUTOMATIC',
47
+ MASSIVE = 'MASSIVE',
48
+ AUTH = 'AUTH',
49
+ N8N = 'N8N',
50
+ PUSHERAGENT = 'PUSHER_AGENT'
51
+ }
52
+
@@ -54,6 +54,13 @@ export interface SendTemplateDataDto {
54
54
  * @example INBOUND
55
55
  */
56
56
  origin?: SendTemplateDataDtoOriginEnum;
57
+
58
+ /**
59
+ * @type {number}
60
+ * @memberof SendTemplateDataDto
61
+ * @example 3265
62
+ */
63
+ senderId?: number;
57
64
  }
58
65
 
59
66
  /**
@@ -66,6 +73,8 @@ export enum SendTemplateDataDtoOriginEnum {
66
73
  OPERATOR = 'OPERATOR',
67
74
  AUTOMATIC = 'AUTOMATIC',
68
75
  MASSIVE = 'MASSIVE',
69
- AUTH = 'AUTH'
76
+ AUTH = 'AUTH',
77
+ N8N = 'N8N',
78
+ PUSHERAGENT = 'PUSHER_AGENT'
70
79
  }
71
80
 
@@ -34,6 +34,20 @@ export interface SendTextDto {
34
34
  */
35
35
  contactId?: number;
36
36
 
37
+ /**
38
+ * @type {number}
39
+ * @memberof SendTextDto
40
+ * @example 1500
41
+ */
42
+ leadId?: number;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof SendTextDto
47
+ * @example 3265
48
+ */
49
+ senderId?: number;
50
+
37
51
  /**
38
52
  * @type {string}
39
53
  * @memberof SendTextDto
@@ -66,6 +80,8 @@ export enum SendTextDtoOriginEnum {
66
80
  OPERATOR = 'OPERATOR',
67
81
  AUTOMATIC = 'AUTOMATIC',
68
82
  MASSIVE = 'MASSIVE',
69
- AUTH = 'AUTH'
83
+ AUTH = 'AUTH',
84
+ N8N = 'N8N',
85
+ PUSHERAGENT = 'PUSHER_AGENT'
70
86
  }
71
87
 
@@ -15,6 +15,7 @@
15
15
  import { ConversationMessageDto } from './conversation-message-dto';
16
16
  import { DocumentMessageDto } from './document-message-dto';
17
17
  import { ImageMessageDto } from './image-message-dto';
18
+ import { OriginTypeDto } from './origin-type-dto';
18
19
  import { WhatsappMessageError } from './whatsapp-message-error';
19
20
  import { WhatsappMessageFeedback } from './whatsapp-message-feedback';
20
21
  import { WhatsappMessageKeyDto } from './whatsapp-message-key-dto';
@@ -47,6 +48,13 @@ export interface WhatsappMessageDto {
47
48
  */
48
49
  messageTimestamp: number;
49
50
 
51
+ /**
52
+ * @type {number}
53
+ * @memberof WhatsappMessageDto
54
+ * @example 3265
55
+ */
56
+ senderId?: number;
57
+
50
58
  /**
51
59
  * @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
52
60
  * @memberof WhatsappMessageDto
@@ -70,4 +78,10 @@ export interface WhatsappMessageDto {
70
78
  * @memberof WhatsappMessageDto
71
79
  */
72
80
  error: WhatsappMessageError;
81
+
82
+ /**
83
+ * @type {OriginTypeDto}
84
+ * @memberof WhatsappMessageDto
85
+ */
86
+ originType?: OriginTypeDto;
73
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.40-rc.3",
3
+ "version": "1.0.42-rc.1",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
package/publish.sh CHANGED
@@ -1 +1,2 @@
1
- npm publish --access public "$@"
1
+ npm publish --access public "$@"
2
+ #npm publish --access public "$@" --tag next