@ankhorage/deploy 0.5.0 → 0.6.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 -1
- package/dist/domain/IosDeploymentIntent.d.ts +5 -0
- package/dist/domain/IosDeploymentIntent.d.ts.map +1 -0
- package/dist/domain/IosDeploymentIntent.js +2 -0
- package/dist/domain/IosDeploymentIntent.js.map +1 -0
- package/dist/domain/IosDeploymentPublication.d.ts +10 -0
- package/dist/domain/IosDeploymentPublication.d.ts.map +1 -0
- package/dist/domain/IosDeploymentPublication.js +2 -0
- package/dist/domain/IosDeploymentPublication.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.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/ios/ProjectIosDeploymentAccess.d.ts +7 -0
- package/dist/project/ios/ProjectIosDeploymentAccess.d.ts.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentAccess.js +2 -0
- package/dist/project/ios/ProjectIosDeploymentAccess.js.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentExecution.d.ts +12 -0
- package/dist/project/ios/ProjectIosDeploymentExecution.d.ts.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentExecution.js +2 -0
- package/dist/project/ios/ProjectIosDeploymentExecution.js.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentInspection.d.ts +21 -0
- package/dist/project/ios/ProjectIosDeploymentInspection.d.ts.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentInspection.js +2 -0
- package/dist/project/ios/ProjectIosDeploymentInspection.js.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentRuntime.d.ts +19 -0
- package/dist/project/ios/ProjectIosDeploymentRuntime.d.ts.map +1 -0
- package/dist/project/ios/ProjectIosDeploymentRuntime.js +22 -0
- package/dist/project/ios/ProjectIosDeploymentRuntime.js.map +1 -0
- package/dist/project/ios/ProjectIosExecutionState.d.ts +12 -0
- package/dist/project/ios/ProjectIosExecutionState.d.ts.map +1 -0
- package/dist/project/ios/ProjectIosExecutionState.js +2 -0
- package/dist/project/ios/ProjectIosExecutionState.js.map +1 -0
- package/dist/project/ios/createProjectIosDeploymentPlan.d.ts +4 -0
- package/dist/project/ios/createProjectIosDeploymentPlan.d.ts.map +1 -0
- package/dist/project/ios/createProjectIosDeploymentPlan.js +13 -0
- package/dist/project/ios/createProjectIosDeploymentPlan.js.map +1 -0
- package/dist/project/ios/executeProjectIosDeployment.d.ts +12 -0
- package/dist/project/ios/executeProjectIosDeployment.d.ts.map +1 -0
- package/dist/project/ios/executeProjectIosDeployment.js +160 -0
- package/dist/project/ios/executeProjectIosDeployment.js.map +1 -0
- package/dist/project/ios/executeProjectIosStep.d.ts +15 -0
- package/dist/project/ios/executeProjectIosStep.d.ts.map +1 -0
- package/dist/project/ios/executeProjectIosStep.js +171 -0
- package/dist/project/ios/executeProjectIosStep.js.map +1 -0
- package/dist/project/ios/inspectProjectIosAppStoreConnect.d.ts +15 -0
- package/dist/project/ios/inspectProjectIosAppStoreConnect.d.ts.map +1 -0
- package/dist/project/ios/inspectProjectIosAppStoreConnect.js +55 -0
- package/dist/project/ios/inspectProjectIosAppStoreConnect.js.map +1 -0
- package/dist/project/ios/inspectProjectIosDeployment.d.ts +11 -0
- package/dist/project/ios/inspectProjectIosDeployment.d.ts.map +1 -0
- package/dist/project/ios/inspectProjectIosDeployment.js +96 -0
- package/dist/project/ios/inspectProjectIosDeployment.js.map +1 -0
- package/dist/project/ios/inspectProjectIosEasSetup.d.ts +5 -0
- package/dist/project/ios/inspectProjectIosEasSetup.d.ts.map +1 -0
- package/dist/project/ios/inspectProjectIosEasSetup.js +18 -0
- package/dist/project/ios/inspectProjectIosEasSetup.js.map +1 -0
- package/dist/project/ios/normalizeProjectIosDesired.d.ts +13 -0
- package/dist/project/ios/normalizeProjectIosDesired.d.ts.map +1 -0
- package/dist/project/ios/normalizeProjectIosDesired.js +25 -0
- package/dist/project/ios/normalizeProjectIosDesired.js.map +1 -0
- package/dist/project/ios/readCurrentProjectIosDeployment.d.ts +8 -0
- package/dist/project/ios/readCurrentProjectIosDeployment.d.ts.map +1 -0
- package/dist/project/ios/readCurrentProjectIosDeployment.js +52 -0
- package/dist/project/ios/readCurrentProjectIosDeployment.js.map +1 -0
- package/dist/project/ios/recordProjectIosDeployment.d.ts +21 -0
- package/dist/project/ios/recordProjectIosDeployment.d.ts.map +1 -0
- package/dist/project/ios/recordProjectIosDeployment.js +36 -0
- package/dist/project/ios/recordProjectIosDeployment.js.map +1 -0
- package/dist/project/ios/resolveProjectIosDeploymentAccess.d.ts +9 -0
- package/dist/project/ios/resolveProjectIosDeploymentAccess.d.ts.map +1 -0
- package/dist/project/ios/resolveProjectIosDeploymentAccess.js +7 -0
- package/dist/project/ios/resolveProjectIosDeploymentAccess.js.map +1 -0
- package/dist/project/ios/scopeProjectIosDeploymentAccess.d.ts +3 -0
- package/dist/project/ios/scopeProjectIosDeploymentAccess.d.ts.map +1 -0
- package/dist/project/ios/scopeProjectIosDeploymentAccess.js +7 -0
- package/dist/project/ios/scopeProjectIosDeploymentAccess.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectIosState.d.ts +17 -0
- package/dist/providers/appStoreConnect/AppStoreConnectIosState.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectIosState.js +2 -0
- package/dist/providers/appStoreConnect/AppStoreConnectIosState.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectPublicationResult.d.ts +19 -0
- package/dist/providers/appStoreConnect/AppStoreConnectPublicationResult.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectPublicationResult.js +2 -0
- package/dist/providers/appStoreConnect/AppStoreConnectPublicationResult.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectRequestTracker.d.ts +9 -0
- package/dist/providers/appStoreConnect/AppStoreConnectRequestTracker.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectRequestTracker.js +13 -0
- package/dist/providers/appStoreConnect/AppStoreConnectRequestTracker.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTokenFactory.d.ts +8 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTokenFactory.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTokenFactory.js +21 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTokenFactory.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTransport.d.ts +13 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTransport.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTransport.js +15 -0
- package/dist/providers/appStoreConnect/AppStoreConnectTransport.js.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreUploadTransport.d.ts +17 -0
- package/dist/providers/appStoreConnect/AppStoreUploadTransport.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/AppStoreUploadTransport.js +12 -0
- package/dist/providers/appStoreConnect/AppStoreUploadTransport.js.map +1 -0
- package/dist/providers/appStoreConnect/BuildUploadOperation.d.ts +13 -0
- package/dist/providers/appStoreConnect/BuildUploadOperation.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/BuildUploadOperation.js +2 -0
- package/dist/providers/appStoreConnect/BuildUploadOperation.js.map +1 -0
- package/dist/providers/appStoreConnect/appStoreConnectUrls.d.ts +10 -0
- package/dist/providers/appStoreConnect/appStoreConnectUrls.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/appStoreConnectUrls.js +42 -0
- package/dist/providers/appStoreConnect/appStoreConnectUrls.js.map +1 -0
- package/dist/providers/appStoreConnect/attachAppStoreVersionBuild.d.ts +8 -0
- package/dist/providers/appStoreConnect/attachAppStoreVersionBuild.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/attachAppStoreVersionBuild.js +12 -0
- package/dist/providers/appStoreConnect/attachAppStoreVersionBuild.js.map +1 -0
- package/dist/providers/appStoreConnect/commitAppStoreBuildUploadFile.d.ts +7 -0
- package/dist/providers/appStoreConnect/commitAppStoreBuildUploadFile.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/commitAppStoreBuildUploadFile.js +18 -0
- package/dist/providers/appStoreConnect/commitAppStoreBuildUploadFile.js.map +1 -0
- package/dist/providers/appStoreConnect/createAppStoreBuildUpload.d.ts +9 -0
- package/dist/providers/appStoreConnect/createAppStoreBuildUpload.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/createAppStoreBuildUpload.js +41 -0
- package/dist/providers/appStoreConnect/createAppStoreBuildUpload.js.map +1 -0
- package/dist/providers/appStoreConnect/createAppStoreConnectSetupAdapter.d.ts +7 -0
- package/dist/providers/appStoreConnect/createAppStoreConnectSetupAdapter.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/createAppStoreConnectSetupAdapter.js +33 -0
- package/dist/providers/appStoreConnect/createAppStoreConnectSetupAdapter.js.map +1 -0
- package/dist/providers/appStoreConnect/downloadIosArchive.d.ts +9 -0
- package/dist/providers/appStoreConnect/downloadIosArchive.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/downloadIosArchive.js +28 -0
- package/dist/providers/appStoreConnect/downloadIosArchive.js.map +1 -0
- package/dist/providers/appStoreConnect/executeBuildUploadOperations.d.ts +8 -0
- package/dist/providers/appStoreConnect/executeBuildUploadOperations.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/executeBuildUploadOperations.js +15 -0
- package/dist/providers/appStoreConnect/executeBuildUploadOperations.js.map +1 -0
- package/dist/providers/appStoreConnect/inspectAppStoreConnectIos.d.ts +27 -0
- package/dist/providers/appStoreConnect/inspectAppStoreConnectIos.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/inspectAppStoreConnectIos.js +177 -0
- package/dist/providers/appStoreConnect/inspectAppStoreConnectIos.js.map +1 -0
- package/dist/providers/appStoreConnect/parseBuildUploadFileReservation.d.ts +3 -0
- package/dist/providers/appStoreConnect/parseBuildUploadFileReservation.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/parseBuildUploadFileReservation.js +81 -0
- package/dist/providers/appStoreConnect/parseBuildUploadFileReservation.js.map +1 -0
- package/dist/providers/appStoreConnect/prepareAppStoreVersion.d.ts +8 -0
- package/dist/providers/appStoreConnect/prepareAppStoreVersion.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/prepareAppStoreVersion.js +66 -0
- package/dist/providers/appStoreConnect/prepareAppStoreVersion.js.map +1 -0
- package/dist/providers/appStoreConnect/publishIosToAppStoreConnect.d.ts +21 -0
- package/dist/providers/appStoreConnect/publishIosToAppStoreConnect.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/publishIosToAppStoreConnect.js +124 -0
- package/dist/providers/appStoreConnect/publishIosToAppStoreConnect.js.map +1 -0
- package/dist/providers/appStoreConnect/reserveAppStoreBuildUploadFile.d.ts +9 -0
- package/dist/providers/appStoreConnect/reserveAppStoreBuildUploadFile.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/reserveAppStoreBuildUploadFile.js +32 -0
- package/dist/providers/appStoreConnect/reserveAppStoreBuildUploadFile.js.map +1 -0
- package/dist/providers/appStoreConnect/resolveAppStoreConnectToken.d.ts +18 -0
- package/dist/providers/appStoreConnect/resolveAppStoreConnectToken.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/resolveAppStoreConnectToken.js +64 -0
- package/dist/providers/appStoreConnect/resolveAppStoreConnectToken.js.map +1 -0
- package/dist/providers/appStoreConnect/verifyAppStoreConnectPublication.d.ts +23 -0
- package/dist/providers/appStoreConnect/verifyAppStoreConnectPublication.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/verifyAppStoreConnectPublication.js +60 -0
- package/dist/providers/appStoreConnect/verifyAppStoreConnectPublication.js.map +1 -0
- package/dist/providers/appStoreConnect/verifyAppStoreVersionBuild.d.ts +9 -0
- package/dist/providers/appStoreConnect/verifyAppStoreVersionBuild.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/verifyAppStoreVersionBuild.js +26 -0
- package/dist/providers/appStoreConnect/verifyAppStoreVersionBuild.js.map +1 -0
- package/dist/providers/appStoreConnect/waitForAppStoreBuildUpload.d.ts +14 -0
- package/dist/providers/appStoreConnect/waitForAppStoreBuildUpload.d.ts.map +1 -0
- package/dist/providers/appStoreConnect/waitForAppStoreBuildUpload.js +69 -0
- package/dist/providers/appStoreConnect/waitForAppStoreBuildUpload.js.map +1 -0
- package/dist/providers/eas/ios/EasIosBuildArtifact.d.ts +9 -0
- package/dist/providers/eas/ios/EasIosBuildArtifact.d.ts.map +1 -0
- package/dist/providers/eas/ios/EasIosBuildArtifact.js +2 -0
- package/dist/providers/eas/ios/EasIosBuildArtifact.js.map +1 -0
- package/dist/providers/eas/ios/buildIosWithEas.d.ts +26 -0
- package/dist/providers/eas/ios/buildIosWithEas.d.ts.map +1 -0
- package/dist/providers/eas/ios/buildIosWithEas.js +60 -0
- package/dist/providers/eas/ios/buildIosWithEas.js.map +1 -0
- package/dist/providers/eas/ios/generateLocalIosFingerprint.d.ts +15 -0
- package/dist/providers/eas/ios/generateLocalIosFingerprint.d.ts.map +1 -0
- package/dist/providers/eas/ios/generateLocalIosFingerprint.js +48 -0
- package/dist/providers/eas/ios/generateLocalIosFingerprint.js.map +1 -0
- package/dist/providers/eas/ios/inspectEasIosConfig.d.ts +28 -0
- package/dist/providers/eas/ios/inspectEasIosConfig.d.ts.map +1 -0
- package/dist/providers/eas/ios/inspectEasIosConfig.js +40 -0
- package/dist/providers/eas/ios/inspectEasIosConfig.js.map +1 -0
- package/dist/providers/eas/ios/parseEasIosBuild.d.ts +3 -0
- package/dist/providers/eas/ios/parseEasIosBuild.d.ts.map +1 -0
- package/dist/providers/eas/ios/parseEasIosBuild.js +41 -0
- package/dist/providers/eas/ios/parseEasIosBuild.js.map +1 -0
- package/dist/providers/eas/ios/parseEasIosConfig.d.ts +3 -0
- package/dist/providers/eas/ios/parseEasIosConfig.d.ts.map +1 -0
- package/dist/providers/eas/ios/parseEasIosConfig.js +56 -0
- package/dist/providers/eas/ios/parseEasIosConfig.js.map +1 -0
- package/dist/targets/ios/createIosDeploymentRevision.d.ts +3 -0
- package/dist/targets/ios/createIosDeploymentRevision.d.ts.map +1 -0
- package/dist/targets/ios/createIosDeploymentRevision.js +10 -0
- package/dist/targets/ios/createIosDeploymentRevision.js.map +1 -0
- package/dist/targets/ios/createIosTargetPlanContributor.d.ts +3 -0
- package/dist/targets/ios/createIosTargetPlanContributor.d.ts.map +1 -0
- package/dist/targets/ios/createIosTargetPlanContributor.js +26 -0
- package/dist/targets/ios/createIosTargetPlanContributor.js.map +1 -0
- package/dist/targets/ios/isIosDeploymentIntentValid.d.ts +3 -0
- package/dist/targets/ios/isIosDeploymentIntentValid.d.ts.map +1 -0
- package/dist/targets/ios/isIosDeploymentIntentValid.js +4 -0
- package/dist/targets/ios/isIosDeploymentIntentValid.js.map +1 -0
- package/dist/targets/ios/normalizeIosProviders.d.ts +16 -0
- package/dist/targets/ios/normalizeIosProviders.d.ts.map +1 -0
- package/dist/targets/ios/normalizeIosProviders.js +16 -0
- package/dist/targets/ios/normalizeIosProviders.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IosDeploymentIntent.d.ts","sourceRoot":"","sources":["../../src/domain/IosDeploymentIntent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IosDeploymentIntent.js","sourceRoot":"","sources":["../../src/domain/IosDeploymentIntent.ts"],"names":[],"mappings":"","sourcesContent":["export interface IosDeploymentIntent {\n readonly buildProfile: string;\n readonly version: string;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IosDeploymentPublication {
|
|
2
|
+
readonly target: 'ios';
|
|
3
|
+
readonly revision: string;
|
|
4
|
+
readonly buildProvider: 'eas';
|
|
5
|
+
readonly publishProvider: 'app-store-connect';
|
|
6
|
+
readonly buildId: string;
|
|
7
|
+
readonly version: string;
|
|
8
|
+
readonly buildNumber: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=IosDeploymentPublication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IosDeploymentPublication.d.ts","sourceRoot":"","sources":["../../src/domain/IosDeploymentPublication.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IosDeploymentPublication.js","sourceRoot":"","sources":["../../src/domain/IosDeploymentPublication.ts"],"names":[],"mappings":"","sourcesContent":["export interface IosDeploymentPublication {\n readonly target: 'ios';\n readonly revision: string;\n readonly buildProvider: 'eas';\n readonly publishProvider: 'app-store-connect';\n readonly buildId: string;\n readonly version: string;\n readonly buildNumber: string;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export * from './domain/DeploymentStepOutcome';
|
|
|
22
22
|
export * from './domain/DeploymentTargetChange';
|
|
23
23
|
export * from './domain/DeploymentTargetPlanContributor';
|
|
24
24
|
export * from './domain/DeploymentVerificationResult';
|
|
25
|
+
export type { IosDeploymentIntent } from './domain/IosDeploymentIntent';
|
|
26
|
+
export type { IosDeploymentPublication } from './domain/IosDeploymentPublication';
|
|
25
27
|
export * from './domain/WebDeploymentPublication';
|
|
26
28
|
export * from './domain/WebDeploymentPublishIntent';
|
|
27
29
|
export * from './engine/createDeploymentChanges';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,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;AACl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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,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;AAGtD,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 type {\n AndroidDeploymentIntent,\n AndroidDeploymentTrack,\n AndroidReleaseStatus,\n} from './domain/AndroidDeploymentIntent';\nexport type { AndroidDeploymentPublication } from './domain/AndroidDeploymentPublication';\nexport * 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 type { IosDeploymentIntent } from './domain/IosDeploymentIntent';\nexport type { IosDeploymentPublication } from './domain/IosDeploymentPublication';\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"]}
|
package/dist/project/index.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ export { listProjectDeploymentHistory } from './history/listProjectDeploymentHis
|
|
|
9
9
|
export type { ProjectDeploymentHistoryRecord } from './history/ProjectDeploymentHistoryRecord';
|
|
10
10
|
export { readProjectDeploymentHistory } from './history/readProjectDeploymentHistory';
|
|
11
11
|
export { recordProjectDeploymentHistory } from './history/recordProjectDeploymentHistory';
|
|
12
|
+
export { createProjectIosDeploymentPlan } from './ios/createProjectIosDeploymentPlan';
|
|
13
|
+
export { executeProjectIosDeployment, type ExecuteProjectIosDeploymentOptions, } from './ios/executeProjectIosDeployment';
|
|
14
|
+
export { inspectProjectIosDeployment, type InspectProjectIosDeploymentOptions, } from './ios/inspectProjectIosDeployment';
|
|
15
|
+
export type { ProjectIosDeploymentAccess } from './ios/ProjectIosDeploymentAccess';
|
|
16
|
+
export type { ProjectIosDeploymentExecution } from './ios/ProjectIosDeploymentExecution';
|
|
17
|
+
export type { ProjectIosDeploymentInspection, ProjectIosDeploymentInspectionResult, } from './ios/ProjectIosDeploymentInspection';
|
|
12
18
|
export type { ProjectDeploymentPaths } from './ProjectDeploymentPaths';
|
|
13
19
|
export { readProjectDeploymentConfig } from './readProjectDeploymentConfig';
|
|
14
20
|
export type { ResolvedDeployProject } from './ResolvedDeployProject';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,+BAA+B,EAC/B,KAAK,sCAAsC,GAC5C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,+BAA+B,EAC/B,KAAK,sCAAsC,GAC5C,MAAM,2CAA2C,CAAC;AACnD,YAAY,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC/F,YAAY,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;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C9B,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
|
@@ -5,6 +5,9 @@ export { PROJECT_DEPLOYMENT_HISTORY_SCHEMA_VERSION } from './history/historySche
|
|
|
5
5
|
export { listProjectDeploymentHistory } from './history/listProjectDeploymentHistory';
|
|
6
6
|
export { readProjectDeploymentHistory } from './history/readProjectDeploymentHistory';
|
|
7
7
|
export { recordProjectDeploymentHistory } from './history/recordProjectDeploymentHistory';
|
|
8
|
+
export { createProjectIosDeploymentPlan } from './ios/createProjectIosDeploymentPlan';
|
|
9
|
+
export { executeProjectIosDeployment, } from './ios/executeProjectIosDeployment';
|
|
10
|
+
export { inspectProjectIosDeployment, } from './ios/inspectProjectIosDeployment';
|
|
8
11
|
export { readProjectDeploymentConfig } from './readProjectDeploymentConfig';
|
|
9
12
|
export { resolveDeployProject } from './resolveDeployProject';
|
|
10
13
|
export { resolveProjectDeploymentPaths } from './resolveProjectDeploymentPaths';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AAOnD,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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AAOnD,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;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC;AAQ3C,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 { createProjectAndroidDeploymentPlan } from './android/createProjectAndroidDeploymentPlan';\nexport {\n executeProjectAndroidDeployment,\n type ExecuteProjectAndroidDeploymentOptions,\n} from './android/executeProjectAndroidDeployment';\nexport {\n inspectProjectAndroidDeployment,\n type InspectProjectAndroidDeploymentOptions,\n} from './android/inspectProjectAndroidDeployment';\nexport type { ProjectAndroidDeploymentAccess } from './android/ProjectAndroidDeploymentAccess';\nexport type { ProjectAndroidDeploymentExecution } from './android/ProjectAndroidDeploymentExecution';\nexport type {\n ProjectAndroidDeploymentInspection,\n ProjectAndroidDeploymentInspectionResult,\n} from './android/ProjectAndroidDeploymentInspection';\nexport { 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 { createProjectIosDeploymentPlan } from './ios/createProjectIosDeploymentPlan';\nexport {\n executeProjectIosDeployment,\n type ExecuteProjectIosDeploymentOptions,\n} from './ios/executeProjectIosDeployment';\nexport {\n inspectProjectIosDeployment,\n type InspectProjectIosDeploymentOptions,\n} from './ios/inspectProjectIosDeployment';\nexport type { ProjectIosDeploymentAccess } from './ios/ProjectIosDeploymentAccess';\nexport type { ProjectIosDeploymentExecution } from './ios/ProjectIosDeploymentExecution';\nexport type {\n ProjectIosDeploymentInspection,\n ProjectIosDeploymentInspectionResult,\n} from './ios/ProjectIosDeploymentInspection';\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 ProjectIosDeploymentAccess {
|
|
4
|
+
readonly credentials?: readonly DeploymentCredentialReference[];
|
|
5
|
+
readonly resolveSecret?: DeploymentSecretResolver;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ProjectIosDeploymentAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentAccess.d.ts","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentAccess.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":"ProjectIosDeploymentAccess.js","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentAccess.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeploymentCredentialReference } from '../../domain/DeploymentCredentialReference';\nimport type { DeploymentSecretResolver } from '../../domain/DeploymentSecretResolver';\n\nexport interface ProjectIosDeploymentAccess {\n readonly credentials?: readonly DeploymentCredentialReference[];\n readonly resolveSecret?: DeploymentSecretResolver;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeploymentExecutionResult } from '../../domain/DeploymentExecutionResult';
|
|
2
|
+
import type { DeploymentFailure } from '../../domain/DeploymentFailure';
|
|
3
|
+
import type { DeploymentVerificationResult } from '../../domain/DeploymentVerificationResult';
|
|
4
|
+
import type { IosDeploymentPublication } from '../../domain/IosDeploymentPublication';
|
|
5
|
+
export interface ProjectIosDeploymentExecution {
|
|
6
|
+
readonly execution: DeploymentExecutionResult;
|
|
7
|
+
readonly publication: IosDeploymentPublication | null;
|
|
8
|
+
readonly verification: DeploymentVerificationResult | null;
|
|
9
|
+
readonly historyRecorded: boolean;
|
|
10
|
+
readonly historyFailure?: DeploymentFailure;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ProjectIosDeploymentExecution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentExecution.d.ts","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentExecution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,WAAW,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC3D,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,iBAAiB,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentExecution.js","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentExecution.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeploymentExecutionResult } from '../../domain/DeploymentExecutionResult';\nimport type { DeploymentFailure } from '../../domain/DeploymentFailure';\nimport type { DeploymentVerificationResult } from '../../domain/DeploymentVerificationResult';\nimport type { IosDeploymentPublication } from '../../domain/IosDeploymentPublication';\n\nexport interface ProjectIosDeploymentExecution {\n readonly execution: DeploymentExecutionResult;\n readonly publication: IosDeploymentPublication | null;\n readonly verification: DeploymentVerificationResult | null;\n readonly historyRecorded: boolean;\n readonly historyFailure?: DeploymentFailure;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AppDeployManifest } from '@ankhorage/contracts/deploy';
|
|
2
|
+
import type { DeploymentCurrentState } from '../../domain/DeploymentCurrentState';
|
|
3
|
+
import type { DeploymentFailure } from '../../domain/DeploymentFailure';
|
|
4
|
+
import type { DeploymentProviderSetupInspectionResult } from '../../domain/DeploymentProviderSetupInspectionResult';
|
|
5
|
+
import type { IosDeploymentIntent } from '../../domain/IosDeploymentIntent';
|
|
6
|
+
export interface ProjectIosDeploymentInspection {
|
|
7
|
+
readonly projectRoot: string;
|
|
8
|
+
readonly desired: AppDeployManifest;
|
|
9
|
+
readonly current: DeploymentCurrentState;
|
|
10
|
+
readonly intent: IosDeploymentIntent;
|
|
11
|
+
readonly desiredRevision?: string;
|
|
12
|
+
readonly setups: readonly DeploymentProviderSetupInspectionResult[];
|
|
13
|
+
}
|
|
14
|
+
export type ProjectIosDeploymentInspectionResult = {
|
|
15
|
+
readonly ok: true;
|
|
16
|
+
readonly inspection: ProjectIosDeploymentInspection;
|
|
17
|
+
} | {
|
|
18
|
+
readonly ok: false;
|
|
19
|
+
readonly failure: DeploymentFailure;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ProjectIosDeploymentInspection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentInspection.d.ts","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentInspection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sDAAsD,CAAC;AACpH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,uCAAuC,EAAE,CAAC;CACrE;AAED,MAAM,MAAM,oCAAoC,GAC5C;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,8BAA8B,CAAA;CAAE,GAC1E;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentInspection.js","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentInspection.ts"],"names":[],"mappings":"","sourcesContent":["import type { AppDeployManifest } from '@ankhorage/contracts/deploy';\n\nimport type { DeploymentCurrentState } from '../../domain/DeploymentCurrentState';\nimport type { DeploymentFailure } from '../../domain/DeploymentFailure';\nimport type { DeploymentProviderSetupInspectionResult } from '../../domain/DeploymentProviderSetupInspectionResult';\nimport type { IosDeploymentIntent } from '../../domain/IosDeploymentIntent';\n\nexport interface ProjectIosDeploymentInspection {\n readonly projectRoot: string;\n readonly desired: AppDeployManifest;\n readonly current: DeploymentCurrentState;\n readonly intent: IosDeploymentIntent;\n readonly desiredRevision?: string;\n readonly setups: readonly DeploymentProviderSetupInspectionResult[];\n}\n\nexport type ProjectIosDeploymentInspectionResult =\n | { readonly ok: true; readonly inspection: ProjectIosDeploymentInspection }\n | { readonly ok: false; readonly failure: DeploymentFailure };\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AppStoreConnectTokenFactory } from '../../providers/appStoreConnect/AppStoreConnectTokenFactory';
|
|
2
|
+
import type { AppStoreConnectTransport } from '../../providers/appStoreConnect/AppStoreConnectTransport';
|
|
3
|
+
import type { AppStoreUploadTransport } from '../../providers/appStoreConnect/AppStoreUploadTransport';
|
|
4
|
+
import { type IosArchiveDownloader } from '../../providers/appStoreConnect/downloadIosArchive';
|
|
5
|
+
import type { DeploymentProcessRunner } from '../../runtime/process/DeploymentProcessRunner';
|
|
6
|
+
export interface ProjectIosDeploymentRuntime {
|
|
7
|
+
readonly runProcess: DeploymentProcessRunner;
|
|
8
|
+
readonly createAppStoreConnectToken: AppStoreConnectTokenFactory;
|
|
9
|
+
readonly requestAppStoreConnect: AppStoreConnectTransport;
|
|
10
|
+
readonly uploadAppStore: AppStoreUploadTransport;
|
|
11
|
+
readonly downloadArchive: IosArchiveDownloader;
|
|
12
|
+
readonly readArchive: (filePath: string) => Promise<Buffer>;
|
|
13
|
+
readonly cleanupArchive: (directory: string) => Promise<void>;
|
|
14
|
+
readonly waitForAppStoreProcessing: () => Promise<void>;
|
|
15
|
+
readonly maxAppStoreProcessingAttempts: number;
|
|
16
|
+
readonly now: () => Date;
|
|
17
|
+
}
|
|
18
|
+
export declare const projectIosDeploymentRuntime: ProjectIosDeploymentRuntime;
|
|
19
|
+
//# sourceMappingURL=ProjectIosDeploymentRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentRuntime.d.ts","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentRuntime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAE/G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAEzG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAG7F,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IACjE,QAAQ,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;IAC1D,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,QAAQ,CAAC,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,QAAQ,CAAC,yBAAyB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAC/C,QAAQ,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,2BAA2B,EAAE,2BAWzC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { promises as fs } from 'node:fs';
|
|
2
|
+
import { createAppStoreConnectToken } from '../../providers/appStoreConnect/AppStoreConnectTokenFactory';
|
|
3
|
+
import { fetchAppStoreConnect } from '../../providers/appStoreConnect/AppStoreConnectTransport';
|
|
4
|
+
import { fetchAppStoreUpload } from '../../providers/appStoreConnect/AppStoreUploadTransport';
|
|
5
|
+
import { cleanupIosArchive, downloadIosArchive, } from '../../providers/appStoreConnect/downloadIosArchive';
|
|
6
|
+
import { runDeploymentProcess } from '../../runtime/process/runDeploymentProcess';
|
|
7
|
+
export const projectIosDeploymentRuntime = {
|
|
8
|
+
runProcess: runDeploymentProcess,
|
|
9
|
+
createAppStoreConnectToken,
|
|
10
|
+
requestAppStoreConnect: fetchAppStoreConnect,
|
|
11
|
+
uploadAppStore: fetchAppStoreUpload,
|
|
12
|
+
downloadArchive: downloadIosArchive,
|
|
13
|
+
readArchive: (filePath) => fs.readFile(filePath),
|
|
14
|
+
cleanupArchive: cleanupIosArchive,
|
|
15
|
+
waitForAppStoreProcessing: () => delay(5_000),
|
|
16
|
+
maxAppStoreProcessingAttempts: 120,
|
|
17
|
+
now: () => new Date(),
|
|
18
|
+
};
|
|
19
|
+
function delay(milliseconds) {
|
|
20
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ProjectIosDeploymentRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosDeploymentRuntime.js","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosDeploymentRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAEzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAEhG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE9F,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAelF,MAAM,CAAC,MAAM,2BAA2B,GAAgC;IACtE,UAAU,EAAE,oBAAoB;IAChC,0BAA0B;IAC1B,sBAAsB,EAAE,oBAAoB;IAC5C,cAAc,EAAE,mBAAmB;IACnC,eAAe,EAAE,kBAAkB;IACnC,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAChD,cAAc,EAAE,iBAAiB;IACjC,yBAAyB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;IAC7C,6BAA6B,EAAE,GAAG;IAClC,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;CACtB,CAAC;AAEF,SAAS,KAAK,CAAC,YAAoB;IACjC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import { promises as fs } from 'node:fs';\n\nimport { createAppStoreConnectToken } from '../../providers/appStoreConnect/AppStoreConnectTokenFactory';\nimport type { AppStoreConnectTokenFactory } from '../../providers/appStoreConnect/AppStoreConnectTokenFactory';\nimport { fetchAppStoreConnect } from '../../providers/appStoreConnect/AppStoreConnectTransport';\nimport type { AppStoreConnectTransport } from '../../providers/appStoreConnect/AppStoreConnectTransport';\nimport { fetchAppStoreUpload } from '../../providers/appStoreConnect/AppStoreUploadTransport';\nimport type { AppStoreUploadTransport } from '../../providers/appStoreConnect/AppStoreUploadTransport';\nimport {\n cleanupIosArchive,\n downloadIosArchive,\n type IosArchiveDownloader,\n} from '../../providers/appStoreConnect/downloadIosArchive';\nimport type { DeploymentProcessRunner } from '../../runtime/process/DeploymentProcessRunner';\nimport { runDeploymentProcess } from '../../runtime/process/runDeploymentProcess';\n\nexport interface ProjectIosDeploymentRuntime {\n readonly runProcess: DeploymentProcessRunner;\n readonly createAppStoreConnectToken: AppStoreConnectTokenFactory;\n readonly requestAppStoreConnect: AppStoreConnectTransport;\n readonly uploadAppStore: AppStoreUploadTransport;\n readonly downloadArchive: IosArchiveDownloader;\n readonly readArchive: (filePath: string) => Promise<Buffer>;\n readonly cleanupArchive: (directory: string) => Promise<void>;\n readonly waitForAppStoreProcessing: () => Promise<void>;\n readonly maxAppStoreProcessingAttempts: number;\n readonly now: () => Date;\n}\n\nexport const projectIosDeploymentRuntime: ProjectIosDeploymentRuntime = {\n runProcess: runDeploymentProcess,\n createAppStoreConnectToken,\n requestAppStoreConnect: fetchAppStoreConnect,\n uploadAppStore: fetchAppStoreUpload,\n downloadArchive: downloadIosArchive,\n readArchive: (filePath) => fs.readFile(filePath),\n cleanupArchive: cleanupIosArchive,\n waitForAppStoreProcessing: () => delay(5_000),\n maxAppStoreProcessingAttempts: 120,\n now: () => new Date(),\n};\n\nfunction delay(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeploymentVerificationResult } from '../../domain/DeploymentVerificationResult';
|
|
2
|
+
import type { IosDeploymentPublication } from '../../domain/IosDeploymentPublication';
|
|
3
|
+
import type { AppStoreConnectPublication } from '../../providers/appStoreConnect/AppStoreConnectPublicationResult';
|
|
4
|
+
import type { EasIosBuildArtifact } from '../../providers/eas/ios/EasIosBuildArtifact';
|
|
5
|
+
export interface ProjectIosExecutionState {
|
|
6
|
+
fingerprint: string | null;
|
|
7
|
+
build: EasIosBuildArtifact | null;
|
|
8
|
+
appStorePublication: AppStoreConnectPublication | null;
|
|
9
|
+
publication: IosDeploymentPublication | null;
|
|
10
|
+
verification: DeploymentVerificationResult | null;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ProjectIosExecutionState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosExecutionState.d.ts","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosExecutionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACnH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACvD,WAAW,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC7C,YAAY,EAAE,4BAA4B,GAAG,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectIosExecutionState.js","sourceRoot":"","sources":["../../../src/project/ios/ProjectIosExecutionState.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeploymentVerificationResult } from '../../domain/DeploymentVerificationResult';\nimport type { IosDeploymentPublication } from '../../domain/IosDeploymentPublication';\nimport type { AppStoreConnectPublication } from '../../providers/appStoreConnect/AppStoreConnectPublicationResult';\nimport type { EasIosBuildArtifact } from '../../providers/eas/ios/EasIosBuildArtifact';\n\nexport interface ProjectIosExecutionState {\n fingerprint: string | null;\n build: EasIosBuildArtifact | null;\n appStorePublication: AppStoreConnectPublication | null;\n publication: IosDeploymentPublication | null;\n verification: DeploymentVerificationResult | null;\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeploymentPlan } from '../../domain/DeploymentPlan';
|
|
2
|
+
import type { ProjectIosDeploymentInspection } from './ProjectIosDeploymentInspection';
|
|
3
|
+
export declare function createProjectIosDeploymentPlan(inspection: ProjectIosDeploymentInspection): DeploymentPlan;
|
|
4
|
+
//# sourceMappingURL=createProjectIosDeploymentPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createProjectIosDeploymentPlan.d.ts","sourceRoot":"","sources":["../../../src/project/ios/createProjectIosDeploymentPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,8BAA8B,GACzC,cAAc,CAShB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createDeploymentPlan } from '../../engine/createDeploymentPlan';
|
|
2
|
+
import { createIosTargetPlanContributor } from '../../targets/ios/createIosTargetPlanContributor';
|
|
3
|
+
export function createProjectIosDeploymentPlan(inspection) {
|
|
4
|
+
return createDeploymentPlan({
|
|
5
|
+
desired: inspection.desired,
|
|
6
|
+
current: inspection.current,
|
|
7
|
+
...(inspection.desiredRevision === undefined
|
|
8
|
+
? {}
|
|
9
|
+
: { desiredRevisions: { ios: inspection.desiredRevision } }),
|
|
10
|
+
contributors: { ios: createIosTargetPlanContributor() },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=createProjectIosDeploymentPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createProjectIosDeploymentPlan.js","sourceRoot":"","sources":["../../../src/project/ios/createProjectIosDeploymentPlan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAGlG,MAAM,UAAU,8BAA8B,CAC5C,UAA0C;IAE1C,OAAO,oBAAoB,CAAC;QAC1B,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,GAAG,CAAC,UAAU,CAAC,eAAe,KAAK,SAAS;YAC1C,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,gBAAgB,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,eAAe,EAAE,EAAE,CAAC;QAC9D,YAAY,EAAE,EAAE,GAAG,EAAE,8BAA8B,EAAE,EAAE;KACxD,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { DeploymentPlan } from '../../domain/DeploymentPlan';\nimport { createDeploymentPlan } from '../../engine/createDeploymentPlan';\nimport { createIosTargetPlanContributor } from '../../targets/ios/createIosTargetPlanContributor';\nimport type { ProjectIosDeploymentInspection } from './ProjectIosDeploymentInspection';\n\nexport function createProjectIosDeploymentPlan(\n inspection: ProjectIosDeploymentInspection,\n): DeploymentPlan {\n return createDeploymentPlan({\n desired: inspection.desired,\n current: inspection.current,\n ...(inspection.desiredRevision === undefined\n ? {}\n : { desiredRevisions: { ios: inspection.desiredRevision } }),\n contributors: { ios: createIosTargetPlanContributor() },\n });\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeploymentPlan } from '../../domain/DeploymentPlan';
|
|
2
|
+
import type { ProjectIosDeploymentAccess } from './ProjectIosDeploymentAccess';
|
|
3
|
+
import type { ProjectIosDeploymentExecution } from './ProjectIosDeploymentExecution';
|
|
4
|
+
import type { ProjectIosDeploymentInspection } from './ProjectIosDeploymentInspection';
|
|
5
|
+
import type { ProjectIosDeploymentRuntime } from './ProjectIosDeploymentRuntime';
|
|
6
|
+
export interface ExecuteProjectIosDeploymentOptions extends ProjectIosDeploymentAccess {
|
|
7
|
+
readonly inspection: ProjectIosDeploymentInspection;
|
|
8
|
+
readonly plan: DeploymentPlan;
|
|
9
|
+
}
|
|
10
|
+
export declare function executeProjectIosDeployment(options: ExecuteProjectIosDeploymentOptions): Promise<ProjectIosDeploymentExecution>;
|
|
11
|
+
export declare function executeProjectIosDeploymentWithRuntime(options: ExecuteProjectIosDeploymentOptions, runtime: ProjectIosDeploymentRuntime): Promise<ProjectIosDeploymentExecution>;
|
|
12
|
+
//# sourceMappingURL=executeProjectIosDeployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeProjectIosDeployment.d.ts","sourceRoot":"","sources":["../../../src/project/ios/executeProjectIosDeployment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AASlE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAMjF,MAAM,WAAW,kCAAmC,SAAQ,0BAA0B;IACpF,QAAQ,CAAC,UAAU,EAAE,8BAA8B,CAAC;IACpD,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CAC/B;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,6BAA6B,CAAC,CAExC;AAED,wBAAsB,sCAAsC,CAC1D,OAAO,EAAE,kCAAkC,EAC3C,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,6BAA6B,CAAC,CAsBxC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { executeDeploymentPlan } from '../../engine/executeDeploymentPlan';
|
|
2
|
+
import { areDeploymentPlansEqual } from '../areDeploymentPlansEqual';
|
|
3
|
+
import { projectSetupBlockingOutcome } from '../setupBlockingOutcome';
|
|
4
|
+
import { createProjectIosDeploymentPlan } from './createProjectIosDeploymentPlan';
|
|
5
|
+
import { executeProjectIosStep } from './executeProjectIosStep';
|
|
6
|
+
import { inspectProjectIosAppStoreConnect } from './inspectProjectIosAppStoreConnect';
|
|
7
|
+
import { inspectProjectIosEasSetup } from './inspectProjectIosEasSetup';
|
|
8
|
+
import { projectIosDeploymentRuntime } from './ProjectIosDeploymentRuntime';
|
|
9
|
+
import { recordProjectIosDeployment } from './recordProjectIosDeployment';
|
|
10
|
+
import { resolveProjectIosDeploymentAccess } from './resolveProjectIosDeploymentAccess';
|
|
11
|
+
export function executeProjectIosDeployment(options) {
|
|
12
|
+
return executeProjectIosDeploymentWithRuntime(options, projectIosDeploymentRuntime);
|
|
13
|
+
}
|
|
14
|
+
export async function executeProjectIosDeploymentWithRuntime(options, runtime) {
|
|
15
|
+
const expected = createProjectIosDeploymentPlan(options.inspection);
|
|
16
|
+
if (!areDeploymentPlansEqual(expected, options.plan)) {
|
|
17
|
+
return fromPreflight(failedOutcome('IOS_PLAN_MISMATCH', 'iOS deployment plan is invalid.'));
|
|
18
|
+
}
|
|
19
|
+
if (options.plan.steps.length === 0)
|
|
20
|
+
return executeNoChange(options.plan);
|
|
21
|
+
if (options.plan.steps[0]?.id === 'ios:remove')
|
|
22
|
+
return executeRemove(options, runtime);
|
|
23
|
+
const bundleIdentifier = desiredBundleIdentifier(options.inspection);
|
|
24
|
+
if (bundleIdentifier === null) {
|
|
25
|
+
return fromPreflight(failedOutcome('IOS_BUNDLE_IDENTIFIER_MISSING', 'iOS bundle identifier is missing.'));
|
|
26
|
+
}
|
|
27
|
+
const access = resolveProjectIosDeploymentAccess(options);
|
|
28
|
+
const blocker = await inspectExecutionSetup(options.inspection, bundleIdentifier, access, runtime);
|
|
29
|
+
if (blocker !== null)
|
|
30
|
+
return fromPreflight(blocker);
|
|
31
|
+
return executeMutablePlan(options, bundleIdentifier, access, runtime);
|
|
32
|
+
}
|
|
33
|
+
async function inspectExecutionSetup(inspection, bundleIdentifier, access, runtime) {
|
|
34
|
+
const [eas, appStore] = await Promise.all([
|
|
35
|
+
inspectProjectIosEasSetup(inspection.projectRoot, access, runtime),
|
|
36
|
+
inspectProjectIosAppStoreConnect({
|
|
37
|
+
bundleIdentifier,
|
|
38
|
+
version: inspection.intent.version,
|
|
39
|
+
access,
|
|
40
|
+
runtime,
|
|
41
|
+
}),
|
|
42
|
+
]);
|
|
43
|
+
return easBlocker(eas) ?? appStoreBlocker(appStore.setup);
|
|
44
|
+
}
|
|
45
|
+
function easBlocker(result) {
|
|
46
|
+
return projectSetupBlockingOutcome(result, {
|
|
47
|
+
target: 'ios',
|
|
48
|
+
capability: 'build',
|
|
49
|
+
incompleteCode: 'IOS_BUILD_SETUP_INCOMPLETE',
|
|
50
|
+
incompleteMessage: 'iOS build setup requires provisioning before deployment.',
|
|
51
|
+
unavailableCode: 'IOS_BUILD_UNAVAILABLE',
|
|
52
|
+
unavailableMessage: 'The iOS build capability is not available.',
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function appStoreBlocker(result) {
|
|
56
|
+
return projectSetupBlockingOutcome(result, {
|
|
57
|
+
target: 'ios',
|
|
58
|
+
capability: 'publish',
|
|
59
|
+
incompleteCode: 'IOS_PUBLISH_SETUP_INCOMPLETE',
|
|
60
|
+
incompleteMessage: 'iOS publishing setup requires provisioning before deployment.',
|
|
61
|
+
unavailableCode: 'IOS_PUBLISH_UNAVAILABLE',
|
|
62
|
+
unavailableMessage: 'The iOS publish capability is not available.',
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
async function executeMutablePlan(options, bundleIdentifier, access, runtime) {
|
|
66
|
+
const state = createExecutionState();
|
|
67
|
+
const execution = await executeDeploymentPlan({
|
|
68
|
+
plan: options.plan,
|
|
69
|
+
executeStep: (step) => executeProjectIosStep({
|
|
70
|
+
step,
|
|
71
|
+
inspection: options.inspection,
|
|
72
|
+
bundleIdentifier,
|
|
73
|
+
access,
|
|
74
|
+
runtime,
|
|
75
|
+
state,
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
return finalizeExecution(options, execution, state, runtime);
|
|
79
|
+
}
|
|
80
|
+
async function finalizeExecution(options, execution, state, runtime) {
|
|
81
|
+
if (execution.status !== 'completed' ||
|
|
82
|
+
state.publication === null ||
|
|
83
|
+
state.verification?.ok !== true) {
|
|
84
|
+
return result(execution, state, false);
|
|
85
|
+
}
|
|
86
|
+
const history = await recordProjectIosDeployment({
|
|
87
|
+
inspection: options.inspection,
|
|
88
|
+
publication: state.publication,
|
|
89
|
+
plan: options.plan,
|
|
90
|
+
execution,
|
|
91
|
+
verification: state.verification,
|
|
92
|
+
recordedAt: runtime.now().toISOString(),
|
|
93
|
+
});
|
|
94
|
+
return history.recorded
|
|
95
|
+
? result(execution, state, true)
|
|
96
|
+
: { ...result(execution, state, false), historyFailure: history.failure };
|
|
97
|
+
}
|
|
98
|
+
async function executeNoChange(plan) {
|
|
99
|
+
const execution = await executeDeploymentPlan({
|
|
100
|
+
plan,
|
|
101
|
+
executeStep: () => Promise.resolve({ status: 'completed' }),
|
|
102
|
+
});
|
|
103
|
+
return { execution, publication: null, verification: null, historyRecorded: false };
|
|
104
|
+
}
|
|
105
|
+
async function executeRemove(options, runtime) {
|
|
106
|
+
const state = createExecutionState();
|
|
107
|
+
const access = resolveProjectIosDeploymentAccess(options);
|
|
108
|
+
const execution = await executeDeploymentPlan({
|
|
109
|
+
plan: options.plan,
|
|
110
|
+
executeStep: (step) => executeProjectIosStep({
|
|
111
|
+
step,
|
|
112
|
+
inspection: options.inspection,
|
|
113
|
+
bundleIdentifier: currentBundleIdentifier(options.inspection) ?? '',
|
|
114
|
+
access,
|
|
115
|
+
runtime,
|
|
116
|
+
state,
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
119
|
+
return result(execution, state, false);
|
|
120
|
+
}
|
|
121
|
+
function createExecutionState() {
|
|
122
|
+
return {
|
|
123
|
+
fingerprint: null,
|
|
124
|
+
build: null,
|
|
125
|
+
appStorePublication: null,
|
|
126
|
+
publication: null,
|
|
127
|
+
verification: null,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function fromPreflight(outcome) {
|
|
131
|
+
const execution = outcome.status === 'action-required'
|
|
132
|
+
? { status: 'action-required', action: outcome.action, records: [] }
|
|
133
|
+
: {
|
|
134
|
+
status: 'failed',
|
|
135
|
+
failure: outcome.status === 'failed'
|
|
136
|
+
? outcome.error
|
|
137
|
+
: { code: 'IOS_PREFLIGHT_FAILED', message: 'iOS deployment preflight failed.' },
|
|
138
|
+
records: [],
|
|
139
|
+
};
|
|
140
|
+
return { execution, publication: null, verification: null, historyRecorded: false };
|
|
141
|
+
}
|
|
142
|
+
function result(execution, state, historyRecorded) {
|
|
143
|
+
return {
|
|
144
|
+
execution,
|
|
145
|
+
publication: state.publication,
|
|
146
|
+
verification: state.verification,
|
|
147
|
+
historyRecorded,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function desiredBundleIdentifier(inspection) {
|
|
151
|
+
const ios = inspection.desired.targets.ios;
|
|
152
|
+
return ios?.enabled === true ? ios.bundleIdentifier : null;
|
|
153
|
+
}
|
|
154
|
+
function currentBundleIdentifier(inspection) {
|
|
155
|
+
return inspection.current.targets.ios?.bundleIdentifier ?? null;
|
|
156
|
+
}
|
|
157
|
+
function failedOutcome(code, message) {
|
|
158
|
+
return { status: 'failed', error: { code, message, target: 'ios' } };
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=executeProjectIosDeployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeProjectIosDeployment.js","sourceRoot":"","sources":["../../../src/project/ios/executeProjectIosDeployment.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC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AE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;AACvE,CAAC","sourcesContent":["import type { DeploymentExecutionResult } from '../../domain/DeploymentExecutionResult';\nimport type { DeploymentPlan } from '../../domain/DeploymentPlan';\nimport type { DeploymentStepOutcome } from '../../domain/DeploymentStepOutcome';\nimport { executeDeploymentPlan } from '../../engine/executeDeploymentPlan';\nimport { areDeploymentPlansEqual } from '../areDeploymentPlansEqual';\nimport { projectSetupBlockingOutcome } from '../setupBlockingOutcome';\nimport { createProjectIosDeploymentPlan } from './createProjectIosDeploymentPlan';\nimport { executeProjectIosStep } from './executeProjectIosStep';\nimport { inspectProjectIosAppStoreConnect } from './inspectProjectIosAppStoreConnect';\nimport { inspectProjectIosEasSetup } from './inspectProjectIosEasSetup';\nimport type { ProjectIosDeploymentAccess } from './ProjectIosDeploymentAccess';\nimport type { ProjectIosDeploymentExecution } from './ProjectIosDeploymentExecution';\nimport type { ProjectIosDeploymentInspection } from './ProjectIosDeploymentInspection';\nimport type { ProjectIosDeploymentRuntime } from './ProjectIosDeploymentRuntime';\nimport { projectIosDeploymentRuntime } from './ProjectIosDeploymentRuntime';\nimport type { ProjectIosExecutionState } from './ProjectIosExecutionState';\nimport { recordProjectIosDeployment } from './recordProjectIosDeployment';\nimport { resolveProjectIosDeploymentAccess } from './resolveProjectIosDeploymentAccess';\n\nexport interface ExecuteProjectIosDeploymentOptions extends ProjectIosDeploymentAccess {\n readonly inspection: ProjectIosDeploymentInspection;\n readonly plan: DeploymentPlan;\n}\n\nexport function executeProjectIosDeployment(\n options: ExecuteProjectIosDeploymentOptions,\n): Promise<ProjectIosDeploymentExecution> {\n return executeProjectIosDeploymentWithRuntime(options, projectIosDeploymentRuntime);\n}\n\nexport async function executeProjectIosDeploymentWithRuntime(\n options: ExecuteProjectIosDeploymentOptions,\n runtime: ProjectIosDeploymentRuntime,\n): Promise<ProjectIosDeploymentExecution> {\n const expected = createProjectIosDeploymentPlan(options.inspection);\n if (!areDeploymentPlansEqual(expected, options.plan)) {\n return fromPreflight(failedOutcome('IOS_PLAN_MISMATCH', 'iOS deployment plan is invalid.'));\n }\n if (options.plan.steps.length === 0) return executeNoChange(options.plan);\n if (options.plan.steps[0]?.id === 'ios:remove') return executeRemove(options, runtime);\n const bundleIdentifier = desiredBundleIdentifier(options.inspection);\n if (bundleIdentifier === null) {\n return fromPreflight(\n failedOutcome('IOS_BUNDLE_IDENTIFIER_MISSING', 'iOS bundle identifier is missing.'),\n );\n }\n const access = resolveProjectIosDeploymentAccess(options);\n const blocker = await inspectExecutionSetup(\n options.inspection,\n bundleIdentifier,\n access,\n runtime,\n );\n if (blocker !== null) return fromPreflight(blocker);\n return executeMutablePlan(options, bundleIdentifier, access, runtime);\n}\n\nasync function inspectExecutionSetup(\n inspection: ProjectIosDeploymentInspection,\n bundleIdentifier: string,\n access: ReturnType<typeof resolveProjectIosDeploymentAccess>,\n runtime: ProjectIosDeploymentRuntime,\n): Promise<DeploymentStepOutcome | null> {\n const [eas, appStore] = await Promise.all([\n inspectProjectIosEasSetup(inspection.projectRoot, access, runtime),\n inspectProjectIosAppStoreConnect({\n bundleIdentifier,\n version: inspection.intent.version,\n access,\n runtime,\n }),\n ]);\n return easBlocker(eas) ?? appStoreBlocker(appStore.setup);\n}\n\nfunction easBlocker(result: Parameters<typeof projectSetupBlockingOutcome>[0]) {\n return projectSetupBlockingOutcome(result, {\n target: 'ios',\n capability: 'build',\n incompleteCode: 'IOS_BUILD_SETUP_INCOMPLETE',\n incompleteMessage: 'iOS build setup requires provisioning before deployment.',\n unavailableCode: 'IOS_BUILD_UNAVAILABLE',\n unavailableMessage: 'The iOS build capability is not available.',\n });\n}\n\nfunction appStoreBlocker(result: Parameters<typeof projectSetupBlockingOutcome>[0]) {\n return projectSetupBlockingOutcome(result, {\n target: 'ios',\n capability: 'publish',\n incompleteCode: 'IOS_PUBLISH_SETUP_INCOMPLETE',\n incompleteMessage: 'iOS publishing setup requires provisioning before deployment.',\n unavailableCode: 'IOS_PUBLISH_UNAVAILABLE',\n unavailableMessage: 'The iOS publish capability is not available.',\n });\n}\n\nasync function executeMutablePlan(\n options: ExecuteProjectIosDeploymentOptions,\n bundleIdentifier: string,\n access: ReturnType<typeof resolveProjectIosDeploymentAccess>,\n runtime: ProjectIosDeploymentRuntime,\n): Promise<ProjectIosDeploymentExecution> {\n const state = createExecutionState();\n const execution = await executeDeploymentPlan({\n plan: options.plan,\n executeStep: (step) =>\n executeProjectIosStep({\n step,\n inspection: options.inspection,\n bundleIdentifier,\n access,\n runtime,\n state,\n }),\n });\n return finalizeExecution(options, execution, state, runtime);\n}\n\nasync function finalizeExecution(\n options: ExecuteProjectIosDeploymentOptions,\n execution: DeploymentExecutionResult,\n state: ProjectIosExecutionState,\n runtime: ProjectIosDeploymentRuntime,\n): Promise<ProjectIosDeploymentExecution> {\n if (\n execution.status !== 'completed' ||\n state.publication === null ||\n state.verification?.ok !== true\n ) {\n return result(execution, state, false);\n }\n const history = await recordProjectIosDeployment({\n inspection: options.inspection,\n publication: state.publication,\n plan: options.plan,\n execution,\n verification: state.verification,\n recordedAt: runtime.now().toISOString(),\n });\n return history.recorded\n ? result(execution, state, true)\n : { ...result(execution, state, false), historyFailure: history.failure };\n}\n\nasync function executeNoChange(plan: DeploymentPlan): Promise<ProjectIosDeploymentExecution> {\n const execution = await executeDeploymentPlan({\n plan,\n executeStep: () => Promise.resolve({ status: 'completed' }),\n });\n return { execution, publication: null, verification: null, historyRecorded: false };\n}\n\nasync function executeRemove(\n options: ExecuteProjectIosDeploymentOptions,\n runtime: ProjectIosDeploymentRuntime,\n): Promise<ProjectIosDeploymentExecution> {\n const state = createExecutionState();\n const access = resolveProjectIosDeploymentAccess(options);\n const execution = await executeDeploymentPlan({\n plan: options.plan,\n executeStep: (step) =>\n executeProjectIosStep({\n step,\n inspection: options.inspection,\n bundleIdentifier: currentBundleIdentifier(options.inspection) ?? '',\n access,\n runtime,\n state,\n }),\n });\n return result(execution, state, false);\n}\n\nfunction createExecutionState(): ProjectIosExecutionState {\n return {\n fingerprint: null,\n build: null,\n appStorePublication: null,\n publication: null,\n verification: null,\n };\n}\n\nfunction fromPreflight(outcome: DeploymentStepOutcome): ProjectIosDeploymentExecution {\n const execution: DeploymentExecutionResult =\n outcome.status === 'action-required'\n ? { status: 'action-required', action: outcome.action, records: [] }\n : {\n status: 'failed',\n failure:\n outcome.status === 'failed'\n ? outcome.error\n : { code: 'IOS_PREFLIGHT_FAILED', message: 'iOS deployment preflight failed.' },\n records: [],\n };\n return { execution, publication: null, verification: null, historyRecorded: false };\n}\n\nfunction result(\n execution: DeploymentExecutionResult,\n state: ProjectIosExecutionState,\n historyRecorded: boolean,\n): ProjectIosDeploymentExecution {\n return {\n execution,\n publication: state.publication,\n verification: state.verification,\n historyRecorded,\n };\n}\n\nfunction desiredBundleIdentifier(inspection: ProjectIosDeploymentInspection): string | null {\n const ios = inspection.desired.targets.ios;\n return ios?.enabled === true ? ios.bundleIdentifier : null;\n}\n\nfunction currentBundleIdentifier(inspection: ProjectIosDeploymentInspection): string | null {\n return inspection.current.targets.ios?.bundleIdentifier ?? null;\n}\n\nfunction failedOutcome(code: string, message: string): DeploymentStepOutcome {\n return { status: 'failed', error: { code, message, target: 'ios' } };\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DeploymentPlanStep } from '../../domain/DeploymentPlanStep';
|
|
2
|
+
import type { DeploymentStepOutcome } from '../../domain/DeploymentStepOutcome';
|
|
3
|
+
import type { ProjectIosDeploymentInspection } from './ProjectIosDeploymentInspection';
|
|
4
|
+
import type { ProjectIosDeploymentRuntime } from './ProjectIosDeploymentRuntime';
|
|
5
|
+
import type { ProjectIosExecutionState } from './ProjectIosExecutionState';
|
|
6
|
+
import type { ResolvedProjectIosDeploymentAccess } from './resolveProjectIosDeploymentAccess';
|
|
7
|
+
export declare function executeProjectIosStep(options: {
|
|
8
|
+
readonly step: DeploymentPlanStep;
|
|
9
|
+
readonly inspection: ProjectIosDeploymentInspection;
|
|
10
|
+
readonly bundleIdentifier: string;
|
|
11
|
+
readonly access: ResolvedProjectIosDeploymentAccess;
|
|
12
|
+
readonly runtime: ProjectIosDeploymentRuntime;
|
|
13
|
+
readonly state: ProjectIosExecutionState;
|
|
14
|
+
}): Promise<DeploymentStepOutcome>;
|
|
15
|
+
//# sourceMappingURL=executeProjectIosStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeProjectIosStep.d.ts","sourceRoot":"","sources":["../../../src/project/ios/executeProjectIosStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAQhF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAG9F,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,8BAA8B,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAC;CAC1C,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAejC"}
|