-
Notifications
You must be signed in to change notification settings - Fork 50
/
codegen-quansight.yml
57 lines (54 loc) · 1.54 KB
/
codegen-quansight.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
overwrite: true
schema:
- https://gapi.storyblok.com/v1/api:
headers:
Token: '${NEXT_PUBLIC_STORYBLOK_TOKEN}'
Version: draft
generates:
apps/consulting/api/types/basic.ts:
documents:
- 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
- 'apps/consulting/api/queries/*.graphql'
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript
config:
avoidOptionals:
field: true
inputValue: true
object: true
defaultValue: true
apps/consulting/api/types/operations.ts:
documents:
- 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
- 'apps/consulting/api/queries/*.graphql'
preset: import-types
presetConfig:
typesPath: ./basic
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript-operations
config:
avoidOptionals:
field: true
inputValue: true
object: true
defaultValue: true
apps/consulting/api/types/hooks.ts:
documents:
- 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
- 'apps/consulting/api/queries/*.graphql'
preset: import-types
presetConfig:
typesPath: ./operations
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript-react-apollo
config:
withHOC: false
withComponent: false
withHooks: false
withResultType: true