@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
|
@@ -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,14 +767,85 @@ 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
|
export {
|
|
837
|
+
FailureKind,
|
|
654
838
|
Platform,
|
|
655
839
|
ProjectStatus,
|
|
656
840
|
SandboxStatus,
|
|
841
|
+
Status,
|
|
842
|
+
V1Platform,
|
|
843
|
+
Variant,
|
|
657
844
|
WebhookIdentityType,
|
|
658
845
|
createProject2 as createProject,
|
|
659
846
|
deleteProject2 as deleteProject,
|
|
660
847
|
getHimalayaAuthorization2 as getHimalayaAuthorization,
|
|
848
|
+
getLatestMobileBuilds2 as getLatestMobileBuilds,
|
|
661
849
|
getProject2 as getProject,
|
|
662
850
|
listProjects2 as listProjects,
|
|
663
851
|
regenerateProjectIcon2 as regenerateProjectIcon,
|
|
@@ -665,6 +853,7 @@ export {
|
|
|
665
853
|
restoreRelease2 as restoreRelease,
|
|
666
854
|
resumeProject2 as resumeProject,
|
|
667
855
|
saveProjectDesign2 as saveProjectDesign,
|
|
856
|
+
startMobileBuild2 as startMobileBuild,
|
|
668
857
|
updateProject2 as updateProject
|
|
669
858
|
};
|
|
670
859
|
//# sourceMappingURL=index.typings.mjs.map
|