-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmana.config.ts
92 lines (90 loc) · 4.74 KB
/
mana.config.ts
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
import { ManabieConfiguration } from '@manabie-com/mana-cli';
const configuration: ManabieConfiguration = {
envfile: ['.env', '.env.local'],
tsConfig: './tsconfig.json',
graphql: {
rootTypePath: './supports/graphql/__generated__/root-types.ts',
schemaPath: './schema.graphql',
documents: [
{
inputDocument: './supports/graphql/bob/*.{ts,graphql}',
outputType: './supports/graphql/bob/bob-types.ts',
outputQuery: './supports/graphql/__generated__/bob/all-queries.graphql',
schemaPath: './supports/graphql/__generated__/bob/schema.graphql',
rootTypePath: './supports/graphql/__generated__/bob/root-types.ts',
},
{
inputDocument: './supports/graphql/eureka/*.{ts,graphql}',
outputType: './supports/graphql/eureka/eureka-types.ts',
outputQuery: './supports/graphql/__generated__/eureka/all-queries.graphql',
schemaPath: './supports/graphql/__generated__/eureka/schema.graphql',
rootTypePath: './supports/graphql/__generated__/eureka/root-types.ts',
},
{
inputDocument: './supports/graphql/fatima/*.{ts,graphql}',
outputType: './supports/graphql/fatima/fatima-types.ts',
outputQuery: './supports/graphql/__generated__/fatima/all-queries.graphql',
schemaPath: './supports/graphql/__generated__/fatima/schema.graphql',
rootTypePath: './supports/graphql/__generated__/fatima/root-types.ts',
},
{
inputDocument: './supports/graphql/invoicemgmt/*.{ts,graphql}',
outputType: './supports/graphql/invoicemgmt/invoicemgmt-types.ts',
outputQuery: './supports/graphql/__generated__/invoicemgmt/all-queries.graphql',
schemaPath: './supports/graphql/__generated__/invoicemgmt/schema.graphql',
rootTypePath: './supports/graphql/__generated__/invoicemgmt/root-types.ts',
},
],
},
hasura: {
version: 'v1.3.3',
instances: [
{
hasuraUrl: 'https://admin.staging-green.manabie.io/',
localHasuraUrl: 'https://admin.local-green.manabie.io:31600/',
schemaPath: './supports/graphql/__generated__/bob/schema.graphql',
secretEnvName: {
ADMIN_SECRET: 'MANA_ADMIN_SECRET_BOB',
},
logFile: './supports/graphql/__generated__/bob/log.json',
metadataPath: './supports/graphql/__generated__/bob/metadata',
graphqlFilePaths: ['./supports/graphql/__generated__/bob/all-queries.graphql'],
},
{
hasuraUrl: 'https://admin.staging-green.manabie.io/eureka/',
localHasuraUrl: 'https://admin.local-green.manabie.io:31600/eureka',
schemaPath: './supports/graphql/__generated__/eureka/schema.graphql',
secretEnvName: {
ADMIN_SECRET: 'MANA_ADMIN_SECRET_EUREKA',
},
graphqlFilePaths: ['./supports/graphql/__generated__/eureka/all-queries.graphql'],
metadataPath: './supports/graphql/__generated__/eureka/metadata',
logFile: './supports/graphql/__generated__/eureka/log.json',
},
{
hasuraUrl: 'https://admin.staging-green.manabie.io/fatima/',
localHasuraUrl: 'https://admin.local-green.manabie.io:31600/fatima',
schemaPath: './supports/graphql/__generated__/fatima/schema.graphql',
secretEnvName: {
ADMIN_SECRET: 'MANA_ADMIN_SECRET_FATIMA',
},
graphqlFilePaths: './supports/graphql/__generated__/fatima/all-queries.graphql',
metadataPath: './supports/graphql/__generated__/fatima/metadata',
logFile: './supports/graphql/__generated__/fatima/log.json',
},
{
hasuraUrl: 'https://admin.staging-green.manabie.io/invoicemgmt/',
localHasuraUrl: 'https://admin.local-green.manabie.io:31600/invoicemgmt',
schemaPath: './supports/graphql/__generated__/invoicemgmt/schema.graphql',
secretEnvName: {
ADMIN_SECRET: 'MANA_ADMIN_SECRET_INVOICEMGMT',
},
graphqlFilePaths:
'./supports/graphql/__generated__/invoicemgmt/all-queries.graphql',
metadataPath: './supports/graphql/__generated__/invoicemgmt/metadata',
logFile: './supports/graphql/__generated__/invoicemgmt/log.json',
},
],
},
};
export default configuration;