@telos-dev-team/dealernode-permissions 1.1.64 → 1.1.66

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.
@@ -296,6 +296,7 @@ export declare const PERMISSIONS: {
296
296
  readonly VIEW: "fail_deal.unwind.operations.view";
297
297
  readonly VIEW_MY_DEALS: "fail_deal.unwind.operations.view_my_deals";
298
298
  readonly MANAGE: "fail_deal.unwind.operations.manage";
299
+ readonly ARRIVE: "fail_deal.unwind.operations.arrive";
299
300
  };
300
301
  readonly FILES: {
301
302
  readonly UPLOAD: "fail_deal.unwind.files.upload";
@@ -320,6 +321,7 @@ export declare const PERMISSIONS: {
320
321
  readonly VIEW: "fail_deal.dead_deal.operations.view";
321
322
  readonly VIEW_MY_DEALS: "fail_deal.dead_deal.operations.view_my_deals";
322
323
  readonly MANAGE: "fail_deal.dead_deal.operations.manage";
324
+ readonly ARRIVE: "fail_deal.dead_deal.operations.arrive";
323
325
  };
324
326
  };
325
327
  readonly BUY_BACK: {
@@ -327,6 +329,7 @@ export declare const PERMISSIONS: {
327
329
  readonly VIEW_MY_DEALS: "fail_deal.buy_back.operations.view_my_deals";
328
330
  readonly VIEW: "fail_deal.buy_back.operations.view";
329
331
  readonly MANAGE: "fail_deal.buy_back.operations.manage";
332
+ readonly ARRIVE: "fail_deal.buy_back.operations.arrive";
330
333
  };
331
334
  readonly RESOURCES: {
332
335
  readonly EXTRA: {
@@ -759,5 +762,19 @@ export declare const PERMISSIONS: {
759
762
  };
760
763
  };
761
764
  };
765
+ readonly EXPENSE: {
766
+ readonly VIEW: "expense.view";
767
+ readonly MANAGE: "expense.manage";
768
+ readonly PAYMENT_ACCOUNT: {
769
+ readonly MANAGE: "expense.payment-account.manage";
770
+ };
771
+ readonly CATEGORY: {
772
+ readonly MANAGE: "expense.category.manage";
773
+ };
774
+ };
775
+ readonly VENDOR: {
776
+ readonly MANAGE: "vendor.manage";
777
+ readonly TAX_ID_VIEW: "vendor.tax-id.view";
778
+ };
762
779
  };
763
780
  export type Permission = typeof PERMISSIONS;
@@ -335,6 +335,7 @@ exports.PERMISSIONS = {
335
335
  VIEW: "fail_deal.unwind.operations.view",
336
336
  VIEW_MY_DEALS: "fail_deal.unwind.operations.view_my_deals",
337
337
  MANAGE: "fail_deal.unwind.operations.manage",
338
+ ARRIVE: "fail_deal.unwind.operations.arrive",
338
339
  },
339
340
  FILES: {
340
341
  UPLOAD: "fail_deal.unwind.files.upload",
@@ -359,6 +360,7 @@ exports.PERMISSIONS = {
359
360
  VIEW: "fail_deal.dead_deal.operations.view",
360
361
  VIEW_MY_DEALS: "fail_deal.dead_deal.operations.view_my_deals",
361
362
  MANAGE: "fail_deal.dead_deal.operations.manage",
363
+ ARRIVE: "fail_deal.dead_deal.operations.arrive",
362
364
  },
363
365
  },
364
366
  BUY_BACK: {
@@ -366,6 +368,7 @@ exports.PERMISSIONS = {
366
368
  VIEW_MY_DEALS: "fail_deal.buy_back.operations.view_my_deals",
367
369
  VIEW: "fail_deal.buy_back.operations.view",
368
370
  MANAGE: "fail_deal.buy_back.operations.manage",
371
+ ARRIVE: "fail_deal.buy_back.operations.arrive",
369
372
  },
370
373
  RESOURCES: {
371
374
  EXTRA: {
@@ -843,4 +846,26 @@ exports.PERMISSIONS = {
843
846
  },
844
847
  },
845
848
  },
849
+ // ============================================
850
+ // EXPENSE (gastos operativos del dealer: el dinero que sale)
851
+ // ============================================
852
+ EXPENSE: {
853
+ VIEW: "expense.view",
854
+ MANAGE: "expense.manage",
855
+ PAYMENT_ACCOUNT: {
856
+ MANAGE: "expense.payment-account.manage",
857
+ },
858
+ CATEGORY: {
859
+ MANAGE: "expense.category.manage",
860
+ },
861
+ },
862
+ // ============================================
863
+ // VENDOR (proveedores; sin prefijo expense porque los costos del carro
864
+ // también los usan)
865
+ // ============================================
866
+ VENDOR: {
867
+ MANAGE: "vendor.manage",
868
+ // Ver el Tax ID completo (puede ser un SSN)
869
+ TAX_ID_VIEW: "vendor.tax-id.view",
870
+ },
846
871
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.64",
3
+ "version": "1.1.66",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",