@ankhorage/contracts 19.2.0 → 19.2.1

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @ankhorage/contracts
2
2
 
3
+ ## 19.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e331a1b: Provide the project root to deployment-provider setup adapters so project-aware providers can
8
+ inspect setup without depending on Deploy implementation state.
9
+
3
10
  ## 19.2.0
4
11
 
5
12
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/contracts
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v19.0.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v19.2.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Serializable app, action, theme, auth, and secret-store contracts for Ankhorage.
9
9
 
@@ -82,6 +82,7 @@ export type DeploymentProvisioningRequirement = DeploymentAutomatedProvisioningR
82
82
  readonly action: DeploymentManualAction;
83
83
  };
84
84
  export interface DeploymentProviderSetupContext {
85
+ readonly projectRoot: string;
85
86
  readonly target?: AppDeployTargetId;
86
87
  readonly credentials: readonly DeploymentCredentialReference[];
87
88
  readonly resolveSecret: DeploymentSecretResolver;
@@ -1 +1 @@
1
- {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8B;IAC7C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,KAAK,CAAC,EAAE,8BAA8B,CAAC;IAChD,QAAQ,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAC/C,QAAQ,CAAC,cAAc,CAAC,EAAE,wBAAwB,CAAC;IACnD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IACvD,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IACtD,QAAQ,CAAC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IACtD,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;CAC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"deployProvider.js","sourceRoot":"","sources":["../../src/types/deployProvider.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,WAAW;IACX,SAAS;IACT,OAAO;IACP,SAAS;IACT,QAAQ;CACA,CAAC;AAIX,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,OAAO;IACP,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,SAAS;CACD,CAAC;AA2IX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAU,CAAC;AAG9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC","sourcesContent":["import type { AppDeployTargetId } from '../deploy';\nimport type { DeploymentMonetizationAdapter } from './deployMonetization';\nimport type { DeploymentReleaseAdapter } from './deployRelease';\nimport type { DeploymentStoreListingAdapter } from './deployStoreListing';\n\nexport const DEPLOYMENT_CAPABILITIES = [\n 'provision',\n 'prepare',\n 'build',\n 'publish',\n 'verify',\n] as const;\n\nexport type DeploymentCapability = (typeof DEPLOYMENT_CAPABILITIES)[number];\n\nexport const DEPLOYMENT_PROVIDER_CAPABILITY_IDS = [\n 'setup',\n 'web-publish',\n 'android-build',\n 'android-publish',\n 'ios-build',\n 'ios-publish',\n 'store-listing',\n 'monetization',\n 'release',\n] as const;\n\nexport type DeploymentProviderCapabilityId = (typeof DEPLOYMENT_PROVIDER_CAPABILITY_IDS)[number];\n\nexport interface DeploymentProviderCapabilityDescriptor {\n readonly id: DeploymentProviderCapabilityId;\n readonly targets: readonly AppDeployTargetId[];\n}\n\nexport interface DeploymentProviderDescriptor {\n readonly id: string;\n readonly packageName: string;\n readonly displayName: string;\n readonly capabilities: readonly DeploymentProviderCapabilityDescriptor[];\n}\n\nexport interface DeploymentCredentialReference {\n readonly provider: string;\n readonly id: string;\n readonly kind: string;\n}\n\nexport type DeploymentSecretMaterial = string;\n\nexport type DeploymentSecretResolver = (\n reference: DeploymentCredentialReference,\n) => Promise<DeploymentSecretMaterial | null>;\n\nexport interface DeploymentFailure {\n readonly code: string;\n readonly message: string;\n readonly target?: AppDeployTargetId;\n readonly provider?: string;\n}\n\nexport interface DeploymentAuthenticationRequiredAction {\n readonly type: 'authentication';\n readonly provider: string;\n readonly target?: AppDeployTargetId;\n readonly code: string;\n readonly message: string;\n}\n\nexport interface DeploymentManualAction {\n readonly type: 'manual-action';\n readonly target: AppDeployTargetId;\n readonly provider?: string;\n readonly code: string;\n readonly message: string;\n readonly url?: string;\n}\n\nexport type DeploymentRequiredAction =\n DeploymentAuthenticationRequiredAction | DeploymentManualAction;\n\nexport type DeploymentProviderResult<T> =\n | { readonly status: 'completed'; readonly value: T }\n | { readonly status: 'action-required'; readonly action: DeploymentRequiredAction }\n | { readonly status: 'failed'; readonly failure: DeploymentFailure };\n\nexport type DeploymentAuthenticationState =\n | { readonly status: 'authenticated' }\n | {\n readonly status: 'required';\n readonly action: DeploymentAuthenticationRequiredAction;\n };\n\nexport interface DeploymentProviderCapabilityState {\n readonly capability: DeploymentCapability;\n readonly status: 'available' | 'unavailable';\n readonly reason?: string;\n}\n\nexport interface DeploymentAutomatedProvisioningRequirement {\n readonly type: 'automated';\n readonly id: string;\n readonly provider: string;\n readonly target?: AppDeployTargetId;\n readonly code: string;\n readonly message: string;\n}\n\nexport type DeploymentProvisioningRequirement =\n | DeploymentAutomatedProvisioningRequirement\n | { readonly type: 'authentication'; readonly action: DeploymentAuthenticationRequiredAction }\n | { readonly type: 'manual-action'; readonly action: DeploymentManualAction };\n\nexport interface DeploymentProviderSetupContext {\n readonly target?: AppDeployTargetId;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface DeploymentProviderSetupInspection {\n readonly provider: string;\n readonly authentication: DeploymentAuthenticationState;\n readonly capabilities: readonly DeploymentProviderCapabilityState[];\n readonly provisioning: readonly DeploymentProvisioningRequirement[];\n}\n\nexport interface DeploymentProviderSetupAdapter {\n readonly provider: string;\n inspectSetup(context: DeploymentProviderSetupContext): Promise<DeploymentProviderSetupInspection>;\n}\n\nexport type DeploymentStoreIdentity =\n | { readonly target: 'android'; readonly packageName: string }\n | { readonly target: 'ios'; readonly bundleIdentifier: string };\n\nexport interface WebDeploymentPublishIntent {\n readonly mode: 'preview' | 'production';\n readonly alias?: string;\n readonly environment?: string;\n}\n\nexport 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\nexport interface WebDeploymentPublishRequest {\n readonly projectRoot: string;\n readonly exportDirectory: string;\n readonly revision: string;\n readonly intent: WebDeploymentPublishIntent;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface WebDeploymentPublisher {\n publishAsync(\n request: WebDeploymentPublishRequest,\n ): Promise<DeploymentProviderResult<WebDeploymentPublication>>;\n}\n\nexport const ANDROID_DEPLOYMENT_TRACKS = ['internal', 'alpha', 'beta', 'production'] as const;\nexport type AndroidDeploymentTrack = (typeof ANDROID_DEPLOYMENT_TRACKS)[number];\n\nexport const ANDROID_RELEASE_STATUSES = ['draft', 'completed'] as const;\nexport type AndroidReleaseStatus = (typeof ANDROID_RELEASE_STATUSES)[number];\n\nexport interface AndroidDeploymentIntent {\n readonly buildProfile: string;\n readonly track: AndroidDeploymentTrack;\n readonly releaseStatus: AndroidReleaseStatus;\n}\n\nexport interface AndroidBuildInspectionRequest {\n readonly projectRoot: string;\n readonly packageName: string;\n readonly buildProfile: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface AndroidBuildInspection {\n readonly fingerprint: string;\n}\n\nexport interface AndroidBuildRequest extends AndroidBuildInspectionRequest {\n readonly expectedFingerprint: string;\n}\n\nexport interface AndroidBuildArtifact {\n readonly provider: string;\n readonly buildId: string;\n readonly buildProfile: string;\n readonly fingerprint: string;\n readonly versionCode: number;\n readonly archiveUrl: string;\n}\n\nexport interface AndroidDeploymentBuilder {\n inspectAsync(\n request: AndroidBuildInspectionRequest,\n ): Promise<DeploymentProviderResult<AndroidBuildInspection>>;\n buildAsync(request: AndroidBuildRequest): Promise<DeploymentProviderResult<AndroidBuildArtifact>>;\n}\n\nexport interface AndroidPublishInspectionRequest {\n readonly packageName: string;\n readonly track: AndroidDeploymentTrack;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface AndroidPublishInspection {\n readonly track: AndroidDeploymentTrack;\n readonly activeVersionCodes: readonly number[];\n}\n\nexport interface AndroidPublishRequest extends AndroidPublishInspectionRequest {\n readonly revision: string;\n readonly releaseStatus: AndroidReleaseStatus;\n readonly artifact: AndroidBuildArtifact;\n}\n\nexport interface AndroidDeploymentPublication {\n readonly target: 'android';\n readonly revision: string;\n readonly buildProvider: string;\n readonly publishProvider: string;\n readonly buildId: string;\n readonly versionCode: number;\n readonly track: AndroidDeploymentTrack;\n readonly releaseStatus: AndroidReleaseStatus;\n}\n\nexport interface AndroidDeploymentPublisher {\n inspectAsync(\n request: AndroidPublishInspectionRequest,\n ): Promise<DeploymentProviderResult<AndroidPublishInspection>>;\n publishAsync(\n request: AndroidPublishRequest,\n ): Promise<DeploymentProviderResult<AndroidDeploymentPublication>>;\n verifyAsync(\n request: AndroidPublishRequest,\n ): Promise<DeploymentProviderResult<AndroidPublishInspection>>;\n}\n\nexport interface IosDeploymentIntent {\n readonly buildProfile: string;\n readonly version: string;\n}\n\nexport interface IosBuildInspectionRequest {\n readonly projectRoot: string;\n readonly bundleIdentifier: string;\n readonly buildProfile: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface IosBuildInspection {\n readonly fingerprint: string;\n}\n\nexport interface IosBuildRequest extends IosBuildInspectionRequest {\n readonly expectedFingerprint: string;\n readonly version: string;\n}\n\nexport interface IosBuildArtifact {\n readonly provider: string;\n readonly buildId: string;\n readonly buildProfile: string;\n readonly fingerprint: string;\n readonly version: string;\n readonly buildNumber: string;\n readonly archiveUrl: string;\n}\n\nexport interface IosDeploymentBuilder {\n inspectAsync(\n request: IosBuildInspectionRequest,\n ): Promise<DeploymentProviderResult<IosBuildInspection>>;\n buildAsync(request: IosBuildRequest): Promise<DeploymentProviderResult<IosBuildArtifact>>;\n}\n\nexport interface IosPublishInspectionRequest {\n readonly bundleIdentifier: string;\n readonly version: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface IosPublishInspection {\n readonly bundleIdentifier: string;\n readonly version: string | null;\n readonly buildNumber: string | null;\n}\n\nexport interface IosPublishRequest extends IosPublishInspectionRequest {\n readonly revision: string;\n readonly artifact: IosBuildArtifact;\n}\n\nexport interface IosDeploymentPublication {\n readonly target: 'ios';\n readonly revision: string;\n readonly buildProvider: string;\n readonly publishProvider: string;\n readonly buildId: string;\n readonly version: string;\n readonly buildNumber: string;\n}\n\nexport interface IosDeploymentPublisher {\n inspectAsync(\n request: IosPublishInspectionRequest,\n ): Promise<DeploymentProviderResult<IosPublishInspection>>;\n publishAsync(\n request: IosPublishRequest,\n ): Promise<DeploymentProviderResult<IosDeploymentPublication>>;\n verifyAsync(request: IosPublishRequest): Promise<DeploymentProviderResult<IosPublishInspection>>;\n}\n\nexport interface DeploymentProviderRegistration {\n readonly descriptor: DeploymentProviderDescriptor;\n readonly setup?: DeploymentProviderSetupAdapter;\n readonly webPublisher?: WebDeploymentPublisher;\n readonly androidBuilder?: AndroidDeploymentBuilder;\n readonly androidPublisher?: AndroidDeploymentPublisher;\n readonly iosBuilder?: IosDeploymentBuilder;\n readonly iosPublisher?: IosDeploymentPublisher;\n readonly storeListing?: DeploymentStoreListingAdapter;\n readonly monetization?: DeploymentMonetizationAdapter;\n readonly release?: DeploymentReleaseAdapter;\n}\n"]}
1
+ {"version":3,"file":"deployProvider.js","sourceRoot":"","sources":["../../src/types/deployProvider.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,WAAW;IACX,SAAS;IACT,OAAO;IACP,SAAS;IACT,QAAQ;CACA,CAAC;AAIX,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,OAAO;IACP,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,SAAS;CACD,CAAC;AA4IX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAU,CAAC;AAG9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC","sourcesContent":["import type { AppDeployTargetId } from '../deploy';\nimport type { DeploymentMonetizationAdapter } from './deployMonetization';\nimport type { DeploymentReleaseAdapter } from './deployRelease';\nimport type { DeploymentStoreListingAdapter } from './deployStoreListing';\n\nexport const DEPLOYMENT_CAPABILITIES = [\n 'provision',\n 'prepare',\n 'build',\n 'publish',\n 'verify',\n] as const;\n\nexport type DeploymentCapability = (typeof DEPLOYMENT_CAPABILITIES)[number];\n\nexport const DEPLOYMENT_PROVIDER_CAPABILITY_IDS = [\n 'setup',\n 'web-publish',\n 'android-build',\n 'android-publish',\n 'ios-build',\n 'ios-publish',\n 'store-listing',\n 'monetization',\n 'release',\n] as const;\n\nexport type DeploymentProviderCapabilityId = (typeof DEPLOYMENT_PROVIDER_CAPABILITY_IDS)[number];\n\nexport interface DeploymentProviderCapabilityDescriptor {\n readonly id: DeploymentProviderCapabilityId;\n readonly targets: readonly AppDeployTargetId[];\n}\n\nexport interface DeploymentProviderDescriptor {\n readonly id: string;\n readonly packageName: string;\n readonly displayName: string;\n readonly capabilities: readonly DeploymentProviderCapabilityDescriptor[];\n}\n\nexport interface DeploymentCredentialReference {\n readonly provider: string;\n readonly id: string;\n readonly kind: string;\n}\n\nexport type DeploymentSecretMaterial = string;\n\nexport type DeploymentSecretResolver = (\n reference: DeploymentCredentialReference,\n) => Promise<DeploymentSecretMaterial | null>;\n\nexport interface DeploymentFailure {\n readonly code: string;\n readonly message: string;\n readonly target?: AppDeployTargetId;\n readonly provider?: string;\n}\n\nexport interface DeploymentAuthenticationRequiredAction {\n readonly type: 'authentication';\n readonly provider: string;\n readonly target?: AppDeployTargetId;\n readonly code: string;\n readonly message: string;\n}\n\nexport interface DeploymentManualAction {\n readonly type: 'manual-action';\n readonly target: AppDeployTargetId;\n readonly provider?: string;\n readonly code: string;\n readonly message: string;\n readonly url?: string;\n}\n\nexport type DeploymentRequiredAction =\n DeploymentAuthenticationRequiredAction | DeploymentManualAction;\n\nexport type DeploymentProviderResult<T> =\n | { readonly status: 'completed'; readonly value: T }\n | { readonly status: 'action-required'; readonly action: DeploymentRequiredAction }\n | { readonly status: 'failed'; readonly failure: DeploymentFailure };\n\nexport type DeploymentAuthenticationState =\n | { readonly status: 'authenticated' }\n | {\n readonly status: 'required';\n readonly action: DeploymentAuthenticationRequiredAction;\n };\n\nexport interface DeploymentProviderCapabilityState {\n readonly capability: DeploymentCapability;\n readonly status: 'available' | 'unavailable';\n readonly reason?: string;\n}\n\nexport interface DeploymentAutomatedProvisioningRequirement {\n readonly type: 'automated';\n readonly id: string;\n readonly provider: string;\n readonly target?: AppDeployTargetId;\n readonly code: string;\n readonly message: string;\n}\n\nexport type DeploymentProvisioningRequirement =\n | DeploymentAutomatedProvisioningRequirement\n | { readonly type: 'authentication'; readonly action: DeploymentAuthenticationRequiredAction }\n | { readonly type: 'manual-action'; readonly action: DeploymentManualAction };\n\nexport interface DeploymentProviderSetupContext {\n readonly projectRoot: string;\n readonly target?: AppDeployTargetId;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface DeploymentProviderSetupInspection {\n readonly provider: string;\n readonly authentication: DeploymentAuthenticationState;\n readonly capabilities: readonly DeploymentProviderCapabilityState[];\n readonly provisioning: readonly DeploymentProvisioningRequirement[];\n}\n\nexport interface DeploymentProviderSetupAdapter {\n readonly provider: string;\n inspectSetup(context: DeploymentProviderSetupContext): Promise<DeploymentProviderSetupInspection>;\n}\n\nexport type DeploymentStoreIdentity =\n | { readonly target: 'android'; readonly packageName: string }\n | { readonly target: 'ios'; readonly bundleIdentifier: string };\n\nexport interface WebDeploymentPublishIntent {\n readonly mode: 'preview' | 'production';\n readonly alias?: string;\n readonly environment?: string;\n}\n\nexport 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\nexport interface WebDeploymentPublishRequest {\n readonly projectRoot: string;\n readonly exportDirectory: string;\n readonly revision: string;\n readonly intent: WebDeploymentPublishIntent;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface WebDeploymentPublisher {\n publishAsync(\n request: WebDeploymentPublishRequest,\n ): Promise<DeploymentProviderResult<WebDeploymentPublication>>;\n}\n\nexport const ANDROID_DEPLOYMENT_TRACKS = ['internal', 'alpha', 'beta', 'production'] as const;\nexport type AndroidDeploymentTrack = (typeof ANDROID_DEPLOYMENT_TRACKS)[number];\n\nexport const ANDROID_RELEASE_STATUSES = ['draft', 'completed'] as const;\nexport type AndroidReleaseStatus = (typeof ANDROID_RELEASE_STATUSES)[number];\n\nexport interface AndroidDeploymentIntent {\n readonly buildProfile: string;\n readonly track: AndroidDeploymentTrack;\n readonly releaseStatus: AndroidReleaseStatus;\n}\n\nexport interface AndroidBuildInspectionRequest {\n readonly projectRoot: string;\n readonly packageName: string;\n readonly buildProfile: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface AndroidBuildInspection {\n readonly fingerprint: string;\n}\n\nexport interface AndroidBuildRequest extends AndroidBuildInspectionRequest {\n readonly expectedFingerprint: string;\n}\n\nexport interface AndroidBuildArtifact {\n readonly provider: string;\n readonly buildId: string;\n readonly buildProfile: string;\n readonly fingerprint: string;\n readonly versionCode: number;\n readonly archiveUrl: string;\n}\n\nexport interface AndroidDeploymentBuilder {\n inspectAsync(\n request: AndroidBuildInspectionRequest,\n ): Promise<DeploymentProviderResult<AndroidBuildInspection>>;\n buildAsync(request: AndroidBuildRequest): Promise<DeploymentProviderResult<AndroidBuildArtifact>>;\n}\n\nexport interface AndroidPublishInspectionRequest {\n readonly packageName: string;\n readonly track: AndroidDeploymentTrack;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface AndroidPublishInspection {\n readonly track: AndroidDeploymentTrack;\n readonly activeVersionCodes: readonly number[];\n}\n\nexport interface AndroidPublishRequest extends AndroidPublishInspectionRequest {\n readonly revision: string;\n readonly releaseStatus: AndroidReleaseStatus;\n readonly artifact: AndroidBuildArtifact;\n}\n\nexport interface AndroidDeploymentPublication {\n readonly target: 'android';\n readonly revision: string;\n readonly buildProvider: string;\n readonly publishProvider: string;\n readonly buildId: string;\n readonly versionCode: number;\n readonly track: AndroidDeploymentTrack;\n readonly releaseStatus: AndroidReleaseStatus;\n}\n\nexport interface AndroidDeploymentPublisher {\n inspectAsync(\n request: AndroidPublishInspectionRequest,\n ): Promise<DeploymentProviderResult<AndroidPublishInspection>>;\n publishAsync(\n request: AndroidPublishRequest,\n ): Promise<DeploymentProviderResult<AndroidDeploymentPublication>>;\n verifyAsync(\n request: AndroidPublishRequest,\n ): Promise<DeploymentProviderResult<AndroidPublishInspection>>;\n}\n\nexport interface IosDeploymentIntent {\n readonly buildProfile: string;\n readonly version: string;\n}\n\nexport interface IosBuildInspectionRequest {\n readonly projectRoot: string;\n readonly bundleIdentifier: string;\n readonly buildProfile: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface IosBuildInspection {\n readonly fingerprint: string;\n}\n\nexport interface IosBuildRequest extends IosBuildInspectionRequest {\n readonly expectedFingerprint: string;\n readonly version: string;\n}\n\nexport interface IosBuildArtifact {\n readonly provider: string;\n readonly buildId: string;\n readonly buildProfile: string;\n readonly fingerprint: string;\n readonly version: string;\n readonly buildNumber: string;\n readonly archiveUrl: string;\n}\n\nexport interface IosDeploymentBuilder {\n inspectAsync(\n request: IosBuildInspectionRequest,\n ): Promise<DeploymentProviderResult<IosBuildInspection>>;\n buildAsync(request: IosBuildRequest): Promise<DeploymentProviderResult<IosBuildArtifact>>;\n}\n\nexport interface IosPublishInspectionRequest {\n readonly bundleIdentifier: string;\n readonly version: string;\n readonly credentials: readonly DeploymentCredentialReference[];\n readonly resolveSecret: DeploymentSecretResolver;\n}\n\nexport interface IosPublishInspection {\n readonly bundleIdentifier: string;\n readonly version: string | null;\n readonly buildNumber: string | null;\n}\n\nexport interface IosPublishRequest extends IosPublishInspectionRequest {\n readonly revision: string;\n readonly artifact: IosBuildArtifact;\n}\n\nexport interface IosDeploymentPublication {\n readonly target: 'ios';\n readonly revision: string;\n readonly buildProvider: string;\n readonly publishProvider: string;\n readonly buildId: string;\n readonly version: string;\n readonly buildNumber: string;\n}\n\nexport interface IosDeploymentPublisher {\n inspectAsync(\n request: IosPublishInspectionRequest,\n ): Promise<DeploymentProviderResult<IosPublishInspection>>;\n publishAsync(\n request: IosPublishRequest,\n ): Promise<DeploymentProviderResult<IosDeploymentPublication>>;\n verifyAsync(request: IosPublishRequest): Promise<DeploymentProviderResult<IosPublishInspection>>;\n}\n\nexport interface DeploymentProviderRegistration {\n readonly descriptor: DeploymentProviderDescriptor;\n readonly setup?: DeploymentProviderSetupAdapter;\n readonly webPublisher?: WebDeploymentPublisher;\n readonly androidBuilder?: AndroidDeploymentBuilder;\n readonly androidPublisher?: AndroidDeploymentPublisher;\n readonly iosBuilder?: IosDeploymentBuilder;\n readonly iosPublisher?: IosDeploymentPublisher;\n readonly storeListing?: DeploymentStoreListingAdapter;\n readonly monetization?: DeploymentMonetizationAdapter;\n readonly release?: DeploymentReleaseAdapter;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/contracts",
3
- "version": "19.2.0",
3
+ "version": "19.2.1",
4
4
  "main": "./dist/index.js",
5
5
  "ankh": {
6
6
  "category": "contracts",
@@ -13,7 +13,25 @@ const fakeProvider: DeploymentProviderRegistration = {
13
13
  id: 'fake',
14
14
  packageName: '@ankhorage/deploy-provider-fake',
15
15
  displayName: 'Fake provider',
16
- capabilities: [{ id: 'web-publish', targets: ['web'] }],
16
+ capabilities: [
17
+ { id: 'setup', targets: ['web'] },
18
+ { id: 'web-publish', targets: ['web'] },
19
+ ],
20
+ },
21
+ setup: {
22
+ provider: 'fake',
23
+ inspectSetup: (context) =>
24
+ Promise.resolve({
25
+ provider: 'fake',
26
+ authentication: { status: 'authenticated' },
27
+ capabilities: [
28
+ {
29
+ capability: 'publish',
30
+ status: context.projectRoot === '/project' ? 'available' : 'unavailable',
31
+ },
32
+ ],
33
+ provisioning: [],
34
+ }),
17
35
  },
18
36
  webPublisher: {
19
37
  publishAsync: (request) =>
@@ -31,7 +49,7 @@ const fakeProvider: DeploymentProviderRegistration = {
31
49
  },
32
50
  };
33
51
 
34
- describe('deployment provider contracts', () => {
52
+ describe('deployment provider setup contracts', () => {
35
53
  it('defines the portable provider capability vocabulary', () => {
36
54
  expect(DEPLOYMENT_PROVIDER_CAPABILITY_IDS).toEqual([
37
55
  'setup',
@@ -46,6 +64,19 @@ describe('deployment provider contracts', () => {
46
64
  ]);
47
65
  });
48
66
 
67
+ it('provides the project root to setup adapters', async () => {
68
+ const inspection = await fakeProvider.setup?.inspectSetup({
69
+ projectRoot: '/project',
70
+ target: 'web',
71
+ credentials: [],
72
+ resolveSecret: () => Promise.resolve(null),
73
+ });
74
+
75
+ expect(inspection?.capabilities).toEqual([{ capability: 'publish', status: 'available' }]);
76
+ });
77
+ });
78
+
79
+ describe('deployment provider public contracts', () => {
49
80
  it('supports an external provider registration without Deploy implementation types', async () => {
50
81
  const result = await fakeProvider.webPublisher?.publishAsync({
51
82
  projectRoot: '/project',
@@ -111,6 +111,7 @@ export type DeploymentProvisioningRequirement =
111
111
  | { readonly type: 'manual-action'; readonly action: DeploymentManualAction };
112
112
 
113
113
  export interface DeploymentProviderSetupContext {
114
+ readonly projectRoot: string;
114
115
  readonly target?: AppDeployTargetId;
115
116
  readonly credentials: readonly DeploymentCredentialReference[];
116
117
  readonly resolveSecret: DeploymentSecretResolver;