@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
|
@@ -20,13 +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,
|
|
29
|
+
Variant: () => Variant,
|
|
26
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
27
31
|
createProject: () => createProject2,
|
|
28
32
|
deleteProject: () => deleteProject2,
|
|
29
33
|
getHimalayaAuthorization: () => getHimalayaAuthorization2,
|
|
34
|
+
getLatestMobileBuilds: () => getLatestMobileBuilds2,
|
|
30
35
|
getProject: () => getProject2,
|
|
31
36
|
listProjects: () => listProjects2,
|
|
32
37
|
regenerateProjectIcon: () => regenerateProjectIcon2,
|
|
@@ -34,6 +39,7 @@ __export(index_typings_exports, {
|
|
|
34
39
|
restoreRelease: () => restoreRelease2,
|
|
35
40
|
resumeProject: () => resumeProject2,
|
|
36
41
|
saveProjectDesign: () => saveProjectDesign2,
|
|
42
|
+
startMobileBuild: () => startMobileBuild2,
|
|
37
43
|
updateProject: () => updateProject2
|
|
38
44
|
});
|
|
39
45
|
module.exports = __toCommonJS(index_typings_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,15 +810,86 @@ 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
|
// Annotate the CommonJS export names for ESM import in node:
|
|
691
880
|
0 && (module.exports = {
|
|
881
|
+
FailureKind,
|
|
692
882
|
Platform,
|
|
693
883
|
ProjectStatus,
|
|
694
884
|
SandboxStatus,
|
|
885
|
+
Status,
|
|
886
|
+
V1Platform,
|
|
887
|
+
Variant,
|
|
695
888
|
WebhookIdentityType,
|
|
696
889
|
createProject,
|
|
697
890
|
deleteProject,
|
|
698
891
|
getHimalayaAuthorization,
|
|
892
|
+
getLatestMobileBuilds,
|
|
699
893
|
getProject,
|
|
700
894
|
listProjects,
|
|
701
895
|
regenerateProjectIcon,
|
|
@@ -703,6 +897,7 @@ async function getHimalayaAuthorization2(projectId) {
|
|
|
703
897
|
restoreRelease,
|
|
704
898
|
resumeProject,
|
|
705
899
|
saveProjectDesign,
|
|
900
|
+
startMobileBuild,
|
|
706
901
|
updateProject
|
|
707
902
|
});
|
|
708
903
|
//# sourceMappingURL=index.typings.js.map
|