@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/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,42 @@ 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 || {});
|
|
421
|
+
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
422
|
+
Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
|
|
423
|
+
Variant2["A"] = "A";
|
|
424
|
+
Variant2["B"] = "B";
|
|
425
|
+
Variant2["C"] = "C";
|
|
426
|
+
Variant2["D"] = "D";
|
|
427
|
+
Variant2["E"] = "E";
|
|
428
|
+
Variant2["F"] = "F";
|
|
429
|
+
Variant2["G"] = "G";
|
|
430
|
+
Variant2["H"] = "H";
|
|
431
|
+
Variant2["I"] = "I";
|
|
432
|
+
Variant2["J"] = "J";
|
|
433
|
+
Variant2["K"] = "K";
|
|
434
|
+
Variant2["L"] = "L";
|
|
435
|
+
Variant2["M"] = "M";
|
|
436
|
+
Variant2["N"] = "N";
|
|
437
|
+
Variant2["O"] = "O";
|
|
438
|
+
Variant2["P"] = "P";
|
|
439
|
+
Variant2["Q"] = "Q";
|
|
440
|
+
Variant2["R"] = "R";
|
|
441
|
+
Variant2["S"] = "S";
|
|
442
|
+
Variant2["T"] = "T";
|
|
443
|
+
Variant2["U"] = "U";
|
|
444
|
+
Variant2["V"] = "V";
|
|
445
|
+
Variant2["W"] = "W";
|
|
446
|
+
Variant2["X"] = "X";
|
|
447
|
+
Variant2["Y"] = "Y";
|
|
448
|
+
Variant2["Z"] = "Z";
|
|
449
|
+
return Variant2;
|
|
450
|
+
})(Variant || {});
|
|
351
451
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
352
452
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
353
453
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -356,6 +456,23 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
356
456
|
WebhookIdentityType2["APP"] = "APP";
|
|
357
457
|
return WebhookIdentityType2;
|
|
358
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 || {});
|
|
359
476
|
async function createProject2(project) {
|
|
360
477
|
const { httpClient, sideEffects } = arguments[1];
|
|
361
478
|
const payload = renameKeysFromSDKRequestToRESTRequest({ project });
|
|
@@ -650,6 +767,72 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
650
767
|
throw transformedError;
|
|
651
768
|
}
|
|
652
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
|
+
}
|
|
653
836
|
|
|
654
837
|
// src/containers-projects-v1-project-projects.public.ts
|
|
655
838
|
function createProject3(httpClient) {
|
|
@@ -736,6 +919,23 @@ function getHimalayaAuthorization3(httpClient) {
|
|
|
736
919
|
{ httpClient }
|
|
737
920
|
);
|
|
738
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
|
+
}
|
|
739
939
|
|
|
740
940
|
// src/containers-projects-v1-project-projects.context.ts
|
|
741
941
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -750,14 +950,21 @@ var saveProjectDesign4 = /* @__PURE__ */ createRESTModule(saveProjectDesign3);
|
|
|
750
950
|
var restoreRelease4 = /* @__PURE__ */ createRESTModule(restoreRelease3);
|
|
751
951
|
var listProjects4 = /* @__PURE__ */ createRESTModule(listProjects3);
|
|
752
952
|
var getHimalayaAuthorization4 = /* @__PURE__ */ createRESTModule(getHimalayaAuthorization3);
|
|
953
|
+
var startMobileBuild4 = /* @__PURE__ */ createRESTModule(startMobileBuild3);
|
|
954
|
+
var getLatestMobileBuilds4 = /* @__PURE__ */ createRESTModule(getLatestMobileBuilds3);
|
|
753
955
|
export {
|
|
956
|
+
FailureKind,
|
|
754
957
|
Platform,
|
|
755
958
|
ProjectStatus,
|
|
756
959
|
SandboxStatus,
|
|
960
|
+
Status,
|
|
961
|
+
V1Platform,
|
|
962
|
+
Variant,
|
|
757
963
|
WebhookIdentityType,
|
|
758
964
|
createProject4 as createProject,
|
|
759
965
|
deleteProject4 as deleteProject,
|
|
760
966
|
getHimalayaAuthorization4 as getHimalayaAuthorization,
|
|
967
|
+
getLatestMobileBuilds4 as getLatestMobileBuilds,
|
|
761
968
|
getProject4 as getProject,
|
|
762
969
|
listProjects4 as listProjects,
|
|
763
970
|
regenerateProjectIcon4 as regenerateProjectIcon,
|
|
@@ -765,6 +972,7 @@ export {
|
|
|
765
972
|
restoreRelease4 as restoreRelease,
|
|
766
973
|
resumeProject4 as resumeProject,
|
|
767
974
|
saveProjectDesign4 as saveProjectDesign,
|
|
975
|
+
startMobileBuild4 as startMobileBuild,
|
|
768
976
|
updateProject4 as updateProject
|
|
769
977
|
};
|
|
770
978
|
//# sourceMappingURL=index.mjs.map
|