@wix/create-new 0.0.77 → 0.0.78
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-SP6CBGLK.js → chunk-B2FKZEYX.js} +8 -5
- package/build/{chunk-SP6CBGLK.js.map → chunk-B2FKZEYX.js.map} +1 -1
- package/build/{generator-CUTI2BWL.js → generator-X6BKTWQ7.js} +2 -2
- package/build/index.js +344 -267
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-CUTI2BWL.js.map → generator-X6BKTWQ7.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-B2FKZEYX.js";
|
|
122
122
|
import {
|
|
123
123
|
__commonJS,
|
|
124
124
|
__dirname,
|
|
@@ -4068,7 +4068,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
4068
4068
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
4069
4069
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
4070
4070
|
}
|
|
4071
|
-
function __addDisposableResource(
|
|
4071
|
+
function __addDisposableResource(env4, value2, async) {
|
|
4072
4072
|
if (value2 !== null && value2 !== void 0) {
|
|
4073
4073
|
if (typeof value2 !== "object" && typeof value2 !== "function") throw new TypeError("Object expected.");
|
|
4074
4074
|
var dispose, inner;
|
|
@@ -4089,22 +4089,22 @@ function __addDisposableResource(env3, value2, async) {
|
|
|
4089
4089
|
return Promise.reject(e2);
|
|
4090
4090
|
}
|
|
4091
4091
|
};
|
|
4092
|
-
|
|
4092
|
+
env4.stack.push({ value: value2, dispose, async });
|
|
4093
4093
|
} else if (async) {
|
|
4094
|
-
|
|
4094
|
+
env4.stack.push({ async: true });
|
|
4095
4095
|
}
|
|
4096
4096
|
return value2;
|
|
4097
4097
|
}
|
|
4098
|
-
function __disposeResources(
|
|
4098
|
+
function __disposeResources(env4) {
|
|
4099
4099
|
function fail(e2) {
|
|
4100
|
-
|
|
4101
|
-
|
|
4100
|
+
env4.error = env4.hasError ? new _SuppressedError(e2, env4.error, "An error was suppressed during disposal.") : e2;
|
|
4101
|
+
env4.hasError = true;
|
|
4102
4102
|
}
|
|
4103
4103
|
var r2, s2 = 0;
|
|
4104
4104
|
function next() {
|
|
4105
|
-
while (r2 =
|
|
4105
|
+
while (r2 = env4.stack.pop()) {
|
|
4106
4106
|
try {
|
|
4107
|
-
if (!r2.async && s2 === 1) return s2 = 0,
|
|
4107
|
+
if (!r2.async && s2 === 1) return s2 = 0, env4.stack.push(r2), Promise.resolve().then(next);
|
|
4108
4108
|
if (r2.dispose) {
|
|
4109
4109
|
var result = r2.dispose.call(r2.value);
|
|
4110
4110
|
if (r2.async) return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
@@ -4116,8 +4116,8 @@ function __disposeResources(env3) {
|
|
|
4116
4116
|
fail(e2);
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
|
-
if (s2 === 1) return
|
|
4120
|
-
if (
|
|
4119
|
+
if (s2 === 1) return env4.hasError ? Promise.reject(env4.error) : Promise.resolve();
|
|
4120
|
+
if (env4.hasError) throw env4.error;
|
|
4121
4121
|
}
|
|
4122
4122
|
return next();
|
|
4123
4123
|
}
|
|
@@ -5355,7 +5355,7 @@ var require_common = __commonJS({
|
|
|
5355
5355
|
"../../node_modules/debug/src/common.js"(exports, module2) {
|
|
5356
5356
|
"use strict";
|
|
5357
5357
|
init_esm_shims();
|
|
5358
|
-
function setup(
|
|
5358
|
+
function setup(env4) {
|
|
5359
5359
|
createDebug.debug = createDebug;
|
|
5360
5360
|
createDebug.default = createDebug;
|
|
5361
5361
|
createDebug.coerce = coerce;
|
|
@@ -5364,8 +5364,8 @@ var require_common = __commonJS({
|
|
|
5364
5364
|
createDebug.enabled = enabled;
|
|
5365
5365
|
createDebug.humanize = require_ms();
|
|
5366
5366
|
createDebug.destroy = destroy;
|
|
5367
|
-
Object.keys(
|
|
5368
|
-
createDebug[key] =
|
|
5367
|
+
Object.keys(env4).forEach((key) => {
|
|
5368
|
+
createDebug[key] = env4[key];
|
|
5369
5369
|
});
|
|
5370
5370
|
createDebug.names = [];
|
|
5371
5371
|
createDebug.skips = [];
|
|
@@ -5723,20 +5723,20 @@ var require_supports_color = __commonJS({
|
|
|
5723
5723
|
var os7 = __require("os");
|
|
5724
5724
|
var tty3 = __require("tty");
|
|
5725
5725
|
var hasFlag4 = require_has_flag();
|
|
5726
|
-
var { env:
|
|
5726
|
+
var { env: env4 } = process;
|
|
5727
5727
|
var forceColor;
|
|
5728
5728
|
if (hasFlag4("no-color") || hasFlag4("no-colors") || hasFlag4("color=false") || hasFlag4("color=never")) {
|
|
5729
5729
|
forceColor = 0;
|
|
5730
5730
|
} else if (hasFlag4("color") || hasFlag4("colors") || hasFlag4("color=true") || hasFlag4("color=always")) {
|
|
5731
5731
|
forceColor = 1;
|
|
5732
5732
|
}
|
|
5733
|
-
if ("FORCE_COLOR" in
|
|
5734
|
-
if (
|
|
5733
|
+
if ("FORCE_COLOR" in env4) {
|
|
5734
|
+
if (env4.FORCE_COLOR === "true") {
|
|
5735
5735
|
forceColor = 1;
|
|
5736
|
-
} else if (
|
|
5736
|
+
} else if (env4.FORCE_COLOR === "false") {
|
|
5737
5737
|
forceColor = 0;
|
|
5738
5738
|
} else {
|
|
5739
|
-
forceColor =
|
|
5739
|
+
forceColor = env4.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env4.FORCE_COLOR, 10), 3);
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
5742
|
function translateLevel3(level) {
|
|
@@ -5764,7 +5764,7 @@ var require_supports_color = __commonJS({
|
|
|
5764
5764
|
return 0;
|
|
5765
5765
|
}
|
|
5766
5766
|
const min = forceColor || 0;
|
|
5767
|
-
if (
|
|
5767
|
+
if (env4.TERM === "dumb") {
|
|
5768
5768
|
return min;
|
|
5769
5769
|
}
|
|
5770
5770
|
if (process.platform === "win32") {
|
|
@@ -5774,34 +5774,34 @@ var require_supports_color = __commonJS({
|
|
|
5774
5774
|
}
|
|
5775
5775
|
return 1;
|
|
5776
5776
|
}
|
|
5777
|
-
if ("CI" in
|
|
5778
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in
|
|
5777
|
+
if ("CI" in env4) {
|
|
5778
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env4) || env4.CI_NAME === "codeship") {
|
|
5779
5779
|
return 1;
|
|
5780
5780
|
}
|
|
5781
5781
|
return min;
|
|
5782
5782
|
}
|
|
5783
|
-
if ("TEAMCITY_VERSION" in
|
|
5784
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
5783
|
+
if ("TEAMCITY_VERSION" in env4) {
|
|
5784
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
|
|
5785
5785
|
}
|
|
5786
|
-
if (
|
|
5786
|
+
if (env4.COLORTERM === "truecolor") {
|
|
5787
5787
|
return 3;
|
|
5788
5788
|
}
|
|
5789
|
-
if ("TERM_PROGRAM" in
|
|
5790
|
-
const version = parseInt((
|
|
5791
|
-
switch (
|
|
5789
|
+
if ("TERM_PROGRAM" in env4) {
|
|
5790
|
+
const version = parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
5791
|
+
switch (env4.TERM_PROGRAM) {
|
|
5792
5792
|
case "iTerm.app":
|
|
5793
5793
|
return version >= 3 ? 3 : 2;
|
|
5794
5794
|
case "Apple_Terminal":
|
|
5795
5795
|
return 2;
|
|
5796
5796
|
}
|
|
5797
5797
|
}
|
|
5798
|
-
if (/-256(color)?$/i.test(
|
|
5798
|
+
if (/-256(color)?$/i.test(env4.TERM)) {
|
|
5799
5799
|
return 2;
|
|
5800
5800
|
}
|
|
5801
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
5801
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
|
|
5802
5802
|
return 1;
|
|
5803
5803
|
}
|
|
5804
|
-
if ("COLORTERM" in
|
|
5804
|
+
if ("COLORTERM" in env4) {
|
|
5805
5805
|
return 1;
|
|
5806
5806
|
}
|
|
5807
5807
|
return min;
|
|
@@ -9147,7 +9147,7 @@ var require_ci_info = __commonJS({
|
|
|
9147
9147
|
"use strict";
|
|
9148
9148
|
init_esm_shims();
|
|
9149
9149
|
var vendors = require_vendors();
|
|
9150
|
-
var
|
|
9150
|
+
var env4 = process.env;
|
|
9151
9151
|
Object.defineProperty(exports, "_vendors", {
|
|
9152
9152
|
value: vendors.map(function(v) {
|
|
9153
9153
|
return v.constant;
|
|
@@ -9167,14 +9167,14 @@ var require_ci_info = __commonJS({
|
|
|
9167
9167
|
exports.name = vendor.name;
|
|
9168
9168
|
switch (typeof vendor.pr) {
|
|
9169
9169
|
case "string":
|
|
9170
|
-
exports.isPR = !!
|
|
9170
|
+
exports.isPR = !!env4[vendor.pr];
|
|
9171
9171
|
break;
|
|
9172
9172
|
case "object":
|
|
9173
9173
|
if ("env" in vendor.pr) {
|
|
9174
|
-
exports.isPR = vendor.pr.env in
|
|
9174
|
+
exports.isPR = vendor.pr.env in env4 && env4[vendor.pr.env] !== vendor.pr.ne;
|
|
9175
9175
|
} else if ("any" in vendor.pr) {
|
|
9176
9176
|
exports.isPR = vendor.pr.any.some(function(key) {
|
|
9177
|
-
return !!
|
|
9177
|
+
return !!env4[key];
|
|
9178
9178
|
});
|
|
9179
9179
|
} else {
|
|
9180
9180
|
exports.isPR = checkEnv(vendor.pr);
|
|
@@ -9184,29 +9184,29 @@ var require_ci_info = __commonJS({
|
|
|
9184
9184
|
exports.isPR = null;
|
|
9185
9185
|
}
|
|
9186
9186
|
});
|
|
9187
|
-
exports.isCI = !!(
|
|
9188
|
-
(
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9187
|
+
exports.isCI = !!(env4.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
9188
|
+
(env4.BUILD_ID || // Jenkins, Cloudbees
|
|
9189
|
+
env4.BUILD_NUMBER || // Jenkins, TeamCity
|
|
9190
|
+
env4.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
9191
|
+
env4.CI_APP_ID || // Appflow
|
|
9192
|
+
env4.CI_BUILD_ID || // Appflow
|
|
9193
|
+
env4.CI_BUILD_NUMBER || // Appflow
|
|
9194
|
+
env4.CI_NAME || // Codeship and others
|
|
9195
|
+
env4.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
9196
|
+
env4.RUN_ID || // TaskCluster, dsari
|
|
9197
9197
|
exports.name || false));
|
|
9198
9198
|
function checkEnv(obj) {
|
|
9199
|
-
if (typeof obj === "string") return !!
|
|
9199
|
+
if (typeof obj === "string") return !!env4[obj];
|
|
9200
9200
|
if ("env" in obj) {
|
|
9201
|
-
return
|
|
9201
|
+
return env4[obj.env] && env4[obj.env].includes(obj.includes);
|
|
9202
9202
|
}
|
|
9203
9203
|
if ("any" in obj) {
|
|
9204
9204
|
return obj.any.some(function(k) {
|
|
9205
|
-
return !!
|
|
9205
|
+
return !!env4[k];
|
|
9206
9206
|
});
|
|
9207
9207
|
}
|
|
9208
9208
|
return Object.keys(obj).every(function(k) {
|
|
9209
|
-
return
|
|
9209
|
+
return env4[k] === obj[k];
|
|
9210
9210
|
});
|
|
9211
9211
|
}
|
|
9212
9212
|
}
|
|
@@ -17767,7 +17767,7 @@ var require_ci_info2 = __commonJS({
|
|
|
17767
17767
|
"use strict";
|
|
17768
17768
|
init_esm_shims();
|
|
17769
17769
|
var vendors = require_vendors2();
|
|
17770
|
-
var
|
|
17770
|
+
var env4 = process.env;
|
|
17771
17771
|
Object.defineProperty(exports, "_vendors", {
|
|
17772
17772
|
value: vendors.map(function(v) {
|
|
17773
17773
|
return v.constant;
|
|
@@ -17789,47 +17789,47 @@ var require_ci_info2 = __commonJS({
|
|
|
17789
17789
|
exports.isPR = checkPR(vendor);
|
|
17790
17790
|
exports.id = vendor.constant;
|
|
17791
17791
|
});
|
|
17792
|
-
exports.isCI = !!(
|
|
17793
|
-
(
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17792
|
+
exports.isCI = !!(env4.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
17793
|
+
(env4.BUILD_ID || // Jenkins, Cloudbees
|
|
17794
|
+
env4.BUILD_NUMBER || // Jenkins, TeamCity
|
|
17795
|
+
env4.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
17796
|
+
env4.CI_APP_ID || // Appflow
|
|
17797
|
+
env4.CI_BUILD_ID || // Appflow
|
|
17798
|
+
env4.CI_BUILD_NUMBER || // Appflow
|
|
17799
|
+
env4.CI_NAME || // Codeship and others
|
|
17800
|
+
env4.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
17801
|
+
env4.RUN_ID || // TaskCluster, dsari
|
|
17802
17802
|
exports.name || false));
|
|
17803
17803
|
function checkEnv(obj) {
|
|
17804
|
-
if (typeof obj === "string") return !!
|
|
17804
|
+
if (typeof obj === "string") return !!env4[obj];
|
|
17805
17805
|
if ("env" in obj) {
|
|
17806
|
-
return
|
|
17806
|
+
return env4[obj.env] && env4[obj.env].includes(obj.includes);
|
|
17807
17807
|
}
|
|
17808
17808
|
if ("any" in obj) {
|
|
17809
17809
|
return obj.any.some(function(k) {
|
|
17810
|
-
return !!
|
|
17810
|
+
return !!env4[k];
|
|
17811
17811
|
});
|
|
17812
17812
|
}
|
|
17813
17813
|
return Object.keys(obj).every(function(k) {
|
|
17814
|
-
return
|
|
17814
|
+
return env4[k] === obj[k];
|
|
17815
17815
|
});
|
|
17816
17816
|
}
|
|
17817
17817
|
function checkPR(vendor) {
|
|
17818
17818
|
switch (typeof vendor.pr) {
|
|
17819
17819
|
case "string":
|
|
17820
|
-
return !!
|
|
17820
|
+
return !!env4[vendor.pr];
|
|
17821
17821
|
case "object":
|
|
17822
17822
|
if ("env" in vendor.pr) {
|
|
17823
17823
|
if ("any" in vendor.pr) {
|
|
17824
17824
|
return vendor.pr.any.some(function(key) {
|
|
17825
|
-
return
|
|
17825
|
+
return env4[vendor.pr.env] === key;
|
|
17826
17826
|
});
|
|
17827
17827
|
} else {
|
|
17828
|
-
return vendor.pr.env in
|
|
17828
|
+
return vendor.pr.env in env4 && env4[vendor.pr.env] !== vendor.pr.ne;
|
|
17829
17829
|
}
|
|
17830
17830
|
} else if ("any" in vendor.pr) {
|
|
17831
17831
|
return vendor.pr.any.some(function(key) {
|
|
17832
|
-
return !!
|
|
17832
|
+
return !!env4[key];
|
|
17833
17833
|
});
|
|
17834
17834
|
} else {
|
|
17835
17835
|
return checkEnv(vendor.pr);
|
|
@@ -18296,8 +18296,8 @@ function setLogLevelFromEnv(key, environment, values) {
|
|
|
18296
18296
|
}
|
|
18297
18297
|
function parseEnvironment(values) {
|
|
18298
18298
|
var environment = {};
|
|
18299
|
-
for (var
|
|
18300
|
-
var key =
|
|
18299
|
+
for (var env4 in DEFAULT_ENVIRONMENT) {
|
|
18300
|
+
var key = env4;
|
|
18301
18301
|
switch (key) {
|
|
18302
18302
|
case "OTEL_LOG_LEVEL":
|
|
18303
18303
|
setLogLevelFromEnv(key, environment, values);
|
|
@@ -54475,12 +54475,12 @@ init_esm_shims();
|
|
|
54475
54475
|
init_esm_shims();
|
|
54476
54476
|
import process13 from "node:process";
|
|
54477
54477
|
function isUnicodeSupported() {
|
|
54478
|
-
const { env:
|
|
54479
|
-
const { TERM, TERM_PROGRAM } =
|
|
54478
|
+
const { env: env4 } = process13;
|
|
54479
|
+
const { TERM, TERM_PROGRAM } = env4;
|
|
54480
54480
|
if (process13.platform !== "win32") {
|
|
54481
54481
|
return TERM !== "linux";
|
|
54482
54482
|
}
|
|
54483
|
-
return Boolean(
|
|
54483
|
+
return Boolean(env4.WT_SESSION) || Boolean(env4.TERMINUS_SUBLIME) || env4.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env4.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
54484
54484
|
}
|
|
54485
54485
|
|
|
54486
54486
|
// ../cli-ui-kit/src/components/UnorderedList/DefaultMarker.ts
|
|
@@ -64021,9 +64021,10 @@ var DebugLogContext = (0, import_react79.createContext)(null);
|
|
|
64021
64021
|
// ../cli-env/src/index.ts
|
|
64022
64022
|
init_esm_shims();
|
|
64023
64023
|
var import_ci_info = __toESM(require_ci_info2(), 1);
|
|
64024
|
+
import { env as env3 } from "node:process";
|
|
64024
64025
|
var remoteLogContextSchema = zod_default.record(zod_default.string(), zod_default.unknown());
|
|
64025
64026
|
function getRemoteLogContext() {
|
|
64026
|
-
const remoteContext =
|
|
64027
|
+
const remoteContext = env3.REMOTE_MACHINE_LOG_CONTEXT;
|
|
64027
64028
|
if (!remoteContext) {
|
|
64028
64029
|
return {};
|
|
64029
64030
|
}
|
|
@@ -64039,10 +64040,11 @@ var createEnv = () => {
|
|
|
64039
64040
|
return {
|
|
64040
64041
|
isCI: overrides2.isCI ?? import_ci_info.default.isCI,
|
|
64041
64042
|
isPR: overrides2.isPR ?? import_ci_info.default.isPR,
|
|
64042
|
-
ciName: overrides2.ciName ?? import_ci_info.default.name ??
|
|
64043
|
-
cliEnvName: overrides2.cliEnvName ??
|
|
64044
|
-
cliTrackingId: overrides2.cliTrackingId ??
|
|
64045
|
-
remoteLogContext: getRemoteLogContext()
|
|
64043
|
+
ciName: overrides2.ciName ?? import_ci_info.default.name ?? env3.CI_NAME ?? null,
|
|
64044
|
+
cliEnvName: overrides2.cliEnvName ?? env3.WIX_RUNTIME_ENVIRONMENT ?? null,
|
|
64045
|
+
cliTrackingId: overrides2.cliTrackingId ?? env3.TRACKING_ID ?? null,
|
|
64046
|
+
remoteLogContext: getRemoteLogContext(),
|
|
64047
|
+
devCenterDraftOverrides: env3.WIX_CLI_DEV_CENTER_DRAFT_OVERRIDES === "true"
|
|
64046
64048
|
};
|
|
64047
64049
|
};
|
|
64048
64050
|
|
|
@@ -65707,13 +65709,13 @@ ${errorMessage2}`
|
|
|
65707
65709
|
}
|
|
65708
65710
|
);
|
|
65709
65711
|
},
|
|
65710
|
-
|
|
65712
|
+
FailedToGetAppEnvironmentVariablesByEnvironment: () => {
|
|
65711
65713
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to pull environment variables." });
|
|
65712
65714
|
},
|
|
65713
|
-
|
|
65715
|
+
FailedToBulkUpsertAppEnvironmentVariables: () => {
|
|
65714
65716
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to set/update environment variable." });
|
|
65715
65717
|
},
|
|
65716
|
-
|
|
65718
|
+
FailedToDeleteAppEnvironmentVariableByEnvironmentAndKey: () => {
|
|
65717
65719
|
return () => /* @__PURE__ */ import_react83.default.createElement(SystemErrorMessage, { message: "Failed to remove environment variable." });
|
|
65718
65720
|
},
|
|
65719
65721
|
FailedToUploadStaticFiles: () => {
|
|
@@ -65887,6 +65889,35 @@ ${errorMessage2}`
|
|
|
65887
65889
|
message: `Failed to create a companion app for your project.`
|
|
65888
65890
|
}
|
|
65889
65891
|
);
|
|
65892
|
+
},
|
|
65893
|
+
MultipleConfigFiles: ({ paths }) => {
|
|
65894
|
+
return () => /* @__PURE__ */ import_react83.default.createElement(
|
|
65895
|
+
ErrorMessage,
|
|
65896
|
+
{
|
|
65897
|
+
cause,
|
|
65898
|
+
message: defaultOutdent`Found multiple Wix config files. Please keep only one:
|
|
65899
|
+
${paths.join("\n")}`
|
|
65900
|
+
}
|
|
65901
|
+
);
|
|
65902
|
+
},
|
|
65903
|
+
ConfigNoDefaultExport: ({ path: path4 }) => {
|
|
65904
|
+
return () => /* @__PURE__ */ import_react83.default.createElement(
|
|
65905
|
+
ErrorMessage,
|
|
65906
|
+
{
|
|
65907
|
+
cause,
|
|
65908
|
+
message: `No default export in Wix config file at "${path4}"`
|
|
65909
|
+
}
|
|
65910
|
+
);
|
|
65911
|
+
},
|
|
65912
|
+
InvalidConfigDefinition: ({ reason }) => {
|
|
65913
|
+
return () => /* @__PURE__ */ import_react83.default.createElement(
|
|
65914
|
+
ErrorMessage,
|
|
65915
|
+
{
|
|
65916
|
+
cause,
|
|
65917
|
+
message: "Invalid Wix config definition.",
|
|
65918
|
+
hint: reason
|
|
65919
|
+
}
|
|
65920
|
+
);
|
|
65890
65921
|
}
|
|
65891
65922
|
});
|
|
65892
65923
|
}
|
|
@@ -70416,7 +70447,7 @@ async function createPanorama(options) {
|
|
|
70416
70447
|
aiAgentName: aiAgentName2
|
|
70417
70448
|
} = options;
|
|
70418
70449
|
const userConfig = await readUserConfig();
|
|
70419
|
-
const
|
|
70450
|
+
const env4 = createEnv();
|
|
70420
70451
|
const factory = panoramaClientFactory({
|
|
70421
70452
|
baseParams: {
|
|
70422
70453
|
platform: Platform.Standalone,
|
|
@@ -70430,11 +70461,11 @@ async function createPanorama(options) {
|
|
|
70430
70461
|
silent: true
|
|
70431
70462
|
},
|
|
70432
70463
|
data: {
|
|
70433
|
-
cliTrackingId:
|
|
70434
|
-
cliEnvName:
|
|
70464
|
+
cliTrackingId: env4.cliTrackingId,
|
|
70465
|
+
cliEnvName: env4.cliEnvName,
|
|
70435
70466
|
cliSessionId: cliSessionId2,
|
|
70436
70467
|
aiAgentName: aiAgentName2,
|
|
70437
|
-
...
|
|
70468
|
+
...env4.remoteLogContext
|
|
70438
70469
|
}
|
|
70439
70470
|
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
70440
70471
|
const panorama2 = createPanoramaWrapper(factory);
|
|
@@ -72052,9 +72083,9 @@ var VersionStatus;
|
|
|
72052
72083
|
VersionStatus3["RELEASED"] = "RELEASED";
|
|
72053
72084
|
})(VersionStatus || (VersionStatus = {}));
|
|
72054
72085
|
var SortOrder;
|
|
72055
|
-
(function(
|
|
72056
|
-
|
|
72057
|
-
|
|
72086
|
+
(function(SortOrder5) {
|
|
72087
|
+
SortOrder5["ASC"] = "ASC";
|
|
72088
|
+
SortOrder5["DESC"] = "DESC";
|
|
72058
72089
|
})(SortOrder || (SortOrder = {}));
|
|
72059
72090
|
var RequestedFields;
|
|
72060
72091
|
(function(RequestedFields3) {
|
|
@@ -72091,12 +72122,12 @@ var JoinedConditionOperator;
|
|
|
72091
72122
|
JoinedConditionOperator2["AND"] = "AND";
|
|
72092
72123
|
})(JoinedConditionOperator || (JoinedConditionOperator = {}));
|
|
72093
72124
|
var WebhookIdentityType;
|
|
72094
|
-
(function(
|
|
72095
|
-
|
|
72096
|
-
|
|
72097
|
-
|
|
72098
|
-
|
|
72099
|
-
|
|
72125
|
+
(function(WebhookIdentityType11) {
|
|
72126
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
72127
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
72128
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
72129
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
72130
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
72100
72131
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
72101
72132
|
|
|
72102
72133
|
// ../../node_modules/@wix/ambassador-devcenter-dsm-v1-development-site/build/es/http.impl.js
|
|
@@ -73296,12 +73327,12 @@ function installApp(payload7) {
|
|
|
73296
73327
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
73297
73328
|
init_esm_shims();
|
|
73298
73329
|
var WebhookIdentityType2;
|
|
73299
|
-
(function(
|
|
73300
|
-
|
|
73301
|
-
|
|
73302
|
-
|
|
73303
|
-
|
|
73304
|
-
|
|
73330
|
+
(function(WebhookIdentityType11) {
|
|
73331
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
73332
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
73333
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
73334
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
73335
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
73305
73336
|
})(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
|
|
73306
73337
|
var InstallType;
|
|
73307
73338
|
(function(InstallType2) {
|
|
@@ -76127,12 +76158,12 @@ var VersionType;
|
|
|
76127
76158
|
VersionType2["DEV_VERSION"] = "DEV_VERSION";
|
|
76128
76159
|
})(VersionType || (VersionType = {}));
|
|
76129
76160
|
var WebhookIdentityType3;
|
|
76130
|
-
(function(
|
|
76131
|
-
|
|
76132
|
-
|
|
76133
|
-
|
|
76134
|
-
|
|
76135
|
-
|
|
76161
|
+
(function(WebhookIdentityType11) {
|
|
76162
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
76163
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
76164
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
76165
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
76166
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
76136
76167
|
})(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
|
|
76137
76168
|
|
|
76138
76169
|
// ../dev-center-client/src/schemas.ts
|
|
@@ -78598,12 +78629,12 @@ var WritingModeValue2;
|
|
|
78598
78629
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
78599
78630
|
})(WritingModeValue2 || (WritingModeValue2 = {}));
|
|
78600
78631
|
var WebhookIdentityType4;
|
|
78601
|
-
(function(
|
|
78602
|
-
|
|
78603
|
-
|
|
78604
|
-
|
|
78605
|
-
|
|
78606
|
-
|
|
78632
|
+
(function(WebhookIdentityType11) {
|
|
78633
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
78634
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
78635
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
78636
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
78637
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
78607
78638
|
})(WebhookIdentityType4 || (WebhookIdentityType4 = {}));
|
|
78608
78639
|
var ValidationTargetMethod;
|
|
78609
78640
|
(function(ValidationTargetMethod2) {
|
|
@@ -80782,24 +80813,25 @@ function getAppProject(payload7) {
|
|
|
80782
80813
|
return __getAppProject;
|
|
80783
80814
|
}
|
|
80784
80815
|
|
|
80785
|
-
// ../../node_modules/@wix/ambassador-velo-backend-
|
|
80816
|
+
// ../../node_modules/@wix/ambassador-velo-backend-v2-app-environment-variable/es/build/http.impl.js
|
|
80786
80817
|
init_esm_shims();
|
|
80787
|
-
var
|
|
80818
|
+
var _appEnvironmentVariable = {
|
|
80788
80819
|
createdDate: "google.protobuf.Timestamp",
|
|
80789
80820
|
updatedDate: "google.protobuf.Timestamp"
|
|
80790
80821
|
};
|
|
80791
|
-
var
|
|
80792
|
-
var
|
|
80793
|
-
var
|
|
80794
|
-
|
|
80795
|
-
|
|
80822
|
+
var _bulkAppEnvironmentVariableResult = { item: "_appEnvironmentVariable" };
|
|
80823
|
+
var _bulkUpsertAppEnvironmentVariablesRequest = {};
|
|
80824
|
+
var _bulkUpsertAppEnvironmentVariablesResponse = {
|
|
80825
|
+
results: "_bulkAppEnvironmentVariableResult",
|
|
80826
|
+
appEnvironmentVariables: "_appEnvironmentVariable"
|
|
80796
80827
|
};
|
|
80797
|
-
var
|
|
80798
|
-
|
|
80799
|
-
|
|
80828
|
+
var _deleteAppEnvironmentVariableByEnvironmentAndKeyRequest = {};
|
|
80829
|
+
var _deleteAppEnvironmentVariableByEnvironmentAndKeyResponse = {};
|
|
80830
|
+
var _getAppEnvironmentVariablesByEnvironmentRequest = {};
|
|
80831
|
+
var _getAppEnvironmentVariablesByEnvironmentResponse = {
|
|
80832
|
+
appEnvironmentVariables: "_appEnvironmentVariable"
|
|
80800
80833
|
};
|
|
80801
|
-
|
|
80802
|
-
function resolveWixVeloBackendV1AppEnvironmentManagementUrl(opts) {
|
|
80834
|
+
function resolveWixVeloBackendV2AppEnvironmentVariableServiceUrl(opts) {
|
|
80803
80835
|
var domainToMappings = {
|
|
80804
80836
|
"manage._base_domain_": [
|
|
80805
80837
|
{
|
|
@@ -80810,23 +80842,21 @@ function resolveWixVeloBackendV1AppEnvironmentManagementUrl(opts) {
|
|
|
80810
80842
|
};
|
|
80811
80843
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
80812
80844
|
}
|
|
80813
|
-
function
|
|
80814
|
-
var _a3 = serializer(
|
|
80815
|
-
var fromRes = serializer(
|
|
80816
|
-
|
|
80817
|
-
}).fromJSON;
|
|
80818
|
-
function __upsertAppEnvironment(_a4) {
|
|
80845
|
+
function bulkUpsertAppEnvironmentVariables(payload7) {
|
|
80846
|
+
var _a3 = serializer(_bulkUpsertAppEnvironmentVariablesRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80847
|
+
var fromRes = serializer(_bulkUpsertAppEnvironmentVariablesResponse, { _appEnvironmentVariable, _bulkAppEnvironmentVariableResult }).fromJSON;
|
|
80848
|
+
function __bulkUpsertAppEnvironmentVariables(_a4) {
|
|
80819
80849
|
var host = _a4.host;
|
|
80820
80850
|
var serializedData = toReq(payload7);
|
|
80821
80851
|
var metadata = {
|
|
80822
|
-
entityFqdn: "wix.velo.backend.
|
|
80852
|
+
entityFqdn: "wix.velo.backend.v2.app_environment_variable",
|
|
80823
80853
|
method: "POST",
|
|
80824
|
-
methodFqn: "wix.velo.backend.
|
|
80854
|
+
methodFqn: "wix.velo.backend.v2.AppEnvironmentVariableService.BulkUpsertAppEnvironmentVariables",
|
|
80825
80855
|
migrationOptions: {
|
|
80826
80856
|
optInTransformResponse: true
|
|
80827
80857
|
},
|
|
80828
|
-
url:
|
|
80829
|
-
protoPath: "/
|
|
80858
|
+
url: resolveWixVeloBackendV2AppEnvironmentVariableServiceUrl({
|
|
80859
|
+
protoPath: "/v2/bulk/app-projects/{appProjectId}/app-environment-variables/upsert",
|
|
80830
80860
|
data: serializedData,
|
|
80831
80861
|
host
|
|
80832
80862
|
}),
|
|
@@ -80835,27 +80865,25 @@ function upsertAppEnvironment(payload7) {
|
|
|
80835
80865
|
};
|
|
80836
80866
|
return metadata;
|
|
80837
80867
|
}
|
|
80838
|
-
|
|
80839
|
-
|
|
80840
|
-
return
|
|
80868
|
+
__bulkUpsertAppEnvironmentVariables.fromReq = fromReq;
|
|
80869
|
+
__bulkUpsertAppEnvironmentVariables.__isAmbassador = true;
|
|
80870
|
+
return __bulkUpsertAppEnvironmentVariables;
|
|
80841
80871
|
}
|
|
80842
|
-
function
|
|
80843
|
-
var _a3 = serializer(
|
|
80844
|
-
var fromRes = serializer(
|
|
80845
|
-
|
|
80846
|
-
}).fromJSON;
|
|
80847
|
-
function __getAppEnvironmentByName(_a4) {
|
|
80872
|
+
function getAppEnvironmentVariablesByEnvironment(payload7) {
|
|
80873
|
+
var _a3 = serializer(_getAppEnvironmentVariablesByEnvironmentRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80874
|
+
var fromRes = serializer(_getAppEnvironmentVariablesByEnvironmentResponse, { _appEnvironmentVariable }).fromJSON;
|
|
80875
|
+
function __getAppEnvironmentVariablesByEnvironment(_a4) {
|
|
80848
80876
|
var host = _a4.host;
|
|
80849
80877
|
var serializedData = toReq(payload7);
|
|
80850
80878
|
var metadata = {
|
|
80851
|
-
entityFqdn: "wix.velo.backend.
|
|
80879
|
+
entityFqdn: "wix.velo.backend.v2.app_environment_variable",
|
|
80852
80880
|
method: "GET",
|
|
80853
|
-
methodFqn: "wix.velo.backend.
|
|
80881
|
+
methodFqn: "wix.velo.backend.v2.AppEnvironmentVariableService.GetAppEnvironmentVariablesByEnvironment",
|
|
80854
80882
|
migrationOptions: {
|
|
80855
80883
|
optInTransformResponse: true
|
|
80856
80884
|
},
|
|
80857
|
-
url:
|
|
80858
|
-
protoPath: "/
|
|
80885
|
+
url: resolveWixVeloBackendV2AppEnvironmentVariableServiceUrl({
|
|
80886
|
+
protoPath: "/v2/app-projects/{appProjectId}/app-environment-variables/environment/{environment}",
|
|
80859
80887
|
data: serializedData,
|
|
80860
80888
|
host
|
|
80861
80889
|
}),
|
|
@@ -80864,38 +80892,66 @@ function getAppEnvironmentByName(payload7) {
|
|
|
80864
80892
|
};
|
|
80865
80893
|
return metadata;
|
|
80866
80894
|
}
|
|
80867
|
-
|
|
80868
|
-
|
|
80869
|
-
return
|
|
80895
|
+
__getAppEnvironmentVariablesByEnvironment.fromReq = fromReq;
|
|
80896
|
+
__getAppEnvironmentVariablesByEnvironment.__isAmbassador = true;
|
|
80897
|
+
return __getAppEnvironmentVariablesByEnvironment;
|
|
80870
80898
|
}
|
|
80871
|
-
function
|
|
80872
|
-
var _a3 = serializer(
|
|
80873
|
-
var fromRes = serializer(
|
|
80874
|
-
function
|
|
80899
|
+
function deleteAppEnvironmentVariableByEnvironmentAndKey(payload7) {
|
|
80900
|
+
var _a3 = serializer(_deleteAppEnvironmentVariableByEnvironmentAndKeyRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
80901
|
+
var fromRes = serializer(_deleteAppEnvironmentVariableByEnvironmentAndKeyResponse, {}).fromJSON;
|
|
80902
|
+
function __deleteAppEnvironmentVariableByEnvironmentAndKey(_a4) {
|
|
80875
80903
|
var host = _a4.host;
|
|
80876
80904
|
var serializedData = toReq(payload7);
|
|
80877
80905
|
var metadata = {
|
|
80878
|
-
entityFqdn: "wix.velo.backend.
|
|
80879
|
-
method: "
|
|
80880
|
-
methodFqn: "wix.velo.backend.
|
|
80906
|
+
entityFqdn: "wix.velo.backend.v2.app_environment_variable",
|
|
80907
|
+
method: "DELETE",
|
|
80908
|
+
methodFqn: "wix.velo.backend.v2.AppEnvironmentVariableService.DeleteAppEnvironmentVariableByEnvironmentAndKey",
|
|
80881
80909
|
migrationOptions: {
|
|
80882
80910
|
optInTransformResponse: true
|
|
80883
80911
|
},
|
|
80884
|
-
url:
|
|
80885
|
-
protoPath: "/
|
|
80912
|
+
url: resolveWixVeloBackendV2AppEnvironmentVariableServiceUrl({
|
|
80913
|
+
protoPath: "/v2/app-projects/{appProjectId}/app-environment-variables/environment/{environment}/key/{key}",
|
|
80886
80914
|
data: serializedData,
|
|
80887
80915
|
host
|
|
80888
80916
|
}),
|
|
80889
|
-
|
|
80917
|
+
params: toURLSearchParams(serializedData),
|
|
80890
80918
|
transformResponse: fromRes
|
|
80891
80919
|
};
|
|
80892
80920
|
return metadata;
|
|
80893
80921
|
}
|
|
80894
|
-
|
|
80895
|
-
|
|
80896
|
-
return
|
|
80922
|
+
__deleteAppEnvironmentVariableByEnvironmentAndKey.fromReq = fromReq;
|
|
80923
|
+
__deleteAppEnvironmentVariableByEnvironmentAndKey.__isAmbassador = true;
|
|
80924
|
+
return __deleteAppEnvironmentVariableByEnvironmentAndKey;
|
|
80897
80925
|
}
|
|
80898
80926
|
|
|
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
|
+
|
|
80899
80955
|
// ../backend-as-a-service-client/src/schemas.ts
|
|
80900
80956
|
init_esm_shims();
|
|
80901
80957
|
|
|
@@ -80914,19 +80970,19 @@ var DeploymentState;
|
|
|
80914
80970
|
DeploymentState2["DEPLOY_SUCCESS"] = "DEPLOY_SUCCESS";
|
|
80915
80971
|
DeploymentState2["DEPLOY_FAILED"] = "DEPLOY_FAILED";
|
|
80916
80972
|
})(DeploymentState || (DeploymentState = {}));
|
|
80917
|
-
var
|
|
80918
|
-
(function(
|
|
80919
|
-
|
|
80920
|
-
|
|
80921
|
-
})(
|
|
80922
|
-
var
|
|
80923
|
-
(function(
|
|
80924
|
-
|
|
80925
|
-
|
|
80926
|
-
|
|
80927
|
-
|
|
80928
|
-
|
|
80929
|
-
})(
|
|
80973
|
+
var SortOrder3;
|
|
80974
|
+
(function(SortOrder5) {
|
|
80975
|
+
SortOrder5["ASC"] = "ASC";
|
|
80976
|
+
SortOrder5["DESC"] = "DESC";
|
|
80977
|
+
})(SortOrder3 || (SortOrder3 = {}));
|
|
80978
|
+
var WebhookIdentityType6;
|
|
80979
|
+
(function(WebhookIdentityType11) {
|
|
80980
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
80981
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
80982
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
80983
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
80984
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
80985
|
+
})(WebhookIdentityType6 || (WebhookIdentityType6 = {}));
|
|
80930
80986
|
|
|
80931
80987
|
// ../backend-as-a-service-client/src/schemas.ts
|
|
80932
80988
|
var staticFileMetadata = external_exports.object({
|
|
@@ -80947,13 +81003,6 @@ var AppDeploymentSchema = external_exports.object({
|
|
|
80947
81003
|
var CompleteAppDeploymentSchema = external_exports.object({
|
|
80948
81004
|
appDeployment: AppDeploymentSchema
|
|
80949
81005
|
});
|
|
80950
|
-
var AppEnvironmentSchema = external_exports.object({
|
|
80951
|
-
appEnvironment: external_exports.object({
|
|
80952
|
-
id: external_exports.string(),
|
|
80953
|
-
variables: external_exports.record(external_exports.string()),
|
|
80954
|
-
secrets: external_exports.record(external_exports.string())
|
|
80955
|
-
}).passthrough()
|
|
80956
|
-
});
|
|
80957
81006
|
var AppProjectSchema = external_exports.object({
|
|
80958
81007
|
appProject: external_exports.object({
|
|
80959
81008
|
id: external_exports.string().uuid(),
|
|
@@ -80988,6 +81037,28 @@ var StaticFileUploadSchema = external_exports.object({
|
|
|
80988
81037
|
jwt: external_exports.string().optional()
|
|
80989
81038
|
}).optional()
|
|
80990
81039
|
}).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
|
+
});
|
|
80991
81062
|
|
|
80992
81063
|
// ../backend-as-a-service-client/src/backend-as-a-service-client.ts
|
|
80993
81064
|
var { minRetryTimeout } = getTestOverrides();
|
|
@@ -81139,64 +81210,74 @@ var BackendAsAServiceClient = class {
|
|
|
81139
81210
|
}
|
|
81140
81211
|
};
|
|
81141
81212
|
// Env management
|
|
81142
|
-
|
|
81213
|
+
getAppEnvironmentVariables = async (appId, environment) => {
|
|
81143
81214
|
try {
|
|
81144
81215
|
const { data } = await pRetry(
|
|
81145
81216
|
() => this.httpClient.request(
|
|
81146
|
-
|
|
81217
|
+
getAppEnvironmentVariablesByEnvironment({
|
|
81147
81218
|
appProjectId: appId,
|
|
81148
|
-
|
|
81219
|
+
environment
|
|
81149
81220
|
})
|
|
81150
81221
|
),
|
|
81151
81222
|
this.retryOptions
|
|
81152
81223
|
);
|
|
81153
|
-
|
|
81224
|
+
const { appEnvironmentVariables } = GetAppEnvironmentVariablesSchema.parse(data);
|
|
81225
|
+
return appEnvironmentVariables;
|
|
81154
81226
|
} catch (e2) {
|
|
81155
81227
|
throw new CliError({
|
|
81156
|
-
code: CliErrorCode.
|
|
81228
|
+
code: CliErrorCode.FailedToGetAppEnvironmentVariablesByEnvironment(),
|
|
81157
81229
|
cause: e2
|
|
81158
81230
|
});
|
|
81159
81231
|
}
|
|
81160
81232
|
};
|
|
81161
|
-
|
|
81233
|
+
upsertAppEnvironmentVariables = async (appId, environment, variables) => {
|
|
81234
|
+
let result;
|
|
81162
81235
|
try {
|
|
81163
81236
|
const { data } = await this.httpClient.request(
|
|
81164
|
-
|
|
81165
|
-
|
|
81166
|
-
|
|
81167
|
-
|
|
81168
|
-
|
|
81169
|
-
|
|
81237
|
+
bulkUpsertAppEnvironmentVariables({
|
|
81238
|
+
appProjectId: appId,
|
|
81239
|
+
environment,
|
|
81240
|
+
variables,
|
|
81241
|
+
mutability: Mutability.STATIC,
|
|
81242
|
+
returnEntity: true,
|
|
81243
|
+
returnAllEnvironment: true
|
|
81170
81244
|
})
|
|
81171
81245
|
);
|
|
81172
|
-
|
|
81246
|
+
result = UpsertAppEnvironmentVariablesSchema.parse(data);
|
|
81173
81247
|
} catch (e2) {
|
|
81174
81248
|
throw new CliError({
|
|
81175
|
-
code: CliErrorCode.
|
|
81249
|
+
code: CliErrorCode.FailedToBulkUpsertAppEnvironmentVariables(),
|
|
81176
81250
|
cause: e2
|
|
81177
81251
|
});
|
|
81178
81252
|
}
|
|
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;
|
|
81179
81262
|
};
|
|
81180
|
-
|
|
81263
|
+
deleteAppEnvironmentVariable = async (appId, environment, variable) => {
|
|
81181
81264
|
try {
|
|
81182
|
-
|
|
81183
|
-
|
|
81184
|
-
|
|
81185
|
-
|
|
81186
|
-
|
|
81187
|
-
|
|
81188
|
-
removeAppEnvironmentVariables({
|
|
81189
|
-
appEnvironmentId: appEnvironment.id,
|
|
81190
|
-
appProjectId: appId,
|
|
81191
|
-
variables: [variable]
|
|
81192
|
-
})
|
|
81193
|
-
),
|
|
81194
|
-
this.retryOptions
|
|
81265
|
+
await this.httpClient.request(
|
|
81266
|
+
deleteAppEnvironmentVariableByEnvironmentAndKey({
|
|
81267
|
+
appProjectId: appId,
|
|
81268
|
+
environment,
|
|
81269
|
+
key: variable
|
|
81270
|
+
})
|
|
81195
81271
|
);
|
|
81196
|
-
return AppEnvironmentSchema.parse(data).appEnvironment;
|
|
81197
81272
|
} 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
|
+
}
|
|
81198
81279
|
throw new CliError({
|
|
81199
|
-
code: CliErrorCode.
|
|
81280
|
+
code: CliErrorCode.FailedToDeleteAppEnvironmentVariableByEnvironmentAndKey(),
|
|
81200
81281
|
cause: e2
|
|
81201
81282
|
});
|
|
81202
81283
|
}
|
|
@@ -81224,7 +81305,6 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81224
81305
|
backendAsAServiceClient
|
|
81225
81306
|
}) => {
|
|
81226
81307
|
let appProject = await backendAsAServiceClient.getAppProject(appId);
|
|
81227
|
-
let appEnvironment;
|
|
81228
81308
|
if (!appProject) {
|
|
81229
81309
|
const publicKeyAndSecret = await devCenterClient.getAppSecret({ appId });
|
|
81230
81310
|
appProject = await backendAsAServiceClient.createAppProject({
|
|
@@ -81234,7 +81314,7 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81234
81314
|
cloudProvider: CloudProvider.CLOUD_FLARE,
|
|
81235
81315
|
projectType: "APP"
|
|
81236
81316
|
});
|
|
81237
|
-
|
|
81317
|
+
return await backendAsAServiceClient.upsertAppEnvironmentVariables(
|
|
81238
81318
|
appProject.id,
|
|
81239
81319
|
DEFAULT_ENVIRONMENT_NAME,
|
|
81240
81320
|
{
|
|
@@ -81245,13 +81325,10 @@ var createAppProjectAndEnvironment = async ({
|
|
|
81245
81325
|
}
|
|
81246
81326
|
);
|
|
81247
81327
|
}
|
|
81248
|
-
|
|
81249
|
-
|
|
81250
|
-
|
|
81251
|
-
|
|
81252
|
-
);
|
|
81253
|
-
}
|
|
81254
|
-
return { variables: appEnvironment.variables };
|
|
81328
|
+
return await backendAsAServiceClient.getAppEnvironmentVariables(
|
|
81329
|
+
appProject.id,
|
|
81330
|
+
DEFAULT_ENVIRONMENT_NAME
|
|
81331
|
+
);
|
|
81255
81332
|
};
|
|
81256
81333
|
function generateRandomSlug() {
|
|
81257
81334
|
return randomBytes(8).toString("hex");
|
|
@@ -81282,7 +81359,7 @@ var useAppCreation = ({ extendAppId }) => {
|
|
|
81282
81359
|
}
|
|
81283
81360
|
})
|
|
81284
81361
|
);
|
|
81285
|
-
const
|
|
81362
|
+
const environmentVariables = await createAppProjectAndEnvironment({
|
|
81286
81363
|
appId,
|
|
81287
81364
|
appName,
|
|
81288
81365
|
devCenterClient,
|
|
@@ -81519,7 +81596,7 @@ var ExistingAppFlow = ({
|
|
|
81519
81596
|
);
|
|
81520
81597
|
const registerAppCallback = useAsyncCallback3(
|
|
81521
81598
|
async (_2, { appData, packageName }) => {
|
|
81522
|
-
const
|
|
81599
|
+
const environmentVariables = await createAppProjectAndEnvironment({
|
|
81523
81600
|
appId: appData.appId,
|
|
81524
81601
|
appName: appData.appName,
|
|
81525
81602
|
devCenterClient,
|
|
@@ -81530,7 +81607,7 @@ var ExistingAppFlow = ({
|
|
|
81530
81607
|
packageName,
|
|
81531
81608
|
template: TemplateSource.Default(),
|
|
81532
81609
|
mcpConfigResult: McpConfigResult.Canceled(),
|
|
81533
|
-
environmentVariables
|
|
81610
|
+
environmentVariables
|
|
81534
81611
|
});
|
|
81535
81612
|
}
|
|
81536
81613
|
);
|
|
@@ -81801,7 +81878,7 @@ function getTasks({
|
|
|
81801
81878
|
cause: e2
|
|
81802
81879
|
});
|
|
81803
81880
|
}
|
|
81804
|
-
const { generateApp } = await import("./generator-
|
|
81881
|
+
const { generateApp } = await import("./generator-X6BKTWQ7.js");
|
|
81805
81882
|
await generateApp({
|
|
81806
81883
|
packageName,
|
|
81807
81884
|
packageFolder,
|
|
@@ -82585,7 +82662,7 @@ var useCreateProject = (businessId) => {
|
|
|
82585
82662
|
} = useDevCenterClient({
|
|
82586
82663
|
siteId: businessId
|
|
82587
82664
|
});
|
|
82588
|
-
const { createAppProject: createAppProject2,
|
|
82665
|
+
const { createAppProject: createAppProject2, upsertAppEnvironmentVariables } = useBackendAsAServiceClient();
|
|
82589
82666
|
return useAsyncCallback3(
|
|
82590
82667
|
async (_2, {
|
|
82591
82668
|
businessName,
|
|
@@ -82626,7 +82703,7 @@ var useCreateProject = (businessId) => {
|
|
|
82626
82703
|
],
|
|
82627
82704
|
redirectUrlWixPages: prodBaseDomain
|
|
82628
82705
|
});
|
|
82629
|
-
const
|
|
82706
|
+
const environmentVariables = await upsertAppEnvironmentVariables(
|
|
82630
82707
|
appProject.id,
|
|
82631
82708
|
DEFAULT_ENVIRONMENT_NAME2,
|
|
82632
82709
|
{
|
|
@@ -82642,7 +82719,7 @@ var useCreateProject = (businessId) => {
|
|
|
82642
82719
|
instanceId: appInstall.appInstance.id,
|
|
82643
82720
|
appSecret: publicKeyAndSecret.appSecret,
|
|
82644
82721
|
webhookPublicKey: publicKeyAndSecret.webhookPublicKey,
|
|
82645
|
-
environmentVariables
|
|
82722
|
+
environmentVariables,
|
|
82646
82723
|
baseUrl: appProject.baseUrl
|
|
82647
82724
|
};
|
|
82648
82725
|
return projectData;
|
|
@@ -92677,14 +92754,14 @@ var Action;
|
|
|
92677
92754
|
Action2["OVERWRITE"] = "OVERWRITE";
|
|
92678
92755
|
Action2["COPY"] = "COPY";
|
|
92679
92756
|
})(Action || (Action = {}));
|
|
92680
|
-
var
|
|
92681
|
-
(function(
|
|
92682
|
-
|
|
92683
|
-
|
|
92684
|
-
|
|
92685
|
-
|
|
92686
|
-
|
|
92687
|
-
})(
|
|
92757
|
+
var WebhookIdentityType7;
|
|
92758
|
+
(function(WebhookIdentityType11) {
|
|
92759
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
92760
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92761
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
92762
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
92763
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
92764
|
+
})(WebhookIdentityType7 || (WebhookIdentityType7 = {}));
|
|
92688
92765
|
|
|
92689
92766
|
// ../../node_modules/@wix/ambassador-velo-github-v1-github-onboarding-status/build/es/types.impl.js
|
|
92690
92767
|
init_esm_shims();
|
|
@@ -92766,14 +92843,14 @@ var DeleteStatus;
|
|
|
92766
92843
|
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
92767
92844
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
92768
92845
|
})(DeleteStatus || (DeleteStatus = {}));
|
|
92769
|
-
var
|
|
92770
|
-
(function(
|
|
92771
|
-
|
|
92772
|
-
|
|
92773
|
-
|
|
92774
|
-
|
|
92775
|
-
|
|
92776
|
-
})(
|
|
92846
|
+
var WebhookIdentityType8;
|
|
92847
|
+
(function(WebhookIdentityType11) {
|
|
92848
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
92849
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92850
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
92851
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
92852
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
92853
|
+
})(WebhookIdentityType8 || (WebhookIdentityType8 = {}));
|
|
92777
92854
|
|
|
92778
92855
|
// ../velo-client/src/velo-client.ts
|
|
92779
92856
|
init_esm_shims();
|
|
@@ -92804,14 +92881,14 @@ var RcLabel;
|
|
|
92804
92881
|
RcLabel2["UNKNOWN"] = "UNKNOWN";
|
|
92805
92882
|
RcLabel2["WIX_CLI"] = "WIX_CLI";
|
|
92806
92883
|
})(RcLabel || (RcLabel = {}));
|
|
92807
|
-
var
|
|
92808
|
-
(function(
|
|
92809
|
-
|
|
92810
|
-
|
|
92811
|
-
|
|
92812
|
-
|
|
92813
|
-
|
|
92814
|
-
})(
|
|
92884
|
+
var WebhookIdentityType9;
|
|
92885
|
+
(function(WebhookIdentityType11) {
|
|
92886
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
92887
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
92888
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
92889
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
92890
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
92891
|
+
})(WebhookIdentityType9 || (WebhookIdentityType9 = {}));
|
|
92815
92892
|
|
|
92816
92893
|
// ../../node_modules/@wix/ambassador-velo-apps-v1-app/build/es/http.impl.js
|
|
92817
92894
|
init_esm_shims();
|
|
@@ -93479,19 +93556,19 @@ var GitRemoteType;
|
|
|
93479
93556
|
GitRemoteType2["S3"] = "S3";
|
|
93480
93557
|
GitRemoteType2["GITHUB"] = "GITHUB";
|
|
93481
93558
|
})(GitRemoteType || (GitRemoteType = {}));
|
|
93482
|
-
var
|
|
93483
|
-
(function(
|
|
93484
|
-
|
|
93485
|
-
|
|
93486
|
-
|
|
93487
|
-
|
|
93488
|
-
|
|
93489
|
-
})(
|
|
93490
|
-
var
|
|
93491
|
-
(function(
|
|
93492
|
-
|
|
93493
|
-
|
|
93494
|
-
})(
|
|
93559
|
+
var WebhookIdentityType10;
|
|
93560
|
+
(function(WebhookIdentityType11) {
|
|
93561
|
+
WebhookIdentityType11["UNKNOWN"] = "UNKNOWN";
|
|
93562
|
+
WebhookIdentityType11["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
93563
|
+
WebhookIdentityType11["MEMBER"] = "MEMBER";
|
|
93564
|
+
WebhookIdentityType11["WIX_USER"] = "WIX_USER";
|
|
93565
|
+
WebhookIdentityType11["APP"] = "APP";
|
|
93566
|
+
})(WebhookIdentityType10 || (WebhookIdentityType10 = {}));
|
|
93567
|
+
var SortOrder4;
|
|
93568
|
+
(function(SortOrder5) {
|
|
93569
|
+
SortOrder5["ASC"] = "ASC";
|
|
93570
|
+
SortOrder5["DESC"] = "DESC";
|
|
93571
|
+
})(SortOrder4 || (SortOrder4 = {}));
|
|
93495
93572
|
|
|
93496
93573
|
// ../codestore-client/src/schemas.ts
|
|
93497
93574
|
init_esm_shims();
|
|
@@ -94188,7 +94265,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94188
94265
|
var package_default = {
|
|
94189
94266
|
name: "@wix/create-new",
|
|
94190
94267
|
description: "General entry point for creating Wix projects",
|
|
94191
|
-
version: "0.0.
|
|
94268
|
+
version: "0.0.78",
|
|
94192
94269
|
bin: "bin/index.cjs",
|
|
94193
94270
|
devDependencies: {
|
|
94194
94271
|
"@commander-js/extra-typings": "^13.0.0",
|