@merchi/sdk 1.42.8 → 1.42.10
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/dist/constants/notification_types.js +1 -0
- package/dist/constants/roles.js +3 -0
- package/dist/entities/job.js +4 -0
- package/dist/entities/job.test.js +2 -0
- package/package.json +1 -1
- package/src/constants/notification_types.ts +1 -0
- package/src/constants/roles.ts +3 -0
- package/src/entities/job.test.ts +2 -0
- package/src/entities/job.ts +3 -0
|
@@ -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/entities/job.js
CHANGED
|
@@ -422,6 +422,10 @@ var Job = /** @class */ (function (_super) {
|
|
|
422
422
|
Job.property({ type: String }),
|
|
423
423
|
__metadata("design:type", Object)
|
|
424
424
|
], Job.prototype, "sourceReferrer", void 0);
|
|
425
|
+
__decorate([
|
|
426
|
+
Job.property({ type: String }),
|
|
427
|
+
__metadata("design:type", Object)
|
|
428
|
+
], Job.prototype, "checkoutType", void 0);
|
|
425
429
|
__decorate([
|
|
426
430
|
Job.property({ type: User }),
|
|
427
431
|
__metadata("design:type", Object)
|
|
@@ -23,6 +23,7 @@ test('preserves source attribution', function () {
|
|
|
23
23
|
utmMedium: 'cpc',
|
|
24
24
|
utmCampaign: 'wristbands',
|
|
25
25
|
sourceClickId: 'EAIa',
|
|
26
|
+
checkoutType: 'buy_now',
|
|
26
27
|
});
|
|
27
28
|
expect(job.toJson()).toMatchObject({
|
|
28
29
|
sourceChannel: 'google_ads',
|
|
@@ -30,6 +31,7 @@ test('preserves source attribution', function () {
|
|
|
30
31
|
utmMedium: 'cpc',
|
|
31
32
|
utmCampaign: 'wristbands',
|
|
32
33
|
sourceClickId: 'EAIa',
|
|
34
|
+
checkoutType: 'buy_now',
|
|
33
35
|
});
|
|
34
36
|
});
|
|
35
37
|
test('Job deadline serialised to milliseconds in form data', function () {
|
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/entities/job.test.ts
CHANGED
|
@@ -27,6 +27,7 @@ test('preserves source attribution', () => {
|
|
|
27
27
|
utmMedium: 'cpc',
|
|
28
28
|
utmCampaign: 'wristbands',
|
|
29
29
|
sourceClickId: 'EAIa',
|
|
30
|
+
checkoutType: 'buy_now',
|
|
30
31
|
});
|
|
31
32
|
expect(job.toJson()).toMatchObject({
|
|
32
33
|
sourceChannel: 'google_ads',
|
|
@@ -34,6 +35,7 @@ test('preserves source attribution', () => {
|
|
|
34
35
|
utmMedium: 'cpc',
|
|
35
36
|
utmCampaign: 'wristbands',
|
|
36
37
|
sourceClickId: 'EAIa',
|
|
38
|
+
checkoutType: 'buy_now',
|
|
37
39
|
});
|
|
38
40
|
});
|
|
39
41
|
|
package/src/entities/job.ts
CHANGED
|
@@ -285,6 +285,9 @@ export class Job extends Entity {
|
|
|
285
285
|
@Job.property({type: String})
|
|
286
286
|
public sourceReferrer?: string | null;
|
|
287
287
|
|
|
288
|
+
@Job.property({type: String})
|
|
289
|
+
public checkoutType?: string | null;
|
|
290
|
+
|
|
288
291
|
@Job.property({type: User})
|
|
289
292
|
public manager?: User | null;
|
|
290
293
|
|