@libgot/whatsapp-bridge-sdk 1.0.4 → 1.0.6

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/dist/index.js CHANGED
@@ -14,13 +14,17 @@
14
14
  */
15
15
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
16
  if (k2 === undefined) k2 = k;
17
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
18
22
  }) : (function(o, m, k, k2) {
19
23
  if (k2 === undefined) k2 = k;
20
24
  o[k2] = m[k];
21
25
  }));
22
26
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
28
  };
25
29
  Object.defineProperty(exports, "__esModule", { value: true });
26
30
  __exportStar(require("./api"), exports);
@@ -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 { WhatsappChatDto } from './whatsapp-chat-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface ChatsResponseDTO
18
+ */
19
+ export interface ChatsResponseDTO {
20
+ /**
21
+ * @type {Array<WhatsappChatDto>}
22
+ * @memberof ChatsResponseDTO
23
+ */
24
+ data: Array<WhatsappChatDto>;
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 });
@@ -3,6 +3,7 @@ export * from './api-response-auth-dto';
3
3
  export * from './api-response-user-dto';
4
4
  export * from './attributes';
5
5
  export * from './auth-dto';
6
+ export * from './chats-response-dto';
6
7
  export * from './contacts-response-dto';
7
8
  export * from './conversation-message-dto';
8
9
  export * from './data-dto';
@@ -17,5 +18,6 @@ export * from './unauthorized-dto';
17
18
  export * from './unauthorized-token-dto';
18
19
  export * from './user-detail-dto';
19
20
  export * from './user-update-password-dto';
21
+ export * from './whatsapp-chat-dto';
20
22
  export * from './whatsapp-contact-dto';
21
23
  export * from './whatsapp-message-dto';
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
8
12
  }));
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./api-request-user-update-password-dto"), exports);
@@ -15,6 +19,7 @@ __exportStar(require("./api-response-auth-dto"), exports);
15
19
  __exportStar(require("./api-response-user-dto"), exports);
16
20
  __exportStar(require("./attributes"), exports);
17
21
  __exportStar(require("./auth-dto"), exports);
22
+ __exportStar(require("./chats-response-dto"), exports);
18
23
  __exportStar(require("./contacts-response-dto"), exports);
19
24
  __exportStar(require("./conversation-message-dto"), exports);
20
25
  __exportStar(require("./data-dto"), exports);
@@ -29,5 +34,6 @@ __exportStar(require("./unauthorized-dto"), exports);
29
34
  __exportStar(require("./unauthorized-token-dto"), exports);
30
35
  __exportStar(require("./user-detail-dto"), exports);
31
36
  __exportStar(require("./user-update-password-dto"), exports);
37
+ __exportStar(require("./whatsapp-chat-dto"), exports);
32
38
  __exportStar(require("./whatsapp-contact-dto"), exports);
33
39
  __exportStar(require("./whatsapp-message-dto"), exports);
@@ -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
+ import { WhatsappContactDto } from './whatsapp-contact-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface WhatsappChatDto
18
+ */
19
+ export interface WhatsappChatDto {
20
+ /**
21
+ * @type {number}
22
+ * @memberof WhatsappChatDto
23
+ * @example 23
24
+ */
25
+ id: number;
26
+ /**
27
+ * @type {string}
28
+ * @memberof WhatsappChatDto
29
+ * @example cm55pog2s0042cbkmvehdw2ig
30
+ */
31
+ externalChatId: string;
32
+ /**
33
+ * @type {string}
34
+ * @memberof WhatsappChatDto
35
+ * @example 15551578788@s.whatsapp.net
36
+ */
37
+ remoteJid: string;
38
+ /**
39
+ * @type {string}
40
+ * @memberof WhatsappChatDto
41
+ * @example Jhon Doe
42
+ */
43
+ name: string;
44
+ /**
45
+ * @type {number}
46
+ * @memberof WhatsappChatDto
47
+ * @example 3
48
+ */
49
+ unreadMessages: number;
50
+ /**
51
+ * @type {WhatsappContactDto}
52
+ * @memberof WhatsappChatDto
53
+ */
54
+ whatsappContact: WhatsappContactDto;
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 });
@@ -26,7 +26,7 @@ export interface WhatsappMessageDto {
26
26
  /**
27
27
  * @type {string}
28
28
  * @memberof WhatsappMessageDto
29
- * @example cm5o4kbjf001o8gppboeyg0x1o
29
+ * @example cm5o4kbjf001o8gppboeyg0xo
30
30
  */
31
31
  externalMessageId: string;
32
32
  /**
@@ -0,0 +1,29 @@
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 { WhatsappChatDto } from './whatsapp-chat-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface ChatsResponseDTO
21
+ */
22
+ export interface ChatsResponseDTO {
23
+
24
+ /**
25
+ * @type {Array<WhatsappChatDto>}
26
+ * @memberof ChatsResponseDTO
27
+ */
28
+ data: Array<WhatsappChatDto>;
29
+ }
package/models/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './api-response-auth-dto';
3
3
  export * from './api-response-user-dto';
4
4
  export * from './attributes';
5
5
  export * from './auth-dto';
6
+ export * from './chats-response-dto';
6
7
  export * from './contacts-response-dto';
7
8
  export * from './conversation-message-dto';
8
9
  export * from './data-dto';
@@ -17,5 +18,6 @@ export * from './unauthorized-dto';
17
18
  export * from './unauthorized-token-dto';
18
19
  export * from './user-detail-dto';
19
20
  export * from './user-update-password-dto';
21
+ export * from './whatsapp-chat-dto';
20
22
  export * from './whatsapp-contact-dto';
21
23
  export * from './whatsapp-message-dto';
@@ -0,0 +1,64 @@
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 { WhatsappContactDto } from './whatsapp-contact-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface WhatsappChatDto
21
+ */
22
+ export interface WhatsappChatDto {
23
+
24
+ /**
25
+ * @type {number}
26
+ * @memberof WhatsappChatDto
27
+ * @example 23
28
+ */
29
+ id: number;
30
+
31
+ /**
32
+ * @type {string}
33
+ * @memberof WhatsappChatDto
34
+ * @example cm55pog2s0042cbkmvehdw2ig
35
+ */
36
+ externalChatId: string;
37
+
38
+ /**
39
+ * @type {string}
40
+ * @memberof WhatsappChatDto
41
+ * @example 15551578788@s.whatsapp.net
42
+ */
43
+ remoteJid: string;
44
+
45
+ /**
46
+ * @type {string}
47
+ * @memberof WhatsappChatDto
48
+ * @example Jhon Doe
49
+ */
50
+ name: string;
51
+
52
+ /**
53
+ * @type {number}
54
+ * @memberof WhatsappChatDto
55
+ * @example 3
56
+ */
57
+ unreadMessages: number;
58
+
59
+ /**
60
+ * @type {WhatsappContactDto}
61
+ * @memberof WhatsappChatDto
62
+ */
63
+ whatsappContact: WhatsappContactDto;
64
+ }
@@ -31,7 +31,7 @@ export interface WhatsappMessageDto {
31
31
  /**
32
32
  * @type {string}
33
33
  * @memberof WhatsappMessageDto
34
- * @example cm5o4kbjf001o8gppboeyg0x1o
34
+ * @example cm5o4kbjf001o8gppboeyg0xo
35
35
  */
36
36
  externalMessageId: string;
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -17,11 +17,11 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "dependencies": {
20
- "axios": "^0.21.1"
20
+ "axios": "^1.7.9"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^12.11.5",
24
- "typescript": "^3.6.4"
24
+ "typescript": "^5.7.3"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",