@wix/auto_sdk_containers_projects 1.0.10 → 1.0.12
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 +22 -3
- package/build/cjs/index.js +66 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +47 -1
- package/build/cjs/index.typings.js +58 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -2
- package/build/cjs/meta.js +51 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +22 -3
- package/build/es/index.mjs +65 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +47 -1
- package/build/es/index.typings.mjs +57 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -2
- package/build/es/meta.mjs +50 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +22 -3
- package/build/internal/cjs/index.typings.d.ts +47 -1
- package/build/internal/cjs/meta.d.ts +31 -2
- package/build/internal/es/index.d.mts +22 -3
- package/build/internal/es/index.typings.d.mts +47 -1
- package/build/internal/es/meta.d.mts +31 -2
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
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';
|
|
2
|
+
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, GetHimalayaAuthorizationResponse, PlatformWithLiterals, StartMobileBuildOptions, StartMobileBuildResponse, GetLatestMobileBuildsOptions, GetLatestMobileBuildsResponse, ClaimHimalayaAppResponse } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AdditionalDataFilterMismatchType, AdditionalDataFilterMissingKey, AdditionalDataFilterMustHaveKey, AdditionalDataMissingValue, AdditionalFilterCantBeEmpty, AndroidFormat, AndroidFormatWithLiterals, ClaimHimalayaAppRequest, 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 {
|
|
@@ -120,6 +120,24 @@ interface GetLatestMobileBuildsSignature {
|
|
|
120
120
|
*/
|
|
121
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
122
|
}
|
|
123
|
+
declare function claimHimalayaApp$1(httpClient: HttpClient): ClaimHimalayaAppSignature;
|
|
124
|
+
interface ClaimHimalayaAppSignature {
|
|
125
|
+
/**
|
|
126
|
+
* Claims the canonical Himalaya app for a NEW site-tenanted project, or returns the one already
|
|
127
|
+
* bound to it.
|
|
128
|
+
*
|
|
129
|
+
* This exists so the BROWSER never asserts the (MetaSite, project) pair to Himalaya. Containers
|
|
130
|
+
* is the authority on project -> MetaSite: it reads the project from its own store with a
|
|
131
|
+
* consistent read and takes the MetaSite from this call's identity context, then claims
|
|
132
|
+
* server-to-server with a site USER token minted for the initiating collaborator. Himalaya
|
|
133
|
+
* recognises that token as minted by THIS service and trusts the pair on that basis. A dashboard
|
|
134
|
+
* calling Himalaya directly could name another site's project UUID and reserve its global slug.
|
|
135
|
+
*
|
|
136
|
+
* Idempotent per pair: an already-claimed project returns its existing canonical app.
|
|
137
|
+
* @param - Site-tenanted Containers project to claim a Himalaya app for.
|
|
138
|
+
*/
|
|
139
|
+
(projectId: string): Promise<NonNullablePaths<ClaimHimalayaAppResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp`, 0>>;
|
|
140
|
+
}
|
|
123
141
|
|
|
124
142
|
declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
|
|
125
143
|
declare const resumeProject: MaybeContext<BuildRESTFunction<typeof resumeProject$1> & typeof resumeProject$1>;
|
|
@@ -128,5 +146,6 @@ declare const restoreRelease: MaybeContext<BuildRESTFunction<typeof restoreRelea
|
|
|
128
146
|
declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
|
|
129
147
|
declare const startMobileBuild: MaybeContext<BuildRESTFunction<typeof startMobileBuild$1> & typeof startMobileBuild$1>;
|
|
130
148
|
declare const getLatestMobileBuilds: MaybeContext<BuildRESTFunction<typeof getLatestMobileBuilds$1> & typeof getLatestMobileBuilds$1>;
|
|
149
|
+
declare const claimHimalayaApp: MaybeContext<BuildRESTFunction<typeof claimHimalayaApp$1> & typeof claimHimalayaApp$1>;
|
|
131
150
|
|
|
132
|
-
export { GetHimalayaAuthorizationResponse, GetLatestMobileBuildsOptions, GetLatestMobileBuildsResponse, PlatformWithLiterals, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, StartMobileBuildOptions, StartMobileBuildResponse, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
|
151
|
+
export { ClaimHimalayaAppResponse, GetHimalayaAuthorizationResponse, GetLatestMobileBuildsOptions, GetLatestMobileBuildsResponse, PlatformWithLiterals, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, StartMobileBuildOptions, StartMobileBuildResponse, claimHimalayaApp, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
package/build/cjs/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __export(index_exports, {
|
|
|
29
29
|
V1Platform: () => V1Platform,
|
|
30
30
|
Variant: () => Variant,
|
|
31
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
+
claimHimalayaApp: () => claimHimalayaApp4,
|
|
32
33
|
createProject: () => createProject4,
|
|
33
34
|
deleteProject: () => deleteProject4,
|
|
34
35
|
getHimalayaAuthorization: () => getHimalayaAuthorization4,
|
|
@@ -94,6 +95,16 @@ function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
|
94
95
|
{
|
|
95
96
|
srcPath: "/containers/projects",
|
|
96
97
|
destPath: ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/containers/projects/v1/projects",
|
|
101
|
+
destPath: "/v1/projects"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
_: [
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/containers/projects/v1/projects",
|
|
107
|
+
destPath: "/v1/projects"
|
|
97
108
|
}
|
|
98
109
|
]
|
|
99
110
|
};
|
|
@@ -443,6 +454,27 @@ function getLatestMobileBuilds(payload) {
|
|
|
443
454
|
}
|
|
444
455
|
return __getLatestMobileBuilds;
|
|
445
456
|
}
|
|
457
|
+
function claimHimalayaApp(payload) {
|
|
458
|
+
function __claimHimalayaApp({ host }) {
|
|
459
|
+
const metadata = {
|
|
460
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
461
|
+
method: "POST",
|
|
462
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp",
|
|
463
|
+
packageName: PACKAGE_NAME,
|
|
464
|
+
migrationOptions: {
|
|
465
|
+
optInTransformResponse: true
|
|
466
|
+
},
|
|
467
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
468
|
+
protoPath: "/v1/projects/{projectId}/himalaya-app-claim",
|
|
469
|
+
data: payload,
|
|
470
|
+
host
|
|
471
|
+
}),
|
|
472
|
+
data: payload
|
|
473
|
+
};
|
|
474
|
+
return metadata;
|
|
475
|
+
}
|
|
476
|
+
return __claimHimalayaApp;
|
|
477
|
+
}
|
|
446
478
|
|
|
447
479
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
448
480
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -886,6 +918,31 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
886
918
|
throw transformedError;
|
|
887
919
|
}
|
|
888
920
|
}
|
|
921
|
+
async function claimHimalayaApp2(projectId) {
|
|
922
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
923
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
924
|
+
projectId
|
|
925
|
+
});
|
|
926
|
+
const reqOpts = claimHimalayaApp(payload);
|
|
927
|
+
sideEffects?.onSiteCall?.();
|
|
928
|
+
try {
|
|
929
|
+
const result = await httpClient.request(reqOpts);
|
|
930
|
+
sideEffects?.onSuccess?.(result);
|
|
931
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
932
|
+
} catch (err) {
|
|
933
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
934
|
+
err,
|
|
935
|
+
{
|
|
936
|
+
spreadPathsToArguments: {},
|
|
937
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
938
|
+
singleArgumentUnchanged: false
|
|
939
|
+
},
|
|
940
|
+
["projectId"]
|
|
941
|
+
);
|
|
942
|
+
sideEffects?.onError?.(err);
|
|
943
|
+
throw transformedError;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
889
946
|
|
|
890
947
|
// src/containers-projects-v1-project-projects.public.ts
|
|
891
948
|
function createProject3(httpClient) {
|
|
@@ -989,6 +1046,13 @@ function getLatestMobileBuilds3(httpClient) {
|
|
|
989
1046
|
{ httpClient }
|
|
990
1047
|
);
|
|
991
1048
|
}
|
|
1049
|
+
function claimHimalayaApp3(httpClient) {
|
|
1050
|
+
return (projectId) => claimHimalayaApp2(
|
|
1051
|
+
projectId,
|
|
1052
|
+
// @ts-ignore
|
|
1053
|
+
{ httpClient }
|
|
1054
|
+
);
|
|
1055
|
+
}
|
|
992
1056
|
|
|
993
1057
|
// src/containers-projects-v1-project-projects.context.ts
|
|
994
1058
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -1005,6 +1069,7 @@ var listProjects4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(l
|
|
|
1005
1069
|
var getHimalayaAuthorization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getHimalayaAuthorization3);
|
|
1006
1070
|
var startMobileBuild4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(startMobileBuild3);
|
|
1007
1071
|
var getLatestMobileBuilds4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestMobileBuilds3);
|
|
1072
|
+
var claimHimalayaApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(claimHimalayaApp3);
|
|
1008
1073
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1009
1074
|
0 && (module.exports = {
|
|
1010
1075
|
AndroidFormat,
|
|
@@ -1016,6 +1081,7 @@ var getLatestMobileBuilds4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
1016
1081
|
V1Platform,
|
|
1017
1082
|
Variant,
|
|
1018
1083
|
WebhookIdentityType,
|
|
1084
|
+
claimHimalayaApp,
|
|
1019
1085
|
createProject,
|
|
1020
1086
|
deleteProject,
|
|
1021
1087
|
getHimalayaAuthorization,
|