-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
135 lines (126 loc) · 4.06 KB
/
codegen.yml
File metadata and controls
135 lines (126 loc) · 4.06 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
overwrite: true
schema:
- './packages/cellix/graphql-core/src/schema/**/**.graphql'
- './packages/cellix/graphql-core/src/schema/core/graphql-tools-scalars.ts'
- './packages/ocom/graphql/src/schema/**/**.graphql'
generates:
# TypeScript resolver types for @ocom/graphql
'./packages/ocom/graphql/src/schema/builder/generated.ts':
config:
contextType: '../context.ts#GraphContext'
useIndexSignature: true
useTypeImports: true
enumsAsTypes: true
immutableTypes: true
scalars:
BigInt: 'any'
Byte: 'any'
Currency: 'any'
Date: 'Date'
DateTime: 'any'
Duration: 'any'
EmailAddress: 'string'
GUID: 'string'
HSL: 'any'
HSLA: 'any'
HexColorCode: 'any'
Hexadecimal: 'any'
IBAN: 'any'
IPv4: 'any'
IPv6: 'any'
ISBN: 'any'
ISO8601Duration: 'any'
JSON: 'any'
JSONObject: 'any'
JWT: 'any'
Latitude: 'any'
LocalDate: 'any'
LocalEndTime: 'any'
LocalTime: 'any'
Long: 'any'
Longitude: 'any'
MAC: 'any'
NegativeFloat: 'any'
NegativeInt: 'any'
NonEmptyString: 'any'
NonNegativeFloat: 'any'
NonNegativeInt: 'any'
NonPositiveFloat: 'any'
NonPositiveInt: 'any'
ObjectID: 'any'
PhoneNumber: 'any'
Port: 'any'
PositiveFloat: 'any'
PositiveInt: 'any'
PostalCode: 'any'
RGB: 'any'
RGBA: 'any'
SafeInt: 'any'
Time: 'any'
Timestamp: 'any'
URL: 'any'
USCurrency: 'any'
UUID: 'any'
UnsignedFloat: 'any'
UnsignedInt: 'any'
UtcOffset: 'any'
Void: 'any'
mappers:
Member: "import('@ocom/domain').Domain.Contexts.Community.Member.MemberEntityReference"
Community: "import('@ocom/domain').Domain.Contexts.Community.Community.CommunityEntityReference"
EndUser: "import('@ocom/domain').Domain.Contexts.User.EndUser.EndUserEntityReference"
plugins:
- typescript
- typescript-resolvers
# GraphQL introspection schema
'./packages/ocom/graphql/src/schema/builder/graphql.schema.json':
plugins:
- introspection
# UI community client types
'./apps/ui-community/src/generated.tsx':
documents: './apps/ui-community/src/components/**/**.graphql'
config:
withHooks: true
withHOC: false
withComponent: false
useTypeImports: true
enumsAsTypes: true
plugins:
- typescript
- typescript-operations
- typed-document-node
# UI components client types
'./packages/ocom/ui-components/src/generated.tsx':
documents: './packages/ocom/ui-components/src/components/**/**.graphql'
config:
withHooks: true
withHOC: false
withComponent: false
useTypeImports: true
enumsAsTypes: true
plugins:
- typescript
- typescript-operations
- typed-document-node
# Cellix core base type defs (static array for rolldown bundling)
'./packages/cellix/graphql-core/src/schema/base-type-defs.generated.ts':
plugins:
- '@cellix/graphql-codegen/plugins/static-type-defs':
sourceDir: 'packages/cellix/graphql-core/src/schema'
exportName: 'baseCellixTypeDefs'
# Application SDL type defs (static array for rolldown bundling)
'./packages/ocom/graphql/src/schema/builder/schema-type-defs.generated.ts':
plugins:
- '@cellix/graphql-codegen/plugins/static-type-defs':
sourceDir: 'packages/ocom/graphql/src/schema/types'
exportName: 'ocomGraphqlTypeDefs'
# Resolver manifest (for static imports replacing runtime glob discovery)
'./packages/ocom/graphql/src/schema/builder/resolver-manifest.generated.ts':
plugins:
- '@cellix/graphql-codegen/plugins/resolver-manifest':
typesDir: 'packages/ocom/graphql/src/schema/types'
resolversExportName: 'ocomGraphqlResolvers'
permissionsExportName: 'ocomGraphqlPermissions'
hooks:
afterAllFileWrite:
- 'pnpm exec biome format --write'