@camunda/ccma-shared-types 3.0.0 → 4.0.0
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/approvals/cluster-bulk-operation.spec.d.ts +1 -0
- package/dist/_tests/dtos/FeatureFlagOverride.dto.spec.d.ts +1 -0
- package/dist/annotations/policy.d.ts +98 -0
- package/dist/annotations/policy.js +61 -0
- package/dist/annotations/policy.js.map +7 -0
- package/dist/approvals/cluster-bulk-operation.d.ts +196 -0
- package/dist/approvals/cluster-bulk-operation.js +127 -0
- package/dist/approvals/cluster-bulk-operation.js.map +7 -0
- package/dist/approvals/policy.d.ts +45 -5
- package/dist/approvals/policy.js +38 -11
- package/dist/approvals/policy.js.map +2 -2
- package/dist/approvals/use-cases.const.d.ts +73 -0
- package/dist/approvals/use-cases.const.js +21 -2
- package/dist/approvals/use-cases.const.js.map +2 -2
- package/dist/config/camundi-permission-rules.js +24 -3
- package/dist/config/camundi-permission-rules.js.map +2 -2
- package/dist/constants/misc.const.d.ts +2 -0
- package/dist/constants/misc.const.js +4 -0
- package/dist/constants/misc.const.js.map +2 -2
- package/dist/dtos/Annotation.dto.d.ts +240 -0
- package/dist/dtos/Annotation.dto.js +47 -0
- package/dist/dtos/Annotation.dto.js.map +7 -0
- package/dist/dtos/ApprovalJob.dto.d.ts +152 -2
- package/dist/dtos/ApprovalJob.dto.js +22 -0
- package/dist/dtos/ApprovalJob.dto.js.map +2 -2
- package/dist/dtos/CommonCluster.dto.d.ts +6 -0
- package/dist/dtos/ControlV2.dto.d.ts +55 -3
- package/dist/dtos/FeatureFlagOverride.dto.d.ts +226 -0
- package/dist/dtos/FeatureFlagOverride.dto.js +38 -0
- package/dist/dtos/FeatureFlagOverride.dto.js.map +7 -0
- package/dist/dtos/FeatureFlags.dto.d.ts +58 -45
- package/dist/dtos/FeatureFlags.dto.js +10 -0
- package/dist/dtos/FeatureFlags.dto.js.map +3 -3
- package/dist/dtos/K8sContext.dto.d.ts +13 -4
- package/dist/index.d.ts +16 -8
- package/dist/index.js +113 -7
- package/dist/index.js.map +2 -2
- package/dist/permissions/accounts.permissions.d.ts +35 -0
- package/dist/permissions/accounts.permissions.js +33 -1
- package/dist/permissions/accounts.permissions.js.map +2 -2
- package/dist/permissions/combo.js +10 -2
- package/dist/permissions/combo.js.map +2 -2
- package/dist/permissions/console.permissions.d.ts +32 -0
- package/dist/permissions/console.permissions.js +24 -2
- package/dist/permissions/console.permissions.js.map +2 -2
- package/dist/types/Roles.d.ts +1 -1
- package/dist/types/Roles.js.map +2 -2
- package/package.json +1 -1
- package/dist/constants/failoverRegionPairs.const.d.ts +0 -36
- package/dist/constants/failoverRegionPairs.const.js +0 -34
- package/dist/constants/failoverRegionPairs.const.js.map +0 -7
- /package/dist/_tests/{constants/failoverRegionPairs.const.spec.d.ts → annotations/policy.spec.d.ts} +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Region pairs supported for cross-region failover (#9120). Failover is only
|
|
3
|
-
* offered for dual-region clusters whose primary and secondary regions form
|
|
4
|
-
* one of these reverse-region pairs — cluster creation must be supported in
|
|
5
|
-
* both directions. Both directions of each pair are listed.
|
|
6
|
-
*
|
|
7
|
-
* This is the base set, enabled on every stage.
|
|
8
|
-
*
|
|
9
|
-
* Shared between console-backend (FailoverRouter guard) and c4 (hiding the
|
|
10
|
-
* failover action for unsupported pairs).
|
|
11
|
-
*/
|
|
12
|
-
export declare const SUPPORTED_FAILOVER_REGION_PAIRS: ReadonlySet<string>;
|
|
13
|
-
/**
|
|
14
|
-
* GCP's prod dual-region pair. Stathis confirmed it in the same Slack thread
|
|
15
|
-
* as `GCP_FAILOVER_REGION_PAIRS` (#9816).
|
|
16
|
-
*
|
|
17
|
-
* `isSupportedFailoverRegionPair` reads this set on the 'prod' stage. Two
|
|
18
|
-
* changes made this safe: GCP clusters have no BYOK option, so the AWS-only
|
|
19
|
-
* key-policy screen never shows for a GCP cluster; and the operator
|
|
20
|
-
* clone-role logic added a GCP branch in #9835.
|
|
21
|
-
*
|
|
22
|
-
* This set does not control customer access on its own. Two independent
|
|
23
|
-
* gates still apply: the `failover` feature flag, which allows only
|
|
24
|
-
* Camunda's internal org in prod, and the `failover` plan limit, which the
|
|
25
|
-
* org must also have enabled. This set only tells the backend and c4 which
|
|
26
|
-
* region pairs to treat as failover-capable.
|
|
27
|
-
*/
|
|
28
|
-
export declare const GCP_FAILOVER_REGION_PAIRS_PROD: ReadonlySet<string>;
|
|
29
|
-
/**
|
|
30
|
-
* `stage` mirrors the featureflags `onlyDev` and `onlyPreprod` gates. The EU
|
|
31
|
-
* test pairs unlock only on 'local' and 'dev'. The GCP test pair also unlocks
|
|
32
|
-
* on 'int', because dev has no GCP failover test cluster. The GCP prod pair
|
|
33
|
-
* unlocks only on 'prod'. When you omit stage, the function allows the base
|
|
34
|
-
* set only.
|
|
35
|
-
*/
|
|
36
|
-
export declare function isSupportedFailoverRegionPair(regionA: string | undefined, regionB: string | undefined, stage?: string): boolean;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const SUPPORTED_FAILOVER_REGION_PAIRS = /* @__PURE__ */ new Set([
|
|
2
|
-
"us-east-2:us-west-2",
|
|
3
|
-
"us-west-2:us-east-2",
|
|
4
|
-
"us-east-2:us-east-1",
|
|
5
|
-
"us-east-1:us-east-2"
|
|
6
|
-
]);
|
|
7
|
-
const DEV_FAILOVER_REGION_PAIRS = /* @__PURE__ */ new Set([
|
|
8
|
-
"eu-west-1:eu-west-2",
|
|
9
|
-
"eu-west-2:eu-west-1"
|
|
10
|
-
]);
|
|
11
|
-
const GCP_FAILOVER_REGION_PAIRS = /* @__PURE__ */ new Set([
|
|
12
|
-
"europe-north1:europe-west1",
|
|
13
|
-
"europe-west1:europe-north1"
|
|
14
|
-
]);
|
|
15
|
-
const GCP_FAILOVER_REGION_PAIRS_PROD = /* @__PURE__ */ new Set([
|
|
16
|
-
"us-central1:us-east1",
|
|
17
|
-
"us-east1:us-central1"
|
|
18
|
-
]);
|
|
19
|
-
function isSupportedFailoverRegionPair(regionA, regionB, stage) {
|
|
20
|
-
if (!regionA || !regionB) return false;
|
|
21
|
-
const pair = `${regionA.toLowerCase()}:${regionB.toLowerCase()}`;
|
|
22
|
-
if (SUPPORTED_FAILOVER_REGION_PAIRS.has(pair)) return true;
|
|
23
|
-
const isDev = stage === "local" || stage === "dev";
|
|
24
|
-
if (isDev && DEV_FAILOVER_REGION_PAIRS.has(pair)) return true;
|
|
25
|
-
const isPreprod = isDev || stage === "int";
|
|
26
|
-
if (isPreprod && GCP_FAILOVER_REGION_PAIRS.has(pair)) return true;
|
|
27
|
-
return stage === "prod" && GCP_FAILOVER_REGION_PAIRS_PROD.has(pair);
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
GCP_FAILOVER_REGION_PAIRS_PROD,
|
|
31
|
-
SUPPORTED_FAILOVER_REGION_PAIRS,
|
|
32
|
-
isSupportedFailoverRegionPair
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=failoverRegionPairs.const.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/constants/failoverRegionPairs.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 * Region pairs supported for cross-region failover (#9120). Failover is only\n * offered for dual-region clusters whose primary and secondary regions form\n * one of these reverse-region pairs \u2014 cluster creation must be supported in\n * both directions. Both directions of each pair are listed.\n *\n * This is the base set, enabled on every stage.\n *\n * Shared between console-backend (FailoverRouter guard) and c4 (hiding the\n * failover action for unsupported pairs).\n */\nexport const SUPPORTED_FAILOVER_REGION_PAIRS: ReadonlySet<string> = new Set([\n 'us-east-2:us-west-2',\n 'us-west-2:us-east-2',\n 'us-east-2:us-east-1',\n 'us-east-1:us-east-2',\n])\n\n// Dev-only test pairs: EU failover validation on dev/local before prod rollout.\nconst DEV_FAILOVER_REGION_PAIRS: ReadonlySet<string> = new Set([\n 'eu-west-1:eu-west-2',\n 'eu-west-2:eu-west-1',\n])\n\n// GCP test pair \u2014 INT's dual region. Stathis confirmed this pair in the\n// Slack thread on #9816. This set unlocks on preprod stages only. It exists\n// to test the failover action on a second GCP region pair before that pair\n// is confirmed for prod. See `GCP_FAILOVER_REGION_PAIRS_PROD` for the pair\n// that GCP failover uses in prod.\nconst GCP_FAILOVER_REGION_PAIRS: ReadonlySet<string> = new Set([\n 'europe-north1:europe-west1',\n 'europe-west1:europe-north1',\n])\n\n/**\n * GCP's prod dual-region pair. Stathis confirmed it in the same Slack thread\n * as `GCP_FAILOVER_REGION_PAIRS` (#9816).\n *\n * `isSupportedFailoverRegionPair` reads this set on the 'prod' stage. Two\n * changes made this safe: GCP clusters have no BYOK option, so the AWS-only\n * key-policy screen never shows for a GCP cluster; and the operator\n * clone-role logic added a GCP branch in #9835.\n *\n * This set does not control customer access on its own. Two independent\n * gates still apply: the `failover` feature flag, which allows only\n * Camunda's internal org in prod, and the `failover` plan limit, which the\n * org must also have enabled. This set only tells the backend and c4 which\n * region pairs to treat as failover-capable.\n */\nexport const GCP_FAILOVER_REGION_PAIRS_PROD: ReadonlySet<string> = new Set([\n 'us-central1:us-east1',\n 'us-east1:us-central1',\n])\n\n/**\n * `stage` mirrors the featureflags `onlyDev` and `onlyPreprod` gates. The EU\n * test pairs unlock only on 'local' and 'dev'. The GCP test pair also unlocks\n * on 'int', because dev has no GCP failover test cluster. The GCP prod pair\n * unlocks only on 'prod'. When you omit stage, the function allows the base\n * set only.\n */\nexport function isSupportedFailoverRegionPair(\n regionA: string | undefined,\n regionB: string | undefined,\n stage?: string,\n): boolean {\n if (!regionA || !regionB) return false\n const pair = `${regionA.toLowerCase()}:${regionB.toLowerCase()}`\n if (SUPPORTED_FAILOVER_REGION_PAIRS.has(pair)) return true\n const isDev = stage === 'local' || stage === 'dev'\n if (isDev && DEV_FAILOVER_REGION_PAIRS.has(pair)) return true\n const isPreprod = isDev || stage === 'int'\n if (isPreprod && GCP_FAILOVER_REGION_PAIRS.has(pair)) return true\n return stage === 'prod' && GCP_FAILOVER_REGION_PAIRS_PROD.has(pair)\n}\n"],
|
|
5
|
-
"mappings": "AAiBO,MAAM,kCAAuD,oBAAI,IAAI;AAAA,EAC1E;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGD,MAAM,4BAAiD,oBAAI,IAAI;AAAA,EAC7D;AAAA,EACA;AACF,CAAC;AAOD,MAAM,4BAAiD,oBAAI,IAAI;AAAA,EAC7D;AAAA,EACA;AACF,CAAC;AAiBM,MAAM,iCAAsD,oBAAI,IAAI;AAAA,EACzE;AAAA,EACA;AACF,CAAC;AASM,SAAS,8BACd,SACA,SACA,OACS;AACT,MAAI,CAAC,WAAW,CAAC,QAAS,QAAO;AACjC,QAAM,OAAO,GAAG,QAAQ,YAAY,CAAC,IAAI,QAAQ,YAAY,CAAC;AAC9D,MAAI,gCAAgC,IAAI,IAAI,EAAG,QAAO;AACtD,QAAM,QAAQ,UAAU,WAAW,UAAU;AAC7C,MAAI,SAAS,0BAA0B,IAAI,IAAI,EAAG,QAAO;AACzD,QAAM,YAAY,SAAS,UAAU;AACrC,MAAI,aAAa,0BAA0B,IAAI,IAAI,EAAG,QAAO;AAC7D,SAAO,UAAU,UAAU,+BAA+B,IAAI,IAAI;AACpE;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
/package/dist/_tests/{constants/failoverRegionPairs.const.spec.d.ts → annotations/policy.spec.d.ts}
RENAMED
|
File without changes
|