blend-kit 1.0.1 → 1.0.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/antlr.readme +1 -0
- package/dist/ai-models/api-label/APILabelHelper.js +76 -0
- package/dist/ai-models/api-label/APILabelHelper.ts +34 -0
- package/dist/ai-models/api-label/labels.json +1 -0
- package/dist/ai-models/api-label/model.json +1 -0
- package/dist/ai-models/api-label/weights.bin +0 -0
- package/dist/ai-models/api-label/wordIndex.json +1 -0
- package/dist/ai-models/tokenizer.js +18 -0
- package/dist/ai-models/tokenizer.ts +16 -0
- package/dist/commands/ui.js +15 -0
- package/dist/helper/ExpressHelper.js +18 -12
- package/dist/helper/FrontEndApiHelper.js +12 -14
- package/dist/helper/FrontEndReactApiHelper.js +6 -6
- package/dist/helper/MongoHelper.js +9 -2
- package/dist/helper/RNHelper.js +7 -0
- package/dist/helper/ReactHelper.js +10 -2
- package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +44 -5
- package/dist/helper/grammarHelper/BlendMongoGrammarHelper.js +2 -1
- package/dist/index.js +2 -2
- package/dist/parser/blendExpress/src/grammar/BlendExpressLexer.js +201 -0
- package/dist/parser/blendExpress/src/grammar/BlendExpressListener.js +3 -0
- package/dist/parser/blendExpress/src/grammar/BlendExpressParser.js +961 -0
- package/dist/parser/blendReact/src/grammar/BlendReactLexer.js +1 -1
- package/dist/server.js +31 -0
- package/dist/types/apiOperationTypes.js +8 -1
- package/package.json +6 -3
- package/src/ai-models/api-label/APILabelHelper.ts +34 -0
- package/src/ai-models/api-label/labels.json +1 -0
- package/src/ai-models/api-label/model.json +1 -0
- package/src/ai-models/api-label/weights.bin +0 -0
- package/src/ai-models/api-label/wordIndex.json +1 -0
- package/src/ai-models/tokenizer.ts +16 -0
- package/src/grammar/.antlr/BlendApiLexer.java +2 -2
- package/src/grammar/.antlr/BlendExpress.interp +70 -0
- package/src/grammar/.antlr/BlendExpress.tokens +44 -0
- package/src/grammar/.antlr/BlendExpressLexer.interp +89 -0
- package/src/grammar/.antlr/BlendExpressLexer.java +237 -0
- package/src/grammar/.antlr/BlendExpressLexer.tokens +44 -0
- package/src/grammar/.antlr/BlendExpressParser.java +767 -0
- package/src/grammar/.antlr/BlendMongo.interp +3 -1
- package/src/grammar/.antlr/BlendMongo.tokens +5 -3
- package/src/grammar/.antlr/BlendMongoLexer.interp +4 -1
- package/src/grammar/.antlr/BlendMongoLexer.java +99 -95
- package/src/grammar/.antlr/BlendMongoLexer.tokens +5 -3
- package/src/grammar/.antlr/BlendMongoParser.java +11 -11
- package/src/grammar/.antlr/BlendReactLexer.interp +1 -1
- package/src/grammar/.antlr/BlendReactLexer.java +1 -1
- package/src/grammar/BlendExpress.g4 +26 -0
- package/src/grammar/BlendMongo.g4 +1 -1
- package/src/grammar/BlendReact.g4 +1 -1
- package/src/helper/ExpressHelper.ts +153 -141
- package/src/helper/FrontEndApiHelper.ts +13 -14
- package/src/helper/FrontEndReactApiHelper.ts +6 -6
- package/src/helper/MongoHelper.ts +9 -2
- package/src/helper/RNHelper.ts +76 -70
- package/src/helper/ReactHelper.ts +10 -2
- package/src/helper/grammarHelper/BlendApiGrammarHelper.ts +46 -6
- package/src/helper/grammarHelper/BlendMongoGrammarHelper.ts +4 -3
- package/src/index.ts +3 -2
- package/src/parser/blendExpress/src/grammar/BlendExpress.interp +70 -0
- package/src/parser/blendExpress/src/grammar/BlendExpress.tokens +44 -0
- package/src/parser/blendExpress/src/grammar/BlendExpressLexer.interp +89 -0
- package/src/parser/blendExpress/src/grammar/BlendExpressLexer.tokens +44 -0
- package/src/parser/blendExpress/src/grammar/BlendExpressLexer.ts +193 -0
- package/src/parser/blendExpress/src/grammar/BlendExpressListener.ts +145 -0
- package/src/parser/blendExpress/src/grammar/BlendExpressParser.ts +968 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.interp +1 -1
- package/src/parser/blendReact/src/grammar/BlendReactLexer.ts +1 -1
- package/src/types/apiOperationTypes.ts +12 -0
- package/tsconfig.json +1 -0
|
@@ -62,4 +62,4 @@ mode names:
|
|
|
62
62
|
DEFAULT_MODE
|
|
63
63
|
|
|
64
64
|
atn:
|
|
65
|
-
[3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 18, 122, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 7, 14, 95, 10, 14, 12, 14, 14, 14, 98, 11, 14, 3, 14, 3, 14, 3, 15, 3, 15, 7, 15, 104, 10, 15, 12, 15, 14, 15, 107, 11, 15, 3, 16, 3, 16, 7, 16, 111, 10, 16, 12, 16, 14, 16, 114, 11, 16, 3, 17, 6, 17, 117, 10, 17, 13, 17, 14, 17, 118, 3, 17, 3, 17, 2, 2, 2, 18, 3, 2, 3, 5, 2, 4, 7, 2, 5, 9, 2, 6, 11, 2, 7, 13, 2, 8, 15, 2, 9, 17, 2, 10, 19, 2, 11, 21, 2, 12, 23, 2, 13, 25, 2, 14, 27, 2, 15, 29, 2, 16, 31, 2, 17, 33, 2, 18, 3, 2, 7, 6, 2, 49,
|
|
65
|
+
[3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 18, 122, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 7, 14, 95, 10, 14, 12, 14, 14, 14, 98, 11, 14, 3, 14, 3, 14, 3, 15, 3, 15, 7, 15, 104, 10, 15, 12, 15, 14, 15, 107, 11, 15, 3, 16, 3, 16, 7, 16, 111, 10, 16, 12, 16, 14, 16, 114, 11, 16, 3, 17, 6, 17, 117, 10, 17, 13, 17, 14, 17, 118, 3, 17, 3, 17, 2, 2, 2, 18, 3, 2, 3, 5, 2, 4, 7, 2, 5, 9, 2, 6, 11, 2, 7, 13, 2, 8, 15, 2, 9, 17, 2, 10, 19, 2, 11, 21, 2, 12, 23, 2, 13, 25, 2, 14, 27, 2, 15, 29, 2, 16, 31, 2, 17, 33, 2, 18, 3, 2, 7, 6, 2, 49, 60, 67, 92, 97, 97, 99, 124, 4, 2, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 3, 2, 67, 92, 5, 2, 11, 12, 15, 15, 34, 34, 2, 125, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 3, 35, 3, 2, 2, 2, 5, 42, 3, 2, 2, 2, 7, 49, 3, 2, 2, 2, 9, 51, 3, 2, 2, 2, 11, 57, 3, 2, 2, 2, 13, 67, 3, 2, 2, 2, 15, 74, 3, 2, 2, 2, 17, 76, 3, 2, 2, 2, 19, 78, 3, 2, 2, 2, 21, 80, 3, 2, 2, 2, 23, 82, 3, 2, 2, 2, 25, 87, 3, 2, 2, 2, 27, 92, 3, 2, 2, 2, 29, 101, 3, 2, 2, 2, 31, 108, 3, 2, 2, 2, 33, 116, 3, 2, 2, 2, 35, 36, 7, 111, 2, 2, 36, 37, 7, 113, 2, 2, 37, 38, 7, 102, 2, 2, 38, 39, 7, 119, 2, 2, 39, 40, 7, 110, 2, 2, 40, 41, 7, 103, 2, 2, 41, 4, 3, 2, 2, 2, 42, 43, 7, 117, 2, 2, 43, 44, 7, 101, 2, 2, 44, 45, 7, 116, 2, 2, 45, 46, 7, 103, 2, 2, 46, 47, 7, 103, 2, 2, 47, 48, 7, 112, 2, 2, 48, 6, 3, 2, 2, 2, 49, 50, 7, 46, 2, 2, 50, 8, 3, 2, 2, 2, 51, 52, 7, 119, 2, 2, 52, 53, 7, 112, 2, 2, 53, 54, 7, 102, 2, 2, 54, 55, 7, 103, 2, 2, 55, 56, 7, 116, 2, 2, 56, 10, 3, 2, 2, 2, 57, 58, 7, 101, 2, 2, 58, 59, 7, 113, 2, 2, 59, 60, 7, 111, 2, 2, 60, 61, 7, 114, 2, 2, 61, 62, 7, 113, 2, 2, 62, 63, 7, 112, 2, 2, 63, 64, 7, 103, 2, 2, 64, 65, 7, 112, 2, 2, 65, 66, 7, 118, 2, 2, 66, 12, 3, 2, 2, 2, 67, 68, 7, 110, 2, 2, 68, 69, 7, 99, 2, 2, 69, 70, 7, 123, 2, 2, 70, 71, 7, 113, 2, 2, 71, 72, 7, 119, 2, 2, 72, 73, 7, 118, 2, 2, 73, 14, 3, 2, 2, 2, 74, 75, 7, 42, 2, 2, 75, 16, 3, 2, 2, 2, 76, 77, 7, 43, 2, 2, 77, 18, 3, 2, 2, 2, 78, 79, 7, 125, 2, 2, 79, 20, 3, 2, 2, 2, 80, 81, 7, 127, 2, 2, 81, 22, 3, 2, 2, 2, 82, 83, 7, 114, 2, 2, 83, 84, 7, 99, 2, 2, 84, 85, 7, 105, 2, 2, 85, 86, 7, 103, 2, 2, 86, 24, 3, 2, 2, 2, 87, 88, 7, 120, 2, 2, 88, 89, 7, 107, 2, 2, 89, 90, 7, 103, 2, 2, 90, 91, 7, 121, 2, 2, 91, 26, 3, 2, 2, 2, 92, 96, 7, 36, 2, 2, 93, 95, 9, 2, 2, 2, 94, 93, 3, 2, 2, 2, 95, 98, 3, 2, 2, 2, 96, 94, 3, 2, 2, 2, 96, 97, 3, 2, 2, 2, 97, 99, 3, 2, 2, 2, 98, 96, 3, 2, 2, 2, 99, 100, 7, 36, 2, 2, 100, 28, 3, 2, 2, 2, 101, 105, 9, 3, 2, 2, 102, 104, 9, 4, 2, 2, 103, 102, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 105, 106, 3, 2, 2, 2, 106, 30, 3, 2, 2, 2, 107, 105, 3, 2, 2, 2, 108, 112, 9, 5, 2, 2, 109, 111, 9, 4, 2, 2, 110, 109, 3, 2, 2, 2, 111, 114, 3, 2, 2, 2, 112, 110, 3, 2, 2, 2, 112, 113, 3, 2, 2, 2, 113, 32, 3, 2, 2, 2, 114, 112, 3, 2, 2, 2, 115, 117, 9, 6, 2, 2, 116, 115, 3, 2, 2, 2, 117, 118, 3, 2, 2, 2, 118, 116, 3, 2, 2, 2, 118, 119, 3, 2, 2, 2, 119, 120, 3, 2, 2, 2, 120, 121, 8, 17, 2, 2, 121, 34, 3, 2, 2, 2, 7, 2, 96, 105, 112, 118, 3, 8, 2, 2]
|
|
@@ -104,7 +104,7 @@ export class BlendReactLexer extends Lexer {
|
|
|
104
104
|
"r\v\x10\x03\x11\x06\x11u\n\x11\r\x11\x0E\x11v\x03\x11\x03\x11\x02\x02" +
|
|
105
105
|
"\x02\x12\x03\x02\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02\x07\r\x02" +
|
|
106
106
|
"\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02\x0E\x1B\x02" +
|
|
107
|
-
"\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12\x03\x02\x07\x06\x021
|
|
107
|
+
"\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12\x03\x02\x07\x06\x021<C\\aac|\x04" +
|
|
108
108
|
"\x02aac|\x06\x022;C\\aac|\x03\x02C\\\x05\x02\v\f\x0F\x0F\"\"\x02}\x02" +
|
|
109
109
|
"\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02" +
|
|
110
110
|
"\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F" +
|
|
@@ -5,7 +5,12 @@ export type IApiSpec = {
|
|
|
5
5
|
output: any;
|
|
6
6
|
authenticated?: boolean;
|
|
7
7
|
directOutput?: IApiDataField;
|
|
8
|
+
template?: IApiTemplate
|
|
8
9
|
};
|
|
10
|
+
export type IApiTemplate = {
|
|
11
|
+
type: TemplateType | string;
|
|
12
|
+
collection: string;
|
|
13
|
+
}
|
|
9
14
|
|
|
10
15
|
export type IApiMainSection = {
|
|
11
16
|
name: string;
|
|
@@ -40,4 +45,11 @@ export enum ApiType {
|
|
|
40
45
|
Get="GET",
|
|
41
46
|
Post="POST",
|
|
42
47
|
Put="PUT"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum TemplateType {
|
|
51
|
+
Add="Add",
|
|
52
|
+
Update="Update",
|
|
53
|
+
Delete="Delete",
|
|
54
|
+
Get = "Get"
|
|
43
55
|
}
|