@feastalytics/cli 0.1.0 → 0.1.2
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/README.md +15 -0
- package/dist/cli.js +714 -232
- package/feast/SKILL.md +23 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
// node_modules
|
|
28
|
+
// node_modules/ajv/dist/compile/codegen/code.js
|
|
29
29
|
var require_code = __commonJS({
|
|
30
|
-
"node_modules
|
|
30
|
+
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
31
31
|
"use strict";
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -179,9 +179,9 @@ var require_code = __commonJS({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
// node_modules
|
|
182
|
+
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
183
183
|
var require_scope = __commonJS({
|
|
184
|
-
"node_modules
|
|
184
|
+
"node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
185
185
|
"use strict";
|
|
186
186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
187
187
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -324,9 +324,9 @@ var require_scope = __commonJS({
|
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
|
|
327
|
-
// node_modules
|
|
327
|
+
// node_modules/ajv/dist/compile/codegen/index.js
|
|
328
328
|
var require_codegen = __commonJS({
|
|
329
|
-
"node_modules
|
|
329
|
+
"node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
330
330
|
"use strict";
|
|
331
331
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
332
332
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -1044,9 +1044,9 @@ var require_codegen = __commonJS({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
|
|
1047
|
-
// node_modules
|
|
1047
|
+
// node_modules/ajv/dist/compile/util.js
|
|
1048
1048
|
var require_util = __commonJS({
|
|
1049
|
-
"node_modules
|
|
1049
|
+
"node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1050
1050
|
"use strict";
|
|
1051
1051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1052
1052
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -1211,9 +1211,9 @@ var require_util = __commonJS({
|
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
|
|
1214
|
-
// node_modules
|
|
1214
|
+
// node_modules/ajv/dist/compile/names.js
|
|
1215
1215
|
var require_names = __commonJS({
|
|
1216
|
-
"node_modules
|
|
1216
|
+
"node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1217
1217
|
"use strict";
|
|
1218
1218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1219
1219
|
var codegen_1 = require_codegen();
|
|
@@ -1250,9 +1250,9 @@ var require_names = __commonJS({
|
|
|
1250
1250
|
}
|
|
1251
1251
|
});
|
|
1252
1252
|
|
|
1253
|
-
// node_modules
|
|
1253
|
+
// node_modules/ajv/dist/compile/errors.js
|
|
1254
1254
|
var require_errors = __commonJS({
|
|
1255
|
-
"node_modules
|
|
1255
|
+
"node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1256
1256
|
"use strict";
|
|
1257
1257
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1258
1258
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -1372,9 +1372,9 @@ var require_errors = __commonJS({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
});
|
|
1374
1374
|
|
|
1375
|
-
// node_modules
|
|
1375
|
+
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1376
1376
|
var require_boolSchema = __commonJS({
|
|
1377
|
-
"node_modules
|
|
1377
|
+
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1378
1378
|
"use strict";
|
|
1379
1379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1380
1380
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -1423,9 +1423,9 @@ var require_boolSchema = __commonJS({
|
|
|
1423
1423
|
}
|
|
1424
1424
|
});
|
|
1425
1425
|
|
|
1426
|
-
// node_modules
|
|
1426
|
+
// node_modules/ajv/dist/compile/rules.js
|
|
1427
1427
|
var require_rules = __commonJS({
|
|
1428
|
-
"node_modules
|
|
1428
|
+
"node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1429
1429
|
"use strict";
|
|
1430
1430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1431
1431
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -1454,9 +1454,9 @@ var require_rules = __commonJS({
|
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
1456
|
|
|
1457
|
-
// node_modules
|
|
1457
|
+
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1458
1458
|
var require_applicability = __commonJS({
|
|
1459
|
-
"node_modules
|
|
1459
|
+
"node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1460
1460
|
"use strict";
|
|
1461
1461
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1462
1462
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -1477,9 +1477,9 @@ var require_applicability = __commonJS({
|
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
|
|
1480
|
-
// node_modules
|
|
1480
|
+
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1481
1481
|
var require_dataType = __commonJS({
|
|
1482
|
-
"node_modules
|
|
1482
|
+
"node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1483
1483
|
"use strict";
|
|
1484
1484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1485
1485
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -1661,9 +1661,9 @@ var require_dataType = __commonJS({
|
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
// node_modules
|
|
1664
|
+
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1665
1665
|
var require_defaults = __commonJS({
|
|
1666
|
-
"node_modules
|
|
1666
|
+
"node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1667
1667
|
"use strict";
|
|
1668
1668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1669
1669
|
exports.assignDefaults = void 0;
|
|
@@ -1698,9 +1698,9 @@ var require_defaults = __commonJS({
|
|
|
1698
1698
|
}
|
|
1699
1699
|
});
|
|
1700
1700
|
|
|
1701
|
-
// node_modules
|
|
1701
|
+
// node_modules/ajv/dist/vocabularies/code.js
|
|
1702
1702
|
var require_code2 = __commonJS({
|
|
1703
|
-
"node_modules
|
|
1703
|
+
"node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1704
1704
|
"use strict";
|
|
1705
1705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1706
1706
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -1831,9 +1831,9 @@ var require_code2 = __commonJS({
|
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
1833
1833
|
|
|
1834
|
-
// node_modules
|
|
1834
|
+
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1835
1835
|
var require_keyword = __commonJS({
|
|
1836
|
-
"node_modules
|
|
1836
|
+
"node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1837
1837
|
"use strict";
|
|
1838
1838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1839
1839
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -1949,9 +1949,9 @@ var require_keyword = __commonJS({
|
|
|
1949
1949
|
}
|
|
1950
1950
|
});
|
|
1951
1951
|
|
|
1952
|
-
// node_modules
|
|
1952
|
+
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1953
1953
|
var require_subschema = __commonJS({
|
|
1954
|
-
"node_modules
|
|
1954
|
+
"node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1955
1955
|
"use strict";
|
|
1956
1956
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1957
1957
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -2032,9 +2032,9 @@ var require_subschema = __commonJS({
|
|
|
2032
2032
|
}
|
|
2033
2033
|
});
|
|
2034
2034
|
|
|
2035
|
-
// node_modules
|
|
2035
|
+
// node_modules/fast-deep-equal/index.js
|
|
2036
2036
|
var require_fast_deep_equal = __commonJS({
|
|
2037
|
-
"node_modules
|
|
2037
|
+
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2038
2038
|
"use strict";
|
|
2039
2039
|
module.exports = function equal(a, b) {
|
|
2040
2040
|
if (a === b) return true;
|
|
@@ -2067,9 +2067,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2067
2067
|
}
|
|
2068
2068
|
});
|
|
2069
2069
|
|
|
2070
|
-
// node_modules
|
|
2070
|
+
// node_modules/json-schema-traverse/index.js
|
|
2071
2071
|
var require_json_schema_traverse = __commonJS({
|
|
2072
|
-
"node_modules
|
|
2072
|
+
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2073
2073
|
"use strict";
|
|
2074
2074
|
var traverse2 = module.exports = function(schema, opts, cb) {
|
|
2075
2075
|
if (typeof opts == "function") {
|
|
@@ -2155,9 +2155,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2155
2155
|
}
|
|
2156
2156
|
});
|
|
2157
2157
|
|
|
2158
|
-
// node_modules
|
|
2158
|
+
// node_modules/ajv/dist/compile/resolve.js
|
|
2159
2159
|
var require_resolve = __commonJS({
|
|
2160
|
-
"node_modules
|
|
2160
|
+
"node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2161
2161
|
"use strict";
|
|
2162
2162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2163
2163
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -2311,9 +2311,9 @@ var require_resolve = __commonJS({
|
|
|
2311
2311
|
}
|
|
2312
2312
|
});
|
|
2313
2313
|
|
|
2314
|
-
// node_modules
|
|
2314
|
+
// node_modules/ajv/dist/compile/validate/index.js
|
|
2315
2315
|
var require_validate = __commonJS({
|
|
2316
|
-
"node_modules
|
|
2316
|
+
"node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2317
2317
|
"use strict";
|
|
2318
2318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2319
2319
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -2819,9 +2819,9 @@ var require_validate = __commonJS({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
|
|
2822
|
-
// node_modules
|
|
2822
|
+
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2823
2823
|
var require_validation_error = __commonJS({
|
|
2824
|
-
"node_modules
|
|
2824
|
+
"node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2825
2825
|
"use strict";
|
|
2826
2826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2827
2827
|
var ValidationError = class extends Error {
|
|
@@ -2835,9 +2835,9 @@ var require_validation_error = __commonJS({
|
|
|
2835
2835
|
}
|
|
2836
2836
|
});
|
|
2837
2837
|
|
|
2838
|
-
// node_modules
|
|
2838
|
+
// node_modules/ajv/dist/compile/ref_error.js
|
|
2839
2839
|
var require_ref_error = __commonJS({
|
|
2840
|
-
"node_modules
|
|
2840
|
+
"node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2841
2841
|
"use strict";
|
|
2842
2842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2843
2843
|
var resolve_1 = require_resolve();
|
|
@@ -2852,9 +2852,9 @@ var require_ref_error = __commonJS({
|
|
|
2852
2852
|
}
|
|
2853
2853
|
});
|
|
2854
2854
|
|
|
2855
|
-
// node_modules
|
|
2855
|
+
// node_modules/ajv/dist/compile/index.js
|
|
2856
2856
|
var require_compile = __commonJS({
|
|
2857
|
-
"node_modules
|
|
2857
|
+
"node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2858
2858
|
"use strict";
|
|
2859
2859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2860
2860
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -3076,9 +3076,9 @@ var require_compile = __commonJS({
|
|
|
3076
3076
|
}
|
|
3077
3077
|
});
|
|
3078
3078
|
|
|
3079
|
-
// node_modules
|
|
3079
|
+
// node_modules/ajv/dist/refs/data.json
|
|
3080
3080
|
var require_data = __commonJS({
|
|
3081
|
-
"node_modules
|
|
3081
|
+
"node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3082
3082
|
module.exports = {
|
|
3083
3083
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3084
3084
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3095,9 +3095,9 @@ var require_data = __commonJS({
|
|
|
3095
3095
|
}
|
|
3096
3096
|
});
|
|
3097
3097
|
|
|
3098
|
-
// node_modules
|
|
3098
|
+
// node_modules/fast-uri/lib/utils.js
|
|
3099
3099
|
var require_utils = __commonJS({
|
|
3100
|
-
"node_modules
|
|
3100
|
+
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3101
3101
|
"use strict";
|
|
3102
3102
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3103
3103
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -3221,8 +3221,8 @@ var require_utils = __commonJS({
|
|
|
3221
3221
|
}
|
|
3222
3222
|
return ind;
|
|
3223
3223
|
}
|
|
3224
|
-
function removeDotSegments(
|
|
3225
|
-
let input =
|
|
3224
|
+
function removeDotSegments(path3) {
|
|
3225
|
+
let input = path3;
|
|
3226
3226
|
const output = [];
|
|
3227
3227
|
let nextSlash = -1;
|
|
3228
3228
|
let len = 0;
|
|
@@ -3408,9 +3408,9 @@ var require_utils = __commonJS({
|
|
|
3408
3408
|
}
|
|
3409
3409
|
});
|
|
3410
3410
|
|
|
3411
|
-
// node_modules
|
|
3411
|
+
// node_modules/fast-uri/lib/schemes.js
|
|
3412
3412
|
var require_schemes = __commonJS({
|
|
3413
|
-
"node_modules
|
|
3413
|
+
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3414
3414
|
"use strict";
|
|
3415
3415
|
var { isUUID } = require_utils();
|
|
3416
3416
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3474,8 +3474,8 @@ var require_schemes = __commonJS({
|
|
|
3474
3474
|
wsComponent.secure = void 0;
|
|
3475
3475
|
}
|
|
3476
3476
|
if (wsComponent.resourceName) {
|
|
3477
|
-
const [
|
|
3478
|
-
wsComponent.path =
|
|
3477
|
+
const [path3, query] = wsComponent.resourceName.split("?");
|
|
3478
|
+
wsComponent.path = path3 && path3 !== "/" ? path3 : void 0;
|
|
3479
3479
|
wsComponent.query = query;
|
|
3480
3480
|
wsComponent.resourceName = void 0;
|
|
3481
3481
|
}
|
|
@@ -3618,9 +3618,9 @@ var require_schemes = __commonJS({
|
|
|
3618
3618
|
}
|
|
3619
3619
|
});
|
|
3620
3620
|
|
|
3621
|
-
// node_modules
|
|
3621
|
+
// node_modules/fast-uri/index.js
|
|
3622
3622
|
var require_fast_uri = __commonJS({
|
|
3623
|
-
"node_modules
|
|
3623
|
+
"node_modules/fast-uri/index.js"(exports, module) {
|
|
3624
3624
|
"use strict";
|
|
3625
3625
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3626
3626
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3904,9 +3904,9 @@ var require_fast_uri = __commonJS({
|
|
|
3904
3904
|
}
|
|
3905
3905
|
});
|
|
3906
3906
|
|
|
3907
|
-
// node_modules
|
|
3907
|
+
// node_modules/ajv/dist/runtime/uri.js
|
|
3908
3908
|
var require_uri = __commonJS({
|
|
3909
|
-
"node_modules
|
|
3909
|
+
"node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3910
3910
|
"use strict";
|
|
3911
3911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3912
3912
|
var uri = require_fast_uri();
|
|
@@ -3915,9 +3915,9 @@ var require_uri = __commonJS({
|
|
|
3915
3915
|
}
|
|
3916
3916
|
});
|
|
3917
3917
|
|
|
3918
|
-
// node_modules
|
|
3918
|
+
// node_modules/ajv/dist/core.js
|
|
3919
3919
|
var require_core = __commonJS({
|
|
3920
|
-
"node_modules
|
|
3920
|
+
"node_modules/ajv/dist/core.js"(exports) {
|
|
3921
3921
|
"use strict";
|
|
3922
3922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3923
3923
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -4526,9 +4526,9 @@ var require_core = __commonJS({
|
|
|
4526
4526
|
}
|
|
4527
4527
|
});
|
|
4528
4528
|
|
|
4529
|
-
// node_modules
|
|
4529
|
+
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4530
4530
|
var require_id = __commonJS({
|
|
4531
|
-
"node_modules
|
|
4531
|
+
"node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4532
4532
|
"use strict";
|
|
4533
4533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4534
4534
|
var def = {
|
|
@@ -4541,9 +4541,9 @@ var require_id = __commonJS({
|
|
|
4541
4541
|
}
|
|
4542
4542
|
});
|
|
4543
4543
|
|
|
4544
|
-
// node_modules
|
|
4544
|
+
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4545
4545
|
var require_ref = __commonJS({
|
|
4546
|
-
"node_modules
|
|
4546
|
+
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4547
4547
|
"use strict";
|
|
4548
4548
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4549
4549
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -4663,9 +4663,9 @@ var require_ref = __commonJS({
|
|
|
4663
4663
|
}
|
|
4664
4664
|
});
|
|
4665
4665
|
|
|
4666
|
-
// node_modules
|
|
4666
|
+
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4667
4667
|
var require_core2 = __commonJS({
|
|
4668
|
-
"node_modules
|
|
4668
|
+
"node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4669
4669
|
"use strict";
|
|
4670
4670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4671
4671
|
var id_1 = require_id();
|
|
@@ -4684,9 +4684,9 @@ var require_core2 = __commonJS({
|
|
|
4684
4684
|
}
|
|
4685
4685
|
});
|
|
4686
4686
|
|
|
4687
|
-
// node_modules
|
|
4687
|
+
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4688
4688
|
var require_limitNumber = __commonJS({
|
|
4689
|
-
"node_modules
|
|
4689
|
+
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4690
4690
|
"use strict";
|
|
4691
4691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4692
4692
|
var codegen_1 = require_codegen();
|
|
@@ -4716,9 +4716,9 @@ var require_limitNumber = __commonJS({
|
|
|
4716
4716
|
}
|
|
4717
4717
|
});
|
|
4718
4718
|
|
|
4719
|
-
// node_modules
|
|
4719
|
+
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4720
4720
|
var require_multipleOf = __commonJS({
|
|
4721
|
-
"node_modules
|
|
4721
|
+
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4722
4722
|
"use strict";
|
|
4723
4723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4724
4724
|
var codegen_1 = require_codegen();
|
|
@@ -4744,9 +4744,9 @@ var require_multipleOf = __commonJS({
|
|
|
4744
4744
|
}
|
|
4745
4745
|
});
|
|
4746
4746
|
|
|
4747
|
-
// node_modules
|
|
4747
|
+
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
4748
4748
|
var require_ucs2length = __commonJS({
|
|
4749
|
-
"node_modules
|
|
4749
|
+
"node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4750
4750
|
"use strict";
|
|
4751
4751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4752
4752
|
function ucs2length(str) {
|
|
@@ -4770,9 +4770,9 @@ var require_ucs2length = __commonJS({
|
|
|
4770
4770
|
}
|
|
4771
4771
|
});
|
|
4772
4772
|
|
|
4773
|
-
// node_modules
|
|
4773
|
+
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4774
4774
|
var require_limitLength = __commonJS({
|
|
4775
|
-
"node_modules
|
|
4775
|
+
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4776
4776
|
"use strict";
|
|
4777
4777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4778
4778
|
var codegen_1 = require_codegen();
|
|
@@ -4802,9 +4802,9 @@ var require_limitLength = __commonJS({
|
|
|
4802
4802
|
}
|
|
4803
4803
|
});
|
|
4804
4804
|
|
|
4805
|
-
// node_modules
|
|
4805
|
+
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4806
4806
|
var require_pattern = __commonJS({
|
|
4807
|
-
"node_modules
|
|
4807
|
+
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4808
4808
|
"use strict";
|
|
4809
4809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4810
4810
|
var code_1 = require_code2();
|
|
@@ -4839,9 +4839,9 @@ var require_pattern = __commonJS({
|
|
|
4839
4839
|
}
|
|
4840
4840
|
});
|
|
4841
4841
|
|
|
4842
|
-
// node_modules
|
|
4842
|
+
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4843
4843
|
var require_limitProperties = __commonJS({
|
|
4844
|
-
"node_modules
|
|
4844
|
+
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4845
4845
|
"use strict";
|
|
4846
4846
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4847
4847
|
var codegen_1 = require_codegen();
|
|
@@ -4868,9 +4868,9 @@ var require_limitProperties = __commonJS({
|
|
|
4868
4868
|
}
|
|
4869
4869
|
});
|
|
4870
4870
|
|
|
4871
|
-
// node_modules
|
|
4871
|
+
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4872
4872
|
var require_required = __commonJS({
|
|
4873
|
-
"node_modules
|
|
4873
|
+
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4874
4874
|
"use strict";
|
|
4875
4875
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4876
4876
|
var code_1 = require_code2();
|
|
@@ -4950,9 +4950,9 @@ var require_required = __commonJS({
|
|
|
4950
4950
|
}
|
|
4951
4951
|
});
|
|
4952
4952
|
|
|
4953
|
-
// node_modules
|
|
4953
|
+
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4954
4954
|
var require_limitItems = __commonJS({
|
|
4955
|
-
"node_modules
|
|
4955
|
+
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
4956
4956
|
"use strict";
|
|
4957
4957
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4958
4958
|
var codegen_1 = require_codegen();
|
|
@@ -4979,9 +4979,9 @@ var require_limitItems = __commonJS({
|
|
|
4979
4979
|
}
|
|
4980
4980
|
});
|
|
4981
4981
|
|
|
4982
|
-
// node_modules
|
|
4982
|
+
// node_modules/ajv/dist/runtime/equal.js
|
|
4983
4983
|
var require_equal = __commonJS({
|
|
4984
|
-
"node_modules
|
|
4984
|
+
"node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
4985
4985
|
"use strict";
|
|
4986
4986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4987
4987
|
var equal = require_fast_deep_equal();
|
|
@@ -4990,9 +4990,9 @@ var require_equal = __commonJS({
|
|
|
4990
4990
|
}
|
|
4991
4991
|
});
|
|
4992
4992
|
|
|
4993
|
-
// node_modules
|
|
4993
|
+
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4994
4994
|
var require_uniqueItems = __commonJS({
|
|
4995
|
-
"node_modules
|
|
4995
|
+
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
4996
4996
|
"use strict";
|
|
4997
4997
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4998
4998
|
var dataType_1 = require_dataType();
|
|
@@ -5057,9 +5057,9 @@ var require_uniqueItems = __commonJS({
|
|
|
5057
5057
|
}
|
|
5058
5058
|
});
|
|
5059
5059
|
|
|
5060
|
-
// node_modules
|
|
5060
|
+
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5061
5061
|
var require_const = __commonJS({
|
|
5062
|
-
"node_modules
|
|
5062
|
+
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
5063
5063
|
"use strict";
|
|
5064
5064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5065
5065
|
var codegen_1 = require_codegen();
|
|
@@ -5086,9 +5086,9 @@ var require_const = __commonJS({
|
|
|
5086
5086
|
}
|
|
5087
5087
|
});
|
|
5088
5088
|
|
|
5089
|
-
// node_modules
|
|
5089
|
+
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5090
5090
|
var require_enum = __commonJS({
|
|
5091
|
-
"node_modules
|
|
5091
|
+
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5092
5092
|
"use strict";
|
|
5093
5093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5094
5094
|
var codegen_1 = require_codegen();
|
|
@@ -5135,9 +5135,9 @@ var require_enum = __commonJS({
|
|
|
5135
5135
|
}
|
|
5136
5136
|
});
|
|
5137
5137
|
|
|
5138
|
-
// node_modules
|
|
5138
|
+
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5139
5139
|
var require_validation = __commonJS({
|
|
5140
|
-
"node_modules
|
|
5140
|
+
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5141
5141
|
"use strict";
|
|
5142
5142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5143
5143
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5173,9 +5173,9 @@ var require_validation = __commonJS({
|
|
|
5173
5173
|
}
|
|
5174
5174
|
});
|
|
5175
5175
|
|
|
5176
|
-
// node_modules
|
|
5176
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5177
5177
|
var require_additionalItems = __commonJS({
|
|
5178
|
-
"node_modules
|
|
5178
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5179
5179
|
"use strict";
|
|
5180
5180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5181
5181
|
exports.validateAdditionalItems = void 0;
|
|
@@ -5226,9 +5226,9 @@ var require_additionalItems = __commonJS({
|
|
|
5226
5226
|
}
|
|
5227
5227
|
});
|
|
5228
5228
|
|
|
5229
|
-
// node_modules
|
|
5229
|
+
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5230
5230
|
var require_items = __commonJS({
|
|
5231
|
-
"node_modules
|
|
5231
|
+
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5232
5232
|
"use strict";
|
|
5233
5233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5234
5234
|
exports.validateTuple = void 0;
|
|
@@ -5283,9 +5283,9 @@ var require_items = __commonJS({
|
|
|
5283
5283
|
}
|
|
5284
5284
|
});
|
|
5285
5285
|
|
|
5286
|
-
// node_modules
|
|
5286
|
+
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5287
5287
|
var require_prefixItems = __commonJS({
|
|
5288
|
-
"node_modules
|
|
5288
|
+
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5289
5289
|
"use strict";
|
|
5290
5290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5291
5291
|
var items_1 = require_items();
|
|
@@ -5300,9 +5300,9 @@ var require_prefixItems = __commonJS({
|
|
|
5300
5300
|
}
|
|
5301
5301
|
});
|
|
5302
5302
|
|
|
5303
|
-
// node_modules
|
|
5303
|
+
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5304
5304
|
var require_items2020 = __commonJS({
|
|
5305
|
-
"node_modules
|
|
5305
|
+
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5306
5306
|
"use strict";
|
|
5307
5307
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5308
5308
|
var codegen_1 = require_codegen();
|
|
@@ -5335,9 +5335,9 @@ var require_items2020 = __commonJS({
|
|
|
5335
5335
|
}
|
|
5336
5336
|
});
|
|
5337
5337
|
|
|
5338
|
-
// node_modules
|
|
5338
|
+
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5339
5339
|
var require_contains = __commonJS({
|
|
5340
|
-
"node_modules
|
|
5340
|
+
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5341
5341
|
"use strict";
|
|
5342
5342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5343
5343
|
var codegen_1 = require_codegen();
|
|
@@ -5429,9 +5429,9 @@ var require_contains = __commonJS({
|
|
|
5429
5429
|
}
|
|
5430
5430
|
});
|
|
5431
5431
|
|
|
5432
|
-
// node_modules
|
|
5432
|
+
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5433
5433
|
var require_dependencies = __commonJS({
|
|
5434
|
-
"node_modules
|
|
5434
|
+
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5435
5435
|
"use strict";
|
|
5436
5436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5437
5437
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -5523,9 +5523,9 @@ var require_dependencies = __commonJS({
|
|
|
5523
5523
|
}
|
|
5524
5524
|
});
|
|
5525
5525
|
|
|
5526
|
-
// node_modules
|
|
5526
|
+
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5527
5527
|
var require_propertyNames = __commonJS({
|
|
5528
|
-
"node_modules
|
|
5528
|
+
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5529
5529
|
"use strict";
|
|
5530
5530
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5531
5531
|
var codegen_1 = require_codegen();
|
|
@@ -5566,9 +5566,9 @@ var require_propertyNames = __commonJS({
|
|
|
5566
5566
|
}
|
|
5567
5567
|
});
|
|
5568
5568
|
|
|
5569
|
-
// node_modules
|
|
5569
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5570
5570
|
var require_additionalProperties = __commonJS({
|
|
5571
|
-
"node_modules
|
|
5571
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5572
5572
|
"use strict";
|
|
5573
5573
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5574
5574
|
var code_1 = require_code2();
|
|
@@ -5672,9 +5672,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5672
5672
|
}
|
|
5673
5673
|
});
|
|
5674
5674
|
|
|
5675
|
-
// node_modules
|
|
5675
|
+
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5676
5676
|
var require_properties = __commonJS({
|
|
5677
|
-
"node_modules
|
|
5677
|
+
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5678
5678
|
"use strict";
|
|
5679
5679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5680
5680
|
var validate_1 = require_validate();
|
|
@@ -5730,9 +5730,9 @@ var require_properties = __commonJS({
|
|
|
5730
5730
|
}
|
|
5731
5731
|
});
|
|
5732
5732
|
|
|
5733
|
-
// node_modules
|
|
5733
|
+
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5734
5734
|
var require_patternProperties = __commonJS({
|
|
5735
|
-
"node_modules
|
|
5735
|
+
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5736
5736
|
"use strict";
|
|
5737
5737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5738
5738
|
var code_1 = require_code2();
|
|
@@ -5804,9 +5804,9 @@ var require_patternProperties = __commonJS({
|
|
|
5804
5804
|
}
|
|
5805
5805
|
});
|
|
5806
5806
|
|
|
5807
|
-
// node_modules
|
|
5807
|
+
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5808
5808
|
var require_not = __commonJS({
|
|
5809
|
-
"node_modules
|
|
5809
|
+
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5810
5810
|
"use strict";
|
|
5811
5811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5812
5812
|
var util_1 = require_util();
|
|
@@ -5835,9 +5835,9 @@ var require_not = __commonJS({
|
|
|
5835
5835
|
}
|
|
5836
5836
|
});
|
|
5837
5837
|
|
|
5838
|
-
// node_modules
|
|
5838
|
+
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5839
5839
|
var require_anyOf = __commonJS({
|
|
5840
|
-
"node_modules
|
|
5840
|
+
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5841
5841
|
"use strict";
|
|
5842
5842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5843
5843
|
var code_1 = require_code2();
|
|
@@ -5852,9 +5852,9 @@ var require_anyOf = __commonJS({
|
|
|
5852
5852
|
}
|
|
5853
5853
|
});
|
|
5854
5854
|
|
|
5855
|
-
// node_modules
|
|
5855
|
+
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5856
5856
|
var require_oneOf = __commonJS({
|
|
5857
|
-
"node_modules
|
|
5857
|
+
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5858
5858
|
"use strict";
|
|
5859
5859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5860
5860
|
var codegen_1 = require_codegen();
|
|
@@ -5910,9 +5910,9 @@ var require_oneOf = __commonJS({
|
|
|
5910
5910
|
}
|
|
5911
5911
|
});
|
|
5912
5912
|
|
|
5913
|
-
// node_modules
|
|
5913
|
+
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5914
5914
|
var require_allOf = __commonJS({
|
|
5915
|
-
"node_modules
|
|
5915
|
+
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5916
5916
|
"use strict";
|
|
5917
5917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5918
5918
|
var util_1 = require_util();
|
|
@@ -5937,9 +5937,9 @@ var require_allOf = __commonJS({
|
|
|
5937
5937
|
}
|
|
5938
5938
|
});
|
|
5939
5939
|
|
|
5940
|
-
// node_modules
|
|
5940
|
+
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5941
5941
|
var require_if = __commonJS({
|
|
5942
|
-
"node_modules
|
|
5942
|
+
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
5943
5943
|
"use strict";
|
|
5944
5944
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5945
5945
|
var codegen_1 = require_codegen();
|
|
@@ -6006,9 +6006,9 @@ var require_if = __commonJS({
|
|
|
6006
6006
|
}
|
|
6007
6007
|
});
|
|
6008
6008
|
|
|
6009
|
-
// node_modules
|
|
6009
|
+
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6010
6010
|
var require_thenElse = __commonJS({
|
|
6011
|
-
"node_modules
|
|
6011
|
+
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
6012
6012
|
"use strict";
|
|
6013
6013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6014
6014
|
var util_1 = require_util();
|
|
@@ -6024,9 +6024,9 @@ var require_thenElse = __commonJS({
|
|
|
6024
6024
|
}
|
|
6025
6025
|
});
|
|
6026
6026
|
|
|
6027
|
-
// node_modules
|
|
6027
|
+
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6028
6028
|
var require_applicator = __commonJS({
|
|
6029
|
-
"node_modules
|
|
6029
|
+
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
6030
6030
|
"use strict";
|
|
6031
6031
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6032
6032
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -6072,9 +6072,9 @@ var require_applicator = __commonJS({
|
|
|
6072
6072
|
}
|
|
6073
6073
|
});
|
|
6074
6074
|
|
|
6075
|
-
// node_modules
|
|
6075
|
+
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
6076
6076
|
var require_format = __commonJS({
|
|
6077
|
-
"node_modules
|
|
6077
|
+
"node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6078
6078
|
"use strict";
|
|
6079
6079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6080
6080
|
var codegen_1 = require_codegen();
|
|
@@ -6162,9 +6162,9 @@ var require_format = __commonJS({
|
|
|
6162
6162
|
}
|
|
6163
6163
|
});
|
|
6164
6164
|
|
|
6165
|
-
// node_modules
|
|
6165
|
+
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
6166
6166
|
var require_format2 = __commonJS({
|
|
6167
|
-
"node_modules
|
|
6167
|
+
"node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6168
6168
|
"use strict";
|
|
6169
6169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6170
6170
|
var format_1 = require_format();
|
|
@@ -6173,9 +6173,9 @@ var require_format2 = __commonJS({
|
|
|
6173
6173
|
}
|
|
6174
6174
|
});
|
|
6175
6175
|
|
|
6176
|
-
// node_modules
|
|
6176
|
+
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
6177
6177
|
var require_metadata = __commonJS({
|
|
6178
|
-
"node_modules
|
|
6178
|
+
"node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6179
6179
|
"use strict";
|
|
6180
6180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6181
6181
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -6196,9 +6196,9 @@ var require_metadata = __commonJS({
|
|
|
6196
6196
|
}
|
|
6197
6197
|
});
|
|
6198
6198
|
|
|
6199
|
-
// node_modules
|
|
6199
|
+
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
6200
6200
|
var require_draft7 = __commonJS({
|
|
6201
|
-
"node_modules
|
|
6201
|
+
"node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6202
6202
|
"use strict";
|
|
6203
6203
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6204
6204
|
var core_1 = require_core2();
|
|
@@ -6218,9 +6218,9 @@ var require_draft7 = __commonJS({
|
|
|
6218
6218
|
}
|
|
6219
6219
|
});
|
|
6220
6220
|
|
|
6221
|
-
// node_modules
|
|
6221
|
+
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6222
6222
|
var require_types = __commonJS({
|
|
6223
|
-
"node_modules
|
|
6223
|
+
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6224
6224
|
"use strict";
|
|
6225
6225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6226
6226
|
exports.DiscrError = void 0;
|
|
@@ -6232,9 +6232,9 @@ var require_types = __commonJS({
|
|
|
6232
6232
|
}
|
|
6233
6233
|
});
|
|
6234
6234
|
|
|
6235
|
-
// node_modules
|
|
6235
|
+
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6236
6236
|
var require_discriminator = __commonJS({
|
|
6237
|
-
"node_modules
|
|
6237
|
+
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6238
6238
|
"use strict";
|
|
6239
6239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6240
6240
|
var codegen_1 = require_codegen();
|
|
@@ -6337,9 +6337,9 @@ var require_discriminator = __commonJS({
|
|
|
6337
6337
|
}
|
|
6338
6338
|
});
|
|
6339
6339
|
|
|
6340
|
-
// node_modules
|
|
6340
|
+
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6341
6341
|
var require_json_schema_draft_07 = __commonJS({
|
|
6342
|
-
"node_modules
|
|
6342
|
+
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6343
6343
|
module.exports = {
|
|
6344
6344
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6345
6345
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6494,9 +6494,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6494
6494
|
}
|
|
6495
6495
|
});
|
|
6496
6496
|
|
|
6497
|
-
// node_modules
|
|
6497
|
+
// node_modules/ajv/dist/ajv.js
|
|
6498
6498
|
var require_ajv = __commonJS({
|
|
6499
|
-
"node_modules
|
|
6499
|
+
"node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6500
6500
|
"use strict";
|
|
6501
6501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6502
6502
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -6597,7 +6597,10 @@ function getCredentialsPath() {
|
|
|
6597
6597
|
return CREDENTIALS_PATH;
|
|
6598
6598
|
}
|
|
6599
6599
|
|
|
6600
|
-
//
|
|
6600
|
+
// src/http.ts
|
|
6601
|
+
import { createRequire } from "module";
|
|
6602
|
+
|
|
6603
|
+
// node_modules/@trpc/server/dist/observable-ade1bad8.mjs
|
|
6601
6604
|
function identity(x) {
|
|
6602
6605
|
return x;
|
|
6603
6606
|
}
|
|
@@ -6672,7 +6675,7 @@ function observable(subscribe) {
|
|
|
6672
6675
|
return self;
|
|
6673
6676
|
}
|
|
6674
6677
|
|
|
6675
|
-
// node_modules
|
|
6678
|
+
// node_modules/@trpc/server/dist/observable/index.mjs
|
|
6676
6679
|
function share(_opts) {
|
|
6677
6680
|
return (originalObserver) => {
|
|
6678
6681
|
let refCount = 0;
|
|
@@ -6770,7 +6773,7 @@ function observableToPromise(observable2) {
|
|
|
6770
6773
|
};
|
|
6771
6774
|
}
|
|
6772
6775
|
|
|
6773
|
-
// node_modules
|
|
6776
|
+
// node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs
|
|
6774
6777
|
function createChain(opts) {
|
|
6775
6778
|
return observable((observer) => {
|
|
6776
6779
|
function execute(index = 0, op = opts.op) {
|
|
@@ -6792,7 +6795,7 @@ function createChain(opts) {
|
|
|
6792
6795
|
});
|
|
6793
6796
|
}
|
|
6794
6797
|
|
|
6795
|
-
// node_modules
|
|
6798
|
+
// node_modules/@trpc/server/dist/codes-c924c3db.mjs
|
|
6796
6799
|
function invert(obj) {
|
|
6797
6800
|
const newObj = /* @__PURE__ */ Object.create(null);
|
|
6798
6801
|
for (const key in obj) {
|
|
@@ -6829,26 +6832,26 @@ var TRPC_ERROR_CODES_BY_KEY = {
|
|
|
6829
6832
|
};
|
|
6830
6833
|
var TRPC_ERROR_CODES_BY_NUMBER = invert(TRPC_ERROR_CODES_BY_KEY);
|
|
6831
6834
|
|
|
6832
|
-
// node_modules
|
|
6835
|
+
// node_modules/@trpc/server/dist/index-f91d720c.mjs
|
|
6833
6836
|
var TRPC_ERROR_CODES_BY_NUMBER2 = invert(TRPC_ERROR_CODES_BY_KEY);
|
|
6834
6837
|
var noop = () => {
|
|
6835
6838
|
};
|
|
6836
|
-
function createInnerProxy(callback,
|
|
6839
|
+
function createInnerProxy(callback, path3) {
|
|
6837
6840
|
const proxy = new Proxy(noop, {
|
|
6838
6841
|
get(_obj, key) {
|
|
6839
6842
|
if (typeof key !== "string" || key === "then") {
|
|
6840
6843
|
return void 0;
|
|
6841
6844
|
}
|
|
6842
6845
|
return createInnerProxy(callback, [
|
|
6843
|
-
...
|
|
6846
|
+
...path3,
|
|
6844
6847
|
key
|
|
6845
6848
|
]);
|
|
6846
6849
|
},
|
|
6847
6850
|
apply(_1, _2, args) {
|
|
6848
|
-
const isApply =
|
|
6851
|
+
const isApply = path3[path3.length - 1] === "apply";
|
|
6849
6852
|
return callback({
|
|
6850
6853
|
args: isApply ? args.length >= 2 ? args[1] : [] : args,
|
|
6851
|
-
path: isApply ?
|
|
6854
|
+
path: isApply ? path3.slice(0, -1) : path3
|
|
6852
6855
|
});
|
|
6853
6856
|
}
|
|
6854
6857
|
});
|
|
@@ -6866,7 +6869,7 @@ var createFlatProxy = (callback) => {
|
|
|
6866
6869
|
});
|
|
6867
6870
|
};
|
|
6868
6871
|
|
|
6869
|
-
// node_modules
|
|
6872
|
+
// node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs
|
|
6870
6873
|
function isObject(value) {
|
|
6871
6874
|
return !!value && !Array.isArray(value) && typeof value === "object";
|
|
6872
6875
|
}
|
|
@@ -6893,7 +6896,7 @@ function getCauseFromUnknown(cause) {
|
|
|
6893
6896
|
return void 0;
|
|
6894
6897
|
}
|
|
6895
6898
|
|
|
6896
|
-
// node_modules
|
|
6899
|
+
// node_modules/@trpc/client/dist/transformResult-ace864b8.mjs
|
|
6897
6900
|
function isObject2(value) {
|
|
6898
6901
|
return !!value && !Array.isArray(value) && typeof value === "object";
|
|
6899
6902
|
}
|
|
@@ -6941,7 +6944,7 @@ function transformResult(response, runtime) {
|
|
|
6941
6944
|
return result;
|
|
6942
6945
|
}
|
|
6943
6946
|
|
|
6944
|
-
// node_modules
|
|
6947
|
+
// node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs
|
|
6945
6948
|
function isTRPCClientError(cause) {
|
|
6946
6949
|
return cause instanceof TRPCClientError || /**
|
|
6947
6950
|
* @deprecated
|
|
@@ -6995,7 +6998,7 @@ var TRPCClientError = class _TRPCClientError extends Error {
|
|
|
6995
6998
|
}
|
|
6996
6999
|
};
|
|
6997
7000
|
|
|
6998
|
-
// node_modules
|
|
7001
|
+
// node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs
|
|
6999
7002
|
var isFunction = (fn) => typeof fn === "function";
|
|
7000
7003
|
function getFetch(customFetchImpl) {
|
|
7001
7004
|
if (customFetchImpl) {
|
|
@@ -7132,7 +7135,7 @@ function httpRequest(opts) {
|
|
|
7132
7135
|
};
|
|
7133
7136
|
}
|
|
7134
7137
|
|
|
7135
|
-
// node_modules
|
|
7138
|
+
// node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs
|
|
7136
7139
|
var throwFatalError = () => {
|
|
7137
7140
|
throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new");
|
|
7138
7141
|
};
|
|
@@ -7260,18 +7263,18 @@ function createHTTPBatchLink(requester) {
|
|
|
7260
7263
|
if (maxURLLength === Infinity) {
|
|
7261
7264
|
return true;
|
|
7262
7265
|
}
|
|
7263
|
-
const
|
|
7266
|
+
const path3 = batchOps.map((op) => op.path).join(",");
|
|
7264
7267
|
const inputs = batchOps.map((op) => op.input);
|
|
7265
7268
|
const url = getUrl({
|
|
7266
7269
|
...resolvedOpts,
|
|
7267
7270
|
runtime,
|
|
7268
7271
|
type,
|
|
7269
|
-
path:
|
|
7272
|
+
path: path3,
|
|
7270
7273
|
inputs
|
|
7271
7274
|
});
|
|
7272
7275
|
return url.length <= maxURLLength;
|
|
7273
7276
|
};
|
|
7274
|
-
const
|
|
7277
|
+
const fetch2 = requester({
|
|
7275
7278
|
...resolvedOpts,
|
|
7276
7279
|
runtime,
|
|
7277
7280
|
type,
|
|
@@ -7279,7 +7282,7 @@ function createHTTPBatchLink(requester) {
|
|
|
7279
7282
|
});
|
|
7280
7283
|
return {
|
|
7281
7284
|
validate,
|
|
7282
|
-
fetch
|
|
7285
|
+
fetch: fetch2
|
|
7283
7286
|
};
|
|
7284
7287
|
};
|
|
7285
7288
|
const query = dataLoader(batchLoader("query"));
|
|
@@ -7324,11 +7327,11 @@ function createHTTPBatchLink(requester) {
|
|
|
7324
7327
|
}
|
|
7325
7328
|
var batchRequester = (requesterOpts) => {
|
|
7326
7329
|
return (batchOps) => {
|
|
7327
|
-
const
|
|
7330
|
+
const path3 = batchOps.map((op) => op.path).join(",");
|
|
7328
7331
|
const inputs = batchOps.map((op) => op.input);
|
|
7329
7332
|
const { promise, cancel } = jsonHttpRequester({
|
|
7330
7333
|
...requesterOpts,
|
|
7331
|
-
path:
|
|
7334
|
+
path: path3,
|
|
7332
7335
|
inputs,
|
|
7333
7336
|
headers() {
|
|
7334
7337
|
if (!requesterOpts.opts.headers) {
|
|
@@ -7357,17 +7360,17 @@ var batchRequester = (requesterOpts) => {
|
|
|
7357
7360
|
};
|
|
7358
7361
|
var httpBatchLink = createHTTPBatchLink(batchRequester);
|
|
7359
7362
|
|
|
7360
|
-
// node_modules
|
|
7363
|
+
// node_modules/@trpc/client/dist/links/httpLink.mjs
|
|
7361
7364
|
function httpLinkFactory(factoryOpts) {
|
|
7362
7365
|
return (opts) => {
|
|
7363
7366
|
const resolvedOpts = resolveHTTPLinkOptions(opts);
|
|
7364
7367
|
return (runtime) => ({ op }) => observable((observer) => {
|
|
7365
|
-
const { path:
|
|
7368
|
+
const { path: path3, input, type } = op;
|
|
7366
7369
|
const { promise, cancel } = factoryOpts.requester({
|
|
7367
7370
|
...resolvedOpts,
|
|
7368
7371
|
runtime,
|
|
7369
7372
|
type,
|
|
7370
|
-
path:
|
|
7373
|
+
path: path3,
|
|
7371
7374
|
input,
|
|
7372
7375
|
headers() {
|
|
7373
7376
|
if (!opts.headers) {
|
|
@@ -7411,15 +7414,15 @@ var httpLink = httpLinkFactory({
|
|
|
7411
7414
|
requester: jsonHttpRequester
|
|
7412
7415
|
});
|
|
7413
7416
|
|
|
7414
|
-
// node_modules
|
|
7417
|
+
// node_modules/@trpc/client/dist/index.mjs
|
|
7415
7418
|
var TRPCUntypedClient = class {
|
|
7416
|
-
$request({ type, input, path:
|
|
7419
|
+
$request({ type, input, path: path3, context = {} }) {
|
|
7417
7420
|
const chain$ = createChain({
|
|
7418
7421
|
links: this.links,
|
|
7419
7422
|
op: {
|
|
7420
7423
|
id: ++this.requestId,
|
|
7421
7424
|
type,
|
|
7422
|
-
path:
|
|
7425
|
+
path: path3,
|
|
7423
7426
|
input,
|
|
7424
7427
|
context
|
|
7425
7428
|
}
|
|
@@ -7439,28 +7442,28 @@ var TRPCUntypedClient = class {
|
|
|
7439
7442
|
});
|
|
7440
7443
|
return abortablePromise;
|
|
7441
7444
|
}
|
|
7442
|
-
query(
|
|
7445
|
+
query(path3, input, opts) {
|
|
7443
7446
|
return this.requestAsPromise({
|
|
7444
7447
|
type: "query",
|
|
7445
|
-
path:
|
|
7448
|
+
path: path3,
|
|
7446
7449
|
input,
|
|
7447
7450
|
context: opts?.context,
|
|
7448
7451
|
signal: opts?.signal
|
|
7449
7452
|
});
|
|
7450
7453
|
}
|
|
7451
|
-
mutation(
|
|
7454
|
+
mutation(path3, input, opts) {
|
|
7452
7455
|
return this.requestAsPromise({
|
|
7453
7456
|
type: "mutation",
|
|
7454
|
-
path:
|
|
7457
|
+
path: path3,
|
|
7455
7458
|
input,
|
|
7456
7459
|
context: opts?.context,
|
|
7457
7460
|
signal: opts?.signal
|
|
7458
7461
|
});
|
|
7459
7462
|
}
|
|
7460
|
-
subscription(
|
|
7463
|
+
subscription(path3, input, opts) {
|
|
7461
7464
|
const observable$ = this.$request({
|
|
7462
7465
|
type: "subscription",
|
|
7463
|
-
path:
|
|
7466
|
+
path: path3,
|
|
7464
7467
|
input,
|
|
7465
7468
|
context: opts?.context
|
|
7466
7469
|
});
|
|
@@ -7532,10 +7535,10 @@ function createTRPCClientProxy(client) {
|
|
|
7532
7535
|
if (key === "__untypedClient") {
|
|
7533
7536
|
return client;
|
|
7534
7537
|
}
|
|
7535
|
-
return createRecursiveProxy(({ path:
|
|
7538
|
+
return createRecursiveProxy(({ path: path3, args }) => {
|
|
7536
7539
|
const pathCopy = [
|
|
7537
7540
|
key,
|
|
7538
|
-
...
|
|
7541
|
+
...path3
|
|
7539
7542
|
];
|
|
7540
7543
|
const procedureType = clientCallTypeToProcedureType(pathCopy.pop());
|
|
7541
7544
|
const fullPath = pathCopy.join(".");
|
|
@@ -7644,12 +7647,12 @@ var streamingJsonHttpRequester = (opts, onSingle) => {
|
|
|
7644
7647
|
var streamRequester = (requesterOpts) => {
|
|
7645
7648
|
const textDecoder = getTextDecoder(requesterOpts.opts.textDecoder);
|
|
7646
7649
|
return (batchOps, unitResolver) => {
|
|
7647
|
-
const
|
|
7650
|
+
const path3 = batchOps.map((op) => op.path).join(",");
|
|
7648
7651
|
const inputs = batchOps.map((op) => op.input);
|
|
7649
7652
|
const { cancel, promise } = streamingJsonHttpRequester({
|
|
7650
7653
|
...requesterOpts,
|
|
7651
7654
|
textDecoder,
|
|
7652
|
-
path:
|
|
7655
|
+
path: path3,
|
|
7653
7656
|
inputs,
|
|
7654
7657
|
headers() {
|
|
7655
7658
|
if (!requesterOpts.opts.headers) {
|
|
@@ -7702,7 +7705,7 @@ var experimental_formDataLink = httpLinkFactory({
|
|
|
7702
7705
|
requester: formDataRequester
|
|
7703
7706
|
});
|
|
7704
7707
|
|
|
7705
|
-
// node_modules
|
|
7708
|
+
// node_modules/superjson/dist/double-indexed-kv.js
|
|
7706
7709
|
var DoubleIndexedKV = class {
|
|
7707
7710
|
constructor() {
|
|
7708
7711
|
this.keyToValue = /* @__PURE__ */ new Map();
|
|
@@ -7724,7 +7727,7 @@ var DoubleIndexedKV = class {
|
|
|
7724
7727
|
}
|
|
7725
7728
|
};
|
|
7726
7729
|
|
|
7727
|
-
// node_modules
|
|
7730
|
+
// node_modules/superjson/dist/registry.js
|
|
7728
7731
|
var Registry = class {
|
|
7729
7732
|
constructor(generateIdentifier) {
|
|
7730
7733
|
this.generateIdentifier = generateIdentifier;
|
|
@@ -7750,7 +7753,7 @@ var Registry = class {
|
|
|
7750
7753
|
}
|
|
7751
7754
|
};
|
|
7752
7755
|
|
|
7753
|
-
// node_modules
|
|
7756
|
+
// node_modules/superjson/dist/class-registry.js
|
|
7754
7757
|
var ClassRegistry = class extends Registry {
|
|
7755
7758
|
constructor() {
|
|
7756
7759
|
super((c) => c.name);
|
|
@@ -7771,7 +7774,7 @@ var ClassRegistry = class extends Registry {
|
|
|
7771
7774
|
}
|
|
7772
7775
|
};
|
|
7773
7776
|
|
|
7774
|
-
// node_modules
|
|
7777
|
+
// node_modules/superjson/dist/util.js
|
|
7775
7778
|
function valuesOfObj(record) {
|
|
7776
7779
|
if ("values" in Object) {
|
|
7777
7780
|
return Object.values(record);
|
|
@@ -7814,7 +7817,7 @@ function findArr(record, predicate) {
|
|
|
7814
7817
|
return void 0;
|
|
7815
7818
|
}
|
|
7816
7819
|
|
|
7817
|
-
// node_modules
|
|
7820
|
+
// node_modules/superjson/dist/custom-transformer-registry.js
|
|
7818
7821
|
var CustomTransformerRegistry = class {
|
|
7819
7822
|
constructor() {
|
|
7820
7823
|
this.transfomers = {};
|
|
@@ -7830,7 +7833,7 @@ var CustomTransformerRegistry = class {
|
|
|
7830
7833
|
}
|
|
7831
7834
|
};
|
|
7832
7835
|
|
|
7833
|
-
// node_modules
|
|
7836
|
+
// node_modules/superjson/dist/is.js
|
|
7834
7837
|
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
7835
7838
|
var isUndefined = (payload) => typeof payload === "undefined";
|
|
7836
7839
|
var isNull = (payload) => payload === null;
|
|
@@ -7861,9 +7864,9 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
|
7861
7864
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
7862
7865
|
var isURL = (payload) => payload instanceof URL;
|
|
7863
7866
|
|
|
7864
|
-
// node_modules
|
|
7867
|
+
// node_modules/superjson/dist/pathstringifier.js
|
|
7865
7868
|
var escapeKey = (key) => key.replace(/\\/g, "\\\\").replace(/\./g, "\\.");
|
|
7866
|
-
var stringifyPath = (
|
|
7869
|
+
var stringifyPath = (path3) => path3.map(String).map(escapeKey).join(".");
|
|
7867
7870
|
var parsePath = (string, legacyPaths) => {
|
|
7868
7871
|
const result = [];
|
|
7869
7872
|
let segment = "";
|
|
@@ -7898,7 +7901,7 @@ var parsePath = (string, legacyPaths) => {
|
|
|
7898
7901
|
return result;
|
|
7899
7902
|
};
|
|
7900
7903
|
|
|
7901
|
-
// node_modules
|
|
7904
|
+
// node_modules/superjson/dist/transformer.js
|
|
7902
7905
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
7903
7906
|
return {
|
|
7904
7907
|
isApplicable,
|
|
@@ -8099,7 +8102,7 @@ var untransformValue = (json, type, superJson) => {
|
|
|
8099
8102
|
}
|
|
8100
8103
|
};
|
|
8101
8104
|
|
|
8102
|
-
// node_modules
|
|
8105
|
+
// node_modules/superjson/dist/accessDeep.js
|
|
8103
8106
|
var getNthKey = (value, n) => {
|
|
8104
8107
|
if (n > value.size)
|
|
8105
8108
|
throw new Error("index out of bounds");
|
|
@@ -8110,26 +8113,26 @@ var getNthKey = (value, n) => {
|
|
|
8110
8113
|
}
|
|
8111
8114
|
return keys.next().value;
|
|
8112
8115
|
};
|
|
8113
|
-
function validatePath(
|
|
8114
|
-
if (includes(
|
|
8116
|
+
function validatePath(path3) {
|
|
8117
|
+
if (includes(path3, "__proto__")) {
|
|
8115
8118
|
throw new Error("__proto__ is not allowed as a property");
|
|
8116
8119
|
}
|
|
8117
|
-
if (includes(
|
|
8120
|
+
if (includes(path3, "prototype")) {
|
|
8118
8121
|
throw new Error("prototype is not allowed as a property");
|
|
8119
8122
|
}
|
|
8120
|
-
if (includes(
|
|
8123
|
+
if (includes(path3, "constructor")) {
|
|
8121
8124
|
throw new Error("constructor is not allowed as a property");
|
|
8122
8125
|
}
|
|
8123
8126
|
}
|
|
8124
|
-
var getDeep = (object,
|
|
8125
|
-
validatePath(
|
|
8126
|
-
for (let i = 0; i <
|
|
8127
|
-
const key =
|
|
8127
|
+
var getDeep = (object, path3) => {
|
|
8128
|
+
validatePath(path3);
|
|
8129
|
+
for (let i = 0; i < path3.length; i++) {
|
|
8130
|
+
const key = path3[i];
|
|
8128
8131
|
if (isSet(object)) {
|
|
8129
8132
|
object = getNthKey(object, +key);
|
|
8130
8133
|
} else if (isMap(object)) {
|
|
8131
8134
|
const row = +key;
|
|
8132
|
-
const type = +
|
|
8135
|
+
const type = +path3[++i] === 0 ? "key" : "value";
|
|
8133
8136
|
const keyOfRow = getNthKey(object, row);
|
|
8134
8137
|
switch (type) {
|
|
8135
8138
|
case "key":
|
|
@@ -8145,14 +8148,14 @@ var getDeep = (object, path2) => {
|
|
|
8145
8148
|
}
|
|
8146
8149
|
return object;
|
|
8147
8150
|
};
|
|
8148
|
-
var setDeep = (object,
|
|
8149
|
-
validatePath(
|
|
8150
|
-
if (
|
|
8151
|
+
var setDeep = (object, path3, mapper) => {
|
|
8152
|
+
validatePath(path3);
|
|
8153
|
+
if (path3.length === 0) {
|
|
8151
8154
|
return mapper(object);
|
|
8152
8155
|
}
|
|
8153
8156
|
let parent = object;
|
|
8154
|
-
for (let i = 0; i <
|
|
8155
|
-
const key =
|
|
8157
|
+
for (let i = 0; i < path3.length - 1; i++) {
|
|
8158
|
+
const key = path3[i];
|
|
8156
8159
|
if (isArray(parent)) {
|
|
8157
8160
|
const index = +key;
|
|
8158
8161
|
parent = parent[index];
|
|
@@ -8162,12 +8165,12 @@ var setDeep = (object, path2, mapper) => {
|
|
|
8162
8165
|
const row = +key;
|
|
8163
8166
|
parent = getNthKey(parent, row);
|
|
8164
8167
|
} else if (isMap(parent)) {
|
|
8165
|
-
const isEnd = i ===
|
|
8168
|
+
const isEnd = i === path3.length - 2;
|
|
8166
8169
|
if (isEnd) {
|
|
8167
8170
|
break;
|
|
8168
8171
|
}
|
|
8169
8172
|
const row = +key;
|
|
8170
|
-
const type = +
|
|
8173
|
+
const type = +path3[++i] === 0 ? "key" : "value";
|
|
8171
8174
|
const keyOfRow = getNthKey(parent, row);
|
|
8172
8175
|
switch (type) {
|
|
8173
8176
|
case "key":
|
|
@@ -8179,7 +8182,7 @@ var setDeep = (object, path2, mapper) => {
|
|
|
8179
8182
|
}
|
|
8180
8183
|
}
|
|
8181
8184
|
}
|
|
8182
|
-
const lastKey =
|
|
8185
|
+
const lastKey = path3[path3.length - 1];
|
|
8183
8186
|
if (isArray(parent)) {
|
|
8184
8187
|
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
8185
8188
|
} else if (isPlainObject(parent)) {
|
|
@@ -8194,7 +8197,7 @@ var setDeep = (object, path2, mapper) => {
|
|
|
8194
8197
|
}
|
|
8195
8198
|
}
|
|
8196
8199
|
if (isMap(parent)) {
|
|
8197
|
-
const row = +
|
|
8200
|
+
const row = +path3[path3.length - 2];
|
|
8198
8201
|
const keyToRow = getNthKey(parent, row);
|
|
8199
8202
|
const type = +lastKey === 0 ? "key" : "value";
|
|
8200
8203
|
switch (type) {
|
|
@@ -8215,7 +8218,7 @@ var setDeep = (object, path2, mapper) => {
|
|
|
8215
8218
|
return object;
|
|
8216
8219
|
};
|
|
8217
8220
|
|
|
8218
|
-
// node_modules
|
|
8221
|
+
// node_modules/superjson/dist/plainer.js
|
|
8219
8222
|
var enableLegacyPaths = (version) => version < 1;
|
|
8220
8223
|
function traverse(tree, walker2, version, origin = []) {
|
|
8221
8224
|
if (!tree) {
|
|
@@ -8241,16 +8244,16 @@ function traverse(tree, walker2, version, origin = []) {
|
|
|
8241
8244
|
walker2(nodeValue, origin);
|
|
8242
8245
|
}
|
|
8243
8246
|
function applyValueAnnotations(plain, annotations, version, superJson) {
|
|
8244
|
-
traverse(annotations, (type,
|
|
8245
|
-
plain = setDeep(plain,
|
|
8247
|
+
traverse(annotations, (type, path3) => {
|
|
8248
|
+
plain = setDeep(plain, path3, (v) => untransformValue(v, type, superJson));
|
|
8246
8249
|
}, version);
|
|
8247
8250
|
return plain;
|
|
8248
8251
|
}
|
|
8249
8252
|
function applyReferentialEqualityAnnotations(plain, annotations, version) {
|
|
8250
8253
|
const legacyPaths = enableLegacyPaths(version);
|
|
8251
|
-
function apply(identicalPaths,
|
|
8252
|
-
const object = getDeep(plain, parsePath(
|
|
8253
|
-
identicalPaths.map((
|
|
8254
|
+
function apply(identicalPaths, path3) {
|
|
8255
|
+
const object = getDeep(plain, parsePath(path3, legacyPaths));
|
|
8256
|
+
identicalPaths.map((path4) => parsePath(path4, legacyPaths)).forEach((identicalObjectPath) => {
|
|
8254
8257
|
plain = setDeep(plain, identicalObjectPath, () => object);
|
|
8255
8258
|
});
|
|
8256
8259
|
}
|
|
@@ -8268,12 +8271,12 @@ function applyReferentialEqualityAnnotations(plain, annotations, version) {
|
|
|
8268
8271
|
return plain;
|
|
8269
8272
|
}
|
|
8270
8273
|
var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isError(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
8271
|
-
function addIdentity(object,
|
|
8274
|
+
function addIdentity(object, path3, identities) {
|
|
8272
8275
|
const existingSet = identities.get(object);
|
|
8273
8276
|
if (existingSet) {
|
|
8274
|
-
existingSet.push(
|
|
8277
|
+
existingSet.push(path3);
|
|
8275
8278
|
} else {
|
|
8276
|
-
identities.set(object, [
|
|
8279
|
+
identities.set(object, [path3]);
|
|
8277
8280
|
}
|
|
8278
8281
|
}
|
|
8279
8282
|
function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
@@ -8284,7 +8287,7 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
|
8284
8287
|
return;
|
|
8285
8288
|
}
|
|
8286
8289
|
if (!dedupe) {
|
|
8287
|
-
paths = paths.map((
|
|
8290
|
+
paths = paths.map((path3) => path3.map(String)).sort((a, b) => a.length - b.length);
|
|
8288
8291
|
}
|
|
8289
8292
|
const [representativePath, ...identicalPaths] = paths;
|
|
8290
8293
|
if (representativePath.length === 0) {
|
|
@@ -8303,10 +8306,10 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
|
8303
8306
|
return isEmptyObject(result) ? void 0 : result;
|
|
8304
8307
|
}
|
|
8305
8308
|
}
|
|
8306
|
-
var walker = (object, identities, superJson, dedupe,
|
|
8309
|
+
var walker = (object, identities, superJson, dedupe, path3 = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
|
|
8307
8310
|
const primitive = isPrimitive(object);
|
|
8308
8311
|
if (!primitive) {
|
|
8309
|
-
addIdentity(object,
|
|
8312
|
+
addIdentity(object, path3, identities);
|
|
8310
8313
|
const seen = seenObjects.get(object);
|
|
8311
8314
|
if (seen) {
|
|
8312
8315
|
return dedupe ? {
|
|
@@ -8340,7 +8343,7 @@ var walker = (object, identities, superJson, dedupe, path2 = [], objectsInThisPa
|
|
|
8340
8343
|
if (index === "__proto__" || index === "constructor" || index === "prototype") {
|
|
8341
8344
|
throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
|
|
8342
8345
|
}
|
|
8343
|
-
const recursiveResult = walker(value, identities, superJson, dedupe, [...
|
|
8346
|
+
const recursiveResult = walker(value, identities, superJson, dedupe, [...path3, index], [...objectsInThisPath, object], seenObjects);
|
|
8344
8347
|
transformedValue[index] = recursiveResult.transformedValue;
|
|
8345
8348
|
if (isArray(recursiveResult.annotations)) {
|
|
8346
8349
|
innerAnnotations[escapeKey(index)] = recursiveResult.annotations;
|
|
@@ -8363,17 +8366,17 @@ var walker = (object, identities, superJson, dedupe, path2 = [], objectsInThisPa
|
|
|
8363
8366
|
return result;
|
|
8364
8367
|
};
|
|
8365
8368
|
|
|
8366
|
-
// node_modules
|
|
8369
|
+
// node_modules/is-what/dist/getType.js
|
|
8367
8370
|
function getType2(payload) {
|
|
8368
8371
|
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
8369
8372
|
}
|
|
8370
8373
|
|
|
8371
|
-
// node_modules
|
|
8374
|
+
// node_modules/is-what/dist/isArray.js
|
|
8372
8375
|
function isArray2(payload) {
|
|
8373
8376
|
return getType2(payload) === "Array";
|
|
8374
8377
|
}
|
|
8375
8378
|
|
|
8376
|
-
// node_modules
|
|
8379
|
+
// node_modules/is-what/dist/isPlainObject.js
|
|
8377
8380
|
function isPlainObject2(payload) {
|
|
8378
8381
|
if (getType2(payload) !== "Object")
|
|
8379
8382
|
return false;
|
|
@@ -8381,7 +8384,7 @@ function isPlainObject2(payload) {
|
|
|
8381
8384
|
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
8382
8385
|
}
|
|
8383
8386
|
|
|
8384
|
-
// node_modules
|
|
8387
|
+
// node_modules/copy-anything/dist/index.js
|
|
8385
8388
|
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
8386
8389
|
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
8387
8390
|
if (propType === "enumerable")
|
|
@@ -8417,7 +8420,7 @@ function copy(target, options = {}) {
|
|
|
8417
8420
|
}, {});
|
|
8418
8421
|
}
|
|
8419
8422
|
|
|
8420
|
-
// node_modules
|
|
8423
|
+
// node_modules/superjson/dist/index.js
|
|
8421
8424
|
var SuperJSON = class {
|
|
8422
8425
|
/**
|
|
8423
8426
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
@@ -8518,7 +8521,35 @@ function getApiKey() {
|
|
|
8518
8521
|
return process.env.FEAST_API_KEY ?? PROD_API_KEY;
|
|
8519
8522
|
}
|
|
8520
8523
|
|
|
8524
|
+
// src/jwt.ts
|
|
8525
|
+
function decodeJwtPayload(jwt) {
|
|
8526
|
+
const payload = jwt.split(".")[1];
|
|
8527
|
+
if (payload == null) {
|
|
8528
|
+
throw new Error("Malformed JWT");
|
|
8529
|
+
}
|
|
8530
|
+
return JSON.parse(Buffer.from(payload, "base64url").toString("utf-8"));
|
|
8531
|
+
}
|
|
8532
|
+
|
|
8521
8533
|
// src/http.ts
|
|
8534
|
+
function readPackageVersion() {
|
|
8535
|
+
try {
|
|
8536
|
+
const require2 = createRequire(import.meta.url);
|
|
8537
|
+
return require2("../package.json").version ?? "unknown";
|
|
8538
|
+
} catch {
|
|
8539
|
+
return "unknown";
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
var CLI_VERSION = readPackageVersion();
|
|
8543
|
+
var CLI_CLIENT_ID = `feast-cli/${CLI_VERSION}`;
|
|
8544
|
+
var CLI_USER_AGENT = `${CLI_CLIENT_ID} node/${process.versions.node}`;
|
|
8545
|
+
function usernameFromToken(accessToken) {
|
|
8546
|
+
try {
|
|
8547
|
+
const payload = decodeJwtPayload(accessToken);
|
|
8548
|
+
return payload.username ?? payload.sub;
|
|
8549
|
+
} catch {
|
|
8550
|
+
return void 0;
|
|
8551
|
+
}
|
|
8552
|
+
}
|
|
8522
8553
|
function createHttpCaller(auth) {
|
|
8523
8554
|
return createTRPCProxyClient({
|
|
8524
8555
|
transformer: dist_default,
|
|
@@ -8527,11 +8558,17 @@ function createHttpCaller(auth) {
|
|
|
8527
8558
|
url: getApiUrl(),
|
|
8528
8559
|
headers: () => {
|
|
8529
8560
|
const headers = {
|
|
8530
|
-
"x-api-key": getApiKey()
|
|
8561
|
+
"x-api-key": getApiKey(),
|
|
8562
|
+
"x-client": CLI_CLIENT_ID,
|
|
8563
|
+
"user-agent": CLI_USER_AGENT
|
|
8531
8564
|
};
|
|
8532
8565
|
if (auth.accessToken != null) {
|
|
8533
8566
|
headers["x-access-token"] = `Bearer ${auth.accessToken}`;
|
|
8534
8567
|
headers["x-timezone"] = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
8568
|
+
const username = usernameFromToken(auth.accessToken);
|
|
8569
|
+
if (username != null) {
|
|
8570
|
+
headers["x-client-user"] = username;
|
|
8571
|
+
}
|
|
8535
8572
|
}
|
|
8536
8573
|
if (auth.preferredRole != null) {
|
|
8537
8574
|
headers["x-preferred-role"] = auth.preferredRole;
|
|
@@ -8552,13 +8589,6 @@ function callProcedure(client, pathSegments, type, input) {
|
|
|
8552
8589
|
|
|
8553
8590
|
// src/auth.ts
|
|
8554
8591
|
var REFRESH_MARGIN_MS = 5 * 60 * 1e3;
|
|
8555
|
-
function decodeJwtPayload(jwt) {
|
|
8556
|
-
const payload = jwt.split(".")[1];
|
|
8557
|
-
if (payload == null) {
|
|
8558
|
-
throw new Error("Malformed JWT");
|
|
8559
|
-
}
|
|
8560
|
-
return JSON.parse(Buffer.from(payload, "base64url").toString("utf-8"));
|
|
8561
|
-
}
|
|
8562
8592
|
async function login(username, password) {
|
|
8563
8593
|
const client = createHttpCaller({});
|
|
8564
8594
|
const response = await client.api.auth.login.query({ username, password });
|
|
@@ -10828,6 +10858,81 @@ var CLI_MANIFEST = {
|
|
|
10828
10858
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
10829
10859
|
}
|
|
10830
10860
|
},
|
|
10861
|
+
{
|
|
10862
|
+
"id": "deleteMedia",
|
|
10863
|
+
"domain": "core",
|
|
10864
|
+
"description": "Delete an uploaded media file for the organization by its S3 key. The key must belong to the given scope (passBuilder, funnel, organizationFilePublic, organizationFilePrivate, or creativeLibrary).",
|
|
10865
|
+
"needsApproval": true,
|
|
10866
|
+
"type": "mutation",
|
|
10867
|
+
"path": [
|
|
10868
|
+
"api",
|
|
10869
|
+
"media",
|
|
10870
|
+
"delete"
|
|
10871
|
+
],
|
|
10872
|
+
"inputJsonSchema": {
|
|
10873
|
+
"type": "object",
|
|
10874
|
+
"properties": {
|
|
10875
|
+
"scope": {
|
|
10876
|
+
"type": "string",
|
|
10877
|
+
"enum": [
|
|
10878
|
+
"passBuilder",
|
|
10879
|
+
"funnel",
|
|
10880
|
+
"organizationFilePublic",
|
|
10881
|
+
"organizationFilePrivate",
|
|
10882
|
+
"creativeLibrary"
|
|
10883
|
+
]
|
|
10884
|
+
},
|
|
10885
|
+
"key": {
|
|
10886
|
+
"type": "string"
|
|
10887
|
+
}
|
|
10888
|
+
},
|
|
10889
|
+
"required": [
|
|
10890
|
+
"scope",
|
|
10891
|
+
"key"
|
|
10892
|
+
],
|
|
10893
|
+
"additionalProperties": false,
|
|
10894
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
10895
|
+
}
|
|
10896
|
+
},
|
|
10897
|
+
{
|
|
10898
|
+
"id": "describeData",
|
|
10899
|
+
"domain": "data",
|
|
10900
|
+
"description": "Describe the queryable data model, then use queryData to read it. Call with no arguments for an index of every queryable object type plus the full query grammar - start here. Call with schemaName for every object type in that schema with full column detail, schemaName plus objectTypeName for a single object type, or detail='full' for the entire model at once. Columns come back with their type, enum values, nullability and a description; links come back with the name you pass to a pivot or join command. Prefer the 'interface' schema, whose object types (order, orderItem, customer, location, ...) are POS-agnostic and return the same shape regardless of which POS the organization runs. Pass includeGrammar=false to omit the grammar once you already have it.",
|
|
10901
|
+
"needsApproval": false,
|
|
10902
|
+
"type": "query",
|
|
10903
|
+
"path": [
|
|
10904
|
+
"api",
|
|
10905
|
+
"data",
|
|
10906
|
+
"describe"
|
|
10907
|
+
],
|
|
10908
|
+
"inputJsonSchema": {
|
|
10909
|
+
"type": "object",
|
|
10910
|
+
"properties": {
|
|
10911
|
+
"schemaName": {
|
|
10912
|
+
"type": "string",
|
|
10913
|
+
"description": 'Narrow to one schema, e.g. "interface", "core", "events", "texting". Omit for the index of everything.'
|
|
10914
|
+
},
|
|
10915
|
+
"objectTypeName": {
|
|
10916
|
+
"type": "string",
|
|
10917
|
+
"description": 'Narrow to one object type within schemaName, e.g. "order", "guest". Requires schemaName.'
|
|
10918
|
+
},
|
|
10919
|
+
"detail": {
|
|
10920
|
+
"type": "string",
|
|
10921
|
+
"enum": [
|
|
10922
|
+
"index",
|
|
10923
|
+
"full"
|
|
10924
|
+
],
|
|
10925
|
+
"description": 'Only applies when schemaName is omitted. "index" (default) lists object types with a one-line description; "full" returns every column of every object type.'
|
|
10926
|
+
},
|
|
10927
|
+
"includeGrammar": {
|
|
10928
|
+
"type": "boolean",
|
|
10929
|
+
"description": "Whether to include the query grammar for queryData. Defaults to true; pass false once you already have it."
|
|
10930
|
+
}
|
|
10931
|
+
},
|
|
10932
|
+
"additionalProperties": false,
|
|
10933
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
10934
|
+
}
|
|
10935
|
+
},
|
|
10831
10936
|
{
|
|
10832
10937
|
"id": "dfyCreateOffer",
|
|
10833
10938
|
"domain": "offer",
|
|
@@ -11252,6 +11357,49 @@ var CLI_MANIFEST = {
|
|
|
11252
11357
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11253
11358
|
}
|
|
11254
11359
|
},
|
|
11360
|
+
{
|
|
11361
|
+
"id": "getMediaUploadUrl",
|
|
11362
|
+
"domain": "core",
|
|
11363
|
+
"description": "Get a presigned S3 upload URL for a media file in a given scope (passBuilder, funnel, organizationFilePublic, organizationFilePrivate, creativeLibrary). Set cropped to store a cropped variant under the scope's cropped/ subfolder. PUT the file bytes to the returned presignedUrl, then reference the returned url/key.",
|
|
11364
|
+
"needsApproval": false,
|
|
11365
|
+
"type": "mutation",
|
|
11366
|
+
"path": [
|
|
11367
|
+
"api",
|
|
11368
|
+
"media",
|
|
11369
|
+
"getUploadUrl"
|
|
11370
|
+
],
|
|
11371
|
+
"inputJsonSchema": {
|
|
11372
|
+
"type": "object",
|
|
11373
|
+
"properties": {
|
|
11374
|
+
"scope": {
|
|
11375
|
+
"type": "string",
|
|
11376
|
+
"enum": [
|
|
11377
|
+
"passBuilder",
|
|
11378
|
+
"funnel",
|
|
11379
|
+
"organizationFilePublic",
|
|
11380
|
+
"organizationFilePrivate",
|
|
11381
|
+
"creativeLibrary"
|
|
11382
|
+
]
|
|
11383
|
+
},
|
|
11384
|
+
"fileName": {
|
|
11385
|
+
"type": "string"
|
|
11386
|
+
},
|
|
11387
|
+
"fileType": {
|
|
11388
|
+
"type": "string"
|
|
11389
|
+
},
|
|
11390
|
+
"cropped": {
|
|
11391
|
+
"type": "boolean"
|
|
11392
|
+
}
|
|
11393
|
+
},
|
|
11394
|
+
"required": [
|
|
11395
|
+
"scope",
|
|
11396
|
+
"fileName",
|
|
11397
|
+
"fileType"
|
|
11398
|
+
],
|
|
11399
|
+
"additionalProperties": false,
|
|
11400
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11401
|
+
}
|
|
11402
|
+
},
|
|
11255
11403
|
{
|
|
11256
11404
|
"id": "listAutomationFlows",
|
|
11257
11405
|
"domain": "automations",
|
|
@@ -11430,6 +11578,48 @@ var CLI_MANIFEST = {
|
|
|
11430
11578
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11431
11579
|
}
|
|
11432
11580
|
},
|
|
11581
|
+
{
|
|
11582
|
+
"id": "listMedia",
|
|
11583
|
+
"domain": "core",
|
|
11584
|
+
"description": "List uploaded media files for the organization across one or more scopes (passBuilder, funnel, organizationFilePublic, organizationFilePrivate, creativeLibrary). Each file is tagged with its scope and a canDelete flag. Set mediaOnly to return only image/video files. Set cropped to list the cropped variants (each scope's cropped/ subfolder) instead of the base files.",
|
|
11585
|
+
"needsApproval": false,
|
|
11586
|
+
"type": "query",
|
|
11587
|
+
"path": [
|
|
11588
|
+
"api",
|
|
11589
|
+
"media",
|
|
11590
|
+
"list"
|
|
11591
|
+
],
|
|
11592
|
+
"inputJsonSchema": {
|
|
11593
|
+
"type": "object",
|
|
11594
|
+
"properties": {
|
|
11595
|
+
"scopes": {
|
|
11596
|
+
"type": "array",
|
|
11597
|
+
"items": {
|
|
11598
|
+
"type": "string",
|
|
11599
|
+
"enum": [
|
|
11600
|
+
"passBuilder",
|
|
11601
|
+
"funnel",
|
|
11602
|
+
"organizationFilePublic",
|
|
11603
|
+
"organizationFilePrivate",
|
|
11604
|
+
"creativeLibrary"
|
|
11605
|
+
]
|
|
11606
|
+
},
|
|
11607
|
+
"minItems": 1
|
|
11608
|
+
},
|
|
11609
|
+
"mediaOnly": {
|
|
11610
|
+
"type": "boolean"
|
|
11611
|
+
},
|
|
11612
|
+
"cropped": {
|
|
11613
|
+
"type": "boolean"
|
|
11614
|
+
}
|
|
11615
|
+
},
|
|
11616
|
+
"required": [
|
|
11617
|
+
"scopes"
|
|
11618
|
+
],
|
|
11619
|
+
"additionalProperties": false,
|
|
11620
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11621
|
+
}
|
|
11622
|
+
},
|
|
11433
11623
|
{
|
|
11434
11624
|
"id": "loadCurrentOrganization",
|
|
11435
11625
|
"domain": "core",
|
|
@@ -11544,6 +11734,184 @@ var CLI_MANIFEST = {
|
|
|
11544
11734
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11545
11735
|
}
|
|
11546
11736
|
},
|
|
11737
|
+
{
|
|
11738
|
+
"id": "queryData",
|
|
11739
|
+
"domain": "data",
|
|
11740
|
+
"description": `Run a read-only query against the organization's data. Call describeData first for the object types and their exact column names - do not guess columns.
|
|
11741
|
+
Results are always scoped to the calling organization, so never filter on organizationId yourself.
|
|
11742
|
+
|
|
11743
|
+
Example - export opted-in members with more than 5 visits, newest first:
|
|
11744
|
+
{"schemaName":"core","objectTypeName":"guest","commands":[{"type":"filter","filter":{"type":"and","filters":[{"$optIn":{"boolean":true}},{"$testUser":{"boolean":false}},{"$progress":{"number":5,"match":"GT"}}]}}],"args":{"limit":500,"order":{"field":"timeAdded","direction":"DESC"},"fields":["serialNumber","firstName","lastName","phoneNumber","email","progress"]}}
|
|
11745
|
+
|
|
11746
|
+
Example - order revenue by location for orders closed this year:
|
|
11747
|
+
{"schemaName":"interface","objectTypeName":"order","commands":[{"type":"filter","filter":{"$closedAt":{"datetime":"2026-01-01T00:00:00.000Z","match":"GTE"}}},{"type":"aggregate","aggregate":{"aggregate":{"$amount":"SUM"},"groupBy":{"$locationId":"EXACT"}}}]}
|
|
11748
|
+
|
|
11749
|
+
Example - a member's recent texts, newest first:
|
|
11750
|
+
{"schemaName":"texting","objectTypeName":"textMessage","commands":[{"type":"filter","filter":{"$serialNumber":{"string":"<serial>","match":"EQ"}}}],"args":{"limit":50,"order":{"field":"dateCreated","direction":"DESC"}}}
|
|
11751
|
+
|
|
11752
|
+
Filter leaves are one column each, written as the column name prefixed with $, combined with {"type":"and"|"or","filters":[...]}. Use {"strings":[...]} for any-of rather than a large or. Page by passing the returned nextCursor back as args.cursor.`,
|
|
11753
|
+
"needsApproval": false,
|
|
11754
|
+
"type": "query",
|
|
11755
|
+
"path": [
|
|
11756
|
+
"api",
|
|
11757
|
+
"data",
|
|
11758
|
+
"query"
|
|
11759
|
+
],
|
|
11760
|
+
"inputJsonSchema": {
|
|
11761
|
+
"type": "object",
|
|
11762
|
+
"properties": {
|
|
11763
|
+
"schemaName": {
|
|
11764
|
+
"type": "string",
|
|
11765
|
+
"description": 'Schema as reported by describeData, e.g. "interface", "core", "events", "texting".'
|
|
11766
|
+
},
|
|
11767
|
+
"objectTypeName": {
|
|
11768
|
+
"type": "string",
|
|
11769
|
+
"description": 'Object type as reported by describeData, e.g. "order", "guest", "userEvent", "textMessage".'
|
|
11770
|
+
},
|
|
11771
|
+
"commands": {
|
|
11772
|
+
"type": "array",
|
|
11773
|
+
"items": {
|
|
11774
|
+
"anyOf": [
|
|
11775
|
+
{
|
|
11776
|
+
"type": "object",
|
|
11777
|
+
"properties": {
|
|
11778
|
+
"type": {
|
|
11779
|
+
"type": "string",
|
|
11780
|
+
"const": "filter"
|
|
11781
|
+
},
|
|
11782
|
+
"filter": {
|
|
11783
|
+
"description": 'Required. A filter tree. One column per leaf, as the column name prefixed with $. Leaf: {"$<column>": <predicate>}. Combine with {"type":"and","filters":[...]} or {"type":"or","filters":[...]}. Predicates by column type - string: {"string":"Jane","match":"EQ"|"NEQ"|"IN"|"ENDS_WITH"} where IN means contains, or {"strings":["a","b"]} for any-of. number: {"number":5,"match":"GT"|"GTE"|"LT"|"LTE"|"EQ"|"NEQ"}. boolean: {"boolean":true} with no match key. datetime/date: {"datetime":"2026-01-01T00:00:00.000Z","match":"GTE"}. Nullable columns also accept {"match":"NULL"} or {"match":"NOT_NULL"}. Example: {"type":"and","filters":[{"$optIn":{"boolean":true}},{"$progress":{"number":5,"match":"GT"}}]}'
|
|
11784
|
+
}
|
|
11785
|
+
},
|
|
11786
|
+
"required": [
|
|
11787
|
+
"type",
|
|
11788
|
+
"filter"
|
|
11789
|
+
],
|
|
11790
|
+
"additionalProperties": false,
|
|
11791
|
+
"description": 'Restrict the set to matching rows. Example: {"type":"filter","filter":{"$eventType":{"strings":["order","rewardAwarded"]}}}'
|
|
11792
|
+
},
|
|
11793
|
+
{
|
|
11794
|
+
"type": "object",
|
|
11795
|
+
"properties": {
|
|
11796
|
+
"type": {
|
|
11797
|
+
"type": "string",
|
|
11798
|
+
"const": "pivot"
|
|
11799
|
+
},
|
|
11800
|
+
"name": {
|
|
11801
|
+
"type": "string",
|
|
11802
|
+
"description": "A link name from describeData's links for the current object type. Replaces the set with that linked object type, so later commands apply to the new type."
|
|
11803
|
+
}
|
|
11804
|
+
},
|
|
11805
|
+
"required": [
|
|
11806
|
+
"type",
|
|
11807
|
+
"name"
|
|
11808
|
+
],
|
|
11809
|
+
"additionalProperties": false,
|
|
11810
|
+
"description": 'Traverse a link. Example: {"type":"pivot","name":"orderItem"} on interface.order gives its line items.'
|
|
11811
|
+
},
|
|
11812
|
+
{
|
|
11813
|
+
"type": "object",
|
|
11814
|
+
"properties": {
|
|
11815
|
+
"type": {
|
|
11816
|
+
"type": "string",
|
|
11817
|
+
"const": "aggregate"
|
|
11818
|
+
},
|
|
11819
|
+
"aggregate": {
|
|
11820
|
+
"description": 'Required. Group and aggregate, replacing the row shape with the grouped and aggregated columns only. Shape: {"aggregate":{"$<column>":"SUM"|"MAX"|"MIN"|"AVG"|"COUNT"},"groupBy":{"$<column>":"EXACT"}}. Example - revenue by location: {"aggregate":{"$amount":"SUM"},"groupBy":{"$locationId":"EXACT"}}'
|
|
11821
|
+
}
|
|
11822
|
+
},
|
|
11823
|
+
"required": [
|
|
11824
|
+
"type",
|
|
11825
|
+
"aggregate"
|
|
11826
|
+
],
|
|
11827
|
+
"additionalProperties": false,
|
|
11828
|
+
"description": 'Group and aggregate. Example: {"type":"aggregate","aggregate":{"aggregate":{"$amount":"SUM"},"groupBy":{"$locationId":"EXACT"}}}'
|
|
11829
|
+
},
|
|
11830
|
+
{
|
|
11831
|
+
"type": "object",
|
|
11832
|
+
"properties": {
|
|
11833
|
+
"type": {
|
|
11834
|
+
"type": "string",
|
|
11835
|
+
"const": "join"
|
|
11836
|
+
},
|
|
11837
|
+
"name": {
|
|
11838
|
+
"type": "string",
|
|
11839
|
+
"description": "A link name from describeData for the current object type."
|
|
11840
|
+
},
|
|
11841
|
+
"fields": {
|
|
11842
|
+
"type": "array",
|
|
11843
|
+
"items": {
|
|
11844
|
+
"type": "string"
|
|
11845
|
+
},
|
|
11846
|
+
"description": "Columns to pull from the linked object type."
|
|
11847
|
+
}
|
|
11848
|
+
},
|
|
11849
|
+
"required": [
|
|
11850
|
+
"type",
|
|
11851
|
+
"name",
|
|
11852
|
+
"fields"
|
|
11853
|
+
],
|
|
11854
|
+
"additionalProperties": false,
|
|
11855
|
+
"description": 'Widen each row with columns from a linked object, keeping the current object type. Example: {"type":"join","name":"order","fields":["closedAt","amount"]}'
|
|
11856
|
+
}
|
|
11857
|
+
]
|
|
11858
|
+
},
|
|
11859
|
+
"description": "Ordered list of commands, each narrowing or reshaping the set before the fetch. Omit to fetch the object type unfiltered. pivot and join must come before any aggregate."
|
|
11860
|
+
},
|
|
11861
|
+
"args": {
|
|
11862
|
+
"type": "object",
|
|
11863
|
+
"properties": {
|
|
11864
|
+
"limit": {
|
|
11865
|
+
"type": "integer",
|
|
11866
|
+
"exclusiveMinimum": 0,
|
|
11867
|
+
"maximum": 1e3,
|
|
11868
|
+
"description": "Rows to return. Defaults to 100, maximum 1000."
|
|
11869
|
+
},
|
|
11870
|
+
"cursor": {
|
|
11871
|
+
"type": "integer",
|
|
11872
|
+
"minimum": 0,
|
|
11873
|
+
"description": "Row offset. Pass the nextCursor from the previous response to page; a missing nextCursor means there are no more rows."
|
|
11874
|
+
},
|
|
11875
|
+
"order": {
|
|
11876
|
+
"type": "object",
|
|
11877
|
+
"properties": {
|
|
11878
|
+
"field": {
|
|
11879
|
+
"type": "string"
|
|
11880
|
+
},
|
|
11881
|
+
"direction": {
|
|
11882
|
+
"type": "string",
|
|
11883
|
+
"enum": [
|
|
11884
|
+
"ASC",
|
|
11885
|
+
"DESC"
|
|
11886
|
+
]
|
|
11887
|
+
}
|
|
11888
|
+
},
|
|
11889
|
+
"required": [
|
|
11890
|
+
"field",
|
|
11891
|
+
"direction"
|
|
11892
|
+
],
|
|
11893
|
+
"additionalProperties": false,
|
|
11894
|
+
"description": 'Sort order. Example: {"field":"eventTime","direction":"DESC"}'
|
|
11895
|
+
},
|
|
11896
|
+
"fields": {
|
|
11897
|
+
"type": "array",
|
|
11898
|
+
"items": {
|
|
11899
|
+
"type": "string"
|
|
11900
|
+
},
|
|
11901
|
+
"description": "Columns to return. Omit for all of them. The main lever for keeping responses under the payload cap on wide object types."
|
|
11902
|
+
}
|
|
11903
|
+
},
|
|
11904
|
+
"additionalProperties": false
|
|
11905
|
+
}
|
|
11906
|
+
},
|
|
11907
|
+
"required": [
|
|
11908
|
+
"schemaName",
|
|
11909
|
+
"objectTypeName"
|
|
11910
|
+
],
|
|
11911
|
+
"additionalProperties": false,
|
|
11912
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
11913
|
+
}
|
|
11914
|
+
},
|
|
11547
11915
|
{
|
|
11548
11916
|
"id": "saveFunnelEdits",
|
|
11549
11917
|
"domain": "funnel",
|
|
@@ -17563,6 +17931,9 @@ var CLI_MANIFEST = {
|
|
|
17563
17931
|
"type": "string",
|
|
17564
17932
|
"enum": [
|
|
17565
17933
|
"first",
|
|
17934
|
+
"second",
|
|
17935
|
+
"third",
|
|
17936
|
+
"fourth",
|
|
17566
17937
|
"last"
|
|
17567
17938
|
]
|
|
17568
17939
|
}
|
|
@@ -17984,7 +18355,8 @@ Call options:
|
|
|
17984
18355
|
|
|
17985
18356
|
Environment:
|
|
17986
18357
|
FEAST_API_URL Override the API base URL (default: production)
|
|
17987
|
-
FEAST_WEB_URL Override the web app base URL for browser login (default: production)
|
|
18358
|
+
FEAST_WEB_URL Override the web app base URL for browser login (default: production)
|
|
18359
|
+
FEAST_NO_UPDATE_CHECK Disable the daily check for a newer published version`;
|
|
17988
18360
|
function parseArgs(argv) {
|
|
17989
18361
|
const positional = [];
|
|
17990
18362
|
const flags = {};
|
|
@@ -18237,11 +18609,121 @@ async function runCli(argv) {
|
|
|
18237
18609
|
}
|
|
18238
18610
|
}
|
|
18239
18611
|
|
|
18612
|
+
// src/updateNotifier.ts
|
|
18613
|
+
import fs3 from "fs";
|
|
18614
|
+
import { createRequire as createRequire2 } from "module";
|
|
18615
|
+
import os2 from "os";
|
|
18616
|
+
import path2 from "path";
|
|
18617
|
+
var PACKAGE_NAME = "@feastalytics/cli";
|
|
18618
|
+
var REGISTRY_URL = "https://registry.npmjs.org";
|
|
18619
|
+
var CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
18620
|
+
var FETCH_TIMEOUT_MS = 1500;
|
|
18621
|
+
var CACHE_DIR = path2.join(os2.homedir(), ".config", "feast-cli");
|
|
18622
|
+
var CACHE_PATH = path2.join(CACHE_DIR, "update-check.json");
|
|
18623
|
+
function readPackageVersion2() {
|
|
18624
|
+
try {
|
|
18625
|
+
const require2 = createRequire2(import.meta.url);
|
|
18626
|
+
const version = require2("../package.json").version;
|
|
18627
|
+
return typeof version === "string" ? version : void 0;
|
|
18628
|
+
} catch {
|
|
18629
|
+
return void 0;
|
|
18630
|
+
}
|
|
18631
|
+
}
|
|
18632
|
+
function parseVersion(version) {
|
|
18633
|
+
const parts = version.split(".");
|
|
18634
|
+
if (parts.length !== 3) {
|
|
18635
|
+
return void 0;
|
|
18636
|
+
}
|
|
18637
|
+
const numbers = parts.map((part) => Number(part));
|
|
18638
|
+
return numbers.some((number) => !Number.isInteger(number) || number < 0) ? void 0 : numbers;
|
|
18639
|
+
}
|
|
18640
|
+
function isNewer(latest, current) {
|
|
18641
|
+
const a = parseVersion(latest);
|
|
18642
|
+
const b = parseVersion(current);
|
|
18643
|
+
if (a == null || b == null) {
|
|
18644
|
+
return false;
|
|
18645
|
+
}
|
|
18646
|
+
for (let i = 0; i < 3; i++) {
|
|
18647
|
+
if (a[i] !== b[i]) {
|
|
18648
|
+
return a[i] > b[i];
|
|
18649
|
+
}
|
|
18650
|
+
}
|
|
18651
|
+
return false;
|
|
18652
|
+
}
|
|
18653
|
+
function isDisabled() {
|
|
18654
|
+
return process.env.FEAST_NO_UPDATE_CHECK != null || process.env.NO_UPDATE_NOTIFIER != null || process.env.CI != null || !process.stderr.isTTY;
|
|
18655
|
+
}
|
|
18656
|
+
function readCache() {
|
|
18657
|
+
try {
|
|
18658
|
+
const parsed = JSON.parse(
|
|
18659
|
+
fs3.readFileSync(CACHE_PATH, "utf-8")
|
|
18660
|
+
);
|
|
18661
|
+
return typeof parsed.latest === "string" && typeof parsed.checkedAt === "number" ? parsed : void 0;
|
|
18662
|
+
} catch {
|
|
18663
|
+
return void 0;
|
|
18664
|
+
}
|
|
18665
|
+
}
|
|
18666
|
+
function writeCache(cache) {
|
|
18667
|
+
try {
|
|
18668
|
+
fs3.mkdirSync(CACHE_DIR, { recursive: true, mode: 448 });
|
|
18669
|
+
fs3.writeFileSync(CACHE_PATH, JSON.stringify(cache));
|
|
18670
|
+
} catch {
|
|
18671
|
+
return;
|
|
18672
|
+
}
|
|
18673
|
+
}
|
|
18674
|
+
async function fetchLatestVersion() {
|
|
18675
|
+
try {
|
|
18676
|
+
const response = await fetch(
|
|
18677
|
+
`${REGISTRY_URL}/${encodeURIComponent(PACKAGE_NAME)}/latest`,
|
|
18678
|
+
{
|
|
18679
|
+
headers: { accept: "application/json" },
|
|
18680
|
+
signal: AbortSignal.timeout(FETCH_TIMEOUT_MS)
|
|
18681
|
+
}
|
|
18682
|
+
);
|
|
18683
|
+
if (!response.ok) {
|
|
18684
|
+
return void 0;
|
|
18685
|
+
}
|
|
18686
|
+
const body = await response.json();
|
|
18687
|
+
return typeof body.version === "string" ? body.version : void 0;
|
|
18688
|
+
} catch {
|
|
18689
|
+
return void 0;
|
|
18690
|
+
}
|
|
18691
|
+
}
|
|
18692
|
+
async function notifyIfOutdated() {
|
|
18693
|
+
if (isDisabled()) {
|
|
18694
|
+
return;
|
|
18695
|
+
}
|
|
18696
|
+
const current = readPackageVersion2();
|
|
18697
|
+
if (current == null) {
|
|
18698
|
+
return;
|
|
18699
|
+
}
|
|
18700
|
+
const cached = readCache();
|
|
18701
|
+
let latest = cached?.latest;
|
|
18702
|
+
if (cached == null || Date.now() - cached.checkedAt > CHECK_INTERVAL_MS) {
|
|
18703
|
+
const fetched = await fetchLatestVersion();
|
|
18704
|
+
if (fetched != null) {
|
|
18705
|
+
latest = fetched;
|
|
18706
|
+
writeCache({ checkedAt: Date.now(), latest: fetched });
|
|
18707
|
+
} else {
|
|
18708
|
+
writeCache({ checkedAt: Date.now(), latest: latest ?? current });
|
|
18709
|
+
}
|
|
18710
|
+
}
|
|
18711
|
+
if (latest == null || !isNewer(latest, current)) {
|
|
18712
|
+
return;
|
|
18713
|
+
}
|
|
18714
|
+
console.error(
|
|
18715
|
+
`
|
|
18716
|
+
Update available: feast ${current} \u2192 ${latest}
|
|
18717
|
+
npx ${PACKAGE_NAME}@latest <command> (or: npm install -g ${PACKAGE_NAME}@latest)
|
|
18718
|
+
`
|
|
18719
|
+
);
|
|
18720
|
+
}
|
|
18721
|
+
|
|
18240
18722
|
// src/cli.ts
|
|
18241
18723
|
runCli(process.argv.slice(2)).catch((error) => {
|
|
18242
18724
|
console.error(errorMessage(error));
|
|
18243
18725
|
process.exitCode = 1;
|
|
18244
|
-
});
|
|
18726
|
+
}).then(() => notifyIfOutdated()).catch(() => void 0);
|
|
18245
18727
|
/*! Bundled license information:
|
|
18246
18728
|
|
|
18247
18729
|
@trpc/client/dist/httpUtils-b9d0cb48.mjs:
|