@telos-dev-team/dealernode-permissions 1.1.33 → 1.1.34
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/permissions.d.ts +20 -0
- package/dist/permissions.js +20 -0
- package/package.json +1 -1
- package/src/permissions.ts +20 -0
package/dist/permissions.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ export declare const PERMISSIONS: {
|
|
|
9
9
|
readonly VIEW: "user.operations.view";
|
|
10
10
|
readonly CREATE: "user.operations.create";
|
|
11
11
|
};
|
|
12
|
+
readonly FILES: {
|
|
13
|
+
readonly UPLOAD: "user.files.upload";
|
|
14
|
+
readonly DOWNLOAD: "user.files.download";
|
|
15
|
+
readonly DELETE: "user.files.delete";
|
|
16
|
+
};
|
|
12
17
|
readonly DEALER: {
|
|
13
18
|
readonly OPERATIONS: {
|
|
14
19
|
readonly VIEW: "user.dealer.operations.view";
|
|
@@ -96,6 +101,11 @@ export declare const PERMISSIONS: {
|
|
|
96
101
|
readonly UPDATE: "dealer.operations.update";
|
|
97
102
|
readonly DELETE: "dealer.operations.delete";
|
|
98
103
|
};
|
|
104
|
+
readonly FILES: {
|
|
105
|
+
readonly UPLOAD: "dealer.files.upload";
|
|
106
|
+
readonly DOWNLOAD: "dealer.files.download";
|
|
107
|
+
readonly DELETE: "dealer.files.delete";
|
|
108
|
+
};
|
|
99
109
|
readonly ONBOARDING: {
|
|
100
110
|
readonly SUBMIT: "dealer.onboarding.submit";
|
|
101
111
|
readonly APPROVE: "dealer.onboarding.approve";
|
|
@@ -380,6 +390,11 @@ export declare const PERMISSIONS: {
|
|
|
380
390
|
readonly BILLING: {
|
|
381
391
|
readonly MANAGE: "payment.billing.manage";
|
|
382
392
|
};
|
|
393
|
+
readonly FILES: {
|
|
394
|
+
readonly UPLOAD: "payment.files.upload";
|
|
395
|
+
readonly DOWNLOAD: "payment.files.download";
|
|
396
|
+
readonly DELETE: "payment.files.delete";
|
|
397
|
+
};
|
|
383
398
|
};
|
|
384
399
|
readonly CAR: {
|
|
385
400
|
readonly OPERATIONS: {
|
|
@@ -544,6 +559,11 @@ export declare const PERMISSIONS: {
|
|
|
544
559
|
readonly MANAGE: "wholesale.operations.manage";
|
|
545
560
|
readonly PAYMENT: "wholesale.operations.payment";
|
|
546
561
|
};
|
|
562
|
+
readonly FILES: {
|
|
563
|
+
readonly UPLOAD: "wholesale.files.upload";
|
|
564
|
+
readonly DOWNLOAD: "wholesale.files.download";
|
|
565
|
+
readonly DELETE: "wholesale.files.delete";
|
|
566
|
+
};
|
|
547
567
|
readonly TARGET: {
|
|
548
568
|
readonly VIEW: "wholesale.target.view";
|
|
549
569
|
readonly MANAGE: "wholesale.target.manage";
|
package/dist/permissions.js
CHANGED
|
@@ -18,6 +18,11 @@ exports.PERMISSIONS = {
|
|
|
18
18
|
VIEW: "user.operations.view",
|
|
19
19
|
CREATE: "user.operations.create",
|
|
20
20
|
},
|
|
21
|
+
FILES: {
|
|
22
|
+
UPLOAD: "user.files.upload",
|
|
23
|
+
DOWNLOAD: "user.files.download",
|
|
24
|
+
DELETE: "user.files.delete",
|
|
25
|
+
},
|
|
21
26
|
DEALER: {
|
|
22
27
|
OPERATIONS: {
|
|
23
28
|
VIEW: "user.dealer.operations.view",
|
|
@@ -111,6 +116,11 @@ exports.PERMISSIONS = {
|
|
|
111
116
|
UPDATE: "dealer.operations.update",
|
|
112
117
|
DELETE: "dealer.operations.delete",
|
|
113
118
|
},
|
|
119
|
+
FILES: {
|
|
120
|
+
UPLOAD: "dealer.files.upload",
|
|
121
|
+
DOWNLOAD: "dealer.files.download",
|
|
122
|
+
DELETE: "dealer.files.delete",
|
|
123
|
+
},
|
|
114
124
|
ONBOARDING: {
|
|
115
125
|
SUBMIT: "dealer.onboarding.submit",
|
|
116
126
|
APPROVE: "dealer.onboarding.approve",
|
|
@@ -419,6 +429,11 @@ exports.PERMISSIONS = {
|
|
|
419
429
|
BILLING: {
|
|
420
430
|
MANAGE: "payment.billing.manage",
|
|
421
431
|
},
|
|
432
|
+
FILES: {
|
|
433
|
+
UPLOAD: "payment.files.upload",
|
|
434
|
+
DOWNLOAD: "payment.files.download",
|
|
435
|
+
DELETE: "payment.files.delete",
|
|
436
|
+
},
|
|
422
437
|
},
|
|
423
438
|
// ============================================
|
|
424
439
|
// CAR
|
|
@@ -595,6 +610,11 @@ exports.PERMISSIONS = {
|
|
|
595
610
|
MANAGE: "wholesale.operations.manage",
|
|
596
611
|
PAYMENT: "wholesale.operations.payment",
|
|
597
612
|
},
|
|
613
|
+
FILES: {
|
|
614
|
+
UPLOAD: "wholesale.files.upload",
|
|
615
|
+
DOWNLOAD: "wholesale.files.download",
|
|
616
|
+
DELETE: "wholesale.files.delete",
|
|
617
|
+
},
|
|
598
618
|
TARGET: {
|
|
599
619
|
VIEW: "wholesale.target.view",
|
|
600
620
|
MANAGE: "wholesale.target.manage",
|
package/package.json
CHANGED
package/src/permissions.ts
CHANGED
|
@@ -16,6 +16,11 @@ export const PERMISSIONS = {
|
|
|
16
16
|
VIEW: "user.operations.view",
|
|
17
17
|
CREATE: "user.operations.create",
|
|
18
18
|
},
|
|
19
|
+
FILES: {
|
|
20
|
+
UPLOAD: "user.files.upload",
|
|
21
|
+
DOWNLOAD: "user.files.download",
|
|
22
|
+
DELETE: "user.files.delete",
|
|
23
|
+
},
|
|
19
24
|
DEALER: {
|
|
20
25
|
OPERATIONS: {
|
|
21
26
|
VIEW: "user.dealer.operations.view",
|
|
@@ -111,6 +116,11 @@ export const PERMISSIONS = {
|
|
|
111
116
|
UPDATE: "dealer.operations.update",
|
|
112
117
|
DELETE: "dealer.operations.delete",
|
|
113
118
|
},
|
|
119
|
+
FILES: {
|
|
120
|
+
UPLOAD: "dealer.files.upload",
|
|
121
|
+
DOWNLOAD: "dealer.files.download",
|
|
122
|
+
DELETE: "dealer.files.delete",
|
|
123
|
+
},
|
|
114
124
|
ONBOARDING: {
|
|
115
125
|
SUBMIT: "dealer.onboarding.submit",
|
|
116
126
|
APPROVE: "dealer.onboarding.approve",
|
|
@@ -427,6 +437,11 @@ export const PERMISSIONS = {
|
|
|
427
437
|
BILLING: {
|
|
428
438
|
MANAGE: "payment.billing.manage",
|
|
429
439
|
},
|
|
440
|
+
FILES: {
|
|
441
|
+
UPLOAD: "payment.files.upload",
|
|
442
|
+
DOWNLOAD: "payment.files.download",
|
|
443
|
+
DELETE: "payment.files.delete",
|
|
444
|
+
},
|
|
430
445
|
},
|
|
431
446
|
|
|
432
447
|
// ============================================
|
|
@@ -607,6 +622,11 @@ export const PERMISSIONS = {
|
|
|
607
622
|
MANAGE: "wholesale.operations.manage",
|
|
608
623
|
PAYMENT: "wholesale.operations.payment",
|
|
609
624
|
},
|
|
625
|
+
FILES: {
|
|
626
|
+
UPLOAD: "wholesale.files.upload",
|
|
627
|
+
DOWNLOAD: "wholesale.files.download",
|
|
628
|
+
DELETE: "wholesale.files.delete",
|
|
629
|
+
},
|
|
610
630
|
TARGET: {
|
|
611
631
|
VIEW: "wholesale.target.view",
|
|
612
632
|
MANAGE: "wholesale.target.manage",
|