@wix/auto_sdk_containers_projects 1.0.8 → 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.
@@ -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, 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, FailedToFetchExperiment, FailedToRunToss, FilterNotImplemented, FilterNotSupported, FilterOperandEmpty, GeneralError, GetAgentConfigRequest, GetAgentConfigResponse, GetAgentExperimentsRequest, GetAgentExperimentsResponse, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, InvalidLibraryConfiguration, IsEnabledFieldNotFound, IsEnabledFieldNotOfTypeBoolean, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, MissingElementInContextForBiProfileError, MissingExperimentId, MissingFilterTarget, MissingPlugins, MissingSeed, MissingSeedKeyType, MissingSeedType, NoResultForConduction, NotImplemented, Platform, PlatformWithLiterals, PopulationError, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectIconResponse, RegenerateProjectNameRequest, RegenerateProjectNameResponse, RestoreInfo, RestoreReleaseRequest, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, 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, V1PopulationError, V1SuccessfulResult, Variant, VariantValue, VariantValueValueOneOf, VariantWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
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, AndroidFormat, AndroidFormatWithLiterals, 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` | `builds.${number}.androidFormat` | `builds.${number}.apkDownloadUrl` | `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` | `platforms.${number}.lastAttempt.androidFormat` | `platforms.${number}.lastAttempt.apkDownloadUrl` | `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 };
@@ -20,14 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ AndroidFormat: () => AndroidFormat,
24
+ FailureKind: () => FailureKind,
23
25
  Platform: () => Platform,
24
26
  ProjectStatus: () => ProjectStatus,
25
27
  SandboxStatus: () => SandboxStatus,
28
+ Status: () => Status,
29
+ V1Platform: () => V1Platform,
26
30
  Variant: () => Variant,
27
31
  WebhookIdentityType: () => WebhookIdentityType,
28
32
  createProject: () => createProject4,
29
33
  deleteProject: () => deleteProject4,
30
34
  getHimalayaAuthorization: () => getHimalayaAuthorization4,
35
+ getLatestMobileBuilds: () => getLatestMobileBuilds4,
31
36
  getProject: () => getProject4,
32
37
  listProjects: () => listProjects4,
33
38
  regenerateProjectIcon: () => regenerateProjectIcon4,
@@ -35,6 +40,7 @@ __export(index_exports, {
35
40
  restoreRelease: () => restoreRelease4,
36
41
  resumeProject: () => resumeProject4,
37
42
  saveProjectDesign: () => saveProjectDesign4,
43
+ startMobileBuild: () => startMobileBuild4,
38
44
  updateProject: () => updateProject4
39
45
  });
40
46
  module.exports = __toCommonJS(index_exports);
@@ -60,6 +66,22 @@ var TRANSFORM_PATHS_3 = [
60
66
  { path: "projects.createdDate" },
61
67
  { path: "projects.updatedDate" }
62
68
  ];
69
+ var TRANSFORM_PATHS_4 = [
70
+ { path: "builds.downloadExpiresDate" },
71
+ { path: "builds.createdDate" },
72
+ { path: "builds.builtDate" },
73
+ { path: "builds.updatedDate" }
74
+ ];
75
+ var TRANSFORM_PATHS_5 = [
76
+ { path: "platforms.lastAttempt.downloadExpiresDate" },
77
+ { path: "platforms.lastAttempt.createdDate" },
78
+ { path: "platforms.lastAttempt.builtDate" },
79
+ { path: "platforms.lastAttempt.updatedDate" },
80
+ { path: "platforms.lastSuccessfulBuild.downloadExpiresDate" },
81
+ { path: "platforms.lastSuccessfulBuild.createdDate" },
82
+ { path: "platforms.lastSuccessfulBuild.builtDate" },
83
+ { path: "platforms.lastSuccessfulBuild.updatedDate" }
84
+ ];
63
85
  function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
