rehive 3.1.4 → 4.0.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/README.md +211 -506
- package/dist/admin.d.mts +31284 -0
- package/dist/admin.d.ts +31284 -0
- package/dist/admin.js +1 -0
- package/dist/admin.mjs +1 -0
- package/dist/auth.d.mts +23 -0
- package/dist/auth.d.ts +23 -0
- package/dist/auth.js +1 -0
- package/dist/auth.mjs +1 -0
- package/dist/chunk-53JJUQ4V.js +1 -0
- package/dist/chunk-5MRX4DHT.js +1 -0
- package/dist/chunk-7WWCXCY2.mjs +1 -0
- package/dist/chunk-HF5XDXOU.mjs +1 -0
- package/dist/chunk-NFN3B6SG.mjs +1 -0
- package/dist/chunk-OEIQFP6T.js +1 -0
- package/dist/chunk-Q2ZX3WFY.mjs +7 -0
- package/dist/chunk-QWQ6ZENI.js +1 -0
- package/dist/chunk-RKDIBDG6.js +7 -0
- package/dist/chunk-S4QKN5WW.mjs +1 -0
- package/dist/chunk-UYUMXTPF.js +7 -0
- package/dist/chunk-V277OEVY.mjs +7 -0
- package/dist/create-api-client-BMeX50D6.d.ts +25 -0
- package/dist/create-api-client-BrsH1l8c.d.mts +25 -0
- package/dist/create-auth-UTklIOTc.d.mts +18340 -0
- package/dist/create-auth-UTklIOTc.d.ts +18340 -0
- package/dist/extensions/alchemy.d.mts +1114 -0
- package/dist/extensions/alchemy.d.ts +1114 -0
- package/dist/extensions/alchemy.js +7 -0
- package/dist/extensions/alchemy.mjs +7 -0
- package/dist/extensions/app.d.mts +2042 -0
- package/dist/extensions/app.d.ts +2042 -0
- package/dist/extensions/app.js +7 -0
- package/dist/extensions/app.mjs +7 -0
- package/dist/extensions/billing.d.mts +828 -0
- package/dist/extensions/billing.d.ts +828 -0
- package/dist/extensions/billing.js +7 -0
- package/dist/extensions/billing.mjs +7 -0
- package/dist/extensions/bridge.d.mts +2028 -0
- package/dist/extensions/bridge.d.ts +2028 -0
- package/dist/extensions/bridge.js +7 -0
- package/dist/extensions/bridge.mjs +7 -0
- package/dist/extensions/builder.d.mts +542 -0
- package/dist/extensions/builder.d.ts +542 -0
- package/dist/extensions/builder.js +7 -0
- package/dist/extensions/builder.mjs +7 -0
- package/dist/extensions/business.d.mts +8972 -0
- package/dist/extensions/business.d.ts +8972 -0
- package/dist/extensions/business.js +7 -0
- package/dist/extensions/business.mjs +7 -0
- package/dist/extensions/conversion.d.mts +2786 -0
- package/dist/extensions/conversion.d.ts +2786 -0
- package/dist/extensions/conversion.js +7 -0
- package/dist/extensions/conversion.mjs +7 -0
- package/dist/extensions/mass-send.d.mts +1294 -0
- package/dist/extensions/mass-send.d.ts +1294 -0
- package/dist/extensions/mass-send.js +7 -0
- package/dist/extensions/mass-send.mjs +7 -0
- package/dist/extensions/notifications.d.mts +2035 -0
- package/dist/extensions/notifications.d.ts +2035 -0
- package/dist/extensions/notifications.js +7 -0
- package/dist/extensions/notifications.mjs +7 -0
- package/dist/extensions/payment-requests.d.mts +3746 -0
- package/dist/extensions/payment-requests.d.ts +3746 -0
- package/dist/extensions/payment-requests.js +7 -0
- package/dist/extensions/payment-requests.mjs +7 -0
- package/dist/extensions/products.d.mts +10092 -0
- package/dist/extensions/products.d.ts +10092 -0
- package/dist/extensions/products.js +7 -0
- package/dist/extensions/products.mjs +7 -0
- package/dist/extensions/rain.d.mts +1896 -0
- package/dist/extensions/rain.d.ts +1896 -0
- package/dist/extensions/rain.js +7 -0
- package/dist/extensions/rain.mjs +7 -0
- package/dist/extensions/rewards.d.mts +2038 -0
- package/dist/extensions/rewards.d.ts +2038 -0
- package/dist/extensions/rewards.js +7 -0
- package/dist/extensions/rewards.mjs +7 -0
- package/dist/extensions/stellar-testnet.d.mts +3922 -0
- package/dist/extensions/stellar-testnet.d.ts +3922 -0
- package/dist/extensions/stellar-testnet.js +7 -0
- package/dist/extensions/stellar-testnet.mjs +7 -0
- package/dist/extensions/stellar.d.mts +3922 -0
- package/dist/extensions/stellar.d.ts +3922 -0
- package/dist/extensions/stellar.js +7 -0
- package/dist/extensions/stellar.mjs +7 -0
- package/dist/index.d.mts +6 -61050
- package/dist/index.d.ts +6 -61050
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +8 -61087
- package/dist/react.d.ts +8 -61087
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +1347 -0
- package/dist/user.d.ts +1347 -0
- package/dist/user.js +1 -0
- package/dist/user.mjs +1 -0
- package/package.json +99 -32
- package/src/auth/core/storage-adapters.ts +58 -0
- package/src/auth/create-auth.ts +563 -0
- package/src/auth/index.ts +4 -0
- package/src/auth/types/index.ts +28 -0
- package/src/extensions/alchemy/create-api.ts +13 -0
- package/src/extensions/alchemy/index.ts +3 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/alchemy/openapi-ts/client/index.ts +25 -0
- package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/alchemy/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/alchemy/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/alchemy/openapi-ts/index.ts +4 -0
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +179 -0
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +851 -0
- package/src/extensions/app/create-api.ts +13 -0
- package/src/extensions/app/index.ts +3 -0
- package/src/extensions/app/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/app/openapi-ts/client/index.ts +25 -0
- package/src/extensions/app/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/app/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/app/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/app/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/app/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/app/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/app/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/app/openapi-ts/index.ts +4 -0
- package/src/extensions/app/openapi-ts/sdk.gen.ts +539 -0
- package/src/extensions/app/openapi-ts/types.gen.ts +1702 -0
- package/src/extensions/billing/create-api.ts +13 -0
- package/src/extensions/billing/index.ts +3 -0
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/billing/openapi-ts/client/index.ts +25 -0
- package/src/extensions/billing/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/billing/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/billing/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/billing/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/billing/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/billing/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/billing/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/billing/openapi-ts/index.ts +4 -0
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +155 -0
- package/src/extensions/billing/openapi-ts/types.gen.ts +508 -0
- package/src/extensions/bridge/create-api.ts +13 -0
- package/src/extensions/bridge/index.ts +3 -0
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/bridge/openapi-ts/client/index.ts +25 -0
- package/src/extensions/bridge/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/bridge/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/bridge/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/bridge/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/bridge/openapi-ts/index.ts +4 -0
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +383 -0
- package/src/extensions/bridge/openapi-ts/types.gen.ts +1855 -0
- package/src/extensions/builder/create-api.ts +13 -0
- package/src/extensions/builder/index.ts +3 -0
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/builder/openapi-ts/client/index.ts +25 -0
- package/src/extensions/builder/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/builder/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/builder/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/builder/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/builder/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/builder/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/builder/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/builder/openapi-ts/index.ts +4 -0
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +60 -0
- package/src/extensions/builder/openapi-ts/types.gen.ts +215 -0
- package/src/extensions/business/create-api.ts +13 -0
- package/src/extensions/business/index.ts +3 -0
- package/src/extensions/business/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/business/openapi-ts/client/index.ts +25 -0
- package/src/extensions/business/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/business/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/business/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/business/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/business/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/business/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/business/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/business/openapi-ts/index.ts +4 -0
- package/src/extensions/business/openapi-ts/sdk.gen.ts +903 -0
- package/src/extensions/business/openapi-ts/types.gen.ts +8718 -0
- package/src/extensions/conversion/create-api.ts +13 -0
- package/src/extensions/conversion/index.ts +3 -0
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/conversion/openapi-ts/client/index.ts +25 -0
- package/src/extensions/conversion/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/conversion/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/conversion/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/conversion/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/conversion/openapi-ts/index.ts +4 -0
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +684 -0
- package/src/extensions/conversion/openapi-ts/types.gen.ts +2467 -0
- package/src/extensions/mass-send/create-api.ts +13 -0
- package/src/extensions/mass-send/index.ts +3 -0
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/mass-send/openapi-ts/client/index.ts +25 -0
- package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/mass-send/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/mass-send/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/mass-send/openapi-ts/index.ts +4 -0
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +270 -0
- package/src/extensions/mass-send/openapi-ts/types.gen.ts +988 -0
- package/src/extensions/notifications/create-api.ts +13 -0
- package/src/extensions/notifications/index.ts +3 -0
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/notifications/openapi-ts/client/index.ts +25 -0
- package/src/extensions/notifications/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/notifications/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/notifications/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/notifications/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/notifications/openapi-ts/index.ts +4 -0
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +450 -0
- package/src/extensions/notifications/openapi-ts/types.gen.ts +1732 -0
- package/src/extensions/payment-requests/create-api.ts +13 -0
- package/src/extensions/payment-requests/index.ts +3 -0
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +25 -0
- package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/payment-requests/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/payment-requests/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/payment-requests/openapi-ts/index.ts +4 -0
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +845 -0
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +3415 -0
- package/src/extensions/products/create-api.ts +13 -0
- package/src/extensions/products/index.ts +3 -0
- package/src/extensions/products/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/products/openapi-ts/client/index.ts +25 -0
- package/src/extensions/products/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/products/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/products/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/products/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/products/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/products/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/products/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/products/openapi-ts/index.ts +4 -0
- package/src/extensions/products/openapi-ts/sdk.gen.ts +2619 -0
- package/src/extensions/products/openapi-ts/types.gen.ts +9717 -0
- package/src/extensions/rain/create-api.ts +13 -0
- package/src/extensions/rain/index.ts +3 -0
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rain/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rain/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rain/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rain/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rain/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rain/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rain/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rain/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rain/openapi-ts/index.ts +4 -0
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +227 -0
- package/src/extensions/rain/openapi-ts/types.gen.ts +1660 -0
- package/src/extensions/rewards/create-api.ts +13 -0
- package/src/extensions/rewards/index.ts +3 -0
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rewards/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rewards/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rewards/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rewards/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rewards/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rewards/openapi-ts/index.ts +4 -0
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +345 -0
- package/src/extensions/rewards/openapi-ts/types.gen.ts +1718 -0
- package/src/extensions/stellar/create-api.ts +13 -0
- package/src/extensions/stellar/index.ts +3 -0
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar/openapi-ts/types.gen.ts +3543 -0
- package/src/extensions/stellar-testnet/create-api.ts +13 -0
- package/src/extensions/stellar-testnet/index.ts +3 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar-testnet/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar-testnet/openapi-ts/types.gen.ts +3543 -0
- package/src/platform/admin/create-api.ts +11 -0
- package/src/platform/admin/index.ts +3 -42
- package/src/platform/admin/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/admin/openapi-ts/client/index.ts +25 -0
- package/src/platform/admin/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/admin/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/admin/openapi-ts/client.gen.ts +16 -0
- package/src/platform/admin/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/admin/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/admin/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/admin/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/admin/openapi-ts/index.ts +4 -0
- package/src/platform/admin/openapi-ts/sdk.gen.ts +3975 -0
- package/src/platform/admin/openapi-ts/types.gen.ts +31193 -0
- package/src/platform/user/create-api.ts +11 -0
- package/src/platform/user/index.ts +3 -42
- package/src/platform/user/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/user/openapi-ts/client/index.ts +25 -0
- package/src/platform/user/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/user/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/user/openapi-ts/client.gen.ts +16 -0
- package/src/platform/user/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/user/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/user/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/user/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/user/openapi-ts/index.ts +4 -0
- package/src/platform/user/openapi-ts/sdk.gen.ts +2090 -0
- package/src/platform/user/openapi-ts/types.gen.ts +19540 -0
- package/src/shared/api-utils.ts +22 -0
- package/src/shared/bind-sdk.ts +48 -0
- package/src/shared/create-api-client.ts +54 -0
- package/src/extensions/app/http-client.ts +0 -1
- package/src/extensions/app/rehive-app-api.ts +0 -1827
- package/src/extensions/bridge/rehive-bridge-api.ts +0 -1436
- package/src/extensions/business/rehive-business-api.ts +0 -9480
- package/src/extensions/conversion/rehive-conversion-api.ts +0 -3054
- package/src/extensions/mass-send/rehive-mass-send-api.ts +0 -1061
- package/src/extensions/notifications/rehive-notifications-api.ts +0 -1964
- package/src/extensions/payment-requests/rehive-payment-requests-api.ts +0 -4026
- package/src/extensions/products/rehive-products-api.ts +0 -13107
- package/src/extensions/rewards/rehive-rewards-api.ts +0 -2139
- package/src/extensions/stellar/rehive-stellar-api.ts +0 -4219
- package/src/extensions/stellar-testnet/rehive-stellar-testnet-api.ts +0 -4219
- package/src/platform/admin/rehive-platform-admin-api.ts +0 -35075
- package/src/platform/user/rehive-platform-user-api.ts +0 -21554
|
@@ -0,0 +1,2038 @@
|
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-BMeX50D6.js';
|
|
2
|
+
import '../create-auth-UTklIOTc.js';
|
|
3
|
+
|
|
4
|
+
type AuthToken = string | undefined;
|
|
5
|
+
interface Auth {
|
|
6
|
+
/**
|
|
7
|
+
* Which part of the request do we use to send the auth?
|
|
8
|
+
*
|
|
9
|
+
* @default 'header'
|
|
10
|
+
*/
|
|
11
|
+
in?: 'header' | 'query' | 'cookie';
|
|
12
|
+
/**
|
|
13
|
+
* Header or query parameter name.
|
|
14
|
+
*
|
|
15
|
+
* @default 'Authorization'
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
scheme?: 'basic' | 'bearer';
|
|
19
|
+
type: 'apiKey' | 'http';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface SerializerOptions<T> {
|
|
23
|
+
/**
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
explode: boolean;
|
|
27
|
+
style: T;
|
|
28
|
+
}
|
|
29
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
30
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
31
|
+
|
|
32
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
+
type BodySerializer = (body: any) => any;
|
|
34
|
+
type QuerySerializerOptionsObject = {
|
|
35
|
+
allowReserved?: boolean;
|
|
36
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
37
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
38
|
+
};
|
|
39
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
40
|
+
/**
|
|
41
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
42
|
+
* override the global array/object settings for specific parameter names.
|
|
43
|
+
*/
|
|
44
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
48
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
49
|
+
/**
|
|
50
|
+
* Returns the final request URL.
|
|
51
|
+
*/
|
|
52
|
+
buildUrl: BuildUrlFn;
|
|
53
|
+
getConfig: () => Config;
|
|
54
|
+
request: RequestFn;
|
|
55
|
+
setConfig: (config: Config) => Config;
|
|
56
|
+
} & {
|
|
57
|
+
[K in HttpMethod]: MethodFn;
|
|
58
|
+
} & ([SseFn] extends [never] ? {
|
|
59
|
+
sse?: never;
|
|
60
|
+
} : {
|
|
61
|
+
sse: {
|
|
62
|
+
[K in HttpMethod]: SseFn;
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
interface Config$1 {
|
|
66
|
+
/**
|
|
67
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
68
|
+
* added to the request payload as defined by its `security` array.
|
|
69
|
+
*/
|
|
70
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
71
|
+
/**
|
|
72
|
+
* A function for serializing request body parameter. By default,
|
|
73
|
+
* {@link JSON.stringify()} will be used.
|
|
74
|
+
*/
|
|
75
|
+
bodySerializer?: BodySerializer | null;
|
|
76
|
+
/**
|
|
77
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
78
|
+
* `Headers` object with.
|
|
79
|
+
*
|
|
80
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
81
|
+
*/
|
|
82
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* The request method.
|
|
85
|
+
*
|
|
86
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
87
|
+
*/
|
|
88
|
+
method?: Uppercase<HttpMethod>;
|
|
89
|
+
/**
|
|
90
|
+
* A function for serializing request query parameters. By default, arrays
|
|
91
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
92
|
+
* style, and reserved characters are percent-encoded.
|
|
93
|
+
*
|
|
94
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
95
|
+
* API function is used.
|
|
96
|
+
*
|
|
97
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
98
|
+
*/
|
|
99
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
100
|
+
/**
|
|
101
|
+
* A function validating request data. This is useful if you want to ensure
|
|
102
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
103
|
+
* the server.
|
|
104
|
+
*/
|
|
105
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
106
|
+
/**
|
|
107
|
+
* A function transforming response data before it's returned. This is useful
|
|
108
|
+
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
109
|
+
*/
|
|
110
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* A function validating response data. This is useful if you want to ensure
|
|
113
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
114
|
+
* the transformers and returned to the user.
|
|
115
|
+
*/
|
|
116
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
120
|
+
/**
|
|
121
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
122
|
+
* fetch instance.
|
|
123
|
+
*
|
|
124
|
+
* @default globalThis.fetch
|
|
125
|
+
*/
|
|
126
|
+
fetch?: typeof fetch;
|
|
127
|
+
/**
|
|
128
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
129
|
+
*/
|
|
130
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
131
|
+
/**
|
|
132
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
133
|
+
*
|
|
134
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
135
|
+
*
|
|
136
|
+
* @param error The error that occurred.
|
|
137
|
+
*/
|
|
138
|
+
onSseError?: (error: unknown) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Callback invoked when an event is streamed from the server.
|
|
141
|
+
*
|
|
142
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
143
|
+
*
|
|
144
|
+
* @param event Event streamed from the server.
|
|
145
|
+
* @returns Nothing (void).
|
|
146
|
+
*/
|
|
147
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
148
|
+
serializedBody?: RequestInit['body'];
|
|
149
|
+
/**
|
|
150
|
+
* Default retry delay in milliseconds.
|
|
151
|
+
*
|
|
152
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
153
|
+
*
|
|
154
|
+
* @default 3000
|
|
155
|
+
*/
|
|
156
|
+
sseDefaultRetryDelay?: number;
|
|
157
|
+
/**
|
|
158
|
+
* Maximum number of retry attempts before giving up.
|
|
159
|
+
*/
|
|
160
|
+
sseMaxRetryAttempts?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Maximum retry delay in milliseconds.
|
|
163
|
+
*
|
|
164
|
+
* Applies only when exponential backoff is used.
|
|
165
|
+
*
|
|
166
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
167
|
+
*
|
|
168
|
+
* @default 30000
|
|
169
|
+
*/
|
|
170
|
+
sseMaxRetryDelay?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Optional sleep function for retry backoff.
|
|
173
|
+
*
|
|
174
|
+
* Defaults to using `setTimeout`.
|
|
175
|
+
*/
|
|
176
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
177
|
+
url: string;
|
|
178
|
+
};
|
|
179
|
+
interface StreamEvent<TData = unknown> {
|
|
180
|
+
data: TData;
|
|
181
|
+
event?: string;
|
|
182
|
+
id?: string;
|
|
183
|
+
retry?: number;
|
|
184
|
+
}
|
|
185
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
186
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
190
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
191
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
192
|
+
declare class Interceptors<Interceptor> {
|
|
193
|
+
fns: Array<Interceptor | null>;
|
|
194
|
+
clear(): void;
|
|
195
|
+
eject(id: number | Interceptor): void;
|
|
196
|
+
exists(id: number | Interceptor): boolean;
|
|
197
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
198
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
199
|
+
use(fn: Interceptor): number;
|
|
200
|
+
}
|
|
201
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
202
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
203
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
204
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type ResponseStyle = 'data' | 'fields';
|
|
208
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
209
|
+
/**
|
|
210
|
+
* Base URL for all requests made by this client.
|
|
211
|
+
*/
|
|
212
|
+
baseUrl?: T['baseUrl'];
|
|
213
|
+
/**
|
|
214
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
215
|
+
* fetch instance.
|
|
216
|
+
*
|
|
217
|
+
* @default globalThis.fetch
|
|
218
|
+
*/
|
|
219
|
+
fetch?: typeof fetch;
|
|
220
|
+
/**
|
|
221
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
222
|
+
* options won't have any effect.
|
|
223
|
+
*
|
|
224
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
225
|
+
*/
|
|
226
|
+
next?: never;
|
|
227
|
+
/**
|
|
228
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
229
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
230
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
231
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
232
|
+
*
|
|
233
|
+
* @default 'auto'
|
|
234
|
+
*/
|
|
235
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
236
|
+
/**
|
|
237
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
238
|
+
*
|
|
239
|
+
* @default 'fields'
|
|
240
|
+
*/
|
|
241
|
+
responseStyle?: ResponseStyle;
|
|
242
|
+
/**
|
|
243
|
+
* Throw an error instead of returning it in the response?
|
|
244
|
+
*
|
|
245
|
+
* @default false
|
|
246
|
+
*/
|
|
247
|
+
throwOnError?: T['throwOnError'];
|
|
248
|
+
}
|
|
249
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'data', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
250
|
+
responseStyle: TResponseStyle;
|
|
251
|
+
throwOnError: ThrowOnError;
|
|
252
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
253
|
+
/**
|
|
254
|
+
* Any body that you want to add to your request.
|
|
255
|
+
*
|
|
256
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
257
|
+
*/
|
|
258
|
+
body?: unknown;
|
|
259
|
+
path?: Record<string, unknown>;
|
|
260
|
+
query?: Record<string, unknown>;
|
|
261
|
+
/**
|
|
262
|
+
* Security mechanism(s) to use for the request.
|
|
263
|
+
*/
|
|
264
|
+
security?: ReadonlyArray<Auth>;
|
|
265
|
+
url: Url;
|
|
266
|
+
}
|
|
267
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'data', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
268
|
+
serializedBody?: string;
|
|
269
|
+
}
|
|
270
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'data'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
271
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
272
|
+
request: Request;
|
|
273
|
+
response: Response;
|
|
274
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
275
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
276
|
+
error: undefined;
|
|
277
|
+
} | {
|
|
278
|
+
data: undefined;
|
|
279
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
280
|
+
}) & {
|
|
281
|
+
request: Request;
|
|
282
|
+
response: Response;
|
|
283
|
+
}>;
|
|
284
|
+
interface ClientOptions$1 {
|
|
285
|
+
baseUrl?: string;
|
|
286
|
+
responseStyle?: ResponseStyle;
|
|
287
|
+
throwOnError?: boolean;
|
|
288
|
+
}
|
|
289
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
290
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
291
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
292
|
+
type BuildUrlFn = <TData extends {
|
|
293
|
+
body?: unknown;
|
|
294
|
+
path?: Record<string, unknown>;
|
|
295
|
+
query?: Record<string, unknown>;
|
|
296
|
+
url: string;
|
|
297
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
298
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
299
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
300
|
+
};
|
|
301
|
+
interface TDataShape {
|
|
302
|
+
body?: unknown;
|
|
303
|
+
headers?: unknown;
|
|
304
|
+
path?: unknown;
|
|
305
|
+
query?: unknown;
|
|
306
|
+
url: string;
|
|
307
|
+
}
|
|
308
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
309
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'data'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
310
|
+
|
|
311
|
+
type ClientOptions = {
|
|
312
|
+
baseUrl: 'https://reward.services.rehive.io/api/' | (string & {});
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* This serializer can be used if only a `status` is required in the response.
|
|
316
|
+
*/
|
|
317
|
+
type ActionResponse = {
|
|
318
|
+
status?: string;
|
|
319
|
+
};
|
|
320
|
+
type Activate = {
|
|
321
|
+
token: string;
|
|
322
|
+
readonly id: string;
|
|
323
|
+
readonly name: string;
|
|
324
|
+
readonly secret: string;
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* A ModelSerializer that takes additional arguments for
|
|
328
|
+
* "fields", "omit" and "expand" in order to
|
|
329
|
+
* control which fields are displayed, and whether to replace simple
|
|
330
|
+
* values with complex, nested serializations
|
|
331
|
+
*/
|
|
332
|
+
type AdminCampaign = {
|
|
333
|
+
readonly id: string;
|
|
334
|
+
name?: string;
|
|
335
|
+
image?: string | null;
|
|
336
|
+
description?: string;
|
|
337
|
+
start_date: number;
|
|
338
|
+
end_date: number;
|
|
339
|
+
currency: Currency;
|
|
340
|
+
credit_account_name?: string | null;
|
|
341
|
+
credit_account?: string | null;
|
|
342
|
+
account: string;
|
|
343
|
+
readonly total: number;
|
|
344
|
+
readonly fixed_amount: number | null;
|
|
345
|
+
percentage?: string | null;
|
|
346
|
+
readonly balance: number;
|
|
347
|
+
/**
|
|
348
|
+
* * `percentage` - Percentage
|
|
349
|
+
* * `fixed` - Fixed
|
|
350
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
351
|
+
*/
|
|
352
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
353
|
+
/**
|
|
354
|
+
* * `pending` - Pending
|
|
355
|
+
* * `accepted` - Accepted
|
|
356
|
+
* * `rejected` - Rejected
|
|
357
|
+
*/
|
|
358
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
359
|
+
users?: Array<unknown>;
|
|
360
|
+
groups?: Array<unknown>;
|
|
361
|
+
max_per_user?: number | null;
|
|
362
|
+
max_per_user_per_timeframe?: number | null;
|
|
363
|
+
/**
|
|
364
|
+
* * `daily` - Daily
|
|
365
|
+
* * `weekly` - Weekly
|
|
366
|
+
* * `monthly` - Monthly
|
|
367
|
+
*/
|
|
368
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
369
|
+
transactions_currency: Currency;
|
|
370
|
+
min_num_transactions?: number | null;
|
|
371
|
+
readonly min_value_transactions: number | null;
|
|
372
|
+
active?: boolean;
|
|
373
|
+
visible?: boolean;
|
|
374
|
+
claim?: boolean;
|
|
375
|
+
expression?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* * `company.link.create` - company.link.create
|
|
378
|
+
* * `company.link.update` - company.link.update
|
|
379
|
+
* * `company.update` - company.update
|
|
380
|
+
* * `currency.create` - currency.create
|
|
381
|
+
* * `currency.update` - currency.update
|
|
382
|
+
* * `user.create` - user.create
|
|
383
|
+
* * `user.update` - user.update
|
|
384
|
+
* * `user.password.reset` - user.password.reset
|
|
385
|
+
* * `user.password.set` - user.password.set
|
|
386
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
387
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
388
|
+
* * `user.email.verify` - user.email.verify
|
|
389
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
390
|
+
* * `email.create` - email.create
|
|
391
|
+
* * `email.update` - email.update
|
|
392
|
+
* * `mobile.create` - mobile.create
|
|
393
|
+
* * `mobile.update` - mobile.update
|
|
394
|
+
* * `address.create` - address.create
|
|
395
|
+
* * `address.update` - address.update
|
|
396
|
+
* * `document.create` - document.create
|
|
397
|
+
* * `document.update` - document.update
|
|
398
|
+
* * `bank_account.create` - bank_account.create
|
|
399
|
+
* * `bank_account.update` - bank_account.update
|
|
400
|
+
* * `crypto_account.create` - crypto_account.create
|
|
401
|
+
* * `crypto_account.update` - crypto_account.update
|
|
402
|
+
* * `account.create` - account.create
|
|
403
|
+
* * `account.update` - account.update
|
|
404
|
+
* * `transaction.create` - transaction.create
|
|
405
|
+
* * `transaction.update` - transaction.update
|
|
406
|
+
* * `transaction.initiate` - transaction.initiate
|
|
407
|
+
* * `transaction.execute` - transaction.execute
|
|
408
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
409
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
410
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
411
|
+
*/
|
|
412
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
413
|
+
event_user?: string | null;
|
|
414
|
+
event_amount?: string | null;
|
|
415
|
+
};
|
|
416
|
+
type AdminCampaignResponse = {
|
|
417
|
+
status?: string;
|
|
418
|
+
data?: AdminCampaign;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* A ModelSerializer that takes additional arguments for
|
|
422
|
+
* "fields", "omit" and "expand" in order to
|
|
423
|
+
* control which fields are displayed, and whether to replace simple
|
|
424
|
+
* values with complex, nested serializations
|
|
425
|
+
*/
|
|
426
|
+
type AdminCompany = {
|
|
427
|
+
readonly id: string;
|
|
428
|
+
readonly identifier: string;
|
|
429
|
+
readonly secret: string;
|
|
430
|
+
readonly name: string;
|
|
431
|
+
operational_account?: string | null;
|
|
432
|
+
};
|
|
433
|
+
type AdminCompanyResponse = {
|
|
434
|
+
status?: string;
|
|
435
|
+
data?: AdminCompany;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* A ModelSerializer that takes additional arguments for
|
|
439
|
+
* "fields", "omit" and "expand" in order to
|
|
440
|
+
* control which fields are displayed, and whether to replace simple
|
|
441
|
+
* values with complex, nested serializations
|
|
442
|
+
*/
|
|
443
|
+
type AdminCreateReward = {
|
|
444
|
+
readonly id: string;
|
|
445
|
+
user: string;
|
|
446
|
+
campaign?: string;
|
|
447
|
+
currency?: string;
|
|
448
|
+
amount?: number;
|
|
449
|
+
/**
|
|
450
|
+
* * `pending` - Pending
|
|
451
|
+
* * `accepted` - Accepted
|
|
452
|
+
* * `rejected` - Rejected
|
|
453
|
+
*/
|
|
454
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
455
|
+
readonly collection: string | null;
|
|
456
|
+
readonly created: number;
|
|
457
|
+
data?: {
|
|
458
|
+
[key: string]: unknown;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* A ModelSerializer that takes additional arguments for
|
|
463
|
+
* "fields", "omit" and "expand" in order to
|
|
464
|
+
* control which fields are displayed, and whether to replace simple
|
|
465
|
+
* values with complex, nested serializations
|
|
466
|
+
*/
|
|
467
|
+
type AdminCreateUpdateCampaign = {
|
|
468
|
+
readonly id: string;
|
|
469
|
+
name?: string;
|
|
470
|
+
image?: string | null;
|
|
471
|
+
description?: string;
|
|
472
|
+
start_date?: number | null;
|
|
473
|
+
end_date?: number | null;
|
|
474
|
+
currency: string;
|
|
475
|
+
credit_account_name?: string | null;
|
|
476
|
+
credit_account?: string | null;
|
|
477
|
+
account?: string | null;
|
|
478
|
+
total: number;
|
|
479
|
+
fixed_amount?: number;
|
|
480
|
+
percentage?: number | null;
|
|
481
|
+
readonly balance: number;
|
|
482
|
+
/**
|
|
483
|
+
* * `percentage` - Percentage
|
|
484
|
+
* * `fixed` - Fixed
|
|
485
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
486
|
+
*/
|
|
487
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
488
|
+
/**
|
|
489
|
+
* * `pending` - Pending
|
|
490
|
+
* * `accepted` - Accepted
|
|
491
|
+
* * `rejected` - Rejected
|
|
492
|
+
*/
|
|
493
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
494
|
+
users?: Array<unknown>;
|
|
495
|
+
groups?: Array<unknown>;
|
|
496
|
+
max_per_user?: number | null;
|
|
497
|
+
max_per_user_per_timeframe?: number | null;
|
|
498
|
+
/**
|
|
499
|
+
* * `daily` - Daily
|
|
500
|
+
* * `weekly` - Weekly
|
|
501
|
+
* * `monthly` - Monthly
|
|
502
|
+
*/
|
|
503
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
504
|
+
transactions_currency?: string | null;
|
|
505
|
+
min_num_transactions?: number | null;
|
|
506
|
+
min_value_transactions?: number | null;
|
|
507
|
+
active?: boolean;
|
|
508
|
+
visible?: boolean;
|
|
509
|
+
claim?: boolean;
|
|
510
|
+
expression?: string | null;
|
|
511
|
+
/**
|
|
512
|
+
* * `company.link.create` - company.link.create
|
|
513
|
+
* * `company.link.update` - company.link.update
|
|
514
|
+
* * `company.update` - company.update
|
|
515
|
+
* * `currency.create` - currency.create
|
|
516
|
+
* * `currency.update` - currency.update
|
|
517
|
+
* * `user.create` - user.create
|
|
518
|
+
* * `user.update` - user.update
|
|
519
|
+
* * `user.password.reset` - user.password.reset
|
|
520
|
+
* * `user.password.set` - user.password.set
|
|
521
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
522
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
523
|
+
* * `user.email.verify` - user.email.verify
|
|
524
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
525
|
+
* * `email.create` - email.create
|
|
526
|
+
* * `email.update` - email.update
|
|
527
|
+
* * `mobile.create` - mobile.create
|
|
528
|
+
* * `mobile.update` - mobile.update
|
|
529
|
+
* * `address.create` - address.create
|
|
530
|
+
* * `address.update` - address.update
|
|
531
|
+
* * `document.create` - document.create
|
|
532
|
+
* * `document.update` - document.update
|
|
533
|
+
* * `bank_account.create` - bank_account.create
|
|
534
|
+
* * `bank_account.update` - bank_account.update
|
|
535
|
+
* * `crypto_account.create` - crypto_account.create
|
|
536
|
+
* * `crypto_account.update` - crypto_account.update
|
|
537
|
+
* * `account.create` - account.create
|
|
538
|
+
* * `account.update` - account.update
|
|
539
|
+
* * `transaction.create` - transaction.create
|
|
540
|
+
* * `transaction.update` - transaction.update
|
|
541
|
+
* * `transaction.initiate` - transaction.initiate
|
|
542
|
+
* * `transaction.execute` - transaction.execute
|
|
543
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
544
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
545
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
546
|
+
*/
|
|
547
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
548
|
+
event_user?: string | null;
|
|
549
|
+
event_amount?: string | null;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* A ModelSerializer that takes additional arguments for
|
|
553
|
+
* "fields", "omit" and "expand" in order to
|
|
554
|
+
* control which fields are displayed, and whether to replace simple
|
|
555
|
+
* values with complex, nested serializations
|
|
556
|
+
*/
|
|
557
|
+
type AdminReward = {
|
|
558
|
+
readonly id: string;
|
|
559
|
+
readonly user: string;
|
|
560
|
+
campaign: Campaign;
|
|
561
|
+
currency: Currency;
|
|
562
|
+
readonly amount: number;
|
|
563
|
+
/**
|
|
564
|
+
* * `pending` - Pending
|
|
565
|
+
* * `accepted` - Accepted
|
|
566
|
+
* * `rejected` - Rejected
|
|
567
|
+
*/
|
|
568
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
569
|
+
readonly collection: string | null;
|
|
570
|
+
readonly type: string;
|
|
571
|
+
readonly created: number;
|
|
572
|
+
};
|
|
573
|
+
type AdminRewardResponse = {
|
|
574
|
+
status?: string;
|
|
575
|
+
data?: AdminReward;
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* A ModelSerializer that takes additional arguments for
|
|
579
|
+
* "fields", "omit" and "expand" in order to
|
|
580
|
+
* control which fields are displayed, and whether to replace simple
|
|
581
|
+
* values with complex, nested serializations
|
|
582
|
+
*/
|
|
583
|
+
type AdminUser = {
|
|
584
|
+
readonly id: string;
|
|
585
|
+
readonly referral_code: string | null;
|
|
586
|
+
readonly referee_code: string | null;
|
|
587
|
+
};
|
|
588
|
+
type AdminUserResponse = {
|
|
589
|
+
status?: string;
|
|
590
|
+
data?: AdminUser;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* A ModelSerializer that takes additional arguments for
|
|
594
|
+
* "fields", "omit" and "expand" in order to
|
|
595
|
+
* control which fields are displayed, and whether to replace simple
|
|
596
|
+
* values with complex, nested serializations
|
|
597
|
+
*/
|
|
598
|
+
type Campaign = {
|
|
599
|
+
readonly id: string;
|
|
600
|
+
name?: string;
|
|
601
|
+
description?: string;
|
|
602
|
+
active?: boolean;
|
|
603
|
+
default_status: string;
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* A ModelSerializer that takes additional arguments for
|
|
607
|
+
* "fields", "omit" and "expand" in order to
|
|
608
|
+
* control which fields are displayed, and whether to replace simple
|
|
609
|
+
* values with complex, nested serializations
|
|
610
|
+
*/
|
|
611
|
+
type Currency = {
|
|
612
|
+
code: string;
|
|
613
|
+
display_code?: string | null;
|
|
614
|
+
description?: string | null;
|
|
615
|
+
symbol?: string | null;
|
|
616
|
+
unit?: string | null;
|
|
617
|
+
divisibility?: number;
|
|
618
|
+
enabled?: boolean;
|
|
619
|
+
};
|
|
620
|
+
type CurrencyResponse = {
|
|
621
|
+
status?: string;
|
|
622
|
+
data?: Currency;
|
|
623
|
+
};
|
|
624
|
+
type Deactivate = {
|
|
625
|
+
token: string;
|
|
626
|
+
purge?: boolean;
|
|
627
|
+
};
|
|
628
|
+
type PaginatedAdminCampaignList = {
|
|
629
|
+
count?: number;
|
|
630
|
+
next?: string | null;
|
|
631
|
+
previous?: string | null;
|
|
632
|
+
results?: Array<AdminCampaign>;
|
|
633
|
+
};
|
|
634
|
+
type PaginatedAdminCampaignListResponse = {
|
|
635
|
+
status?: string;
|
|
636
|
+
data?: PaginatedAdminCampaignList;
|
|
637
|
+
};
|
|
638
|
+
type PaginatedAdminRewardList = {
|
|
639
|
+
count?: number;
|
|
640
|
+
next?: string | null;
|
|
641
|
+
previous?: string | null;
|
|
642
|
+
results?: Array<AdminReward>;
|
|
643
|
+
};
|
|
644
|
+
type PaginatedAdminRewardListResponse = {
|
|
645
|
+
status?: string;
|
|
646
|
+
data?: PaginatedAdminRewardList;
|
|
647
|
+
};
|
|
648
|
+
type PaginatedAdminUserList = {
|
|
649
|
+
count?: number;
|
|
650
|
+
next?: string | null;
|
|
651
|
+
previous?: string | null;
|
|
652
|
+
results?: Array<AdminUser>;
|
|
653
|
+
};
|
|
654
|
+
type PaginatedAdminUserListResponse = {
|
|
655
|
+
status?: string;
|
|
656
|
+
data?: PaginatedAdminUserList;
|
|
657
|
+
};
|
|
658
|
+
type PaginatedCurrencyList = {
|
|
659
|
+
count?: number;
|
|
660
|
+
next?: string | null;
|
|
661
|
+
previous?: string | null;
|
|
662
|
+
results?: Array<Currency>;
|
|
663
|
+
};
|
|
664
|
+
type PaginatedCurrencyListResponse = {
|
|
665
|
+
status?: string;
|
|
666
|
+
data?: PaginatedCurrencyList;
|
|
667
|
+
};
|
|
668
|
+
type PaginatedUserCampaignList = {
|
|
669
|
+
count?: number;
|
|
670
|
+
next?: string | null;
|
|
671
|
+
previous?: string | null;
|
|
672
|
+
results?: Array<UserCampaign>;
|
|
673
|
+
};
|
|
674
|
+
type PaginatedUserCampaignListResponse = {
|
|
675
|
+
status?: string;
|
|
676
|
+
data?: PaginatedUserCampaignList;
|
|
677
|
+
};
|
|
678
|
+
type PaginatedUserRewardList = {
|
|
679
|
+
count?: number;
|
|
680
|
+
next?: string | null;
|
|
681
|
+
previous?: string | null;
|
|
682
|
+
results?: Array<UserReward>;
|
|
683
|
+
};
|
|
684
|
+
type PaginatedUserRewardListResponse = {
|
|
685
|
+
status?: string;
|
|
686
|
+
data?: PaginatedUserRewardList;
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* A ModelSerializer that takes additional arguments for
|
|
690
|
+
* "fields", "omit" and "expand" in order to
|
|
691
|
+
* control which fields are displayed, and whether to replace simple
|
|
692
|
+
* values with complex, nested serializations
|
|
693
|
+
*/
|
|
694
|
+
type PatchedAdminCompany = {
|
|
695
|
+
readonly id?: string;
|
|
696
|
+
readonly identifier?: string;
|
|
697
|
+
readonly secret?: string;
|
|
698
|
+
readonly name?: string;
|
|
699
|
+
operational_account?: string | null;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* A ModelSerializer that takes additional arguments for
|
|
703
|
+
* "fields", "omit" and "expand" in order to
|
|
704
|
+
* control which fields are displayed, and whether to replace simple
|
|
705
|
+
* values with complex, nested serializations
|
|
706
|
+
*/
|
|
707
|
+
type PatchedAdminCreateUpdateCampaign = {
|
|
708
|
+
readonly id?: string;
|
|
709
|
+
name?: string;
|
|
710
|
+
image?: string | null;
|
|
711
|
+
description?: string;
|
|
712
|
+
start_date?: number | null;
|
|
713
|
+
end_date?: number | null;
|
|
714
|
+
currency?: string;
|
|
715
|
+
credit_account_name?: string | null;
|
|
716
|
+
credit_account?: string | null;
|
|
717
|
+
account?: string | null;
|
|
718
|
+
total?: number;
|
|
719
|
+
fixed_amount?: number;
|
|
720
|
+
percentage?: number | null;
|
|
721
|
+
readonly balance?: number;
|
|
722
|
+
/**
|
|
723
|
+
* * `percentage` - Percentage
|
|
724
|
+
* * `fixed` - Fixed
|
|
725
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
726
|
+
*/
|
|
727
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
728
|
+
/**
|
|
729
|
+
* * `pending` - Pending
|
|
730
|
+
* * `accepted` - Accepted
|
|
731
|
+
* * `rejected` - Rejected
|
|
732
|
+
*/
|
|
733
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
734
|
+
users?: Array<unknown>;
|
|
735
|
+
groups?: Array<unknown>;
|
|
736
|
+
max_per_user?: number | null;
|
|
737
|
+
max_per_user_per_timeframe?: number | null;
|
|
738
|
+
/**
|
|
739
|
+
* * `daily` - Daily
|
|
740
|
+
* * `weekly` - Weekly
|
|
741
|
+
* * `monthly` - Monthly
|
|
742
|
+
*/
|
|
743
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
744
|
+
transactions_currency?: string | null;
|
|
745
|
+
min_num_transactions?: number | null;
|
|
746
|
+
min_value_transactions?: number | null;
|
|
747
|
+
active?: boolean;
|
|
748
|
+
visible?: boolean;
|
|
749
|
+
claim?: boolean;
|
|
750
|
+
expression?: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* * `company.link.create` - company.link.create
|
|
753
|
+
* * `company.link.update` - company.link.update
|
|
754
|
+
* * `company.update` - company.update
|
|
755
|
+
* * `currency.create` - currency.create
|
|
756
|
+
* * `currency.update` - currency.update
|
|
757
|
+
* * `user.create` - user.create
|
|
758
|
+
* * `user.update` - user.update
|
|
759
|
+
* * `user.password.reset` - user.password.reset
|
|
760
|
+
* * `user.password.set` - user.password.set
|
|
761
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
762
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
763
|
+
* * `user.email.verify` - user.email.verify
|
|
764
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
765
|
+
* * `email.create` - email.create
|
|
766
|
+
* * `email.update` - email.update
|
|
767
|
+
* * `mobile.create` - mobile.create
|
|
768
|
+
* * `mobile.update` - mobile.update
|
|
769
|
+
* * `address.create` - address.create
|
|
770
|
+
* * `address.update` - address.update
|
|
771
|
+
* * `document.create` - document.create
|
|
772
|
+
* * `document.update` - document.update
|
|
773
|
+
* * `bank_account.create` - bank_account.create
|
|
774
|
+
* * `bank_account.update` - bank_account.update
|
|
775
|
+
* * `crypto_account.create` - crypto_account.create
|
|
776
|
+
* * `crypto_account.update` - crypto_account.update
|
|
777
|
+
* * `account.create` - account.create
|
|
778
|
+
* * `account.update` - account.update
|
|
779
|
+
* * `transaction.create` - transaction.create
|
|
780
|
+
* * `transaction.update` - transaction.update
|
|
781
|
+
* * `transaction.initiate` - transaction.initiate
|
|
782
|
+
* * `transaction.execute` - transaction.execute
|
|
783
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
784
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
785
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
786
|
+
*/
|
|
787
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
788
|
+
event_user?: string | null;
|
|
789
|
+
event_amount?: string | null;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* A ModelSerializer that takes additional arguments for
|
|
793
|
+
* "fields", "omit" and "expand" in order to
|
|
794
|
+
* control which fields are displayed, and whether to replace simple
|
|
795
|
+
* values with complex, nested serializations
|
|
796
|
+
*/
|
|
797
|
+
type PatchedAdminReward = {
|
|
798
|
+
readonly id?: string;
|
|
799
|
+
readonly user?: string;
|
|
800
|
+
campaign?: Campaign;
|
|
801
|
+
currency?: Currency;
|
|
802
|
+
readonly amount?: number;
|
|
803
|
+
/**
|
|
804
|
+
* * `pending` - Pending
|
|
805
|
+
* * `accepted` - Accepted
|
|
806
|
+
* * `rejected` - Rejected
|
|
807
|
+
*/
|
|
808
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
809
|
+
readonly collection?: string | null;
|
|
810
|
+
readonly type?: string;
|
|
811
|
+
readonly created?: number;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* A ModelSerializer that takes additional arguments for
|
|
815
|
+
* "fields", "omit" and "expand" in order to
|
|
816
|
+
* control which fields are displayed, and whether to replace simple
|
|
817
|
+
* values with complex, nested serializations
|
|
818
|
+
*/
|
|
819
|
+
type PatchedUserUpdateReferral = {
|
|
820
|
+
readonly referral_code?: string | null;
|
|
821
|
+
referee_code?: string;
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* A ModelSerializer that takes additional arguments for
|
|
825
|
+
* "fields", "omit" and "expand" in order to
|
|
826
|
+
* control which fields are displayed, and whether to replace simple
|
|
827
|
+
* values with complex, nested serializations
|
|
828
|
+
*/
|
|
829
|
+
type User = {
|
|
830
|
+
readonly id: string;
|
|
831
|
+
readonly referral_code: string | null;
|
|
832
|
+
readonly referee_code: string | null;
|
|
833
|
+
};
|
|
834
|
+
/**
|
|
835
|
+
* A ModelSerializer that takes additional arguments for
|
|
836
|
+
* "fields", "omit" and "expand" in order to
|
|
837
|
+
* control which fields are displayed, and whether to replace simple
|
|
838
|
+
* values with complex, nested serializations
|
|
839
|
+
*/
|
|
840
|
+
type UserCampaign = {
|
|
841
|
+
readonly id: string;
|
|
842
|
+
name?: string;
|
|
843
|
+
readonly description: string;
|
|
844
|
+
image?: string | null;
|
|
845
|
+
start_date: number;
|
|
846
|
+
end_date: number;
|
|
847
|
+
currency: Currency;
|
|
848
|
+
readonly total: number;
|
|
849
|
+
readonly fixed_amount: number;
|
|
850
|
+
percentage?: string | null;
|
|
851
|
+
readonly balance: number;
|
|
852
|
+
type: string;
|
|
853
|
+
default_status: string;
|
|
854
|
+
users?: Array<unknown>;
|
|
855
|
+
groups?: Array<unknown>;
|
|
856
|
+
max_per_user?: number | null;
|
|
857
|
+
max_per_user_per_timeframe?: number | null;
|
|
858
|
+
timeframe?: string;
|
|
859
|
+
transactions_currency: Currency;
|
|
860
|
+
min_num_transactions?: number | null;
|
|
861
|
+
readonly min_value_transactions: number | null;
|
|
862
|
+
active?: boolean;
|
|
863
|
+
claim?: boolean;
|
|
864
|
+
};
|
|
865
|
+
type UserCampaignResponse = {
|
|
866
|
+
status?: string;
|
|
867
|
+
data?: UserCampaign;
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* A ModelSerializer that takes additional arguments for
|
|
871
|
+
* "fields", "omit" and "expand" in order to
|
|
872
|
+
* control which fields are displayed, and whether to replace simple
|
|
873
|
+
* values with complex, nested serializations
|
|
874
|
+
*/
|
|
875
|
+
type UserCreateReward = {
|
|
876
|
+
readonly id: string;
|
|
877
|
+
readonly user: string;
|
|
878
|
+
campaign: string;
|
|
879
|
+
currency: Currency;
|
|
880
|
+
readonly amount: number;
|
|
881
|
+
readonly status: string;
|
|
882
|
+
readonly collection: string | null;
|
|
883
|
+
readonly created: number;
|
|
884
|
+
};
|
|
885
|
+
type UserResponse = {
|
|
886
|
+
status?: string;
|
|
887
|
+
data?: User;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* A ModelSerializer that takes additional arguments for
|
|
891
|
+
* "fields", "omit" and "expand" in order to
|
|
892
|
+
* control which fields are displayed, and whether to replace simple
|
|
893
|
+
* values with complex, nested serializations
|
|
894
|
+
*/
|
|
895
|
+
type UserReward = {
|
|
896
|
+
readonly id: string;
|
|
897
|
+
readonly user: string;
|
|
898
|
+
campaign: Campaign;
|
|
899
|
+
currency: Currency;
|
|
900
|
+
readonly amount: number;
|
|
901
|
+
readonly status: string;
|
|
902
|
+
readonly type: string;
|
|
903
|
+
collection?: string | null;
|
|
904
|
+
readonly created: number;
|
|
905
|
+
};
|
|
906
|
+
type UserRewardResponse = {
|
|
907
|
+
status?: string;
|
|
908
|
+
data?: UserReward;
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* A ModelSerializer that takes additional arguments for
|
|
912
|
+
* "fields", "omit" and "expand" in order to
|
|
913
|
+
* control which fields are displayed, and whether to replace simple
|
|
914
|
+
* values with complex, nested serializations
|
|
915
|
+
*/
|
|
916
|
+
type UserUpdateReferral = {
|
|
917
|
+
readonly referral_code: string | null;
|
|
918
|
+
referee_code: string;
|
|
919
|
+
};
|
|
920
|
+
type Webhook = {
|
|
921
|
+
id: string;
|
|
922
|
+
/**
|
|
923
|
+
* * `company.link.create` - company.link.create
|
|
924
|
+
* * `company.link.update` - company.link.update
|
|
925
|
+
* * `company.update` - company.update
|
|
926
|
+
* * `currency.create` - currency.create
|
|
927
|
+
* * `currency.update` - currency.update
|
|
928
|
+
* * `user.create` - user.create
|
|
929
|
+
* * `user.update` - user.update
|
|
930
|
+
* * `user.password.reset` - user.password.reset
|
|
931
|
+
* * `user.password.set` - user.password.set
|
|
932
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
933
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
934
|
+
* * `user.email.verify` - user.email.verify
|
|
935
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
936
|
+
* * `email.create` - email.create
|
|
937
|
+
* * `email.update` - email.update
|
|
938
|
+
* * `mobile.create` - mobile.create
|
|
939
|
+
* * `mobile.update` - mobile.update
|
|
940
|
+
* * `address.create` - address.create
|
|
941
|
+
* * `address.update` - address.update
|
|
942
|
+
* * `document.create` - document.create
|
|
943
|
+
* * `document.update` - document.update
|
|
944
|
+
* * `bank_account.create` - bank_account.create
|
|
945
|
+
* * `bank_account.update` - bank_account.update
|
|
946
|
+
* * `crypto_account.create` - crypto_account.create
|
|
947
|
+
* * `crypto_account.update` - crypto_account.update
|
|
948
|
+
* * `account.create` - account.create
|
|
949
|
+
* * `account.update` - account.update
|
|
950
|
+
* * `transaction.create` - transaction.create
|
|
951
|
+
* * `transaction.update` - transaction.update
|
|
952
|
+
* * `transaction.initiate` - transaction.initiate
|
|
953
|
+
* * `transaction.execute` - transaction.execute
|
|
954
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
955
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
956
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
957
|
+
*/
|
|
958
|
+
event: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify';
|
|
959
|
+
company: string;
|
|
960
|
+
data: {
|
|
961
|
+
[key: string]: unknown;
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* A ModelSerializer that takes additional arguments for
|
|
966
|
+
* "fields", "omit" and "expand" in order to
|
|
967
|
+
* control which fields are displayed, and whether to replace simple
|
|
968
|
+
* values with complex, nested serializations
|
|
969
|
+
*/
|
|
970
|
+
type AdminCampaignWritable = {
|
|
971
|
+
name?: string;
|
|
972
|
+
image?: string | null;
|
|
973
|
+
description?: string;
|
|
974
|
+
start_date: number;
|
|
975
|
+
end_date: number;
|
|
976
|
+
currency: Currency;
|
|
977
|
+
credit_account_name?: string | null;
|
|
978
|
+
credit_account?: string | null;
|
|
979
|
+
account: string;
|
|
980
|
+
percentage?: string | null;
|
|
981
|
+
/**
|
|
982
|
+
* * `percentage` - Percentage
|
|
983
|
+
* * `fixed` - Fixed
|
|
984
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
985
|
+
*/
|
|
986
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
987
|
+
/**
|
|
988
|
+
* * `pending` - Pending
|
|
989
|
+
* * `accepted` - Accepted
|
|
990
|
+
* * `rejected` - Rejected
|
|
991
|
+
*/
|
|
992
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
993
|
+
users?: Array<unknown>;
|
|
994
|
+
groups?: Array<unknown>;
|
|
995
|
+
max_per_user?: number | null;
|
|
996
|
+
max_per_user_per_timeframe?: number | null;
|
|
997
|
+
/**
|
|
998
|
+
* * `daily` - Daily
|
|
999
|
+
* * `weekly` - Weekly
|
|
1000
|
+
* * `monthly` - Monthly
|
|
1001
|
+
*/
|
|
1002
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
1003
|
+
transactions_currency: Currency;
|
|
1004
|
+
min_num_transactions?: number | null;
|
|
1005
|
+
active?: boolean;
|
|
1006
|
+
visible?: boolean;
|
|
1007
|
+
claim?: boolean;
|
|
1008
|
+
expression?: string | null;
|
|
1009
|
+
/**
|
|
1010
|
+
* * `company.link.create` - company.link.create
|
|
1011
|
+
* * `company.link.update` - company.link.update
|
|
1012
|
+
* * `company.update` - company.update
|
|
1013
|
+
* * `currency.create` - currency.create
|
|
1014
|
+
* * `currency.update` - currency.update
|
|
1015
|
+
* * `user.create` - user.create
|
|
1016
|
+
* * `user.update` - user.update
|
|
1017
|
+
* * `user.password.reset` - user.password.reset
|
|
1018
|
+
* * `user.password.set` - user.password.set
|
|
1019
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
1020
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
1021
|
+
* * `user.email.verify` - user.email.verify
|
|
1022
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
1023
|
+
* * `email.create` - email.create
|
|
1024
|
+
* * `email.update` - email.update
|
|
1025
|
+
* * `mobile.create` - mobile.create
|
|
1026
|
+
* * `mobile.update` - mobile.update
|
|
1027
|
+
* * `address.create` - address.create
|
|
1028
|
+
* * `address.update` - address.update
|
|
1029
|
+
* * `document.create` - document.create
|
|
1030
|
+
* * `document.update` - document.update
|
|
1031
|
+
* * `bank_account.create` - bank_account.create
|
|
1032
|
+
* * `bank_account.update` - bank_account.update
|
|
1033
|
+
* * `crypto_account.create` - crypto_account.create
|
|
1034
|
+
* * `crypto_account.update` - crypto_account.update
|
|
1035
|
+
* * `account.create` - account.create
|
|
1036
|
+
* * `account.update` - account.update
|
|
1037
|
+
* * `transaction.create` - transaction.create
|
|
1038
|
+
* * `transaction.update` - transaction.update
|
|
1039
|
+
* * `transaction.initiate` - transaction.initiate
|
|
1040
|
+
* * `transaction.execute` - transaction.execute
|
|
1041
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
1042
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
1043
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
1044
|
+
*/
|
|
1045
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
1046
|
+
event_user?: string | null;
|
|
1047
|
+
event_amount?: string | null;
|
|
1048
|
+
};
|
|
1049
|
+
type AdminCampaignResponseWritable = {
|
|
1050
|
+
status?: string;
|
|
1051
|
+
data?: AdminCampaignWritable;
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* A ModelSerializer that takes additional arguments for
|
|
1055
|
+
* "fields", "omit" and "expand" in order to
|
|
1056
|
+
* control which fields are displayed, and whether to replace simple
|
|
1057
|
+
* values with complex, nested serializations
|
|
1058
|
+
*/
|
|
1059
|
+
type AdminCompanyWritable = {
|
|
1060
|
+
operational_account?: string | null;
|
|
1061
|
+
};
|
|
1062
|
+
type AdminCompanyResponseWritable = {
|
|
1063
|
+
status?: string;
|
|
1064
|
+
data?: AdminCompanyWritable;
|
|
1065
|
+
};
|
|
1066
|
+
/**
|
|
1067
|
+
* A ModelSerializer that takes additional arguments for
|
|
1068
|
+
* "fields", "omit" and "expand" in order to
|
|
1069
|
+
* control which fields are displayed, and whether to replace simple
|
|
1070
|
+
* values with complex, nested serializations
|
|
1071
|
+
*/
|
|
1072
|
+
type AdminCreateRewardWritable = {
|
|
1073
|
+
user: string;
|
|
1074
|
+
campaign?: string;
|
|
1075
|
+
currency?: string;
|
|
1076
|
+
amount?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* * `pending` - Pending
|
|
1079
|
+
* * `accepted` - Accepted
|
|
1080
|
+
* * `rejected` - Rejected
|
|
1081
|
+
*/
|
|
1082
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
1083
|
+
data?: {
|
|
1084
|
+
[key: string]: unknown;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
/**
|
|
1088
|
+
* A ModelSerializer that takes additional arguments for
|
|
1089
|
+
* "fields", "omit" and "expand" in order to
|
|
1090
|
+
* control which fields are displayed, and whether to replace simple
|
|
1091
|
+
* values with complex, nested serializations
|
|
1092
|
+
*/
|
|
1093
|
+
type AdminCreateUpdateCampaignWritable = {
|
|
1094
|
+
name?: string;
|
|
1095
|
+
image?: string | null;
|
|
1096
|
+
description?: string;
|
|
1097
|
+
start_date?: number | null;
|
|
1098
|
+
end_date?: number | null;
|
|
1099
|
+
currency: string;
|
|
1100
|
+
credit_account_name?: string | null;
|
|
1101
|
+
credit_account?: string | null;
|
|
1102
|
+
account?: string | null;
|
|
1103
|
+
total: number;
|
|
1104
|
+
fixed_amount?: number;
|
|
1105
|
+
percentage?: number | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* * `percentage` - Percentage
|
|
1108
|
+
* * `fixed` - Fixed
|
|
1109
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
1110
|
+
*/
|
|
1111
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
1112
|
+
/**
|
|
1113
|
+
* * `pending` - Pending
|
|
1114
|
+
* * `accepted` - Accepted
|
|
1115
|
+
* * `rejected` - Rejected
|
|
1116
|
+
*/
|
|
1117
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
1118
|
+
users?: Array<unknown>;
|
|
1119
|
+
groups?: Array<unknown>;
|
|
1120
|
+
max_per_user?: number | null;
|
|
1121
|
+
max_per_user_per_timeframe?: number | null;
|
|
1122
|
+
/**
|
|
1123
|
+
* * `daily` - Daily
|
|
1124
|
+
* * `weekly` - Weekly
|
|
1125
|
+
* * `monthly` - Monthly
|
|
1126
|
+
*/
|
|
1127
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
1128
|
+
transactions_currency?: string | null;
|
|
1129
|
+
min_num_transactions?: number | null;
|
|
1130
|
+
min_value_transactions?: number | null;
|
|
1131
|
+
active?: boolean;
|
|
1132
|
+
visible?: boolean;
|
|
1133
|
+
claim?: boolean;
|
|
1134
|
+
expression?: string | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* * `company.link.create` - company.link.create
|
|
1137
|
+
* * `company.link.update` - company.link.update
|
|
1138
|
+
* * `company.update` - company.update
|
|
1139
|
+
* * `currency.create` - currency.create
|
|
1140
|
+
* * `currency.update` - currency.update
|
|
1141
|
+
* * `user.create` - user.create
|
|
1142
|
+
* * `user.update` - user.update
|
|
1143
|
+
* * `user.password.reset` - user.password.reset
|
|
1144
|
+
* * `user.password.set` - user.password.set
|
|
1145
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
1146
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
1147
|
+
* * `user.email.verify` - user.email.verify
|
|
1148
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
1149
|
+
* * `email.create` - email.create
|
|
1150
|
+
* * `email.update` - email.update
|
|
1151
|
+
* * `mobile.create` - mobile.create
|
|
1152
|
+
* * `mobile.update` - mobile.update
|
|
1153
|
+
* * `address.create` - address.create
|
|
1154
|
+
* * `address.update` - address.update
|
|
1155
|
+
* * `document.create` - document.create
|
|
1156
|
+
* * `document.update` - document.update
|
|
1157
|
+
* * `bank_account.create` - bank_account.create
|
|
1158
|
+
* * `bank_account.update` - bank_account.update
|
|
1159
|
+
* * `crypto_account.create` - crypto_account.create
|
|
1160
|
+
* * `crypto_account.update` - crypto_account.update
|
|
1161
|
+
* * `account.create` - account.create
|
|
1162
|
+
* * `account.update` - account.update
|
|
1163
|
+
* * `transaction.create` - transaction.create
|
|
1164
|
+
* * `transaction.update` - transaction.update
|
|
1165
|
+
* * `transaction.initiate` - transaction.initiate
|
|
1166
|
+
* * `transaction.execute` - transaction.execute
|
|
1167
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
1168
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
1169
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
1170
|
+
*/
|
|
1171
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
1172
|
+
event_user?: string | null;
|
|
1173
|
+
event_amount?: string | null;
|
|
1174
|
+
};
|
|
1175
|
+
/**
|
|
1176
|
+
* A ModelSerializer that takes additional arguments for
|
|
1177
|
+
* "fields", "omit" and "expand" in order to
|
|
1178
|
+
* control which fields are displayed, and whether to replace simple
|
|
1179
|
+
* values with complex, nested serializations
|
|
1180
|
+
*/
|
|
1181
|
+
type AdminRewardWritable = {
|
|
1182
|
+
/**
|
|
1183
|
+
* * `pending` - Pending
|
|
1184
|
+
* * `accepted` - Accepted
|
|
1185
|
+
* * `rejected` - Rejected
|
|
1186
|
+
*/
|
|
1187
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
1188
|
+
};
|
|
1189
|
+
type AdminRewardResponseWritable = {
|
|
1190
|
+
status?: string;
|
|
1191
|
+
data?: AdminRewardWritable;
|
|
1192
|
+
};
|
|
1193
|
+
type AdminUserResponseWritable = {
|
|
1194
|
+
status?: string;
|
|
1195
|
+
};
|
|
1196
|
+
/**
|
|
1197
|
+
* A ModelSerializer that takes additional arguments for
|
|
1198
|
+
* "fields", "omit" and "expand" in order to
|
|
1199
|
+
* control which fields are displayed, and whether to replace simple
|
|
1200
|
+
* values with complex, nested serializations
|
|
1201
|
+
*/
|
|
1202
|
+
type CampaignWritable = {
|
|
1203
|
+
name?: string;
|
|
1204
|
+
description?: string;
|
|
1205
|
+
active?: boolean;
|
|
1206
|
+
default_status: string;
|
|
1207
|
+
};
|
|
1208
|
+
type PaginatedAdminCampaignListWritable = {
|
|
1209
|
+
count?: number;
|
|
1210
|
+
next?: string | null;
|
|
1211
|
+
previous?: string | null;
|
|
1212
|
+
results?: Array<AdminCampaignWritable>;
|
|
1213
|
+
};
|
|
1214
|
+
type PaginatedAdminCampaignListResponseWritable = {
|
|
1215
|
+
status?: string;
|
|
1216
|
+
data?: PaginatedAdminCampaignListWritable;
|
|
1217
|
+
};
|
|
1218
|
+
type PaginatedAdminRewardListWritable = {
|
|
1219
|
+
count?: number;
|
|
1220
|
+
next?: string | null;
|
|
1221
|
+
previous?: string | null;
|
|
1222
|
+
results?: Array<AdminRewardWritable>;
|
|
1223
|
+
};
|
|
1224
|
+
type PaginatedAdminRewardListResponseWritable = {
|
|
1225
|
+
status?: string;
|
|
1226
|
+
data?: PaginatedAdminRewardListWritable;
|
|
1227
|
+
};
|
|
1228
|
+
type PaginatedAdminUserListWritable = {
|
|
1229
|
+
count?: number;
|
|
1230
|
+
next?: string | null;
|
|
1231
|
+
previous?: string | null;
|
|
1232
|
+
results?: Array<unknown>;
|
|
1233
|
+
};
|
|
1234
|
+
type PaginatedAdminUserListResponseWritable = {
|
|
1235
|
+
status?: string;
|
|
1236
|
+
data?: PaginatedAdminUserListWritable;
|
|
1237
|
+
};
|
|
1238
|
+
type PaginatedUserCampaignListWritable = {
|
|
1239
|
+
count?: number;
|
|
1240
|
+
next?: string | null;
|
|
1241
|
+
previous?: string | null;
|
|
1242
|
+
results?: Array<UserCampaignWritable>;
|
|
1243
|
+
};
|
|
1244
|
+
type PaginatedUserCampaignListResponseWritable = {
|
|
1245
|
+
status?: string;
|
|
1246
|
+
data?: PaginatedUserCampaignListWritable;
|
|
1247
|
+
};
|
|
1248
|
+
type PaginatedUserRewardListWritable = {
|
|
1249
|
+
count?: number;
|
|
1250
|
+
next?: string | null;
|
|
1251
|
+
previous?: string | null;
|
|
1252
|
+
results?: Array<UserRewardWritable>;
|
|
1253
|
+
};
|
|
1254
|
+
type PaginatedUserRewardListResponseWritable = {
|
|
1255
|
+
status?: string;
|
|
1256
|
+
data?: PaginatedUserRewardListWritable;
|
|
1257
|
+
};
|
|
1258
|
+
/**
|
|
1259
|
+
* A ModelSerializer that takes additional arguments for
|
|
1260
|
+
* "fields", "omit" and "expand" in order to
|
|
1261
|
+
* control which fields are displayed, and whether to replace simple
|
|
1262
|
+
* values with complex, nested serializations
|
|
1263
|
+
*/
|
|
1264
|
+
type PatchedAdminCompanyWritable = {
|
|
1265
|
+
operational_account?: string | null;
|
|
1266
|
+
};
|
|
1267
|
+
/**
|
|
1268
|
+
* A ModelSerializer that takes additional arguments for
|
|
1269
|
+
* "fields", "omit" and "expand" in order to
|
|
1270
|
+
* control which fields are displayed, and whether to replace simple
|
|
1271
|
+
* values with complex, nested serializations
|
|
1272
|
+
*/
|
|
1273
|
+
type PatchedAdminCreateUpdateCampaignWritable = {
|
|
1274
|
+
name?: string;
|
|
1275
|
+
image?: string | null;
|
|
1276
|
+
description?: string;
|
|
1277
|
+
start_date?: number | null;
|
|
1278
|
+
end_date?: number | null;
|
|
1279
|
+
currency?: string;
|
|
1280
|
+
credit_account_name?: string | null;
|
|
1281
|
+
credit_account?: string | null;
|
|
1282
|
+
account?: string | null;
|
|
1283
|
+
total?: number;
|
|
1284
|
+
fixed_amount?: number;
|
|
1285
|
+
percentage?: number | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* * `percentage` - Percentage
|
|
1288
|
+
* * `fixed` - Fixed
|
|
1289
|
+
* * `fixedpercentage` - Fixedpercentage
|
|
1290
|
+
*/
|
|
1291
|
+
type?: 'percentage' | 'fixed' | 'fixedpercentage';
|
|
1292
|
+
/**
|
|
1293
|
+
* * `pending` - Pending
|
|
1294
|
+
* * `accepted` - Accepted
|
|
1295
|
+
* * `rejected` - Rejected
|
|
1296
|
+
*/
|
|
1297
|
+
default_status?: 'pending' | 'accepted' | 'rejected';
|
|
1298
|
+
users?: Array<unknown>;
|
|
1299
|
+
groups?: Array<unknown>;
|
|
1300
|
+
max_per_user?: number | null;
|
|
1301
|
+
max_per_user_per_timeframe?: number | null;
|
|
1302
|
+
/**
|
|
1303
|
+
* * `daily` - Daily
|
|
1304
|
+
* * `weekly` - Weekly
|
|
1305
|
+
* * `monthly` - Monthly
|
|
1306
|
+
*/
|
|
1307
|
+
timeframe?: 'daily' | 'weekly' | 'monthly' | '' | null;
|
|
1308
|
+
transactions_currency?: string | null;
|
|
1309
|
+
min_num_transactions?: number | null;
|
|
1310
|
+
min_value_transactions?: number | null;
|
|
1311
|
+
active?: boolean;
|
|
1312
|
+
visible?: boolean;
|
|
1313
|
+
claim?: boolean;
|
|
1314
|
+
expression?: string | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* * `company.link.create` - company.link.create
|
|
1317
|
+
* * `company.link.update` - company.link.update
|
|
1318
|
+
* * `company.update` - company.update
|
|
1319
|
+
* * `currency.create` - currency.create
|
|
1320
|
+
* * `currency.update` - currency.update
|
|
1321
|
+
* * `user.create` - user.create
|
|
1322
|
+
* * `user.update` - user.update
|
|
1323
|
+
* * `user.password.reset` - user.password.reset
|
|
1324
|
+
* * `user.password.set` - user.password.set
|
|
1325
|
+
* * `user.deactivate.verify` - user.deactivate.verify
|
|
1326
|
+
* * `user.request_delete.verify` - user.request_delete.verify
|
|
1327
|
+
* * `user.email.verify` - user.email.verify
|
|
1328
|
+
* * `user.mobile.verify` - user.mobile.verify
|
|
1329
|
+
* * `email.create` - email.create
|
|
1330
|
+
* * `email.update` - email.update
|
|
1331
|
+
* * `mobile.create` - mobile.create
|
|
1332
|
+
* * `mobile.update` - mobile.update
|
|
1333
|
+
* * `address.create` - address.create
|
|
1334
|
+
* * `address.update` - address.update
|
|
1335
|
+
* * `document.create` - document.create
|
|
1336
|
+
* * `document.update` - document.update
|
|
1337
|
+
* * `bank_account.create` - bank_account.create
|
|
1338
|
+
* * `bank_account.update` - bank_account.update
|
|
1339
|
+
* * `crypto_account.create` - crypto_account.create
|
|
1340
|
+
* * `crypto_account.update` - crypto_account.update
|
|
1341
|
+
* * `account.create` - account.create
|
|
1342
|
+
* * `account.update` - account.update
|
|
1343
|
+
* * `transaction.create` - transaction.create
|
|
1344
|
+
* * `transaction.update` - transaction.update
|
|
1345
|
+
* * `transaction.initiate` - transaction.initiate
|
|
1346
|
+
* * `transaction.execute` - transaction.execute
|
|
1347
|
+
* * `transaction.transition.create` - transaction.transition.create
|
|
1348
|
+
* * `transaction.transition.update` - transaction.transition.update
|
|
1349
|
+
* * `mfa.sms.verify` - mfa.sms.verify
|
|
1350
|
+
*/
|
|
1351
|
+
event?: 'company.link.create' | 'company.link.update' | 'company.update' | 'currency.create' | 'currency.update' | 'user.create' | 'user.update' | 'user.password.reset' | 'user.password.set' | 'user.deactivate.verify' | 'user.request_delete.verify' | 'user.email.verify' | 'user.mobile.verify' | 'email.create' | 'email.update' | 'mobile.create' | 'mobile.update' | 'address.create' | 'address.update' | 'document.create' | 'document.update' | 'bank_account.create' | 'bank_account.update' | 'crypto_account.create' | 'crypto_account.update' | 'account.create' | 'account.update' | 'transaction.create' | 'transaction.update' | 'transaction.initiate' | 'transaction.execute' | 'transaction.transition.create' | 'transaction.transition.update' | 'mfa.sms.verify' | '' | null;
|
|
1352
|
+
event_user?: string | null;
|
|
1353
|
+
event_amount?: string | null;
|
|
1354
|
+
};
|
|
1355
|
+
/**
|
|
1356
|
+
* A ModelSerializer that takes additional arguments for
|
|
1357
|
+
* "fields", "omit" and "expand" in order to
|
|
1358
|
+
* control which fields are displayed, and whether to replace simple
|
|
1359
|
+
* values with complex, nested serializations
|
|
1360
|
+
*/
|
|
1361
|
+
type PatchedAdminRewardWritable = {
|
|
1362
|
+
/**
|
|
1363
|
+
* * `pending` - Pending
|
|
1364
|
+
* * `accepted` - Accepted
|
|
1365
|
+
* * `rejected` - Rejected
|
|
1366
|
+
*/
|
|
1367
|
+
status?: 'pending' | 'accepted' | 'rejected';
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* A ModelSerializer that takes additional arguments for
|
|
1371
|
+
* "fields", "omit" and "expand" in order to
|
|
1372
|
+
* control which fields are displayed, and whether to replace simple
|
|
1373
|
+
* values with complex, nested serializations
|
|
1374
|
+
*/
|
|
1375
|
+
type PatchedUserUpdateReferralWritable = {
|
|
1376
|
+
referee_code?: string;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* A ModelSerializer that takes additional arguments for
|
|
1380
|
+
* "fields", "omit" and "expand" in order to
|
|
1381
|
+
* control which fields are displayed, and whether to replace simple
|
|
1382
|
+
* values with complex, nested serializations
|
|
1383
|
+
*/
|
|
1384
|
+
type UserCampaignWritable = {
|
|
1385
|
+
name?: string;
|
|
1386
|
+
image?: string | null;
|
|
1387
|
+
start_date: number;
|
|
1388
|
+
end_date: number;
|
|
1389
|
+
currency: Currency;
|
|
1390
|
+
percentage?: string | null;
|
|
1391
|
+
type: string;
|
|
1392
|
+
default_status: string;
|
|
1393
|
+
users?: Array<unknown>;
|
|
1394
|
+
groups?: Array<unknown>;
|
|
1395
|
+
max_per_user?: number | null;
|
|
1396
|
+
max_per_user_per_timeframe?: number | null;
|
|
1397
|
+
timeframe?: string;
|
|
1398
|
+
transactions_currency: Currency;
|
|
1399
|
+
min_num_transactions?: number | null;
|
|
1400
|
+
active?: boolean;
|
|
1401
|
+
claim?: boolean;
|
|
1402
|
+
};
|
|
1403
|
+
type UserCampaignResponseWritable = {
|
|
1404
|
+
status?: string;
|
|
1405
|
+
data?: UserCampaignWritable;
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* A ModelSerializer that takes additional arguments for
|
|
1409
|
+
* "fields", "omit" and "expand" in order to
|
|
1410
|
+
* control which fields are displayed, and whether to replace simple
|
|
1411
|
+
* values with complex, nested serializations
|
|
1412
|
+
*/
|
|
1413
|
+
type UserCreateRewardWritable = {
|
|
1414
|
+
campaign: string;
|
|
1415
|
+
data?: {
|
|
1416
|
+
[key: string]: unknown;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
type UserResponseWritable = {
|
|
1420
|
+
status?: string;
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* A ModelSerializer that takes additional arguments for
|
|
1424
|
+
* "fields", "omit" and "expand" in order to
|
|
1425
|
+
* control which fields are displayed, and whether to replace simple
|
|
1426
|
+
* values with complex, nested serializations
|
|
1427
|
+
*/
|
|
1428
|
+
type UserRewardWritable = {
|
|
1429
|
+
collection?: string | null;
|
|
1430
|
+
};
|
|
1431
|
+
type UserRewardResponseWritable = {
|
|
1432
|
+
status?: string;
|
|
1433
|
+
data?: UserRewardWritable;
|
|
1434
|
+
};
|
|
1435
|
+
/**
|
|
1436
|
+
* A ModelSerializer that takes additional arguments for
|
|
1437
|
+
* "fields", "omit" and "expand" in order to
|
|
1438
|
+
* control which fields are displayed, and whether to replace simple
|
|
1439
|
+
* values with complex, nested serializations
|
|
1440
|
+
*/
|
|
1441
|
+
type UserUpdateReferralWritable = {
|
|
1442
|
+
referee_code: string;
|
|
1443
|
+
};
|
|
1444
|
+
type ActivateCreateData = {
|
|
1445
|
+
body: Activate;
|
|
1446
|
+
path?: never;
|
|
1447
|
+
query?: never;
|
|
1448
|
+
url: '/activate/';
|
|
1449
|
+
};
|
|
1450
|
+
type ActivateCreateResponses = {
|
|
1451
|
+
200: ActionResponse;
|
|
1452
|
+
};
|
|
1453
|
+
type ActivateCreateResponse = ActivateCreateResponses[keyof ActivateCreateResponses];
|
|
1454
|
+
type AdminCampaignsListData = {
|
|
1455
|
+
body?: never;
|
|
1456
|
+
path?: never;
|
|
1457
|
+
query?: {
|
|
1458
|
+
active?: boolean;
|
|
1459
|
+
available?: string;
|
|
1460
|
+
currency?: string;
|
|
1461
|
+
end_date?: string;
|
|
1462
|
+
end_date__gt?: string;
|
|
1463
|
+
end_date__lt?: string;
|
|
1464
|
+
id?: string;
|
|
1465
|
+
name__contains?: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* A page number within the paginated result set.
|
|
1468
|
+
*/
|
|
1469
|
+
page?: number;
|
|
1470
|
+
/**
|
|
1471
|
+
* Number of results to return per page.
|
|
1472
|
+
*/
|
|
1473
|
+
page_size?: number;
|
|
1474
|
+
search?: string;
|
|
1475
|
+
start_date?: string;
|
|
1476
|
+
start_date__gt?: string;
|
|
1477
|
+
start_date__lt?: string;
|
|
1478
|
+
type?: string;
|
|
1479
|
+
visible?: boolean;
|
|
1480
|
+
};
|
|
1481
|
+
url: '/admin/campaigns/';
|
|
1482
|
+
};
|
|
1483
|
+
type AdminCampaignsListResponses = {
|
|
1484
|
+
200: PaginatedAdminCampaignListResponse;
|
|
1485
|
+
};
|
|
1486
|
+
type AdminCampaignsListResponse = AdminCampaignsListResponses[keyof AdminCampaignsListResponses];
|
|
1487
|
+
type AdminCampaignsCreateData = {
|
|
1488
|
+
body: AdminCreateUpdateCampaignWritable;
|
|
1489
|
+
path?: never;
|
|
1490
|
+
query?: never;
|
|
1491
|
+
url: '/admin/campaigns/';
|
|
1492
|
+
};
|
|
1493
|
+
type AdminCampaignsCreateResponses = {
|
|
1494
|
+
201: AdminCampaignResponse;
|
|
1495
|
+
};
|
|
1496
|
+
type AdminCampaignsCreateResponse = AdminCampaignsCreateResponses[keyof AdminCampaignsCreateResponses];
|
|
1497
|
+
type AdminCampaignsDestroyData = {
|
|
1498
|
+
body?: never;
|
|
1499
|
+
path: {
|
|
1500
|
+
id: string;
|
|
1501
|
+
};
|
|
1502
|
+
query?: never;
|
|
1503
|
+
url: '/admin/campaigns/{id}/';
|
|
1504
|
+
};
|
|
1505
|
+
type AdminCampaignsDestroyResponses = {
|
|
1506
|
+
200: AdminCampaignResponse;
|
|
1507
|
+
};
|
|
1508
|
+
type AdminCampaignsDestroyResponse = AdminCampaignsDestroyResponses[keyof AdminCampaignsDestroyResponses];
|
|
1509
|
+
type AdminCampaignsRetrieveData = {
|
|
1510
|
+
body?: never;
|
|
1511
|
+
path: {
|
|
1512
|
+
id: string;
|
|
1513
|
+
};
|
|
1514
|
+
query?: never;
|
|
1515
|
+
url: '/admin/campaigns/{id}/';
|
|
1516
|
+
};
|
|
1517
|
+
type AdminCampaignsRetrieveResponses = {
|
|
1518
|
+
200: AdminCampaignResponse;
|
|
1519
|
+
};
|
|
1520
|
+
type AdminCampaignsRetrieveResponse = AdminCampaignsRetrieveResponses[keyof AdminCampaignsRetrieveResponses];
|
|
1521
|
+
type AdminCampaignsPartialUpdateData = {
|
|
1522
|
+
body?: PatchedAdminCreateUpdateCampaignWritable;
|
|
1523
|
+
path: {
|
|
1524
|
+
id: string;
|
|
1525
|
+
};
|
|
1526
|
+
query?: never;
|
|
1527
|
+
url: '/admin/campaigns/{id}/';
|
|
1528
|
+
};
|
|
1529
|
+
type AdminCampaignsPartialUpdateResponses = {
|
|
1530
|
+
200: AdminCampaignResponse;
|
|
1531
|
+
};
|
|
1532
|
+
type AdminCampaignsPartialUpdateResponse = AdminCampaignsPartialUpdateResponses[keyof AdminCampaignsPartialUpdateResponses];
|
|
1533
|
+
type AdminCampaignsUpdateData = {
|
|
1534
|
+
body: AdminCreateUpdateCampaignWritable;
|
|
1535
|
+
path: {
|
|
1536
|
+
id: string;
|
|
1537
|
+
};
|
|
1538
|
+
query?: never;
|
|
1539
|
+
url: '/admin/campaigns/{id}/';
|
|
1540
|
+
};
|
|
1541
|
+
type AdminCampaignsUpdateResponses = {
|
|
1542
|
+
200: AdminCampaignResponse;
|
|
1543
|
+
};
|
|
1544
|
+
type AdminCampaignsUpdateResponse = AdminCampaignsUpdateResponses[keyof AdminCampaignsUpdateResponses];
|
|
1545
|
+
type AdminCompanyRetrieveData = {
|
|
1546
|
+
body?: never;
|
|
1547
|
+
path?: never;
|
|
1548
|
+
query?: never;
|
|
1549
|
+
url: '/admin/company/';
|
|
1550
|
+
};
|
|
1551
|
+
type AdminCompanyRetrieveResponses = {
|
|
1552
|
+
200: AdminCompanyResponse;
|
|
1553
|
+
};
|
|
1554
|
+
type AdminCompanyRetrieveResponse = AdminCompanyRetrieveResponses[keyof AdminCompanyRetrieveResponses];
|
|
1555
|
+
type AdminCompanyPartialUpdateData = {
|
|
1556
|
+
body?: PatchedAdminCompanyWritable;
|
|
1557
|
+
path?: never;
|
|
1558
|
+
query?: never;
|
|
1559
|
+
url: '/admin/company/';
|
|
1560
|
+
};
|
|
1561
|
+
type AdminCompanyPartialUpdateResponses = {
|
|
1562
|
+
200: AdminCompanyResponse;
|
|
1563
|
+
};
|
|
1564
|
+
type AdminCompanyPartialUpdateResponse = AdminCompanyPartialUpdateResponses[keyof AdminCompanyPartialUpdateResponses];
|
|
1565
|
+
type AdminCompanyUpdateData = {
|
|
1566
|
+
body?: AdminCompanyWritable;
|
|
1567
|
+
path?: never;
|
|
1568
|
+
query?: never;
|
|
1569
|
+
url: '/admin/company/';
|
|
1570
|
+
};
|
|
1571
|
+
type AdminCompanyUpdateResponses = {
|
|
1572
|
+
200: AdminCompanyResponse;
|
|
1573
|
+
};
|
|
1574
|
+
type AdminCompanyUpdateResponse = AdminCompanyUpdateResponses[keyof AdminCompanyUpdateResponses];
|
|
1575
|
+
type AdminCurrenciesListData = {
|
|
1576
|
+
body?: never;
|
|
1577
|
+
path?: never;
|
|
1578
|
+
query?: {
|
|
1579
|
+
code?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* A page number within the paginated result set.
|
|
1582
|
+
*/
|
|
1583
|
+
page?: number;
|
|
1584
|
+
/**
|
|
1585
|
+
* Number of results to return per page.
|
|
1586
|
+
*/
|
|
1587
|
+
page_size?: number;
|
|
1588
|
+
};
|
|
1589
|
+
url: '/admin/currencies/';
|
|
1590
|
+
};
|
|
1591
|
+
type AdminCurrenciesListResponses = {
|
|
1592
|
+
200: PaginatedCurrencyListResponse;
|
|
1593
|
+
};
|
|
1594
|
+
type AdminCurrenciesListResponse = AdminCurrenciesListResponses[keyof AdminCurrenciesListResponses];
|
|
1595
|
+
type AdminCurrenciesRetrieveData = {
|
|
1596
|
+
body?: never;
|
|
1597
|
+
path: {
|
|
1598
|
+
code: string;
|
|
1599
|
+
};
|
|
1600
|
+
query?: never;
|
|
1601
|
+
url: '/admin/currencies/{code}/';
|
|
1602
|
+
};
|
|
1603
|
+
type AdminCurrenciesRetrieveResponses = {
|
|
1604
|
+
200: CurrencyResponse;
|
|
1605
|
+
};
|
|
1606
|
+
type AdminCurrenciesRetrieveResponse = AdminCurrenciesRetrieveResponses[keyof AdminCurrenciesRetrieveResponses];
|
|
1607
|
+
type AdminRewardsListData = {
|
|
1608
|
+
body?: never;
|
|
1609
|
+
path?: never;
|
|
1610
|
+
query?: {
|
|
1611
|
+
campaign?: string;
|
|
1612
|
+
currency?: string;
|
|
1613
|
+
id?: string;
|
|
1614
|
+
/**
|
|
1615
|
+
* A page number within the paginated result set.
|
|
1616
|
+
*/
|
|
1617
|
+
page?: number;
|
|
1618
|
+
/**
|
|
1619
|
+
* Number of results to return per page.
|
|
1620
|
+
*/
|
|
1621
|
+
page_size?: number;
|
|
1622
|
+
status?: string;
|
|
1623
|
+
status__in?: string;
|
|
1624
|
+
type?: string;
|
|
1625
|
+
user?: string;
|
|
1626
|
+
};
|
|
1627
|
+
url: '/admin/rewards/';
|
|
1628
|
+
};
|
|
1629
|
+
type AdminRewardsListResponses = {
|
|
1630
|
+
200: PaginatedAdminRewardListResponse;
|
|
1631
|
+
};
|
|
1632
|
+
type AdminRewardsListResponse = AdminRewardsListResponses[keyof AdminRewardsListResponses];
|
|
1633
|
+
type AdminRewardsCreateData = {
|
|
1634
|
+
body: AdminCreateRewardWritable;
|
|
1635
|
+
path?: never;
|
|
1636
|
+
query?: never;
|
|
1637
|
+
url: '/admin/rewards/';
|
|
1638
|
+
};
|
|
1639
|
+
type AdminRewardsCreateResponses = {
|
|
1640
|
+
201: AdminRewardResponse;
|
|
1641
|
+
};
|
|
1642
|
+
type AdminRewardsCreateResponse = AdminRewardsCreateResponses[keyof AdminRewardsCreateResponses];
|
|
1643
|
+
type AdminRewardsRetrieveData = {
|
|
1644
|
+
body?: never;
|
|
1645
|
+
path: {
|
|
1646
|
+
id: string;
|
|
1647
|
+
};
|
|
1648
|
+
query?: never;
|
|
1649
|
+
url: '/admin/rewards/{id}/';
|
|
1650
|
+
};
|
|
1651
|
+
type AdminRewardsRetrieveResponses = {
|
|
1652
|
+
200: AdminRewardResponse;
|
|
1653
|
+
};
|
|
1654
|
+
type AdminRewardsRetrieveResponse = AdminRewardsRetrieveResponses[keyof AdminRewardsRetrieveResponses];
|
|
1655
|
+
type AdminRewardsPartialUpdateData = {
|
|
1656
|
+
body?: PatchedAdminRewardWritable;
|
|
1657
|
+
path: {
|
|
1658
|
+
id: string;
|
|
1659
|
+
};
|
|
1660
|
+
query?: never;
|
|
1661
|
+
url: '/admin/rewards/{id}/';
|
|
1662
|
+
};
|
|
1663
|
+
type AdminRewardsPartialUpdateResponses = {
|
|
1664
|
+
200: AdminRewardResponse;
|
|
1665
|
+
};
|
|
1666
|
+
type AdminRewardsPartialUpdateResponse = AdminRewardsPartialUpdateResponses[keyof AdminRewardsPartialUpdateResponses];
|
|
1667
|
+
type AdminRewardsUpdateData = {
|
|
1668
|
+
body?: AdminRewardWritable;
|
|
1669
|
+
path: {
|
|
1670
|
+
id: string;
|
|
1671
|
+
};
|
|
1672
|
+
query?: never;
|
|
1673
|
+
url: '/admin/rewards/{id}/';
|
|
1674
|
+
};
|
|
1675
|
+
type AdminRewardsUpdateResponses = {
|
|
1676
|
+
200: AdminRewardResponse;
|
|
1677
|
+
};
|
|
1678
|
+
type AdminRewardsUpdateResponse = AdminRewardsUpdateResponses[keyof AdminRewardsUpdateResponses];
|
|
1679
|
+
type AdminUsersListData = {
|
|
1680
|
+
body?: never;
|
|
1681
|
+
path?: never;
|
|
1682
|
+
query?: {
|
|
1683
|
+
id?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* A page number within the paginated result set.
|
|
1686
|
+
*/
|
|
1687
|
+
page?: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* Number of results to return per page.
|
|
1690
|
+
*/
|
|
1691
|
+
page_size?: number;
|
|
1692
|
+
referee_code?: string;
|
|
1693
|
+
referral_code?: string;
|
|
1694
|
+
};
|
|
1695
|
+
url: '/admin/users/';
|
|
1696
|
+
};
|
|
1697
|
+
type AdminUsersListResponses = {
|
|
1698
|
+
200: PaginatedAdminUserListResponse;
|
|
1699
|
+
};
|
|
1700
|
+
type AdminUsersListResponse = AdminUsersListResponses[keyof AdminUsersListResponses];
|
|
1701
|
+
type AdminUsersRetrieveData = {
|
|
1702
|
+
body?: never;
|
|
1703
|
+
path: {
|
|
1704
|
+
id: string;
|
|
1705
|
+
};
|
|
1706
|
+
query?: never;
|
|
1707
|
+
url: '/admin/users/{id}/';
|
|
1708
|
+
};
|
|
1709
|
+
type AdminUsersRetrieveResponses = {
|
|
1710
|
+
200: AdminUserResponse;
|
|
1711
|
+
};
|
|
1712
|
+
type AdminUsersRetrieveResponse = AdminUsersRetrieveResponses[keyof AdminUsersRetrieveResponses];
|
|
1713
|
+
type AdminWebhookCreateData = {
|
|
1714
|
+
body: Webhook;
|
|
1715
|
+
path?: never;
|
|
1716
|
+
query?: never;
|
|
1717
|
+
url: '/admin/webhook/';
|
|
1718
|
+
};
|
|
1719
|
+
type AdminWebhookCreateResponses = {
|
|
1720
|
+
200: ActionResponse;
|
|
1721
|
+
};
|
|
1722
|
+
type AdminWebhookCreateResponse = AdminWebhookCreateResponses[keyof AdminWebhookCreateResponses];
|
|
1723
|
+
type DeactivateCreateData = {
|
|
1724
|
+
body: Deactivate;
|
|
1725
|
+
path?: never;
|
|
1726
|
+
query?: never;
|
|
1727
|
+
url: '/deactivate/';
|
|
1728
|
+
};
|
|
1729
|
+
type DeactivateCreateResponses = {
|
|
1730
|
+
200: ActionResponse;
|
|
1731
|
+
};
|
|
1732
|
+
type DeactivateCreateResponse = DeactivateCreateResponses[keyof DeactivateCreateResponses];
|
|
1733
|
+
type UserRetrieveData = {
|
|
1734
|
+
body?: never;
|
|
1735
|
+
path?: never;
|
|
1736
|
+
query?: never;
|
|
1737
|
+
url: '/user/';
|
|
1738
|
+
};
|
|
1739
|
+
type UserRetrieveResponses = {
|
|
1740
|
+
200: UserResponse;
|
|
1741
|
+
};
|
|
1742
|
+
type UserRetrieveResponse = UserRetrieveResponses[keyof UserRetrieveResponses];
|
|
1743
|
+
type UserPartialUpdateData = {
|
|
1744
|
+
body?: PatchedUserUpdateReferralWritable;
|
|
1745
|
+
path?: never;
|
|
1746
|
+
query?: never;
|
|
1747
|
+
url: '/user/';
|
|
1748
|
+
};
|
|
1749
|
+
type UserPartialUpdateResponses = {
|
|
1750
|
+
200: UserResponse;
|
|
1751
|
+
};
|
|
1752
|
+
type UserPartialUpdateResponse = UserPartialUpdateResponses[keyof UserPartialUpdateResponses];
|
|
1753
|
+
type UserUpdateData = {
|
|
1754
|
+
body: UserUpdateReferralWritable;
|
|
1755
|
+
path?: never;
|
|
1756
|
+
query?: never;
|
|
1757
|
+
url: '/user/';
|
|
1758
|
+
};
|
|
1759
|
+
type UserUpdateResponses = {
|
|
1760
|
+
200: UserResponse;
|
|
1761
|
+
};
|
|
1762
|
+
type UserUpdateResponse = UserUpdateResponses[keyof UserUpdateResponses];
|
|
1763
|
+
type UserCampaignsListData = {
|
|
1764
|
+
body?: never;
|
|
1765
|
+
path?: never;
|
|
1766
|
+
query?: {
|
|
1767
|
+
active?: boolean;
|
|
1768
|
+
available?: string;
|
|
1769
|
+
currency?: string;
|
|
1770
|
+
end_date?: string;
|
|
1771
|
+
end_date__gt?: string;
|
|
1772
|
+
end_date__lt?: string;
|
|
1773
|
+
id?: string;
|
|
1774
|
+
name__contains?: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* A page number within the paginated result set.
|
|
1777
|
+
*/
|
|
1778
|
+
page?: number;
|
|
1779
|
+
/**
|
|
1780
|
+
* Number of results to return per page.
|
|
1781
|
+
*/
|
|
1782
|
+
page_size?: number;
|
|
1783
|
+
search?: string;
|
|
1784
|
+
start_date?: string;
|
|
1785
|
+
start_date__gt?: string;
|
|
1786
|
+
start_date__lt?: string;
|
|
1787
|
+
type?: string;
|
|
1788
|
+
visible?: boolean;
|
|
1789
|
+
};
|
|
1790
|
+
url: '/user/campaigns/';
|
|
1791
|
+
};
|
|
1792
|
+
type UserCampaignsListResponses = {
|
|
1793
|
+
200: PaginatedUserCampaignListResponse;
|
|
1794
|
+
};
|
|
1795
|
+
type UserCampaignsListResponse = UserCampaignsListResponses[keyof UserCampaignsListResponses];
|
|
1796
|
+
type UserCampaignsRetrieveData = {
|
|
1797
|
+
body?: never;
|
|
1798
|
+
path: {
|
|
1799
|
+
id: string;
|
|
1800
|
+
};
|
|
1801
|
+
query?: never;
|
|
1802
|
+
url: '/user/campaigns/{id}/';
|
|
1803
|
+
};
|
|
1804
|
+
type UserCampaignsRetrieveResponses = {
|
|
1805
|
+
200: UserCampaignResponse;
|
|
1806
|
+
};
|
|
1807
|
+
type UserCampaignsRetrieveResponse = UserCampaignsRetrieveResponses[keyof UserCampaignsRetrieveResponses];
|
|
1808
|
+
type UserRewardsListData = {
|
|
1809
|
+
body?: never;
|
|
1810
|
+
path?: never;
|
|
1811
|
+
query?: {
|
|
1812
|
+
campaign?: string;
|
|
1813
|
+
currency?: string;
|
|
1814
|
+
id?: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* A page number within the paginated result set.
|
|
1817
|
+
*/
|
|
1818
|
+
page?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* Number of results to return per page.
|
|
1821
|
+
*/
|
|
1822
|
+
page_size?: number;
|
|
1823
|
+
status?: string;
|
|
1824
|
+
status__in?: string;
|
|
1825
|
+
type?: string;
|
|
1826
|
+
};
|
|
1827
|
+
url: '/user/rewards/';
|
|
1828
|
+
};
|
|
1829
|
+
type UserRewardsListResponses = {
|
|
1830
|
+
200: PaginatedUserRewardListResponse;
|
|
1831
|
+
};
|
|
1832
|
+
type UserRewardsListResponse = UserRewardsListResponses[keyof UserRewardsListResponses];
|
|
1833
|
+
type UserRewardsCreateData = {
|
|
1834
|
+
body: UserCreateRewardWritable;
|
|
1835
|
+
path?: never;
|
|
1836
|
+
query?: never;
|
|
1837
|
+
url: '/user/rewards/';
|
|
1838
|
+
};
|
|
1839
|
+
type UserRewardsCreateResponses = {
|
|
1840
|
+
201: UserRewardResponse;
|
|
1841
|
+
};
|
|
1842
|
+
type UserRewardsCreateResponse = UserRewardsCreateResponses[keyof UserRewardsCreateResponses];
|
|
1843
|
+
type UserRewardsRetrieveData = {
|
|
1844
|
+
body?: never;
|
|
1845
|
+
path: {
|
|
1846
|
+
id: string;
|
|
1847
|
+
};
|
|
1848
|
+
query?: never;
|
|
1849
|
+
url: '/user/rewards/{id}/';
|
|
1850
|
+
};
|
|
1851
|
+
type UserRewardsRetrieveResponses = {
|
|
1852
|
+
200: UserRewardResponse;
|
|
1853
|
+
};
|
|
1854
|
+
type UserRewardsRetrieveResponse = UserRewardsRetrieveResponses[keyof UserRewardsRetrieveResponses];
|
|
1855
|
+
type WebhookCreateData = {
|
|
1856
|
+
body: Webhook;
|
|
1857
|
+
path?: never;
|
|
1858
|
+
query?: never;
|
|
1859
|
+
url: '/webhook/';
|
|
1860
|
+
};
|
|
1861
|
+
type WebhookCreateResponses = {
|
|
1862
|
+
200: ActionResponse;
|
|
1863
|
+
};
|
|
1864
|
+
type WebhookCreateResponse = WebhookCreateResponses[keyof WebhookCreateResponses];
|
|
1865
|
+
|
|
1866
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
1867
|
+
/**
|
|
1868
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1869
|
+
* individual options. This might be also useful if you want to implement a
|
|
1870
|
+
* custom client.
|
|
1871
|
+
*/
|
|
1872
|
+
client?: Client;
|
|
1873
|
+
/**
|
|
1874
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1875
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1876
|
+
*/
|
|
1877
|
+
meta?: Record<string, unknown>;
|
|
1878
|
+
};
|
|
1879
|
+
/**
|
|
1880
|
+
* Activate service
|
|
1881
|
+
*/
|
|
1882
|
+
declare const activateCreate: <ThrowOnError extends boolean = false>(options: Options<ActivateCreateData, ThrowOnError>) => RequestResult<ActivateCreateResponses, unknown, ThrowOnError, "data">;
|
|
1883
|
+
/**
|
|
1884
|
+
* List campaign
|
|
1885
|
+
*/
|
|
1886
|
+
declare const adminCampaignsList: <ThrowOnError extends boolean = false>(options?: Options<AdminCampaignsListData, ThrowOnError>) => RequestResult<AdminCampaignsListResponses, unknown, ThrowOnError, "data">;
|
|
1887
|
+
/**
|
|
1888
|
+
* Create campaign
|
|
1889
|
+
*/
|
|
1890
|
+
declare const adminCampaignsCreate: <ThrowOnError extends boolean = false>(options: Options<AdminCampaignsCreateData, ThrowOnError>) => RequestResult<AdminCampaignsCreateResponses, unknown, ThrowOnError, "data">;
|
|
1891
|
+
/**
|
|
1892
|
+
* Delete campaign
|
|
1893
|
+
*/
|
|
1894
|
+
declare const adminCampaignsDestroy: <ThrowOnError extends boolean = false>(options: Options<AdminCampaignsDestroyData, ThrowOnError>) => RequestResult<AdminCampaignsDestroyResponses, unknown, ThrowOnError, "data">;
|
|
1895
|
+
/**
|
|
1896
|
+
* Retrieve campaign
|
|
1897
|
+
*/
|
|
1898
|
+
declare const adminCampaignsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminCampaignsRetrieveData, ThrowOnError>) => RequestResult<AdminCampaignsRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1899
|
+
/**
|
|
1900
|
+
* Partially update campaign
|
|
1901
|
+
*/
|
|
1902
|
+
declare const adminCampaignsPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCampaignsPartialUpdateData, ThrowOnError>) => RequestResult<AdminCampaignsPartialUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1903
|
+
/**
|
|
1904
|
+
* Update campaign
|
|
1905
|
+
*/
|
|
1906
|
+
declare const adminCampaignsUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCampaignsUpdateData, ThrowOnError>) => RequestResult<AdminCampaignsUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1907
|
+
/**
|
|
1908
|
+
* Retrieve company
|
|
1909
|
+
*/
|
|
1910
|
+
declare const adminCompanyRetrieve: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyRetrieveData, ThrowOnError>) => RequestResult<AdminCompanyRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1911
|
+
/**
|
|
1912
|
+
* Partially update company
|
|
1913
|
+
*/
|
|
1914
|
+
declare const adminCompanyPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyPartialUpdateData, ThrowOnError>) => RequestResult<AdminCompanyPartialUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1915
|
+
/**
|
|
1916
|
+
* Update company
|
|
1917
|
+
*/
|
|
1918
|
+
declare const adminCompanyUpdate: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyUpdateData, ThrowOnError>) => RequestResult<AdminCompanyUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1919
|
+
/**
|
|
1920
|
+
* List currencies
|
|
1921
|
+
*/
|
|
1922
|
+
declare const adminCurrenciesList: <ThrowOnError extends boolean = false>(options?: Options<AdminCurrenciesListData, ThrowOnError>) => RequestResult<AdminCurrenciesListResponses, unknown, ThrowOnError, "data">;
|
|
1923
|
+
/**
|
|
1924
|
+
* Retrieve currency
|
|
1925
|
+
*/
|
|
1926
|
+
declare const adminCurrenciesRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesRetrieveData, ThrowOnError>) => RequestResult<AdminCurrenciesRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1927
|
+
/**
|
|
1928
|
+
* List rewards
|
|
1929
|
+
*/
|
|
1930
|
+
declare const adminRewardsList: <ThrowOnError extends boolean = false>(options?: Options<AdminRewardsListData, ThrowOnError>) => RequestResult<AdminRewardsListResponses, unknown, ThrowOnError, "data">;
|
|
1931
|
+
/**
|
|
1932
|
+
* Create reward
|
|
1933
|
+
*/
|
|
1934
|
+
declare const adminRewardsCreate: <ThrowOnError extends boolean = false>(options: Options<AdminRewardsCreateData, ThrowOnError>) => RequestResult<AdminRewardsCreateResponses, unknown, ThrowOnError, "data">;
|
|
1935
|
+
/**
|
|
1936
|
+
* Retrieve reward
|
|
1937
|
+
*/
|
|
1938
|
+
declare const adminRewardsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminRewardsRetrieveData, ThrowOnError>) => RequestResult<AdminRewardsRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1939
|
+
/**
|
|
1940
|
+
* Partially update reward
|
|
1941
|
+
*/
|
|
1942
|
+
declare const adminRewardsPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminRewardsPartialUpdateData, ThrowOnError>) => RequestResult<AdminRewardsPartialUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1943
|
+
/**
|
|
1944
|
+
* Update reward
|
|
1945
|
+
*/
|
|
1946
|
+
declare const adminRewardsUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminRewardsUpdateData, ThrowOnError>) => RequestResult<AdminRewardsUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1947
|
+
/**
|
|
1948
|
+
* List users
|
|
1949
|
+
*/
|
|
1950
|
+
declare const adminUsersList: <ThrowOnError extends boolean = false>(options?: Options<AdminUsersListData, ThrowOnError>) => RequestResult<AdminUsersListResponses, unknown, ThrowOnError, "data">;
|
|
1951
|
+
/**
|
|
1952
|
+
* Retrieve user
|
|
1953
|
+
*/
|
|
1954
|
+
declare const adminUsersRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminUsersRetrieveData, ThrowOnError>) => RequestResult<AdminUsersRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1955
|
+
/**
|
|
1956
|
+
* Receive Platform webhook
|
|
1957
|
+
*/
|
|
1958
|
+
declare const adminWebhookCreate: <ThrowOnError extends boolean = false>(options: Options<AdminWebhookCreateData, ThrowOnError>) => RequestResult<AdminWebhookCreateResponses, unknown, ThrowOnError, "data">;
|
|
1959
|
+
/**
|
|
1960
|
+
* Deactivate service
|
|
1961
|
+
*/
|
|
1962
|
+
declare const deactivateCreate: <ThrowOnError extends boolean = false>(options: Options<DeactivateCreateData, ThrowOnError>) => RequestResult<DeactivateCreateResponses, unknown, ThrowOnError, "data">;
|
|
1963
|
+
/**
|
|
1964
|
+
* Retrieve user
|
|
1965
|
+
*/
|
|
1966
|
+
declare const userRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserRetrieveData, ThrowOnError>) => RequestResult<UserRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1967
|
+
/**
|
|
1968
|
+
* Partially update user
|
|
1969
|
+
*/
|
|
1970
|
+
declare const userPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserPartialUpdateData, ThrowOnError>) => RequestResult<UserPartialUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1971
|
+
/**
|
|
1972
|
+
* Update user
|
|
1973
|
+
*/
|
|
1974
|
+
declare const userUpdate: <ThrowOnError extends boolean = false>(options: Options<UserUpdateData, ThrowOnError>) => RequestResult<UserUpdateResponses, unknown, ThrowOnError, "data">;
|
|
1975
|
+
/**
|
|
1976
|
+
* List campaigns
|
|
1977
|
+
*/
|
|
1978
|
+
declare const userCampaignsList: <ThrowOnError extends boolean = false>(options?: Options<UserCampaignsListData, ThrowOnError>) => RequestResult<UserCampaignsListResponses, unknown, ThrowOnError, "data">;
|
|
1979
|
+
/**
|
|
1980
|
+
* Retrieve campaign
|
|
1981
|
+
*/
|
|
1982
|
+
declare const userCampaignsRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserCampaignsRetrieveData, ThrowOnError>) => RequestResult<UserCampaignsRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1983
|
+
/**
|
|
1984
|
+
* List rewards
|
|
1985
|
+
*/
|
|
1986
|
+
declare const userRewardsList: <ThrowOnError extends boolean = false>(options?: Options<UserRewardsListData, ThrowOnError>) => RequestResult<UserRewardsListResponses, unknown, ThrowOnError, "data">;
|
|
1987
|
+
/**
|
|
1988
|
+
* Create reward
|
|
1989
|
+
*/
|
|
1990
|
+
declare const userRewardsCreate: <ThrowOnError extends boolean = false>(options: Options<UserRewardsCreateData, ThrowOnError>) => RequestResult<UserRewardsCreateResponses, unknown, ThrowOnError, "data">;
|
|
1991
|
+
/**
|
|
1992
|
+
* Retrieve user
|
|
1993
|
+
*/
|
|
1994
|
+
declare const userRewardsRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserRewardsRetrieveData, ThrowOnError>) => RequestResult<UserRewardsRetrieveResponses, unknown, ThrowOnError, "data">;
|
|
1995
|
+
/**
|
|
1996
|
+
* Receive Platform webhook
|
|
1997
|
+
*/
|
|
1998
|
+
declare const webhookCreate: <ThrowOnError extends boolean = false>(options: Options<WebhookCreateData, ThrowOnError>) => RequestResult<WebhookCreateResponses, unknown, ThrowOnError, "data">;
|
|
1999
|
+
|
|
2000
|
+
type sdk_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
2001
|
+
declare const sdk_activateCreate: typeof activateCreate;
|
|
2002
|
+
declare const sdk_adminCampaignsCreate: typeof adminCampaignsCreate;
|
|
2003
|
+
declare const sdk_adminCampaignsDestroy: typeof adminCampaignsDestroy;
|
|
2004
|
+
declare const sdk_adminCampaignsList: typeof adminCampaignsList;
|
|
2005
|
+
declare const sdk_adminCampaignsPartialUpdate: typeof adminCampaignsPartialUpdate;
|
|
2006
|
+
declare const sdk_adminCampaignsRetrieve: typeof adminCampaignsRetrieve;
|
|
2007
|
+
declare const sdk_adminCampaignsUpdate: typeof adminCampaignsUpdate;
|
|
2008
|
+
declare const sdk_adminCompanyPartialUpdate: typeof adminCompanyPartialUpdate;
|
|
2009
|
+
declare const sdk_adminCompanyRetrieve: typeof adminCompanyRetrieve;
|
|
2010
|
+
declare const sdk_adminCompanyUpdate: typeof adminCompanyUpdate;
|
|
2011
|
+
declare const sdk_adminCurrenciesList: typeof adminCurrenciesList;
|
|
2012
|
+
declare const sdk_adminCurrenciesRetrieve: typeof adminCurrenciesRetrieve;
|
|
2013
|
+
declare const sdk_adminRewardsCreate: typeof adminRewardsCreate;
|
|
2014
|
+
declare const sdk_adminRewardsList: typeof adminRewardsList;
|
|
2015
|
+
declare const sdk_adminRewardsPartialUpdate: typeof adminRewardsPartialUpdate;
|
|
2016
|
+
declare const sdk_adminRewardsRetrieve: typeof adminRewardsRetrieve;
|
|
2017
|
+
declare const sdk_adminRewardsUpdate: typeof adminRewardsUpdate;
|
|
2018
|
+
declare const sdk_adminUsersList: typeof adminUsersList;
|
|
2019
|
+
declare const sdk_adminUsersRetrieve: typeof adminUsersRetrieve;
|
|
2020
|
+
declare const sdk_adminWebhookCreate: typeof adminWebhookCreate;
|
|
2021
|
+
declare const sdk_deactivateCreate: typeof deactivateCreate;
|
|
2022
|
+
declare const sdk_userCampaignsList: typeof userCampaignsList;
|
|
2023
|
+
declare const sdk_userCampaignsRetrieve: typeof userCampaignsRetrieve;
|
|
2024
|
+
declare const sdk_userPartialUpdate: typeof userPartialUpdate;
|
|
2025
|
+
declare const sdk_userRetrieve: typeof userRetrieve;
|
|
2026
|
+
declare const sdk_userRewardsCreate: typeof userRewardsCreate;
|
|
2027
|
+
declare const sdk_userRewardsList: typeof userRewardsList;
|
|
2028
|
+
declare const sdk_userRewardsRetrieve: typeof userRewardsRetrieve;
|
|
2029
|
+
declare const sdk_userUpdate: typeof userUpdate;
|
|
2030
|
+
declare const sdk_webhookCreate: typeof webhookCreate;
|
|
2031
|
+
declare namespace sdk {
|
|
2032
|
+
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminCampaignsCreate as adminCampaignsCreate, sdk_adminCampaignsDestroy as adminCampaignsDestroy, sdk_adminCampaignsList as adminCampaignsList, sdk_adminCampaignsPartialUpdate as adminCampaignsPartialUpdate, sdk_adminCampaignsRetrieve as adminCampaignsRetrieve, sdk_adminCampaignsUpdate as adminCampaignsUpdate, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminCurrenciesList as adminCurrenciesList, sdk_adminCurrenciesRetrieve as adminCurrenciesRetrieve, sdk_adminRewardsCreate as adminRewardsCreate, sdk_adminRewardsList as adminRewardsList, sdk_adminRewardsPartialUpdate as adminRewardsPartialUpdate, sdk_adminRewardsRetrieve as adminRewardsRetrieve, sdk_adminRewardsUpdate as adminRewardsUpdate, sdk_adminUsersList as adminUsersList, sdk_adminUsersRetrieve as adminUsersRetrieve, sdk_adminWebhookCreate as adminWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userCampaignsList as userCampaignsList, sdk_userCampaignsRetrieve as userCampaignsRetrieve, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userRewardsCreate as userRewardsCreate, sdk_userRewardsList as userRewardsList, sdk_userRewardsRetrieve as userRewardsRetrieve, sdk_userUpdate as userUpdate, sdk_webhookCreate as webhookCreate };
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
type RewardsApi = BoundSdk<typeof sdk>;
|
|
2036
|
+
declare function createRewardsApi(config: ApiFactoryConfig): RewardsApi;
|
|
2037
|
+
|
|
2038
|
+
export { type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type AdminCampaign, type AdminCampaignResponse, type AdminCampaignResponseWritable, type AdminCampaignWritable, type AdminCampaignsCreateData, type AdminCampaignsCreateResponse, type AdminCampaignsCreateResponses, type AdminCampaignsDestroyData, type AdminCampaignsDestroyResponse, type AdminCampaignsDestroyResponses, type AdminCampaignsListData, type AdminCampaignsListResponse, type AdminCampaignsListResponses, type AdminCampaignsPartialUpdateData, type AdminCampaignsPartialUpdateResponse, type AdminCampaignsPartialUpdateResponses, type AdminCampaignsRetrieveData, type AdminCampaignsRetrieveResponse, type AdminCampaignsRetrieveResponses, type AdminCampaignsUpdateData, type AdminCampaignsUpdateResponse, type AdminCampaignsUpdateResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCompanyWritable, type AdminCreateReward, type AdminCreateRewardWritable, type AdminCreateUpdateCampaign, type AdminCreateUpdateCampaignWritable, type AdminCurrenciesListData, type AdminCurrenciesListResponse, type AdminCurrenciesListResponses, type AdminCurrenciesRetrieveData, type AdminCurrenciesRetrieveResponse, type AdminCurrenciesRetrieveResponses, type AdminReward, type AdminRewardResponse, type AdminRewardResponseWritable, type AdminRewardWritable, type AdminRewardsCreateData, type AdminRewardsCreateResponse, type AdminRewardsCreateResponses, type AdminRewardsListData, type AdminRewardsListResponse, type AdminRewardsListResponses, type AdminRewardsPartialUpdateData, type AdminRewardsPartialUpdateResponse, type AdminRewardsPartialUpdateResponses, type AdminRewardsRetrieveData, type AdminRewardsRetrieveResponse, type AdminRewardsRetrieveResponses, type AdminRewardsUpdateData, type AdminRewardsUpdateResponse, type AdminRewardsUpdateResponses, type AdminUser, type AdminUserResponse, type AdminUserResponseWritable, type AdminUsersListData, type AdminUsersListResponse, type AdminUsersListResponses, type AdminUsersRetrieveData, type AdminUsersRetrieveResponse, type AdminUsersRetrieveResponses, type AdminWebhookCreateData, type AdminWebhookCreateResponse, type AdminWebhookCreateResponses, type Campaign, type CampaignWritable, type ClientOptions, type Currency, type CurrencyResponse, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type PaginatedAdminCampaignList, type PaginatedAdminCampaignListResponse, type PaginatedAdminCampaignListResponseWritable, type PaginatedAdminCampaignListWritable, type PaginatedAdminRewardList, type PaginatedAdminRewardListResponse, type PaginatedAdminRewardListResponseWritable, type PaginatedAdminRewardListWritable, type PaginatedAdminUserList, type PaginatedAdminUserListResponse, type PaginatedAdminUserListResponseWritable, type PaginatedAdminUserListWritable, type PaginatedCurrencyList, type PaginatedCurrencyListResponse, type PaginatedUserCampaignList, type PaginatedUserCampaignListResponse, type PaginatedUserCampaignListResponseWritable, type PaginatedUserCampaignListWritable, type PaginatedUserRewardList, type PaginatedUserRewardListResponse, type PaginatedUserRewardListResponseWritable, type PaginatedUserRewardListWritable, type PatchedAdminCompany, type PatchedAdminCompanyWritable, type PatchedAdminCreateUpdateCampaign, type PatchedAdminCreateUpdateCampaignWritable, type PatchedAdminReward, type PatchedAdminRewardWritable, type PatchedUserUpdateReferral, type PatchedUserUpdateReferralWritable, type RewardsApi, type User, type UserCampaign, type UserCampaignResponse, type UserCampaignResponseWritable, type UserCampaignWritable, type UserCampaignsListData, type UserCampaignsListResponse, type UserCampaignsListResponses, type UserCampaignsRetrieveData, type UserCampaignsRetrieveResponse, type UserCampaignsRetrieveResponses, type UserCreateReward, type UserCreateRewardWritable, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserReward, type UserRewardResponse, type UserRewardResponseWritable, type UserRewardWritable, type UserRewardsCreateData, type UserRewardsCreateResponse, type UserRewardsCreateResponses, type UserRewardsListData, type UserRewardsListResponse, type UserRewardsListResponses, type UserRewardsRetrieveData, type UserRewardsRetrieveResponse, type UserRewardsRetrieveResponses, type UserUpdateData, type UserUpdateReferral, type UserUpdateReferralWritable, type UserUpdateResponse, type UserUpdateResponses, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createRewardsApi };
|