rerobe-js-orm 3.1.0 → 3.1.2

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.
@@ -10,7 +10,9 @@ export default class CustomerNotification extends Base {
10
10
  subject: string;
11
11
  message: string;
12
12
  imgUrl?: string;
13
- recipientMap: RecipientMap[];
13
+ recipientList: RecipientList[];
14
+ isRead?: boolean;
15
+ skipSend?: boolean;
14
16
  constructor(props?: any);
15
17
  toObj(): CustomerNotificationAttributes;
16
18
  }
@@ -14,7 +14,9 @@ class CustomerNotification extends Base_1.default {
14
14
  this.subject = (props === null || props === void 0 ? void 0 : props.subject) || '';
15
15
  this.message = (props === null || props === void 0 ? void 0 : props.message) || '';
16
16
  this.imgUrl = (props === null || props === void 0 ? void 0 : props.imgUrl) || '';
17
- this.recipientMap = (props === null || props === void 0 ? void 0 : props.recipientMap) || [];
17
+ this.recipientList = (props === null || props === void 0 ? void 0 : props.recipientList) || [];
18
+ this.isRead = (props === null || props === void 0 ? void 0 : props.isRead) || false;
19
+ this.skipSend = (props === null || props === void 0 ? void 0 : props.skipSend) || false;
18
20
  }
19
21
  toObj() {
20
22
  return {
@@ -28,7 +30,9 @@ class CustomerNotification extends Base_1.default {
28
30
  subject: this.subject,
29
31
  message: this.message,
30
32
  imgUrl: this.imgUrl,
31
- recipientMap: this.recipientMap,
33
+ recipientList: this.recipientList,
34
+ isRead: this.isRead,
35
+ skipSend: this.skipSend,
32
36
  };
33
37
  }
34
38
  }
@@ -1,6 +1,7 @@
1
- declare type RecipientMap = {
1
+ declare type RecipientList = {
2
2
  channel: string;
3
3
  to: string;
4
+ isMerchant?: boolean;
4
5
  };
5
6
  declare type CustomerNotificationAttributes = {
6
7
  documentId: string;
@@ -13,7 +14,9 @@ declare type CustomerNotificationAttributes = {
13
14
  subject: string;
14
15
  message: string;
15
16
  imgUrl?: string;
16
- recipientMap: RecipientMap[];
17
+ recipientList: RecipientList[];
18
+ isRead?: boolean;
19
+ skipSend?: boolean;
17
20
  };
18
21
  declare type ORDER_CONFIRMATION_TYPE = 'ORDER_CONFIRMATION';
19
22
  declare type ORDER_CANCELLATION_TYPE = 'ORDER_CANCELLATION';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",