@merchi/sdk 1.42.7 → 1.42.9
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.
|
@@ -98,4 +98,5 @@ export var NotificationType;
|
|
|
98
98
|
NotificationType[NotificationType["REFERRER_ASSIGNED"] = 105] = "REFERRER_ASSIGNED";
|
|
99
99
|
NotificationType[NotificationType["REFERRER_JOB_PAID"] = 106] = "REFERRER_JOB_PAID";
|
|
100
100
|
NotificationType[NotificationType["REFERRER_JOB_RECEIVED"] = 107] = "REFERRER_JOB_RECEIVED";
|
|
101
|
+
NotificationType[NotificationType["FULFILLMENT_PARTNER_INVITED"] = 108] = "FULFILLMENT_PARTNER_INVITED";
|
|
101
102
|
})(NotificationType || (NotificationType = {}));
|
package/dist/constants/roles.js
CHANGED
|
@@ -35,6 +35,7 @@ export var Role;
|
|
|
35
35
|
Role[Role["ACCOUNTANT"] = 7] = "ACCOUNTANT";
|
|
36
36
|
Role[Role["THEME_EDITOR"] = 8] = "THEME_EDITOR";
|
|
37
37
|
Role[Role["REFERRER"] = 9] = "REFERRER";
|
|
38
|
+
Role[Role["FULFILLMENT"] = 10] = "FULFILLMENT";
|
|
38
39
|
})(Role || (Role = {}));
|
|
39
40
|
export var DOMAIN_MANAGERS = [Role.ADMIN, Role.MANAGER];
|
|
40
41
|
export var MANAGEMENT_TEAM = __spreadArray(__spreadArray([], __read(DOMAIN_MANAGERS), false), [
|
|
@@ -44,6 +45,7 @@ export var MANAGEMENT_TEAM = __spreadArray(__spreadArray([], __read(DOMAIN_MANAG
|
|
|
44
45
|
], false);
|
|
45
46
|
export var BUSINESS_ACCOUNTS = __spreadArray(__spreadArray([], __read(MANAGEMENT_TEAM), false), [
|
|
46
47
|
Role.SUPPLIER,
|
|
48
|
+
Role.FULFILLMENT,
|
|
47
49
|
Role.THEME_EDITOR,
|
|
48
50
|
Role.REFERRER,
|
|
49
51
|
], false);
|
|
@@ -58,6 +60,7 @@ export var ROLES_RANK = [
|
|
|
58
60
|
Role.SALES,
|
|
59
61
|
Role.DESIGNER,
|
|
60
62
|
Role.SUPPLIER,
|
|
63
|
+
Role.FULFILLMENT,
|
|
61
64
|
Role.MANAGER,
|
|
62
65
|
Role.ADMIN,
|
|
63
66
|
];
|
package/dist/entity.js
CHANGED
|
@@ -691,6 +691,9 @@ var Entity = /** @class */ (function () {
|
|
|
691
691
|
if (options.isTest !== undefined) {
|
|
692
692
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
693
693
|
}
|
|
694
|
+
if (options.invoicePaid !== undefined) {
|
|
695
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
696
|
+
}
|
|
694
697
|
if (options.sourceChannel !== undefined) {
|
|
695
698
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
696
699
|
}
|
package/package.json
CHANGED
package/src/constants/roles.ts
CHANGED
|
@@ -9,6 +9,7 @@ export enum Role {
|
|
|
9
9
|
ACCOUNTANT = 7,
|
|
10
10
|
THEME_EDITOR = 8,
|
|
11
11
|
REFERRER = 9,
|
|
12
|
+
FULFILLMENT = 10,
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const DOMAIN_MANAGERS = [Role.ADMIN, Role.MANAGER];
|
|
@@ -23,6 +24,7 @@ export const MANAGEMENT_TEAM = [
|
|
|
23
24
|
export const BUSINESS_ACCOUNTS = [
|
|
24
25
|
...MANAGEMENT_TEAM,
|
|
25
26
|
Role.SUPPLIER,
|
|
27
|
+
Role.FULFILLMENT,
|
|
26
28
|
Role.THEME_EDITOR,
|
|
27
29
|
Role.REFERRER,
|
|
28
30
|
];
|
|
@@ -39,6 +41,7 @@ export const ROLES_RANK = [
|
|
|
39
41
|
Role.SALES,
|
|
40
42
|
Role.DESIGNER,
|
|
41
43
|
Role.SUPPLIER,
|
|
44
|
+
Role.FULFILLMENT,
|
|
42
45
|
Role.MANAGER,
|
|
43
46
|
Role.ADMIN,
|
|
44
47
|
];
|
package/src/entity.ts
CHANGED
|
@@ -131,6 +131,8 @@ interface ListOptions {
|
|
|
131
131
|
publicOnly?: boolean;
|
|
132
132
|
isDraft?: boolean;
|
|
133
133
|
isTest?: boolean;
|
|
134
|
+
/** true = invoice fully paid, false = invoice issued but not fully paid */
|
|
135
|
+
invoicePaid?: boolean;
|
|
134
136
|
sourceChannel?: string;
|
|
135
137
|
q?: string;
|
|
136
138
|
receiverId?: number;
|
|
@@ -503,6 +505,9 @@ export class Entity {
|
|
|
503
505
|
if (options.isTest !== undefined) {
|
|
504
506
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
505
507
|
}
|
|
508
|
+
if (options.invoicePaid !== undefined) {
|
|
509
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
510
|
+
}
|
|
506
511
|
if (options.sourceChannel !== undefined) {
|
|
507
512
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
508
513
|
}
|