merchi_sdk_js 0.23.2 → 0.24.0

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": "merchi_sdk_js",
3
- "version": "0.23.2",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/discount.js CHANGED
@@ -15,6 +15,7 @@ export function Discount() {
15
15
  addPropertyTo(this, 'isPercentage');
16
16
  addPropertyTo(this, 'groupRestricted');
17
17
  addPropertyTo(this, 'assignedUsers', User);
18
+ addPropertyTo(this, 'referrer', User);
18
19
 
19
20
  this.discountedUnitCost = function (unitPrice) {
20
21
  var unitCost = unitPrice ? unitPrice : 0,
@@ -27,6 +27,8 @@ export function DraftTemplate() {
27
27
  addPropertyTo(this, 'customisationMap');
28
28
  addPropertyTo(this, 'customisationMapSource');
29
29
  addPropertyTo(this, 'customisationMapFileId');
30
+ addPropertyTo(this, 'printAreaMask', MerchiFile);
31
+ addPropertyTo(this, 'bodyColourMask', MerchiFile);
30
32
 
31
33
  this.create = function (options) {
32
34
  var data = serialise(this),
@@ -17,10 +17,12 @@ export const showDomainAvatarArray =
17
17
  'READY_FOR_SHIPPING', 'SIGN_UP_CONFIRMATION', 'CRASH_EVENT',
18
18
  'MANAGER_SUMMARY', 'PASSWORD_RESET', 'MANAGER_REASSIGNED',
19
19
  'EMAIL_RESPONSE', 'SHIPMENT_EXPECTED_DATE_PAST',
20
- 'DOMAIN_INVITATION', 'MOD_SELLER_SUMMARY', 'MOD_SUPPLIER_SUMMARY'];
20
+ 'DOMAIN_INVITATION', 'MOD_SELLER_SUMMARY', 'MOD_SUPPLIER_SUMMARY',
21
+ 'REFERRER_ASSIGNED', 'REFERRER_JOB_RECEIVED'];
21
22
 
22
23
  export const showUserOrDomainAvatarArray =
23
24
  ['JOB_PAID', 'INVOICE_PAID', 'PAYMENT_ACCEPTED',
25
+ 'REFERRER_JOB_PAID',
24
26
  'AUTOMATIC_JOB_RESPONSE', 'JOB_NOTIFICATION', 'JOB_REMINDER',
25
27
  'GENERAL_REMINDER', 'INVOICE_EMAIL_RESPONSE',
26
28
  'AUTOMATIC_INVOICE_RESPONSE', 'JOB_ADDED_TO_SHIPMENT',
@@ -107,6 +109,9 @@ notificationTypes.add("STORE_ASSIGNED_TO_YOU", 70);
107
109
  notificationTypes.add("CLIENT_STORE_CREATED", 71);
108
110
  notificationTypes.add("MOD_SELLER_SUMMARY", 72);
109
111
  notificationTypes.add("MOD_SUPPLIER_SUMMARY", 73);
112
+ notificationTypes.add("REFERRER_ASSIGNED", 105);
113
+ notificationTypes.add("REFERRER_JOB_PAID", 106);
114
+ notificationTypes.add("REFERRER_JOB_RECEIVED", 107);
110
115
 
111
116
  export const notificationTypesKeys = new Dictionary();
112
117
 
package/src/roles.js CHANGED
@@ -11,6 +11,7 @@ roles.add('client', 5);
11
11
  roles.add('manager', 6);
12
12
  roles.add('accountant', 7);
13
13
  roles.add('theme editor', 8);
14
+ roles.add('referrer', 9);
14
15
 
15
16
  export const systemRoles = new Dictionary();
16
17
  systemRoles.add("Component builder", 1);