wapi-client 0.9.5 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/base-client.browser.cjs +69 -60
- package/dist/api/base-client.browser.js +69 -60
- package/dist/api/base-client.cjs +69 -60
- package/dist/api/base-client.d.ts +67 -58
- package/dist/api/base-client.js +70 -61
- package/dist/api/connection/connection.enums.d.ts +0 -12
- package/dist/api/http-client.d.ts +1 -1
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +1 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.browser.cjs +623 -441
- package/dist/client.browser.js +623 -441
- package/dist/client.cjs +624 -442
- package/dist/client.d.ts +851 -547
- package/dist/client.js +624 -442
- package/dist/db/consts.schema.json +3 -2
- package/dist/db/index.browser.cjs +5 -1
- package/dist/db/index.browser.js +5 -1
- package/dist/db/index.cjs +8 -2
- package/dist/db/index.d.ts +3 -0
- package/dist/db/index.js +5 -1
- package/dist/db/token/token.schema.input.json +5 -16
- package/dist/db/token/token.schema.json +8 -32
- package/dist/db/token/token.schema.optional.json +5 -16
- package/dist/db/transfer/transfer.schema.input.json +6 -21
- package/dist/db/transfer/transfer.schema.json +8 -28
- package/dist/db/transfer/transfer.schema.optional.json +7 -24
- package/dist/db/transfer-group/transfer-group.schema.input.json +6 -20
- package/dist/db/transfer-group/transfer-group.schema.json +8 -27
- package/dist/db/transfer-group/transfer-group.schema.optional.json +6 -20
- package/dist/db/transfer-log/transfer-log.schema.input.json +1 -1
- package/dist/db/transfer-log/transfer-log.schema.json +7 -29
- package/dist/db/transfer-log/transfer-log.schema.optional.json +6 -20
- package/dist/db/wallet/wallet.schema.input.json +4 -12
- package/dist/db/wallet/wallet.schema.json +8 -35
- package/dist/db/wallet/wallet.schema.optional.json +4 -12
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.input.json +1 -1
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.json +5 -17
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.optional.json +2 -4
- package/dist/db/wapi-setting/wapi-setting.schema.input.json +2 -5
- package/dist/db/wapi-setting/wapi-setting.schema.json +5 -21
- package/dist/db/wapi-setting/wapi-setting.schema.optional.json +2 -4
- package/dist/{txs/export-database/export-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.cjs} +3 -3
- package/dist/db/wapi-statistic/wapi-statistic.enums.d.ts +96 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.input.json +29 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.json +81 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.optional.json +43 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.cjs +51 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.cjs +55 -0
- package/dist/fns/export-balance-history/export-balance-history.d.ts +8 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.d.ts +29 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.cjs +36 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.cjs +41 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.d.ts +4 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.input.json +33 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.output.json +8 -0
- package/dist/fns/export-tokens/export-tokens.browser.cjs +91 -0
- package/dist/fns/export-tokens/export-tokens.browser.js +77 -0
- package/dist/fns/export-tokens/export-tokens.cjs +95 -0
- package/dist/fns/export-tokens/export-tokens.d.ts +19 -0
- package/dist/fns/export-tokens/export-tokens.enums.browser.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.d.ts +39 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.cjs +36 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.js +16 -0
- package/dist/fns/export-tokens/export-tokens.guards.cjs +41 -0
- package/dist/fns/export-tokens/export-tokens.guards.d.ts +4 -0
- package/dist/fns/export-tokens/export-tokens.guards.js +16 -0
- package/dist/fns/export-tokens/export-tokens.js +77 -0
- package/dist/fns/export-tokens/export-tokens.schema.input.json +43 -0
- package/dist/fns/export-tokens/export-tokens.schema.output.json +8 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +94 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +98 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.d.ts +19 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.browser.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.d.ts +47 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.cjs +36 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.cjs +41 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.d.ts +4 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.input.json +49 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.output.json +8 -0
- package/dist/fns/export-transfers/export-transfers.browser.cjs +140 -0
- package/dist/fns/export-transfers/export-transfers.browser.js +127 -0
- package/dist/fns/export-transfers/export-transfers.cjs +144 -0
- package/dist/fns/export-transfers/export-transfers.d.ts +19 -0
- package/dist/{txs/export-database/export-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.cjs} +3 -3
- package/dist/fns/export-transfers/export-transfers.enums.d.ts +54 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.cjs +36 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.js +16 -0
- package/dist/fns/export-transfers/export-transfers.guards.cjs +41 -0
- package/dist/fns/export-transfers/export-transfers.guards.d.ts +4 -0
- package/dist/fns/export-transfers/export-transfers.guards.js +16 -0
- package/dist/fns/export-transfers/export-transfers.js +127 -0
- package/dist/fns/export-transfers/export-transfers.schema.input.json +73 -0
- package/dist/fns/export-transfers/export-transfers.schema.output.json +8 -0
- package/dist/fns/export-wallets/export-wallets.browser.cjs +86 -0
- package/dist/fns/export-wallets/export-wallets.browser.js +72 -0
- package/dist/fns/export-wallets/export-wallets.cjs +90 -0
- package/dist/fns/export-wallets/export-wallets.d.ts +18 -0
- package/dist/fns/export-wallets/export-wallets.enums.browser.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.d.ts +45 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.cjs +36 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.js +16 -0
- package/dist/fns/export-wallets/export-wallets.guards.cjs +41 -0
- package/dist/fns/export-wallets/export-wallets.guards.d.ts +4 -0
- package/dist/fns/export-wallets/export-wallets.guards.js +16 -0
- package/dist/fns/export-wallets/export-wallets.js +72 -0
- package/dist/fns/export-wallets/export-wallets.schema.input.json +54 -0
- package/dist/fns/export-wallets/export-wallets.schema.output.json +8 -0
- package/dist/fns/get-export/get-export.browser.cjs +45 -0
- package/dist/fns/get-export/get-export.browser.js +24 -0
- package/dist/fns/get-export/get-export.cjs +49 -0
- package/dist/fns/get-export/get-export.d.ts +9 -0
- package/dist/{txs/query/query.enums.browser.cjs → fns/get-export/get-export.enums.browser.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.browser.js +0 -0
- package/dist/{txs/query/query.enums.cjs → fns/get-export/get-export.enums.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.d.ts +22 -0
- package/dist/fns/get-export/get-export.enums.js +0 -0
- package/dist/fns/get-export/get-export.guards.browser.cjs +36 -0
- package/dist/fns/get-export/get-export.guards.browser.js +16 -0
- package/dist/fns/get-export/get-export.guards.cjs +41 -0
- package/dist/fns/get-export/get-export.guards.d.ts +4 -0
- package/dist/fns/get-export/get-export.guards.js +16 -0
- package/dist/fns/get-export/get-export.js +24 -0
- package/dist/fns/get-export/get-export.schema.input.json +27 -0
- package/dist/fns/get-export/get-export.schema.output.json +8 -0
- package/dist/fns/index.browser.cjs +65 -0
- package/dist/fns/index.browser.js +65 -0
- package/dist/fns/index.cjs +86 -0
- package/dist/fns/index.d.ts +45 -1
- package/dist/fns/index.js +65 -0
- package/dist/fns/list-exports/list-exports.browser.cjs +51 -0
- package/dist/fns/list-exports/list-exports.browser.js +30 -0
- package/dist/fns/list-exports/list-exports.cjs +55 -0
- package/dist/fns/list-exports/list-exports.d.ts +10 -0
- package/dist/fns/list-exports/list-exports.enums.browser.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.browser.js +0 -0
- package/dist/fns/list-exports/list-exports.enums.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.d.ts +24 -0
- package/dist/fns/list-exports/list-exports.enums.js +0 -0
- package/dist/fns/list-exports/list-exports.guards.browser.cjs +36 -0
- package/dist/fns/list-exports/list-exports.guards.browser.js +16 -0
- package/dist/fns/list-exports/list-exports.guards.cjs +41 -0
- package/dist/fns/list-exports/list-exports.guards.d.ts +4 -0
- package/dist/fns/list-exports/list-exports.guards.js +16 -0
- package/dist/fns/list-exports/list-exports.js +30 -0
- package/dist/fns/list-exports/list-exports.schema.input.json +22 -0
- package/dist/fns/list-exports/list-exports.schema.output.json +8 -0
- package/dist/lib/errors.browser.cjs +44 -22
- package/dist/lib/errors.browser.js +44 -22
- package/dist/lib/errors.cjs +44 -22
- package/dist/lib/errors.d.ts +6 -6
- package/dist/lib/errors.js +44 -22
- package/dist/lib/validator.browser.cjs +286 -90
- package/dist/lib/validator.browser.js +286 -90
- package/dist/lib/validator.cjs +286 -90
- package/dist/lib/validator.d.ts +32 -13
- package/dist/lib/validator.js +286 -90
- package/dist/txs/aggregate-transfer-many/aggregate-transfer-many.schema.input.json +1 -0
- package/dist/txs/create-access-token/create-access-token.schema.input.json +1 -0
- package/dist/txs/create-transfer-group/create-transfer-group.schema.input.json +0 -1
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.d.ts +22 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.input.json +38 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.output.json +14 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.js +0 -0
- package/dist/txs/export-token-many/export-token-many.enums.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.d.ts +9 -0
- package/dist/txs/export-token-many/export-token-many.enums.js +0 -0
- package/dist/txs/export-token-many/export-token-many.schema.input.json +21 -0
- package/dist/txs/export-token-many/export-token-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.d.ts +9 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.input.json +21 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.d.ts +11 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.input.json +40 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.output.json +14 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.d.ts +9 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.input.json +21 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.output.json +14 -0
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +0 -1
- package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-many/find-transfer-many.schema.input.json +0 -1
- package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +1 -1
- package/dist/txs/get-balance-history/get-balance-history.schema.input.json +1 -0
- package/dist/txs/get-export/get-export.enums.browser.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.browser.js +0 -0
- package/dist/txs/get-export/get-export.enums.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.d.ts +82 -0
- package/dist/txs/get-export/get-export.enums.js +0 -0
- package/dist/txs/get-export/get-export.schema.input.json +51 -0
- package/dist/txs/get-export/get-export.schema.output.json +70 -0
- package/dist/txs/get-wallet-many/get-wallet-many.enums.d.ts +1 -1
- package/dist/txs/get-wallet-many/get-wallet-many.schema.input.json +1 -0
- package/dist/txs/healthcheck/healthcheck.schema.input.json +0 -1
- package/dist/txs/index.browser.cjs +63 -58
- package/dist/txs/index.browser.js +61 -62
- package/dist/txs/index.cjs +77 -75
- package/dist/txs/index.d.ts +37 -33
- package/dist/txs/index.js +61 -62
- package/dist/txs/list-export-many/list-export-many.enums.browser.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.browser.js +0 -0
- package/dist/txs/list-export-many/list-export-many.enums.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.d.ts +23 -0
- package/dist/txs/list-export-many/list-export-many.enums.js +0 -0
- package/dist/txs/list-export-many/list-export-many.schema.input.json +76 -0
- package/dist/txs/list-export-many/list-export-many.schema.output.json +18 -0
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.input.json +1 -0
- package/dist/txs/update-token/update-token.enums.d.ts +1 -1
- package/dist/txs/update-token/update-token.schema.input.json +1 -1
- package/dist/txs/update-transfer/update-transfer.enums.d.ts +1 -1
- package/dist/txs/update-transfer/update-transfer.schema.input.json +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.schema.input.json +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.schema.input.json +1 -1
- package/dist/txs/update-wallet/update-wallet.enums.d.ts +1 -1
- package/dist/txs/update-wallet/update-wallet.schema.input.json +1 -1
- package/dist/types/index.d.ts +2260 -1333
- package/dist/wapi-client-web.iife.js +6 -6
- package/dist/wapi-client.iife.js +6 -6
- package/package.json +1 -1
- package/dist/txs/export-database/export-database.enums.d.ts +0 -20
- package/dist/txs/export-database/export-database.schema.input.json +0 -15
- package/dist/txs/export-database/export-database.schema.output.json +0 -13
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +0 -38
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.input.json +0 -31
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.output.json +0 -27
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +0 -33
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.input.json +0 -22
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.output.json +0 -27
- package/dist/txs/import-database/import-database.enums.d.ts +0 -17
- package/dist/txs/import-database/import-database.schema.input.json +0 -14
- package/dist/txs/import-database/import-database.schema.output.json +0 -13
- package/dist/txs/list-database-exports/list-database-exports.enums.browser.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +0 -26
- package/dist/txs/list-database-exports/list-database-exports.schema.input.json +0 -10
- package/dist/txs/list-database-exports/list-database-exports.schema.output.json +0 -33
- package/dist/txs/query/query.enums.d.ts +0 -30
- package/dist/txs/query/query.schema.input.json +0 -31
- package/dist/txs/query/query.schema.output.json +0 -15
- /package/dist/{txs/export-database/export-database.enums.browser.js → db/wapi-statistic/wapi-statistic.enums.browser.js} +0 -0
- /package/dist/{txs/export-database/export-database.enums.js → db/wapi-statistic/wapi-statistic.enums.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.browser.js → fns/export-balance-history/export-balance-history.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.js → fns/export-balance-history/export-balance-history.enums.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.browser.js → fns/export-tokens/export-tokens.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.js → fns/export-tokens/export-tokens.enums.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.browser.js → fns/export-transfer-groups/export-transfer-groups.enums.browser.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.js → fns/export-transfer-groups/export-transfer-groups.enums.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.browser.js → fns/export-transfers/export-transfers.enums.browser.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.js → fns/export-transfers/export-transfers.enums.js} +0 -0
- /package/dist/{txs/query/query.enums.browser.js → fns/export-wallets/export-wallets.enums.browser.js} +0 -0
- /package/dist/{txs/query/query.enums.js → fns/export-wallets/export-wallets.enums.js} +0 -0
|
@@ -64,10 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"latest_control_hash": {
|
|
66
66
|
"description": "Latest hash related to this wallet",
|
|
67
|
-
"type": [
|
|
68
|
-
"string",
|
|
69
|
-
"null"
|
|
70
|
-
],
|
|
67
|
+
"type": ["string", "null"],
|
|
71
68
|
"maxLength": 255
|
|
72
69
|
},
|
|
73
70
|
"pending_amount_to": {
|
|
@@ -80,17 +77,11 @@
|
|
|
80
77
|
},
|
|
81
78
|
"group_balance": {
|
|
82
79
|
"description": "Running balance for the wallet in this group",
|
|
83
|
-
"type": [
|
|
84
|
-
"number",
|
|
85
|
-
"null"
|
|
86
|
-
]
|
|
80
|
+
"type": ["number", "null"]
|
|
87
81
|
},
|
|
88
82
|
"transfer_group_id": {
|
|
89
83
|
"description": "Foreign key pointing to the transfer_group this transfer_log belongs to",
|
|
90
|
-
"type": [
|
|
91
|
-
"integer",
|
|
92
|
-
"null"
|
|
93
|
-
]
|
|
84
|
+
"type": ["integer", "null"]
|
|
94
85
|
},
|
|
95
86
|
"current": {
|
|
96
87
|
"description": "Boolean showing if this transfer_log is the latest for this wallet/token combination",
|
|
@@ -103,10 +94,7 @@
|
|
|
103
94
|
},
|
|
104
95
|
"token_limit": {
|
|
105
96
|
"description": "If wallet = token.belongs_to and token has limit",
|
|
106
|
-
"type": [
|
|
107
|
-
"number",
|
|
108
|
-
"null"
|
|
109
|
-
]
|
|
97
|
+
"type": ["number", "null"]
|
|
110
98
|
}
|
|
111
99
|
},
|
|
112
100
|
"additionalProperties": false,
|
|
@@ -160,12 +148,7 @@
|
|
|
160
148
|
"TransferLogTableStringFields": {
|
|
161
149
|
"$id": "TransferLogTableStringFields",
|
|
162
150
|
"type": "string",
|
|
163
|
-
"enum": [
|
|
164
|
-
"type",
|
|
165
|
-
"status",
|
|
166
|
-
"created_at",
|
|
167
|
-
"latest_control_hash"
|
|
168
|
-
]
|
|
151
|
+
"enum": ["type", "status", "created_at", "latest_control_hash"]
|
|
169
152
|
},
|
|
170
153
|
"TransferLogTableNumberFields": {
|
|
171
154
|
"$id": "TransferLogTableNumberFields",
|
|
@@ -188,12 +171,7 @@
|
|
|
188
171
|
"TransferLogTableBooleanFields": {
|
|
189
172
|
"$id": "TransferLogTableBooleanFields",
|
|
190
173
|
"type": "string",
|
|
191
|
-
"enum": [
|
|
192
|
-
"allow_negative",
|
|
193
|
-
"allow_positive",
|
|
194
|
-
"force",
|
|
195
|
-
"current"
|
|
196
|
-
]
|
|
174
|
+
"enum": ["allow_negative", "allow_positive", "force", "current"]
|
|
197
175
|
}
|
|
198
176
|
},
|
|
199
177
|
"required": [
|
|
@@ -215,4 +193,4 @@
|
|
|
215
193
|
"current",
|
|
216
194
|
"available_balance"
|
|
217
195
|
]
|
|
218
|
-
}
|
|
196
|
+
}
|
|
@@ -64,10 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"latest_control_hash": {
|
|
66
66
|
"description": "Latest hash related to this wallet",
|
|
67
|
-
"type": [
|
|
68
|
-
"string",
|
|
69
|
-
"null"
|
|
70
|
-
],
|
|
67
|
+
"type": ["string", "null"],
|
|
71
68
|
"maxLength": 255
|
|
72
69
|
},
|
|
73
70
|
"pending_amount_to": {
|
|
@@ -80,17 +77,11 @@
|
|
|
80
77
|
},
|
|
81
78
|
"group_balance": {
|
|
82
79
|
"description": "Running balance for the wallet in this group",
|
|
83
|
-
"type": [
|
|
84
|
-
"number",
|
|
85
|
-
"null"
|
|
86
|
-
]
|
|
80
|
+
"type": ["number", "null"]
|
|
87
81
|
},
|
|
88
82
|
"transfer_group_id": {
|
|
89
83
|
"description": "Foreign key pointing to the transfer_group this transfer_log belongs to",
|
|
90
|
-
"type": [
|
|
91
|
-
"integer",
|
|
92
|
-
"null"
|
|
93
|
-
]
|
|
84
|
+
"type": ["integer", "null"]
|
|
94
85
|
},
|
|
95
86
|
"current": {
|
|
96
87
|
"description": "Boolean showing if this transfer_log is the latest for this wallet/token combination",
|
|
@@ -103,14 +94,9 @@
|
|
|
103
94
|
},
|
|
104
95
|
"token_limit": {
|
|
105
96
|
"description": "If wallet = token.belongs_to and token has limit",
|
|
106
|
-
"type": [
|
|
107
|
-
"number",
|
|
108
|
-
"null"
|
|
109
|
-
]
|
|
97
|
+
"type": ["number", "null"]
|
|
110
98
|
}
|
|
111
99
|
},
|
|
112
100
|
"additionalProperties": false,
|
|
113
|
-
"required": [
|
|
114
|
-
|
|
115
|
-
]
|
|
116
|
-
}
|
|
101
|
+
"required": ["id"]
|
|
102
|
+
}
|
|
@@ -13,18 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"name": {
|
|
15
15
|
"description": "Name of the wallet",
|
|
16
|
-
"type": [
|
|
17
|
-
"string",
|
|
18
|
-
"null"
|
|
19
|
-
],
|
|
16
|
+
"type": ["string", "null"],
|
|
20
17
|
"maxLength": 255
|
|
21
18
|
},
|
|
22
19
|
"metadata": {
|
|
23
20
|
"description": "Key/value metadata object",
|
|
24
|
-
"type": [
|
|
25
|
-
"object",
|
|
26
|
-
"null"
|
|
27
|
-
]
|
|
21
|
+
"type": ["object", "null"]
|
|
28
22
|
},
|
|
29
23
|
"type": {
|
|
30
24
|
"description": "Type of the wallet",
|
|
@@ -38,7 +32,5 @@
|
|
|
38
32
|
}
|
|
39
33
|
},
|
|
40
34
|
"additionalProperties": false,
|
|
41
|
-
"required": [
|
|
42
|
-
|
|
43
|
-
]
|
|
44
|
-
}
|
|
35
|
+
"required": ["foreign"]
|
|
36
|
+
}
|
|
@@ -17,18 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"name": {
|
|
19
19
|
"description": "Name of the wallet",
|
|
20
|
-
"type": [
|
|
21
|
-
"string",
|
|
22
|
-
"null"
|
|
23
|
-
],
|
|
20
|
+
"type": ["string", "null"],
|
|
24
21
|
"maxLength": 255
|
|
25
22
|
},
|
|
26
23
|
"metadata": {
|
|
27
24
|
"description": "Key/value metadata object",
|
|
28
|
-
"type": [
|
|
29
|
-
"object",
|
|
30
|
-
"null"
|
|
31
|
-
]
|
|
25
|
+
"type": ["object", "null"]
|
|
32
26
|
},
|
|
33
27
|
"type": {
|
|
34
28
|
"description": "Type of the wallet",
|
|
@@ -80,14 +74,7 @@
|
|
|
80
74
|
"WalletTableAccessibleFields": {
|
|
81
75
|
"$id": "WalletTableAccessibleFields",
|
|
82
76
|
"type": "string",
|
|
83
|
-
"enum": [
|
|
84
|
-
"id",
|
|
85
|
-
"foreign",
|
|
86
|
-
"name",
|
|
87
|
-
"metadata",
|
|
88
|
-
"type",
|
|
89
|
-
"status"
|
|
90
|
-
]
|
|
77
|
+
"enum": ["id", "foreign", "name", "metadata", "type", "status"]
|
|
91
78
|
},
|
|
92
79
|
"WalletTableFields": {
|
|
93
80
|
"$id": "WalletTableFields",
|
|
@@ -108,36 +95,22 @@
|
|
|
108
95
|
"WalletTableStringFields": {
|
|
109
96
|
"$id": "WalletTableStringFields",
|
|
110
97
|
"type": "string",
|
|
111
|
-
"enum": [
|
|
112
|
-
"foreign",
|
|
113
|
-
"name",
|
|
114
|
-
"type",
|
|
115
|
-
"created_at",
|
|
116
|
-
"updated_at",
|
|
117
|
-
"status"
|
|
118
|
-
]
|
|
98
|
+
"enum": ["foreign", "name", "type", "created_at", "updated_at", "status"]
|
|
119
99
|
},
|
|
120
100
|
"WalletTableObjectFields": {
|
|
121
101
|
"$id": "WalletTableObjectFields",
|
|
122
102
|
"type": "string",
|
|
123
|
-
"enum": [
|
|
124
|
-
"metadata"
|
|
125
|
-
]
|
|
103
|
+
"enum": ["metadata"]
|
|
126
104
|
},
|
|
127
105
|
"WalletTableNumberFields": {
|
|
128
106
|
"$id": "WalletTableNumberFields",
|
|
129
107
|
"type": "string",
|
|
130
|
-
"enum": [
|
|
131
|
-
"id"
|
|
132
|
-
]
|
|
108
|
+
"enum": ["id"]
|
|
133
109
|
},
|
|
134
110
|
"WalletTableBooleanFields": {
|
|
135
111
|
"$id": "WalletTableBooleanFields",
|
|
136
112
|
"type": "string",
|
|
137
|
-
"enum": [
|
|
138
|
-
"default_allow_negative",
|
|
139
|
-
"default_allow_positive"
|
|
140
|
-
]
|
|
113
|
+
"enum": ["default_allow_negative", "default_allow_positive"]
|
|
141
114
|
}
|
|
142
115
|
},
|
|
143
116
|
"required": [
|
|
@@ -150,4 +123,4 @@
|
|
|
150
123
|
"updated_at",
|
|
151
124
|
"status"
|
|
152
125
|
]
|
|
153
|
-
}
|
|
126
|
+
}
|
|
@@ -17,18 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"name": {
|
|
19
19
|
"description": "Name of the wallet",
|
|
20
|
-
"type": [
|
|
21
|
-
"string",
|
|
22
|
-
"null"
|
|
23
|
-
],
|
|
20
|
+
"type": ["string", "null"],
|
|
24
21
|
"maxLength": 255
|
|
25
22
|
},
|
|
26
23
|
"metadata": {
|
|
27
24
|
"description": "Key/value metadata object",
|
|
28
|
-
"type": [
|
|
29
|
-
"object",
|
|
30
|
-
"null"
|
|
31
|
-
]
|
|
25
|
+
"type": ["object", "null"]
|
|
32
26
|
},
|
|
33
27
|
"type": {
|
|
34
28
|
"description": "Type of the wallet",
|
|
@@ -76,7 +70,5 @@
|
|
|
76
70
|
}
|
|
77
71
|
},
|
|
78
72
|
"additionalProperties": false,
|
|
79
|
-
"required": [
|
|
80
|
-
|
|
81
|
-
]
|
|
82
|
-
}
|
|
73
|
+
"required": ["id"]
|
|
74
|
+
}
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
"WalletTokenSettingTableAccessibleFields": {
|
|
58
58
|
"$id": "WalletTokenSettingTableAccessibleFields",
|
|
59
59
|
"type": "string",
|
|
60
|
-
"enum": [
|
|
61
|
-
"id"
|
|
62
|
-
]
|
|
60
|
+
"enum": ["id"]
|
|
63
61
|
},
|
|
64
62
|
"WalletTokenSettingTableFields": {
|
|
65
63
|
"$id": "WalletTokenSettingTableFields",
|
|
@@ -77,27 +75,17 @@
|
|
|
77
75
|
"WalletTokenSettingTableStringFields": {
|
|
78
76
|
"$id": "WalletTokenSettingTableStringFields",
|
|
79
77
|
"type": "string",
|
|
80
|
-
"enum": [
|
|
81
|
-
"created_at",
|
|
82
|
-
"updated_at"
|
|
83
|
-
]
|
|
78
|
+
"enum": ["created_at", "updated_at"]
|
|
84
79
|
},
|
|
85
80
|
"WalletTokenSettingTableNumberFields": {
|
|
86
81
|
"$id": "WalletTokenSettingTableNumberFields",
|
|
87
82
|
"type": "string",
|
|
88
|
-
"enum": [
|
|
89
|
-
"id",
|
|
90
|
-
"wallet_id",
|
|
91
|
-
"token_id"
|
|
92
|
-
]
|
|
83
|
+
"enum": ["id", "wallet_id", "token_id"]
|
|
93
84
|
},
|
|
94
85
|
"WalletTokenSettingTableBooleanFields": {
|
|
95
86
|
"$id": "WalletTokenSettingTableBooleanFields",
|
|
96
87
|
"type": "string",
|
|
97
|
-
"enum": [
|
|
98
|
-
"allow_negative",
|
|
99
|
-
"allow_positive"
|
|
100
|
-
]
|
|
88
|
+
"enum": ["allow_negative", "allow_positive"]
|
|
101
89
|
}
|
|
102
90
|
},
|
|
103
91
|
"required": [
|
|
@@ -109,4 +97,4 @@
|
|
|
109
97
|
"created_at",
|
|
110
98
|
"updated_at"
|
|
111
99
|
]
|
|
112
|
-
}
|
|
100
|
+
}
|
|
@@ -46,13 +46,7 @@
|
|
|
46
46
|
"WapiSettingTableAccessibleFields": {
|
|
47
47
|
"$id": "WapiSettingTableAccessibleFields",
|
|
48
48
|
"type": "string",
|
|
49
|
-
"enum": [
|
|
50
|
-
"id",
|
|
51
|
-
"type",
|
|
52
|
-
"name",
|
|
53
|
-
"value",
|
|
54
|
-
"applied"
|
|
55
|
-
]
|
|
49
|
+
"enum": ["id", "type", "name", "value", "applied"]
|
|
56
50
|
},
|
|
57
51
|
"WapiSettingTableFields": {
|
|
58
52
|
"$id": "WapiSettingTableFields",
|
|
@@ -70,27 +64,17 @@
|
|
|
70
64
|
"WapiSettingTableStringFields": {
|
|
71
65
|
"$id": "WapiSettingTableStringFields",
|
|
72
66
|
"type": "string",
|
|
73
|
-
"enum": [
|
|
74
|
-
"type",
|
|
75
|
-
"name",
|
|
76
|
-
"value",
|
|
77
|
-
"created_at",
|
|
78
|
-
"updated_at"
|
|
79
|
-
]
|
|
67
|
+
"enum": ["type", "name", "value", "created_at", "updated_at"]
|
|
80
68
|
},
|
|
81
69
|
"WapiSettingTableNumberFields": {
|
|
82
70
|
"$id": "WapiSettingTableNumberFields",
|
|
83
71
|
"type": "string",
|
|
84
|
-
"enum": [
|
|
85
|
-
"id"
|
|
86
|
-
]
|
|
72
|
+
"enum": ["id"]
|
|
87
73
|
},
|
|
88
74
|
"WapiSettingTableBooleanFields": {
|
|
89
75
|
"$id": "WapiSettingTableBooleanFields",
|
|
90
76
|
"type": "string",
|
|
91
|
-
"enum": [
|
|
92
|
-
"applied"
|
|
93
|
-
]
|
|
77
|
+
"enum": ["applied"]
|
|
94
78
|
}
|
|
95
79
|
},
|
|
96
80
|
"required": [
|
|
@@ -102,4 +86,4 @@
|
|
|
102
86
|
"created_at",
|
|
103
87
|
"updated_at"
|
|
104
88
|
]
|
|
105
|
-
}
|
|
89
|
+
}
|
|
@@ -12,6 +12,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
};
|
|
13
13
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
14
|
|
|
15
|
-
// src/
|
|
16
|
-
var
|
|
17
|
-
module.exports = __toCommonJS(
|
|
15
|
+
// src/db/wapi-statistic/wapi-statistic.enums.ts
|
|
16
|
+
var wapi_statistic_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(wapi_statistic_enums_exports);
|
|
@@ -12,6 +12,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
};
|
|
13
13
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
14
|
|
|
15
|
-
// src/
|
|
16
|
-
var
|
|
17
|
-
module.exports = __toCommonJS(
|
|
15
|
+
// src/db/wapi-statistic/wapi-statistic.enums.ts
|
|
16
|
+
var wapi_statistic_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(wapi_statistic_enums_exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { DbModelName } from '../consts.enums';
|
|
2
|
+
export type WapiStatisticTableAccessibleFields = 'id' | 'model' | 'type' | 'result' | 'max_id';
|
|
3
|
+
export type WapiStatisticTableFields = 'id' | 'model' | 'type' | 'result' | 'max_id' | 'created_at' | 'updated_at';
|
|
4
|
+
export type WapiStatisticTableStringFields = 'model' | 'type' | 'max_id' | 'created_at' | 'updated_at';
|
|
5
|
+
export type WapiStatisticTableNumberFields = 'id' | 'result';
|
|
6
|
+
/**
|
|
7
|
+
* Database statistics
|
|
8
|
+
*/
|
|
9
|
+
export interface WapiStatisticTable {
|
|
10
|
+
/**
|
|
11
|
+
* System defined primary key
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* Model name this statistic applies to
|
|
16
|
+
*/
|
|
17
|
+
model: DbModelName;
|
|
18
|
+
/**
|
|
19
|
+
* Type of the statistic
|
|
20
|
+
*/
|
|
21
|
+
type: string;
|
|
22
|
+
/**
|
|
23
|
+
* result of statistic calulation
|
|
24
|
+
*/
|
|
25
|
+
result: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum id at the time of calculation
|
|
28
|
+
*/
|
|
29
|
+
max_id: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Datetime when the statistic was created
|
|
32
|
+
*/
|
|
33
|
+
created_at: string;
|
|
34
|
+
/**
|
|
35
|
+
* Datetime when the statistic was last updated
|
|
36
|
+
*/
|
|
37
|
+
updated_at: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Database statistics
|
|
41
|
+
*
|
|
42
|
+
* @category Input
|
|
43
|
+
*/
|
|
44
|
+
export interface WapiStatisticTableInput {
|
|
45
|
+
/**
|
|
46
|
+
* Model name this statistic applies to
|
|
47
|
+
*/
|
|
48
|
+
model: DbModelName;
|
|
49
|
+
/**
|
|
50
|
+
* Type of the statistic
|
|
51
|
+
*/
|
|
52
|
+
type: string;
|
|
53
|
+
/**
|
|
54
|
+
* result of statistic calulation
|
|
55
|
+
*/
|
|
56
|
+
result: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum id at the time of calculation
|
|
59
|
+
*/
|
|
60
|
+
max_id: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Database statistics Only require id, other fields are optional
|
|
64
|
+
*
|
|
65
|
+
* @category Optional
|
|
66
|
+
*/
|
|
67
|
+
export interface WapiStatisticTableOptional {
|
|
68
|
+
/**
|
|
69
|
+
* System defined primary key
|
|
70
|
+
*/
|
|
71
|
+
id: number;
|
|
72
|
+
/**
|
|
73
|
+
* Model name this statistic applies to
|
|
74
|
+
*/
|
|
75
|
+
model?: DbModelName;
|
|
76
|
+
/**
|
|
77
|
+
* Type of the statistic
|
|
78
|
+
*/
|
|
79
|
+
type?: string;
|
|
80
|
+
/**
|
|
81
|
+
* result of statistic calulation
|
|
82
|
+
*/
|
|
83
|
+
result?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Maximum id at the time of calculation
|
|
86
|
+
*/
|
|
87
|
+
max_id?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Datetime when the statistic was created
|
|
90
|
+
*/
|
|
91
|
+
created_at?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Datetime when the statistic was last updated
|
|
94
|
+
*/
|
|
95
|
+
updated_at?: string;
|
|
96
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "WapiStatisticTableInput",
|
|
4
|
+
"title": "WapiStatisticTableInput",
|
|
5
|
+
"description": "Database statistics",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"model": {
|
|
9
|
+
"description": "Model name this statistic applies to",
|
|
10
|
+
"$ref": "/db/consts.schema.json#/definitions/DbModelName"
|
|
11
|
+
},
|
|
12
|
+
"type": {
|
|
13
|
+
"description": "Type of the statistic",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"maxLength": 32,
|
|
16
|
+
"minLength": 1
|
|
17
|
+
},
|
|
18
|
+
"result": {
|
|
19
|
+
"description": "result of statistic calulation",
|
|
20
|
+
"type": "number"
|
|
21
|
+
},
|
|
22
|
+
"max_id": {
|
|
23
|
+
"description": "Maximum id at the time of calculation",
|
|
24
|
+
"type": "number"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["model", "type", "result", "max_id"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "WapiStatisticTable",
|
|
4
|
+
"title": "WapiStatisticTable",
|
|
5
|
+
"description": "Database statistics",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"description": "System defined primary key",
|
|
10
|
+
"type": "integer"
|
|
11
|
+
},
|
|
12
|
+
"model": {
|
|
13
|
+
"description": "Model name this statistic applies to",
|
|
14
|
+
"$ref": "/db/consts.schema.json#/definitions/DbModelName"
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"description": "Type of the statistic",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"maxLength": 32,
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"result": {
|
|
23
|
+
"description": "result of statistic calulation",
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"max_id": {
|
|
27
|
+
"description": "Maximum id at the time of calculation",
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"created_at": {
|
|
31
|
+
"description": "Datetime when the flag was created",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": "date-time"
|
|
34
|
+
},
|
|
35
|
+
"updated_at": {
|
|
36
|
+
"description": "Datetime when the flag was last updated",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "date-time"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"definitions": {
|
|
43
|
+
"WapiStatisticTableAccessibleFields": {
|
|
44
|
+
"$id": "WapiStatisticTableAccessibleFields",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["id", "model", "type", "result", "max_id"]
|
|
47
|
+
},
|
|
48
|
+
"WapiStatisticTableFields": {
|
|
49
|
+
"$id": "WapiStatisticTableFields",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": [
|
|
52
|
+
"id",
|
|
53
|
+
"model",
|
|
54
|
+
"type",
|
|
55
|
+
"result",
|
|
56
|
+
"max_id",
|
|
57
|
+
"created_at",
|
|
58
|
+
"updated_at"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"WapiStatisticTableStringFields": {
|
|
62
|
+
"$id": "WapiStatisticTableStringFields",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": ["model", "type", "created_at", "updated_at"]
|
|
65
|
+
},
|
|
66
|
+
"WapiStatisticTableNumberFields": {
|
|
67
|
+
"$id": "WapiStatisticTableNumberFields",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["id", "result", "max_id"]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"id",
|
|
74
|
+
"model",
|
|
75
|
+
"type",
|
|
76
|
+
"result",
|
|
77
|
+
"max_id",
|
|
78
|
+
"created_at",
|
|
79
|
+
"updated_at"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "WapiStatisticTableOptional",
|
|
4
|
+
"title": "WapiStatisticTableOptional",
|
|
5
|
+
"description": "Database statistics Only require id, other fields are optional",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"description": "System defined primary key",
|
|
10
|
+
"type": "integer"
|
|
11
|
+
},
|
|
12
|
+
"model": {
|
|
13
|
+
"description": "Model name this statistic applies to",
|
|
14
|
+
"$ref": "/db/consts.schema.json#/definitions/DbModelName"
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"description": "Type of the statistic",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"maxLength": 32,
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"result": {
|
|
23
|
+
"description": "result of statistic calulation",
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"max_id": {
|
|
27
|
+
"description": "Maximum id at the time of calculation",
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"created_at": {
|
|
31
|
+
"description": "Datetime when the flag was created",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": "date-time"
|
|
34
|
+
},
|
|
35
|
+
"updated_at": {
|
|
36
|
+
"description": "Datetime when the flag was last updated",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "date-time"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["id"]
|
|
43
|
+
}
|