Skip to content

Commit f811935

Browse files
authored
Merge pull request #24 from Yoctol/chentsulin-patch-1
add entityValueId to parsedResult
2 parents aa3086f + 484dba2 commit f811935

File tree

2 files changed

+42
-239
lines changed

2 files changed

+42
-239
lines changed

schema.json

+41-239
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@
587587
"deprecationReason": null
588588
},
589589
{
590-
"name": "lastTrainingCompletedAt",
590+
"name": "lastTrainingFinishedAt",
591591
"description": "",
592592
"args": [],
593593
"type": {
@@ -741,6 +741,18 @@
741741
},
742742
"isDeprecated": true,
743743
"deprecationReason": "Use `updatedAt`"
744+
},
745+
{
746+
"name": "lastTrainingCompletedAt",
747+
"description": "",
748+
"args": [],
749+
"type": {
750+
"kind": "SCALAR",
751+
"name": "String",
752+
"ofType": null
753+
},
754+
"isDeprecated": true,
755+
"deprecationReason": "Use `lastTrainingFinishedAt`"
744756
}
745757
],
746758
"inputFields": null,
@@ -2745,37 +2757,6 @@
27452757
"isDeprecated": false,
27462758
"deprecationReason": null
27472759
},
2748-
{
2749-
"name": "createClassifierEntity",
2750-
"description": "",
2751-
"args": [
2752-
{
2753-
"name": "input",
2754-
"description": "",
2755-
"type": {
2756-
"kind": "NON_NULL",
2757-
"name": null,
2758-
"ofType": {
2759-
"kind": "INPUT_OBJECT",
2760-
"name": "CreateClassifierEntityInput",
2761-
"ofType": null
2762-
}
2763-
},
2764-
"defaultValue": null
2765-
}
2766-
],
2767-
"type": {
2768-
"kind": "NON_NULL",
2769-
"name": null,
2770-
"ofType": {
2771-
"kind": "OBJECT",
2772-
"name": "CreateClassifierEntityPayload",
2773-
"ofType": null
2774-
}
2775-
},
2776-
"isDeprecated": false,
2777-
"deprecationReason": null
2778-
},
27792760
{
27802761
"name": "createEntity",
27812762
"description": "",
@@ -3148,37 +3129,6 @@
31483129
"isDeprecated": false,
31493130
"deprecationReason": null
31503131
},
3151-
{
3152-
"name": "updateIntentName",
3153-
"description": "",
3154-
"args": [
3155-
{
3156-
"name": "input",
3157-
"description": "",
3158-
"type": {
3159-
"kind": "NON_NULL",
3160-
"name": null,
3161-
"ofType": {
3162-
"kind": "INPUT_OBJECT",
3163-
"name": "UpdateIntentNameInput",
3164-
"ofType": null
3165-
}
3166-
},
3167-
"defaultValue": null
3168-
}
3169-
],
3170-
"type": {
3171-
"kind": "NON_NULL",
3172-
"name": null,
3173-
"ofType": {
3174-
"kind": "OBJECT",
3175-
"name": "UpdateIntentNamePayload",
3176-
"ofType": null
3177-
}
3178-
},
3179-
"isDeprecated": true,
3180-
"deprecationReason": "Use mutation `updateIntent`"
3181-
},
31823132
{
31833133
"name": "updateIntent",
31843134
"description": "",
@@ -4686,116 +4636,6 @@
46864636
"enumValues": null,
46874637
"possibleTypes": null
46884638
},
4689-
{
4690-
"kind": "INPUT_OBJECT",
4691-
"name": "CreateClassifierEntityInput",
4692-
"description": "",
4693-
"fields": null,
4694-
"inputFields": [
4695-
{
4696-
"name": "classifierId",
4697-
"description": "",
4698-
"type": {
4699-
"kind": "NON_NULL",
4700-
"name": null,
4701-
"ofType": {
4702-
"kind": "SCALAR",
4703-
"name": "String",
4704-
"ofType": null
4705-
}
4706-
},
4707-
"defaultValue": null
4708-
},
4709-
{
4710-
"name": "entityId",
4711-
"description": "",
4712-
"type": {
4713-
"kind": "NON_NULL",
4714-
"name": null,
4715-
"ofType": {
4716-
"kind": "SCALAR",
4717-
"name": "Int",
4718-
"ofType": null
4719-
}
4720-
},
4721-
"defaultValue": null
4722-
},
4723-
{
4724-
"name": "needExtraction",
4725-
"description": "",
4726-
"type": {
4727-
"kind": "SCALAR",
4728-
"name": "Boolean",
4729-
"ofType": null
4730-
},
4731-
"defaultValue": null
4732-
},
4733-
{
4734-
"name": "needTraining",
4735-
"description": "",
4736-
"type": {
4737-
"kind": "SCALAR",
4738-
"name": "Boolean",
4739-
"ofType": null
4740-
},
4741-
"defaultValue": null
4742-
},
4743-
{
4744-
"name": "needParsing",
4745-
"description": "",
4746-
"type": {
4747-
"kind": "SCALAR",
4748-
"name": "Boolean",
4749-
"ofType": null
4750-
},
4751-
"defaultValue": null
4752-
},
4753-
{
4754-
"name": "parsers",
4755-
"description": "",
4756-
"type": {
4757-
"kind": "LIST",
4758-
"name": null,
4759-
"ofType": {
4760-
"kind": "NON_NULL",
4761-
"name": null,
4762-
"ofType": {
4763-
"kind": "SCALAR",
4764-
"name": "String",
4765-
"ofType": null
4766-
}
4767-
}
4768-
},
4769-
"defaultValue": null
4770-
}
4771-
],
4772-
"interfaces": null,
4773-
"enumValues": null,
4774-
"possibleTypes": null
4775-
},
4776-
{
4777-
"kind": "OBJECT",
4778-
"name": "CreateClassifierEntityPayload",
4779-
"description": "",
4780-
"fields": [
4781-
{
4782-
"name": "entity",
4783-
"description": "",
4784-
"args": [],
4785-
"type": {
4786-
"kind": "OBJECT",
4787-
"name": "Entity",
4788-
"ofType": null
4789-
},
4790-
"isDeprecated": false,
4791-
"deprecationReason": null
4792-
}
4793-
],
4794-
"inputFields": null,
4795-
"interfaces": [],
4796-
"enumValues": null,
4797-
"possibleTypes": null
4798-
},
47994639
{
48004640
"kind": "INPUT_OBJECT",
48014641
"name": "CreateEntityInput",
@@ -5668,72 +5508,6 @@
56685508
"enumValues": null,
56695509
"possibleTypes": null
56705510
},
5671-
{
5672-
"kind": "INPUT_OBJECT",
5673-
"name": "UpdateIntentNameInput",
5674-
"description": "",
5675-
"fields": null,
5676-
"inputFields": [
5677-
{
5678-
"name": "id",
5679-
"description": "",
5680-
"type": {
5681-
"kind": "NON_NULL",
5682-
"name": null,
5683-
"ofType": {
5684-
"kind": "SCALAR",
5685-
"name": "Int",
5686-
"ofType": null
5687-
}
5688-
},
5689-
"defaultValue": null
5690-
},
5691-
{
5692-
"name": "name",
5693-
"description": "",
5694-
"type": {
5695-
"kind": "NON_NULL",
5696-
"name": null,
5697-
"ofType": {
5698-
"kind": "SCALAR",
5699-
"name": "String",
5700-
"ofType": null
5701-
}
5702-
},
5703-
"defaultValue": null
5704-
}
5705-
],
5706-
"interfaces": null,
5707-
"enumValues": null,
5708-
"possibleTypes": null
5709-
},
5710-
{
5711-
"kind": "OBJECT",
5712-
"name": "UpdateIntentNamePayload",
5713-
"description": "",
5714-
"fields": [
5715-
{
5716-
"name": "intent",
5717-
"description": "",
5718-
"args": [],
5719-
"type": {
5720-
"kind": "NON_NULL",
5721-
"name": null,
5722-
"ofType": {
5723-
"kind": "OBJECT",
5724-
"name": "Intent",
5725-
"ofType": null
5726-
}
5727-
},
5728-
"isDeprecated": false,
5729-
"deprecationReason": null
5730-
}
5731-
],
5732-
"inputFields": null,
5733-
"interfaces": [],
5734-
"enumValues": null,
5735-
"possibleTypes": null
5736-
},
57375511
{
57385512
"kind": "INPUT_OBJECT",
57395513
"name": "UpdateIntentInput",
@@ -6430,6 +6204,22 @@
64306204
"name": "PredictedResult",
64316205
"description": "",
64326206
"fields": [
6207+
{
6208+
"name": "queryText",
6209+
"description": "",
6210+
"args": [],
6211+
"type": {
6212+
"kind": "NON_NULL",
6213+
"name": null,
6214+
"ofType": {
6215+
"kind": "SCALAR",
6216+
"name": "String",
6217+
"ofType": null
6218+
}
6219+
},
6220+
"isDeprecated": false,
6221+
"deprecationReason": null
6222+
},
64336223
{
64346224
"name": "intents",
64356225
"description": "",
@@ -6686,6 +6476,18 @@
66866476
},
66876477
"isDeprecated": false,
66886478
"deprecationReason": null
6479+
},
6480+
{
6481+
"name": "entityValueId",
6482+
"description": "",
6483+
"args": [],
6484+
"type": {
6485+
"kind": "SCALAR",
6486+
"name": "Int",
6487+
"ofType": null
6488+
},
6489+
"isDeprecated": false,
6490+
"deprecationReason": null
66896491
}
66906492
],
66916493
"inputFields": null,

src/IntentClassifier.js

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const predictMutation = gql`
3535
score
3636
parsedResult {
3737
value
38+
entityValueId
3839
}
3940
}
4041
match {

0 commit comments

Comments
 (0)