@takeshape/cli 12.1.5 → 12.1.7
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/index.cjs +72 -5
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -204230,7 +204230,7 @@ var import_meow = __toESM(require_meow(), 1);
|
|
|
204230
204230
|
// package.json
|
|
204231
204231
|
var package_default = {
|
|
204232
204232
|
name: "@takeshape/cli",
|
|
204233
|
-
version: "12.1.
|
|
204233
|
+
version: "12.1.7",
|
|
204234
204234
|
description: "TakeShape CLI",
|
|
204235
204235
|
homepage: "https://www.takeshape.io",
|
|
204236
204236
|
type: "module",
|
|
@@ -224965,6 +224965,65 @@ var builtInShapes = {
|
|
|
224965
224965
|
required: ["value"]
|
|
224966
224966
|
}
|
|
224967
224967
|
},
|
|
224968
|
+
TSWhereMatchPhraseAdvanced: {
|
|
224969
|
+
id: "TSWhereMatchPhraseAdvanced",
|
|
224970
|
+
name: "TSWhereMatchPhraseAdvanced",
|
|
224971
|
+
title: "Where Match Phrase Advanced",
|
|
224972
|
+
schema: {
|
|
224973
|
+
type: "object",
|
|
224974
|
+
properties: {
|
|
224975
|
+
query: { type: "string", description: "The phrase to match." },
|
|
224976
|
+
slop: {
|
|
224977
|
+
type: "integer",
|
|
224978
|
+
description: 'Number of positions terms can be apart. Use to match phrases with words in between, e.g., slop: 1 allows "cool shirt" to match "cool t shirt".'
|
|
224979
|
+
},
|
|
224980
|
+
analyzer: {
|
|
224981
|
+
type: "string",
|
|
224982
|
+
description: "Analyzer to use for the query. If not specified, uses the field's default analyzer."
|
|
224983
|
+
},
|
|
224984
|
+
zero_terms_query: {
|
|
224985
|
+
type: "string",
|
|
224986
|
+
enum: ["none", "all"],
|
|
224987
|
+
description: "What to do if the analyzer removes all tokens. 'none' returns no results (default), 'all' matches all documents."
|
|
224988
|
+
}
|
|
224989
|
+
},
|
|
224990
|
+
required: ["query"]
|
|
224991
|
+
}
|
|
224992
|
+
},
|
|
224993
|
+
TSWhereMatchAdvanced: {
|
|
224994
|
+
id: "TSWhereMatchAdvanced",
|
|
224995
|
+
name: "TSWhereMatchAdvanced",
|
|
224996
|
+
title: "Where Match Advanced",
|
|
224997
|
+
schema: {
|
|
224998
|
+
type: "object",
|
|
224999
|
+
properties: {
|
|
225000
|
+
query: { type: "string", description: "The text to search for." },
|
|
225001
|
+
operator: {
|
|
225002
|
+
type: "string",
|
|
225003
|
+
enum: ["and", "or"],
|
|
225004
|
+
description: "Whether all terms must match ('and') or any term can match ('or', default)."
|
|
225005
|
+
},
|
|
225006
|
+
fuzziness: {
|
|
225007
|
+
type: "string",
|
|
225008
|
+
description: "Allows fuzzy matching for typo tolerance. Use 'AUTO' to adjust based on term length, or 0, 1, 2 to specify edit distance."
|
|
225009
|
+
},
|
|
225010
|
+
minimum_should_match: {
|
|
225011
|
+
type: "string",
|
|
225012
|
+
description: "Minimum number or percentage of terms that must match. E.g., '2' or '75%'."
|
|
225013
|
+
},
|
|
225014
|
+
analyzer: {
|
|
225015
|
+
type: "string",
|
|
225016
|
+
description: "Analyzer to use for the query. If not specified, uses the field's default analyzer."
|
|
225017
|
+
},
|
|
225018
|
+
zero_terms_query: {
|
|
225019
|
+
type: "string",
|
|
225020
|
+
enum: ["none", "all"],
|
|
225021
|
+
description: "What to do if the analyzer removes all tokens. 'none' returns no results (default), 'all' matches all documents."
|
|
225022
|
+
}
|
|
225023
|
+
},
|
|
225024
|
+
required: ["query"]
|
|
225025
|
+
}
|
|
225026
|
+
},
|
|
224968
225027
|
[shapeName14]: {
|
|
224969
225028
|
id: shapeId,
|
|
224970
225029
|
name: shapeName14,
|
|
@@ -441169,7 +441228,7 @@ var fieldTypeComparison = {
|
|
|
441169
441228
|
id: { comparators: ["eq", "in"], type: "string" },
|
|
441170
441229
|
boolean: { comparators: ["eq"], type: "boolean" },
|
|
441171
441230
|
string: {
|
|
441172
|
-
comparators: ["eq", "in", "match", "match_phrase", "regexp", "wildcard"],
|
|
441231
|
+
comparators: ["eq", "in", "match", "match_advanced", "match_phrase", "match_phrase_advanced", "regexp", "wildcard"],
|
|
441173
441232
|
type: "string"
|
|
441174
441233
|
},
|
|
441175
441234
|
date: { comparators: ["eq", "lt", "lte", "gt", "gte"], type: "string" },
|
|
@@ -441185,8 +441244,8 @@ var fieldTypeComparison = {
|
|
|
441185
441244
|
comparators: ["eq", "lt", "lte", "gt", "gte", "in"],
|
|
441186
441245
|
type: "string"
|
|
441187
441246
|
},
|
|
441188
|
-
draftjs: { comparators: ["match", "match_phrase"], type: "string" },
|
|
441189
|
-
mdx: { comparators: ["match", "match_phrase"], type: "string" }
|
|
441247
|
+
draftjs: { comparators: ["match", "match_advanced", "match_phrase", "match_phrase_advanced"], type: "string" },
|
|
441248
|
+
mdx: { comparators: ["match", "match_advanced", "match_phrase", "match_phrase_advanced"], type: "string" }
|
|
441190
441249
|
};
|
|
441191
441250
|
var comparatorDescriptions = {
|
|
441192
441251
|
eq: "Exact match",
|
|
@@ -441196,7 +441255,9 @@ var comparatorDescriptions = {
|
|
|
441196
441255
|
lte: "Less than or equal",
|
|
441197
441256
|
in: "Array of possible exact match values.",
|
|
441198
441257
|
match: "Full text searching with fuzzy matching.",
|
|
441258
|
+
match_advanced: "Full text searching with advanced options like operator (and/or), fuzziness, minimum_should_match, analyzer, and zero_terms_query.",
|
|
441199
441259
|
match_phrase: "Full text searching requiring the exact phrase to appear in order.",
|
|
441260
|
+
match_phrase_advanced: "Full text phrase matching with advanced options like slop (word distance), analyzer, and zero_terms_query.",
|
|
441200
441261
|
regexp: "Regular expression string matching. Use of * wildcards could degrade performance.",
|
|
441201
441262
|
wildcard: "Wildcard pattern matching with * (multiple characters) and ? (single character)."
|
|
441202
441263
|
};
|
|
@@ -441229,6 +441290,10 @@ function getFieldTypeComparison(fieldType) {
|
|
|
441229
441290
|
result[op] = { type: "array", items: { type }, description };
|
|
441230
441291
|
} else if (op === "wildcard") {
|
|
441231
441292
|
result[op] = { "@ref": "TSWhereWildcard", description };
|
|
441293
|
+
} else if (op === "match_advanced") {
|
|
441294
|
+
result[op] = { "@ref": "TSWhereMatchAdvanced", description };
|
|
441295
|
+
} else if (op === "match_phrase_advanced") {
|
|
441296
|
+
result[op] = { "@ref": "TSWhereMatchPhraseAdvanced", description };
|
|
441232
441297
|
} else {
|
|
441233
441298
|
result[op] = { description, type };
|
|
441234
441299
|
}
|
|
@@ -441488,7 +441553,9 @@ function getWhereShape(projectSchema, selectedShapes) {
|
|
|
441488
441553
|
}
|
|
441489
441554
|
}),
|
|
441490
441555
|
...shapeCache.resolveAll(),
|
|
441491
|
-
TSWhereWildcard: allBuiltInShapes.TSWhereWildcard
|
|
441556
|
+
TSWhereWildcard: allBuiltInShapes.TSWhereWildcard,
|
|
441557
|
+
TSWhereMatchAdvanced: allBuiltInShapes.TSWhereMatchAdvanced,
|
|
441558
|
+
TSWhereMatchPhraseAdvanced: allBuiltInShapes.TSWhereMatchPhraseAdvanced
|
|
441492
441559
|
})
|
|
441493
441560
|
};
|
|
441494
441561
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/cli",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.7",
|
|
4
4
|
"description": "TakeShape CLI",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"type": "module",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"stream-to-promise": "2.2.0",
|
|
71
71
|
"tmp": "0.0.33",
|
|
72
72
|
"unzipper": "0.10.11",
|
|
73
|
-
"@takeshape/
|
|
74
|
-
"@takeshape/
|
|
75
|
-
"@takeshape/
|
|
76
|
-
"@takeshape/
|
|
77
|
-
"@takeshape/util": "12.1.
|
|
73
|
+
"@takeshape/schema": "12.1.7",
|
|
74
|
+
"@takeshape/streams": "12.1.7",
|
|
75
|
+
"@takeshape/ssg": "12.1.7",
|
|
76
|
+
"@takeshape/branches": "12.1.7",
|
|
77
|
+
"@takeshape/util": "12.1.7"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=24"
|