@wix/auto_sdk_containers_projects 1.0.7 → 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 +220 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +849 -5
- package/build/cjs/index.typings.js +201 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +779 -5
- package/build/cjs/meta.js +171 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +37 -3
- package/build/es/index.mjs +214 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +849 -5
- package/build/es/index.typings.mjs +195 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +779 -5
- package/build/es/meta.mjs +165 -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 +849 -5
- package/build/internal/cjs/meta.d.ts +779 -5
- package/build/internal/es/index.d.mts +37 -3
- package/build/internal/es/index.typings.d.mts +849 -5
- package/build/internal/es/meta.d.mts +779 -5
- package/package.json +4 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, GetHimalayaAuthorizationResponse } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, Platform,
|
|
2
|
+
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, GetHimalayaAuthorizationResponse, PlatformWithLiterals, StartMobileBuildOptions, StartMobileBuildResponse, GetLatestMobileBuildsOptions, GetLatestMobileBuildsResponse } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AdditionalDataFilterMismatchType, AdditionalDataFilterMissingKey, AdditionalDataFilterMustHaveKey, AdditionalDataMissingValue, AdditionalFilterCantBeEmpty, ConductByScopeResponse, ConductByScopesResponse, ConductResponse, ConductionException, ConductionResult, ConductionStatus, ConductionStatusStatusOneOf, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DidNotFindEligibleFilter, DomainEvent, DomainEventBodyOneOf, DynamicConfigConductionResult, DynamicConfigStatus, DynamicConfigStatusStatusOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedMobileBuildPlatform, FailedToFetchExperiment, FailedToRunToss, FailureKind, FailureKindWithLiterals, FilterNotImplemented, FilterNotSupported, FilterOperandEmpty, GeneralError, GetAgentConfigRequest, GetAgentConfigResponse, GetAgentExperimentsRequest, GetAgentExperimentsResponse, GetHimalayaAuthorizationRequest, GetLatestMobileBuildsRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, InvalidLibraryConfiguration, IsEnabledFieldNotFound, IsEnabledFieldNotOfTypeBoolean, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, MissingElementInContextForBiProfileError, MissingExperimentId, MissingFilterTarget, MissingPlugins, MissingSeed, MissingSeedKeyType, MissingSeedType, MobileBuild, NoResultForConduction, NotImplemented, Platform, PlatformMobileBuilds, PopulationError, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectIconResponse, RegenerateProjectNameRequest, RegenerateProjectNameResponse, RestoreInfo, RestoreReleaseRequest, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartMobileBuildRequest, StartProjectRequest, StartProjectResponse, Status, StatusWithLiterals, SuccessfulResult, UpdateProject, UpdateProjectRequest, UpdateProjectResponse, V1AdditionalDataFilterMismatchType, V1AdditionalDataFilterMissingKey, V1AdditionalDataFilterMustHaveKey, V1AdditionalDataMissingValue, V1AdditionalFilterCantBeEmpty, V1ConductionException, V1DidNotFindEligibleFilter, V1FailedToFetchExperiment, V1FailedToRunToss, V1FilterNotImplemented, V1FilterNotSupported, V1FilterOperandEmpty, V1GeneralError, V1MissingElementInContextForBiProfileError, V1MissingExperimentId, V1MissingFilterTarget, V1MissingPlugins, V1MissingSeed, V1MissingSeedKeyType, V1MissingSeedType, V1NoResultForConduction, V1Platform, V1PlatformWithLiterals, V1PopulationError, V1SuccessfulResult, Variant, VariantValue, VariantValueValueOneOf, VariantWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
6
6
|
interface GetProjectSignature {
|
|
@@ -88,11 +88,45 @@ interface GetHimalayaAuthorizationSignature {
|
|
|
88
88
|
*/
|
|
89
89
|
(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
|
|
90
90
|
}
|
|
91
|
+
declare function startMobileBuild$1(httpClient: HttpClient): StartMobileBuildSignature;
|
|
92
|
+
interface StartMobileBuildSignature {
|
|
93
|
+
/**
|
|
94
|
+
* Starts building the installable app files of a project, one build for each platform.
|
|
95
|
+
*
|
|
96
|
+
* The builds run in the background and take several minutes. To follow them, call
|
|
97
|
+
* [Get Latest Mobile Builds](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-latest-mobile-builds)
|
|
98
|
+
* with `himalayaControlToken`.
|
|
99
|
+
*
|
|
100
|
+
* For projects whose `platform` is `HIMALAYA_MOBILE`, call
|
|
101
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization)
|
|
102
|
+
* first, and specify the returned `canonicalApp`.
|
|
103
|
+
* @param - ID of the project to build.
|
|
104
|
+
* @param - Platforms to build. One build is started for each platform.
|
|
105
|
+
*/
|
|
106
|
+
(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>>;
|
|
107
|
+
}
|
|
108
|
+
declare function getLatestMobileBuilds$1(httpClient: HttpClient): GetLatestMobileBuildsSignature;
|
|
109
|
+
interface GetLatestMobileBuildsSignature {
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves the latest app-file builds of a project: for each platform, the last build that was
|
|
112
|
+
* started and the last build that succeeded.
|
|
113
|
+
*
|
|
114
|
+
* The caller must be authorized to work on the project's app, as for
|
|
115
|
+
* [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
|
|
116
|
+
*
|
|
117
|
+
* When `himalayaControlToken` is specified, builds that are still in progress are refreshed
|
|
118
|
+
* before the response. Without it, the stored state is returned as is.
|
|
119
|
+
* @param - ID of the project.
|
|
120
|
+
*/
|
|
121
|
+
(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>>;
|
|
122
|
+
}
|
|
91
123
|
|
|
92
124
|
declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
|
|
93
125
|
declare const resumeProject: MaybeContext<BuildRESTFunction<typeof resumeProject$1> & typeof resumeProject$1>;
|
|
94
126
|
declare const saveProjectDesign: MaybeContext<BuildRESTFunction<typeof saveProjectDesign$1> & typeof saveProjectDesign$1>;
|
|
95
127
|
declare const restoreRelease: MaybeContext<BuildRESTFunction<typeof restoreRelease$1> & typeof restoreRelease$1>;
|
|
96
128
|
declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
|
|
129
|
+
declare const startMobileBuild: MaybeContext<BuildRESTFunction<typeof startMobileBuild$1> & typeof startMobileBuild$1>;
|
|
130
|
+
declare const getLatestMobileBuilds: MaybeContext<BuildRESTFunction<typeof getLatestMobileBuilds$1> & typeof getLatestMobileBuilds$1>;
|
|
97
131
|
|
|
98
|
-
export { GetHimalayaAuthorizationResponse, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
|
|
132
|
+
export { GetHimalayaAuthorizationResponse, GetLatestMobileBuildsOptions, GetLatestMobileBuildsResponse, PlatformWithLiterals, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, StartMobileBuildOptions, StartMobileBuildResponse, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
package/build/cjs/index.js
CHANGED
|
@@ -20,13 +20,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
FailureKind: () => FailureKind,
|
|
23
24
|
Platform: () => Platform,
|
|
24
25
|
ProjectStatus: () => ProjectStatus,
|
|
25
26
|
SandboxStatus: () => SandboxStatus,
|
|
27
|
+
Status: () => Status,
|
|
28
|
+
V1Platform: () => V1Platform,
|
|
29
|
+
Variant: () => Variant,
|
|
26
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
27
31
|
createProject: () => createProject4,
|
|
28
32
|
deleteProject: () => deleteProject4,
|
|
29
33
|
getHimalayaAuthorization: () => getHimalayaAuthorization4,
|
|
34
|
+
getLatestMobileBuilds: () => getLatestMobileBuilds4,
|
|
30
35
|
getProject: () => getProject4,
|
|
31
36
|
listProjects: () => listProjects4,
|
|
32
37
|
regenerateProjectIcon: () => regenerateProjectIcon4,
|
|
@@ -34,6 +39,7 @@ __export(index_exports, {
|
|
|
34
39
|
restoreRelease: () => restoreRelease4,
|
|
35
40
|
resumeProject: () => resumeProject4,
|
|
36
41
|
saveProjectDesign: () => saveProjectDesign4,
|
|
42
|
+
startMobileBuild: () => startMobileBuild4,
|
|
37
43
|
updateProject: () => updateProject4
|
|
38
44
|
});
|
|
39
45
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -59,6 +65,22 @@ var TRANSFORM_PATHS_3 = [
|
|
|
59
65
|
{ path: "projects.createdDate" },
|
|
60
66
|
{ path: "projects.updatedDate" }
|
|
61
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
|
+
];
|
|
62
84
|
function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
63
85
|
const domainToMappings = {
|
|
64
86
|
"manage._base_domain_": [
|
|
@@ -366,6 +388,60 @@ function getHimalayaAuthorization(payload) {
|
|
|
366
388
|
}
|
|
367
389
|
return __getHimalayaAuthorization;
|
|
368
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
|
+
}
|
|
369
445
|
|
|
370
446
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
371
447
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -379,12 +455,42 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
|
|
|
379
455
|
SandboxStatus2["CREATING"] = "CREATING";
|
|
380
456
|
return SandboxStatus2;
|
|
381
457
|
})(SandboxStatus || {});
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return
|
|
387
|
-
})(
|
|
458
|
+
var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
|
|
459
|
+
V1Platform2["IOS"] = "IOS";
|
|
460
|
+
V1Platform2["ANDROID"] = "ANDROID";
|
|
461
|
+
V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
|
|
462
|
+
return V1Platform2;
|
|
463
|
+
})(V1Platform || {});
|
|
464
|
+
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
465
|
+
Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
|
|
466
|
+
Variant2["A"] = "A";
|
|
467
|
+
Variant2["B"] = "B";
|
|
468
|
+
Variant2["C"] = "C";
|
|
469
|
+
Variant2["D"] = "D";
|
|
470
|
+
Variant2["E"] = "E";
|
|
471
|
+
Variant2["F"] = "F";
|
|
472
|
+
Variant2["G"] = "G";
|
|
473
|
+
Variant2["H"] = "H";
|
|
474
|
+
Variant2["I"] = "I";
|
|
475
|
+
Variant2["J"] = "J";
|
|
476
|
+
Variant2["K"] = "K";
|
|
477
|
+
Variant2["L"] = "L";
|
|
478
|
+
Variant2["M"] = "M";
|
|
479
|
+
Variant2["N"] = "N";
|
|
480
|
+
Variant2["O"] = "O";
|
|
481
|
+
Variant2["P"] = "P";
|
|
482
|
+
Variant2["Q"] = "Q";
|
|
483
|
+
Variant2["R"] = "R";
|
|
484
|
+
Variant2["S"] = "S";
|
|
485
|
+
Variant2["T"] = "T";
|
|
486
|
+
Variant2["U"] = "U";
|
|
487
|
+
Variant2["V"] = "V";
|
|
488
|
+
Variant2["W"] = "W";
|
|
489
|
+
Variant2["X"] = "X";
|
|
490
|
+
Variant2["Y"] = "Y";
|
|
491
|
+
Variant2["Z"] = "Z";
|
|
492
|
+
return Variant2;
|
|
493
|
+
})(Variant || {});
|
|
388
494
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
389
495
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
390
496
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -393,6 +499,23 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
393
499
|
WebhookIdentityType2["APP"] = "APP";
|
|
394
500
|
return WebhookIdentityType2;
|
|
395
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 || {});
|
|
396
519
|
async function createProject2(project) {
|
|
397
520
|
const { httpClient, sideEffects } = arguments[1];
|
|
398
521
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ project });
|
|
@@ -687,6 +810,72 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
687
810
|
throw transformedError;
|
|
688
811
|
}
|
|
689
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
|
+
}
|
|
690
879
|
|
|
691
880
|
// src/containers-projects-v1-project-projects.public.ts
|
|
692
881
|
function createProject3(httpClient) {
|
|
@@ -773,6 +962,23 @@ function getHimalayaAuthorization3(httpClient) {
|
|
|
773
962
|
{ httpClient }
|
|
774
963
|
);
|
|
775
964
|
}
|
|
965
|
+
function startMobileBuild3(httpClient) {
|
|
966
|
+
return (projectId, platforms, options) => startMobileBuild2(
|
|
967
|
+
projectId,
|
|
968
|
+
platforms,
|
|
969
|
+
options,
|
|
970
|
+
// @ts-ignore
|
|
971
|
+
{ httpClient }
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
function getLatestMobileBuilds3(httpClient) {
|
|
975
|
+
return (projectId, options) => getLatestMobileBuilds2(
|
|
976
|
+
projectId,
|
|
977
|
+
options,
|
|
978
|
+
// @ts-ignore
|
|
979
|
+
{ httpClient }
|
|
980
|
+
);
|
|
981
|
+
}
|
|
776
982
|
|
|
777
983
|
// src/containers-projects-v1-project-projects.context.ts
|
|
778
984
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -787,15 +993,22 @@ var saveProjectDesign4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
|
|
|
787
993
|
var restoreRelease4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(restoreRelease3);
|
|
788
994
|
var listProjects4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listProjects3);
|
|
789
995
|
var getHimalayaAuthorization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getHimalayaAuthorization3);
|
|
996
|
+
var startMobileBuild4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(startMobileBuild3);
|
|
997
|
+
var getLatestMobileBuilds4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestMobileBuilds3);
|
|
790
998
|
// Annotate the CommonJS export names for ESM import in node:
|
|
791
999
|
0 && (module.exports = {
|
|
1000
|
+
FailureKind,
|
|
792
1001
|
Platform,
|
|
793
1002
|
ProjectStatus,
|
|
794
1003
|
SandboxStatus,
|
|
1004
|
+
Status,
|
|
1005
|
+
V1Platform,
|
|
1006
|
+
Variant,
|
|
795
1007
|
WebhookIdentityType,
|
|
796
1008
|
createProject,
|
|
797
1009
|
deleteProject,
|
|
798
1010
|
getHimalayaAuthorization,
|
|
1011
|
+
getLatestMobileBuilds,
|
|
799
1012
|
getProject,
|
|
800
1013
|
listProjects,
|
|
801
1014
|
regenerateProjectIcon,
|
|
@@ -803,6 +1016,7 @@ var getHimalayaAuthorization4 = /* @__PURE__ */ (0, import_rest_modules3.createR
|
|
|
803
1016
|
restoreRelease,
|
|
804
1017
|
resumeProject,
|
|
805
1018
|
saveProjectDesign,
|
|
1019
|
+
startMobileBuild,
|
|
806
1020
|
updateProject
|
|
807
1021
|
});
|
|
808
1022
|
//# sourceMappingURL=index.js.map
|