@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 };
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
+
AndroidFormat: () => AndroidFormat,
|
|
23
24
|
FailureKind: () => FailureKind,
|
|
24
25
|
Platform: () => Platform,
|
|
25
26
|
ProjectStatus: () => ProjectStatus,
|
|
@@ -28,6 +29,7 @@ __export(index_typings_exports, {
|
|
|
28
29
|
V1Platform: () => V1Platform,
|
|
29
30
|
Variant: () => Variant,
|
|
30
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
+
claimHimalayaApp: () => claimHimalayaApp2,
|
|
31
33
|
createProject: () => createProject2,
|
|
32
34
|
deleteProject: () => deleteProject2,
|
|
33
35
|
getHimalayaAuthorization: () => getHimalayaAuthorization2,
|
|
@@ -442,6 +444,27 @@ function getLatestMobileBuilds(payload) {
|
|
|
442
444
|
}
|
|
443
445
|
return __getLatestMobileBuilds;
|
|
444
446
|
}
|
|
447
|
+
function claimHimalayaApp(payload) {
|
|
448
|
+
function __claimHimalayaApp({ host }) {
|
|
449
|
+
const metadata = {
|
|
450
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
451
|
+
method: "POST",
|
|
452
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp",
|
|
453
|
+
packageName: PACKAGE_NAME,
|
|
454
|
+
migrationOptions: {
|
|
455
|
+
optInTransformResponse: true
|
|
456
|
+
},
|
|
457
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
458
|
+
protoPath: "/v1/projects/{projectId}/himalaya-app-claim",
|
|
459
|
+
data: payload,
|
|
460
|
+
host
|
|
461
|
+
}),
|
|
462
|
+
data: payload
|
|
463
|
+
};
|
|
464
|
+
return metadata;
|
|
465
|
+
}
|
|
466
|
+
return __claimHimalayaApp;
|
|
467
|
+
}
|
|
445
468
|
|
|
446
469
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
447
470
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -504,6 +527,11 @@ var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
|
504
527
|
Platform2["ANDROID"] = "ANDROID";
|
|
505
528
|
return Platform2;
|
|
506
529
|
})(Platform || {});
|
|
530
|
+
var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
|
|
531
|
+
AndroidFormat2["APK"] = "APK";
|
|
532
|
+
AndroidFormat2["AAB"] = "AAB";
|
|
533
|
+
return AndroidFormat2;
|
|
534
|
+
})(AndroidFormat || {});
|
|
507
535
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
508
536
|
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
509
537
|
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
@@ -818,7 +846,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
818
846
|
releaseId: options?.releaseId,
|
|
819
847
|
appVersion: options?.appVersion,
|
|
820
848
|
himalayaControlToken: options?.himalayaControlToken,
|
|
821
|
-
canonicalApp: options?.canonicalApp
|
|
849
|
+
canonicalApp: options?.canonicalApp,
|
|
850
|
+
androidFormat: options?.androidFormat,
|
|
851
|
+
ownerAuthorization: options?.ownerAuthorization
|
|
822
852
|
});
|
|
823
853
|
const reqOpts = startMobileBuild(payload);
|
|
824
854
|
sideEffects?.onSiteCall?.();
|
|
@@ -837,7 +867,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
837
867
|
releaseId: "$[2].releaseId",
|
|
838
868
|
appVersion: "$[2].appVersion",
|
|
839
869
|
himalayaControlToken: "$[2].himalayaControlToken",
|
|
840
|
-
canonicalApp: "$[2].canonicalApp"
|
|
870
|
+
canonicalApp: "$[2].canonicalApp",
|
|
871
|
+
androidFormat: "$[2].androidFormat",
|
|
872
|
+
ownerAuthorization: "$[2].ownerAuthorization"
|
|
841
873
|
},
|
|
842
874
|
singleArgumentUnchanged: false
|
|
843
875
|
},
|
|
@@ -876,8 +908,34 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
876
908
|
throw transformedError;
|
|
877
909
|
}
|
|
878
910
|
}
|
|
911
|
+
async function claimHimalayaApp2(projectId) {
|
|
912
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
913
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
914
|
+
projectId
|
|
915
|
+
});
|
|
916
|
+
const reqOpts = claimHimalayaApp(payload);
|
|
917
|
+
sideEffects?.onSiteCall?.();
|
|
918
|
+
try {
|
|
919
|
+
const result = await httpClient.request(reqOpts);
|
|
920
|
+
sideEffects?.onSuccess?.(result);
|
|
921
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
922
|
+
} catch (err) {
|
|
923
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
924
|
+
err,
|
|
925
|
+
{
|
|
926
|
+
spreadPathsToArguments: {},
|
|
927
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
928
|
+
singleArgumentUnchanged: false
|
|
929
|
+
},
|
|
930
|
+
["projectId"]
|
|
931
|
+
);
|
|
932
|
+
sideEffects?.onError?.(err);
|
|
933
|
+
throw transformedError;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
879
936
|
// Annotate the CommonJS export names for ESM import in node:
|
|
880
937
|
0 && (module.exports = {
|
|
938
|
+
AndroidFormat,
|
|
881
939
|
FailureKind,
|
|
882
940
|
Platform,
|
|
883
941
|
ProjectStatus,
|
|
@@ -886,6 +944,7 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
886
944
|
V1Platform,
|
|
887
945
|
Variant,
|
|
888
946
|
WebhookIdentityType,
|
|
947
|
+
claimHimalayaApp,
|
|
889
948
|
createProject,
|
|
890
949
|
deleteProject,
|
|
891
950
|
getHimalayaAuthorization,
|