@ankhorage/deploy 0.3.0 → 0.4.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/CHANGELOG.md +6 -0
- package/README.md +1 -2
- package/dist/domain/DeploymentCurrentState.d.ts +6 -3
- package/dist/domain/DeploymentCurrentState.d.ts.map +1 -1
- package/dist/domain/DeploymentCurrentState.js.map +1 -1
- package/dist/domain/DeploymentDesiredRevisions.d.ts +3 -0
- package/dist/domain/DeploymentDesiredRevisions.d.ts.map +1 -0
- package/dist/domain/DeploymentDesiredRevisions.js +2 -0
- package/dist/domain/DeploymentDesiredRevisions.js.map +1 -0
- package/dist/domain/DeploymentTargetChange.d.ts +1 -1
- package/dist/domain/DeploymentTargetChange.d.ts.map +1 -1
- package/dist/domain/DeploymentTargetChange.js +1 -0
- package/dist/domain/DeploymentTargetChange.js.map +1 -1
- package/dist/domain/WebDeploymentPublication.d.ts +9 -0
- package/dist/domain/WebDeploymentPublication.d.ts.map +1 -0
- package/dist/domain/WebDeploymentPublication.js +2 -0
- package/dist/domain/WebDeploymentPublication.js.map +1 -0
- package/dist/domain/WebDeploymentPublishIntent.d.ts +6 -0
- package/dist/domain/WebDeploymentPublishIntent.d.ts.map +1 -0
- package/dist/domain/WebDeploymentPublishIntent.js +2 -0
- package/dist/domain/WebDeploymentPublishIntent.js.map +1 -0
- package/dist/engine/createDeploymentChanges.d.ts +2 -0
- package/dist/engine/createDeploymentChanges.d.ts.map +1 -1
- package/dist/engine/createDeploymentChanges.js +22 -7
- package/dist/engine/createDeploymentChanges.js.map +1 -1
- package/dist/engine/createDeploymentPlan.d.ts +2 -0
- package/dist/engine/createDeploymentPlan.d.ts.map +1 -1
- package/dist/engine/createDeploymentPlan.js.map +1 -1
- package/dist/engine/targetSnapshot.d.ts +2 -2
- package/dist/engine/targetSnapshot.d.ts.map +1 -1
- package/dist/engine/targetSnapshot.js +14 -9
- package/dist/engine/targetSnapshot.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/project/history/validation/observedTarget.d.ts.map +1 -1
- package/dist/project/history/validation/observedTarget.js +13 -6
- package/dist/project/history/validation/observedTarget.js.map +1 -1
- package/dist/project/index.d.ts +6 -0
- package/dist/project/index.d.ts.map +1 -1
- package/dist/project/index.js +3 -0
- package/dist/project/index.js.map +1 -1
- package/dist/project/web/ProjectWebDeploymentAccess.d.ts +7 -0
- package/dist/project/web/ProjectWebDeploymentAccess.d.ts.map +1 -0
- package/dist/project/web/ProjectWebDeploymentAccess.js +2 -0
- package/dist/project/web/ProjectWebDeploymentAccess.js.map +1 -0
- package/dist/project/web/ProjectWebDeploymentExecution.d.ts +12 -0
- package/dist/project/web/ProjectWebDeploymentExecution.d.ts.map +1 -0
- package/dist/project/web/ProjectWebDeploymentExecution.js +2 -0
- package/dist/project/web/ProjectWebDeploymentExecution.js.map +1 -0
- package/dist/project/web/ProjectWebDeploymentInspection.d.ts +19 -0
- package/dist/project/web/ProjectWebDeploymentInspection.d.ts.map +1 -0
- package/dist/project/web/ProjectWebDeploymentInspection.js +2 -0
- package/dist/project/web/ProjectWebDeploymentInspection.js.map +1 -0
- package/dist/project/web/ProjectWebDeploymentRuntime.d.ts +9 -0
- package/dist/project/web/ProjectWebDeploymentRuntime.d.ts.map +1 -0
- package/dist/project/web/ProjectWebDeploymentRuntime.js +8 -0
- package/dist/project/web/ProjectWebDeploymentRuntime.js.map +1 -0
- package/dist/project/web/ProjectWebExecutionState.d.ts +9 -0
- package/dist/project/web/ProjectWebExecutionState.d.ts.map +1 -0
- package/dist/project/web/ProjectWebExecutionState.js +2 -0
- package/dist/project/web/ProjectWebExecutionState.js.map +1 -0
- package/dist/project/web/areDeploymentPlansEqual.d.ts +3 -0
- package/dist/project/web/areDeploymentPlansEqual.d.ts.map +1 -0
- package/dist/project/web/areDeploymentPlansEqual.js +4 -0
- package/dist/project/web/areDeploymentPlansEqual.js.map +1 -0
- package/dist/project/web/createProjectWebDeploymentPlan.d.ts +4 -0
- package/dist/project/web/createProjectWebDeploymentPlan.d.ts.map +1 -0
- package/dist/project/web/createProjectWebDeploymentPlan.js +13 -0
- package/dist/project/web/createProjectWebDeploymentPlan.js.map +1 -0
- package/dist/project/web/executeProjectWebDeployment.d.ts +14 -0
- package/dist/project/web/executeProjectWebDeployment.d.ts.map +1 -0
- package/dist/project/web/executeProjectWebDeployment.js +118 -0
- package/dist/project/web/executeProjectWebDeployment.js.map +1 -0
- package/dist/project/web/executeProjectWebStep.d.ts +16 -0
- package/dist/project/web/executeProjectWebStep.d.ts.map +1 -0
- package/dist/project/web/executeProjectWebStep.js +80 -0
- package/dist/project/web/executeProjectWebStep.js.map +1 -0
- package/dist/project/web/inspectProjectWebDeployment.d.ts +9 -0
- package/dist/project/web/inspectProjectWebDeployment.d.ts.map +1 -0
- package/dist/project/web/inspectProjectWebDeployment.js +56 -0
- package/dist/project/web/inspectProjectWebDeployment.js.map +1 -0
- package/dist/project/web/inspectProjectWebSetup.d.ts +5 -0
- package/dist/project/web/inspectProjectWebSetup.d.ts.map +1 -0
- package/dist/project/web/inspectProjectWebSetup.js +9 -0
- package/dist/project/web/inspectProjectWebSetup.js.map +1 -0
- package/dist/project/web/normalizeProjectWebDesired.d.ts +12 -0
- package/dist/project/web/normalizeProjectWebDesired.d.ts.map +1 -0
- package/dist/project/web/normalizeProjectWebDesired.js +20 -0
- package/dist/project/web/normalizeProjectWebDesired.js.map +1 -0
- package/dist/project/web/readCurrentProjectWebDeployment.d.ts +3 -0
- package/dist/project/web/readCurrentProjectWebDeployment.d.ts.map +1 -0
- package/dist/project/web/readCurrentProjectWebDeployment.js +24 -0
- package/dist/project/web/readCurrentProjectWebDeployment.js.map +1 -0
- package/dist/project/web/recordProjectWebDeployment.d.ts +19 -0
- package/dist/project/web/recordProjectWebDeployment.d.ts.map +1 -0
- package/dist/project/web/recordProjectWebDeployment.js +36 -0
- package/dist/project/web/recordProjectWebDeployment.js.map +1 -0
- package/dist/project/web/resolveProjectWebDeploymentAccess.d.ts +9 -0
- package/dist/project/web/resolveProjectWebDeploymentAccess.d.ts.map +1 -0
- package/dist/project/web/resolveProjectWebDeploymentAccess.js +7 -0
- package/dist/project/web/resolveProjectWebDeploymentAccess.js.map +1 -0
- package/dist/project/web/setupBlockingOutcome.d.ts +4 -0
- package/dist/project/web/setupBlockingOutcome.d.ts.map +1 -0
- package/dist/project/web/setupBlockingOutcome.js +34 -0
- package/dist/project/web/setupBlockingOutcome.js.map +1 -0
- package/dist/providers/eas/createEasHostingSetupAdapter.d.ts +7 -0
- package/dist/providers/eas/createEasHostingSetupAdapter.d.ts.map +1 -0
- package/dist/providers/eas/createEasHostingSetupAdapter.js +76 -0
- package/dist/providers/eas/createEasHostingSetupAdapter.js.map +1 -0
- package/dist/providers/eas/parseEasWebPublication.d.ts +3 -0
- package/dist/providers/eas/parseEasWebPublication.d.ts.map +1 -0
- package/dist/providers/eas/parseEasWebPublication.js +31 -0
- package/dist/providers/eas/parseEasWebPublication.js.map +1 -0
- package/dist/providers/eas/publishWebToEas.d.ts +27 -0
- package/dist/providers/eas/publishWebToEas.d.ts.map +1 -0
- package/dist/providers/eas/publishWebToEas.js +52 -0
- package/dist/providers/eas/publishWebToEas.js.map +1 -0
- package/dist/providers/eas/resolveEasProcessEnvironment.d.ts +15 -0
- package/dist/providers/eas/resolveEasProcessEnvironment.d.ts.map +1 -0
- package/dist/providers/eas/resolveEasProcessEnvironment.js +26 -0
- package/dist/providers/eas/resolveEasProcessEnvironment.js.map +1 -0
- package/dist/runtime/http/DeploymentHttpProbe.d.ts +6 -0
- package/dist/runtime/http/DeploymentHttpProbe.d.ts.map +1 -0
- package/dist/runtime/http/DeploymentHttpProbe.js +2 -0
- package/dist/runtime/http/DeploymentHttpProbe.js.map +1 -0
- package/dist/runtime/http/probeDeploymentHttp.d.ts +3 -0
- package/dist/runtime/http/probeDeploymentHttp.d.ts.map +1 -0
- package/dist/runtime/http/probeDeploymentHttp.js +5 -0
- package/dist/runtime/http/probeDeploymentHttp.js.map +1 -0
- package/dist/runtime/process/DeploymentProcessRunner.d.ts +13 -0
- package/dist/runtime/process/DeploymentProcessRunner.d.ts.map +1 -0
- package/dist/runtime/process/DeploymentProcessRunner.js +2 -0
- package/dist/runtime/process/DeploymentProcessRunner.js.map +1 -0
- package/dist/runtime/process/runDeploymentProcess.d.ts +3 -0
- package/dist/runtime/process/runDeploymentProcess.d.ts.map +1 -0
- package/dist/runtime/process/runDeploymentProcess.js +29 -0
- package/dist/runtime/process/runDeploymentProcess.js.map +1 -0
- package/dist/targets/web/PreparedWebArtifact.d.ts +5 -0
- package/dist/targets/web/PreparedWebArtifact.d.ts.map +1 -0
- package/dist/targets/web/PreparedWebArtifact.js +2 -0
- package/dist/targets/web/PreparedWebArtifact.js.map +1 -0
- package/dist/targets/web/createWebTargetPlanContributor.d.ts +3 -0
- package/dist/targets/web/createWebTargetPlanContributor.d.ts.map +1 -0
- package/dist/targets/web/createWebTargetPlanContributor.js +32 -0
- package/dist/targets/web/createWebTargetPlanContributor.js.map +1 -0
- package/dist/targets/web/hashWebExport.d.ts +2 -0
- package/dist/targets/web/hashWebExport.d.ts.map +1 -0
- package/dist/targets/web/hashWebExport.js +30 -0
- package/dist/targets/web/hashWebExport.js.map +1 -0
- package/dist/targets/web/normalizeWebProviders.d.ts +16 -0
- package/dist/targets/web/normalizeWebProviders.d.ts.map +1 -0
- package/dist/targets/web/normalizeWebProviders.js +16 -0
- package/dist/targets/web/normalizeWebProviders.js.map +1 -0
- package/dist/targets/web/prepareWebArtifact.d.ts +16 -0
- package/dist/targets/web/prepareWebArtifact.d.ts.map +1 -0
- package/dist/targets/web/prepareWebArtifact.js +46 -0
- package/dist/targets/web/prepareWebArtifact.js.map +1 -0
- package/dist/targets/web/verifyWebPublication.d.ts +5 -0
- package/dist/targets/web/verifyWebPublication.d.ts.map +1 -0
- package/dist/targets/web/verifyWebPublication.js +25 -0
- package/dist/targets/web/verifyWebPublication.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ankhorage/deploy
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f476cf: Add revision-aware deployment planning and the first production Web deployment lifecycle with Expo export, EAS Hosting publication, verification, and immutable project history.
|
|
8
|
+
|
|
3
9
|
## 0.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/deploy
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Declarative deployment engine for Expo apps across web, iOS, and Android.
|
|
9
9
|
|
|
@@ -16,4 +16,3 @@ Declarative deployment engine for Expo apps across web, iOS, and Android.
|
|
|
16
16
|
- [Module relationships](././paradox/diagrams/module-relationships.mmd)
|
|
17
17
|
- [Export graph](././paradox/diagrams/export-graph.mmd)
|
|
18
18
|
- [createDeploymentPlan sequence](././paradox/diagrams/sequences/create-deployment-plan.mmd)
|
|
19
|
-
- [executeDeploymentPlan sequence](././paradox/diagrams/sequences/execute-deployment-plan.mmd)
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { AppDeployProviderSelection } from '@ankhorage/contracts/deploy';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DeploymentObservedRevision {
|
|
3
|
+
readonly revision?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface DeploymentObservedWebTarget extends DeploymentObservedRevision {
|
|
3
6
|
readonly providers?: AppDeployProviderSelection;
|
|
4
7
|
}
|
|
5
|
-
export interface DeploymentObservedAndroidTarget {
|
|
8
|
+
export interface DeploymentObservedAndroidTarget extends DeploymentObservedRevision {
|
|
6
9
|
readonly package: string;
|
|
7
10
|
readonly providers?: AppDeployProviderSelection;
|
|
8
11
|
}
|
|
9
|
-
export interface DeploymentObservedIosTarget {
|
|
12
|
+
export interface DeploymentObservedIosTarget extends DeploymentObservedRevision {
|
|
10
13
|
readonly bundleIdentifier: string;
|
|
11
14
|
readonly providers?: AppDeployProviderSelection;
|
|
12
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentCurrentState.d.ts","sourceRoot":"","sources":["../../src/domain/DeploymentCurrentState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE9E,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"DeploymentCurrentState.d.ts","sourceRoot":"","sources":["../../src/domain/DeploymentCurrentState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE9E,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA4B,SAAQ,0BAA0B;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IACjF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,MAAM,WAAW,2BAA4B,SAAQ,0BAA0B;IAC7E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,MAAM,MAAM,wBAAwB,GAChC,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAA;CAAE,GAAG,2BAA2B,CAAC,GAC1D,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAAG,+BAA+B,CAAC,GAClE,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAA;CAAE,GAAG,2BAA2B,CAAC,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,EAAE,2BAA2B,CAAC;QAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,+BAA+B,CAAC;QACnD,QAAQ,CAAC,GAAG,CAAC,EAAE,2BAA2B,CAAC;KAC5C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentCurrentState.js","sourceRoot":"","sources":["../../src/domain/DeploymentCurrentState.ts"],"names":[],"mappings":"","sourcesContent":["import type { AppDeployProviderSelection } from '@ankhorage/contracts/deploy';\n\nexport interface DeploymentObservedWebTarget {\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport interface DeploymentObservedAndroidTarget {\n readonly package: string;\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport interface DeploymentObservedIosTarget {\n readonly bundleIdentifier: string;\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport type DeploymentObservedTarget =\n | ({ readonly target: 'web' } & DeploymentObservedWebTarget)\n | ({ readonly target: 'android' } & DeploymentObservedAndroidTarget)\n | ({ readonly target: 'ios' } & DeploymentObservedIosTarget);\n\nexport interface DeploymentCurrentState {\n readonly targets: {\n readonly web?: DeploymentObservedWebTarget;\n readonly android?: DeploymentObservedAndroidTarget;\n readonly ios?: DeploymentObservedIosTarget;\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DeploymentCurrentState.js","sourceRoot":"","sources":["../../src/domain/DeploymentCurrentState.ts"],"names":[],"mappings":"","sourcesContent":["import type { AppDeployProviderSelection } from '@ankhorage/contracts/deploy';\n\nexport interface DeploymentObservedRevision {\n readonly revision?: string;\n}\n\nexport interface DeploymentObservedWebTarget extends DeploymentObservedRevision {\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport interface DeploymentObservedAndroidTarget extends DeploymentObservedRevision {\n readonly package: string;\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport interface DeploymentObservedIosTarget extends DeploymentObservedRevision {\n readonly bundleIdentifier: string;\n readonly providers?: AppDeployProviderSelection;\n}\n\nexport type DeploymentObservedTarget =\n | ({ readonly target: 'web' } & DeploymentObservedWebTarget)\n | ({ readonly target: 'android' } & DeploymentObservedAndroidTarget)\n | ({ readonly target: 'ios' } & DeploymentObservedIosTarget);\n\nexport interface DeploymentCurrentState {\n readonly targets: {\n readonly web?: DeploymentObservedWebTarget;\n readonly android?: DeploymentObservedAndroidTarget;\n readonly ios?: DeploymentObservedIosTarget;\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeploymentDesiredRevisions.d.ts","sourceRoot":"","sources":["../../src/domain/DeploymentDesiredRevisions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeploymentDesiredRevisions.js","sourceRoot":"","sources":["../../src/domain/DeploymentDesiredRevisions.ts"],"names":[],"mappings":"","sourcesContent":["import type { AppDeployTargetId } from '@ankhorage/contracts/deploy';\n\nexport type DeploymentDesiredRevisions = Partial<Record<AppDeployTargetId, string>>;\n"]}
|
|
@@ -2,7 +2,7 @@ import type { AppDeployTargetId } from '@ankhorage/contracts/deploy';
|
|
|
2
2
|
import type { DeploymentObservedTarget } from './DeploymentCurrentState';
|
|
3
3
|
export declare const DEPLOYMENT_CHANGE_KINDS: readonly ["create", "update", "remove", "none"];
|
|
4
4
|
export type DeploymentChangeKind = (typeof DEPLOYMENT_CHANGE_KINDS)[number];
|
|
5
|
-
export declare const DEPLOYMENT_CHANGE_REASONS: readonly ["already-absent", "target-missing", "target-not-desired", "configuration-changed", "already-current"];
|
|
5
|
+
export declare const DEPLOYMENT_CHANGE_REASONS: readonly ["already-absent", "target-missing", "target-not-desired", "configuration-changed", "revision-changed", "already-current"];
|
|
6
6
|
export type DeploymentChangeReason = (typeof DEPLOYMENT_CHANGE_REASONS)[number];
|
|
7
7
|
export interface DeploymentTargetChange {
|
|
8
8
|
readonly target: AppDeployTargetId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentTargetChange.d.ts","sourceRoot":"","sources":["../../src/domain/DeploymentTargetChange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,uBAAuB,iDAAkD,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"DeploymentTargetChange.d.ts","sourceRoot":"","sources":["../../src/domain/DeploymentTargetChange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,uBAAuB,iDAAkD,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,yBAAyB,qIAO5B,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentTargetChange.js","sourceRoot":"","sources":["../../src/domain/DeploymentTargetChange.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAGvF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;CACT,CAAC","sourcesContent":["import type { AppDeployTargetId } from '@ankhorage/contracts/deploy';\n\nimport type { DeploymentObservedTarget } from './DeploymentCurrentState';\n\nexport const DEPLOYMENT_CHANGE_KINDS = ['create', 'update', 'remove', 'none'] as const;\nexport type DeploymentChangeKind = (typeof DEPLOYMENT_CHANGE_KINDS)[number];\n\nexport const DEPLOYMENT_CHANGE_REASONS = [\n 'already-absent',\n 'target-missing',\n 'target-not-desired',\n 'configuration-changed',\n 'already-current',\n] as const;\nexport type DeploymentChangeReason = (typeof DEPLOYMENT_CHANGE_REASONS)[number];\n\nexport interface DeploymentTargetChange {\n readonly target: AppDeployTargetId;\n readonly kind: DeploymentChangeKind;\n readonly desired: DeploymentObservedTarget | null;\n readonly current: DeploymentObservedTarget | null;\n readonly reason: DeploymentChangeReason;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DeploymentTargetChange.js","sourceRoot":"","sources":["../../src/domain/DeploymentTargetChange.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAGvF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,uBAAuB;IACvB,kBAAkB;IAClB,iBAAiB;CACT,CAAC","sourcesContent":["import type { AppDeployTargetId } from '@ankhorage/contracts/deploy';\n\nimport type { DeploymentObservedTarget } from './DeploymentCurrentState';\n\nexport const DEPLOYMENT_CHANGE_KINDS = ['create', 'update', 'remove', 'none'] as const;\nexport type DeploymentChangeKind = (typeof DEPLOYMENT_CHANGE_KINDS)[number];\n\nexport const DEPLOYMENT_CHANGE_REASONS = [\n 'already-absent',\n 'target-missing',\n 'target-not-desired',\n 'configuration-changed',\n 'revision-changed',\n 'already-current',\n] as const;\nexport type DeploymentChangeReason = (typeof DEPLOYMENT_CHANGE_REASONS)[number];\n\nexport interface DeploymentTargetChange {\n readonly target: AppDeployTargetId;\n readonly kind: DeploymentChangeKind;\n readonly desired: DeploymentObservedTarget | null;\n readonly current: DeploymentObservedTarget | null;\n readonly reason: DeploymentChangeReason;\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface WebDeploymentPublication {
|
|
2
|
+
readonly target: 'web';
|
|
3
|
+
readonly revision: string;
|
|
4
|
+
readonly provider: string;
|
|
5
|
+
readonly deploymentId: string;
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly production: boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=WebDeploymentPublication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebDeploymentPublication.d.ts","sourceRoot":"","sources":["../../src/domain/WebDeploymentPublication.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebDeploymentPublication.js","sourceRoot":"","sources":["../../src/domain/WebDeploymentPublication.ts"],"names":[],"mappings":"","sourcesContent":["export interface WebDeploymentPublication {\n readonly target: 'web';\n readonly revision: string;\n readonly provider: string;\n readonly deploymentId: string;\n readonly url: string;\n readonly production: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebDeploymentPublishIntent.d.ts","sourceRoot":"","sources":["../../src/domain/WebDeploymentPublishIntent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebDeploymentPublishIntent.js","sourceRoot":"","sources":["../../src/domain/WebDeploymentPublishIntent.ts"],"names":[],"mappings":"","sourcesContent":["export interface WebDeploymentPublishIntent {\n readonly mode: 'preview' | 'production';\n readonly alias?: string;\n readonly environment?: string;\n}\n"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type AppDeployManifest } from '@ankhorage/contracts/deploy';
|
|
2
2
|
import type { DeploymentCurrentState } from '../domain/DeploymentCurrentState';
|
|
3
|
+
import type { DeploymentDesiredRevisions } from '../domain/DeploymentDesiredRevisions';
|
|
3
4
|
import type { DeploymentTargetChange } from '../domain/DeploymentTargetChange';
|
|
4
5
|
export interface CreateDeploymentChangesInput {
|
|
5
6
|
readonly desired: AppDeployManifest;
|
|
6
7
|
readonly current: DeploymentCurrentState;
|
|
8
|
+
readonly desiredRevisions?: DeploymentDesiredRevisions;
|
|
7
9
|
}
|
|
8
10
|
export declare function createDeploymentChanges(input: CreateDeploymentChangesInput): readonly DeploymentTargetChange[];
|
|
9
11
|
//# sourceMappingURL=createDeploymentChanges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeploymentChanges.d.ts","sourceRoot":"","sources":["../../src/engine/createDeploymentChanges.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"createDeploymentChanges.d.ts","sourceRoot":"","sources":["../../src/engine/createDeploymentChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG/E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;CACxD;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,4BAA4B,GAClC,SAAS,sBAAsB,EAAE,CAUnC"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { APP_DEPLOY_TARGET_IDS } from '@ankhorage/contracts/deploy';
|
|
2
|
-
import {
|
|
1
|
+
import { APP_DEPLOY_TARGET_IDS, } from '@ankhorage/contracts/deploy';
|
|
2
|
+
import { areTargetConfigurationsEqual, getCurrentTarget, getDesiredTarget } from './targetSnapshot';
|
|
3
3
|
export function createDeploymentChanges(input) {
|
|
4
4
|
return APP_DEPLOY_TARGET_IDS.map((target) => {
|
|
5
|
-
const desired = getDesiredTarget(input.desired, target);
|
|
5
|
+
const desired = getDesiredTarget(input.desired, target, getDesiredRevision(input.desiredRevisions, target));
|
|
6
6
|
const current = getCurrentTarget(input.current, target);
|
|
7
7
|
return createTargetChange(target, desired, current);
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
+
function getDesiredRevision(revisions, target) {
|
|
11
|
+
switch (target) {
|
|
12
|
+
case 'web':
|
|
13
|
+
return revisions?.web;
|
|
14
|
+
case 'android':
|
|
15
|
+
return revisions?.android;
|
|
16
|
+
case 'ios':
|
|
17
|
+
return revisions?.ios;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
10
20
|
function createTargetChange(target, desired, current) {
|
|
11
21
|
if (desired === null && current === null) {
|
|
12
22
|
return { target, kind: 'none', desired, current, reason: 'already-absent' };
|
|
@@ -17,9 +27,14 @@ function createTargetChange(target, desired, current) {
|
|
|
17
27
|
if (desired === null && current !== null) {
|
|
18
28
|
return { target, kind: 'remove', desired, current, reason: 'target-not-desired' };
|
|
19
29
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
if (desired === null || current === null)
|
|
31
|
+
throw new Error('Unreachable target change state.');
|
|
32
|
+
if (!areTargetConfigurationsEqual(desired, current)) {
|
|
33
|
+
return { target, kind: 'update', desired, current, reason: 'configuration-changed' };
|
|
34
|
+
}
|
|
35
|
+
if (desired.revision !== undefined && desired.revision !== current.revision) {
|
|
36
|
+
return { target, kind: 'update', desired, current, reason: 'revision-changed' };
|
|
37
|
+
}
|
|
38
|
+
return { target, kind: 'none', desired, current, reason: 'already-current' };
|
|
24
39
|
}
|
|
25
40
|
//# sourceMappingURL=createDeploymentChanges.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeploymentChanges.js","sourceRoot":"","sources":["../../src/engine/createDeploymentChanges.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"createDeploymentChanges.js","sourceRoot":"","sources":["../../src/engine/createDeploymentChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,GAGtB,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAQpG,MAAM,UAAU,uBAAuB,CACrC,KAAmC;IAEnC,OAAO,qBAAqB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1C,MAAM,OAAO,GAAG,gBAAgB,CAC9B,KAAK,CAAC,OAAO,EACb,MAAM,EACN,kBAAkB,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CACnD,CAAC;QACF,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxD,OAAO,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CACzB,SAAiD,EACjD,MAAyB;IAEzB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,KAAK;YACR,OAAO,SAAS,EAAE,GAAG,CAAC;QACxB,KAAK,SAAS;YACZ,OAAO,SAAS,EAAE,OAAO,CAAC;QAC5B,KAAK,KAAK;YACR,OAAO,SAAS,EAAE,GAAG,CAAC;IAC1B,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CACzB,MAAwC,EACxC,OAA0C,EAC1C,OAA0C;IAE1C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC9E,CAAC;IACD,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAChF,CAAC;IACD,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC;IACpF,CAAC;IACD,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC9F,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;IACvF,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC5E,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAClF,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;AAC/E,CAAC","sourcesContent":["import {\n APP_DEPLOY_TARGET_IDS,\n type AppDeployManifest,\n type AppDeployTargetId,\n} from '@ankhorage/contracts/deploy';\n\nimport type { DeploymentCurrentState } from '../domain/DeploymentCurrentState';\nimport type { DeploymentDesiredRevisions } from '../domain/DeploymentDesiredRevisions';\nimport type { DeploymentTargetChange } from '../domain/DeploymentTargetChange';\nimport { areTargetConfigurationsEqual, getCurrentTarget, getDesiredTarget } from './targetSnapshot';\n\nexport interface CreateDeploymentChangesInput {\n readonly desired: AppDeployManifest;\n readonly current: DeploymentCurrentState;\n readonly desiredRevisions?: DeploymentDesiredRevisions;\n}\n\nexport function createDeploymentChanges(\n input: CreateDeploymentChangesInput,\n): readonly DeploymentTargetChange[] {\n return APP_DEPLOY_TARGET_IDS.map((target) => {\n const desired = getDesiredTarget(\n input.desired,\n target,\n getDesiredRevision(input.desiredRevisions, target),\n );\n const current = getCurrentTarget(input.current, target);\n return createTargetChange(target, desired, current);\n });\n}\n\nfunction getDesiredRevision(\n revisions: DeploymentDesiredRevisions | undefined,\n target: AppDeployTargetId,\n): string | undefined {\n switch (target) {\n case 'web':\n return revisions?.web;\n case 'android':\n return revisions?.android;\n case 'ios':\n return revisions?.ios;\n }\n}\n\nfunction createTargetChange(\n target: DeploymentTargetChange['target'],\n desired: DeploymentTargetChange['desired'],\n current: DeploymentTargetChange['current'],\n): DeploymentTargetChange {\n if (desired === null && current === null) {\n return { target, kind: 'none', desired, current, reason: 'already-absent' };\n }\n if (desired !== null && current === null) {\n return { target, kind: 'create', desired, current, reason: 'target-missing' };\n }\n if (desired === null && current !== null) {\n return { target, kind: 'remove', desired, current, reason: 'target-not-desired' };\n }\n if (desired === null || current === null) throw new Error('Unreachable target change state.');\n if (!areTargetConfigurationsEqual(desired, current)) {\n return { target, kind: 'update', desired, current, reason: 'configuration-changed' };\n }\n if (desired.revision !== undefined && desired.revision !== current.revision) {\n return { target, kind: 'update', desired, current, reason: 'revision-changed' };\n }\n return { target, kind: 'none', desired, current, reason: 'already-current' };\n}\n"]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { AppDeployManifest } from '@ankhorage/contracts/deploy';
|
|
2
2
|
import type { DeploymentCurrentState } from '../domain/DeploymentCurrentState';
|
|
3
|
+
import type { DeploymentDesiredRevisions } from '../domain/DeploymentDesiredRevisions';
|
|
3
4
|
import type { DeploymentPlan } from '../domain/DeploymentPlan';
|
|
4
5
|
import type { DeploymentTargetPlanContributors } from '../domain/DeploymentTargetPlanContributor';
|
|
5
6
|
export interface CreateDeploymentPlanInput {
|
|
6
7
|
readonly desired: AppDeployManifest;
|
|
7
8
|
readonly current: DeploymentCurrentState;
|
|
9
|
+
readonly desiredRevisions?: DeploymentDesiredRevisions;
|
|
8
10
|
readonly contributors: DeploymentTargetPlanContributors;
|
|
9
11
|
}
|
|
10
12
|
export declare function createDeploymentPlan(input: CreateDeploymentPlanInput): DeploymentPlan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeploymentPlan.d.ts","sourceRoot":"","sources":["../../src/engine/createDeploymentPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAIlG,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,gCAAgC,CAAC;CACzD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,cAAc,CA4BrF"}
|
|
1
|
+
{"version":3,"file":"createDeploymentPlan.d.ts","sourceRoot":"","sources":["../../src/engine/createDeploymentPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAIlG,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IACvD,QAAQ,CAAC,YAAY,EAAE,gCAAgC,CAAC;CACzD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,cAAc,CA4BrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeploymentPlan.js","sourceRoot":"","sources":["../../src/engine/createDeploymentPlan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createDeploymentPlan.js","sourceRoot":"","sources":["../../src/engine/createDeploymentPlan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAA8B,MAAM,oBAAoB,CAAC;AAS1F,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,OAAO,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,OAAO,GAA0B;QACrC,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,IAAI,GAAG,EAAU;QAC1B,KAAK,EAAE,EAAE;KACV,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM;YAAE,SAAS;QACrC,MAAM,WAAW,GAAG,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;gBACvB,IAAI,EAAE,4BAA4B;gBAClC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,OAAO,EAAE,sEAAsE;aAChF,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QACD,wBAAwB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACL,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;KAC7C,CAAC;AACJ,CAAC","sourcesContent":["import type { AppDeployManifest } from '@ankhorage/contracts/deploy';\n\nimport type { DeploymentCurrentState } from '../domain/DeploymentCurrentState';\nimport type { DeploymentDesiredRevisions } from '../domain/DeploymentDesiredRevisions';\nimport type { DeploymentPlan } from '../domain/DeploymentPlan';\nimport type { DeploymentTargetPlanContributors } from '../domain/DeploymentTargetPlanContributor';\nimport { createDeploymentChanges } from './createDeploymentChanges';\nimport { appendTargetContribution, type MutableDeploymentPlan } from './planContribution';\n\nexport interface CreateDeploymentPlanInput {\n readonly desired: AppDeployManifest;\n readonly current: DeploymentCurrentState;\n readonly desiredRevisions?: DeploymentDesiredRevisions;\n readonly contributors: DeploymentTargetPlanContributors;\n}\n\nexport function createDeploymentPlan(input: CreateDeploymentPlanInput): DeploymentPlan {\n const changes = createDeploymentChanges(input);\n const mutable: MutableDeploymentPlan = {\n diagnostics: [],\n stepIds: new Set<string>(),\n steps: [],\n };\n\n for (const change of changes) {\n if (change.kind === 'none') continue;\n const contributor = input.contributors[change.target];\n if (contributor === undefined) {\n mutable.diagnostics.push({\n code: 'TARGET_PLANNER_UNAVAILABLE',\n target: change.target,\n message: 'No target planner is registered for an actionable deployment change.',\n });\n continue;\n }\n appendTargetContribution(change, contributor, mutable);\n }\n\n return {\n changes,\n steps: mutable.steps,\n diagnostics: mutable.diagnostics,\n executable: mutable.diagnostics.length === 0,\n };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppDeployManifest, AppDeployTargetId } from '@ankhorage/contracts/deploy';
|
|
2
2
|
import type { DeploymentCurrentState, DeploymentObservedTarget } from '../domain/DeploymentCurrentState';
|
|
3
|
-
export declare function getDesiredTarget(desired: AppDeployManifest, target: AppDeployTargetId): DeploymentObservedTarget | null;
|
|
3
|
+
export declare function getDesiredTarget(desired: AppDeployManifest, target: AppDeployTargetId, revision?: string): DeploymentObservedTarget | null;
|
|
4
4
|
export declare function getCurrentTarget(current: DeploymentCurrentState, target: AppDeployTargetId): DeploymentObservedTarget | null;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function areTargetConfigurationsEqual(left: DeploymentObservedTarget, right: DeploymentObservedTarget): boolean;
|
|
6
6
|
//# sourceMappingURL=targetSnapshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targetSnapshot.d.ts","sourceRoot":"","sources":["../../src/engine/targetSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,iBAAiB,EAEjB,iBAAiB,EAElB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAE1C,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"targetSnapshot.d.ts","sourceRoot":"","sources":["../../src/engine/targetSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,iBAAiB,EAEjB,iBAAiB,EAElB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAE1C,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,MAAM,GAChB,wBAAwB,GAAG,IAAI,CASjC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,sBAAsB,EAC/B,MAAM,EAAE,iBAAiB,GACxB,wBAAwB,GAAG,IAAI,CASjC;AAED,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,wBAAwB,EAC9B,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAOT"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export function getDesiredTarget(desired, target) {
|
|
1
|
+
export function getDesiredTarget(desired, target, revision) {
|
|
2
2
|
switch (target) {
|
|
3
3
|
case 'web':
|
|
4
|
-
return desiredWebTarget(desired.targets.web);
|
|
4
|
+
return desiredWebTarget(desired.targets.web, revision);
|
|
5
5
|
case 'android':
|
|
6
|
-
return desiredAndroidTarget(desired.targets.android);
|
|
6
|
+
return desiredAndroidTarget(desired.targets.android, revision);
|
|
7
7
|
case 'ios':
|
|
8
|
-
return desiredIosTarget(desired.targets.ios);
|
|
8
|
+
return desiredIosTarget(desired.targets.ios, revision);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export function getCurrentTarget(current, target) {
|
|
@@ -18,7 +18,7 @@ export function getCurrentTarget(current, target) {
|
|
|
18
18
|
return current.targets.ios === undefined ? null : { target, ...current.targets.ios };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export function
|
|
21
|
+
export function areTargetConfigurationsEqual(left, right) {
|
|
22
22
|
if (left.target !== right.target || !haveSameProviders(left, right))
|
|
23
23
|
return false;
|
|
24
24
|
if (left.target === 'web')
|
|
@@ -28,32 +28,37 @@ export function areTargetSnapshotsEqual(left, right) {
|
|
|
28
28
|
}
|
|
29
29
|
return right.target === 'ios' && left.bundleIdentifier === right.bundleIdentifier;
|
|
30
30
|
}
|
|
31
|
-
function desiredWebTarget(config) {
|
|
31
|
+
function desiredWebTarget(config, revision) {
|
|
32
32
|
if (config?.enabled !== true)
|
|
33
33
|
return null;
|
|
34
|
-
return { target: 'web', ...optionalProviders(config.providers) };
|
|
34
|
+
return { target: 'web', ...optionalProviders(config.providers), ...optionalRevision(revision) };
|
|
35
35
|
}
|
|
36
|
-
function desiredAndroidTarget(config) {
|
|
36
|
+
function desiredAndroidTarget(config, revision) {
|
|
37
37
|
if (config?.enabled !== true)
|
|
38
38
|
return null;
|
|
39
39
|
return {
|
|
40
40
|
target: 'android',
|
|
41
41
|
package: config.package,
|
|
42
42
|
...optionalProviders(config.providers),
|
|
43
|
+
...optionalRevision(revision),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
|
-
function desiredIosTarget(config) {
|
|
46
|
+
function desiredIosTarget(config, revision) {
|
|
46
47
|
if (config?.enabled !== true)
|
|
47
48
|
return null;
|
|
48
49
|
return {
|
|
49
50
|
target: 'ios',
|
|
50
51
|
bundleIdentifier: config.bundleIdentifier,
|
|
51
52
|
...optionalProviders(config.providers),
|
|
53
|
+
...optionalRevision(revision),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
function optionalProviders(providers) {
|
|
55
57
|
return providers === undefined ? {} : { providers };
|
|
56
58
|
}
|
|
59
|
+
function optionalRevision(revision) {
|
|
60
|
+
return revision === undefined ? {} : { revision };
|
|
61
|
+
}
|
|
57
62
|
function haveSameProviders(left, right) {
|
|
58
63
|
return (left.providers?.build === right.providers?.build &&
|
|
59
64
|
left.providers?.publish === right.providers?.publish);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targetSnapshot.js","sourceRoot":"","sources":["../../src/engine/targetSnapshot.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,gBAAgB,CAC9B,OAA0B,EAC1B,MAAyB;
|
|
1
|
+
{"version":3,"file":"targetSnapshot.js","sourceRoot":"","sources":["../../src/engine/targetSnapshot.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,gBAAgB,CAC9B,OAA0B,EAC1B,MAAyB,EACzB,QAAiB;IAEjB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,KAAK;YACR,OAAO,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACzD,KAAK,SAAS;YACZ,OAAO,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACjE,KAAK,KAAK;YACR,OAAO,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,OAA+B,EAC/B,MAAyB;IAEzB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,KAAK;YACR,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACvF,KAAK,SAAS;YACZ,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAC/F,KAAK,KAAK;YACR,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IACzF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,IAA8B,EAC9B,KAA+B;IAE/B,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC;IACzD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAAC;IACtE,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,KAAK,KAAK,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,CAAC,gBAAgB,CAAC;AACpF,CAAC;AAED,SAAS,gBAAgB,CACvB,MAA4C,EAC5C,QAAiB;IAEjB,IAAI,MAAM,EAAE,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;AAClG,CAAC;AAED,SAAS,oBAAoB,CAC3B,MAAgD,EAChD,QAAiB;IAEjB,IAAI,MAAM,EAAE,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,GAAG,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC;QACtC,GAAG,gBAAgB,CAAC,QAAQ,CAAC;KAC9B,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CACvB,MAA4C,EAC5C,QAAiB;IAEjB,IAAI,MAAM,EAAE,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO;QACL,MAAM,EAAE,KAAK;QACb,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,GAAG,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC;QACtC,GAAG,gBAAgB,CAAC,QAAQ,CAAC;KAC9B,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,SAAiD;IAG1E,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;AACtD,CAAC;AAED,SAAS,gBAAgB,CAAC,QAA4B;IACpD,OAAO,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;AACpD,CAAC;AAED,SAAS,iBAAiB,CACxB,IAA8B,EAC9B,KAA+B;IAE/B,OAAO,CACL,IAAI,CAAC,SAAS,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,EAAE,KAAK;QAChD,IAAI,CAAC,SAAS,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,EAAE,OAAO,CACrD,CAAC;AACJ,CAAC","sourcesContent":["import type {\n AppDeployAndroidTargetConfig,\n AppDeployIosTargetConfig,\n AppDeployManifest,\n AppDeployProviderSelection,\n AppDeployTargetId,\n AppDeployWebTargetConfig,\n} from '@ankhorage/contracts/deploy';\n\nimport type {\n DeploymentCurrentState,\n DeploymentObservedTarget,\n} from '../domain/DeploymentCurrentState';\n\nexport function getDesiredTarget(\n desired: AppDeployManifest,\n target: AppDeployTargetId,\n revision?: string,\n): DeploymentObservedTarget | null {\n switch (target) {\n case 'web':\n return desiredWebTarget(desired.targets.web, revision);\n case 'android':\n return desiredAndroidTarget(desired.targets.android, revision);\n case 'ios':\n return desiredIosTarget(desired.targets.ios, revision);\n }\n}\n\nexport function getCurrentTarget(\n current: DeploymentCurrentState,\n target: AppDeployTargetId,\n): DeploymentObservedTarget | null {\n switch (target) {\n case 'web':\n return current.targets.web === undefined ? null : { target, ...current.targets.web };\n case 'android':\n return current.targets.android === undefined ? null : { target, ...current.targets.android };\n case 'ios':\n return current.targets.ios === undefined ? null : { target, ...current.targets.ios };\n }\n}\n\nexport function areTargetConfigurationsEqual(\n left: DeploymentObservedTarget,\n right: DeploymentObservedTarget,\n): boolean {\n if (left.target !== right.target || !haveSameProviders(left, right)) return false;\n if (left.target === 'web') return right.target === 'web';\n if (left.target === 'android') {\n return right.target === 'android' && left.package === right.package;\n }\n return right.target === 'ios' && left.bundleIdentifier === right.bundleIdentifier;\n}\n\nfunction desiredWebTarget(\n config: AppDeployWebTargetConfig | undefined,\n revision?: string,\n): DeploymentObservedTarget | null {\n if (config?.enabled !== true) return null;\n return { target: 'web', ...optionalProviders(config.providers), ...optionalRevision(revision) };\n}\n\nfunction desiredAndroidTarget(\n config: AppDeployAndroidTargetConfig | undefined,\n revision?: string,\n): DeploymentObservedTarget | null {\n if (config?.enabled !== true) return null;\n return {\n target: 'android',\n package: config.package,\n ...optionalProviders(config.providers),\n ...optionalRevision(revision),\n };\n}\n\nfunction desiredIosTarget(\n config: AppDeployIosTargetConfig | undefined,\n revision?: string,\n): DeploymentObservedTarget | null {\n if (config?.enabled !== true) return null;\n return {\n target: 'ios',\n bundleIdentifier: config.bundleIdentifier,\n ...optionalProviders(config.providers),\n ...optionalRevision(revision),\n };\n}\n\nfunction optionalProviders(providers: AppDeployProviderSelection | undefined): {\n readonly providers?: AppDeployProviderSelection;\n} {\n return providers === undefined ? {} : { providers };\n}\n\nfunction optionalRevision(revision: string | undefined): { readonly revision?: string } {\n return revision === undefined ? {} : { revision };\n}\n\nfunction haveSameProviders(\n left: DeploymentObservedTarget,\n right: DeploymentObservedTarget,\n): boolean {\n return (\n left.providers?.build === right.providers?.build &&\n left.providers?.publish === right.providers?.publish\n );\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './domain/DeploymentAuthenticationState';
|
|
|
2
2
|
export * from './domain/DeploymentCapability';
|
|
3
3
|
export * from './domain/DeploymentCredentialReference';
|
|
4
4
|
export * from './domain/DeploymentCurrentState';
|
|
5
|
+
export * from './domain/DeploymentDesiredRevisions';
|
|
5
6
|
export * from './domain/DeploymentExecutionResult';
|
|
6
7
|
export * from './domain/DeploymentFailure';
|
|
7
8
|
export * from './domain/DeploymentPlan';
|
|
@@ -19,6 +20,8 @@ export * from './domain/DeploymentStepOutcome';
|
|
|
19
20
|
export * from './domain/DeploymentTargetChange';
|
|
20
21
|
export * from './domain/DeploymentTargetPlanContributor';
|
|
21
22
|
export * from './domain/DeploymentVerificationResult';
|
|
23
|
+
export * from './domain/WebDeploymentPublication';
|
|
24
|
+
export * from './domain/WebDeploymentPublishIntent';
|
|
22
25
|
export * from './engine/createDeploymentChanges';
|
|
23
26
|
export * from './engine/createDeploymentPlan';
|
|
24
27
|
export * from './engine/executeDeploymentPlan';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './domain/DeploymentAuthenticationState';
|
|
|
2
2
|
export * from './domain/DeploymentCapability';
|
|
3
3
|
export * from './domain/DeploymentCredentialReference';
|
|
4
4
|
export * from './domain/DeploymentCurrentState';
|
|
5
|
+
export * from './domain/DeploymentDesiredRevisions';
|
|
5
6
|
export * from './domain/DeploymentExecutionResult';
|
|
6
7
|
export * from './domain/DeploymentFailure';
|
|
7
8
|
export * from './domain/DeploymentPlan';
|
|
@@ -19,6 +20,8 @@ export * from './domain/DeploymentStepOutcome';
|
|
|
19
20
|
export * from './domain/DeploymentTargetChange';
|
|
20
21
|
export * from './domain/DeploymentTargetPlanContributor';
|
|
21
22
|
export * from './domain/DeploymentVerificationResult';
|
|
23
|
+
export * from './domain/WebDeploymentPublication';
|
|
24
|
+
export * from './domain/WebDeploymentPublishIntent';
|
|
22
25
|
export * from './engine/createDeploymentChanges';
|
|
23
26
|
export * from './engine/createDeploymentPlan';
|
|
24
27
|
export * from './engine/executeDeploymentPlan';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC","sourcesContent":["export * from './domain/DeploymentAuthenticationState';\nexport * from './domain/DeploymentCapability';\nexport * from './domain/DeploymentCredentialReference';\nexport * from './domain/DeploymentCurrentState';\nexport * from './domain/DeploymentExecutionResult';\nexport * from './domain/DeploymentFailure';\nexport * from './domain/DeploymentPlan';\nexport * from './domain/DeploymentPlanDiagnostic';\nexport * from './domain/DeploymentPlanStep';\nexport * from './domain/DeploymentProviderCapabilityState';\nexport * from './domain/DeploymentProviderSetupAdapter';\nexport * from './domain/DeploymentProviderSetupContext';\nexport * from './domain/DeploymentProviderSetupInspection';\nexport * from './domain/DeploymentProviderSetupInspectionResult';\nexport * from './domain/DeploymentProvisioningRequirement';\nexport * from './domain/DeploymentRequiredAction';\nexport * from './domain/DeploymentSecretResolver';\nexport * from './domain/DeploymentStepOutcome';\nexport * from './domain/DeploymentTargetChange';\nexport * from './domain/DeploymentTargetPlanContributor';\nexport * from './domain/DeploymentVerificationResult';\nexport * from './engine/createDeploymentChanges';\nexport * from './engine/createDeploymentPlan';\nexport * from './engine/executeDeploymentPlan';\nexport * from './engine/inspectDeploymentProviderSetup';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC","sourcesContent":["export * from './domain/DeploymentAuthenticationState';\nexport * from './domain/DeploymentCapability';\nexport * from './domain/DeploymentCredentialReference';\nexport * from './domain/DeploymentCurrentState';\nexport * from './domain/DeploymentDesiredRevisions';\nexport * from './domain/DeploymentExecutionResult';\nexport * from './domain/DeploymentFailure';\nexport * from './domain/DeploymentPlan';\nexport * from './domain/DeploymentPlanDiagnostic';\nexport * from './domain/DeploymentPlanStep';\nexport * from './domain/DeploymentProviderCapabilityState';\nexport * from './domain/DeploymentProviderSetupAdapter';\nexport * from './domain/DeploymentProviderSetupContext';\nexport * from './domain/DeploymentProviderSetupInspection';\nexport * from './domain/DeploymentProviderSetupInspectionResult';\nexport * from './domain/DeploymentProvisioningRequirement';\nexport * from './domain/DeploymentRequiredAction';\nexport * from './domain/DeploymentSecretResolver';\nexport * from './domain/DeploymentStepOutcome';\nexport * from './domain/DeploymentTargetChange';\nexport * from './domain/DeploymentTargetPlanContributor';\nexport * from './domain/DeploymentVerificationResult';\nexport * from './domain/WebDeploymentPublication';\nexport * from './domain/WebDeploymentPublishIntent';\nexport * from './engine/createDeploymentChanges';\nexport * from './engine/createDeploymentPlan';\nexport * from './engine/executeDeploymentPlan';\nexport * from './engine/inspectDeploymentProviderSetup';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observedTarget.d.ts","sourceRoot":"","sources":["../../../../src/project/history/validation/observedTarget.ts"],"names":[],"mappings":"AASA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"observedTarget.d.ts","sourceRoot":"","sources":["../../../../src/project/history/validation/observedTarget.ts"],"names":[],"mappings":"AASA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CA2BxD"}
|
|
@@ -2,23 +2,30 @@ import { hasOnlyKeys } from '../../io/hasOnlyKeys';
|
|
|
2
2
|
import { isRecord } from '../../io/isRecord';
|
|
3
3
|
import { isProviderSelection } from './providerSelection';
|
|
4
4
|
import { isNonEmptyString } from './shared';
|
|
5
|
-
const WEB_KEYS = new Set(['target', 'providers']);
|
|
6
|
-
const ANDROID_KEYS = new Set(['target', 'package', 'providers']);
|
|
7
|
-
const IOS_KEYS = new Set(['target', 'bundleIdentifier', 'providers']);
|
|
5
|
+
const WEB_KEYS = new Set(['target', 'providers', 'revision']);
|
|
6
|
+
const ANDROID_KEYS = new Set(['target', 'package', 'providers', 'revision']);
|
|
7
|
+
const IOS_KEYS = new Set(['target', 'bundleIdentifier', 'providers', 'revision']);
|
|
8
8
|
export function isObservedTarget(value) {
|
|
9
9
|
if (!isRecord(value))
|
|
10
10
|
return false;
|
|
11
11
|
if (value.target === 'web') {
|
|
12
|
-
return hasOnlyKeys(value, WEB_KEYS) &&
|
|
12
|
+
return (hasOnlyKeys(value, WEB_KEYS) &&
|
|
13
|
+
isProviderSelection(value.providers) &&
|
|
14
|
+
isOptionalRevision(value.revision));
|
|
13
15
|
}
|
|
14
16
|
if (value.target === 'android') {
|
|
15
17
|
return (hasOnlyKeys(value, ANDROID_KEYS) &&
|
|
16
18
|
isNonEmptyString(value.package) &&
|
|
17
|
-
isProviderSelection(value.providers)
|
|
19
|
+
isProviderSelection(value.providers) &&
|
|
20
|
+
isOptionalRevision(value.revision));
|
|
18
21
|
}
|
|
19
22
|
return (value.target === 'ios' &&
|
|
20
23
|
hasOnlyKeys(value, IOS_KEYS) &&
|
|
21
24
|
isNonEmptyString(value.bundleIdentifier) &&
|
|
22
|
-
isProviderSelection(value.providers)
|
|
25
|
+
isProviderSelection(value.providers) &&
|
|
26
|
+
isOptionalRevision(value.revision));
|
|
27
|
+
}
|
|
28
|
+
function isOptionalRevision(value) {
|
|
29
|
+
return value === undefined || isNonEmptyString(value);
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=observedTarget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observedTarget.js","sourceRoot":"","sources":["../../../../src/project/history/validation/observedTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"observedTarget.js","sourceRoot":"","sources":["../../../../src/project/history/validation/observedTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAC9D,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAC7E,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAElF,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAEnC,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;QAC3B,OAAO,CACL,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC;YAC5B,mBAAmB,CAAC,KAAK,CAAC,SAAS,CAAC;YACpC,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnC,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,CACL,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC;YAChC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC;YAC/B,mBAAmB,CAAC,KAAK,CAAC,SAAS,CAAC;YACpC,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnC,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAK,CAAC,MAAM,KAAK,KAAK;QACtB,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC5B,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,CAAC;QACxC,mBAAmB,CAAC,KAAK,CAAC,SAAS,CAAC;QACpC,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnC,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,KAAK,KAAK,SAAS,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC","sourcesContent":["import { hasOnlyKeys } from '../../io/hasOnlyKeys';\nimport { isRecord } from '../../io/isRecord';\nimport { isProviderSelection } from './providerSelection';\nimport { isNonEmptyString } from './shared';\n\nconst WEB_KEYS = new Set(['target', 'providers', 'revision']);\nconst ANDROID_KEYS = new Set(['target', 'package', 'providers', 'revision']);\nconst IOS_KEYS = new Set(['target', 'bundleIdentifier', 'providers', 'revision']);\n\nexport function isObservedTarget(value: unknown): boolean {\n if (!isRecord(value)) return false;\n\n if (value.target === 'web') {\n return (\n hasOnlyKeys(value, WEB_KEYS) &&\n isProviderSelection(value.providers) &&\n isOptionalRevision(value.revision)\n );\n }\n\n if (value.target === 'android') {\n return (\n hasOnlyKeys(value, ANDROID_KEYS) &&\n isNonEmptyString(value.package) &&\n isProviderSelection(value.providers) &&\n isOptionalRevision(value.revision)\n );\n }\n\n return (\n value.target === 'ios' &&\n hasOnlyKeys(value, IOS_KEYS) &&\n isNonEmptyString(value.bundleIdentifier) &&\n isProviderSelection(value.providers) &&\n isOptionalRevision(value.revision)\n );\n}\n\nfunction isOptionalRevision(value: unknown): boolean {\n return value === undefined || isNonEmptyString(value);\n}\n"]}
|
package/dist/project/index.d.ts
CHANGED
|
@@ -9,4 +9,10 @@ export type { ResolvedDeployProject } from './ResolvedDeployProject';
|
|
|
9
9
|
export { resolveDeployProject } from './resolveDeployProject';
|
|
10
10
|
export { resolveProjectDeploymentPaths } from './resolveProjectDeploymentPaths';
|
|
11
11
|
export { type ProjectDeploymentConfigUpdater, updateProjectDeploymentConfig, } from './updateProjectDeploymentConfig';
|
|
12
|
+
export { createProjectWebDeploymentPlan } from './web/createProjectWebDeploymentPlan';
|
|
13
|
+
export { executeProjectWebDeployment, type ExecuteProjectWebDeploymentOptions, } from './web/executeProjectWebDeployment';
|
|
14
|
+
export { inspectProjectWebDeployment, type InspectProjectWebDeploymentOptions, } from './web/inspectProjectWebDeployment';
|
|
15
|
+
export type { ProjectWebDeploymentAccess } from './web/ProjectWebDeploymentAccess';
|
|
16
|
+
export type { ProjectWebDeploymentExecution } from './web/ProjectWebDeploymentExecution';
|
|
17
|
+
export type { ProjectWebDeploymentInspection, ProjectWebDeploymentInspectionResult, } from './web/ProjectWebDeploymentInspection';
|
|
12
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,YAAY,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACL,KAAK,8BAA8B,EACnC,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,YAAY,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACL,KAAK,8BAA8B,EACnC,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,2BAA2B,EAC3B,KAAK,kCAAkC,GACxC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,EAC3B,KAAK,kCAAkC,GACxC,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,YAAY,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,YAAY,EACV,8BAA8B,EAC9B,oCAAoC,GACrC,MAAM,sCAAsC,CAAC"}
|
package/dist/project/index.js
CHANGED
|
@@ -6,4 +6,7 @@ export { readProjectDeploymentConfig } from './readProjectDeploymentConfig';
|
|
|
6
6
|
export { resolveDeployProject } from './resolveDeployProject';
|
|
7
7
|
export { resolveProjectDeploymentPaths } from './resolveProjectDeploymentPaths';
|
|
8
8
|
export { updateProjectDeploymentConfig, } from './updateProjectDeploymentConfig';
|
|
9
|
+
export { createProjectWebDeploymentPlan } from './web/createProjectWebDeploymentPlan';
|
|
10
|
+
export { executeProjectWebDeployment, } from './web/executeProjectWebDeployment';
|
|
11
|
+
export { inspectProjectWebDeployment, } from './web/inspectProjectWebDeployment';
|
|
9
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAEL,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC","sourcesContent":["export { PROJECT_DEPLOYMENT_HISTORY_SCHEMA_VERSION } from './history/historySchemaVersion';\nexport { listProjectDeploymentHistory } from './history/listProjectDeploymentHistory';\nexport type { ProjectDeploymentHistoryRecord } from './history/ProjectDeploymentHistoryRecord';\nexport { readProjectDeploymentHistory } from './history/readProjectDeploymentHistory';\nexport { recordProjectDeploymentHistory } from './history/recordProjectDeploymentHistory';\nexport type { ProjectDeploymentPaths } from './ProjectDeploymentPaths';\nexport { readProjectDeploymentConfig } from './readProjectDeploymentConfig';\nexport type { ResolvedDeployProject } from './ResolvedDeployProject';\nexport { resolveDeployProject } from './resolveDeployProject';\nexport { resolveProjectDeploymentPaths } from './resolveProjectDeploymentPaths';\nexport {\n type ProjectDeploymentConfigUpdater,\n updateProjectDeploymentConfig,\n} from './updateProjectDeploymentConfig';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAEL,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC","sourcesContent":["export { PROJECT_DEPLOYMENT_HISTORY_SCHEMA_VERSION } from './history/historySchemaVersion';\nexport { listProjectDeploymentHistory } from './history/listProjectDeploymentHistory';\nexport type { ProjectDeploymentHistoryRecord } from './history/ProjectDeploymentHistoryRecord';\nexport { readProjectDeploymentHistory } from './history/readProjectDeploymentHistory';\nexport { recordProjectDeploymentHistory } from './history/recordProjectDeploymentHistory';\nexport type { ProjectDeploymentPaths } from './ProjectDeploymentPaths';\nexport { readProjectDeploymentConfig } from './readProjectDeploymentConfig';\nexport type { ResolvedDeployProject } from './ResolvedDeployProject';\nexport { resolveDeployProject } from './resolveDeployProject';\nexport { resolveProjectDeploymentPaths } from './resolveProjectDeploymentPaths';\nexport {\n type ProjectDeploymentConfigUpdater,\n updateProjectDeploymentConfig,\n} from './updateProjectDeploymentConfig';\nexport { createProjectWebDeploymentPlan } from './web/createProjectWebDeploymentPlan';\nexport {\n executeProjectWebDeployment,\n type ExecuteProjectWebDeploymentOptions,\n} from './web/executeProjectWebDeployment';\nexport {\n inspectProjectWebDeployment,\n type InspectProjectWebDeploymentOptions,\n} from './web/inspectProjectWebDeployment';\nexport type { ProjectWebDeploymentAccess } from './web/ProjectWebDeploymentAccess';\nexport type { ProjectWebDeploymentExecution } from './web/ProjectWebDeploymentExecution';\nexport type {\n ProjectWebDeploymentInspection,\n ProjectWebDeploymentInspectionResult,\n} from './web/ProjectWebDeploymentInspection';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DeploymentCredentialReference } from '../../domain/DeploymentCredentialReference';
|
|
2
|
+
import type { DeploymentSecretResolver } from '../../domain/DeploymentSecretResolver';
|
|
3
|
+
export interface ProjectWebDeploymentAccess {
|
|
4
|
+
readonly credentials?: readonly DeploymentCredentialReference[];
|
|
5
|
+
readonly resolveSecret?: DeploymentSecretResolver;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ProjectWebDeploymentAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectWebDeploymentAccess.d.ts","sourceRoot":"","sources":["../../../src/project/web/ProjectWebDeploymentAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAChE,QAAQ,CAAC,aAAa,CAAC,EAAE,wBAAwB,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectWebDeploymentAccess.js","sourceRoot":"","sources":["../../../src/project/web/ProjectWebDeploymentAccess.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeploymentCredentialReference } from '../../domain/DeploymentCredentialReference';\nimport type { DeploymentSecretResolver } from '../../domain/DeploymentSecretResolver';\n\nexport interface ProjectWebDeploymentAccess {\n readonly credentials?: readonly DeploymentCredentialReference[];\n readonly resolveSecret?: DeploymentSecretResolver;\n}\n"]}
|