@wix/auto_sdk_containers_projects 1.0.9 → 1.0.10
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 +3 -3
- package/build/cjs/index.js +13 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +52 -5
- package/build/cjs/index.typings.js +13 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -3
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +12 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +52 -5
- package/build/es/index.typings.mjs +12 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -3
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.typings.d.ts +52 -5
- package/build/internal/cjs/meta.d.ts +35 -3
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.typings.d.mts +52 -5
- package/build/internal/es/meta.d.mts +35 -3
- 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 {
|
|
@@ -1683,7 +1715,7 @@ declare function getHimalayaAuthorization(projectId: string): Promise<NonNullabl
|
|
|
1683
1715
|
* @permissionId containers:projects:v1:project:start_mobile_build
|
|
1684
1716
|
* @fqn wix.containers.projects.v1.ContainersProjects.StartMobileBuild
|
|
1685
1717
|
*/
|
|
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>>;
|
|
1718
|
+
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
1719
|
interface StartMobileBuildOptions {
|
|
1688
1720
|
/**
|
|
1689
1721
|
* ID of the app release to build. When not specified, the app's live release is built.
|
|
@@ -1711,6 +1743,21 @@ interface StartMobileBuildOptions {
|
|
|
1711
1743
|
* @maxLength 200
|
|
1712
1744
|
*/
|
|
1713
1745
|
canonicalApp?: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* Android only. Kind of file to build. Default: `APK`.
|
|
1748
|
+
*
|
|
1749
|
+
* `AAB` builds the file to upload to Google Play, under the package name saved for the app in
|
|
1750
|
+
* Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
|
|
1751
|
+
*/
|
|
1752
|
+
androidFormat?: AndroidFormatWithLiterals;
|
|
1753
|
+
/**
|
|
1754
|
+
* The site owner's dashboard authorization: the signed `Authorization` header of this request.
|
|
1755
|
+
* Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
|
|
1756
|
+
*
|
|
1757
|
+
* Used for this call only. It isn't stored or returned.
|
|
1758
|
+
* @maxLength 4096
|
|
1759
|
+
*/
|
|
1760
|
+
ownerAuthorization?: string;
|
|
1714
1761
|
}
|
|
1715
1762
|
/**
|
|
1716
1763
|
* Retrieves the latest app-file builds of a project: for each platform, the last build that was
|
|
@@ -1728,7 +1775,7 @@ interface StartMobileBuildOptions {
|
|
|
1728
1775
|
* @permissionId containers:projects:v1:project:get_latest_mobile_builds
|
|
1729
1776
|
* @fqn wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds
|
|
1730
1777
|
*/
|
|
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>>;
|
|
1778
|
+
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
1779
|
interface GetLatestMobileBuildsOptions {
|
|
1733
1780
|
/**
|
|
1734
1781
|
* Short-lived control credential for the project's app.
|
|
@@ -1740,4 +1787,4 @@ interface GetLatestMobileBuildsOptions {
|
|
|
1740
1787
|
himalayaControlToken?: string;
|
|
1741
1788
|
}
|
|
1742
1789
|
|
|
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 };
|
|
1790
|
+
export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, AndroidFormat, type AndroidFormatWithLiterals, 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 };
|
|
@@ -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,
|
|
@@ -504,6 +505,11 @@ var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
|
504
505
|
Platform2["ANDROID"] = "ANDROID";
|
|
505
506
|
return Platform2;
|
|
506
507
|
})(Platform || {});
|
|
508
|
+
var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
|
|
509
|
+
AndroidFormat2["APK"] = "APK";
|
|
510
|
+
AndroidFormat2["AAB"] = "AAB";
|
|
511
|
+
return AndroidFormat2;
|
|
512
|
+
})(AndroidFormat || {});
|
|
507
513
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
508
514
|
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
509
515
|
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
@@ -818,7 +824,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
818
824
|
releaseId: options?.releaseId,
|
|
819
825
|
appVersion: options?.appVersion,
|
|
820
826
|
himalayaControlToken: options?.himalayaControlToken,
|
|
821
|
-
canonicalApp: options?.canonicalApp
|
|
827
|
+
canonicalApp: options?.canonicalApp,
|
|
828
|
+
androidFormat: options?.androidFormat,
|
|
829
|
+
ownerAuthorization: options?.ownerAuthorization
|
|
822
830
|
});
|
|
823
831
|
const reqOpts = startMobileBuild(payload);
|
|
824
832
|
sideEffects?.onSiteCall?.();
|
|
@@ -837,7 +845,9 @@ async function startMobileBuild2(projectId, platforms, options) {
|
|
|
837
845
|
releaseId: "$[2].releaseId",
|
|
838
846
|
appVersion: "$[2].appVersion",
|
|
839
847
|
himalayaControlToken: "$[2].himalayaControlToken",
|
|
840
|
-
canonicalApp: "$[2].canonicalApp"
|
|
848
|
+
canonicalApp: "$[2].canonicalApp",
|
|
849
|
+
androidFormat: "$[2].androidFormat",
|
|
850
|
+
ownerAuthorization: "$[2].ownerAuthorization"
|
|
841
851
|
},
|
|
842
852
|
singleArgumentUnchanged: false
|
|
843
853
|
},
|
|
@@ -878,6 +888,7 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
878
888
|
}
|
|
879
889
|
// Annotate the CommonJS export names for ESM import in node:
|
|
880
890
|
0 && (module.exports = {
|
|
891
|
+
AndroidFormat,
|
|
881
892
|
FailureKind,
|
|
882
893
|
Platform,
|
|
883
894
|
ProjectStatus,
|