|
| 1 | +import type { ConfigFile } from '@rtk-query/codegen-openapi' |
| 2 | + |
| 3 | +const config: ConfigFile = { |
| 4 | + schemaFile: './src/store/gateway/api-schema/schema.json', |
| 5 | + prettierConfigFile: './.prettierrc', |
| 6 | + apiFile: './src/store/gateway/cgwClient.ts', |
| 7 | + apiImport: 'cgwClient', |
| 8 | + exportName: 'cgwApi', |
| 9 | + hooks: true, |
| 10 | + filterEndpoints: [/^(?!.*delegates).*/], |
| 11 | + tag: true, |
| 12 | + outputFiles: { |
| 13 | + './src/store/gateway/AUTO_GENERATED/about.ts': { |
| 14 | + filterEndpoints: [/getAbout/], |
| 15 | + }, |
| 16 | + './src/store/gateway/AUTO_GENERATED/accounts.ts': { |
| 17 | + filterEndpoints: [ |
| 18 | + /v1CreateAccount/, |
| 19 | + /v1GetDataTypes/, |
| 20 | + /v1GetAccountDataSettings/, |
| 21 | + /v1UpsertAccountDataSettings/, |
| 22 | + /v1GetAccount/, |
| 23 | + /v1DeleteAccount/, |
| 24 | + /v1GetCounterfactualSafe/, |
| 25 | + /v1DeleteCounterfactualSafe/, |
| 26 | + /v1GetCounterfactualSafes/, |
| 27 | + /v1CreateCounterfactualSafe/, |
| 28 | + /v1DeleteCounterfactualSafes/, |
| 29 | + ], |
| 30 | + }, |
| 31 | + './src/store/gateway/AUTO_GENERATED/auth.ts': { |
| 32 | + filterEndpoints: [/v1GetNonce/, /v1Verify/], |
| 33 | + }, |
| 34 | + './src/store/gateway/AUTO_GENERATED/balances.ts': { |
| 35 | + filterEndpoints: [/v1GetBalances/, /v1GetSupportedFiatCodes/], |
| 36 | + }, |
| 37 | + './src/store/gateway/AUTO_GENERATED/chains.ts': { |
| 38 | + filterEndpoints: [ |
| 39 | + /v1GetChains/, |
| 40 | + /v1GetChain/, |
| 41 | + /v1GetAboutChain/, |
| 42 | + /v1GetBackbone/, |
| 43 | + /v1GetMasterCopies/, |
| 44 | + /v1GetIndexingStatus/, |
| 45 | + ], |
| 46 | + }, |
| 47 | + './src/store/gateway/AUTO_GENERATED/collectibles.ts': { |
| 48 | + filterEndpoints: [/v2GetCollectibles/], |
| 49 | + }, |
| 50 | + './src/store/gateway/AUTO_GENERATED/community.ts': { |
| 51 | + filterEndpoints: [ |
| 52 | + /v1GetCampaigns/, |
| 53 | + /v1GetCampaignById/, |
| 54 | + /v1GetCampaignActivities/, |
| 55 | + /v1GetCampaignLeaderboard/, |
| 56 | + /v1GetCampaignRank/, |
| 57 | + /v1GheckEligibility/, |
| 58 | + /v1GetLeaderboard/, |
| 59 | + /v1GetLockingRank/, |
| 60 | + /v1GetLockingHistory/, |
| 61 | + ], |
| 62 | + }, |
| 63 | + './src/store/gateway/AUTO_GENERATED/contracts.ts': { |
| 64 | + filterEndpoints: [/v1GetContract/], |
| 65 | + }, |
| 66 | + './src/store/gateway/AUTO_GENERATED/data-decoded.ts': { |
| 67 | + filterEndpoints: [/v1GetDataDecoded/], |
| 68 | + }, |
| 69 | + './src/store/gateway/AUTO_GENERATED/delegates.ts': { |
| 70 | + filterEndpoints: [/v2GetDelegates/, /v2PostDelegate/, /v2DeleteDelegate/], |
| 71 | + }, |
| 72 | + './src/store/gateway/AUTO_GENERATED/estimations.ts': { |
| 73 | + filterEndpoints: [/v2GetEstimation/], |
| 74 | + }, |
| 75 | + './src/store/gateway/AUTO_GENERATED/messages.ts': { |
| 76 | + filterEndpoints: [/v1GetMessageByHash/, /v1GetMessagesBySafe/, /v1CreateMessage/, /v1UpdateMessageSignature/], |
| 77 | + }, |
| 78 | + './src/store/gateway/AUTO_GENERATED/notifications.ts': { |
| 79 | + filterEndpoints: [/v1RegisterDevice/, /v1UnregisterDevice/, /v1UnregisterSafe/], |
| 80 | + }, |
| 81 | + './src/store/gateway/AUTO_GENERATED/owners.ts': { |
| 82 | + filterEndpoints: [/v1GetSafesByOwner/, /v1GetAllSafesByOwner/], |
| 83 | + }, |
| 84 | + './src/store/gateway/AUTO_GENERATED/relay.ts': { |
| 85 | + filterEndpoints: [/v1Relay/, /v1GetRelaysRemaining/], |
| 86 | + }, |
| 87 | + './src/store/gateway/AUTO_GENERATED/safe-apps.ts': { |
| 88 | + filterEndpoints: [/v1GetSafeApps/], |
| 89 | + }, |
| 90 | + './src/store/gateway/AUTO_GENERATED/safes.ts': { |
| 91 | + filterEndpoints: [/v1GetSafe/, /v1GetNonces/, /v1GetSafeOverview/], |
| 92 | + }, |
| 93 | + './src/store/gateway/AUTO_GENERATED/targeted-messages.ts': { |
| 94 | + filterEndpoints: [/v1GetSubmission/, /v1CreateSubmission/], |
| 95 | + }, |
| 96 | + './src/store/gateway/AUTO_GENERATED/transactions.ts': { |
| 97 | + filterEndpoints: [ |
| 98 | + /v1GetTransactionById/, |
| 99 | + /v1GetMultisigTransactions/, |
| 100 | + /v1DeleteTransaction/, |
| 101 | + /v1GetModuleTransactions/, |
| 102 | + /v1AddConfirmation/, |
| 103 | + /v1GetIncomingTransfers/, |
| 104 | + /v1PreviewTransaction/, |
| 105 | + /v1GetTransactionQueue/, |
| 106 | + /v1GetTransactionsHistory/, |
| 107 | + /v1ProposeTransaction/, |
| 108 | + /v1GetCreationTransaction/, |
| 109 | + ], |
| 110 | + }, |
| 111 | + }, |
| 112 | +} |
| 113 | + |
| 114 | +export default config |
0 commit comments