UNPKG

@cranberry-money/shared-constants

Version:

Shared constants for Blueberry platform

175 lines 6.99 kB
export declare const HTTP_STATUS: { readonly OK: 200; readonly CREATED: 201; readonly ACCEPTED: 202; readonly NO_CONTENT: 204; readonly MOVED_PERMANENTLY: 301; readonly FOUND: 302; readonly NOT_MODIFIED: 304; readonly BAD_REQUEST: 400; readonly UNAUTHORIZED: 401; readonly FORBIDDEN: 403; readonly NOT_FOUND: 404; readonly METHOD_NOT_ALLOWED: 405; readonly CONFLICT: 409; readonly UNPROCESSABLE_ENTITY: 422; readonly TOO_MANY_REQUESTS: 429; readonly INTERNAL_SERVER_ERROR: 500; readonly BAD_GATEWAY: 502; readonly SERVICE_UNAVAILABLE: 503; readonly GATEWAY_TIMEOUT: 504; }; export type HttpStatus = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS]; export declare const HTTP_HEADERS: { readonly ACCEPT: "Accept"; readonly AUTHORIZATION: "Authorization"; readonly CONTENT_TYPE: "Content-Type"; readonly CACHE_CONTROL: "Cache-Control"; readonly USER_AGENT: "User-Agent"; readonly X_REQUESTED_WITH: "X-Requested-With"; readonly X_CSRF_TOKEN: "X-CSRFToken"; }; export declare const CONTENT_TYPES: { readonly JSON: "application/json"; readonly FORM_DATA: "multipart/form-data"; readonly URL_ENCODED: "application/x-www-form-urlencoded"; readonly TEXT: "text/plain"; readonly HTML: "text/html"; readonly XML: "application/xml"; readonly PDF: "application/pdf"; }; export type ContentType = (typeof CONTENT_TYPES)[keyof typeof CONTENT_TYPES]; export declare const HTTP_HEADER_CONTENT_TYPE: "Content-Type"; export declare const CONTENT_TYPE_APPLICATION_JSON: "application/json"; export declare const API_CONFIG: { readonly DEFAULT_TIMEOUT: 30000; readonly DEFAULT_RETRY_ATTEMPTS: 3; readonly DEFAULT_RETRY_DELAY: 1000; readonly MAX_RETRY_DELAY: 10000; readonly REQUEST_DEBOUNCE_MS: 300; }; export declare const DOCUMENT_SERVICE: { readonly RESPONSE_TYPE_BLOB: "blob"; readonly CONTENT_TYPE_ANY: "*/*"; }; export type DocumentService = typeof DOCUMENT_SERVICE; export declare const API_BASE_PATHS: { readonly V1: "/api"; }; export declare const ACCOUNT_ENDPOINTS: { readonly BASE: "/api/accounts/"; readonly DETAIL: (uuid: string) => `/api/accounts/${string}/`; }; export declare const AUTH_ENDPOINTS: { readonly SIGNIN: "/api/signin/"; readonly SIGNOUT: "/api/signout/"; readonly SIGNUP: "/api/signup/"; readonly EMAIL_VERIFICATION: "/api/email-verification/"; readonly RESEND_VERIFICATION: "/api/resend-verification/"; readonly TOKEN_REFRESH: "/api/token/refresh/"; }; export declare const BANK_ACCOUNT_ENDPOINTS: { readonly BASE: "/api/bank-accounts/"; readonly DETAIL: (uuid: string) => `/api/bank-accounts/${string}/`; }; export declare const CASH_ACCOUNT_ENDPOINTS: { readonly BASE: "/api/cash-accounts/"; readonly DETAIL: (uuid: string) => `/api/cash-accounts/${string}/`; }; export declare const CASH_ACCOUNT_TRANSACTION_ENDPOINTS: { readonly BASE: "/api/cash-account-transactions/"; readonly DETAIL: (uuid: string) => `/api/cash-account-transactions/${string}/`; }; export declare const COUNTRY_ENDPOINTS: { readonly BASE: "/api/countries/"; readonly DETAIL: (uuid: string) => `/api/countries/${string}/`; }; export declare const DOCUMENT_ENDPOINTS: { readonly AGREEMENT: "/api/documents/agreement/"; readonly MDA: "/api/documents/mda/"; readonly SOA: "/api/documents/soa/"; }; export declare const IDENTITY_DOCUMENT_ENDPOINTS: { readonly BASE: "/api/identity-documents/"; readonly DETAIL: (uuid: string) => `/api/identity-documents/${string}/`; }; export declare const SUPPORTING_DOCUMENT_ENDPOINTS: { readonly BASE: "/api/supporting-documents/"; readonly DETAIL: (uuid: string) => `/api/supporting-documents/${string}/`; }; export declare const COMPLIANCE_DOCUMENT_ENDPOINTS: { readonly BASE: "/api/compliance-documents/"; readonly DETAIL: (uuid: string) => `/api/compliance-documents/${string}/`; readonly AGREEMENT: "/api/documents/agreement/"; readonly MDA: "/api/documents/mda/"; readonly SOA: "/api/documents/soa/"; }; export declare const INDUSTRY_ENDPOINTS: { readonly BASE: "/api/industries/"; readonly DETAIL: (uuid: string) => `/api/industries/${string}/`; }; export declare const INSTRUMENT_ENDPOINTS: { readonly BASE: "/api/instruments/"; readonly DETAIL: (uuid: string) => `/api/instruments/${string}/`; }; export declare const PORTFOLIO_ENDPOINTS: { readonly BASE: "/api/portfolios/"; readonly DETAIL: (uuid: string) => `/api/portfolios/${string}/`; }; export declare const PORTFOLIO_TEMPLATE_ENDPOINTS: { readonly BASE: "/api/portfolio-templates/"; readonly DETAIL: (uuid: string) => `/api/portfolio-templates/${string}/`; readonly RECOMMENDED: "/api/portfolio-templates/recommended/"; }; export declare const SECTOR_ENDPOINTS: { readonly BASE: "/api/sectors/"; readonly DETAIL: (uuid: string) => `/api/sectors/${string}/`; }; export declare const STOCK_EXCHANGE_ENDPOINTS: { readonly BASE: "/api/stock-exchanges/"; readonly DETAIL: (uuid: string) => `/api/stock-exchanges/${string}/`; }; export declare const TAX_RESIDENCY_ENDPOINTS: { readonly BASE: "/api/tax-residencies/"; readonly DETAIL: (uuid: string) => `/api/tax-residencies/${string}/`; }; export declare const TRADE_ENDPOINTS: { readonly BASE: "/api/trades/"; readonly DETAIL: (uuid: string) => `/api/trades/${string}/`; }; export declare const ORDER_ENDPOINTS: { readonly BASE: "/api/orders/"; readonly DETAIL: (uuid: string) => `/api/orders/${string}/`; }; export declare const USER_PROFILE_ENDPOINTS: { readonly BASE: "/api/user-profiles/"; readonly DETAIL: (uuid: string) => `/api/user-profiles/${string}/`; }; export declare const INVESTMENT_PREFERENCES_ENDPOINTS: { readonly BASE: "/api/investment-preferences/"; readonly DETAIL: (uuid: string) => `/api/investment-preferences/${string}/`; }; export declare const USER_PREFERENCES_ENDPOINTS: { readonly BASE: "/api/user-preferences/"; }; export declare const WITHDRAWAL_REQUEST_ENDPOINTS: { readonly BASE: "/api/withdrawal-requests/"; readonly DETAIL: (uuid: string) => `/api/withdrawal-requests/${string}/`; }; export declare const WITHDRAWAL_LIQUIDATION_ENDPOINTS: { readonly BASE: "/api/withdrawal-liquidations/"; readonly DETAIL: (uuid: string) => `/api/withdrawal-liquidations/${string}/`; }; export declare const ASSET_ALLOCATION_ENDPOINTS: { readonly BASE: "/api/asset-allocations/"; readonly DETAIL: (uuid: string) => `/api/asset-allocations/${string}/`; }; export declare const ASSET_HOLDING_ENDPOINTS: { readonly BASE: "/api/asset-holdings/"; readonly DETAIL: (uuid: string) => `/api/asset-holdings/${string}/`; }; export declare const ASSET_HOLDING_SNAPSHOT_ENDPOINTS: { readonly BASE: "/api/asset-holding-snapshots/"; readonly DETAIL: (id: string) => `/api/asset-holding-snapshots/${string}/`; }; //# sourceMappingURL=api.d.ts.map