@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
package/build/es/index.mjs
CHANGED
|
@@ -22,6 +22,22 @@ var TRANSFORM_PATHS_3 = [
|
|
|
22
22
|
{ path: "projects.createdDate" },
|
|
23
23
|
{ path: "projects.updatedDate" }
|
|
24
24
|
];
|
|
25
|
+
var TRANSFORM_PATHS_4 = [
|
|
26
|
+
{ path: "builds.downloadExpiresDate" },
|
|
27
|
+
{ path: "builds.createdDate" },
|
|
28
|
+
{ path: "builds.builtDate" },
|
|
29
|
+
{ path: "builds.updatedDate" }
|
|
30
|
+
];
|
|
31
|
+
var TRANSFORM_PATHS_5 = [
|
|
32
|
+
{ path: "platforms.lastAttempt.downloadExpiresDate" },
|
|
33
|
+
{ path: "platforms.lastAttempt.createdDate" },
|
|
34
|
+
{ path: "platforms.lastAttempt.builtDate" },
|
|
35
|
+
{ path: "platforms.lastAttempt.updatedDate" },
|
|
36
|
+
{ path: "platforms.lastSuccessfulBuild.downloadExpiresDate" },
|
|
37
|
+
{ path: "platforms.lastSuccessfulBuild.createdDate" },
|
|
38
|
+
{ path: "platforms.lastSuccessfulBuild.builtDate" },
|
|
39
|
+
{ path: "platforms.lastSuccessfulBuild.updatedDate" }
|
|
40
|
+
];
|
|
25
41
|
function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
26
42
|
const domainToMappings = {
|
|
27
43
|
"manage._base_domain_": [
|
|
@@ -329,6 +345,60 @@ function getHimalayaAuthorization(payload) {
|
|
|
329
345
|
}
|
|
330
346
|
return __getHimalayaAuthorization;
|
|
331
347
|
}
|
|
348
|
+
function startMobileBuild(payload) {
|
|
349
|
+
function __startMobileBuild({ host }) {
|
|
350
|
+
const metadata = {
|
|
351
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
352
|
+
method: "POST",
|
|
353
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.StartMobileBuild",
|
|
354
|
+
packageName: PACKAGE_NAME,
|
|
355
|
+
migrationOptions: {
|
|
356
|
+
optInTransformResponse: true
|
|
357
|
+
},
|
|
358
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
359
|
+
protoPath: "/v1/projects/{projectId}/mobile-builds",
|
|
360
|
+
data: payload,
|
|
361
|
+
host
|
|
362
|
+
}),
|
|
363
|
+
data: payload,
|
|
364
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
365
|
+
{
|
|
366
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
367
|
+
paths: TRANSFORM_PATHS_4
|
|
368
|
+
}
|
|
369
|
+
])
|
|
370
|
+
};
|
|
371
|
+
return metadata;
|
|
372
|
+
}
|
|
373
|
+
return __startMobileBuild;
|
|
374
|
+
}
|
|
375
|
+
function getLatestMobileBuilds(payload) {
|
|
376
|
+
function __getLatestMobileBuilds({ host }) {
|
|
377
|
+
const metadata = {
|
|
378
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
379
|
+
method: "POST",
|
|
380
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds",
|
|
381
|
+
packageName: PACKAGE_NAME,
|
|
382
|
+
migrationOptions: {
|
|
383
|
+
optInTransformResponse: true
|
|
384
|
+
},
|
|
385
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
386
|
+
protoPath: "/v1/projects/{projectId}/mobile-builds/latest",
|
|
387
|
+
data: payload,
|
|
388
|
+
host
|
|
389
|
+
}),
|
|
390
|
+
data: payload,
|
|
391
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
392
|
+
{
|
|
393
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
394
|
+
paths: TRANSFORM_PATHS_5
|
|
395
|
+
}
|
|
396
|
+
])
|
|
397
|
+
};
|
|
398
|
+
return metadata;
|
|
399
|
+
}
|
|
400
|
+
return __getLatestMobileBuilds;
|
|
401
|
+
}
|
|
332
402
|
|
|
333
403
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
334
404
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -342,12 +412,12 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
|
|
|
342
412
|
SandboxStatus2["CREATING"] = "CREATING";
|
|
343
413
|
return SandboxStatus2;
|
|
344
414
|
})(SandboxStatus || {});
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return
|
|
350
|
-
})(
|
|
415
|
+
var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
|
|
416
|
+
V1Platform2["IOS"] = "IOS";
|
|
417
|
+
V1Platform2["ANDROID"] = "ANDROID";
|
|
418
|
+
V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
|
|
419
|
+
return V1Platform2;
|
|
420
|
+
})(V1Platform || {});
|
|
351
421
|
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
352
422
|
Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
|
|
353
423
|
Variant2["A"] = "A";
|
|
@@ -386,6 +456,23 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
386
456
|
WebhookIdentityType2["APP"] = "APP";
|
|
387
457
|
return WebhookIdentityType2;
|
|
388
458
|
})(WebhookIdentityType || {});
|
|
459
|
+
var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
460
|
+
Platform2["IOS"] = "IOS";
|
|
461
|
+
Platform2["ANDROID"] = "ANDROID";
|
|
462
|
+
return Platform2;
|
|
463
|
+
})(Platform || {});
|
|
464
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
465
|
+
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
466
|
+
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
467
|
+
Status2["FAILED"] = "FAILED";
|
|
468
|
+
Status2["CANCELED"] = "CANCELED";
|
|
469
|
+
return Status2;
|
|
470
|
+
})(Status || {});
|
|
471
|
+
var FailureKind = /* @__PURE__ */ ((FailureKind2) => {
|
|
472
|
+
FailureKind2["SIGNING"] = "SIGNING";
|
|
473
|
+
FailureKind2["BUILD"] = "BUILD";
|
|
474
|
+
return FailureKind2;
|
|
475
|
+
})(FailureKind || {});
|
|
389
476
|
async function createProject2(project) {
|
|
390
477
|
const { httpClient, sideEffects } = arguments[1];
|
|
391
478
|
const payload = renameKeysFromSDKRequestToRESTRequest({ project });
|
|
@@ -680,6 +767,72 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
680
767
|
throw transformedError;
|
|
681
768
|
}
|
|
682
769
|
}
|
|
770
|
+
async function startMobileBuild2(projectId, platforms, options) {
|
|
771
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
772
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
773
|
+
projectId,
|
|
774
|
+
platforms,
|
|
775
|
+
releaseId: options?.releaseId,
|
|
776
|
+
appVersion: options?.appVersion,
|
|
777
|
+
himalayaControlToken: options?.himalayaControlToken,
|
|
778
|
+
canonicalApp: options?.canonicalApp
|
|
779
|
+
});
|
|
780
|
+
const reqOpts = startMobileBuild(payload);
|
|
781
|
+
sideEffects?.onSiteCall?.();
|
|
782
|
+
try {
|
|
783
|
+
const result = await httpClient.request(reqOpts);
|
|
784
|
+
sideEffects?.onSuccess?.(result);
|
|
785
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
786
|
+
} catch (err) {
|
|
787
|
+
const transformedError = sdkTransformError(
|
|
788
|
+
err,
|
|
789
|
+
{
|
|
790
|
+
spreadPathsToArguments: {},
|
|
791
|
+
explicitPathsToArguments: {
|
|
792
|
+
projectId: "$[0]",
|
|
793
|
+
platforms: "$[1]",
|
|
794
|
+
releaseId: "$[2].releaseId",
|
|
795
|
+
appVersion: "$[2].appVersion",
|
|
796
|
+
himalayaControlToken: "$[2].himalayaControlToken",
|
|
797
|
+
canonicalApp: "$[2].canonicalApp"
|
|
798
|
+
},
|
|
799
|
+
singleArgumentUnchanged: false
|
|
800
|
+
},
|
|
801
|
+
["projectId", "platforms", "options"]
|
|
802
|
+
);
|
|
803
|
+
sideEffects?.onError?.(err);
|
|
804
|
+
throw transformedError;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
async function getLatestMobileBuilds2(projectId, options) {
|
|
808
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
809
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
810
|
+
projectId,
|
|
811
|
+
himalayaControlToken: options?.himalayaControlToken
|
|
812
|
+
});
|
|
813
|
+
const reqOpts = getLatestMobileBuilds(payload);
|
|
814
|
+
sideEffects?.onSiteCall?.();
|
|
815
|
+
try {
|
|
816
|
+
const result = await httpClient.request(reqOpts);
|
|
817
|
+
sideEffects?.onSuccess?.(result);
|
|
818
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
819
|
+
} catch (err) {
|
|
820
|
+
const transformedError = sdkTransformError(
|
|
821
|
+
err,
|
|
822
|
+
{
|
|
823
|
+
spreadPathsToArguments: {},
|
|
824
|
+
explicitPathsToArguments: {
|
|
825
|
+
projectId: "$[0]",
|
|
826
|
+
himalayaControlToken: "$[1].himalayaControlToken"
|
|
827
|
+
},
|
|
828
|
+
singleArgumentUnchanged: false
|
|
829
|
+
},
|
|
830
|
+
["projectId", "options"]
|
|
831
|
+
);
|
|
832
|
+
sideEffects?.onError?.(err);
|
|
833
|
+
throw transformedError;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
683
836
|
|
|
684
837
|
// src/containers-projects-v1-project-projects.public.ts
|
|
685
838
|
function createProject3(httpClient) {
|
|
@@ -766,6 +919,23 @@ function getHimalayaAuthorization3(httpClient) {
|
|
|
766
919
|
{ httpClient }
|
|
767
920
|
);
|
|
768
921
|
}
|
|
922
|
+
function startMobileBuild3(httpClient) {
|
|
923
|
+
return (projectId, platforms, options) => startMobileBuild2(
|
|
924
|
+
projectId,
|
|
925
|
+
platforms,
|
|
926
|
+
options,
|
|
927
|
+
// @ts-ignore
|
|
928
|
+
{ httpClient }
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
function getLatestMobileBuilds3(httpClient) {
|
|
932
|
+
return (projectId, options) => getLatestMobileBuilds2(
|
|
933
|
+
projectId,
|
|
934
|
+
options,
|
|
935
|
+
// @ts-ignore
|
|
936
|
+
{ httpClient }
|
|
937
|
+
);
|
|
938
|
+
}
|
|
769
939
|
|
|
770
940
|
// src/containers-projects-v1-project-projects.context.ts
|
|
771
941
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -780,15 +950,21 @@ var saveProjectDesign4 = /* @__PURE__ */ createRESTModule(saveProjectDesign3);
|
|
|
780
950
|
var restoreRelease4 = /* @__PURE__ */ createRESTModule(restoreRelease3);
|
|
781
951
|
var listProjects4 = /* @__PURE__ */ createRESTModule(listProjects3);
|
|
782
952
|
var getHimalayaAuthorization4 = /* @__PURE__ */ createRESTModule(getHimalayaAuthorization3);
|
|
953
|
+
var startMobileBuild4 = /* @__PURE__ */ createRESTModule(startMobileBuild3);
|
|
954
|
+
var getLatestMobileBuilds4 = /* @__PURE__ */ createRESTModule(getLatestMobileBuilds3);
|
|
783
955
|
export {
|
|
956
|
+
FailureKind,
|
|
784
957
|
Platform,
|
|
785
958
|
ProjectStatus,
|
|
786
959
|
SandboxStatus,
|
|
960
|
+
Status,
|
|
961
|
+
V1Platform,
|
|
787
962
|
Variant,
|
|
788
963
|
WebhookIdentityType,
|
|
789
964
|
createProject4 as createProject,
|
|
790
965
|
deleteProject4 as deleteProject,
|
|
791
966
|
getHimalayaAuthorization4 as getHimalayaAuthorization,
|
|
967
|
+
getLatestMobileBuilds4 as getLatestMobileBuilds,
|
|
792
968
|
getProject4 as getProject,
|
|
793
969
|
listProjects4 as listProjects,
|
|
794
970
|
regenerateProjectIcon4 as regenerateProjectIcon,
|
|
@@ -796,6 +972,7 @@ export {
|
|
|
796
972
|
restoreRelease4 as restoreRelease,
|
|
797
973
|
resumeProject4 as resumeProject,
|
|
798
974
|
saveProjectDesign4 as saveProjectDesign,
|
|
975
|
+
startMobileBuild4 as startMobileBuild,
|
|
799
976
|
updateProject4 as updateProject
|
|
800
977
|
};
|
|
801
978
|
//# sourceMappingURL=index.mjs.map
|