@openhi/constructs 0.0.150 → 0.0.152
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/lib/{chunk-AWYZJFPL.mjs → chunk-CFJDATDK.mjs} +8 -1
- package/lib/chunk-CFJDATDK.mjs.map +1 -0
- package/lib/{chunk-I7IIPV5X.mjs → chunk-KR2Y2CVQ.mjs} +10 -4
- package/lib/chunk-KR2Y2CVQ.mjs.map +1 -0
- package/lib/{chunk-WGA43MMY.mjs → chunk-SXYY5WHG.mjs} +194 -71
- package/lib/chunk-SXYY5WHG.mjs.map +1 -0
- package/lib/{chunk-CEOAGPYY.mjs → chunk-ZXPA6W3G.mjs} +1 -3
- package/lib/chunk-ZXPA6W3G.mjs.map +1 -0
- package/lib/data-store-postgres-replication.handler.js +687 -0
- package/lib/data-store-postgres-replication.handler.js.map +1 -1
- package/lib/data-store-postgres-replication.handler.mjs +3 -2
- package/lib/data-store-postgres-replication.handler.mjs.map +1 -1
- package/lib/{events-CMG8xanm.d.ts → events-DTgo2dcW.d.mts} +2 -14
- package/lib/{events-CMG8xanm.d.mts → events-DTgo2dcW.d.ts} +2 -14
- package/lib/firehose-archive-transform.handler.js +688 -2
- package/lib/firehose-archive-transform.handler.js.map +1 -1
- package/lib/firehose-archive-transform.handler.mjs +3 -2
- package/lib/index.d.mts +62 -8
- package/lib/index.d.ts +62 -20
- package/lib/index.js +53 -22
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +36 -7
- package/lib/index.mjs.map +1 -1
- package/lib/provision-default-workspace.handler.js +6 -0
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +1 -1
- package/lib/rest-api-lambda.handler.js +6 -0
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +1 -1
- package/lib/seed-demo-data.handler.d.mts +14 -1
- package/lib/seed-demo-data.handler.d.ts +14 -1
- package/lib/seed-demo-data.handler.js +199 -68
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +2 -2
- package/package.json +5 -5
- package/lib/chunk-AWYZJFPL.mjs.map +0 -1
- package/lib/chunk-CEOAGPYY.mjs.map +0 -1
- package/lib/chunk-I7IIPV5X.mjs.map +0 -1
- package/lib/chunk-WGA43MMY.mjs.map +0 -1
package/lib/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DATA_STORE_CHANGE_DETAIL_MAX_UTF8_BYTES,
|
|
3
3
|
DATA_STORE_CHANGE_DETAIL_TYPE,
|
|
4
|
-
DATA_STORE_CHANGE_EVENT_SOURCE,
|
|
5
4
|
buildFhirCurrentResourceChangeDetail
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZXPA6W3G.mjs";
|
|
7
6
|
import {
|
|
8
7
|
SEED_SYSTEM_DATA_ACTOR_SYSTEM,
|
|
9
8
|
SEED_SYSTEM_DATA_CONSUMER_NAME,
|
|
@@ -19,7 +18,6 @@ import {
|
|
|
19
18
|
OPENHI_RESOURCE_URN_SYSTEM,
|
|
20
19
|
PLACEHOLDER_TENANT_ID,
|
|
21
20
|
PLACEHOLDER_WORKSPACE_ID,
|
|
22
|
-
PLATFORM_SCOPE_TENANT_ID,
|
|
23
21
|
SEED_DEMO_DATA_CONSUMER_NAME,
|
|
24
22
|
SEED_DEMO_DATA_USER_POOL_ID_ENV_VAR,
|
|
25
23
|
demoMembershipId,
|
|
@@ -28,7 +26,7 @@ import {
|
|
|
28
26
|
demoScenarioIdentifier,
|
|
29
27
|
import_workflows,
|
|
30
28
|
openhiResourceIdentifier
|
|
31
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SXYY5WHG.mjs";
|
|
32
30
|
import {
|
|
33
31
|
OWNING_DELETE_CASCADE_CONSUMER_NAME,
|
|
34
32
|
OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY,
|
|
@@ -62,7 +60,9 @@ import {
|
|
|
62
60
|
import {
|
|
63
61
|
require_lib
|
|
64
62
|
} from "./chunk-ZM4GDHHC.mjs";
|
|
65
|
-
import
|
|
63
|
+
import {
|
|
64
|
+
PLATFORM_SCOPE_TENANT_ID
|
|
65
|
+
} from "./chunk-CFJDATDK.mjs";
|
|
66
66
|
import "./chunk-HQ67J7BP.mjs";
|
|
67
67
|
import "./chunk-QJDHVMKT.mjs";
|
|
68
68
|
import "./chunk-MVQWAIMC.mjs";
|
|
@@ -2314,7 +2314,7 @@ var SeedDemoDataLambda = class extends Construct13 {
|
|
|
2314
2314
|
this.lambda.addToRolePolicy(
|
|
2315
2315
|
new PolicyStatement3({
|
|
2316
2316
|
effect: Effect3.ALLOW,
|
|
2317
|
-
actions: ["dynamodb:PutItem", "dynamodb:UpdateItem"],
|
|
2317
|
+
actions: ["dynamodb:PutItem", "dynamodb:UpdateItem", "dynamodb:Query"],
|
|
2318
2318
|
resources: [props.dataStoreTable.tableArn]
|
|
2319
2319
|
})
|
|
2320
2320
|
);
|
|
@@ -2570,6 +2570,7 @@ var OpenHiDataService = _OpenHiDataService;
|
|
|
2570
2570
|
|
|
2571
2571
|
// src/services/open-hi-website-service.ts
|
|
2572
2572
|
var import_config6 = __toESM(require_lib2());
|
|
2573
|
+
import { CfnOutput } from "aws-cdk-lib";
|
|
2573
2574
|
import { Bucket as Bucket3 } from "aws-cdk-lib/aws-s3";
|
|
2574
2575
|
|
|
2575
2576
|
// src/services/open-hi-rest-api-service.ts
|
|
@@ -3158,6 +3159,7 @@ var _OpenHiWebsiteService = class _OpenHiWebsiteService extends OpenHiService {
|
|
|
3158
3159
|
const isReleaseBranch = this.branchName === this.defaultReleaseBranch;
|
|
3159
3160
|
const hostedZone = this.createHostedZone();
|
|
3160
3161
|
this.fullDomain = this.computeFullDomain(hostedZone);
|
|
3162
|
+
this.createAdminConsoleEndpointOutput();
|
|
3161
3163
|
const shouldCreateHostingInfra = props.createHostingInfrastructure ?? isReleaseBranch;
|
|
3162
3164
|
if (shouldCreateHostingInfra) {
|
|
3163
3165
|
const certificate = this.createCertificate();
|
|
@@ -3297,6 +3299,25 @@ var _OpenHiWebsiteService = class _OpenHiWebsiteService extends OpenHiService {
|
|
|
3297
3299
|
description: "Full website domain (e.g. www.example.com)"
|
|
3298
3300
|
});
|
|
3299
3301
|
}
|
|
3302
|
+
/**
|
|
3303
|
+
* Adds a CloudFormation `AdminConsoleEndpoint` output exposing the
|
|
3304
|
+
* admin-console invocation URL (`https://<fullDomain>`) on every
|
|
3305
|
+
* deploy of this stack — release-branch and per-PR alike. The
|
|
3306
|
+
* configulator `aws-deploy-workflow` filters CFN outputs by the
|
|
3307
|
+
* `Endpoint$` logical-id suffix to surface them in the GitHub
|
|
3308
|
+
* Actions run summary and sticky PR comment, so the logical id is
|
|
3309
|
+
* pinned via {@link CfnOutput.overrideLogicalId} to keep the
|
|
3310
|
+
* literal key stable across synths.
|
|
3311
|
+
*/
|
|
3312
|
+
createAdminConsoleEndpointOutput() {
|
|
3313
|
+
const output = new CfnOutput(this, "admin-console-endpoint-output", {
|
|
3314
|
+
value: `https://${this.fullDomain}`,
|
|
3315
|
+
description: "Admin console endpoint for this deploy (https://<fullDomain>). Surfaced by the deploy workflow's sticky PR comment and job summary."
|
|
3316
|
+
});
|
|
3317
|
+
output.overrideLogicalId(
|
|
3318
|
+
_OpenHiWebsiteService.ADMIN_CONSOLE_ENDPOINT_OUTPUT_NAME
|
|
3319
|
+
);
|
|
3320
|
+
}
|
|
3300
3321
|
/**
|
|
3301
3322
|
* Creates the StaticContent uploader. Receives the resolved static-hosting
|
|
3302
3323
|
* bucket from the constructor — on the release-branch deploy this is the
|
|
@@ -3363,6 +3384,15 @@ _OpenHiWebsiteService.SERVICE_TYPE = "website";
|
|
|
3363
3384
|
* `www-<childZonePrefix>.<zone>`.
|
|
3364
3385
|
*/
|
|
3365
3386
|
_OpenHiWebsiteService.DEFAULT_DOMAIN_PREFIX = "www";
|
|
3387
|
+
/**
|
|
3388
|
+
* CloudFormation logical key for the admin-console endpoint `CfnOutput`.
|
|
3389
|
+
* The configulator deploy workflow filters outputs whose logical id
|
|
3390
|
+
* matches the `Endpoint$` regex to surface them in the GitHub Actions
|
|
3391
|
+
* run summary and sticky PR comment, so the suffix must be `Endpoint`.
|
|
3392
|
+
* The logical id is pinned via {@link CfnOutput.overrideLogicalId} so
|
|
3393
|
+
* it does not pick up a synth-time hash suffix.
|
|
3394
|
+
*/
|
|
3395
|
+
_OpenHiWebsiteService.ADMIN_CONSOLE_ENDPOINT_OUTPUT_NAME = "AdminConsoleEndpoint";
|
|
3366
3396
|
var OpenHiWebsiteService = _OpenHiWebsiteService;
|
|
3367
3397
|
|
|
3368
3398
|
// src/workflows/control-plane/user-onboarding/provision-default-workspace-lambda.ts
|
|
@@ -4381,7 +4411,6 @@ export {
|
|
|
4381
4411
|
export_ControlPlaneRenameV1 as ControlPlaneRenameV1,
|
|
4382
4412
|
DATA_STORE_CHANGE_DETAIL_MAX_UTF8_BYTES,
|
|
4383
4413
|
DATA_STORE_CHANGE_DETAIL_TYPE,
|
|
4384
|
-
DATA_STORE_CHANGE_EVENT_SOURCE,
|
|
4385
4414
|
DEFAULT_PREVIEW_EXPIRATION_DAYS,
|
|
4386
4415
|
DEMO_DATA_PLANE_FIXTURES,
|
|
4387
4416
|
DEMO_PERIOD,
|