@wix/auto_sdk_containers_projects 1.0.8 → 1.0.9
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 +37 -3
- package/build/cjs/index.js +188 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +267 -5
- package/build/cjs/index.typings.js +169 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +197 -5
- package/build/cjs/meta.js +139 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +37 -3
- package/build/es/index.mjs +183 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +267 -5
- package/build/es/index.typings.mjs +164 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +197 -5
- package/build/es/meta.mjs +134 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +37 -3
- package/build/internal/cjs/index.typings.d.ts +267 -5
- package/build/internal/cjs/meta.d.ts +197 -5
- package/build/internal/es/index.d.mts +37 -3
- package/build/internal/es/index.typings.d.mts +267 -5
- package/build/internal/es/meta.d.mts +197 -5
- package/package.json +4 -4
|
@@ -72,7 +72,7 @@ interface Project {
|
|
|
72
72
|
* Platform that the project's app targets. Set when the project is created and can't be changed.
|
|
73
73
|
* @immutable
|
|
74
74
|
*/
|
|
75
|
-
platform?:
|
|
75
|
+
platform?: V1PlatformWithLiterals;
|
|
76
76
|
/**
|
|
77
77
|
* URL of the app's icon.
|
|
78
78
|
* @maxLength 2000
|
|
@@ -112,7 +112,7 @@ declare enum SandboxStatus {
|
|
|
112
112
|
}
|
|
113
113
|
/** @enumType */
|
|
114
114
|
type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';
|
|
115
|
-
declare enum
|
|
115
|
+
declare enum V1Platform {
|
|
116
116
|
/** Native iOS app. Used by older projects. */
|
|
117
117
|
IOS = "IOS",
|
|
118
118
|
/** Native Android app. Used by older projects. */
|
|
@@ -124,7 +124,7 @@ declare enum Platform {
|
|
|
124
124
|
HIMALAYA_MOBILE = "HIMALAYA_MOBILE"
|
|
125
125
|
}
|
|
126
126
|
/** @enumType */
|
|
127
|
-
type
|
|
127
|
+
type V1PlatformWithLiterals = V1Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
|
|
128
128
|
/** Details of a request to start a project's remote development environment. */
|
|
129
129
|
interface ProjectStartRequested {
|
|
130
130
|
/**
|
|
@@ -1231,6 +1231,192 @@ interface GetHimalayaAuthorizationResponse {
|
|
|
1231
1231
|
/** Whether the current user can save the project's design. */
|
|
1232
1232
|
saveDesign?: boolean;
|
|
1233
1233
|
}
|
|
1234
|
+
interface StartMobileBuildRequest {
|
|
1235
|
+
/**
|
|
1236
|
+
* ID of the project to build.
|
|
1237
|
+
* @format GUID
|
|
1238
|
+
*/
|
|
1239
|
+
projectId: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* Platforms to build. One build is started for each platform.
|
|
1242
|
+
* @minSize 1
|
|
1243
|
+
* @maxSize 2
|
|
1244
|
+
*/
|
|
1245
|
+
platforms: PlatformWithLiterals[];
|
|
1246
|
+
/**
|
|
1247
|
+
* ID of the app release to build. When not specified, the app's live release is built.
|
|
1248
|
+
* @maxLength 200
|
|
1249
|
+
*/
|
|
1250
|
+
releaseId?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
|
|
1253
|
+
* Get Latest Mobile Builds. It isn't written into the app.
|
|
1254
|
+
* @maxLength 50
|
|
1255
|
+
*/
|
|
1256
|
+
appVersion?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Short-lived control credential for the project's app.
|
|
1259
|
+
*
|
|
1260
|
+
* Used for this call only. It isn't stored or returned.
|
|
1261
|
+
* @maxLength 4096
|
|
1262
|
+
*/
|
|
1263
|
+
himalayaControlToken: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* Canonical slug of the project's app, exactly as returned in `canonicalApp` by
|
|
1266
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
|
|
1267
|
+
*
|
|
1268
|
+
* Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
|
|
1269
|
+
* @maxLength 200
|
|
1270
|
+
*/
|
|
1271
|
+
canonicalApp?: string;
|
|
1272
|
+
}
|
|
1273
|
+
/** Platform that an app-file build targets. */
|
|
1274
|
+
declare enum Platform {
|
|
1275
|
+
/** iOS. The build makes an `.ipa` file and an install page. */
|
|
1276
|
+
IOS = "IOS",
|
|
1277
|
+
/** Android. The build makes an `.apk` file. */
|
|
1278
|
+
ANDROID = "ANDROID"
|
|
1279
|
+
}
|
|
1280
|
+
/** @enumType */
|
|
1281
|
+
type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID';
|
|
1282
|
+
interface StartMobileBuildResponse {
|
|
1283
|
+
/**
|
|
1284
|
+
* Started builds, one for each platform that was accepted.
|
|
1285
|
+
* @maxSize 2
|
|
1286
|
+
*/
|
|
1287
|
+
builds?: MobileBuild[];
|
|
1288
|
+
/**
|
|
1289
|
+
* Platforms whose build couldn't be started. Empty when every platform was started.
|
|
1290
|
+
* @maxSize 2
|
|
1291
|
+
*/
|
|
1292
|
+
failedPlatforms?: FailedMobileBuildPlatform[];
|
|
1293
|
+
}
|
|
1294
|
+
/** One build of a project's installable app files, for one platform. */
|
|
1295
|
+
interface MobileBuild {
|
|
1296
|
+
/**
|
|
1297
|
+
* Build ID.
|
|
1298
|
+
* @maxLength 200
|
|
1299
|
+
*/
|
|
1300
|
+
jobId?: string;
|
|
1301
|
+
/** Platform that the build targets. */
|
|
1302
|
+
platform?: PlatformWithLiterals;
|
|
1303
|
+
/**
|
|
1304
|
+
* ID of the app release that was built.
|
|
1305
|
+
* @maxLength 200
|
|
1306
|
+
*/
|
|
1307
|
+
releaseId?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Version label that the owner gave the build when it was started. Can be empty.
|
|
1310
|
+
* @maxLength 50
|
|
1311
|
+
*/
|
|
1312
|
+
appVersion?: string;
|
|
1313
|
+
/** Build status. */
|
|
1314
|
+
status?: StatusWithLiterals;
|
|
1315
|
+
/** Why the build failed. Returned only when `status` is `FAILED`. */
|
|
1316
|
+
failureKind?: FailureKindWithLiterals;
|
|
1317
|
+
/**
|
|
1318
|
+
* Status reported by the build system, for diagnostics only.
|
|
1319
|
+
* @maxLength 50
|
|
1320
|
+
*/
|
|
1321
|
+
himalayaStatus?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Error text reported by the build system, for diagnostics only. Don't parse it.
|
|
1324
|
+
* @maxLength 2000
|
|
1325
|
+
*/
|
|
1326
|
+
errorMessage?: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* URL of the built file: an `.ipa` file for iOS, or an `.apk` file for Android.
|
|
1329
|
+
* Returned only when `status` is `SUCCEEDED`. Can be empty for iOS.
|
|
1330
|
+
* @format WEB_URL
|
|
1331
|
+
*/
|
|
1332
|
+
downloadUrl?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* iOS only. URL of the page that installs the app on an iPhone.
|
|
1335
|
+
* Returned only when `status` is `SUCCEEDED`. Can be empty.
|
|
1336
|
+
* @format WEB_URL
|
|
1337
|
+
*/
|
|
1338
|
+
installPageUrl?: string;
|
|
1339
|
+
/** Date and time the download links expire, about 7 days after the build. */
|
|
1340
|
+
downloadExpiresDate?: Date | null;
|
|
1341
|
+
/** Whether the download links have expired. To get new links, start a new build. */
|
|
1342
|
+
downloadExpired?: boolean;
|
|
1343
|
+
/** Date and time the build was started. */
|
|
1344
|
+
_createdDate?: Date | null;
|
|
1345
|
+
/** Date and time the build was first seen as `SUCCEEDED`. */
|
|
1346
|
+
builtDate?: Date | null;
|
|
1347
|
+
/** Date and time the build last changed. */
|
|
1348
|
+
_updatedDate?: Date | null;
|
|
1349
|
+
}
|
|
1350
|
+
/** Status of an app-file build. */
|
|
1351
|
+
declare enum Status {
|
|
1352
|
+
/** The build is queued or running. */
|
|
1353
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
1354
|
+
/** The build finished and its files can be downloaded until `downloadExpiresDate`. */
|
|
1355
|
+
SUCCEEDED = "SUCCEEDED",
|
|
1356
|
+
/** The build failed. See `failureKind`. */
|
|
1357
|
+
FAILED = "FAILED",
|
|
1358
|
+
/** The build was canceled. */
|
|
1359
|
+
CANCELED = "CANCELED"
|
|
1360
|
+
}
|
|
1361
|
+
/** @enumType */
|
|
1362
|
+
type StatusWithLiterals = Status | 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELED';
|
|
1363
|
+
/** Why an app-file build failed. */
|
|
1364
|
+
declare enum FailureKind {
|
|
1365
|
+
/** The app couldn't be signed. */
|
|
1366
|
+
SIGNING = "SIGNING",
|
|
1367
|
+
/** The build failed for another reason. */
|
|
1368
|
+
BUILD = "BUILD"
|
|
1369
|
+
}
|
|
1370
|
+
/** @enumType */
|
|
1371
|
+
type FailureKindWithLiterals = FailureKind | 'SIGNING' | 'BUILD';
|
|
1372
|
+
/** A platform whose build couldn't be started. */
|
|
1373
|
+
interface FailedMobileBuildPlatform {
|
|
1374
|
+
/** Platform. */
|
|
1375
|
+
platform?: PlatformWithLiterals;
|
|
1376
|
+
/**
|
|
1377
|
+
* Error code reported by the build system.
|
|
1378
|
+
* @maxLength 200
|
|
1379
|
+
*/
|
|
1380
|
+
errorCode?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Error text reported by the build system, for diagnostics only.
|
|
1383
|
+
* @maxLength 2000
|
|
1384
|
+
*/
|
|
1385
|
+
errorMessage?: string;
|
|
1386
|
+
}
|
|
1387
|
+
interface GetLatestMobileBuildsRequest {
|
|
1388
|
+
/**
|
|
1389
|
+
* ID of the project.
|
|
1390
|
+
* @format GUID
|
|
1391
|
+
*/
|
|
1392
|
+
projectId: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* Short-lived control credential for the project's app.
|
|
1395
|
+
*
|
|
1396
|
+
* When specified, builds in progress are refreshed before the response. Used for this call only.
|
|
1397
|
+
* It isn't stored or returned.
|
|
1398
|
+
* @maxLength 4096
|
|
1399
|
+
*/
|
|
1400
|
+
himalayaControlToken?: string;
|
|
1401
|
+
}
|
|
1402
|
+
interface GetLatestMobileBuildsResponse {
|
|
1403
|
+
/**
|
|
1404
|
+
* Latest builds for each platform: iOS first, then Android.
|
|
1405
|
+
* @maxSize 2
|
|
1406
|
+
*/
|
|
1407
|
+
platforms?: PlatformMobileBuilds[];
|
|
1408
|
+
/** Whether refreshing builds in progress failed. When `true`, the stored state is returned. */
|
|
1409
|
+
refreshFailed?: boolean;
|
|
1410
|
+
}
|
|
1411
|
+
/** The latest app-file builds of a project for one platform. */
|
|
1412
|
+
interface PlatformMobileBuilds {
|
|
1413
|
+
/** Platform. */
|
|
1414
|
+
platform?: PlatformWithLiterals;
|
|
1415
|
+
/** The last build that was started, in any status. Not returned when no build was started. */
|
|
1416
|
+
lastAttempt?: MobileBuild;
|
|
1417
|
+
/** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
|
|
1418
|
+
lastSuccessfulBuild?: MobileBuild;
|
|
1419
|
+
}
|
|
1234
1420
|
/**
|
|
1235
1421
|
* Retrieves a project.
|
|
1236
1422
|
* @param projectId - ID of the project to retrieve.
|
|
@@ -1310,7 +1496,7 @@ interface UpdateProject {
|
|
|
1310
1496
|
* Platform that the project's app targets. Set when the project is created and can't be changed.
|
|
1311
1497
|
* @immutable
|
|
1312
1498
|
*/
|
|
1313
|
-
platform?:
|
|
1499
|
+
platform?: V1PlatformWithLiterals;
|
|
1314
1500
|
/**
|
|
1315
1501
|
* URL of the app's icon.
|
|
1316
1502
|
* @maxLength 2000
|
|
@@ -1477,5 +1663,81 @@ interface ListProjectsOptions {
|
|
|
1477
1663
|
* @fqn wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization
|
|
1478
1664
|
*/
|
|
1479
1665
|
declare function getHimalayaAuthorization(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Starts building the installable app files of a project, one build for each platform.
|
|
1668
|
+
*
|
|
1669
|
+
* The builds run in the background and take several minutes. To follow them, call
|
|
1670
|
+
* [Get Latest Mobile Builds](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-latest-mobile-builds)
|
|
1671
|
+
* with `himalayaControlToken`.
|
|
1672
|
+
*
|
|
1673
|
+
* For projects whose `platform` is `HIMALAYA_MOBILE`, call
|
|
1674
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization)
|
|
1675
|
+
* first, and specify the returned `canonicalApp`.
|
|
1676
|
+
* @param projectId - ID of the project to build.
|
|
1677
|
+
* @param platforms - Platforms to build. One build is started for each platform.
|
|
1678
|
+
* @public
|
|
1679
|
+
* @documentationMaturity preview
|
|
1680
|
+
* @requiredField options.himalayaControlToken
|
|
1681
|
+
* @requiredField platforms
|
|
1682
|
+
* @requiredField projectId
|
|
1683
|
+
* @permissionId containers:projects:v1:project:start_mobile_build
|
|
1684
|
+
* @fqn wix.containers.projects.v1.ContainersProjects.StartMobileBuild
|
|
1685
|
+
*/
|
|
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>>;
|
|
1687
|
+
interface StartMobileBuildOptions {
|
|
1688
|
+
/**
|
|
1689
|
+
* ID of the app release to build. When not specified, the app's live release is built.
|
|
1690
|
+
* @maxLength 200
|
|
1691
|
+
*/
|
|
1692
|
+
releaseId?: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
|
|
1695
|
+
* Get Latest Mobile Builds. It isn't written into the app.
|
|
1696
|
+
* @maxLength 50
|
|
1697
|
+
*/
|
|
1698
|
+
appVersion?: string;
|
|
1699
|
+
/**
|
|
1700
|
+
* Short-lived control credential for the project's app.
|
|
1701
|
+
*
|
|
1702
|
+
* Used for this call only. It isn't stored or returned.
|
|
1703
|
+
* @maxLength 4096
|
|
1704
|
+
*/
|
|
1705
|
+
himalayaControlToken: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Canonical slug of the project's app, exactly as returned in `canonicalApp` by
|
|
1708
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
|
|
1709
|
+
*
|
|
1710
|
+
* Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
|
|
1711
|
+
* @maxLength 200
|
|
1712
|
+
*/
|
|
1713
|
+
canonicalApp?: string;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Retrieves the latest app-file builds of a project: for each platform, the last build that was
|
|
1717
|
+
* started and the last build that succeeded.
|
|
1718
|
+
*
|
|
1719
|
+
* The caller must be authorized to work on the project's app, as for
|
|
1720
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
|
|
1721
|
+
*
|
|
1722
|
+
* When `himalayaControlToken` is specified, builds that are still in progress are refreshed
|
|
1723
|
+
* before the response. Without it, the stored state is returned as is.
|
|
1724
|
+
* @param projectId - ID of the project.
|
|
1725
|
+
* @public
|
|
1726
|
+
* @documentationMaturity preview
|
|
1727
|
+
* @requiredField projectId
|
|
1728
|
+
* @permissionId containers:projects:v1:project:get_latest_mobile_builds
|
|
1729
|
+
* @fqn wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds
|
|
1730
|
+
*/
|
|
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>>;
|
|
1732
|
+
interface GetLatestMobileBuildsOptions {
|
|
1733
|
+
/**
|
|
1734
|
+
* Short-lived control credential for the project's app.
|
|
1735
|
+
*
|
|
1736
|
+
* When specified, builds in progress are refreshed before the response. Used for this call only.
|
|
1737
|
+
* It isn't stored or returned.
|
|
1738
|
+
* @maxLength 4096
|
|
1739
|
+
*/
|
|
1740
|
+
himalayaControlToken?: string;
|
|
1741
|
+
}
|
|
1480
1742
|
|
|
1481
|
-
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 FailedToFetchExperiment, type FailedToRunToss, type FilterNotImplemented, type FilterNotSupported, type FilterOperandEmpty, type GeneralError, type GetAgentConfigRequest, type GetAgentConfigResponse, type GetAgentExperimentsRequest, type GetAgentExperimentsResponse, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, 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 NoResultForConduction, type NotImplemented, Platform, 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 StartProjectRequest, type StartProjectResponse, 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, type V1PopulationError, type V1SuccessfulResult, Variant, type VariantValue, type VariantValueValueOneOf, type VariantWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
|
|
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 };
|
|
@@ -20,14 +20,18 @@ 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
|
+
FailureKind: () => FailureKind,
|
|
23
24
|
Platform: () => Platform,
|
|
24
25
|
ProjectStatus: () => ProjectStatus,
|
|
25
26
|
SandboxStatus: () => SandboxStatus,
|
|
27
|
+
Status: () => Status,
|
|
28
|
+
V1Platform: () => V1Platform,
|
|
26
29
|
Variant: () => Variant,
|
|
27
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
28
31
|
createProject: () => createProject2,
|
|
29
32
|
deleteProject: () => deleteProject2,
|
|
30
33
|
getHimalayaAuthorization: () => getHimalayaAuthorization2,
|
|
34
|
+
getLatestMobileBuilds: () => getLatestMobileBuilds2,
|
|
31
35
|
getProject: () => getProject2,
|
|
32
36
|
listProjects: () => listProjects2,
|
|
33
37
|
regenerateProjectIcon: () => regenerateProjectIcon2,
|
|
@@ -35,6 +39,7 @@ __export(index_typings_exports, {
|
|
|
35
39
|
restoreRelease: () => restoreRelease2,
|
|
36
40
|
resumeProject: () => resumeProject2,
|
|
37
41
|
saveProjectDesign: () => saveProjectDesign2,
|
|
42
|
+
startMobileBuild: () => startMobileBuild2,
|
|
38
43
|
updateProject: () => updateProject2
|
|
39
44
|
});
|
|
40
45
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -60,6 +65,22 @@ var TRANSFORM_PATHS_3 = [
|
|
|
60
65
|
{ path: "projects.createdDate" },
|
|
61
66
|
{ path: "projects.updatedDate" }
|
|
62
67
|
];
|
|
68
|
+
var TRANSFORM_PATHS_4 = [
|
|
69
|
+
{ path: "builds.downloadExpiresDate" },
|
|
70
|
+
{ path: "builds.createdDate" },
|
|
71
|
+
{ path: "builds.builtDate" },
|
|
72
|
+
{ path: "builds.updatedDate" }
|
|
73
|
+
];
|
|
74
|
+
var TRANSFORM_PATHS_5 = [
|
|
75
|
+
{ path: "platforms.lastAttempt.downloadExpiresDate" },
|
|
76
|
+
{ path: "platforms.lastAttempt.createdDate" },
|
|
77
|
+
{ path: "platforms.lastAttempt.builtDate" },
|
|
78
|
+
{ path: "platforms.lastAttempt.updatedDate" },
|
|
79
|
+
{ path: "platforms.lastSuccessfulBuild.downloadExpiresDate" },
|
|
80
|
+
{ path: "platforms.lastSuccessfulBuild.createdDate" },
|
|
81
|
+
{ path: "platforms.lastSuccessfulBuild.builtDate" },
|
|
82
|
+
{ path: "platforms.lastSuccessfulBuild.updatedDate" }
|
|
83
|
+
];
|
|
63
84
|
function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
64
85
|
const domainToMappings = {
|
|
65
86
|
"manage._base_domain_": [
|
|
@@ -367,6 +388,60 @@ function getHimalayaAuthorization(payload) {
|
|
|
367
388
|
}
|
|
368
389
|
return __getHimalayaAuthorization;
|
|
369
390
|
}
|
|
391
|
+
function startMobileBuild(payload) {
|
|
392
|
+
function __startMobileBuild({ host }) {
|
|
393
|
+
const metadata = {
|
|
394
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
395
|
+
method: "POST",
|
|
396
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.StartMobileBuild",
|
|
397
|
+
packageName: PACKAGE_NAME,
|
|
398
|
+
migrationOptions: {
|
|
399
|
+
optInTransformResponse: true
|
|
400
|
+
},
|
|
401
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
402
|
+
protoPath: "/v1/projects/{projectId}/mobile-builds",
|
|
403
|
+
data: payload,
|
|
404
|
+
host
|
|
405
|
+
}),
|
|
406
|
+
data: payload,
|
|
407
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
408
|
+
{
|
|
409
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
410
|
+
paths: TRANSFORM_PATHS_4
|
|
411
|
+
}
|
|
412
|
+
])
|
|
413
|
+
};
|
|
414
|
+
return metadata;
|
|
415
|
+
}
|
|
416
|
+
return __startMobileBuild;
|
|
417
|
+
}
|
|
418
|
+
function getLatestMobileBuilds(payload) {
|
|
419
|
+
function __getLatestMobileBuilds({ host }) {
|
|
420
|
+
const metadata = {
|
|
421
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
422
|
+
method: "POST",
|
|
423
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds",
|
|
424
|
+
packageName: PACKAGE_NAME,
|
|
425
|
+
migrationOptions: {
|
|
426
|
+
optInTransformResponse: true
|
|
427
|
+
},
|
|
428
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
429
|
+
protoPath: "/v1/projects/{projectId}/mobile-builds/latest",
|
|
430
|
+
data: payload,
|
|
431
|
+
host
|
|
432
|
+
}),
|
|
433
|
+
data: payload,
|
|
434
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
435
|
+
{
|
|
436
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
437
|
+
paths: TRANSFORM_PATHS_5
|
|
438
|
+
}
|
|
439
|
+
])
|
|
440
|
+
};
|
|
441
|
+
return metadata;
|
|
442
|
+
}
|
|
443
|
+
return __getLatestMobileBuilds;
|
|
444
|
+
}
|
|
370
445
|
|
|
371
446
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
372
447
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -380,12 +455,12 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
|
|
|
380
455
|
SandboxStatus2["CREATING"] = "CREATING";
|
|
381
456
|
return SandboxStatus2;
|
|
382
457
|
})(SandboxStatus || {});
|
|
383
|
-
var
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return
|
|
388
|
-
})(
|
|
458
|
+
var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
|
|
459
|
+
V1Platform2["IOS"] = "IOS";
|
|
460
|
+
V1Platform2["ANDROID"] = "ANDROID";
|
|
461
|
+
V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
|
|
462
|
+
return V1Platform2;
|
|
463
|
+
})(V1Platform || {});
|
|
389
464
|
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
390
465
|
Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
|
|
391
466
|
Variant2["A"] = "A";
|
|
@@ -424,6 +499,23 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
424
499
|
WebhookIdentityType2["APP"] = "APP";
|
|
425
500
|
return WebhookIdentityType2;
|
|
426
501
|
})(WebhookIdentityType || {});
|
|
502
|
+
var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
503
|
+
Platform2["IOS"] = "IOS";
|
|
504
|
+
Platform2["ANDROID"] = "ANDROID";
|
|
505
|
+
return Platform2;
|
|
506
|
+
})(Platform || {});
|
|
507
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
508
|
+
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
509
|
+
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
510
|
+
Status2["FAILED"] = "FAILED";
|
|
511
|
+
Status2["CANCELED"] = "CANCELED";
|
|
512
|
+
return Status2;
|
|
513
|
+
})(Status || {});
|
|
514
|
+
var FailureKind = /* @__PURE__ */ ((FailureKind2) => {
|
|
515
|
+
FailureKind2["SIGNING"] = "SIGNING";
|
|
516
|
+
FailureKind2["BUILD"] = "BUILD";
|
|
517
|
+
return FailureKind2;
|
|
518
|
+
})(FailureKind || {});
|
|
427
519
|
async function createProject2(project) {
|
|
428
520
|
const { httpClient, sideEffects } = arguments[1];
|
|
429
521
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ project });
|
|
@@ -718,16 +810,86 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
718
810
|
throw transformedError;
|
|
719
811
|
}
|
|
720
812
|
}
|
|
813
|
+
async function startMobileBuild2(projectId, platforms, options) {
|
|
814
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
815
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
816
|
+
projectId,
|
|
817
|
+
platforms,
|
|
818
|
+
releaseId: options?.releaseId,
|
|
819
|
+
appVersion: options?.appVersion,
|
|
820
|
+
himalayaControlToken: options?.himalayaControlToken,
|
|
821
|
+
canonicalApp: options?.canonicalApp
|
|
822
|
+
});
|
|
823
|
+
const reqOpts = startMobileBuild(payload);
|
|
824
|
+
sideEffects?.onSiteCall?.();
|
|
825
|
+
try {
|
|
826
|
+
const result = await httpClient.request(reqOpts);
|
|
827
|
+
sideEffects?.onSuccess?.(result);
|
|
828
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
829
|
+
} catch (err) {
|
|
830
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
831
|
+
err,
|
|
832
|
+
{
|
|
833
|
+
spreadPathsToArguments: {},
|
|
834
|
+
explicitPathsToArguments: {
|
|
835
|
+
projectId: "$[0]",
|
|
836
|
+
platforms: "$[1]",
|
|
837
|
+
releaseId: "$[2].releaseId",
|
|
838
|
+
appVersion: "$[2].appVersion",
|
|
839
|
+
himalayaControlToken: "$[2].himalayaControlToken",
|
|
840
|
+
canonicalApp: "$[2].canonicalApp"
|
|
841
|
+
},
|
|
842
|
+
singleArgumentUnchanged: false
|
|
843
|
+
},
|
|
844
|
+
["projectId", "platforms", "options"]
|
|
845
|
+
);
|
|
846
|
+
sideEffects?.onError?.(err);
|
|
847
|
+
throw transformedError;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
async function getLatestMobileBuilds2(projectId, options) {
|
|
851
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
852
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
853
|
+
projectId,
|
|
854
|
+
himalayaControlToken: options?.himalayaControlToken
|
|
855
|
+
});
|
|
856
|
+
const reqOpts = getLatestMobileBuilds(payload);
|
|
857
|
+
sideEffects?.onSiteCall?.();
|
|
858
|
+
try {
|
|
859
|
+
const result = await httpClient.request(reqOpts);
|
|
860
|
+
sideEffects?.onSuccess?.(result);
|
|
861
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
862
|
+
} catch (err) {
|
|
863
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
864
|
+
err,
|
|
865
|
+
{
|
|
866
|
+
spreadPathsToArguments: {},
|
|
867
|
+
explicitPathsToArguments: {
|
|
868
|
+
projectId: "$[0]",
|
|
869
|
+
himalayaControlToken: "$[1].himalayaControlToken"
|
|
870
|
+
},
|
|
871
|
+
singleArgumentUnchanged: false
|
|
872
|
+
},
|
|
873
|
+
["projectId", "options"]
|
|
874
|
+
);
|
|
875
|
+
sideEffects?.onError?.(err);
|
|
876
|
+
throw transformedError;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
721
879
|
// Annotate the CommonJS export names for ESM import in node:
|
|
722
880
|
0 && (module.exports = {
|
|
881
|
+
FailureKind,
|
|
723
882
|
Platform,
|
|
724
883
|
ProjectStatus,
|
|
725
884
|
SandboxStatus,
|
|
885
|
+
Status,
|
|
886
|
+
V1Platform,
|
|
726
887
|
Variant,
|
|
727
888
|
WebhookIdentityType,
|
|
728
889
|
createProject,
|
|
729
890
|
deleteProject,
|
|
730
891
|
getHimalayaAuthorization,
|
|
892
|
+
getLatestMobileBuilds,
|
|
731
893
|
getProject,
|
|
732
894
|
listProjects,
|
|
733
895
|
regenerateProjectIcon,
|
|
@@ -735,6 +897,7 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
735
897
|
restoreRelease,
|
|
736
898
|
resumeProject,
|
|
737
899
|
saveProjectDesign,
|
|
900
|
+
startMobileBuild,
|
|
738
901
|
updateProject
|
|
739
902
|
});
|
|
740
903
|
//# sourceMappingURL=index.typings.js.map
|