This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
codegen.yml
66 lines (66 loc) · 1.84 KB
/
codegen.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
58
59
60
61
62
63
64
65
66
overwrite: true
schema: "https://raw.githubusercontent.com/GaloyMoney/galoy/main/src/graphql/public/schema.graphql"
documents:
- "components/**/*.ts"
- "components/**/*.tsx"
- "lib/**/*.ts"
- "lib/**/*.tsx"
- "pages/**/*.ts"
- "pages/**/*.tsx"
- "hooks/**/*.ts"
- "hooks/**/*.tsx"
generates:
lib/graphql/generated.ts:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
- add:
content: "// this file is autogenerated by codegen"
- add:
content: "\/* eslint-disable *\/"
config:
# typesPrefix: GQL
enumsAsConst: true
immutableTypes: true
strictScalars: true
nonOptionalTypename: true
federation: true
scalars:
AccountApiKeyLabel: "string"
AuthToken: "string"
CentAmount: "number"
ContactAlias: "string"
Hex32Bytes: "string"
Language: "string"
LnPaymentPreImage: "string"
LnPaymentRequest: "string"
LnPaymentSecret: "string"
Memo: "string"
OnChainAddress: "string"
OnChainTxHash: "string"
OneTimeAuthCode: "string"
PaymentHash: "string"
Phone: "string"
SafeInt: "number"
SatAmount: "number"
SignedAmount: "number"
TargetConfirmations: "number"
Timestamp: "number"
Username: "string"
WalletId: "string"
Seconds: "number"
DisplayCurrency: "string"
SignedDisplayMajorAmount: "string"
CountryCode: "string"
EmailRegistrationId: "string"
TotpRegistrationId: "string"
EmailAddress: "string"
TotpSecret: "string"
TotpCode: "string"
Feedback: "string"
Minutes: "string"
LeaderboardName: "string"
join__FieldSet: "string"
link__Import: "string"
_FieldSet: "string"