@peacom/core 0.0.48 → 0.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peacom/core",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "moment": "^2.29.4",
@@ -104,8 +104,9 @@ export interface RawMessage {
104
104
  export interface Message {
105
105
  id: number;
106
106
  publicId: number;
107
+ rawMessage: RawMessage;
107
108
  extraData?: RawMessage;
108
- createdDate: string;
109
+ createdDate?: string;
109
110
  cost?: number;
110
111
  billingStatus?: BILLING_STATUS;
111
112
  }
@@ -1,4 +1,4 @@
1
- import { ApplicationInfo, RawMessage } from "../";
1
+ import { ApplicationInfo, Message } from "../";
2
2
  import { MESSAGE_STATUS } from "../";
3
3
  import { JobsOptions } from "bullmq";
4
4
  import { Conversation } from "../conversation";
@@ -19,11 +19,7 @@ export interface QueueMessageStatus {
19
19
  }
20
20
  export interface QueueOutgoingMessage {
21
21
  receiverId: string;
22
- messages: Array<{
23
- rawMessage: RawMessage;
24
- publicId?: string;
25
- id?: number;
26
- }>;
22
+ messages: Array<Message>;
27
23
  applicationInfo: ApplicationInfo;
28
24
  contact: unknown;
29
25
  jobOpt?: JobsOptions;