64
86
  const domainToMappings = {
65
87
  "manage._base_domain_": [
@@ -367,6 +389,60 @@ function getHimalayaAuthorization(payload) {
367
389
  }
368
390
  return __getHimalayaAuthorization;
369
391
  }
392
+ function startMobileBuild(payload) {
393
+ function __startMobileBuild({ host }) {
394
+ const metadata = {
395
+ entityFqdn: "wix.containers.projects.v1.project",
396
+ method: "POST",
397
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.StartMobileBuild",
398
+ packageName: PACKAGE_NAME,
399
+ migrationOptions: {
400
+ optInTransformResponse: true
401
+ },
402
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
403
+ protoPath: "/v1/projects/{projectId}/mobile-builds",
404
+ data: payload,
405
+ host
406
+ }),
407
+ data: payload,
408
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
409
+ {
410
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
411
+ paths: TRANSFORM_PATHS_4
412
+ }
413
+ ])
414
+ };
415
+ return metadata;
416
+ }
417
+ return __startMobileBuild;
418
+ }
419
+ function getLatestMobileBuilds(payload) {
420
+ function __getLatestMobileBuilds({ host }) {
421
+ const metadata = {
422
+ entityFqdn: "wix.containers.projects.v1.project",
423
+ method: "POST",
424
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds",
425
+ packageName: PACKAGE_NAME,
426
+ migrationOptions: {
427
+ optInTransformResponse: true
428
+ },
429
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
430
+ protoPath: "/v1/projects/{projectId}/mobile-builds/latest",
431
+ data: payload,
432
+ host
433
+ }),
434
+ data: payload,
435
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
436
+ {
437
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
438
+ paths: TRANSFORM_PATHS_5
439
+ }
440
+ ])
441
+ };
442
+ return metadata;
443
+ }
444
+ return __getLatestMobileBuilds;
445
+ }
370
446
 
371
447
  // src/containers-projects-v1-project-projects.universal.ts
372
448
  var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
@@ -380,12 +456,12 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
380
456
  SandboxStatus2["CREATING"] = "CREATING";
381
457
  return SandboxStatus2;
382
458
  })(SandboxStatus || {});
383
- var Platform = /* @__PURE__ */ ((Platform2) => {
384
- Platform2["IOS"] = "IOS";
385
- Platform2["ANDROID"] = "ANDROID";
386
- Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
387
- return Platform2;
388
- })(Platform || {});
459
+ var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
460
+ V1Platform2["IOS"] = "IOS";
461
+ V1Platform2["ANDROID"] = "ANDROID";
462
+ V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
463
+ return V1Platform2;
464
+ })(V1Platform || {});
389
465
  var Variant = /* @__PURE__ */ ((Variant2) => {
390
466
  Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
391
467
  Variant2["A"] = "A";
@@ -424,6 +500,28 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
424
500
  WebhookIdentityType2["APP"] = "APP";
425
501
  return WebhookIdentityType2;
426
502
  })(WebhookIdentityType || {});
503
+ var Platform = /* @__PURE__ */ ((Platform2) => {
504
+ Platform2["IOS"] = "IOS";
505
+ Platform2["ANDROID"] = "ANDROID";
506
+ return Platform2;
507
+ })(Platform || {});
508
+ var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
509
+ AndroidFormat2["APK"] = "APK";
510
+ AndroidFormat2["AAB"] = "AAB";
511
+ return AndroidFormat2;
512
+ })(AndroidFormat || {});
513
+ var Status = /* @__PURE__ */ ((Status2) => {
514
+ Status2["IN_PROGRESS"] = "IN_PROGRESS";
515
+ Status2["SUCCEEDED"] = "SUCCEEDED";
516
+ Status2["FAILED"] = "FAILED";
517
+ Status2["CANCELED"] = "CANCELED";
518
+ return Status2;
519
+ })(Status || {});
520
+ var FailureKind = /* @__PURE__ */ ((FailureKind2) => {
521
+ FailureKind2["SIGNING"] = "SIGNING";
522
+ FailureKind2["BUILD"] = "BUILD";
523
+ return FailureKind2;
524
+ })(FailureKind || {});
427
525
  async function createProject2(project) {
428
526
  const { httpClient, sideEffects } = arguments[1];
429
527
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ project });
@@ -718,6 +816,76 @@ async function getHimalayaAuthorization2(projectId) {
718
816
  throw transformedError;
719
817
  }
720
818
  }
