easywork-common-lib 1.0.1128 → 1.0.1132
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/common/@types/enums/permission.enum.d.ts +105 -6
- package/dist/common/@types/enums/permission.enum.js +47 -9
- package/dist/common/@types/enums/permission.enum.js.map +1 -1
- package/dist/common/@types/interfaces/index.d.ts +7 -6
- package/dist/common/@types/interfaces/index.js +1 -0
- package/dist/common/@types/interfaces/index.js.map +1 -1
- package/dist/common/@types/interfaces/lead-validation-rules.interface.d.ts +29 -0
- package/dist/common/@types/interfaces/lead-validation-rules.interface.js +10 -0
- package/dist/common/@types/interfaces/lead-validation-rules.interface.js.map +1 -0
- package/dist/common/constants/app.contants.d.ts +18 -2
- package/dist/common/constants/app.contants.js +22 -1
- package/dist/common/constants/app.contants.js.map +1 -1
- package/dist/common/constants/index.d.ts +1 -0
- package/dist/common/constants/index.js +1 -0
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/constants/roles.constants.d.ts +108 -0
- package/dist/common/constants/roles.constants.js +116 -0
- package/dist/common/constants/roles.constants.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +4 -2
- package/dist/common/database/base.entity.js +26 -10
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/common/dtos/send-notification.dto.d.ts +1 -0
- package/dist/common/dtos/send-notification.dto.js +6 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -1
- package/dist/common/enums/common.enum.d.ts +41 -2
- package/dist/common/enums/common.enum.js +45 -3
- package/dist/common/enums/common.enum.js.map +1 -1
- package/dist/common/enums/index.d.ts +1 -0
- package/dist/common/enums/index.js +1 -0
- package/dist/common/enums/index.js.map +1 -1
- package/dist/common/enums/notification.enum.d.ts +5 -2
- package/dist/common/enums/notification.enum.js +3 -0
- package/dist/common/enums/notification.enum.js.map +1 -1
- package/dist/common/enums/project.enum.d.ts +13 -0
- package/dist/common/enums/project.enum.js +19 -0
- package/dist/common/enums/project.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +4 -0
- package/dist/common/enums/sales.enum.js +6 -1
- package/dist/common/enums/sales.enum.js.map +1 -1
- package/dist/common/enums/tools.enum.d.ts +2 -1
- package/dist/common/enums/tools.enum.js +1 -0
- package/dist/common/enums/tools.enum.js.map +1 -1
- package/dist/entities/all-activities.entity.d.ts +43 -0
- package/dist/entities/all-activities.entity.js +527 -0
- package/dist/entities/all-activities.entity.js.map +1 -0
- package/dist/entities/app_config/app-config.entity.d.ts +1 -1
- package/dist/entities/company.entity.d.ts +14 -0
- package/dist/entities/company.entity.js +116 -0
- package/dist/entities/company.entity.js.map +1 -0
- package/dist/entities/email.entity.js +6 -2
- package/dist/entities/email.entity.js.map +1 -1
- package/dist/entities/group.entity.d.ts +12 -6
- package/dist/entities/group.entity.js +66 -7
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/helpers/meeting_crm.entity.d.ts +7 -7
- package/dist/entities/helpers/meeting_crm.entity.js +18 -18
- package/dist/entities/helpers/meeting_crm.entity.js.map +1 -1
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.js +30 -0
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/index.d.ts +2 -0
- package/dist/entities/helpers/sales/agent/index.js +2 -0
- package/dist/entities/helpers/sales/agent/index.js.map +1 -1
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +42 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js.map +1 -1
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.entity.d.ts +9 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.entity.js +64 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +2 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +25 -5
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -1
- package/dist/entities/helpers/sales/common/client_types.entity.js +6 -2
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -1
- package/dist/entities/index.d.ts +50 -37
- package/dist/entities/index.js +13 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/otp-log.entity.d.ts +4 -2
- package/dist/entities/otp-log.entity.js +15 -3
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.d.ts +8 -1
- package/dist/entities/permission.entity.js +96 -9
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/policy/policy-version.entity.d.ts +1 -0
- package/dist/entities/policy/policy-version.entity.js +46 -31
- package/dist/entities/policy/policy-version.entity.js.map +1 -1
- package/dist/entities/policy/policy.entity.d.ts +2 -1
- package/dist/entities/policy/policy.entity.js +14 -0
- package/dist/entities/policy/policy.entity.js.map +1 -1
- package/dist/entities/project_management/activities/activities-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js +63 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity-file.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activity-file.entity.js +64 -0
- package/dist/entities/project_management/activities/activity-file.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity.entity.d.ts +21 -0
- package/dist/entities/project_management/activities/activity.entity.js +111 -0
- package/dist/entities/project_management/activities/activity.entity.js.map +1 -0
- package/dist/entities/project_management/activities/index.d.ts +3 -0
- package/dist/entities/project_management/activities/index.js +20 -0
- package/dist/entities/project_management/activities/index.js.map +1 -0
- package/dist/entities/project_management/index.d.ts +2 -0
- package/dist/entities/project_management/index.js +19 -0
- package/dist/entities/project_management/index.js.map +1 -0
- package/dist/entities/project_management/project/index.d.ts +3 -0
- package/dist/entities/project_management/project/index.js +20 -0
- package/dist/entities/project_management/project/index.js.map +1 -0
- package/dist/entities/project_management/project/project-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-comment.entity.js +63 -0
- package/dist/entities/project_management/project/project-comment.entity.js.map +1 -0
- package/dist/entities/project_management/project/project-file.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-file.entity.js +64 -0
- package/dist/entities/project_management/project/project-file.entity.js.map +1 -0
- package/dist/entities/project_management/project/project.entity.d.ts +24 -0
- package/dist/entities/project_management/project/project.entity.js +123 -0
- package/dist/entities/project_management/project/project.entity.js.map +1 -0
- package/dist/entities/protocol.entity.js.map +1 -1
- package/dist/entities/role-audit-log.entity.d.ts +25 -0
- package/dist/entities/role-audit-log.entity.js +122 -0
- package/dist/entities/role-audit-log.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +3 -0
- package/dist/entities/role.entity.js +23 -0
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/agent.entity.d.ts +19 -2
- package/dist/entities/sales/agent.entity.js +168 -6
- package/dist/entities/sales/agent.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +2 -2
- package/dist/entities/sales/contact.entity.js +16 -15
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/index.d.ts +1 -0
- package/dist/entities/sales/index.js +1 -0
- package/dist/entities/sales/index.js.map +1 -1
- package/dist/entities/sales/lead-validation-rule.entity.d.ts +7 -0
- package/dist/entities/sales/lead-validation-rule.entity.js +34 -0
- package/dist/entities/sales/lead-validation-rule.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +3 -0
- package/dist/entities/sales/lead.entity.js +21 -0
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza/poliza_claim.entity.d.ts +2 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js +15 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js.map +1 -1
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.d.ts +2 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +15 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js.map +1 -1
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.d.ts +2 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +15 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js.map +1 -1
- package/dist/entities/sales/poliza/poliza_scheduling.entity.d.ts +2 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +15 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/subgroup.entity.d.ts +8 -0
- package/dist/entities/subgroup.entity.js +45 -0
- package/dist/entities/subgroup.entity.js.map +1 -0
- package/dist/entities/subscriptions/feature.d.ts +15 -0
- package/dist/entities/subscriptions/feature.entity.d.ts +25 -0
- package/dist/entities/subscriptions/feature.entity.js +75 -0
- package/dist/entities/subscriptions/feature.entity.js.map +1 -0
- package/dist/entities/subscriptions/feature.js +64 -0
- package/dist/entities/subscriptions/feature.js.map +1 -0
- package/dist/entities/subscriptions/payment-history.entity.d.ts +24 -0
- package/dist/entities/subscriptions/payment-history.entity.js +124 -0
- package/dist/entities/subscriptions/payment-history.entity.js.map +1 -0
- package/dist/entities/subscriptions/plan-feature.d.ts +8 -0
- package/dist/entities/subscriptions/plan-feature.entity.d.ts +8 -0
- package/dist/entities/subscriptions/plan-feature.entity.js +44 -0
- package/dist/entities/subscriptions/plan-feature.entity.js.map +1 -0
- package/dist/entities/subscriptions/plan-feature.js +44 -0
- package/dist/entities/subscriptions/plan-feature.js.map +1 -0
- package/dist/entities/subscriptions/plan.entity.d.ts +15 -0
- package/dist/entities/subscriptions/plan.entity.js +73 -0
- package/dist/entities/subscriptions/plan.entity.js.map +1 -0
- package/dist/entities/subscriptions/subscription.entity.d.ts +32 -0
- package/dist/entities/subscriptions/subscription.entity.js +164 -0
- package/dist/entities/subscriptions/subscription.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/index.d.ts +7 -0
- package/dist/entities/thirdparty/wati/index.js +24 -0
- package/dist/entities/thirdparty/wati/index.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.d.ts +27 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.js +207 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.d.ts +22 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js +149 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.d.ts +9 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js +63 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.d.ts +30 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.js +280 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.d.ts +71 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.js +216 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.d.ts +31 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.js +193 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati.enum.d.ts +69 -0
- package/dist/entities/thirdparty/wati/wati.enum.js +83 -0
- package/dist/entities/thirdparty/wati/wati.enum.js.map +1 -0
- package/dist/entities/tools/mail/mail-queue-distribution.d.ts +8 -0
- package/dist/entities/tools/mail/mail-queue-distribution.js +38 -0
- package/dist/entities/tools/mail/mail-queue-distribution.js.map +1 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.d.ts +9 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.js +39 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.js.map +1 -0
- package/dist/entities/tools/mail/mail-queue-status.d.ts +9 -0
- package/dist/entities/tools/mail/mail-queue-status.js +44 -0
- package/dist/entities/tools/mail/mail-queue-status.js.map +1 -0
- package/dist/entities/tools/mail/mail.entity.d.ts +4 -1
- package/dist/entities/tools/mail/mail.entity.js +2 -2
- package/dist/entities/tools/mail/mail.entity.js.map +1 -1
- package/dist/entities/tools/mail/mailbox-user-access.entity.d.ts +3 -9
- package/dist/entities/tools/mail/mailbox-user-access.entity.js +8 -21
- package/dist/entities/tools/mail/mailbox-user-access.entity.js.map +1 -1
- package/dist/entities/tools/mail/mailbox.entity.d.ts +1 -0
- package/dist/entities/tools/mail/mailbox.entity.js +15 -6
- package/dist/entities/tools/mail/mailbox.entity.js.map +1 -1
- package/dist/entities/tools/task.entity.d.ts +3 -0
- package/dist/entities/tools/task.entity.js +58 -26
- package/dist/entities/tools/task.entity.js.map +1 -1
- package/dist/entities/user-from-cognito.entity.d.ts +5 -0
- package/dist/entities/user-from-cognito.entity.js +35 -0
- package/dist/entities/user-from-cognito.entity.js.map +1 -0
- package/dist/entities/user-group.entity.d.ts +9 -0
- package/dist/entities/user-group.entity.js +65 -0
- package/dist/entities/user-group.entity.js.map +1 -0
- package/dist/entities/user-special-role.entity.d.ts +13 -0
- package/dist/entities/user-special-role.entity.js +74 -0
- package/dist/entities/user-special-role.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +13 -3
- package/dist/entities/user.entity.js +57 -24
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +290 -290
- package/dist/grpc/drive/leads.proto +114 -114
- package/dist/modules/authorization/authorization.module.d.ts +26 -0
- package/dist/modules/authorization/authorization.module.js +105 -0
- package/dist/modules/authorization/authorization.module.js.map +1 -0
- package/dist/modules/authorization/config/resource-configurations.d.ts +12 -0
- package/dist/modules/authorization/config/resource-configurations.js +124 -0
- package/dist/modules/authorization/config/resource-configurations.js.map +1 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.d.ts +13 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js +101 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/decorators/permissions.decorator.d.ts +51 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js +144 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.d.ts +55 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js +184 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js.map +1 -0
- package/dist/modules/authorization/index.d.ts +7 -0
- package/dist/modules/authorization/index.js +24 -0
- package/dist/modules/authorization/index.js.map +1 -0
- package/dist/modules/authorization/interfaces/authorization.interface.d.ts +23 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js +3 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js.map +1 -0
- package/dist/modules/authorization/services/authorization.service.d.ts +25 -0
- package/dist/modules/authorization/services/authorization.service.js +139 -0
- package/dist/modules/authorization/services/authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/dynamic-filter.service.d.ts +9 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js +238 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/index.d.ts +7 -0
- package/dist/modules/authorization/services/index.js +24 -0
- package/dist/modules/authorization/services/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.d.ts +29 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js +105 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/index.d.ts +4 -0
- package/dist/modules/authorization/services/modules/index.js +21 -0
- package/dist/modules/authorization/services/modules/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.d.ts +27 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js +96 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-cache.service.d.ts +10 -0
- package/dist/modules/authorization/services/permission-cache.service.js +48 -0
- package/dist/modules/authorization/services/permission-cache.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-evaluator.service.d.ts +26 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js +328 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-access-filter.service.d.ts +20 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js +406 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-authorization.service.d.ts +47 -0
- package/dist/modules/authorization/services/resource-authorization.service.js +184 -0
- package/dist/modules/authorization/services/resource-authorization.service.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/package.json +54 -54
|
@@ -1,13 +1,112 @@
|
|
|
1
|
+
import { User } from "../../../entities/user.entity";
|
|
1
2
|
export declare enum Roles {
|
|
2
3
|
ADMIN = "ADMIN",
|
|
3
4
|
USER = "USER",
|
|
4
5
|
SUPERVISOR = "SUPERVISOR",
|
|
5
6
|
AUTHOR = "AUTHOR"
|
|
6
7
|
}
|
|
7
|
-
export declare enum
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export declare enum PermissionAction {
|
|
9
|
+
CREATE = "create",
|
|
10
|
+
READ = "read",
|
|
11
|
+
UPDATE = "update",
|
|
12
|
+
DELETE = "delete",
|
|
13
|
+
MANAGE = "manage",
|
|
14
|
+
ASSIGN = "assign",
|
|
15
|
+
EXPORT = "export",
|
|
16
|
+
IMPORT = "import",
|
|
17
|
+
APPROVE = "approve",
|
|
18
|
+
REJECT = "reject",
|
|
19
|
+
CANCEL = "cancel",
|
|
20
|
+
COMMENT = "comment",
|
|
21
|
+
SHARE = "share",
|
|
22
|
+
ARCHIVE = "archive"
|
|
23
|
+
}
|
|
24
|
+
export declare enum PermissionScope {
|
|
25
|
+
OWN = "own",
|
|
26
|
+
TEAM = "team",
|
|
27
|
+
GROUP = "group",
|
|
28
|
+
ALL = "all",
|
|
29
|
+
ASSIGNED = "assigned",
|
|
30
|
+
SUPERVISED = "supervised"
|
|
31
|
+
}
|
|
32
|
+
export declare enum PermissionCondition {
|
|
33
|
+
ALWAYS = "always",
|
|
34
|
+
OWNER = "owner",
|
|
35
|
+
ASSIGNED_TO = "assignedTo",
|
|
36
|
+
OBSERVER = "observer",
|
|
37
|
+
PARTICIPANT = "participant",
|
|
38
|
+
SUBGROUP_SUPERVISOR = "subgroupSupervisor",
|
|
39
|
+
SUBGROUP_MEMBER = "subgroupMember",
|
|
40
|
+
SAME_GROUP = "sameGroup",
|
|
41
|
+
SAME_TEAM = "sameTeam",
|
|
42
|
+
ROLE_LEVEL = "roleLevel",
|
|
43
|
+
TIME_BASED = "timeBased",
|
|
44
|
+
STATUS_BASED = "statusBased"
|
|
45
|
+
}
|
|
46
|
+
export interface FilterCondition {
|
|
47
|
+
field: string;
|
|
48
|
+
operator: "equals" | "in" | "contains" | "not_in" | "is_null" | "is_not_null" | "like" | "gt" | "gte" | "lt" | "lte";
|
|
49
|
+
value?: any;
|
|
50
|
+
values?: any[];
|
|
51
|
+
}
|
|
52
|
+
export interface FilterCriteria {
|
|
53
|
+
fields?: FilterCondition[];
|
|
54
|
+
includeOwn?: boolean;
|
|
55
|
+
includeAssigned?: boolean;
|
|
56
|
+
includeObserved?: boolean;
|
|
57
|
+
includeTeam?: boolean;
|
|
58
|
+
includeGroup?: boolean;
|
|
59
|
+
includeSupervised?: boolean;
|
|
60
|
+
orConditions?: FilterCriteria[];
|
|
61
|
+
andConditions?: FilterCriteria[];
|
|
62
|
+
}
|
|
63
|
+
export interface PermissionRule {
|
|
64
|
+
action: PermissionAction;
|
|
65
|
+
scope: PermissionScope;
|
|
66
|
+
conditions?: PermissionCondition[];
|
|
67
|
+
minRoleLevel?: number;
|
|
68
|
+
maxRoleLevel?: number;
|
|
69
|
+
specificRoleIds?: string[];
|
|
70
|
+
excludeRoleIds?: string[];
|
|
71
|
+
filterCriteria?: FilterCriteria;
|
|
72
|
+
customConditions?: Record<string, any>;
|
|
73
|
+
timeRestrictions?: {
|
|
74
|
+
createdWithin?: number;
|
|
75
|
+
modifiedWithin?: number;
|
|
76
|
+
};
|
|
77
|
+
statusRestrictions?: string[];
|
|
78
|
+
}
|
|
79
|
+
export interface ResourcePermission {
|
|
80
|
+
resource: string;
|
|
81
|
+
rules: PermissionRule[];
|
|
82
|
+
}
|
|
83
|
+
export interface PermissionContextType {
|
|
84
|
+
user: User;
|
|
85
|
+
resource: string;
|
|
86
|
+
action: PermissionAction;
|
|
87
|
+
targetEntity?: any;
|
|
88
|
+
additionalContext?: Record<string, any>;
|
|
89
|
+
}
|
|
90
|
+
export interface PermissionResult {
|
|
91
|
+
allowed: boolean;
|
|
92
|
+
scope?: PermissionScope;
|
|
93
|
+
filters?: Record<string, any>;
|
|
94
|
+
reason?: string;
|
|
95
|
+
}
|
|
96
|
+
export declare enum PermissionGroupScope {
|
|
97
|
+
GLOBAL = "global",
|
|
98
|
+
GROUP_SPECIFIC = "group_specific"
|
|
99
|
+
}
|
|
100
|
+
export interface RoleAccessCriteria {
|
|
101
|
+
type: "level_range" | "specific_roles" | "exclude_roles" | "all";
|
|
102
|
+
minLevel?: number;
|
|
103
|
+
maxLevel?: number;
|
|
104
|
+
allowedRoleIds?: string[];
|
|
105
|
+
excludedRoleIds?: string[];
|
|
106
|
+
}
|
|
107
|
+
export interface RuleEvaluationResult {
|
|
108
|
+
allowed: boolean;
|
|
109
|
+
reason: string;
|
|
110
|
+
appliedRule?: PermissionRule;
|
|
111
|
+
effectiveFilters?: Record<string, any>;
|
|
13
112
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PermissionGroupScope = exports.PermissionCondition = exports.PermissionScope = exports.PermissionAction = exports.Roles = void 0;
|
|
4
4
|
var Roles;
|
|
5
5
|
(function (Roles) {
|
|
6
6
|
Roles["ADMIN"] = "ADMIN";
|
|
@@ -8,12 +8,50 @@ var Roles;
|
|
|
8
8
|
Roles["SUPERVISOR"] = "SUPERVISOR";
|
|
9
9
|
Roles["AUTHOR"] = "AUTHOR";
|
|
10
10
|
})(Roles || (exports.Roles = Roles = {}));
|
|
11
|
-
var
|
|
12
|
-
(function (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
var PermissionAction;
|
|
12
|
+
(function (PermissionAction) {
|
|
13
|
+
PermissionAction["CREATE"] = "create";
|
|
14
|
+
PermissionAction["READ"] = "read";
|
|
15
|
+
PermissionAction["UPDATE"] = "update";
|
|
16
|
+
PermissionAction["DELETE"] = "delete";
|
|
17
|
+
PermissionAction["MANAGE"] = "manage";
|
|
18
|
+
PermissionAction["ASSIGN"] = "assign";
|
|
19
|
+
PermissionAction["EXPORT"] = "export";
|
|
20
|
+
PermissionAction["IMPORT"] = "import";
|
|
21
|
+
PermissionAction["APPROVE"] = "approve";
|
|
22
|
+
PermissionAction["REJECT"] = "reject";
|
|
23
|
+
PermissionAction["CANCEL"] = "cancel";
|
|
24
|
+
PermissionAction["COMMENT"] = "comment";
|
|
25
|
+
PermissionAction["SHARE"] = "share";
|
|
26
|
+
PermissionAction["ARCHIVE"] = "archive";
|
|
27
|
+
})(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
|
|
28
|
+
var PermissionScope;
|
|
29
|
+
(function (PermissionScope) {
|
|
30
|
+
PermissionScope["OWN"] = "own";
|
|
31
|
+
PermissionScope["TEAM"] = "team";
|
|
32
|
+
PermissionScope["GROUP"] = "group";
|
|
33
|
+
PermissionScope["ALL"] = "all";
|
|
34
|
+
PermissionScope["ASSIGNED"] = "assigned";
|
|
35
|
+
PermissionScope["SUPERVISED"] = "supervised";
|
|
36
|
+
})(PermissionScope || (exports.PermissionScope = PermissionScope = {}));
|
|
37
|
+
var PermissionCondition;
|
|
38
|
+
(function (PermissionCondition) {
|
|
39
|
+
PermissionCondition["ALWAYS"] = "always";
|
|
40
|
+
PermissionCondition["OWNER"] = "owner";
|
|
41
|
+
PermissionCondition["ASSIGNED_TO"] = "assignedTo";
|
|
42
|
+
PermissionCondition["OBSERVER"] = "observer";
|
|
43
|
+
PermissionCondition["PARTICIPANT"] = "participant";
|
|
44
|
+
PermissionCondition["SUBGROUP_SUPERVISOR"] = "subgroupSupervisor";
|
|
45
|
+
PermissionCondition["SUBGROUP_MEMBER"] = "subgroupMember";
|
|
46
|
+
PermissionCondition["SAME_GROUP"] = "sameGroup";
|
|
47
|
+
PermissionCondition["SAME_TEAM"] = "sameTeam";
|
|
48
|
+
PermissionCondition["ROLE_LEVEL"] = "roleLevel";
|
|
49
|
+
PermissionCondition["TIME_BASED"] = "timeBased";
|
|
50
|
+
PermissionCondition["STATUS_BASED"] = "statusBased";
|
|
51
|
+
})(PermissionCondition || (exports.PermissionCondition = PermissionCondition = {}));
|
|
52
|
+
var PermissionGroupScope;
|
|
53
|
+
(function (PermissionGroupScope) {
|
|
54
|
+
PermissionGroupScope["GLOBAL"] = "global";
|
|
55
|
+
PermissionGroupScope["GROUP_SPECIFIC"] = "group_specific";
|
|
56
|
+
})(PermissionGroupScope || (exports.PermissionGroupScope = PermissionGroupScope = {}));
|
|
19
57
|
//# sourceMappingURL=permission.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.enum.js","sourceRoot":"","sources":["../../../../src/common/@types/enums/permission.enum.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"permission.enum.js","sourceRoot":"","sources":["../../../../src/common/@types/enums/permission.enum.ts"],"names":[],"mappings":";;;AAEA,IAAY,KAKX;AALD,WAAY,KAAK;IACf,wBAAe,CAAA;IACf,sBAAa,CAAA;IACb,kCAAyB,CAAA;IACzB,0BAAiB,CAAA;AACnB,CAAC,EALW,KAAK,qBAAL,KAAK,QAKhB;AAED,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,uCAAmB,CAAA;AACrB,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B;AAED,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;AAC3B,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAED,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,iDAA0B,CAAA;IAC1B,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,iEAA0C,CAAA;IAC1C,yDAAkC,CAAA;IAClC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,+CAAwB,CAAA;IACxB,+CAAwB,CAAA;IACxB,mDAA4B,CAAA;AAC9B,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAoFD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,yDAAiC,CAAA;AACnC,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./authentication.interface";
|
|
2
|
+
export * from "./crm.interface";
|
|
3
|
+
export * from "./file.interface";
|
|
4
|
+
export * from "./mail.interface";
|
|
5
|
+
export * from "./validator.interface";
|
|
6
|
+
export * from "./lsm.interface";
|
|
7
|
+
export * from "./lead-validation-rules.interface";
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./file.interface"), exports);
|
|
|
20
20
|
__exportStar(require("./mail.interface"), exports);
|
|
21
21
|
__exportStar(require("./validator.interface"), exports);
|
|
22
22
|
__exportStar(require("./lsm.interface"), exports);
|
|
23
|
+
__exportStar(require("./lead-validation-rules.interface"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/@types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/@types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,kDAAgC;AAChC,oEAAkD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare enum FieldValidator {
|
|
2
|
+
IS_NOT_UNDEFINED = "isNotUndefined",
|
|
3
|
+
NOT_EMPTY = "notEmpty",
|
|
4
|
+
TRUTHY = "truthy"
|
|
5
|
+
}
|
|
6
|
+
export interface FieldValidation {
|
|
7
|
+
field: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
message: string;
|
|
10
|
+
validator?: FieldValidator | string;
|
|
11
|
+
appliesTo?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface RequiredDocument {
|
|
14
|
+
document: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
appliesTo?: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface LeadValidationRules {
|
|
20
|
+
fieldValidations?: FieldValidation[];
|
|
21
|
+
requiredDocuments?: RequiredDocument[];
|
|
22
|
+
metadata?: {
|
|
23
|
+
description?: string;
|
|
24
|
+
version?: string;
|
|
25
|
+
lastModified?: Date;
|
|
26
|
+
lastModifiedBy?: string;
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldValidator = void 0;
|
|
4
|
+
var FieldValidator;
|
|
5
|
+
(function (FieldValidator) {
|
|
6
|
+
FieldValidator["IS_NOT_UNDEFINED"] = "isNotUndefined";
|
|
7
|
+
FieldValidator["NOT_EMPTY"] = "notEmpty";
|
|
8
|
+
FieldValidator["TRUTHY"] = "truthy";
|
|
9
|
+
})(FieldValidator || (exports.FieldValidator = FieldValidator = {}));
|
|
10
|
+
//# sourceMappingURL=lead-validation-rules.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead-validation-rules.interface.js","sourceRoot":"","sources":["../../../../src/common/@types/interfaces/lead-validation-rules.interface.ts"],"names":[],"mappings":";;;AAGA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qDAAmC,CAAA;IACnC,wCAAsB,CAAA;IACtB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
|
@@ -7,10 +7,13 @@ export declare const RENEWAL_STAGE_CANCELLED = "e9fda904-99f2-47be-8511-64a79c88
|
|
|
7
7
|
export declare const CLIENT_ROLE_ID = "93cc894d-0674-4960-b143-5d42ea904d50";
|
|
8
8
|
export declare const AGENT_ROLE_ID = "257eaeeb-580f-4bbc-ba0c-101a624e0ba6";
|
|
9
9
|
export declare const DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = "a68f36f9-7a47-43ea-99ce-ec40d5e61d87";
|
|
10
|
+
export declare const LEADS_MENU_CODE = "312";
|
|
10
11
|
export declare const DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
12
|
+
export declare const CONTACT_MENU_CODE = "311";
|
|
11
13
|
export declare const DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
12
14
|
export declare const DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = "b88bdb51-806b-4dbf-a9f9-bcfba52be9fe";
|
|
13
15
|
export declare const DRIVE_AGENT_MANAGEMENT_PARENT_FOLDER = "7969b55b-af16-4426-904b-9f83590bf22b";
|
|
16
|
+
export declare const AGENT_MANAGEMENT_MENU_CODE = "81";
|
|
14
17
|
export declare const DRIVE_UPLOADS_FOLDER = "33461f9e-7d78-4356-b9ce-20b863d97020";
|
|
15
18
|
export declare const RECEIPT_STAGE_PAID = "a9c5519f-fb2e-454d-be68-5ca14cf719c2";
|
|
16
19
|
export declare const RECEIPT_STAGE_CANCELLED = "28412630-5af7-4ded-818c-985e55df7a0b";
|
|
@@ -27,12 +30,25 @@ export declare const AGENT_DOCUMENT_FOLDERS: {
|
|
|
27
30
|
fid: string;
|
|
28
31
|
};
|
|
29
32
|
}[];
|
|
30
|
-
export declare const CLIENT_DOCUMENTS_FOLDERS: {
|
|
33
|
+
export declare const CLIENT_DOCUMENTS_FOLDERS: ({
|
|
31
34
|
name: string;
|
|
32
35
|
metadata: {
|
|
33
36
|
fid: string;
|
|
34
37
|
};
|
|
35
|
-
|
|
38
|
+
subFolders?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
metadata: {
|
|
42
|
+
fid: string;
|
|
43
|
+
};
|
|
44
|
+
subFolders: {
|
|
45
|
+
name: string;
|
|
46
|
+
metadata: {
|
|
47
|
+
fid: string;
|
|
48
|
+
};
|
|
49
|
+
scopes: string[];
|
|
50
|
+
}[];
|
|
51
|
+
})[];
|
|
36
52
|
export declare const CLIENTS_POLIZA_FOLDERS: {
|
|
37
53
|
[key: string]: {
|
|
38
54
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.CLIENTS_POLIZA_FOLDERS = exports.CLIENT_DOCUMENTS_FOLDERS = exports.AGENT_DOCUMENT_FOLDERS = exports.APP_UDIS_CURRENCY = exports.APP_USD_CURRENCY = exports.APP_MXN_CURRENCY = exports.AGENT_CONNECTION_STAGE_POSITIVE = exports.AGENT_CONNECTION_STAGE_INITIAL = exports.AGENT_RECRUITMENT_STAGE_POSITIVE = exports.AGENT_RECRUITMENT_STAGE_INITIAL = exports.RECEIPT_STAGE_CANCELLED = exports.RECEIPT_STAGE_PAID = exports.DRIVE_UPLOADS_FOLDER = exports.DRIVE_AGENT_MANAGEMENT_PARENT_FOLDER = exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = exports.DRIVE_TEMP_FOLDER = exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = exports.AGENT_ROLE_ID = exports.CLIENT_ROLE_ID = exports.RENEWAL_STAGE_CANCELLED = exports.RENEWAL_STAGE_POSITIVE = exports.RENEWAL_STAGE_INITIAL = exports.LEAD_STAGE_POSITIVE = exports.LEAD_STAGE_CANCELED = exports.LEAD_STAGE_INITIAL = void 0;
|
|
3
|
+
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.CLIENTS_POLIZA_FOLDERS = exports.CLIENT_DOCUMENTS_FOLDERS = exports.AGENT_DOCUMENT_FOLDERS = exports.APP_UDIS_CURRENCY = exports.APP_USD_CURRENCY = exports.APP_MXN_CURRENCY = exports.AGENT_CONNECTION_STAGE_POSITIVE = exports.AGENT_CONNECTION_STAGE_INITIAL = exports.AGENT_RECRUITMENT_STAGE_POSITIVE = exports.AGENT_RECRUITMENT_STAGE_INITIAL = exports.RECEIPT_STAGE_CANCELLED = exports.RECEIPT_STAGE_PAID = exports.DRIVE_UPLOADS_FOLDER = exports.AGENT_MANAGEMENT_MENU_CODE = exports.DRIVE_AGENT_MANAGEMENT_PARENT_FOLDER = exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = exports.DRIVE_TEMP_FOLDER = exports.CONTACT_MENU_CODE = exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = exports.LEADS_MENU_CODE = exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = exports.AGENT_ROLE_ID = exports.CLIENT_ROLE_ID = exports.RENEWAL_STAGE_CANCELLED = exports.RENEWAL_STAGE_POSITIVE = exports.RENEWAL_STAGE_INITIAL = exports.LEAD_STAGE_POSITIVE = exports.LEAD_STAGE_CANCELED = exports.LEAD_STAGE_INITIAL = void 0;
|
|
4
4
|
exports.LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844";
|
|
5
5
|
exports.LEAD_STAGE_CANCELED = "6a6cef5c-2530-407c-8d66-9030f5334551";
|
|
6
6
|
exports.LEAD_STAGE_POSITIVE = "46b04e7a-3775-4a00-abfa-c195d7e17b81";
|
|
@@ -10,10 +10,13 @@ exports.RENEWAL_STAGE_CANCELLED = "e9fda904-99f2-47be-8511-64a79c88be65";
|
|
|
10
10
|
exports.CLIENT_ROLE_ID = "93cc894d-0674-4960-b143-5d42ea904d50";
|
|
11
11
|
exports.AGENT_ROLE_ID = "257eaeeb-580f-4bbc-ba0c-101a624e0ba6";
|
|
12
12
|
exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = "a68f36f9-7a47-43ea-99ce-ec40d5e61d87";
|
|
13
|
+
exports.LEADS_MENU_CODE = "312";
|
|
13
14
|
exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
15
|
+
exports.CONTACT_MENU_CODE = "311";
|
|
14
16
|
exports.DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
15
17
|
exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = "b88bdb51-806b-4dbf-a9f9-bcfba52be9fe";
|
|
16
18
|
exports.DRIVE_AGENT_MANAGEMENT_PARENT_FOLDER = "7969b55b-af16-4426-904b-9f83590bf22b";
|
|
19
|
+
exports.AGENT_MANAGEMENT_MENU_CODE = "81";
|
|
17
20
|
exports.DRIVE_UPLOADS_FOLDER = "33461f9e-7d78-4356-b9ce-20b863d97020";
|
|
18
21
|
exports.RECEIPT_STAGE_PAID = "a9c5519f-fb2e-454d-be68-5ca14cf719c2";
|
|
19
22
|
exports.RECEIPT_STAGE_CANCELLED = "28412630-5af7-4ded-818c-985e55df7a0b";
|
|
@@ -62,6 +65,18 @@ exports.CLIENT_DOCUMENTS_FOLDERS = [
|
|
|
62
65
|
metadata: {
|
|
63
66
|
fid: "cliquote",
|
|
64
67
|
},
|
|
68
|
+
subFolders: [
|
|
69
|
+
{
|
|
70
|
+
name: "Cotizaciones aprobadas",
|
|
71
|
+
metadata: { fid: "cliquoteap" },
|
|
72
|
+
scopes: ["client", "lead"],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "Cotizaciones presentadas",
|
|
76
|
+
metadata: { fid: "cliquotepr" },
|
|
77
|
+
scopes: ["lead"],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
65
80
|
},
|
|
66
81
|
{
|
|
67
82
|
name: "Propuesta comercial",
|
|
@@ -96,6 +111,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
96
111
|
tid: "e1794ba3-892d-4c51-ad62-32dcf836873b",
|
|
97
112
|
},
|
|
98
113
|
subFolders: [
|
|
114
|
+
{ name: "Cotización de renovación" },
|
|
99
115
|
{ name: "Pagos Recibos" },
|
|
100
116
|
{ name: "Renovaciones" },
|
|
101
117
|
{ name: "Siniestros" },
|
|
@@ -116,6 +132,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
116
132
|
tid: "01072927-e48a-4fd0-9b06-5288ff7bc23d",
|
|
117
133
|
},
|
|
118
134
|
subFolders: [
|
|
135
|
+
{ name: "Cotización de renovación" },
|
|
119
136
|
{ name: "Pagos Recibos" },
|
|
120
137
|
{ name: "Renovaciones" },
|
|
121
138
|
{ name: "Siniestros" },
|
|
@@ -136,6 +153,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
136
153
|
tid: "e4e2f26f-8199-4e82-97f0-bdf1a6b6701c",
|
|
137
154
|
},
|
|
138
155
|
subFolders: [
|
|
156
|
+
{ name: "Cotización de renovación" },
|
|
139
157
|
{ name: "Pagos Recibos" },
|
|
140
158
|
{ name: "Renovaciones" },
|
|
141
159
|
{ name: "Siniestros" },
|
|
@@ -153,6 +171,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
153
171
|
tid: "f7ee33c0-4544-4242-84b3-dec4d28aeb04",
|
|
154
172
|
},
|
|
155
173
|
subFolders: [
|
|
174
|
+
{ name: "Cotización de renovación" },
|
|
156
175
|
{ name: "Pagos Recibos" },
|
|
157
176
|
{ name: "Renovaciones" },
|
|
158
177
|
{ name: "Siniestros" },
|
|
@@ -170,6 +189,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
170
189
|
tid: "facb913e-e1fb-49ae-9d38-ca064cb5bb7b",
|
|
171
190
|
},
|
|
172
191
|
subFolders: [
|
|
192
|
+
{ name: "Cotización de renovación" },
|
|
173
193
|
{ name: "Pagos Recibos" },
|
|
174
194
|
{ name: "Renovaciones" },
|
|
175
195
|
{ name: "Siniestros" },
|
|
@@ -187,6 +207,7 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
187
207
|
tid: "994fb9ea-b812-4412-b61c-bd637aa397cb",
|
|
188
208
|
},
|
|
189
209
|
subFolders: [
|
|
210
|
+
{ name: "Cotización de renovación" },
|
|
190
211
|
{ name: "Pagos Recibos" },
|
|
191
212
|
{ name: "Renovaciones" },
|
|
192
213
|
{ name: "Siniestros" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.contants.js","sourceRoot":"","sources":["../../../src/common/constants/app.contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE7D,QAAA,qBAAqB,GAAG,sCAAsC,CAAC;AAC/D,QAAA,sBAAsB,GAAG,sCAAsC,CAAC;AAChE,QAAA,uBAAuB,GAAG,sCAAsC,CAAC;AAEjE,QAAA,cAAc,GAAG,sCAAsC,CAAC;AACxD,QAAA,aAAa,GAAG,sCAAsC,CAAC;AAEvD,QAAA,oCAAoC,GAC/C,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"app.contants.js","sourceRoot":"","sources":["../../../src/common/constants/app.contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE7D,QAAA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,EAAE,eAAe,EAAE;YACzB,EAAE,IAAI,EAAE,cAAc,EAAE;YACxB,EAAE,IAAI,EAAE,YAAY,EAAE;YACtB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,YAAY,EAAE;YACtB,EAAE,IAAI,EAAE,2BAA2B,EAAE;YACrC,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,UAAU,EAAE;SACrB;KACF;CACF,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACxC,qBAAqB;IACrB,wCAAwC;IACxC,oCAAoC;IACpC,6CAA6C;IAC7C,kCAAkC;IAClC,qDAAqD;IACrD,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,SAAS;IACT,sDAAsD;IACtD,kCAAkC;IAClC,yBAAyB;IACzB,kCAAkC;IAClC,6BAA6B;IAC7B,QAAQ;IACR,WAAW;IACX,6DAA6D;IAC7D,uBAAuB;CACxB,CAAC"}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./regex.constant"), exports);
|
|
18
18
|
__exportStar(require("./app.contants"), exports);
|
|
19
19
|
__exportStar(require("./string.constant"), exports);
|
|
20
|
+
__exportStar(require("./roles.constants"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const PERMISSION_CODES: {
|
|
2
|
+
1: string;
|
|
3
|
+
2: string;
|
|
4
|
+
3: string;
|
|
5
|
+
4: string;
|
|
6
|
+
5: string;
|
|
7
|
+
6: string;
|
|
8
|
+
7: string;
|
|
9
|
+
8: string;
|
|
10
|
+
9: string;
|
|
11
|
+
10: string;
|
|
12
|
+
21: string;
|
|
13
|
+
22: string;
|
|
14
|
+
23: string;
|
|
15
|
+
24: string;
|
|
16
|
+
31: string;
|
|
17
|
+
"311": string;
|
|
18
|
+
"312": string;
|
|
19
|
+
32: string;
|
|
20
|
+
321: string;
|
|
21
|
+
322: string;
|
|
22
|
+
323: string;
|
|
23
|
+
324: string;
|
|
24
|
+
3241: string;
|
|
25
|
+
41: string;
|
|
26
|
+
411: string;
|
|
27
|
+
412: string;
|
|
28
|
+
42: string;
|
|
29
|
+
421: string;
|
|
30
|
+
422: string;
|
|
31
|
+
51: string;
|
|
32
|
+
52: string;
|
|
33
|
+
53: string;
|
|
34
|
+
54: string;
|
|
35
|
+
55: string;
|
|
36
|
+
56: string;
|
|
37
|
+
61: string;
|
|
38
|
+
62: string;
|
|
39
|
+
63: string;
|
|
40
|
+
64: string;
|
|
41
|
+
65: string;
|
|
42
|
+
66: string;
|
|
43
|
+
71: string;
|
|
44
|
+
72: string;
|
|
45
|
+
73: string;
|
|
46
|
+
74: string;
|
|
47
|
+
75: string;
|
|
48
|
+
76: string;
|
|
49
|
+
"81": string;
|
|
50
|
+
82: string;
|
|
51
|
+
83: string;
|
|
52
|
+
831: string;
|
|
53
|
+
8311: string;
|
|
54
|
+
83111: string;
|
|
55
|
+
831111: string;
|
|
56
|
+
831112: string;
|
|
57
|
+
831113: string;
|
|
58
|
+
83112: string;
|
|
59
|
+
83113: string;
|
|
60
|
+
831131: string;
|
|
61
|
+
831132: string;
|
|
62
|
+
831133: string;
|
|
63
|
+
831134: string;
|
|
64
|
+
831135: string;
|
|
65
|
+
831136: string;
|
|
66
|
+
831137: string;
|
|
67
|
+
831138: string;
|
|
68
|
+
831139: string;
|
|
69
|
+
831140: string;
|
|
70
|
+
831141: string;
|
|
71
|
+
831142: string;
|
|
72
|
+
831143: string;
|
|
73
|
+
831144: string;
|
|
74
|
+
8312: string;
|
|
75
|
+
8313: string;
|
|
76
|
+
8314: string;
|
|
77
|
+
83141: string;
|
|
78
|
+
83142: string;
|
|
79
|
+
83143: string;
|
|
80
|
+
83144: string;
|
|
81
|
+
83145: string;
|
|
82
|
+
84: string;
|
|
83
|
+
85: string;
|
|
84
|
+
851: string;
|
|
85
|
+
852: string;
|
|
86
|
+
91: string;
|
|
87
|
+
911: string;
|
|
88
|
+
912: string;
|
|
89
|
+
913: string;
|
|
90
|
+
914: string;
|
|
91
|
+
915: string;
|
|
92
|
+
916: string;
|
|
93
|
+
917: string;
|
|
94
|
+
918: string;
|
|
95
|
+
919: string;
|
|
96
|
+
92: string;
|
|
97
|
+
921: string;
|
|
98
|
+
922: string;
|
|
99
|
+
101: string;
|
|
100
|
+
1011: string;
|
|
101
|
+
1012: string;
|
|
102
|
+
102: string;
|
|
103
|
+
1021: string;
|
|
104
|
+
1022: string;
|
|
105
|
+
1023: string;
|
|
106
|
+
1024: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const PERMISSION_PATHS: {};
|