@wix/create-new 0.0.78 → 0.0.79
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/{chunk-B2FKZEYX.js → chunk-OZTYFORB.js} +4 -4
- package/build/{chunk-B2FKZEYX.js.map → chunk-OZTYFORB.js.map} +1 -1
- package/build/{generator-X6BKTWQ7.js → generator-346WRGXX.js} +2 -2
- package/build/index.js +186 -232
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-X6BKTWQ7.js.map → generator-346WRGXX.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
writeJson,
|
|
119
119
|
writePackageJson,
|
|
120
120
|
zod_default
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-OZTYFORB.js";
|
|
122
122
|
import {
|
|
123
123
|
__commonJS,
|
|
124
124
|
__dirname,
|
|
@@ -65709,13 +65709,13 @@ ${errorMessage2}`
|
|
|
65709
65709
|
}
|
|
65710
65710
|
);
|
|
65711
65711
|
},
|
|
65712
|
-
|
|
65712
|
+
FailedToPullEnvironment: () => {
|
|
65713
65713
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to pull environment variables." });
|
|
65714
65714
|
},
|
|
65715
|
-
|
|
65715
|
+
FailedToSetEnvironmentVariable: () => {
|
|
65716
65716
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to set/update environment variable." });
|
|
65717
65717
|
},
|
|
65718
|
-
|
|
65718
|
+
FailedToRemoveEnvironmentVariable: () => {
|
|
65719
65719
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to remove environment variable." });
|
|
65720
65720
|
},
|
|
65721
65721
|
FailedToUploadStaticFiles: () => {
|
|
@@ -72083,9 +72083,9 @@ var VersionStatus;
|
|
|
72083
72083
|
VersionStatus3["RELEASED"] = "RELEASED";
|
|
72084
72084
|
})(VersionStatus || (VersionStatus = {}));
|
|
72085
72085
|
var SortOrder;
|
|
72086
|
-
(function(
|
|
72087
|
-
|
|
72088
|
-
|
|
72086
|
+
(function(SortOrder4) {
|
|
72087
|
+
SortOrder4["ASC"] = "ASC";
|
|
72088
|
+
SortOrder4["DESC"] = "DESC";
|
|
72089
72089
|
})(SortOrder || (SortOrder = {}));
|
|
72090
72090
|
var RequestedFields;
|
|
72091
72091
|
(function(RequestedFields3) {
|
|
@@ -72122,12 +72122,12 @@ var JoinedConditionOperator;
|
|
|
72122
72122
|
JoinedConditionOperator2["AND"] = "AND";
|
|
72123
72123
|
})(JoinedConditionOperator || (JoinedConditionOperator = {}));
|
|
72124
72124
|
var WebhookIdentityType;
|
|
72125
|
-
(function(
|
|
72126
|
-
|
|
72127
|
-
|
|
72128
|
-
|
|
72129
|
-
|
|
72130
|
-
|
|
72125
|
+
(function(WebhookIdentityType10) {
|
|
72126
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
72127
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
72128
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
72129
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
72130
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
72131
72131
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
72132
72132
|
|
|
72133
72133
|
// ../../node_modules/@wix/ambassador-devcenter-dsm-v1-development-site/build/es/http.impl.js
|
|
@@ -73327,12 +73327,12 @@ function installApp(payload7) {
|
|
|
73327
73327
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
73328
73328
|
init_esm_shims();
|
|
73329
73329
|
var WebhookIdentityType2;
|
|
73330
|
-
(function(
|
|
73331
|
-
|
|
73332
|
-
|
|
73333
|
-
|
|
73334
|
-
|
|
73335
|
-
|
|
73330
|
+
(function(WebhookIdentityType10) {
|
|
73331
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
73332
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
73333
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
73334
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
73335
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
73336
73336
|
})(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
|
|
73337
73337
|
var InstallType;
|
|
73338
73338
|
(function(InstallType2) {
|
|
@@ -76158,12 +76158,12 @@ var VersionType;
|
|
|
76158
76158
|
VersionType2["DEV_VERSION"] = "DEV_VERSION";
|
|
76159
76159
|
})(VersionType || (VersionType = {}));
|
|
76160
76160
|
var WebhookIdentityType3;
|
|
76161
|
-
(function(
|
|
76162
|
-
|
|
76163
|
-
|
|
76164
|
-
|
|
76165
|
-
|
|
76166
|
-
|
|
76161
|
+
(function(WebhookIdentityType10) {
|
|
76162
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
76163
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
76164
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
76165
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
76166
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
76167
76167
|
})(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
|
|
76168
76168
|
|
|
76169
76169
|
// ../dev-center-client/src/schemas.ts
|
|
@@ -78629,12 +78629,12 @@ var WritingModeValue2;
|
|
|
78629
78629
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
78630
78630
|
})(WritingModeValue2 || (WritingModeValue2 = {}));
|
|
78631
78631
|
var WebhookIdentityType4;
|
|
78632
|
-
(function(
|
|
78633
|
-
|
|
78634
|
-
|
|
78635
|
-
|
|
78636
|
-
|
|
78637
|
-
|
|
78632
|
+
(function(WebhookIdentityType10) {
|
|
78633
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
78634
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
78635
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
78636
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
78637
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
78638
78638
|
})(WebhookIdentityType4 || (WebhookIdentityType4 = {}));
|
|
78639
78639
|
var ValidationTargetMethod;
|
|
78640
78640
|
(function(ValidationTargetMethod2) {
|
|
@@ -80813,25 +80813,24 @@ function getAppProject(payload7) {
|
|
|
80813
80813
|
return __getAppProject;
|
|
80814
80814
|
}
|
|
80815
80815
|
|
|
80816
|
-
// ../../node_modules/@wix/ambassador-velo-backend-
|
|
80816
|
+
// ../../node_modules/@wix/ambassador-velo-backend-v1-app-environment/build/es/http.impl.js
|
|
80817
80817
|
init_esm_shims();
|
|
80818
|
-
var
|
|
80818
|
+
var _appEnvironment = {
|
|
80819
80819
|
createdDate: "google.protobuf.Timestamp",
|
|
80820
80820
|
updatedDate: "google.protobuf.Timestamp"
|
|
80821
80821
|
};
|
|
80822
|
-
var
|
|
80823
|
-
var
|
|
80824
|
-
var
|
|
80825
|
-
|
|
80826
|
-
|
|
80822
|
+
var _getAppEnvironmentByNameRequest = {};
|
|
80823
|
+
var _getAppEnvironmentByNameResponse = { appEnvironment: "_appEnvironment" };
|
|
80824
|
+
var _removeAppEnvironmentVariablesRequest = {};
|
|
80825
|
+
var _removeAppEnvironmentVariablesResponse = {
|
|
80826
|
+
appEnvironment: "_appEnvironment"
|
|
80827
80827
|
};
|
|
80828
|
-
var
|
|
80829
|
-
|
|
80830
|
-
|
|
80831
|
-
var _getAppEnvironmentVariablesByEnvironmentResponse = {
|
|
80832
|
-
appEnvironmentVariables: "_appEnvironmentVariable"
|
|
80828
|
+
var _upsertAppEnvironmentRequest = {
|
|
80829
|
+
fieldMask: "google.protobuf.FieldMask",
|
|
80830
|
+
appEnvironment: "_appEnvironment"
|
|
80833
80831
|
};
|
|
80834
|
-
|
|
80832
|
+
var _upsertAppEnvironmentResponse = { appEnvironment: "_appEnvironment" };
|
|
80833
|
+
function resolveWixVeloBackendV1AppEnvironmentManagementUrl(opts) {
|
|
80835
80834
|
var domainToMappings = {
|
|
80836
80835
|
"manage._base_domain_": [
|
|
80837
80836
|
{
|
|
@@ -80842,21 +80841,23 @@ function resolveWixVeloBackendV2AppEnvironmentVariableServiceUrl(opts) {
|
|
|
80842
80841
|
};
|
|
80843
80842
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
80844
80843
|
}
|
|
80845
|
-
function
|
|
80846
|
-
var _a3 = serializer(
|
|
80847
|
-
var fromRes = serializer(
|
|
80848
|
-
|
|
80844
|
+
function upsertAppEnvironment(payload7) {
|
|
80845
|
+
var _a3 = serializer(_upsertAppEnvironmentRequest, { _appEnvironment }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80846
|
+
var fromRes = serializer(_upsertAppEnvironmentResponse, {
|
|
80847
|
+
_appEnvironment
|
|
80848
|
+
}).fromJSON;
|
|
80849
|
+
function __upsertAppEnvironment(_a4) {
|
|
80849
80850
|
var host = _a4.host;
|
|
80850
80851
|
var serializedData = toReq(payload7);
|
|
80851
80852
|
var metadata = {
|
|
80852
|
-
entityFqdn: "wix.velo.backend.
|
|
80853
|
+
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
80853
80854
|
method: "POST",
|
|
80854
|
-
methodFqn: "wix.velo.backend.
|
|
80855
|
+
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.UpsertAppEnvironment",
|
|
80855
80856
|
migrationOptions: {
|
|
80856
80857
|
optInTransformResponse: true
|
|
80857
80858
|
},
|
|
80858
|
-
url:
|
|
80859
|
-
protoPath: "/
|
|
80859
|
+
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
80860
|
+
protoPath: "/v1/app-projects/{appEnvironment.appProjectId}/app-environments/upsert/name/{appEnvironment.name}",
|
|
80860
80861
|
data: serializedData,
|
|
80861
80862
|
host
|
|
80862
80863
|
}),
|
|
@@ -80865,25 +80866,27 @@ function bulkUpsertAppEnvironmentVariables(payload7) {
|
|
|
80865
80866
|
};
|
|
80866
80867
|
return metadata;
|
|
80867
80868
|
}
|
|
80868
|
-
|
|
80869
|
-
|
|
80870
|
-
return
|
|
80869
|
+
__upsertAppEnvironment.fromReq = fromReq;
|
|
80870
|
+
__upsertAppEnvironment.__isAmbassador = true;
|
|
80871
|
+
return __upsertAppEnvironment;
|
|
80871
80872
|
}
|
|
80872
|
-
function
|
|
80873
|
-
var _a3 = serializer(
|
|
80874
|
-
var fromRes = serializer(
|
|
80875
|
-
|
|
80873
|
+
function getAppEnvironmentByName(payload7) {
|
|
80874
|
+
var _a3 = serializer(_getAppEnvironmentByNameRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80875
|
+
var fromRes = serializer(_getAppEnvironmentByNameResponse, {
|
|
80876
|
+
_appEnvironment
|
|
80877
|
+
}).fromJSON;
|
|
80878
|
+
function __getAppEnvironmentByName(_a4) {
|
|
80876
80879
|
var host = _a4.host;
|
|
80877
80880
|
var serializedData = toReq(payload7);
|
|
80878
80881
|
var metadata = {
|
|
80879
|
-
entityFqdn: "wix.velo.backend.
|
|
80882
|
+
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
80880
80883
|
method: "GET",
|
|
80881
|
-
methodFqn: "wix.velo.backend.
|
|
80884
|
+
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.GetAppEnvironmentByName",
|
|
80882
80885
|
migrationOptions: {
|
|
80883
80886
|
optInTransformResponse: true
|
|
80884
80887
|
},
|
|
80885
|
-
url:
|
|
80886
|
-
protoPath: "/
|
|
80888
|
+
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
80889
|
+
protoPath: "/v1/app-projects/{appProjectId}/app-environments/name/{appEnvironmentName}",
|
|
80887
80890
|
data: serializedData,
|
|
80888
80891
|
host
|
|
80889
80892
|
}),
|
|
@@ -80892,66 +80895,38 @@ function getAppEnvironmentVariablesByEnvironment(payload7) {
|
|
|
80892
80895
|
};
|
|
80893
80896
|
return metadata;
|
|
80894
80897
|
}
|
|
80895
|
-
|
|
80896
|
-
|
|
80897
|
-
return
|
|
80898
|
+
__getAppEnvironmentByName.fromReq = fromReq;
|
|
80899
|
+
__getAppEnvironmentByName.__isAmbassador = true;
|
|
80900
|
+
return __getAppEnvironmentByName;
|
|
80898
80901
|
}
|
|
80899
|
-
function
|
|
80900
|
-
var _a3 = serializer(
|
|
80901
|
-
var fromRes = serializer(
|
|
80902
|
-
function
|
|
80902
|
+
function removeAppEnvironmentVariables(payload7) {
|
|
80903
|
+
var _a3 = serializer(_removeAppEnvironmentVariablesRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80904
|
+
var fromRes = serializer(_removeAppEnvironmentVariablesResponse, { _appEnvironment }).fromJSON;
|
|
80905
|
+
function __removeAppEnvironmentVariables(_a4) {
|
|
80903
80906
|
var host = _a4.host;
|
|
80904
80907
|
var serializedData = toReq(payload7);
|
|
80905
80908
|
var metadata = {
|
|
80906
|
-
entityFqdn: "wix.velo.backend.
|
|
80907
|
-
method: "
|
|
80908
|
-
methodFqn: "wix.velo.backend.
|
|
80909
|
+
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
80910
|
+
method: "POST",
|
|
80911
|
+
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.RemoveAppEnvironmentVariables",
|
|
80909
80912
|
migrationOptions: {
|
|
80910
80913
|
optInTransformResponse: true
|
|
80911
80914
|
},
|
|
80912
|
-
url:
|
|
80913
|
-
protoPath: "/
|
|
80915
|
+
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
80916
|
+
protoPath: "/v1/app-projects/{appProjectId}/app-environments/{appEnvironmentId}/remove",
|
|
80914
80917
|
data: serializedData,
|
|
80915
80918
|
host
|
|
80916
80919
|
}),
|
|
80917
|
-
|
|
80920
|
+
data: serializedData,
|
|
80918
80921
|
transformResponse: fromRes
|
|
80919
80922
|
};
|
|
80920
80923
|
return metadata;
|
|
80921
80924
|
}
|
|
80922
|
-
|
|
80923
|
-
|
|
80924
|
-
return
|
|
80925
|
+
__removeAppEnvironmentVariables.fromReq = fromReq;
|
|
80926
|
+
__removeAppEnvironmentVariables.__isAmbassador = true;
|
|
80927
|
+
return __removeAppEnvironmentVariables;
|
|
80925
80928
|
}
|
|
80926
80929
|
|
|
80927
|
-
// ../../node_modules/@wix/ambassador-velo-backend-v2-app-environment-variable/es/build/types.impl.js
|
|
80928
|
-
init_esm_shims();
|
|
80929
|
-
var WebhookIdentityType5;
|
|
80930
|
-
(function(WebhookIdentityType11) {
|
|
80931
|
-
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
80932
|
-
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
80933
|
-
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
80934
|
-
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
80935
|
-
WebhookIdentityType11["APP"] = "APP";
|
|
80936
|
-
})(WebhookIdentityType5 || (WebhookIdentityType5 = {}));
|
|
80937
|
-
var SortOrder2;
|
|
80938
|
-
(function(SortOrder5) {
|
|
80939
|
-
SortOrder5["ASC"] = "ASC";
|
|
80940
|
-
SortOrder5["DESC"] = "DESC";
|
|
80941
|
-
})(SortOrder2 || (SortOrder2 = {}));
|
|
80942
|
-
var Mutability;
|
|
80943
|
-
(function(Mutability2) {
|
|
80944
|
-
Mutability2["UNKNOWN_MUTABILITY"] = "UNKNOWN_MUTABILITY";
|
|
80945
|
-
Mutability2["STATIC"] = "STATIC";
|
|
80946
|
-
Mutability2["DYNAMIC"] = "DYNAMIC";
|
|
80947
|
-
})(Mutability || (Mutability = {}));
|
|
80948
|
-
var Sensitivity;
|
|
80949
|
-
(function(Sensitivity2) {
|
|
80950
|
-
Sensitivity2["UNKNOWN_SENSITIVITY"] = "UNKNOWN_SENSITIVITY";
|
|
80951
|
-
Sensitivity2["PUBLIC"] = "PUBLIC";
|
|
80952
|
-
Sensitivity2["SECRET"] = "SECRET";
|
|
80953
|
-
})(Sensitivity || (Sensitivity = {}));
|
|
80954
|
-
|
|
80955
80930
|
// ../backend-as-a-service-client/src/schemas.ts
|
|
80956
80931
|
init_esm_shims();
|
|
80957
80932
|
|
|
@@ -80970,19 +80945,19 @@ var DeploymentState;
|
|
|
80970
80945
|
DeploymentState2["DEPLOY_SUCCESS"] = "DEPLOY_SUCCESS";
|
|
80971
80946
|
DeploymentState2["DEPLOY_FAILED"] = "DEPLOY_FAILED";
|
|
80972
80947
|
})(DeploymentState || (DeploymentState = {}));
|
|
80973
|
-
var
|
|
80974
|
-
(function(
|
|
80975
|
-
|
|
80976
|
-
|
|
80977
|
-
})(
|
|
80978
|
-
var
|
|
80979
|
-
(function(
|
|
80980
|
-
|
|
80981
|
-
|
|
80982
|
-
|
|
80983
|
-
|
|
80984
|
-
|
|
80985
|
-
})(
|
|
80948
|
+
var SortOrder2;
|
|
80949
|
+
(function(SortOrder4) {
|
|
80950
|
+
SortOrder4["ASC"] = "ASC";
|
|
80951
|
+
SortOrder4["DESC"] = "DESC";
|
|
80952
|
+
})(SortOrder2 || (SortOrder2 = {}));
|
|
80953
|
+
var WebhookIdentityType5;
|
|
80954
|
+
(function(WebhookIdentityType10) {
|
|
80955
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
80956
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
80957
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
80958
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
80959
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
80960
|
+
})(WebhookIdentityType5 || (WebhookIdentityType5 = {}));
|
|
80986
80961
|
|
|
80987
80962
|
// ../backend-as-a-service-client/src/schemas.ts
|
|
80988
80963
|
var staticFileMetadata = external_exports.object({
|
|
@@ -81003,6 +80978,13 @@ var AppDeploymentSchema = external_exports.object({
|
|
|
81003
80978
|
var CompleteAppDeploymentSchema = external_exports.object({
|
|
81004
80979
|
appDeployment: AppDeploymentSchema
|
|
81005
80980
|
});
|
|
80981
|
+
var AppEnvironmentSchema = external_exports.object({
|
|
80982
|
+
appEnvironment: external_exports.object({
|
|
80983
|
+
id: external_exports.string(),
|
|
80984
|
+
variables: external_exports.record(external_exports.string()),
|
|
80985
|
+
secrets: external_exports.record(external_exports.string())
|
|
80986
|
+
}).passthrough()
|
|
80987
|
+
});
|
|
81006
80988
|
var AppProjectSchema = external_exports.object({
|
|
81007
80989
|
appProject: external_exports.object({
|
|
81008
80990
|
id: external_exports.string().uuid(),
|
|
@@ -81037,28 +81019,6 @@ var StaticFileUploadSchema = external_exports.object({
|
|
|
81037
81019
|
jwt: external_exports.string().optional()
|
|
81038
81020
|
}).optional()
|
|
81039
81021
|
}).passthrough();
|
|
81040
|
-
var AppEnvironmentVariableSchema = external_exports.object({
|
|
81041
|
-
key: external_exports.string(),
|
|
81042
|
-
value: external_exports.string()
|
|
81043
|
-
});
|
|
81044
|
-
var AppEnvironmentVariablesSchema = external_exports.array(AppEnvironmentVariableSchema).optional().transform((variables) => {
|
|
81045
|
-
return (variables ?? []).reduce((acc, curr) => {
|
|
81046
|
-
acc[curr.key] = curr.value;
|
|
81047
|
-
return acc;
|
|
81048
|
-
}, {});
|
|
81049
|
-
});
|
|
81050
|
-
var GetAppEnvironmentVariablesSchema = external_exports.object({
|
|
81051
|
-
appEnvironmentVariables: AppEnvironmentVariablesSchema
|
|
81052
|
-
});
|
|
81053
|
-
var UpsertAppEnvironmentVariablesSchema = external_exports.object({
|
|
81054
|
-
appEnvironmentVariables: AppEnvironmentVariablesSchema,
|
|
81055
|
-
results: external_exports.array(external_exports.unknown()).optional(),
|
|
81056
|
-
bulkActionMetadata: external_exports.object({
|
|
81057
|
-
totalSuccesses: external_exports.number().optional(),
|
|
81058
|
-
totalFailures: external_exports.number().optional(),
|
|
81059
|
-
undetailedFailures: external_exports.number().optional()
|
|
81060
|
-
}).optional()
|
|
81061
|
-
});
|
|
81062
81022
|
|
|
81063
81023
|
// ../backend-as-a-service-client/src/backend-as-a-service-client.ts
|
|
81064
81024
|
var { minRetryTimeout } = getTestOverrides();
|
|
@@ -81210,74 +81170,64 @@ var BackendAsAServiceClient = class {
|
|
|
81210
81170
|
}
|
|
81211
81171
|
};
|
|
81212
81172
|
// Env management
|
|
81213
|
-
|
|
81173
|
+
getAppEnvironmentByName = async (appId, environment) => {
|
|
81214
81174
|
try {
|
|
81215
81175
|
const { data } = await pRetry(
|
|
81216
81176
|
() => this.httpClient.request(
|
|
81217
|
-
|
|
81177
|
+
getAppEnvironmentByName({
|
|
81218
81178
|
appProjectId: appId,
|
|
81219
|
-
environment
|
|
81179
|
+
appEnvironmentName: environment
|
|
81220
81180
|
})
|
|
81221
81181
|
),
|
|
81222
81182
|
this.retryOptions
|
|
81223
81183
|
);
|
|
81224
|
-
|
|
81225
|
-
return appEnvironmentVariables;
|
|
81184
|
+
return AppEnvironmentSchema.parse(data).appEnvironment;
|
|
81226
81185
|
} catch (e2) {
|
|
81227
81186
|
throw new CliError({
|
|
81228
|
-
code: CliErrorCode.
|
|
81187
|
+
code: CliErrorCode.FailedToPullEnvironment(),
|
|
81229
81188
|
cause: e2
|
|
81230
81189
|
});
|
|
81231
81190
|
}
|
|
81232
81191
|
};
|
|
81233
|
-
|
|
81234
|
-
let result;
|
|
81192
|
+
upsertAppEnvironment = async (appId, environment, variables) => {
|
|
81235
81193
|
try {
|
|
81236
81194
|
const { data } = await this.httpClient.request(
|
|
81237
|
-
|
|
81238
|
-
|
|
81239
|
-
|
|
81240
|
-
|
|
81241
|
-
|
|
81242
|
-
|
|
81243
|
-
returnAllEnvironment: true
|
|
81195
|
+
upsertAppEnvironment({
|
|
81196
|
+
appEnvironment: {
|
|
81197
|
+
appProjectId: appId,
|
|
81198
|
+
name: environment,
|
|
81199
|
+
variables
|
|
81200
|
+
}
|
|
81244
81201
|
})
|
|
81245
81202
|
);
|
|
81246
|
-
|
|
81203
|
+
return AppEnvironmentSchema.parse(data).appEnvironment;
|
|
81247
81204
|
} catch (e2) {
|
|
81248
81205
|
throw new CliError({
|
|
81249
|
-
code: CliErrorCode.
|
|
81206
|
+
code: CliErrorCode.FailedToSetEnvironmentVariable(),
|
|
81250
81207
|
cause: e2
|
|
81251
81208
|
});
|
|
81252
81209
|
}
|
|
81253
|
-
const { bulkActionMetadata, appEnvironmentVariables } = result;
|
|
81254
|
-
if (bulkActionMetadata?.totalFailures || bulkActionMetadata?.undetailedFailures) {
|
|
81255
|
-
throw new CliError({
|
|
81256
|
-
code: CliErrorCode.FailedToBulkUpsertAppEnvironmentVariables(),
|
|
81257
|
-
cause: void 0,
|
|
81258
|
-
info: { ...result }
|
|
81259
|
-
});
|
|
81260
|
-
}
|
|
81261
|
-
return appEnvironmentVariables;
|
|
81262
81210
|
};
|
|
81263
|
-
|
|
81211
|
+
removeAppEnvironmentVariable = async (appId, environment, variable) => {
|
|
81264
81212
|
try {
|
|
81265
|
-
await this.
|
|
81266
|
-
|
|
81267
|
-
|
|
81268
|
-
|
|
81269
|
-
|
|
81270
|
-
|
|
81213
|
+
const appEnvironment = await this.getAppEnvironmentByName(
|
|
81214
|
+
appId,
|
|
81215
|
+
environment
|
|
81216
|
+
);
|
|
81217
|
+
const { data } = await pRetry(
|
|
81218
|
+
() => this.httpClient.request(
|
|
81219
|
+
removeAppEnvironmentVariables({
|
|
81220
|
+
appEnvironmentId: appEnvironment.id,
|
|
81221
|
+
appProjectId: appId,
|
|
81222
|
+
variables: [variable]
|
|
81223
|
+
})
|
|
81224
|
+
),
|
|
81225
|
+
this.retryOptions
|
|
81271
81226
|
);
|
|
81227
|
+
return AppEnvironmentSchema.parse(data).appEnvironment;
|
|
81272
81228
|
} catch (e2) {
|
|
81273
|
-
if (isHttpError(e2) && isHttpApplicationError(e2)) {
|
|
81274
|
-
const applicationError = e2.response?.data.details.applicationError;
|
|
81275
|
-
if (applicationError?.code === "APP_ENVIRONMENT_VARIABLE_NOT_FOUND") {
|
|
81276
|
-
return;
|
|
81277
|
-
}
|
|
81278
|
-
}
|
|
81279
81229
|
throw new CliError({
|
|
81280
|
-
code: CliErrorCode.
|
|
81230
|
+
code: CliErrorCode.FailedToRemoveEnvironmentVariable(),
|
|
81281
81231
|
cause: e2
|
|
81282
81232
|
});
|
|
81283
81233
|
}
|
|
@@ -81305,6 +81255,7 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81305
81255
|
backendAsAServiceClient
|
|
81306
81256
|
}) => {
|
|
81307
81257
|
let appProject = await backendAsAServiceClient.getAppProject(appId);
|
|
81258
|
+
let appEnvironment;
|
|
81308
81259
|
if (!appProject) {
|
|
81309
81260
|
const publicKeyAndSecret = await devCenterClient.getAppSecret({ appId });
|
|
81310
81261
|
appProject = await backendAsAServiceClient.createAppProject({
|
|
@@ -81314,7 +81265,7 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81314
81265
|
cloudProvider: CloudProvider.CLOUD_FLARE,
|
|
81315
81266
|
projectType: "APP"
|
|
81316
81267
|
});
|
|
81317
|
-
|
|
81268
|
+
appEnvironment = await backendAsAServiceClient.upsertAppEnvironment(
|
|
81318
81269
|
appProject.id,
|
|
81319
81270
|
DEFAULT_ENVIRONMENT_NAME,
|
|
81320
81271
|
{
|
|
@@ -81325,10 +81276,13 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81325
81276
|
}
|
|
81326
81277
|
);
|
|
81327
81278
|
}
|
|
81328
|
-
|
|
81329
|
-
|
|
81330
|
-
|
|
81331
|
-
|
|
81279
|
+
if (!appEnvironment) {
|
|
81280
|
+
appEnvironment = await backendAsAServiceClient.getAppEnvironmentByName(
|
|
81281
|
+
appProject.id,
|
|
81282
|
+
DEFAULT_ENVIRONMENT_NAME
|
|
81283
|
+
);
|
|
81284
|
+
}
|
|
81285
|
+
return { variables: appEnvironment.variables };
|
|
81332
81286
|
};
|
|
81333
81287
|
function generateRandomSlug() {
|
|
81334
81288
|
return randomBytes(8).toString("hex");
|
|
@@ -81359,7 +81313,7 @@ var useAppCreation = ({ extendAppId }) => {
|
|
|
81359
81313
|
}
|
|
81360
81314
|
})
|
|
81361
81315
|
);
|
|
81362
|
-
const environmentVariables = await createAppProjectAndEnvironment({
|
|
81316
|
+
const { variables: environmentVariables } = await createAppProjectAndEnvironment({
|
|
81363
81317
|
appId,
|
|
81364
81318
|
appName,
|
|
81365
81319
|
devCenterClient,
|
|
@@ -81596,7 +81550,7 @@ var ExistingAppFlow = ({
|
|
|
81596
81550
|
);
|
|
81597
81551
|
const registerAppCallback = useAsyncCallback3(
|
|
81598
81552
|
async (_2, { appData, packageName }) => {
|
|
81599
|
-
const
|
|
81553
|
+
const { variables } = await createAppProjectAndEnvironment({
|
|
81600
81554
|
appId: appData.appId,
|
|
81601
81555
|
appName: appData.appName,
|
|
81602
81556
|
devCenterClient,
|
|
@@ -81607,7 +81561,7 @@ var ExistingAppFlow = ({
|
|
|
81607
81561
|
packageName,
|
|
81608
81562
|
template: TemplateSource.Default(),
|
|
81609
81563
|
mcpConfigResult: McpConfigResult.Canceled(),
|
|
81610
|
-
environmentVariables
|
|
81564
|
+
environmentVariables: variables
|
|
81611
81565
|
});
|
|
81612
81566
|
}
|
|
81613
81567
|
);
|
|
@@ -81878,7 +81832,7 @@ function getTasks({
|
|
|
81878
81832
|
cause: e2
|
|
81879
81833
|
});
|
|
81880
81834
|
}
|
|
81881
|
-
const { generateApp } = await import("./generator-
|
|
81835
|
+
const { generateApp } = await import("./generator-346WRGXX.js");
|
|
81882
81836
|
await generateApp({
|
|
81883
81837
|
packageName,
|
|
81884
81838
|
packageFolder,
|
|
@@ -82662,7 +82616,7 @@ var useCreateProject = (businessId) => {
|
|
|
82662
82616
|
} = useDevCenterClient({
|
|
82663
82617
|
siteId: businessId
|
|
82664
82618
|
});
|
|
82665
|
-
const { createAppProject: createAppProject2,
|
|
82619
|
+
const { createAppProject: createAppProject2, upsertAppEnvironment: upsertAppEnvironment2 } = useBackendAsAServiceClient();
|
|
82666
82620
|
return useAsyncCallback3(
|
|
82667
82621
|
async (_2, {
|
|
82668
82622
|
businessName,
|
|
@@ -82703,7 +82657,7 @@ var useCreateProject = (businessId) => {
|
|
|
82703
82657
|
],
|
|
82704
82658
|
redirectUrlWixPages: prodBaseDomain
|
|
82705
82659
|
});
|
|
82706
|
-
const
|
|
82660
|
+
const appEnvironment = await upsertAppEnvironment2(
|
|
82707
82661
|
appProject.id,
|
|
82708
82662
|
DEFAULT_ENVIRONMENT_NAME2,
|
|
82709
82663
|
{
|
|
@@ -82719,7 +82673,7 @@ var useCreateProject = (businessId) => {
|
|
|
82719
82673
|
instanceId: appInstall.appInstance.id,
|
|
82720
82674
|
appSecret: publicKeyAndSecret.appSecret,
|
|
82721
82675
|
webhookPublicKey: publicKeyAndSecret.webhookPublicKey,
|
|
82722
|
-
environmentVariables,
|
|
82676
|
+
environmentVariables: appEnvironment.variables,
|
|
82723
82677
|
baseUrl: appProject.baseUrl
|
|
82724
82678
|
};
|
|
82725
82679
|
return projectData;
|
|
@@ -92754,14 +92708,14 @@ var Action;
|
|
|
92754
92708
|
Action2["OVERWRITE"] = "OVERWRITE";
|
|
92755
92709
|
Action2["COPY"] = "COPY";
|
|
92756
92710
|
})(Action || (Action = {}));
|
|
92757
|
-
var
|
|
92758
|
-
(function(
|
|
92759
|
-
|
|
92760
|
-
|
|
92761
|
-
|
|
92762
|
-
|
|
92763
|
-
|
|
92764
|
-
})(
|
|
92711
|
+
var WebhookIdentityType6;
|
|
92712
|
+
(function(WebhookIdentityType10) {
|
|
92713
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
92714
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92715
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
92716
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
92717
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
92718
|
+
})(WebhookIdentityType6 || (WebhookIdentityType6 = {}));
|
|
92765
92719
|
|
|
92766
92720
|
// ../../node_modules/@wix/ambassador-velo-github-v1-github-onboarding-status/build/es/types.impl.js
|
|
92767
92721
|
init_esm_shims();
|
|
@@ -92843,14 +92797,14 @@ var DeleteStatus;
|
|
|
92843
92797
|
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
92844
92798
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
92845
92799
|
})(DeleteStatus || (DeleteStatus = {}));
|
|
92846
|
-
var
|
|
92847
|
-
(function(
|
|
92848
|
-
|
|
92849
|
-
|
|
92850
|
-
|
|
92851
|
-
|
|
92852
|
-
|
|
92853
|
-
})(
|
|
92800
|
+
var WebhookIdentityType7;
|
|
92801
|
+
(function(WebhookIdentityType10) {
|
|
92802
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
92803
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92804
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
92805
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
92806
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
92807
|
+
})(WebhookIdentityType7 || (WebhookIdentityType7 = {}));
|
|
92854
92808
|
|
|
92855
92809
|
// ../velo-client/src/velo-client.ts
|
|
92856
92810
|
init_esm_shims();
|
|
@@ -92881,14 +92835,14 @@ var RcLabel;
|
|
|
92881
92835
|
RcLabel2["UNKNOWN"] = "UNKNOWN";
|
|
92882
92836
|
RcLabel2["WIX_CLI"] = "WIX_CLI";
|
|
92883
92837
|
})(RcLabel || (RcLabel = {}));
|
|
92884
|
-
var
|
|
92885
|
-
(function(
|
|
92886
|
-
|
|
92887
|
-
|
|
92888
|
-
|
|
92889
|
-
|
|
92890
|
-
|
|
92891
|
-
})(
|
|
92838
|
+
var WebhookIdentityType8;
|
|
92839
|
+
(function(WebhookIdentityType10) {
|
|
92840
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
92841
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92842
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
92843
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
92844
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
92845
|
+
})(WebhookIdentityType8 || (WebhookIdentityType8 = {}));
|
|
92892
92846
|
|
|
92893
92847
|
// ../../node_modules/@wix/ambassador-velo-apps-v1-app/build/es/http.impl.js
|
|
92894
92848
|
init_esm_shims();
|
|
@@ -93556,19 +93510,19 @@ var GitRemoteType;
|
|
|
93556
93510
|
GitRemoteType2["S3"] = "S3";
|
|
93557
93511
|
GitRemoteType2["GITHUB"] = "GITHUB";
|
|
93558
93512
|
})(GitRemoteType || (GitRemoteType = {}));
|
|
93559
|
-
var
|
|
93560
|
-
(function(
|
|
93561
|
-
|
|
93562
|
-
|
|
93563
|
-
|
|
93564
|
-
|
|
93565
|
-
|
|
93566
|
-
})(
|
|
93567
|
-
var
|
|
93568
|
-
(function(
|
|
93569
|
-
|
|
93570
|
-
|
|
93571
|
-
})(
|
|
93513
|
+
var WebhookIdentityType9;
|
|
93514
|
+
(function(WebhookIdentityType10) {
|
|
93515
|
+
WebhookIdentityType10["UNKNOWN"] = "UNKNOWN";
|
|
93516
|
+
WebhookIdentityType10["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
93517
|
+
WebhookIdentityType10["MEMBER"] = "MEMBER";
|
|
93518
|
+
WebhookIdentityType10["WIX_USER"] = "WIX_USER";
|
|
93519
|
+
WebhookIdentityType10["APP"] = "APP";
|
|
93520
|
+
})(WebhookIdentityType9 || (WebhookIdentityType9 = {}));
|
|
93521
|
+
var SortOrder3;
|
|
93522
|
+
(function(SortOrder4) {
|
|
93523
|
+
SortOrder4["ASC"] = "ASC";
|
|
93524
|
+
SortOrder4["DESC"] = "DESC";
|
|
93525
|
+
})(SortOrder3 || (SortOrder3 = {}));
|
|
93572
93526
|
|
|
93573
93527
|
// ../codestore-client/src/schemas.ts
|
|
93574
93528
|
init_esm_shims();
|
|
@@ -94265,7 +94219,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94265
94219
|
var package_default = {
|
|
94266
94220
|
name: "@wix/create-new",
|
|
94267
94221
|
description: "General entry point for creating Wix projects",
|
|
94268
|
-
version: "0.0.
|
|
94222
|
+
version: "0.0.79",
|
|
94269
94223
|
bin: "bin/index.cjs",
|
|
94270
94224
|
devDependencies: {
|
|
94271
94225
|
"@commander-js/extra-typings": "^13.0.0",
|