@newmo/graphql-fake-core 0.5.1 → 0.6.0
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const EXAMPLE_DIRECTIVE = "\n\"\"\"\n@exampleID directive specifies an example value for a ID field.\nThis example value is used in the fake data.\nID value will be unique between all ID fake data.\n\"\"\"\ndirective @exampleID(\n
|
|
1
|
+
export declare const EXAMPLE_DIRECTIVE = "\n\"\"\"\n@exampleID directive specifies an example value for a ID field.\nThis example value is used in the fake data.\nID value will be unique between all ID fake data.\n\"\"\"\ndirective @exampleID(\n \"\"\"\n The value of the ID field.\n @exampleID(value: \"id\")\n \"\"\"\n value: ID!\n) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION\n\"\"\"\n@exampleString directive specifies an example value for a String field.\nThis example value is used in the fake data.\n\"\"\"\ndirective @exampleString(\n \"\"\"\n The value of the String field.\n @exampleString(value: \"example\")\n \"\"\"\n value: String!\n) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION\n\"\"\"\n@exampleInt directive specifies an example value for a Inf field.\nThis example value is used in the fake data.\n\"\"\"\ndirective @exampleInt(\n \"\"\"\n The value of the Int field.\n @exampleInt(value: 1)\n \"\"\"\n value: Int!\n) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION\n\"\"\"\n@exampleFloat directive specifies an example value for a Float field.\nThis example value is used in the fake data.\n\"\"\"\ndirective @exampleFloat(\n \"\"\"\n The value of the Float field.\n @exampleFloat(value: 1.0)\n \"\"\"\n value: Float!\n) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION\n\"\"\"\n@exampleBoolean directive specifies an example value for a Boolean field.\nThis example value is used in the fake data.\n\"\"\"\ndirective @exampleBoolean(\n \"\"\"\n The value of the Boolean field.\n @exampleBoolean(value: true)\n \"\"\"\n value: Boolean!\n) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION\n";
|
|
2
2
|
export declare const extendSchema: (schema: string) => string;
|
|
3
3
|
//# sourceMappingURL=extend-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend-schema.d.ts","sourceRoot":"","sources":["../../src/extend-schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"extend-schema.d.ts","sourceRoot":"","sources":["../../src/extend-schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,ktDAyD7B,CAAC;AACF,eAAO,MAAM,YAAY,WAAY,MAAM,WAE1C,CAAC"}
|
|
@@ -5,56 +5,56 @@ This example value is used in the fake data.
|
|
|
5
5
|
ID value will be unique between all ID fake data.
|
|
6
6
|
"""
|
|
7
7
|
directive @exampleID(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
) on FIELD_DEFINITION
|
|
8
|
+
"""
|
|
9
|
+
The value of the ID field.
|
|
10
|
+
@exampleID(value: "id")
|
|
11
|
+
"""
|
|
12
|
+
value: ID!
|
|
13
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
14
14
|
"""
|
|
15
15
|
@exampleString directive specifies an example value for a String field.
|
|
16
16
|
This example value is used in the fake data.
|
|
17
17
|
"""
|
|
18
18
|
directive @exampleString(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
) on FIELD_DEFINITION
|
|
19
|
+
"""
|
|
20
|
+
The value of the String field.
|
|
21
|
+
@exampleString(value: "example")
|
|
22
|
+
"""
|
|
23
|
+
value: String!
|
|
24
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
25
25
|
"""
|
|
26
26
|
@exampleInt directive specifies an example value for a Inf field.
|
|
27
27
|
This example value is used in the fake data.
|
|
28
28
|
"""
|
|
29
29
|
directive @exampleInt(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
) on FIELD_DEFINITION
|
|
30
|
+
"""
|
|
31
|
+
The value of the Int field.
|
|
32
|
+
@exampleInt(value: 1)
|
|
33
|
+
"""
|
|
34
|
+
value: Int!
|
|
35
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
36
36
|
"""
|
|
37
37
|
@exampleFloat directive specifies an example value for a Float field.
|
|
38
38
|
This example value is used in the fake data.
|
|
39
39
|
"""
|
|
40
40
|
directive @exampleFloat(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
) on FIELD_DEFINITION
|
|
41
|
+
"""
|
|
42
|
+
The value of the Float field.
|
|
43
|
+
@exampleFloat(value: 1.0)
|
|
44
|
+
"""
|
|
45
|
+
value: Float!
|
|
46
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
47
47
|
"""
|
|
48
48
|
@exampleBoolean directive specifies an example value for a Boolean field.
|
|
49
49
|
This example value is used in the fake data.
|
|
50
50
|
"""
|
|
51
51
|
directive @exampleBoolean(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
) on FIELD_DEFINITION
|
|
52
|
+
"""
|
|
53
|
+
The value of the Boolean field.
|
|
54
|
+
@exampleBoolean(value: true)
|
|
55
|
+
"""
|
|
56
|
+
value: Boolean!
|
|
57
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
58
58
|
`;
|
|
59
59
|
export const extendSchema = (schema) => {
|
|
60
60
|
return EXAMPLE_DIRECTIVE + schema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newmo/graphql-fake-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "GraphQL fake core library",
|
|
6
6
|
"keywords": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"access": "public",
|
|
66
66
|
"registry": "https://registry.npmjs.org/"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "e1336c09d42fde202328f4338514809d8d422247"
|
|
69
69
|
}
|
package/src/extend-schema.ts
CHANGED
|
@@ -5,56 +5,56 @@ This example value is used in the fake data.
|
|
|
5
5
|
ID value will be unique between all ID fake data.
|
|
6
6
|
"""
|
|
7
7
|
directive @exampleID(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
) on FIELD_DEFINITION
|
|
8
|
+
"""
|
|
9
|
+
The value of the ID field.
|
|
10
|
+
@exampleID(value: "id")
|
|
11
|
+
"""
|
|
12
|
+
value: ID!
|
|
13
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
14
14
|
"""
|
|
15
15
|
@exampleString directive specifies an example value for a String field.
|
|
16
16
|
This example value is used in the fake data.
|
|
17
17
|
"""
|
|
18
18
|
directive @exampleString(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
) on FIELD_DEFINITION
|
|
19
|
+
"""
|
|
20
|
+
The value of the String field.
|
|
21
|
+
@exampleString(value: "example")
|
|
22
|
+
"""
|
|
23
|
+
value: String!
|
|
24
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
25
25
|
"""
|
|
26
26
|
@exampleInt directive specifies an example value for a Inf field.
|
|
27
27
|
This example value is used in the fake data.
|
|
28
28
|
"""
|
|
29
29
|
directive @exampleInt(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
) on FIELD_DEFINITION
|
|
30
|
+
"""
|
|
31
|
+
The value of the Int field.
|
|
32
|
+
@exampleInt(value: 1)
|
|
33
|
+
"""
|
|
34
|
+
value: Int!
|
|
35
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
36
36
|
"""
|
|
37
37
|
@exampleFloat directive specifies an example value for a Float field.
|
|
38
38
|
This example value is used in the fake data.
|
|
39
39
|
"""
|
|
40
40
|
directive @exampleFloat(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
) on FIELD_DEFINITION
|
|
41
|
+
"""
|
|
42
|
+
The value of the Float field.
|
|
43
|
+
@exampleFloat(value: 1.0)
|
|
44
|
+
"""
|
|
45
|
+
value: Float!
|
|
46
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
47
47
|
"""
|
|
48
48
|
@exampleBoolean directive specifies an example value for a Boolean field.
|
|
49
49
|
This example value is used in the fake data.
|
|
50
50
|
"""
|
|
51
51
|
directive @exampleBoolean(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
) on FIELD_DEFINITION
|
|
52
|
+
"""
|
|
53
|
+
The value of the Boolean field.
|
|
54
|
+
@exampleBoolean(value: true)
|
|
55
|
+
"""
|
|
56
|
+
value: Boolean!
|
|
57
|
+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
|
|
58
58
|
`;
|
|
59
59
|
export const extendSchema = (schema: string) => {
|
|
60
60
|
return EXAMPLE_DIRECTIVE + schema;
|