@camunda/ccma-shared-types 0.0.1
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/_tests/constants/pre89EnvVarMapping.const.spec.d.ts +1 -0
- package/dist/_tests/types/SuspendStrategy.type.spec.d.ts +1 -0
- package/dist/_tests/utils/string-validation.utils.spec.d.ts +1 -0
- package/dist/_tests/utils/versionCheck.utils.spec.d.ts +1 -0
- package/dist/config/camundi-permission-rules.d.ts +3 -0
- package/dist/config/camundi-permission-rules.js +44 -0
- package/dist/config/camundi-permission-rules.js.map +7 -0
- package/dist/config/camundi-permission-rules.types.d.ts +52 -0
- package/dist/config/camundi-permission-rules.types.js +9 -0
- package/dist/config/camundi-permission-rules.types.js.map +7 -0
- package/dist/constants/duration.const.d.ts +5 -0
- package/dist/constants/duration.const.js +13 -0
- package/dist/constants/duration.const.js.map +7 -0
- package/dist/constants/misc.const.d.ts +73 -0
- package/dist/constants/misc.const.js +115 -0
- package/dist/constants/misc.const.js.map +7 -0
- package/dist/constants/pre89EnvVarMapping.const.d.ts +44 -0
- package/dist/constants/pre89EnvVarMapping.const.js +72 -0
- package/dist/constants/pre89EnvVarMapping.const.js.map +7 -0
- package/dist/constants/privateLinkRegions.const.d.ts +1 -0
- package/dist/constants/privateLinkRegions.const.js +40 -0
- package/dist/constants/privateLinkRegions.const.js.map +7 -0
- package/dist/dtos/AlertSubscription.dto.d.ts +37 -0
- package/dist/dtos/AlertSubscription.dto.js +22 -0
- package/dist/dtos/AlertSubscription.dto.js.map +7 -0
- package/dist/dtos/Audit.dto.d.ts +15 -0
- package/dist/dtos/Audit.dto.js +1 -0
- package/dist/dtos/Audit.dto.js.map +7 -0
- package/dist/dtos/Auth0ResourceServer.dto.d.ts +9 -0
- package/dist/dtos/Auth0ResourceServer.dto.js +1 -0
- package/dist/dtos/Auth0ResourceServer.dto.js.map +7 -0
- package/dist/dtos/Backup.dto.d.ts +12 -0
- package/dist/dtos/Backup.dto.js +1 -0
- package/dist/dtos/Backup.dto.js.map +7 -0
- package/dist/dtos/BackupSchedule.dto.d.ts +4 -0
- package/dist/dtos/BackupSchedule.dto.js +1 -0
- package/dist/dtos/BackupSchedule.dto.js.map +7 -0
- package/dist/dtos/ByomClient.dto.d.ts +17 -0
- package/dist/dtos/ByomClient.dto.js +1 -0
- package/dist/dtos/ByomClient.dto.js.map +7 -0
- package/dist/dtos/ClusterIpWhitelist.dto.d.ts +4 -0
- package/dist/dtos/ClusterIpWhitelist.dto.js +1 -0
- package/dist/dtos/ClusterIpWhitelist.dto.js.map +7 -0
- package/dist/dtos/ClusterPlan.dto.d.ts +10 -0
- package/dist/dtos/ClusterPlan.dto.js +1 -0
- package/dist/dtos/ClusterPlan.dto.js.map +7 -0
- package/dist/dtos/ClusterPlanType.dto.d.ts +15 -0
- package/dist/dtos/ClusterPlanType.dto.js +1 -0
- package/dist/dtos/ClusterPlanType.dto.js.map +7 -0
- package/dist/dtos/CommonCluster.dto.d.ts +66 -0
- package/dist/dtos/CommonCluster.dto.js +1 -0
- package/dist/dtos/CommonCluster.dto.js.map +7 -0
- package/dist/dtos/ConsoleCluster.dto.d.ts +16 -0
- package/dist/dtos/ConsoleCluster.dto.js +1 -0
- package/dist/dtos/ConsoleCluster.dto.js.map +7 -0
- package/dist/dtos/EarlyAccessFeature.dto.d.ts +18 -0
- package/dist/dtos/EarlyAccessFeature.dto.js +1 -0
- package/dist/dtos/EarlyAccessFeature.dto.js.map +7 -0
- package/dist/dtos/Generations.dto.d.ts +27 -0
- package/dist/dtos/Generations.dto.js +21 -0
- package/dist/dtos/Generations.dto.js.map +7 -0
- package/dist/dtos/Hdp.dto.d.ts +25 -0
- package/dist/dtos/Hdp.dto.js +1 -0
- package/dist/dtos/Hdp.dto.js.map +7 -0
- package/dist/dtos/K8sContext.dto.d.ts +45 -0
- package/dist/dtos/K8sContext.dto.js +1 -0
- package/dist/dtos/K8sContext.dto.js.map +7 -0
- package/dist/dtos/Meta.dto.d.ts +3 -0
- package/dist/dtos/Meta.dto.js +1 -0
- package/dist/dtos/Meta.dto.js.map +7 -0
- package/dist/dtos/Organization.dto.d.ts +51 -0
- package/dist/dtos/Organization.dto.js +1 -0
- package/dist/dtos/Organization.dto.js.map +7 -0
- package/dist/dtos/OrganizationMember.dto.d.ts +11 -0
- package/dist/dtos/OrganizationMember.dto.js +1 -0
- package/dist/dtos/OrganizationMember.dto.js.map +7 -0
- package/dist/dtos/OrganizationToSalesPlan.dto.d.ts +19 -0
- package/dist/dtos/OrganizationToSalesPlan.dto.js +1 -0
- package/dist/dtos/OrganizationToSalesPlan.dto.js.map +7 -0
- package/dist/dtos/SalesPlan.dto.d.ts +77 -0
- package/dist/dtos/SalesPlan.dto.js +119 -0
- package/dist/dtos/SalesPlan.dto.js.map +7 -0
- package/dist/dtos/SecureConnectivity.dto.d.ts +42 -0
- package/dist/dtos/SecureConnectivity.dto.js +1 -0
- package/dist/dtos/SecureConnectivity.dto.js.map +7 -0
- package/dist/dtos/Signup.dto.d.ts +38 -0
- package/dist/dtos/Signup.dto.js +1 -0
- package/dist/dtos/Signup.dto.js.map +7 -0
- package/dist/dtos/UsageAlert.dto.d.ts +25 -0
- package/dist/dtos/UsageAlert.dto.js +20 -0
- package/dist/dtos/UsageAlert.dto.js.map +7 -0
- package/dist/dtos/UserMetaData.dto.d.ts +12 -0
- package/dist/dtos/UserMetaData.dto.js +1 -0
- package/dist/dtos/UserMetaData.dto.js.map +7 -0
- package/dist/enums/AlertSubscription.enum.d.ts +9 -0
- package/dist/enums/AlertSubscription.enum.js +16 -0
- package/dist/enums/AlertSubscription.enum.js.map +7 -0
- package/dist/enums/AuditEntity.enum.d.ts +48 -0
- package/dist/enums/AuditEntity.enum.js +55 -0
- package/dist/enums/AuditEntity.enum.js.map +7 -0
- package/dist/enums/AuditService.enum.d.ts +4 -0
- package/dist/enums/AuditService.enum.js +9 -0
- package/dist/enums/AuditService.enum.js.map +7 -0
- package/dist/enums/BackupStatus.enum.d.ts +6 -0
- package/dist/enums/BackupStatus.enum.js +11 -0
- package/dist/enums/BackupStatus.enum.js.map +7 -0
- package/dist/enums/ClusterBulkOperation.enum.d.ts +14 -0
- package/dist/enums/ClusterBulkOperation.enum.js +21 -0
- package/dist/enums/ClusterBulkOperation.enum.js.map +7 -0
- package/dist/enums/ClusterClientPermissions.enum.d.ts +7 -0
- package/dist/enums/ClusterClientPermissions.enum.js +12 -0
- package/dist/enums/ClusterClientPermissions.enum.js.map +7 -0
- package/dist/enums/ClusterEncryptionKey.enum.d.ts +6 -0
- package/dist/enums/ClusterEncryptionKey.enum.js +11 -0
- package/dist/enums/ClusterEncryptionKey.enum.js.map +7 -0
- package/dist/enums/ClusterStatus.enum.d.ts +8 -0
- package/dist/enums/ClusterStatus.enum.js +13 -0
- package/dist/enums/ClusterStatus.enum.js.map +7 -0
- package/dist/enums/ConsoleApiClientPermission.enum.d.ts +35 -0
- package/dist/enums/ConsoleApiClientPermission.enum.js +40 -0
- package/dist/enums/ConsoleApiClientPermission.enum.js.map +7 -0
- package/dist/enums/ErrorType.enum.d.ts +12 -0
- package/dist/enums/ErrorType.enum.js +17 -0
- package/dist/enums/ErrorType.enum.js.map +7 -0
- package/dist/enums/OrganizationRole.enum.d.ts +30 -0
- package/dist/enums/OrganizationRole.enum.js +35 -0
- package/dist/enums/OrganizationRole.enum.js.map +7 -0
- package/dist/enums/Sse.enum.d.ts +19 -0
- package/dist/enums/Sse.enum.js +26 -0
- package/dist/enums/Sse.enum.js.map +7 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +324 -0
- package/dist/index.js.map +7 -0
- package/dist/permissions/accounts.permissions.d.ts +171 -0
- package/dist/permissions/accounts.permissions.js +562 -0
- package/dist/permissions/accounts.permissions.js.map +7 -0
- package/dist/permissions/alert-distributor.permissions.d.ts +26 -0
- package/dist/permissions/alert-distributor.permissions.js +68 -0
- package/dist/permissions/alert-distributor.permissions.js.map +7 -0
- package/dist/permissions/auditlogger.permissions.d.ts +16 -0
- package/dist/permissions/auditlogger.permissions.js +42 -0
- package/dist/permissions/auditlogger.permissions.js.map +7 -0
- package/dist/permissions/combo.d.ts +4 -0
- package/dist/permissions/combo.js +299 -0
- package/dist/permissions/combo.js.map +7 -0
- package/dist/permissions/console.permissions.d.ts +114 -0
- package/dist/permissions/console.permissions.js +369 -0
- package/dist/permissions/console.permissions.js.map +7 -0
- package/dist/permissions/notification.permissions.d.ts +36 -0
- package/dist/permissions/notification.permissions.js +101 -0
- package/dist/permissions/notification.permissions.js.map +7 -0
- package/dist/permissions/profile.permissions.d.ts +18 -0
- package/dist/permissions/profile.permissions.js +272 -0
- package/dist/permissions/profile.permissions.js.map +7 -0
- package/dist/permissions/roleExpansion.utils.d.ts +10 -0
- package/dist/permissions/roleExpansion.utils.js +27 -0
- package/dist/permissions/roleExpansion.utils.js.map +7 -0
- package/dist/types/AuditData.type.d.ts +20 -0
- package/dist/types/AuditData.type.js +1 -0
- package/dist/types/AuditData.type.js.map +7 -0
- package/dist/types/Bot.types.d.ts +44 -0
- package/dist/types/Bot.types.js +1 -0
- package/dist/types/Bot.types.js.map +7 -0
- package/dist/types/BulkOperation.type.d.ts +57 -0
- package/dist/types/BulkOperation.type.js +19 -0
- package/dist/types/BulkOperation.type.js.map +7 -0
- package/dist/types/C8ClusterComponentVersions.type.d.ts +24 -0
- package/dist/types/C8ClusterComponentVersions.type.js +26 -0
- package/dist/types/C8ClusterComponentVersions.type.js.map +7 -0
- package/dist/types/CamundaClusterLabels.type.d.ts +13 -0
- package/dist/types/CamundaClusterLabels.type.js +12 -0
- package/dist/types/CamundaClusterLabels.type.js.map +7 -0
- package/dist/types/Chargebee.type.d.ts +19 -0
- package/dist/types/Chargebee.type.js +15 -0
- package/dist/types/Chargebee.type.js.map +7 -0
- package/dist/types/ClusterBulkOperation.type.d.ts +67 -0
- package/dist/types/ClusterBulkOperation.type.js +1 -0
- package/dist/types/ClusterBulkOperation.type.js.map +7 -0
- package/dist/types/ClusterModification.type.d.ts +26 -0
- package/dist/types/ClusterModification.type.js +1 -0
- package/dist/types/ClusterModification.type.js.map +7 -0
- package/dist/types/ClusterPlanModification.type.d.ts +22 -0
- package/dist/types/ClusterPlanModification.type.js +1 -0
- package/dist/types/ClusterPlanModification.type.js.map +7 -0
- package/dist/types/ClusterPlanTypeAvailabilityClass.type.d.ts +7 -0
- package/dist/types/ClusterPlanTypeAvailabilityClass.type.js +21 -0
- package/dist/types/ClusterPlanTypeAvailabilityClass.type.js.map +7 -0
- package/dist/types/ClusterPlanTypeCategory.type.d.ts +13 -0
- package/dist/types/ClusterPlanTypeCategory.type.js +40 -0
- package/dist/types/ClusterPlanTypeCategory.type.js.map +7 -0
- package/dist/types/ClusterPlanTypesToConfig.type.d.ts +7 -0
- package/dist/types/ClusterPlanTypesToConfig.type.js +1 -0
- package/dist/types/ClusterPlanTypesToConfig.type.js.map +7 -0
- package/dist/types/ClusterPlanTypesToReserved.type.d.ts +3 -0
- package/dist/types/ClusterPlanTypesToReserved.type.js +1 -0
- package/dist/types/ClusterPlanTypesToReserved.type.js.map +7 -0
- package/dist/types/ClusterUsageMetrics.type.d.ts +49 -0
- package/dist/types/ClusterUsageMetrics.type.js +1 -0
- package/dist/types/ClusterUsageMetrics.type.js.map +7 -0
- package/dist/types/ConsoleSelfManaged.type.d.ts +200 -0
- package/dist/types/ConsoleSelfManaged.type.js +93 -0
- package/dist/types/ConsoleSelfManaged.type.js.map +7 -0
- package/dist/types/ConsoleSelfManagedAdminApi.type.d.ts +111 -0
- package/dist/types/ConsoleSelfManagedAdminApi.type.js +1 -0
- package/dist/types/ConsoleSelfManagedAdminApi.type.js.map +7 -0
- package/dist/types/Dashboard.types.d.ts +23 -0
- package/dist/types/Dashboard.types.js +1 -0
- package/dist/types/Dashboard.types.js.map +7 -0
- package/dist/types/EnterpriseIncludingValueMetrics.type.d.ts +5 -0
- package/dist/types/EnterpriseIncludingValueMetrics.type.js +1 -0
- package/dist/types/EnterpriseIncludingValueMetrics.type.js.map +7 -0
- package/dist/types/OrganizationPermission.type.d.ts +64 -0
- package/dist/types/OrganizationPermission.type.js +784 -0
- package/dist/types/OrganizationPermission.type.js.map +7 -0
- package/dist/types/Roles.d.ts +5 -0
- package/dist/types/Roles.js +9 -0
- package/dist/types/Roles.js.map +7 -0
- package/dist/types/SalesPlanType.type.d.ts +36 -0
- package/dist/types/SalesPlanType.type.js +74 -0
- package/dist/types/SalesPlanType.type.js.map +7 -0
- package/dist/types/SpamDetection.type.d.ts +2 -0
- package/dist/types/SpamDetection.type.js +8 -0
- package/dist/types/SpamDetection.type.js.map +7 -0
- package/dist/types/SseEvent.type.d.ts +96 -0
- package/dist/types/SseEvent.type.js +1 -0
- package/dist/types/SseEvent.type.js.map +7 -0
- package/dist/types/Stats.types.d.ts +86 -0
- package/dist/types/Stats.types.js +1 -0
- package/dist/types/Stats.types.js.map +7 -0
- package/dist/types/Survey.type.d.ts +38 -0
- package/dist/types/Survey.type.js +10 -0
- package/dist/types/Survey.type.js.map +7 -0
- package/dist/types/SuspendStrategy.type.d.ts +17 -0
- package/dist/types/SuspendStrategy.type.js +11 -0
- package/dist/types/SuspendStrategy.type.js.map +7 -0
- package/dist/types/Telemetry.type.d.ts +89 -0
- package/dist/types/Telemetry.type.js +218 -0
- package/dist/types/Telemetry.type.js.map +7 -0
- package/dist/types/User.type.d.ts +79 -0
- package/dist/types/User.type.js +12 -0
- package/dist/types/User.type.js.map +7 -0
- package/dist/types/ValueMetrics.type.d.ts +26 -0
- package/dist/types/ValueMetrics.type.js +1 -0
- package/dist/types/ValueMetrics.type.js.map +7 -0
- package/dist/types/hdp.types.d.ts +241 -0
- package/dist/types/hdp.types.js +16 -0
- package/dist/types/hdp.types.js.map +7 -0
- package/dist/types/notification.type.d.ts +71 -0
- package/dist/types/notification.type.js +37 -0
- package/dist/types/notification.type.js.map +7 -0
- package/dist/utils/PasswordPolicy.d.ts +13 -0
- package/dist/utils/PasswordPolicy.js +55 -0
- package/dist/utils/PasswordPolicy.js.map +7 -0
- package/dist/utils/camundiPermissionAugmenter.utils.d.ts +25 -0
- package/dist/utils/camundiPermissionAugmenter.utils.js +70 -0
- package/dist/utils/camundiPermissionAugmenter.utils.js.map +7 -0
- package/dist/utils/console-sm.utils.d.ts +6 -0
- package/dist/utils/console-sm.utils.js +30 -0
- package/dist/utils/console-sm.utils.js.map +7 -0
- package/dist/utils/enterprise-connection.utils.d.ts +7 -0
- package/dist/utils/enterprise-connection.utils.js +34 -0
- package/dist/utils/enterprise-connection.utils.js.map +7 -0
- package/dist/utils/labelValidator.utils.d.ts +5 -0
- package/dist/utils/labelValidator.utils.js +17 -0
- package/dist/utils/labelValidator.utils.js.map +7 -0
- package/dist/utils/objectMerge.utils.d.ts +20 -0
- package/dist/utils/objectMerge.utils.js +90 -0
- package/dist/utils/objectMerge.utils.js.map +7 -0
- package/dist/utils/orgs/OrgHelper.d.ts +4 -0
- package/dist/utils/orgs/OrgHelper.js +234 -0
- package/dist/utils/orgs/OrgHelper.js.map +7 -0
- package/dist/utils/settledPromises.util.d.ts +13 -0
- package/dist/utils/settledPromises.util.js +26 -0
- package/dist/utils/settledPromises.util.js.map +7 -0
- package/dist/utils/string-validation.utils.d.ts +44 -0
- package/dist/utils/string-validation.utils.js +94 -0
- package/dist/utils/string-validation.utils.js.map +7 -0
- package/dist/utils/user.utils.d.ts +10 -0
- package/dist/utils/user.utils.js +53 -0
- package/dist/utils/user.utils.js.map +7 -0
- package/dist/utils/versionCheck.utils.d.ts +15 -0
- package/dist/utils/versionCheck.utils.js +75 -0
- package/dist/utils/versionCheck.utils.js.map +7 -0
- package/package.json +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const CONFIG = {
|
|
2
|
+
departmentRules: {
|
|
3
|
+
"205882305": ["accounts:read"],
|
|
4
|
+
// CS
|
|
5
|
+
Products: ["console:admin:readonly", "accounts:read"],
|
|
6
|
+
Executive: ["accounts:read"],
|
|
7
|
+
"205882307": ["accounts:read"],
|
|
8
|
+
// RevOps
|
|
9
|
+
"259633605": ["accounts:read"]
|
|
10
|
+
// Sales
|
|
11
|
+
},
|
|
12
|
+
divisionRules: {
|
|
13
|
+
Engineering: ["console:admin:readonly"],
|
|
14
|
+
"259633608": [
|
|
15
|
+
"accounts:connections:create",
|
|
16
|
+
"accounts:connections:update",
|
|
17
|
+
"support:agent"
|
|
18
|
+
],
|
|
19
|
+
// Support
|
|
20
|
+
"259633611": [
|
|
21
|
+
"accounts:trialExtender",
|
|
22
|
+
"accounts:limitExtender",
|
|
23
|
+
"support:agent"
|
|
24
|
+
]
|
|
25
|
+
// Pre-Sales as per https://confluence.camunda.com/spaces/HAN/pages/168660217/Adjust+C8+SaaS+permissions+and+sales+plan#AdjustC8SaaSpermissionsandsalesplan-DetailsperRole
|
|
26
|
+
},
|
|
27
|
+
subdivisionRules: {
|
|
28
|
+
"256909487": ["accounts:admin", "console:admin", "consoleTeam"],
|
|
29
|
+
// console team
|
|
30
|
+
"Engineering Management": [
|
|
31
|
+
"accounts:addSafeRoles",
|
|
32
|
+
"accounts:orgCreator",
|
|
33
|
+
"console:C8ReleaseManager"
|
|
34
|
+
],
|
|
35
|
+
// Engineering Management
|
|
36
|
+
"258049291": ["console:clusterPlanManager", "console:operationsEngineer"]
|
|
37
|
+
// controller team
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var camundi_permission_rules_default = CONFIG;
|
|
41
|
+
export {
|
|
42
|
+
camundi_permission_rules_default as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=camundi-permission-rules.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/config/camundi-permission-rules.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type { CamundiPermissionRules } from './camundi-permission-rules.types.js'\n\nconst CONFIG: CamundiPermissionRules = {\n departmentRules: {\n '205882305': ['accounts:read'], // CS\n Products: ['console:admin:readonly', 'accounts:read'],\n Executive: ['accounts:read'],\n '205882307': ['accounts:read'], // RevOps\n '259633605': ['accounts:read'], // Sales\n },\n divisionRules: {\n Engineering: ['console:admin:readonly'],\n '259633608': [\n 'accounts:connections:create',\n 'accounts:connections:update',\n 'support:agent',\n ], // Support\n '259633611': [\n 'accounts:trialExtender',\n 'accounts:limitExtender',\n 'support:agent',\n ], // Pre-Sales as per https://confluence.camunda.com/spaces/HAN/pages/168660217/Adjust+C8+SaaS+permissions+and+sales+plan#AdjustC8SaaSpermissionsandsalesplan-DetailsperRole\n },\n subdivisionRules: {\n '256909487': ['accounts:admin', 'console:admin', 'consoleTeam'], // console team\n 'Engineering Management': [\n 'accounts:addSafeRoles',\n 'accounts:orgCreator',\n 'console:C8ReleaseManager',\n ], // Engineering Management\n '258049291': ['console:clusterPlanManager', 'console:operationsEngineer'], // controller team\n },\n}\nexport default CONFIG\n"],
|
|
5
|
+
"mappings": "AAQA,MAAM,SAAiC;AAAA,EACrC,iBAAiB;AAAA,IACf,aAAa,CAAC,eAAe;AAAA;AAAA,IAC7B,UAAU,CAAC,0BAA0B,eAAe;AAAA,IACpD,WAAW,CAAC,eAAe;AAAA,IAC3B,aAAa,CAAC,eAAe;AAAA;AAAA,IAC7B,aAAa,CAAC,eAAe;AAAA;AAAA,EAC/B;AAAA,EACA,eAAe;AAAA,IACb,aAAa,CAAC,wBAAwB;AAAA,IACtC,aAAa;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA,IACA,aAAa;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB,aAAa,CAAC,kBAAkB,iBAAiB,aAAa;AAAA;AAAA,IAC9D,0BAA0B;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA,IACA,aAAa,CAAC,8BAA8B,4BAA4B;AAAA;AAAA,EAC1E;AACF;AACA,IAAO,mCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Roles } from '../types/Roles.js';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for automatic permission augmentation for Camundis
|
|
4
|
+
* based on their organizational structure (department, division, subdivision).
|
|
5
|
+
*/
|
|
6
|
+
export interface CamundiPermissionRules {
|
|
7
|
+
/**
|
|
8
|
+
* Rules based on department ID or name
|
|
9
|
+
* Key: department ID (e.g., "205882305") or department name (e.g., "Products")
|
|
10
|
+
* Value: array of roles to grant
|
|
11
|
+
*/
|
|
12
|
+
departmentRules: Record<string, Roles[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Rules based on division name
|
|
15
|
+
* Key: division name (e.g., "Engineering")
|
|
16
|
+
* Value: array of roles to grant
|
|
17
|
+
*/
|
|
18
|
+
divisionRules: Record<string, Roles[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Rules based on subdivision ID or name
|
|
21
|
+
* Key: subdivision ID (e.g., "256909487") or name
|
|
22
|
+
* Value: array of roles to grant
|
|
23
|
+
*/
|
|
24
|
+
subdivisionRules: Record<string, Roles[]>;
|
|
25
|
+
}
|
|
26
|
+
export declare const DEPARTMENT = "/work/department";
|
|
27
|
+
export declare const DIVISION = "/work/customColumns/column_1629151319875";
|
|
28
|
+
export declare const SUB_DIVISION = "/work/customColumns/column_1642024758438";
|
|
29
|
+
/**
|
|
30
|
+
* HiBob employee interface (subset of fields we need)
|
|
31
|
+
*/
|
|
32
|
+
export interface HibobEmployee {
|
|
33
|
+
id: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
'/root/email'?: {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
[DIVISION]?: {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
[SUB_DIVISION]?: {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
[DEPARTMENT]?: {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
work: {
|
|
48
|
+
reportsTo: {
|
|
49
|
+
email?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const DEPARTMENT = "/work/department";
|
|
2
|
+
const DIVISION = "/work/customColumns/column_1629151319875";
|
|
3
|
+
const SUB_DIVISION = "/work/customColumns/column_1642024758438";
|
|
4
|
+
export {
|
|
5
|
+
DEPARTMENT,
|
|
6
|
+
DIVISION,
|
|
7
|
+
SUB_DIVISION
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=camundi-permission-rules.types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/config/camundi-permission-rules.types.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type { Roles } from '../types/Roles.js'\n\n/**\n * Configuration for automatic permission augmentation for Camundis\n * based on their organizational structure (department, division, subdivision).\n */\nexport interface CamundiPermissionRules {\n /**\n * Rules based on department ID or name\n * Key: department ID (e.g., \"205882305\") or department name (e.g., \"Products\")\n * Value: array of roles to grant\n */\n departmentRules: Record<string, Roles[]>\n\n /**\n * Rules based on division name\n * Key: division name (e.g., \"Engineering\")\n * Value: array of roles to grant\n */\n divisionRules: Record<string, Roles[]>\n\n /**\n * Rules based on subdivision ID or name\n * Key: subdivision ID (e.g., \"256909487\") or name\n * Value: array of roles to grant\n */\n subdivisionRules: Record<string, Roles[]>\n}\n\n// HiBob field paths as constants\nexport const DEPARTMENT = '/work/department'\nexport const DIVISION = '/work/customColumns/column_1629151319875'\nexport const SUB_DIVISION = '/work/customColumns/column_1642024758438'\n\n/**\n * HiBob employee interface (subset of fields we need)\n */\nexport interface HibobEmployee {\n id: string\n email?: string\n '/root/email'?: {\n value: string\n }\n [DIVISION]?: {\n value: string\n }\n [SUB_DIVISION]?: {\n value: string\n }\n [DEPARTMENT]?: {\n value: string\n }\n work: {\n reportsTo: {\n email?: string\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "AAoCO,MAAM,aAAa;AACnB,MAAM,WAAW;AACjB,MAAM,eAAe;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants/duration.const.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nexport const SECOND = 1000\nexport const MINUTE = 60 * SECOND\nexport const HOUR = 60 * MINUTE\nexport const DAY = 24 * HOUR\nexport const WEEK = 7 * DAY\n"],
|
|
5
|
+
"mappings": "AAMO,MAAM,SAAS;AACf,MAAM,SAAS,KAAK;AACpB,MAAM,OAAO,KAAK;AAClB,MAAM,MAAM,KAAK;AACjB,MAAM,OAAO,IAAI;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const CONSOLE_API_USER_ID = "console-api";
|
|
2
|
+
export declare const TEMPORARY_CLUSTER_NAME = "Get Started";
|
|
3
|
+
export type Stage = 'local' | 'dev' | 'int' | 'prod';
|
|
4
|
+
export declare const HOTBACKUP_MIN_CREATE_PERIOD: number;
|
|
5
|
+
export declare const SECRETS_MAX_LENGTH = 4096;
|
|
6
|
+
export declare const FIRSTNAME_LASTNAME_MAX_LENGTH = 255;
|
|
7
|
+
export declare const STARTING_PRICE_PER_MONTH_IN_EURO = 99;
|
|
8
|
+
export declare const MAX_LENGTH_CLUSTER_NAME = 50;
|
|
9
|
+
export declare const NAMES_OF_ENTERPRISE_SALESPLANS_WITH_SLEEPING_CLUSTERS: string[];
|
|
10
|
+
export declare const MINIMUM_EYEPAIRS: {
|
|
11
|
+
CLUSTER_DELETION: number;
|
|
12
|
+
CLUSTER_GENERATION_UPDATE: number;
|
|
13
|
+
CLUSTER_PLAN_UPDATE: number;
|
|
14
|
+
CLUSTER_PLAN_TYPE_UPDATE: number;
|
|
15
|
+
CLUSTER_PLAN_MODIFICATION: number;
|
|
16
|
+
CLUSTER_MODIFICATION: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const MAX_HARDWARE_PACKAGE_COUNT = 4;
|
|
19
|
+
export declare const SENTRY: {
|
|
20
|
+
dsn: {
|
|
21
|
+
trial: string;
|
|
22
|
+
console: {
|
|
23
|
+
frontend: string;
|
|
24
|
+
backend: string;
|
|
25
|
+
};
|
|
26
|
+
accounts: {
|
|
27
|
+
frontend: string;
|
|
28
|
+
backend: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
applicationKey: {
|
|
32
|
+
console: string;
|
|
33
|
+
accounts: string;
|
|
34
|
+
};
|
|
35
|
+
enabled: string[];
|
|
36
|
+
ignoreTransactions: string[];
|
|
37
|
+
ignoreErrors: string[];
|
|
38
|
+
config: {
|
|
39
|
+
tracesSampleRate: {
|
|
40
|
+
frontend: {
|
|
41
|
+
accounts: number[];
|
|
42
|
+
console: number[];
|
|
43
|
+
};
|
|
44
|
+
backend: {
|
|
45
|
+
accounts: number[];
|
|
46
|
+
console: number[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
replaysSessionSampleRate: {
|
|
50
|
+
frontend: {
|
|
51
|
+
accounts: number[];
|
|
52
|
+
console: number[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
replaysOnErrorSampleRate: {
|
|
56
|
+
frontend: {
|
|
57
|
+
accounts: number[];
|
|
58
|
+
console: number[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
profilesSampleRate: {
|
|
62
|
+
backend: {
|
|
63
|
+
accounts: number[];
|
|
64
|
+
console: number[];
|
|
65
|
+
};
|
|
66
|
+
frontend: {
|
|
67
|
+
accounts: number[];
|
|
68
|
+
console: number[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
configWeight: (env: string, values: number[]) => number;
|
|
73
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const CONSOLE_API_USER_ID = "console-api";
|
|
2
|
+
const TEMPORARY_CLUSTER_NAME = "Get Started";
|
|
3
|
+
const HOTBACKUP_MIN_CREATE_PERIOD = 1e3 * 60 * 60 * 0.25;
|
|
4
|
+
const SECRETS_MAX_LENGTH = 4096;
|
|
5
|
+
const FIRSTNAME_LASTNAME_MAX_LENGTH = 255;
|
|
6
|
+
const STARTING_PRICE_PER_MONTH_IN_EURO = 99;
|
|
7
|
+
const MAX_LENGTH_CLUSTER_NAME = 50;
|
|
8
|
+
const NAMES_OF_ENTERPRISE_SALESPLANS_WITH_SLEEPING_CLUSTERS = [
|
|
9
|
+
"CELP with sleeping clusters",
|
|
10
|
+
"Camunda Partner"
|
|
11
|
+
];
|
|
12
|
+
const MINIMUM_EYEPAIRS = {
|
|
13
|
+
CLUSTER_DELETION: 3,
|
|
14
|
+
CLUSTER_GENERATION_UPDATE: 2,
|
|
15
|
+
CLUSTER_PLAN_UPDATE: 2,
|
|
16
|
+
CLUSTER_PLAN_TYPE_UPDATE: 2,
|
|
17
|
+
CLUSTER_PLAN_MODIFICATION: 1,
|
|
18
|
+
CLUSTER_MODIFICATION: 1
|
|
19
|
+
};
|
|
20
|
+
const MAX_HARDWARE_PACKAGE_COUNT = 4;
|
|
21
|
+
const SENTRY = {
|
|
22
|
+
dsn: {
|
|
23
|
+
trial: "https://a91625f8d3e1b34690588504ed020e14@o4507463051378688.ingest.de.sentry.io/4507463055376464",
|
|
24
|
+
console: {
|
|
25
|
+
frontend: "https://bbf8e6b13f91f7a49ab0b7f079ae8cc0@o132036.ingest.us.sentry.io/4507537062494208",
|
|
26
|
+
backend: "https://43de708d3ad0199f8c23975a3fd43aa0@o132036.ingest.us.sentry.io/4507537080188928"
|
|
27
|
+
},
|
|
28
|
+
accounts: {
|
|
29
|
+
frontend: "https://49c5d54e4d05418feb80cd4085fa32bd@o132036.ingest.us.sentry.io/4507537094541312",
|
|
30
|
+
backend: "https://d120a5f0acbf132b1edf58008c674164@o132036.ingest.us.sentry.io/4507537100505088"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
applicationKey: {
|
|
34
|
+
console: "ccma-console-frontend-0xDEADBEEF",
|
|
35
|
+
accounts: "ccma-accounts-frontend-0xDEADBEEF"
|
|
36
|
+
},
|
|
37
|
+
enabled: ["dev", "int", "prod"],
|
|
38
|
+
ignoreTransactions: ["/events", "/assets", "/metrics"],
|
|
39
|
+
ignoreErrors: [
|
|
40
|
+
"No activity within 120000 milliseconds. No response received. Reconnecting.",
|
|
41
|
+
"network error",
|
|
42
|
+
"Load failed",
|
|
43
|
+
"Non-Error promise rejection captured with value: Could not clear consent from root domain.",
|
|
44
|
+
"NetworkError when attempting to fetch resource.",
|
|
45
|
+
"The initialization timeout of 3000ms has been hit before the network request has completed.",
|
|
46
|
+
"Non-Error promise rejection captured with value: Object Not Found Matching Id:3, MethodName:update, ParamCount:4",
|
|
47
|
+
"Non-Error promise rejection captured with value: Object Not Found Matching Id:3, MethodName:simulateEvent, ParamCount:1",
|
|
48
|
+
`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`,
|
|
49
|
+
`Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy with name "default" already exists.`,
|
|
50
|
+
// SSE errors after reload
|
|
51
|
+
`TypeError: Error in input stream`,
|
|
52
|
+
`TypeError: Failed to fetch`,
|
|
53
|
+
`that is not 200. Aborting the connection.`,
|
|
54
|
+
`chars received. Reconnecting.`
|
|
55
|
+
],
|
|
56
|
+
// value pair: [preprod, prod]
|
|
57
|
+
config: {
|
|
58
|
+
tracesSampleRate: {
|
|
59
|
+
frontend: {
|
|
60
|
+
accounts: [0.1, 5e-3],
|
|
61
|
+
console: [0.2, 0.01]
|
|
62
|
+
},
|
|
63
|
+
backend: {
|
|
64
|
+
accounts: [0.1, 5e-3],
|
|
65
|
+
console: [2e-4, 5e-4]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
replaysSessionSampleRate: {
|
|
69
|
+
frontend: {
|
|
70
|
+
accounts: [5e-3, 1e-3],
|
|
71
|
+
console: [5e-3, 1e-3]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
replaysOnErrorSampleRate: {
|
|
75
|
+
frontend: {
|
|
76
|
+
accounts: [5e-3, 1e-3],
|
|
77
|
+
console: [5e-3, 1e-3]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
profilesSampleRate: {
|
|
81
|
+
backend: {
|
|
82
|
+
accounts: [1e-3, 2e-4],
|
|
83
|
+
console: [1e-3, 2e-4]
|
|
84
|
+
},
|
|
85
|
+
frontend: {
|
|
86
|
+
accounts: [1e-3, 2e-4],
|
|
87
|
+
console: [1e-3, 2e-4]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
configWeight: (env, values) => {
|
|
92
|
+
if (values && values.length === 2) {
|
|
93
|
+
if (env === "prod") {
|
|
94
|
+
return values[1];
|
|
95
|
+
} else {
|
|
96
|
+
return values[0];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return 0.1;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
CONSOLE_API_USER_ID,
|
|
104
|
+
FIRSTNAME_LASTNAME_MAX_LENGTH,
|
|
105
|
+
HOTBACKUP_MIN_CREATE_PERIOD,
|
|
106
|
+
MAX_HARDWARE_PACKAGE_COUNT,
|
|
107
|
+
MAX_LENGTH_CLUSTER_NAME,
|
|
108
|
+
MINIMUM_EYEPAIRS,
|
|
109
|
+
NAMES_OF_ENTERPRISE_SALESPLANS_WITH_SLEEPING_CLUSTERS,
|
|
110
|
+
SECRETS_MAX_LENGTH,
|
|
111
|
+
SENTRY,
|
|
112
|
+
STARTING_PRICE_PER_MONTH_IN_EURO,
|
|
113
|
+
TEMPORARY_CLUSTER_NAME
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=misc.const.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants/misc.const.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nexport const CONSOLE_API_USER_ID = 'console-api'\nexport const TEMPORARY_CLUSTER_NAME = 'Get Started'\nexport type Stage = 'local' | 'dev' | 'int' | 'prod'\nexport const HOTBACKUP_MIN_CREATE_PERIOD = 1000 * 60 * 60 * 0.25 // 15 minutes\n\nexport const SECRETS_MAX_LENGTH = 4096\nexport const FIRSTNAME_LASTNAME_MAX_LENGTH = 255\n\nexport const STARTING_PRICE_PER_MONTH_IN_EURO = 99\n\nexport const MAX_LENGTH_CLUSTER_NAME = 50\n\nexport const NAMES_OF_ENTERPRISE_SALESPLANS_WITH_SLEEPING_CLUSTERS = [\n 'CELP with sleeping clusters',\n 'Camunda Partner',\n]\n\nexport const MINIMUM_EYEPAIRS = {\n CLUSTER_DELETION: 3,\n CLUSTER_GENERATION_UPDATE: 2,\n CLUSTER_PLAN_UPDATE: 2,\n CLUSTER_PLAN_TYPE_UPDATE: 2,\n CLUSTER_PLAN_MODIFICATION: 1,\n CLUSTER_MODIFICATION: 1,\n}\n\nexport const MAX_HARDWARE_PACKAGE_COUNT = 4\n\nexport const SENTRY = {\n dsn: {\n trial:\n 'https://a91625f8d3e1b34690588504ed020e14@o4507463051378688.ingest.de.sentry.io/4507463055376464',\n console: {\n frontend:\n 'https://bbf8e6b13f91f7a49ab0b7f079ae8cc0@o132036.ingest.us.sentry.io/4507537062494208',\n backend:\n 'https://43de708d3ad0199f8c23975a3fd43aa0@o132036.ingest.us.sentry.io/4507537080188928',\n },\n accounts: {\n frontend:\n 'https://49c5d54e4d05418feb80cd4085fa32bd@o132036.ingest.us.sentry.io/4507537094541312',\n backend:\n 'https://d120a5f0acbf132b1edf58008c674164@o132036.ingest.us.sentry.io/4507537100505088',\n },\n },\n applicationKey: {\n console: 'ccma-console-frontend-0xDEADBEEF',\n accounts: 'ccma-accounts-frontend-0xDEADBEEF',\n },\n enabled: ['dev', 'int', 'prod'],\n ignoreTransactions: ['/events', '/assets', '/metrics'],\n ignoreErrors: [\n 'No activity within 120000 milliseconds. No response received. Reconnecting.',\n 'network error',\n 'Load failed',\n 'Non-Error promise rejection captured with value: Could not clear consent from root domain.',\n 'NetworkError when attempting to fetch resource.',\n 'The initialization timeout of 3000ms has been hit before the network request has completed.',\n 'Non-Error promise rejection captured with value: Object Not Found Matching Id:3, MethodName:update, ParamCount:4',\n 'Non-Error promise rejection captured with value: Object Not Found Matching Id:3, MethodName:simulateEvent, ParamCount:1',\n `Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`,\n `Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy with name \"default\" already exists.`,\n // SSE errors after reload\n `TypeError: Error in input stream`,\n `TypeError: Failed to fetch`,\n `that is not 200. Aborting the connection.`,\n `chars received. Reconnecting.`,\n ],\n // value pair: [preprod, prod]\n config: {\n tracesSampleRate: {\n frontend: {\n accounts: [0.1, 0.005],\n console: [0.2, 0.01],\n },\n backend: {\n accounts: [0.1, 0.005],\n console: [0.0002, 0.0005],\n },\n },\n replaysSessionSampleRate: {\n frontend: {\n accounts: [0.005, 0.001],\n console: [0.005, 0.001],\n },\n },\n replaysOnErrorSampleRate: {\n frontend: {\n accounts: [0.005, 0.001],\n console: [0.005, 0.001],\n },\n },\n profilesSampleRate: {\n backend: {\n accounts: [0.001, 0.0002],\n console: [0.001, 0.0002],\n },\n frontend: {\n accounts: [0.001, 0.0002],\n console: [0.001, 0.0002],\n },\n },\n },\n configWeight: (env: string, values: number[]) => {\n if (values && values.length === 2) {\n if (env === 'prod') {\n return values[1]\n } else {\n return values[0]\n }\n }\n return 0.1\n },\n}\n"],
|
|
5
|
+
"mappings": "AAMO,MAAM,sBAAsB;AAC5B,MAAM,yBAAyB;AAE/B,MAAM,8BAA8B,MAAO,KAAK,KAAK;AAErD,MAAM,qBAAqB;AAC3B,MAAM,gCAAgC;AAEtC,MAAM,mCAAmC;AAEzC,MAAM,0BAA0B;AAEhC,MAAM,wDAAwD;AAAA,EACnE;AAAA,EACA;AACF;AAEO,MAAM,mBAAmB;AAAA,EAC9B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,sBAAsB;AACxB;AAEO,MAAM,6BAA6B;AAEnC,MAAM,SAAS;AAAA,EACpB,KAAK;AAAA,IACH,OACE;AAAA,IACF,SAAS;AAAA,MACP,UACE;AAAA,MACF,SACE;AAAA,IACJ;AAAA,IACA,UAAU;AAAA,MACR,UACE;AAAA,MACF,SACE;AAAA,IACJ;AAAA,EACF;AAAA,EACA,gBAAgB;AAAA,IACd,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA,EACA,SAAS,CAAC,OAAO,OAAO,MAAM;AAAA,EAC9B,oBAAoB,CAAC,WAAW,WAAW,UAAU;AAAA,EACrD,cAAc;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA;AAAA,EAEA,QAAQ;AAAA,IACN,kBAAkB;AAAA,MAChB,UAAU;AAAA,QACR,UAAU,CAAC,KAAK,IAAK;AAAA,QACrB,SAAS,CAAC,KAAK,IAAI;AAAA,MACrB;AAAA,MACA,SAAS;AAAA,QACP,UAAU,CAAC,KAAK,IAAK;AAAA,QACrB,SAAS,CAAC,MAAQ,IAAM;AAAA,MAC1B;AAAA,IACF;AAAA,IACA,0BAA0B;AAAA,MACxB,UAAU;AAAA,QACR,UAAU,CAAC,MAAO,IAAK;AAAA,QACvB,SAAS,CAAC,MAAO,IAAK;AAAA,MACxB;AAAA,IACF;AAAA,IACA,0BAA0B;AAAA,MACxB,UAAU;AAAA,QACR,UAAU,CAAC,MAAO,IAAK;AAAA,QACvB,SAAS,CAAC,MAAO,IAAK;AAAA,MACxB;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB,SAAS;AAAA,QACP,UAAU,CAAC,MAAO,IAAM;AAAA,QACxB,SAAS,CAAC,MAAO,IAAM;AAAA,MACzB;AAAA,MACA,UAAU;AAAA,QACR,UAAU,CAAC,MAAO,IAAM;AAAA,QACxB,SAAS,CAAC,MAAO,IAAM;AAAA,MACzB;AAAA,IACF;AAAA,EACF;AAAA,EACA,cAAc,CAAC,KAAa,WAAqB;AAC/C,QAAI,UAAU,OAAO,WAAW,GAAG;AACjC,UAAI,QAAQ,QAAQ;AAClB,eAAO,OAAO,CAAC;AAAA,MACjB,OAAO;AACL,eAAO,OAAO,CAAC;AAAA,MACjB;AAAA,IACF;AACA,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env var paths that need corresponding gateway.envVars entries for 8.9+.
|
|
3
|
+
*/
|
|
4
|
+
export declare const PRE89_AFFECTED_PATHS: readonly ["tasklist.backend.envVars", "operate.backend.envVars", "zeebe.gateway.backend.envVars"];
|
|
5
|
+
/**
|
|
6
|
+
* Check if a modification path is an env var path affected by the
|
|
7
|
+
* streamlined deployment (8.9+).
|
|
8
|
+
*/
|
|
9
|
+
export declare function isPre89AffectedPath(path: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Property paths (non-env-var) that require corresponding gateway configuration
|
|
12
|
+
* entries for the streamlined deployment (8.9+).
|
|
13
|
+
* These are NOT auto-translated — operators must explicitly set the gateway values.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PRE89_AFFECTED_PROPERTY_PREFIXES: readonly ["zeebe.gateway.replicas", "tasklist.replicas", "operate.replicas", "zeebe.gateway.backend.resources", "tasklist.backend.resources", "operate.backend.resources", "operate.dataRetentionDays", "tasklist.dataRetentionDays"];
|
|
16
|
+
/**
|
|
17
|
+
* Check if a modification path requires a corresponding gateway configuration
|
|
18
|
+
* entry for the streamlined deployment (8.9+).
|
|
19
|
+
* This includes both env var paths and property paths.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isAffectedByStreamlinedDeployment(path: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Mapping of pre-8.9 property paths (non-env-var) to their gateway equivalents.
|
|
24
|
+
*/
|
|
25
|
+
export declare const PRE89_GATEWAY_PROPERTY_PATHS: Record<string, string>;
|
|
26
|
+
/**
|
|
27
|
+
* Resource path prefixes that are translated to gateway.resources.
|
|
28
|
+
*/
|
|
29
|
+
export declare const PRE89_GATEWAY_RESOURCE_PREFIXES: readonly ["zeebe.gateway.backend.resources", "tasklist.backend.resources", "operate.backend.resources"];
|
|
30
|
+
/**
|
|
31
|
+
* Returns the corresponding gateway property path for a given modification path,
|
|
32
|
+
* or undefined if the path does not affect gateway configuration.
|
|
33
|
+
*
|
|
34
|
+
* Examples:
|
|
35
|
+
* 'zeebe.gateway.replicas' → 'gateway.replicas'
|
|
36
|
+
* 'tasklist.backend.resources.requests.memory' → 'gateway.resources.requests.memory'
|
|
37
|
+
* 'operate.dataRetentionDays' → 'gateway.dataRetention.days'
|
|
38
|
+
*/
|
|
39
|
+
export declare function getGatewayPropertyPath(path: string): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a gateway translation hint for a given modification path, or undefined if the path
|
|
42
|
+
* does not require a corresponding gateway entry.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getGatewayPropertyHint(path: string): string | undefined;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const PRE89_AFFECTED_PATHS = [
|
|
2
|
+
"tasklist.backend.envVars",
|
|
3
|
+
"operate.backend.envVars",
|
|
4
|
+
"zeebe.gateway.backend.envVars"
|
|
5
|
+
];
|
|
6
|
+
function isPre89AffectedPath(path) {
|
|
7
|
+
return PRE89_AFFECTED_PATHS.includes(path);
|
|
8
|
+
}
|
|
9
|
+
const PRE89_AFFECTED_PROPERTY_PREFIXES = [
|
|
10
|
+
"zeebe.gateway.replicas",
|
|
11
|
+
"tasklist.replicas",
|
|
12
|
+
"operate.replicas",
|
|
13
|
+
"zeebe.gateway.backend.resources",
|
|
14
|
+
"tasklist.backend.resources",
|
|
15
|
+
"operate.backend.resources",
|
|
16
|
+
"operate.dataRetentionDays",
|
|
17
|
+
"tasklist.dataRetentionDays"
|
|
18
|
+
];
|
|
19
|
+
function isAffectedByStreamlinedDeployment(path) {
|
|
20
|
+
if (isPre89AffectedPath(path)) return true;
|
|
21
|
+
return PRE89_AFFECTED_PROPERTY_PREFIXES.some(
|
|
22
|
+
(prefix) => path === prefix || path.startsWith(`${prefix}.`)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
const PRE89_GATEWAY_PROPERTY_PATHS = {
|
|
26
|
+
"zeebe.gateway.replicas": "gateway.replicas",
|
|
27
|
+
"tasklist.replicas": "gateway.replicas",
|
|
28
|
+
"operate.replicas": "gateway.replicas",
|
|
29
|
+
"operate.dataRetentionDays": "gateway.dataRetention.days",
|
|
30
|
+
"tasklist.dataRetentionDays": "gateway.dataRetention.days",
|
|
31
|
+
"tasklist.backend.envVars": "gateway.envVars",
|
|
32
|
+
"operate.backend.envVars": "gateway.envVars",
|
|
33
|
+
"zeebe.gateway.backend.envVars": "gateway.envVars"
|
|
34
|
+
};
|
|
35
|
+
const PRE89_GATEWAY_RESOURCE_PREFIXES = [
|
|
36
|
+
"zeebe.gateway.backend.resources",
|
|
37
|
+
"tasklist.backend.resources",
|
|
38
|
+
"operate.backend.resources"
|
|
39
|
+
];
|
|
40
|
+
function getGatewayPropertyPath(path) {
|
|
41
|
+
const exactMatch = PRE89_GATEWAY_PROPERTY_PATHS[path];
|
|
42
|
+
if (exactMatch) {
|
|
43
|
+
return exactMatch;
|
|
44
|
+
}
|
|
45
|
+
const resourcePrefix = PRE89_GATEWAY_RESOURCE_PREFIXES.find(
|
|
46
|
+
(prefix) => path.startsWith(prefix)
|
|
47
|
+
);
|
|
48
|
+
if (resourcePrefix) {
|
|
49
|
+
const suffix = path.substring(resourcePrefix.length);
|
|
50
|
+
return `gateway.resources${suffix}`;
|
|
51
|
+
}
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
function getGatewayPropertyHint(path) {
|
|
55
|
+
const gatewayPath = getGatewayPropertyPath(path);
|
|
56
|
+
if (!gatewayPath) return void 0;
|
|
57
|
+
if (isPre89AffectedPath(path)) {
|
|
58
|
+
return `${path} \u2192 also applies to ${gatewayPath} and zeebe.broker.envVars for 8.9+ (no auto-translation, set explicitly)`;
|
|
59
|
+
}
|
|
60
|
+
return `${path} \u2192 also applies to ${gatewayPath} for 8.9 gateway (no auto-translation, set explicitly)`;
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
PRE89_AFFECTED_PATHS,
|
|
64
|
+
PRE89_AFFECTED_PROPERTY_PREFIXES,
|
|
65
|
+
PRE89_GATEWAY_PROPERTY_PATHS,
|
|
66
|
+
PRE89_GATEWAY_RESOURCE_PREFIXES,
|
|
67
|
+
getGatewayPropertyHint,
|
|
68
|
+
getGatewayPropertyPath,
|
|
69
|
+
isAffectedByStreamlinedDeployment,
|
|
70
|
+
isPre89AffectedPath
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=pre89EnvVarMapping.const.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants/pre89EnvVarMapping.const.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\n/**\n * Env var paths that need corresponding gateway.envVars entries for 8.9+.\n */\nexport const PRE89_AFFECTED_PATHS = [\n 'tasklist.backend.envVars',\n 'operate.backend.envVars',\n 'zeebe.gateway.backend.envVars',\n] as const\n\n/**\n * Check if a modification path is an env var path affected by the\n * streamlined deployment (8.9+).\n */\nexport function isPre89AffectedPath(path: string): boolean {\n return (PRE89_AFFECTED_PATHS as readonly string[]).includes(path)\n}\n\n/**\n * Property paths (non-env-var) that require corresponding gateway configuration\n * entries for the streamlined deployment (8.9+).\n * These are NOT auto-translated \u2014 operators must explicitly set the gateway values.\n */\nexport const PRE89_AFFECTED_PROPERTY_PREFIXES = [\n 'zeebe.gateway.replicas',\n 'tasklist.replicas',\n 'operate.replicas',\n 'zeebe.gateway.backend.resources',\n 'tasklist.backend.resources',\n 'operate.backend.resources',\n 'operate.dataRetentionDays',\n 'tasklist.dataRetentionDays',\n] as const\n\n/**\n * Check if a modification path requires a corresponding gateway configuration\n * entry for the streamlined deployment (8.9+).\n * This includes both env var paths and property paths.\n */\nexport function isAffectedByStreamlinedDeployment(path: string): boolean {\n if (isPre89AffectedPath(path)) return true\n return PRE89_AFFECTED_PROPERTY_PREFIXES.some(\n (prefix) => path === prefix || path.startsWith(`${prefix}.`),\n )\n}\n\n/**\n * Mapping of pre-8.9 property paths (non-env-var) to their gateway equivalents.\n */\nexport const PRE89_GATEWAY_PROPERTY_PATHS: Record<string, string> = {\n 'zeebe.gateway.replicas': 'gateway.replicas',\n 'tasklist.replicas': 'gateway.replicas',\n 'operate.replicas': 'gateway.replicas',\n 'operate.dataRetentionDays': 'gateway.dataRetention.days',\n 'tasklist.dataRetentionDays': 'gateway.dataRetention.days',\n 'tasklist.backend.envVars': 'gateway.envVars',\n 'operate.backend.envVars': 'gateway.envVars',\n 'zeebe.gateway.backend.envVars': 'gateway.envVars',\n}\n\n/**\n * Resource path prefixes that are translated to gateway.resources.\n */\nexport const PRE89_GATEWAY_RESOURCE_PREFIXES = [\n 'zeebe.gateway.backend.resources',\n 'tasklist.backend.resources',\n 'operate.backend.resources',\n] as const\n\n/**\n * Returns the corresponding gateway property path for a given modification path,\n * or undefined if the path does not affect gateway configuration.\n *\n * Examples:\n * 'zeebe.gateway.replicas' \u2192 'gateway.replicas'\n * 'tasklist.backend.resources.requests.memory' \u2192 'gateway.resources.requests.memory'\n * 'operate.dataRetentionDays' \u2192 'gateway.dataRetention.days'\n */\nexport function getGatewayPropertyPath(path: string): string | undefined {\n const exactMatch = PRE89_GATEWAY_PROPERTY_PATHS[path]\n if (exactMatch) {\n return exactMatch\n }\n\n const resourcePrefix = PRE89_GATEWAY_RESOURCE_PREFIXES.find((prefix) =>\n path.startsWith(prefix),\n )\n if (resourcePrefix) {\n const suffix = path.substring(resourcePrefix.length)\n return `gateway.resources${suffix}`\n }\n\n return undefined\n}\n\n/**\n * Returns a gateway translation hint for a given modification path, or undefined if the path\n * does not require a corresponding gateway entry.\n */\nexport function getGatewayPropertyHint(path: string): string | undefined {\n const gatewayPath = getGatewayPropertyPath(path)\n if (!gatewayPath) return undefined\n\n if (isPre89AffectedPath(path)) {\n return `${path} \u2192 also applies to ${gatewayPath} and zeebe.broker.envVars for 8.9+ (no auto-translation, set explicitly)`\n }\n\n return `${path} \u2192 also applies to ${gatewayPath} for 8.9 gateway (no auto-translation, set explicitly)`\n}\n"],
|
|
5
|
+
"mappings": "AASO,MAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF;AAMO,SAAS,oBAAoB,MAAuB;AACzD,SAAQ,qBAA2C,SAAS,IAAI;AAClE;AAOO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOO,SAAS,kCAAkC,MAAuB;AACvE,MAAI,oBAAoB,IAAI,EAAG,QAAO;AACtC,SAAO,iCAAiC;AAAA,IACtC,CAAC,WAAW,SAAS,UAAU,KAAK,WAAW,GAAG,MAAM,GAAG;AAAA,EAC7D;AACF;AAKO,MAAM,+BAAuD;AAAA,EAClE,0BAA0B;AAAA,EAC1B,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,iCAAiC;AACnC;AAKO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AACF;AAWO,SAAS,uBAAuB,MAAkC;AACvE,QAAM,aAAa,6BAA6B,IAAI;AACpD,MAAI,YAAY;AACd,WAAO;AAAA,EACT;AAEA,QAAM,iBAAiB,gCAAgC;AAAA,IAAK,CAAC,WAC3D,KAAK,WAAW,MAAM;AAAA,EACxB;AACA,MAAI,gBAAgB;AAClB,UAAM,SAAS,KAAK,UAAU,eAAe,MAAM;AACnD,WAAO,oBAAoB,MAAM;AAAA,EACnC;AAEA,SAAO;AACT;AAMO,SAAS,uBAAuB,MAAkC;AACvE,QAAM,cAAc,uBAAuB,IAAI;AAC/C,MAAI,CAAC,YAAa,QAAO;AAEzB,MAAI,oBAAoB,IAAI,GAAG;AAC7B,WAAO,GAAG,IAAI,2BAAsB,WAAW;AAAA,EACjD;AAEA,SAAO,GAAG,IAAI,2BAAsB,WAAW;AACjD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PRIVATE_LINK_REGIONS: string[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const PRIVATE_LINK_REGIONS = [
|
|
2
|
+
"af-south-1",
|
|
3
|
+
"ap-east-1",
|
|
4
|
+
"ap-east-2",
|
|
5
|
+
"ap-northeast-1",
|
|
6
|
+
"ap-northeast-2",
|
|
7
|
+
"ap-northeast-3",
|
|
8
|
+
"ap-south-1",
|
|
9
|
+
"ap-south-2",
|
|
10
|
+
"ap-southeast-1",
|
|
11
|
+
"ap-southeast-2",
|
|
12
|
+
"ap-southeast-3",
|
|
13
|
+
"ap-southeast-4",
|
|
14
|
+
"ap-southeast-5",
|
|
15
|
+
"ap-southeast-6",
|
|
16
|
+
"ap-southeast-7",
|
|
17
|
+
"ca-central-1",
|
|
18
|
+
"ca-west-1",
|
|
19
|
+
"eu-central-1",
|
|
20
|
+
"eu-central-2",
|
|
21
|
+
"eu-north-1",
|
|
22
|
+
"eu-south-1",
|
|
23
|
+
"eu-south-2",
|
|
24
|
+
"eu-west-1",
|
|
25
|
+
"eu-west-2",
|
|
26
|
+
"eu-west-3",
|
|
27
|
+
"il-central-1",
|
|
28
|
+
"me-central-1",
|
|
29
|
+
"me-south-1",
|
|
30
|
+
"mx-central-1",
|
|
31
|
+
"sa-east-1",
|
|
32
|
+
"us-east-1",
|
|
33
|
+
"us-east-2",
|
|
34
|
+
"us-west-1",
|
|
35
|
+
"us-west-2"
|
|
36
|
+
];
|
|
37
|
+
export {
|
|
38
|
+
PRIVATE_LINK_REGIONS
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=privateLinkRegions.const.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants/privateLinkRegions.const.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nexport const PRIVATE_LINK_REGIONS = [\n 'af-south-1',\n 'ap-east-1',\n 'ap-east-2',\n 'ap-northeast-1',\n 'ap-northeast-2',\n 'ap-northeast-3',\n 'ap-south-1',\n 'ap-south-2',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'ap-southeast-3',\n 'ap-southeast-4',\n 'ap-southeast-5',\n 'ap-southeast-6',\n 'ap-southeast-7',\n 'ca-central-1',\n 'ca-west-1',\n 'eu-central-1',\n 'eu-central-2',\n 'eu-north-1',\n 'eu-south-1',\n 'eu-south-2',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'il-central-1',\n 'me-central-1',\n 'me-south-1',\n 'mx-central-1',\n 'sa-east-1',\n 'us-east-1',\n 'us-east-2',\n 'us-west-1',\n 'us-west-2',\n]\n"],
|
|
5
|
+
"mappings": "AAMO,MAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { AlertSubscriptionReportType, AlertSubscriptionType } from '../enums/AlertSubscription.enum.js';
|
|
2
|
+
export interface AlertSubscriptionDto {
|
|
3
|
+
uuid: string;
|
|
4
|
+
userIdOrWebhook: string;
|
|
5
|
+
type: AlertSubscriptionType;
|
|
6
|
+
report: AlertSubscriptionReportType;
|
|
7
|
+
createdBy: string;
|
|
8
|
+
createdByName: string;
|
|
9
|
+
created: Date;
|
|
10
|
+
updatedBy: string;
|
|
11
|
+
updatedByName: string;
|
|
12
|
+
updated: Date;
|
|
13
|
+
lastTimeTriggered?: Date;
|
|
14
|
+
numberOfTimesTriggered: number;
|
|
15
|
+
}
|
|
16
|
+
export interface AlertSubscriptionEntryDto {
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
errorType?: string;
|
|
19
|
+
flowNodeId?: string;
|
|
20
|
+
jobKey?: string;
|
|
21
|
+
creationTime?: string;
|
|
22
|
+
processInstanceId?: string;
|
|
23
|
+
processName?: string;
|
|
24
|
+
processVersion?: number;
|
|
25
|
+
bpmnProcessId?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const HMAC_SUPPORTED_ALGORITHM = "sha256";
|
|
28
|
+
export declare const HMAC_HEADER_POSITION = "X-Camunda-Signature-256";
|
|
29
|
+
export declare const FORBIDDEN_HOSTNAMES_FOR_WEBHOOK_ALERTS: string[];
|
|
30
|
+
export type ALERT_SUBSCRIPTION_TYPES = 'ClusterAlert' | 'ProcessAlert' | 'AllAlerts';
|
|
31
|
+
export type ALERT_SUBSCRIPTION_REPORT_TYPES = 'Email' | 'Webhook';
|
|
32
|
+
export interface AlertSubscriptionWebhookAuth {
|
|
33
|
+
hmac?: {
|
|
34
|
+
secret: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export type CheckFailedReason = 'urlEmpty' | 'urlNoHead' | 'generatedHmacNotAccepted' | 'urlBad' | 'urlPrivate';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const HMAC_SUPPORTED_ALGORITHM = "sha256";
|
|
2
|
+
const HMAC_HEADER_POSITION = "X-Camunda-Signature-256";
|
|
3
|
+
const FORBIDDEN_HOSTNAMES_FOR_WEBHOOK_ALERTS = [
|
|
4
|
+
"https://camunda.com",
|
|
5
|
+
"https://console.cloud.camunda.io",
|
|
6
|
+
"https://accounts.cloud.camunda.io",
|
|
7
|
+
"https://console.camunda.io",
|
|
8
|
+
"https://accounts.camunda.io",
|
|
9
|
+
"https://console.ultrawombat.com",
|
|
10
|
+
"https://console.cloud.ultrawombat.com",
|
|
11
|
+
"https://accounts.cloud.ultrawombat.com",
|
|
12
|
+
"https://accounts.ultrawombat.com",
|
|
13
|
+
"https://console.cloud.dev.ultrawombat.com",
|
|
14
|
+
"https://console.dev.ultrawombat.com",
|
|
15
|
+
"https://accounts.cloud.dev.ultrawombat.com"
|
|
16
|
+
];
|
|
17
|
+
export {
|
|
18
|
+
FORBIDDEN_HOSTNAMES_FOR_WEBHOOK_ALERTS,
|
|
19
|
+
HMAC_HEADER_POSITION,
|
|
20
|
+
HMAC_SUPPORTED_ALGORITHM
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=AlertSubscription.dto.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/dtos/AlertSubscription.dto.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type {\n AlertSubscriptionReportType,\n AlertSubscriptionType,\n} from '../enums/AlertSubscription.enum.js'\n\nexport interface AlertSubscriptionDto {\n uuid: string\n userIdOrWebhook: string\n type: AlertSubscriptionType\n report: AlertSubscriptionReportType\n createdBy: string\n createdByName: string\n created: Date\n updatedBy: string\n updatedByName: string\n updated: Date\n lastTimeTriggered?: Date\n numberOfTimesTriggered: number\n}\n\nexport interface AlertSubscriptionEntryDto {\n errorMessage?: string\n errorType?: string\n flowNodeId?: string\n jobKey?: string\n creationTime?: string\n processInstanceId?: string\n processName?: string\n processVersion?: number\n bpmnProcessId?: string\n}\n\nexport const HMAC_SUPPORTED_ALGORITHM = 'sha256'\nexport const HMAC_HEADER_POSITION = 'X-Camunda-Signature-256'\n\nexport const FORBIDDEN_HOSTNAMES_FOR_WEBHOOK_ALERTS = [\n 'https://camunda.com',\n 'https://console.cloud.camunda.io',\n 'https://accounts.cloud.camunda.io',\n 'https://console.camunda.io',\n 'https://accounts.camunda.io',\n 'https://console.ultrawombat.com',\n 'https://console.cloud.ultrawombat.com',\n 'https://accounts.cloud.ultrawombat.com',\n 'https://accounts.ultrawombat.com',\n 'https://console.cloud.dev.ultrawombat.com',\n 'https://console.dev.ultrawombat.com',\n 'https://accounts.cloud.dev.ultrawombat.com',\n]\n\nexport type ALERT_SUBSCRIPTION_TYPES =\n | 'ClusterAlert'\n | 'ProcessAlert'\n | 'AllAlerts'\nexport type ALERT_SUBSCRIPTION_REPORT_TYPES = 'Email' | 'Webhook'\n\nexport interface AlertSubscriptionWebhookAuth {\n hmac?: {\n secret: string\n }\n}\n\nexport type CheckFailedReason =\n | 'urlEmpty'\n | 'urlNoHead'\n | 'generatedHmacNotAccepted'\n | 'urlBad'\n | 'urlPrivate'\n"],
|
|
5
|
+
"mappings": "AAsCO,MAAM,2BAA2B;AACjC,MAAM,uBAAuB;AAE7B,MAAM,yCAAyC;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|