File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
packages/js-commons/src/core Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @ensembleui/js-commons " : patch
3+ ---
4+
5+ feat: add secrets support in firestore app transporter
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export interface ApplicationDTO
6161 readonly assets ?: AssetDTO [ ] ;
6262 readonly fonts ?: FontDTO [ ] ;
6363 readonly env ?: EnvironmentDTO ;
64+ readonly secrets ?: SecretDTO ;
6465 readonly translations ?: TranslationDTO [ ] ;
6566}
6667
@@ -111,6 +112,10 @@ export interface EnvironmentDTO {
111112 readonly secretVariables ?: Record < string , unknown > ;
112113}
113114
115+ export interface SecretDTO {
116+ readonly secrets ?: Record < string , unknown > ;
117+ }
118+
114119export type AssetDTO = EnsembleDocument & {
115120 readonly type : EnsembleDocumentType . Asset ;
116121 readonly fileName : string ;
@@ -151,5 +156,6 @@ export const ArtifactProps = [
151156 "fonts" ,
152157 "translations" ,
153158 "env" ,
159+ "secrets" ,
154160 "theme" ,
155161] as const ;
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export const getFirestoreApplicationTransporter = (
7979 EnsembleDocumentType . I18n
8080 ] as TranslationDTO [ ] ;
8181 const env = head ( artifactsByType [ EnsembleDocumentType . Environment ] ) ;
82+ const secrets = head ( artifactsByType [ EnsembleDocumentType . Secrets ] ) ;
8283
8384 return {
8485 ...app ,
@@ -90,6 +91,7 @@ export const getFirestoreApplicationTransporter = (
9091 translations,
9192 assets,
9293 env,
94+ secrets,
9395 fonts,
9496 manifest : Object . fromEntries (
9597 Object . values ( artifactsByType ) . flatMap ( ( artifacts ) =>
You can’t perform that action at this time.
0 commit comments