@wix/auto_sdk_containers_projects 1.0.9 → 1.0.11
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/build/cjs/index.d.ts +24 -5
- package/build/cjs/index.js +69 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +98 -5
- package/build/cjs/index.typings.js +61 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +65 -4
- package/build/cjs/meta.js +48 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +24 -5
- package/build/es/index.mjs +67 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +98 -5
- package/build/es/index.typings.mjs +59 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +65 -4
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +24 -5
- package/build/internal/cjs/index.typings.d.ts +98 -5
- package/build/internal/cjs/meta.d.ts +65 -4
- package/build/internal/es/index.d.mts +24 -5
- package/build/internal/es/index.typings.d.mts +98 -5
- package/build/internal/es/meta.d.mts +65 -4
- package/package.json +2 -2
|
@@ -1269,16 +1269,40 @@ interface StartMobileBuildRequest {
|
|
|
1269
1269
|
* @maxLength 200
|
|
1270
1270
|
*/
|
|
1271
1271
|
canonicalApp?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Android only. Kind of file to build. Default: `APK`.
|
|
1274
|
+
*
|
|
1275
|
+
* `AAB` builds the file to upload to Google Play, under the package name saved for the app in
|
|
1276
|
+
* Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
|
|
1277
|
+
*/
|
|
1278
|
+
androidFormat?: AndroidFormatWithLiterals;
|
|
1279
|
+
/**
|
|
1280
|
+
* The site owner's dashboard authorization: the signed `Authorization` header of this request.
|
|
1281
|
+
* Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
|
|
1282
|
+
*
|
|
1283
|
+
* Used for this call only. It isn't stored or returned.
|
|
1284
|
+
* @maxLength 4096
|
|
1285
|
+
*/
|
|
1286
|
+
ownerAuthorization?: string;
|
|
1272
1287
|
}
|
|
1273
1288
|
/** Platform that an app-file build targets. */
|
|
1274
1289
|
declare enum Platform {
|
|
1275
1290
|
/** iOS. The build makes an `.ipa` file and an install page. */
|
|
1276
1291
|
IOS = "IOS",
|
|
1277
|
-
/** Android. The build makes an `.apk` file. */
|
|
1292
|
+
/** Android. The build makes an `.apk` file, or an `.aab` file for Google Play (see `androidFormat`). */
|
|
1278
1293
|
ANDROID = "ANDROID"
|
|
1279
1294
|
}
|
|
1280
1295
|
/** @enumType */
|
|
1281
1296
|
type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID';
|
|
1297
|
+
/** Kind of file an Android build makes. */
|
|
1298
|
+
declare enum AndroidFormat {
|
|
1299
|
+
/** An `.apk` file, to install on a phone and test. */
|
|
1300
|
+
APK = "APK",
|
|
1301
|
+
/** An `.aab` file (Android App Bundle), the file to upload to Google Play. It can't be installed on a phone. */
|
|
1302
|
+
AAB = "AAB"
|
|
1303
|
+
}
|
|
1304
|
+
/** @enumType */
|
|
1305
|
+
type AndroidFormatWithLiterals = AndroidFormat | 'APK' | 'AAB';
|
|
1282
1306
|
interface StartMobileBuildResponse {
|
|
1283
1307
|
/**
|
|
1284
1308
|
* Started builds, one for each platform that was accepted.
|
|
@@ -1325,7 +1349,7 @@ interface MobileBuild {
|
|
|
1325
1349
|
*/
|
|
1326
1350
|
errorMessage?: string;
|
|
1327
1351
|
/**
|
|
1328
|
-
* URL of the built file: an `.ipa` file for iOS, or an `.apk` file for Android.
|
|
1352
|
+
* URL of the built file: an `.ipa` file for iOS, or an `.apk` or `.aab` file for Android.
|
|
1329
1353
|
* Returned only when `status` is `SUCCEEDED`. Can be empty for iOS.
|
|
1330
1354
|
* @format WEB_URL
|
|
1331
1355
|
*/
|
|
@@ -1346,6 +1370,14 @@ interface MobileBuild {
|
|
|
1346
1370
|
builtDate?: Date | null;
|
|
1347
1371
|
/** Date and time the build last changed. */
|
|
1348
1372
|
_updatedDate?: Date | null;
|
|
1373
|
+
/** Android only. Kind of file the build made: an `.apk` to install and test, or an `.aab` to upload to Google Play. */
|
|
1374
|
+
androidFormat?: AndroidFormatWithLiterals;
|
|
1375
|
+
/**
|
|
1376
|
+
* Android `AAB` builds only. URL of an `.apk` file of the same build, to install on a phone and test.
|
|
1377
|
+
* Returned only when `status` is `SUCCEEDED`. Can be empty. Expires with `download_url`.
|
|
1378
|
+
* @format WEB_URL
|
|
1379
|
+
*/
|
|
1380
|
+
apkDownloadUrl?: string;
|
|
1349
1381
|
}
|
|
1350
1382
|
/** Status of an app-file build. */
|
|
1351
1383
|
declare enum Status {
|
|
@@ -1417,6 +1449,32 @@ interface PlatformMobileBuilds {
|
|
|
1417
1449
|
/** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
|
|
1418
1450
|
lastSuccessfulBuild?: MobileBuild;
|
|
1419
1451
|
}
|
|
1452
|
+
interface ClaimHimalayaAppRequest {
|
|
1453
|
+
/**
|
|
1454
|
+
* Site-tenanted Containers project to claim a Himalaya app for.
|
|
1455
|
+
* @format GUID
|
|
1456
|
+
*/
|
|
1457
|
+
projectId: string;
|
|
1458
|
+
}
|
|
1459
|
+
interface ClaimHimalayaAppResponse {
|
|
1460
|
+
/** Version of the authorization capability contract. Matches GetHimalayaAuthorizationResponse. */
|
|
1461
|
+
authorizationVersion?: number;
|
|
1462
|
+
/**
|
|
1463
|
+
* Trusted MetaSite selected from request identity context, never from the request body.
|
|
1464
|
+
* @format GUID
|
|
1465
|
+
*/
|
|
1466
|
+
metaSiteId?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* Site-tenanted Containers project the app is bound to.
|
|
1469
|
+
* @format GUID
|
|
1470
|
+
*/
|
|
1471
|
+
projectId?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Canonical Himalaya app slug, newly claimed or already bound.
|
|
1474
|
+
* @maxLength 200
|
|
1475
|
+
*/
|
|
1476
|
+
canonicalApp?: string;
|
|
1477
|
+
}
|
|
1420
1478
|
/**
|
|
1421
1479
|
* Retrieves a project.
|
|
1422
1480
|
* @param projectId - ID of the project to retrieve.
|
|
@@ -1683,7 +1741,7 @@ declare function getHimalayaAuthorization(projectId: string): Promise<NonNullabl
|
|
|
1683
1741
|
* @permissionId containers:projects:v1:project:start_mobile_build
|
|
1684
1742
|
* @fqn wix.containers.projects.v1.ContainersProjects.StartMobileBuild
|
|
1685
1743
|
*/
|
|
1686
|
-
declare function startMobileBuild(projectId: string, platforms: PlatformWithLiterals[], options?: NonNullablePaths<StartMobileBuildOptions, `himalayaControlToken`, 0>): Promise<NonNullablePaths<StartMobileBuildResponse, `builds` | `builds.${number}.jobId` | `builds.${number}.platform` | `builds.${number}.releaseId` | `builds.${number}.appVersion` | `builds.${number}.status` | `builds.${number}.failureKind` | `builds.${number}.himalayaStatus` | `builds.${number}.errorMessage` | `builds.${number}.downloadUrl` | `builds.${number}.installPageUrl` | `builds.${number}.downloadExpired` | `failedPlatforms` | `failedPlatforms.${number}.platform` | `failedPlatforms.${number}.errorCode` | `failedPlatforms.${number}.errorMessage`, 2>>;
|
|
1744
|
+
declare function startMobileBuild(projectId: string, platforms: PlatformWithLiterals[], options?: NonNullablePaths<StartMobileBuildOptions, `himalayaControlToken`, 0>): Promise<NonNullablePaths<StartMobileBuildResponse, `builds` | `builds.${number}.jobId` | `builds.${number}.platform` | `builds.${number}.releaseId` | `builds.${number}.appVersion` | `builds.${number}.status` | `builds.${number}.failureKind` | `builds.${number}.himalayaStatus` | `builds.${number}.errorMessage` | `builds.${number}.downloadUrl` | `builds.${number}.installPageUrl` | `builds.${number}.downloadExpired` | `builds.${number}.androidFormat` | `builds.${number}.apkDownloadUrl` | `failedPlatforms` | `failedPlatforms.${number}.platform` | `failedPlatforms.${number}.errorCode` | `failedPlatforms.${number}.errorMessage`, 2>>;
|
|
1687
1745
|
interface StartMobileBuildOptions {
|
|
1688
1746
|
/**
|
|
1689
1747
|
* ID of the app release to build. When not specified, the app's live release is built.
|
|
@@ -1711,6 +1769,21 @@ interface StartMobileBuildOptions {
|
|
|
1711
1769
|
* @maxLength 200
|
|
1712
1770
|
*/
|
|
1713
1771
|
canonicalApp?: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* Android only. Kind of file to build. Default: `APK`.
|
|
1774
|
+
*
|
|
1775
|
+
* `AAB` builds the file to upload to Google Play, under the package name saved for the app in
|
|
1776
|
+
* Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
|
|
1777
|
+
*/
|
|
1778
|
+
androidFormat?: AndroidFormatWithLiterals;
|
|
1779
|
+
/**
|
|
1780
|
+
* The site owner's dashboard authorization: the signed `Authorization` header of this request.
|
|
1781
|
+
* Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
|
|
1782
|
+
*
|
|
1783
|
+
* Used for this call only. It isn't stored or returned.
|
|
1784
|
+
* @maxLength 4096
|
|
1785
|
+
*/
|
|
1786
|
+
ownerAuthorization?: string;
|
|
1714
1787
|
}
|
|
1715
1788
|
/**
|
|
1716
1789
|
* Retrieves the latest app-file builds of a project: for each platform, the last build that was
|
|
@@ -1728,7 +1801,7 @@ interface StartMobileBuildOptions {
|
|
|
1728
1801
|
* @permissionId containers:projects:v1:project:get_latest_mobile_builds
|
|
1729
1802
|
* @fqn wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds
|
|
1730
1803
|
*/
|
|
1731
|
-
declare function getLatestMobileBuilds(projectId: string, options?: GetLatestMobileBuildsOptions): Promise<NonNullablePaths<GetLatestMobileBuildsResponse, `platforms` | `platforms.${number}.platform` | `platforms.${number}.lastAttempt.jobId` | `platforms.${number}.lastAttempt.platform` | `platforms.${number}.lastAttempt.releaseId` | `platforms.${number}.lastAttempt.appVersion` | `platforms.${number}.lastAttempt.status` | `platforms.${number}.lastAttempt.failureKind` | `platforms.${number}.lastAttempt.himalayaStatus` | `platforms.${number}.lastAttempt.errorMessage` | `platforms.${number}.lastAttempt.downloadUrl` | `platforms.${number}.lastAttempt.installPageUrl` | `platforms.${number}.lastAttempt.downloadExpired` | `refreshFailed`, 3>>;
|
|
1804
|
+
declare function getLatestMobileBuilds(projectId: string, options?: GetLatestMobileBuildsOptions): Promise<NonNullablePaths<GetLatestMobileBuildsResponse, `platforms` | `platforms.${number}.platform` | `platforms.${number}.lastAttempt.jobId` | `platforms.${number}.lastAttempt.platform` | `platforms.${number}.lastAttempt.releaseId` | `platforms.${number}.lastAttempt.appVersion` | `platforms.${number}.lastAttempt.status` | `platforms.${number}.lastAttempt.failureKind` | `platforms.${number}.lastAttempt.himalayaStatus` | `platforms.${number}.lastAttempt.errorMessage` | `platforms.${number}.lastAttempt.downloadUrl` | `platforms.${number}.lastAttempt.installPageUrl` | `platforms.${number}.lastAttempt.downloadExpired` | `platforms.${number}.lastAttempt.androidFormat` | `platforms.${number}.lastAttempt.apkDownloadUrl` | `refreshFailed`, 3>>;
|
|
1732
1805
|
interface GetLatestMobileBuildsOptions {
|
|
1733
1806
|
/**
|
|
1734
1807
|
* Short-lived control credential for the project's app.
|
|
@@ -1739,5 +1812,25 @@ interface GetLatestMobileBuildsOptions {
|
|
|
1739
1812
|
*/
|
|
1740
1813
|
himalayaControlToken?: string;
|
|
1741
1814
|
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Claims the canonical Himalaya app for a NEW site-tenanted project, or returns the one already
|
|
1817
|
+
* bound to it.
|
|
1818
|
+
*
|
|
1819
|
+
* This exists so the BROWSER never asserts the (MetaSite, project) pair to Himalaya. Containers
|
|
1820
|
+
* is the authority on project -> MetaSite: it reads the project from its own store with a
|
|
1821
|
+
* consistent read and takes the MetaSite from this call's identity context, then claims
|
|
1822
|
+
* server-to-server with a site USER token minted for the initiating collaborator. Himalaya
|
|
1823
|
+
* recognises that token as minted by THIS service and trusts the pair on that basis. A dashboard
|
|
1824
|
+
* calling Himalaya directly could name another site's project UUID and reserve its global slug.
|
|
1825
|
+
*
|
|
1826
|
+
* Idempotent per pair: an already-claimed project returns its existing canonical app.
|
|
1827
|
+
* @param projectId - Site-tenanted Containers project to claim a Himalaya app for.
|
|
1828
|
+
* @public
|
|
1829
|
+
* @documentationMaturity preview
|
|
1830
|
+
* @requiredField projectId
|
|
1831
|
+
* @permissionId containers:projects:v1:project:claim_himalaya_app
|
|
1832
|
+
* @fqn wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp
|
|
1833
|
+
*/
|
|
1834
|
+
declare function claimHimalayaApp(projectId: string): Promise<NonNullablePaths<ClaimHimalayaAppResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp`, 0>>;
|
|
1742
1835
|
|
|
1743
|
-
export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, type ConductByScopeResponse, type ConductByScopesResponse, type ConductResponse, type ConductionException, type ConductionResult, type ConductionStatus, type ConductionStatusStatusOneOf, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DidNotFindEligibleFilter, type DomainEvent, type DomainEventBodyOneOf, type DynamicConfigConductionResult, type DynamicConfigStatus, type DynamicConfigStatusStatusOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedMobileBuildPlatform, type FailedToFetchExperiment, type FailedToRunToss, FailureKind, type FailureKindWithLiterals, type FilterNotImplemented, type FilterNotSupported, type FilterOperandEmpty, type GeneralError, type GetAgentConfigRequest, type GetAgentConfigResponse, type GetAgentExperimentsRequest, type GetAgentExperimentsResponse, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, type GetLatestMobileBuildsOptions, type GetLatestMobileBuildsRequest, type GetLatestMobileBuildsResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidLibraryConfiguration, type IsEnabledFieldNotFound, type IsEnabledFieldNotOfTypeBoolean, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, type MissingElementInContextForBiProfileError, type MissingExperimentId, type MissingFilterTarget, type MissingPlugins, type MissingSeed, type MissingSeedKeyType, type MissingSeedType, type MobileBuild, type NoResultForConduction, type NotImplemented, Platform, type PlatformMobileBuilds, type PlatformWithLiterals, type PopulationError, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type RestoreReleaseOptions, type RestoreReleaseRequest, type RestoreReleaseResponse, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartMobileBuildOptions, type StartMobileBuildRequest, type StartMobileBuildResponse, type StartProjectRequest, type StartProjectResponse, Status, type StatusWithLiterals, type SuccessfulResult, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, type V1AdditionalDataFilterMismatchType, type V1AdditionalDataFilterMissingKey, type V1AdditionalDataFilterMustHaveKey, type V1AdditionalDataMissingValue, type V1AdditionalFilterCantBeEmpty, type V1ConductionException, type V1DidNotFindEligibleFilter, type V1FailedToFetchExperiment, type V1FailedToRunToss, type V1FilterNotImplemented, type V1FilterNotSupported, type V1FilterOperandEmpty, type V1GeneralError, type V1MissingElementInContextForBiProfileError, type V1MissingExperimentId, type V1MissingFilterTarget, type V1MissingPlugins, type V1MissingSeed, type V1MissingSeedKeyType, type V1MissingSeedType, type V1NoResultForConduction, V1Platform, type V1PlatformWithLiterals, type V1PopulationError, type V1SuccessfulResult, Variant, type VariantValue, type VariantValueValueOneOf, type VariantWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
|
1836
|
+
export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, AndroidFormat, type AndroidFormatWithLiterals, type ClaimHimalayaAppRequest, type ClaimHimalayaAppResponse, type ConductByScopeResponse, type ConductByScopesResponse, type ConductResponse, type ConductionException, type ConductionResult, type ConductionStatus, type ConductionStatusStatusOneOf, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DidNotFindEligibleFilter, type DomainEvent, type DomainEventBodyOneOf, type DynamicConfigConductionResult, type DynamicConfigStatus, type DynamicConfigStatusStatusOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedMobileBuildPlatform, type FailedToFetchExperiment, type FailedToRunToss, FailureKind, type FailureKindWithLiterals, type FilterNotImplemented, type FilterNotSupported, type FilterOperandEmpty, type GeneralError, type GetAgentConfigRequest, type GetAgentConfigResponse, type GetAgentExperimentsRequest, type GetAgentExperimentsResponse, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, type GetLatestMobileBuildsOptions, type GetLatestMobileBuildsRequest, type GetLatestMobileBuildsResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidLibraryConfiguration, type IsEnabledFieldNotFound, type IsEnabledFieldNotOfTypeBoolean, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, type MissingElementInContextForBiProfileError, type MissingExperimentId, type MissingFilterTarget, type MissingPlugins, type MissingSeed, type MissingSeedKeyType, type MissingSeedType, type MobileBuild, type NoResultForConduction, type NotImplemented, Platform, type PlatformMobileBuilds, type PlatformWithLiterals, type PopulationError, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type RestoreReleaseOptions, type RestoreReleaseRequest, type RestoreReleaseResponse, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartMobileBuildOptions, type StartMobileBuildRequest, type StartMobileBuildResponse, type StartProjectRequest, type StartProjectResponse, Status, type StatusWithLiterals, type SuccessfulResult, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, type V1AdditionalDataFilterMismatchType, type V1AdditionalDataFilterMissingKey, type V1AdditionalDataFilterMustHaveKey, type V1AdditionalDataMissingValue, type V1AdditionalFilterCantBeEmpty, type V1ConductionException, type V1DidNotFindEligibleFilter, type V1FailedToFetchExperiment, type V1FailedToRunToss, type V1FilterNotImplemented, type V1FilterNotSupported, type V1FilterOperandEmpty, type V1GeneralError, type V1MissingElementInContextForBiProfileError, type V1MissingExperimentId, type V1MissingFilterTarget, type V1MissingPlugins, type V1MissingSeed, type V1MissingSeedKeyType, type V1MissingSeedType, type V1NoResultForConduction, V1Platform, type V1PlatformWithLiterals, type V1PopulationError, type V1SuccessfulResult, Variant, type VariantValue, type VariantValueValueOneOf, type VariantWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, claimHimalayaApp, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
|
@@ -399,6 +399,27 @@ function getLatestMobileBuilds(payload) {
|
|
|
399
399
|
}
|
|
400
400
|
return __getLatestMobileBuilds;
|
|
401
401
|
}
|
|
402
|
+
function claimHimalayaApp(payload) {
|
|
403
|
+
function __claimHimalayaApp({ host }) {
|
|
404
|
+
const metadata = {
|
|
405
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
406
|
+
method: "POST",
|
|
407
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp",
|
|
408
|
+
packageName: PACKAGE_NAME,
|
|
409
|
+
migrationOptions: {
|
|
410
|
+
optInTransformResponse: true
|
|
411
|
+
},
|
|
412
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
413
|
+
protoPath: "/v1/projects/{projectId}/himalaya-app-claim",
|
|
414
|
+
data: payload,
|
|
415
|
+
host
|
|
416
|
+
}),
|
|
417
|
+
data: payload
|
|
418
|
+
};
|
|
419
|
+
return metadata;
|
|
420
|
+
}
|
|
421
|
+
return __claimHimalayaApp;
|
|
422
|
+
}
|
|
402
423
|
|
|
403
424
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
404
425
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -461,6 +482,11 @@ var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
|
461
482
|
Platform2["ANDROID"] = "ANDROID";
|
|
462
483
|
return Platform2;
|
|
463
484
|
})(Platform || {});
|
|
485
|
+
var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
|
|
486
|
+
AndroidFormat2["APK"] = "APK";
|
|
487
|
+
AndroidFormat2["AAB"] = "AAB";
|
|
488
|
+
return AndroidFormat2;
|
|
489
|
+
})(AndroidFormat || {});
|
|
464
490
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
465
491
|
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
466
492
|
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
@@ -775,7 +801,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
775
801
|
releaseId: options?.releaseId,
|
|
776
802
|
appVersion: options?.appVersion,
|
|
777
803
|
himalayaControlToken: options?.himalayaControlToken,
|
|
778
|
-
canonicalApp: options?.canonicalApp
|
|
804
|
+
canonicalApp: options?.canonicalApp,
|
|
805
|
+
androidFormat: options?.androidFormat,
|
|
806
|
+
ownerAuthorization: options?.ownerAuthorization
|
|
779
807
|
});
|
|
780
808
|
const reqOpts = startMobileBuild(payload);
|
|
781
809
|
sideEffects?.onSiteCall?.();
|
|
@@ -794,7 +822,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
794
822
|
releaseId: "$[2].releaseId",
|
|
795
823
|
appVersion: "$[2].appVersion",
|
|
796
824
|
himalayaControlToken: "$[2].himalayaControlToken",
|
|
797
|
-
canonicalApp: "$[2].canonicalApp"
|
|
825
|
+
canonicalApp: "$[2].canonicalApp",
|
|
826
|
+
androidFormat: "$[2].androidFormat",
|
|
827
|
+
ownerAuthorization: "$[2].ownerAuthorization"
|
|
798
828
|
},
|
|
799
829
|
singleArgumentUnchanged: false
|
|
800
830
|
},
|
|
@@ -833,7 +863,33 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
833
863
|
throw transformedError;
|
|
834
864
|
}
|
|
835
865
|
}
|
|
866
|
+
async function claimHimalayaApp2(projectId) {
|
|
867
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
868
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
869
|
+
projectId
|
|
870
|
+
});
|
|
871
|
+
const reqOpts = claimHimalayaApp(payload);
|
|
872
|
+
sideEffects?.onSiteCall?.();
|
|
873
|
+
try {
|
|
874
|
+
const result = await httpClient.request(reqOpts);
|
|
875
|
+
sideEffects?.onSuccess?.(result);
|
|
876
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
877
|
+
} catch (err) {
|
|
878
|
+
const transformedError = sdkTransformError(
|
|
879
|
+
err,
|
|
880
|
+
{
|
|
881
|
+
spreadPathsToArguments: {},
|
|
882
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
883
|
+
singleArgumentUnchanged: false
|
|
884
|
+
},
|
|
885
|
+
["projectId"]
|
|
886
|
+
);
|
|
887
|
+
sideEffects?.onError?.(err);
|
|
888
|
+
throw transformedError;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
836
891
|
export {
|
|
892
|
+
AndroidFormat,
|
|
837
893
|
FailureKind,
|
|
838
894
|
Platform,
|
|
839
895
|
ProjectStatus,
|
|
@@ -842,6 +898,7 @@ export {
|
|
|
842
898
|
V1Platform,
|
|
843
899
|
Variant,
|
|
844
900
|
WebhookIdentityType,
|
|
901
|
+
claimHimalayaApp2 as claimHimalayaApp,
|
|
845
902
|
createProject2 as createProject,
|
|
846
903
|
deleteProject2 as deleteProject,
|
|
847
904
|
getHimalayaAuthorization2 as getHimalayaAuthorization,
|