@campxdev/shared 1.10.27 → 1.10.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.10.27",
3
+ "version": "1.10.29",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -31,7 +31,7 @@ function UserProfileRelation({ close, application, profiles, data }) {
31
31
  defaultValues: {
32
32
  profileIds:
33
33
  data?.profiles?.map((profile) => ({
34
- label: `${profile.name} ( ${profile.email} )`,
34
+ label: profile.name,
35
35
  value: profile.id,
36
36
  })) ?? [],
37
37
  },
@@ -60,7 +60,7 @@ function UserProfileRelation({ close, application, profiles, data }) {
60
60
  onSuccess: (res) => {
61
61
  setState((s) => {
62
62
  s.options = res.result?.map((item) => ({
63
- label: item.fullName,
63
+ label: `${item.fullName} ( ${item.email} )`,
64
64
  value: item.id,
65
65
  }))
66
66
  })
@@ -908,6 +908,12 @@ export enum Permission {
908
908
  CAN_QUOTAS_ADD = 'can_quotas_add',
909
909
  CAN_QUOTAS_VIEW = 'can_quotas_view',
910
910
 
911
+ // caste
912
+ CAN_CASTE_EDIT = 'can_caste_edit',
913
+ CAN_CASTE_DELETE = 'can_caste_delete',
914
+ CAN_CASTE_ADD = 'can_caste_add',
915
+ CAN_CASTE_VIEW = 'can_caste_view',
916
+
911
917
  // Lead Status
912
918
  CAN_LEAD_STATUS_VIEW = 'can_lead_status_view',
913
919
  CAN_LEAD_STATUS_EDIT = 'can_lead_status_edit',