@wix/ditto-codegen-public 1.0.399 → 1.0.401
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/dist/out.js +41 -1
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -6594,6 +6594,7 @@ var require_http_impl = __commonJS({
|
|
|
6594
6594
|
exports2.stopGeneration = stopGeneration;
|
|
6595
6595
|
exports2.submitUserDecision = submitUserDecision;
|
|
6596
6596
|
exports2.cleanupStaleJobs = cleanupStaleJobs;
|
|
6597
|
+
exports2.handleValidationErrors = handleValidationErrors;
|
|
6597
6598
|
var metro_runtime_1 = require_build();
|
|
6598
6599
|
var ambassador_1 = require_ambassador_index();
|
|
6599
6600
|
var metro_runtime_2 = require_build();
|
|
@@ -6605,6 +6606,8 @@ var require_http_impl = __commonJS({
|
|
|
6605
6606
|
var _createTaskResponse = { job: "_job" };
|
|
6606
6607
|
var _getJobRequest = {};
|
|
6607
6608
|
var _getJobResponse = { job: "_job" };
|
|
6609
|
+
var _handleValidationErrorsRequest = { costUsd: "DOUBLE" };
|
|
6610
|
+
var _handleValidationErrorsResponse = {};
|
|
6608
6611
|
var _job = {
|
|
6609
6612
|
createdAt: "google.protobuf.Timestamp",
|
|
6610
6613
|
updatedAt: "google.protobuf.Timestamp",
|
|
@@ -7025,6 +7028,33 @@ var require_http_impl = __commonJS({
|
|
|
7025
7028
|
__cleanupStaleJobs.__isAmbassador = true;
|
|
7026
7029
|
return __cleanupStaleJobs;
|
|
7027
7030
|
}
|
|
7031
|
+
function handleValidationErrors(payload) {
|
|
7032
|
+
var _a = (0, ambassador_1.serializer)(_handleValidationErrorsRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
7033
|
+
var fromRes = (0, ambassador_1.serializer)(_handleValidationErrorsResponse, {}).fromJSON;
|
|
7034
|
+
function __handleValidationErrors(_a2) {
|
|
7035
|
+
var host = _a2.host;
|
|
7036
|
+
var serializedData = toReq(payload);
|
|
7037
|
+
var metadata = {
|
|
7038
|
+
entityFqdn: "wix.ctp.codegen_job_service.v1.job",
|
|
7039
|
+
method: "POST",
|
|
7040
|
+
methodFqn: "com.wixpress.ditto.codegen_job_service.api.CodegenJobService.HandleValidationErrors",
|
|
7041
|
+
migrationOptions: {
|
|
7042
|
+
optInTransformResponse: true
|
|
7043
|
+
},
|
|
7044
|
+
url: resolveComWixpressDittoCodegenJobServiceApiCodegenJobServiceUrl({
|
|
7045
|
+
protoPath: "/v1/validation-errors",
|
|
7046
|
+
data: serializedData,
|
|
7047
|
+
host
|
|
7048
|
+
}),
|
|
7049
|
+
data: serializedData,
|
|
7050
|
+
transformResponse: fromRes
|
|
7051
|
+
};
|
|
7052
|
+
return metadata;
|
|
7053
|
+
}
|
|
7054
|
+
__handleValidationErrors.fromReq = fromReq;
|
|
7055
|
+
__handleValidationErrors.__isAmbassador = true;
|
|
7056
|
+
return __handleValidationErrors;
|
|
7057
|
+
}
|
|
7028
7058
|
}
|
|
7029
7059
|
});
|
|
7030
7060
|
|
|
@@ -12898,6 +12928,13 @@ var require_checkpoint = __commonJS({
|
|
|
12898
12928
|
var SET_COMMIT_MESSAGE_TOOL = "set-commit-message";
|
|
12899
12929
|
var MAX_COMMIT_MESSAGE_LENGTH = 1e3;
|
|
12900
12930
|
var TRUNCATION_SUFFIX = "\u2026";
|
|
12931
|
+
var COMMON_CONFIG_BY_ENVIRONMENT = {
|
|
12932
|
+
STUDIO_2: { host: "STUDIO2", brand: "studio" }
|
|
12933
|
+
};
|
|
12934
|
+
var commonConfigHeader = (() => {
|
|
12935
|
+
const mapping = process.env.CODEGEN_ENVIRONMENT ? COMMON_CONFIG_BY_ENVIRONMENT[process.env.CODEGEN_ENVIRONMENT] : void 0;
|
|
12936
|
+
return mapping ? encodeURIComponent(JSON.stringify(mapping)) : void 0;
|
|
12937
|
+
})();
|
|
12901
12938
|
var ASSETS_DIR = (0, path_1.join)(__dirname, "..", "assets");
|
|
12902
12939
|
var readAsset = (name) => (0, fs_1.readFileSync)((0, path_1.join)(ASSETS_DIR, name), "utf-8");
|
|
12903
12940
|
var buildCheckpointRules = () => [
|
|
@@ -12984,7 +13021,10 @@ var require_checkpoint = __commonJS({
|
|
|
12984
13021
|
const accessToken = host.auth.getAccessToken();
|
|
12985
13022
|
const orchestratorHttpClient = (0, http_client_1.createHttpClient)({
|
|
12986
13023
|
baseURL: "https://editor.wix.com",
|
|
12987
|
-
headers:
|
|
13024
|
+
headers: {
|
|
13025
|
+
...accessToken ? { Authorization: `Bearer ${accessToken}` } : {},
|
|
13026
|
+
...commonConfigHeader ? { commonconfig: commonConfigHeader } : {}
|
|
13027
|
+
}
|
|
12988
13028
|
});
|
|
12989
13029
|
let outcome;
|
|
12990
13030
|
let capturedCommitMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.401",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"esbuild": "^0.27.2",
|
|
30
30
|
"vitest": "^4.0.16"
|
|
31
31
|
},
|
|
32
|
-
"falconPackageHash": "
|
|
32
|
+
"falconPackageHash": "d334a6c2006988703898fcc80ea93c020eff7e47c3f6d7628b2d0e30"
|
|
33
33
|
}
|