@telos-dev-team/dealernode-permissions 1.1.12 → 1.1.14

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.
@@ -236,13 +236,6 @@ export declare const PERMISSIONS: {
236
236
  readonly MANAGE: "deal.resources.actor_type.manage";
237
237
  };
238
238
  };
239
- readonly WORKFLOW: {
240
- readonly OPERATIONS: {
241
- readonly CREATE: "deal.workflow.operation.create";
242
- readonly VIEW: "deal.workflow.operation.view";
243
- readonly DELETE: "deal.workflow.operation.delete";
244
- };
245
- };
246
239
  readonly PAYMENT: {
247
240
  readonly OPERATIONS: {
248
241
  readonly VIEW: "deal.payment.operations.view";
@@ -508,45 +501,32 @@ export declare const PERMISSIONS: {
508
501
  readonly WORKFLOW: {
509
502
  readonly OPERATIONS: {
510
503
  readonly VIEW: "workflow.operations.view";
511
- readonly CREATE: "workflow.operations.create";
512
- readonly UPDATE: "workflow.operations.update";
513
- readonly DELETE: "workflow.operations.delete";
514
- readonly COPY: "workflow.operations.copy";
504
+ readonly MANAGE: "workflow.operations.manage";
515
505
  };
516
506
  };
517
507
  readonly WHOLESALE: {
518
508
  readonly OPERATIONS: {
519
509
  readonly VIEW: "wholesale.operations.view";
520
- readonly CREATE: "wholesale.operations.create";
521
- readonly UPDATE: "wholesale.operations.update";
522
- readonly DELETE: "wholesale.operations.delete";
523
- readonly PAY: "wholesale.operations.pay";
524
- readonly CANCEL: "wholesale.operations.cancel";
510
+ readonly MANAGE: "wholesale.operations.manage";
511
+ readonly PAYMENT: "wholesale.operations.payment";
525
512
  };
526
513
  readonly TARGET: {
527
514
  readonly VIEW: "wholesale.target.view";
528
515
  readonly MANAGE: "wholesale.target.manage";
529
516
  };
530
517
  readonly INVITATION: {
531
- readonly ACCEPT: "wholesale.invitation.accept";
532
- readonly REVERT_ACCEPT: "wholesale.invitation.revert_accept";
533
- readonly REJECT: "wholesale.invitation.reject";
534
- readonly REVERT_REJECT: "wholesale.invitation.revert_reject";
535
- readonly DELETE: "wholesale.invitation.delete";
518
+ readonly MANAGE: "wholesale.invitation.manage";
536
519
  };
537
520
  readonly MANUAL: {
538
521
  readonly OPERATIONS: {
539
522
  readonly VIEW: "manual_wholesale.operations.view";
540
- readonly CREATE: "manual_wholesale.operations.create";
541
- readonly UPDATE: "manual_wholesale.operations.update";
542
- readonly DELETE: "manual_wholesale.operations.delete";
543
- readonly APPROVE: "manual_wholesale.operations.approve";
523
+ readonly MANAGE: "manual_wholesale.operations.manage";
544
524
  };
545
525
  };
546
526
  readonly AUTOMATIC: {
547
527
  readonly OPERATIONS: {
548
528
  readonly VIEW: "automatic_wholesale.operations.view";
549
- readonly UPDATE: "automatic_wholesale.operations.update";
529
+ readonly MANAGE: "automatic_wholesale.operations.manage";
550
530
  };
551
531
  };
552
532
  };
@@ -269,13 +269,6 @@ exports.PERMISSIONS = {
269
269
  MANAGE: "deal.resources.actor_type.manage",
270
270
  },
271
271
  },
272
- WORKFLOW: {
273
- OPERATIONS: {
274
- CREATE: "deal.workflow.operation.create",
275
- VIEW: "deal.workflow.operation.view",
276
- DELETE: "deal.workflow.operation.delete",
277
- },
278
- },
279
272
  PAYMENT: {
280
273
  OPERATIONS: {
281
274
  VIEW: "deal.payment.operations.view",
@@ -556,10 +549,7 @@ exports.PERMISSIONS = {
556
549
  WORKFLOW: {
557
550
  OPERATIONS: {
558
551
  VIEW: "workflow.operations.view",
559
- CREATE: "workflow.operations.create",
560
- UPDATE: "workflow.operations.update",
561
- DELETE: "workflow.operations.delete",
562
- COPY: "workflow.operations.copy",
552
+ MANAGE: "workflow.operations.manage",
563
553
  },
564
554
  },
565
555
  // ============================================
@@ -568,36 +558,26 @@ exports.PERMISSIONS = {
568
558
  WHOLESALE: {
569
559
  OPERATIONS: {
570
560
  VIEW: "wholesale.operations.view",
571
- CREATE: "wholesale.operations.create",
572
- UPDATE: "wholesale.operations.update",
573
- DELETE: "wholesale.operations.delete",
574
- PAY: "wholesale.operations.pay",
575
- CANCEL: "wholesale.operations.cancel",
561
+ MANAGE: "wholesale.operations.manage",
562
+ PAYMENT: "wholesale.operations.payment",
576
563
  },
577
564
  TARGET: {
578
565
  VIEW: "wholesale.target.view",
579
566
  MANAGE: "wholesale.target.manage",
580
567
  },
581
568
  INVITATION: {
582
- ACCEPT: "wholesale.invitation.accept",
583
- REVERT_ACCEPT: "wholesale.invitation.revert_accept",
584
- REJECT: "wholesale.invitation.reject",
585
- REVERT_REJECT: "wholesale.invitation.revert_reject",
586
- DELETE: "wholesale.invitation.delete",
569
+ MANAGE: "wholesale.invitation.manage",
587
570
  },
588
571
  MANUAL: {
589
572
  OPERATIONS: {
590
573
  VIEW: "manual_wholesale.operations.view",
591
- CREATE: "manual_wholesale.operations.create",
592
- UPDATE: "manual_wholesale.operations.update",
593
- DELETE: "manual_wholesale.operations.delete",
594
- APPROVE: "manual_wholesale.operations.approve",
574
+ MANAGE: "manual_wholesale.operations.manage",
595
575
  },
596
576
  },
597
577
  AUTOMATIC: {
598
578
  OPERATIONS: {
599
579
  VIEW: "automatic_wholesale.operations.view",
600
- UPDATE: "automatic_wholesale.operations.update",
580
+ MANAGE: "automatic_wholesale.operations.manage",
601
581
  },
602
582
  },
603
583
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -275,13 +275,6 @@ export const PERMISSIONS = {
275
275
  MANAGE: "deal.resources.actor_type.manage",
276
276
  },
277
277
  },
278
- WORKFLOW: {
279
- OPERATIONS: {
280
- CREATE: "deal.workflow.operation.create",
281
- VIEW: "deal.workflow.operation.view",
282
- DELETE: "deal.workflow.operation.delete",
283
- },
284
- },
285
278
  PAYMENT: {
286
279
  OPERATIONS: {
287
280
  VIEW: "deal.payment.operations.view",
@@ -567,10 +560,7 @@ export const PERMISSIONS = {
567
560
  WORKFLOW: {
568
561
  OPERATIONS: {
569
562
  VIEW: "workflow.operations.view",
570
- CREATE: "workflow.operations.create",
571
- UPDATE: "workflow.operations.update",
572
- DELETE: "workflow.operations.delete",
573
- COPY: "workflow.operations.copy",
563
+ MANAGE: "workflow.operations.manage",
574
564
  },
575
565
  },
576
566
 
@@ -580,36 +570,26 @@ export const PERMISSIONS = {
580
570
  WHOLESALE: {
581
571
  OPERATIONS: {
582
572
  VIEW: "wholesale.operations.view",
583
- CREATE: "wholesale.operations.create",
584
- UPDATE: "wholesale.operations.update",
585
- DELETE: "wholesale.operations.delete",
586
- PAY: "wholesale.operations.pay",
587
- CANCEL: "wholesale.operations.cancel",
573
+ MANAGE: "wholesale.operations.manage",
574
+ PAYMENT: "wholesale.operations.payment",
588
575
  },
589
576
  TARGET: {
590
577
  VIEW: "wholesale.target.view",
591
578
  MANAGE: "wholesale.target.manage",
592
579
  },
593
580
  INVITATION: {
594
- ACCEPT: "wholesale.invitation.accept",
595
- REVERT_ACCEPT: "wholesale.invitation.revert_accept",
596
- REJECT: "wholesale.invitation.reject",
597
- REVERT_REJECT: "wholesale.invitation.revert_reject",
598
- DELETE: "wholesale.invitation.delete",
581
+ MANAGE: "wholesale.invitation.manage",
599
582
  },
600
583
  MANUAL: {
601
584
  OPERATIONS: {
602
585
  VIEW: "manual_wholesale.operations.view",
603
- CREATE: "manual_wholesale.operations.create",
604
- UPDATE: "manual_wholesale.operations.update",
605
- DELETE: "manual_wholesale.operations.delete",
606
- APPROVE: "manual_wholesale.operations.approve",
586
+ MANAGE: "manual_wholesale.operations.manage",
607
587
  },
608
588
  },
609
589
  AUTOMATIC: {
610
590
  OPERATIONS: {
611
591
  VIEW: "automatic_wholesale.operations.view",
612
- UPDATE: "automatic_wholesale.operations.update",
592
+ MANAGE: "automatic_wholesale.operations.manage",
613
593
  },
614
594
  },
615
595
  },