@in.pulse-crm/sdk 2.2.0 → 2.2.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.
@@ -1,18 +1,17 @@
1
- export declare enum WppMessageStatus {
2
- PENDING = "PENDING",
3
- SENT = "SENT",
4
- RECEIVED = "RECEIVED",
5
- READ = "READ",
6
- DOWNLOADED = "DOWNLOADED",
7
- ERROR = "ERROR"
8
- }
1
+ export type WppMessageStatus = "PENDING" | "SENT" | "RECEIVED" | "READ" | "DOWNLOADED" | "ERROR";
9
2
  export interface WppMessage {
3
+ instanceName: string;
10
4
  id: string;
11
5
  from: string;
6
+ to: string;
12
7
  type: string;
13
- chatId: number;
14
- quotedId?: string;
8
+ quotedId: string | null;
9
+ chatId: number | null;
15
10
  body: string;
16
11
  timestamp: bigint;
17
12
  status: WppMessageStatus;
13
+ fileId: number | null;
14
+ fileName: string | null;
15
+ fileType: string | null;
16
+ fileSize: bigint | null;
18
17
  }
@@ -1,12 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WppMessageStatus = void 0;
4
- var WppMessageStatus;
5
- (function (WppMessageStatus) {
6
- WppMessageStatus["PENDING"] = "PENDING";
7
- WppMessageStatus["SENT"] = "SENT";
8
- WppMessageStatus["RECEIVED"] = "RECEIVED";
9
- WppMessageStatus["READ"] = "READ";
10
- WppMessageStatus["DOWNLOADED"] = "DOWNLOADED";
11
- WppMessageStatus["ERROR"] = "ERROR";
12
- })(WppMessageStatus || (exports.WppMessageStatus = WppMessageStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "SDKs for abstraction of api consumption of in.pulse-crm application",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,19 +1,24 @@
1
- export enum WppMessageStatus {
2
- PENDING = "PENDING",
3
- SENT = "SENT",
4
- RECEIVED = "RECEIVED",
5
- READ = "READ",
6
- DOWNLOADED = "DOWNLOADED",
7
- ERROR = "ERROR",
8
- }
9
-
1
+ export type WppMessageStatus =
2
+ | "PENDING"
3
+ | "SENT"
4
+ | "RECEIVED"
5
+ | "READ"
6
+ | "DOWNLOADED"
7
+ | "ERROR";
8
+
10
9
  export interface WppMessage {
10
+ instanceName: string;
11
11
  id: string;
12
12
  from: string;
13
+ to: string;
13
14
  type: string;
14
- chatId: number;
15
- quotedId?: string;
15
+ quotedId: string | null;
16
+ chatId: number | null;
16
17
  body: string;
17
18
  timestamp: bigint;
18
19
  status: WppMessageStatus;
20
+ fileId: number | null;
21
+ fileName: string | null;
22
+ fileType: string | null;
23
+ fileSize: bigint | null;
19
24
  }