819
+ async function startMobileBuild2(projectId, platforms, options) {
820
+ const { httpClient, sideEffects } = arguments[3];
821
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
822
+ projectId,
823
+ platforms,
824
+ releaseId: options?.releaseId,
825
+ appVersion: options?.appVersion,
826
+ himalayaControlToken: options?.himalayaControlToken,
827
+ canonicalApp: options?.canonicalApp,
828
+ androidFormat: options?.androidFormat,
829
+ ownerAuthorization: options?.ownerAuthorization
830
+ });
831
+ const reqOpts = startMobileBuild(payload);
832
+ sideEffects?.onSiteCall?.();
833
+ try {
834
+ const result = await httpClient.request(reqOpts);
835
+ sideEffects?.onSuccess?.(result);
836
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
837
+ } catch (err) {
838
+ const transformedError = (0, import_transform_error.transformError)(
839
+ err,
840
+ {
841
+ spreadPathsToArguments: {},
842
+ explicitPathsToArguments: {
843
+ projectId: "$[0]",
844
+ platforms: "$[1]",
845
+ releaseId: "$[2].releaseId",
846
+ appVersion: "$[2].appVersion",
847
+ himalayaControlToken: "$[2].himalayaControlToken",
848
+ canonicalApp: "$[2].canonicalApp",
849
+ androidFormat: "$[2].androidFormat",
850
+ ownerAuthorization: "$[2].ownerAuthorization"
851
+ },
852
+ singleArgumentUnchanged: false
853
+ },
854
+ ["projectId", "platforms", "options"]
855
+ );
856
+ sideEffects?.onError?.(err);
857
+ throw transformedError;
858
+ }
859
+ }
860
+ async function getLatestMobileBuilds2(projectId, options) {
861
+ const { httpClient, sideEffects } = arguments[2];
862
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
863
+ projectId,
864
+ himalayaControlToken: options?.himalayaControlToken
865
+ });
866
+ const reqOpts = getLatestMobileBuilds(payload);
867
+ sideEffects?.onSiteCall?.();
868
+ try {
869
+ const result = await httpClient.request(reqOpts);
870
+ sideEffects?.onSuccess?.(result);
871
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
872
+ } catch (err) {
873
+ const transformedError = (0, import_transform_error.transformError)(
874
+ err,
875
+ {
876
+ spreadPathsToArguments: {},
877
+ explicitPathsToArguments: {
878
+ projectId: "$[0]",
879
+ himalayaControlToken: "$[1].himalayaControlToken"
880
+ },
881
+ singleArgumentUnchanged: false
882
+ },
883
+ ["projectId", "options"]
884
+ );
885
+ sideEffects?.onError?.(err);
886
+ throw transformedError;
887
+ }
888
+ }
721
889
 
722
890
  // src/containers-projects-v1-project-projects.public.ts
723
891
  function createProject3(httpClient) {
@@ -804,6 +972,23 @@ function getHimalayaAuthorization3(httpClient) {
804
972
  { httpClient }
805
973
  );
806
974
  }
975
+ function startMobileBuild3(httpClient) {
976
+ return (projectId, platforms, options) => startMobileBuild2(
977
+ projectId,
978
+ platforms,
979
+ options,
980
+ // @ts-ignore
981
+ { httpClient }
982
+ );
983
+ }
984
+ function getLatestMobileBuilds3(httpClient) {
985
+ return (projectId, options) => getLatestMobileBuilds2(
986
+ projectId,
987
+ options,
988
+ // @ts-ignore
989
+ { httpClient }
990
+ );
991
+ }
807
992
 
808
993
  // src/containers-projects-v1-project-projects.context.ts
809
994
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
@@ -818,16 +1003,23 @@ var saveProjectDesign4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
818
1003
  var restoreRelease4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(restoreRelease3);
819
1004
  var listProjects4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listProjects3);
820
1005
  var getHimalayaAuthorization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getHimalayaAuthorization3);
1006
+ var startMobileBuild4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(startMobileBuild3);
1007
+ var getLatestMobileBuilds4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestMobileBuilds3);
821
1008
  // Annotate the CommonJS export names for ESM import in node:
822
1009
  0 && (module.exports = {
1010
+ AndroidFormat,
1011
+ FailureKind,
823
1012
  Platform,
824
1013
  ProjectStatus,
825
1014
  SandboxStatus,
1015
+ Status,
1016
+ V1Platform,
826
1017
  Variant,
827
1018
  WebhookIdentityType,
828
1019
  createProject,
829
1020
  deleteProject,
830
1021
  getHimalayaAuthorization,
1022
+ getLatestMobileBuilds,
831
1023
  getProject,
832
1024
  listProjects,
833
1025
  regenerateProjectIcon,
@@ -835,6 +1027,7 @@ var getHimalayaAuthorization4 = /* @__PURE__ */ (0, import_rest_modules3.createR
835
1027
  restoreRelease,
836
1028
  resumeProject,
837
1029
  saveProjectDesign,
1030
+ startMobileBuild,
838
1031
  updateProject
839
1032
  });
840
1033
  //# sourceMappingURL=index.js.map