@dalmore/api-contracts 0.0.0-dev.4bb6b7a → 0.0.0-dev.4db6454
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/common/helpers/index.d.ts +50 -0
- package/common/helpers/index.js +136 -0
- package/common/helpers/index.js.map +1 -0
- package/common/types/account-contact.types.d.ts +485 -0
- package/common/types/account-contact.types.js +75 -0
- package/common/types/account-contact.types.js.map +1 -0
- package/common/types/account-detail.types.d.ts +304 -0
- package/common/types/account-detail.types.js +20 -0
- package/common/types/account-detail.types.js.map +1 -0
- package/common/types/account-integration.types.d.ts +242 -0
- package/common/types/account-integration.types.js +121 -0
- package/common/types/account-integration.types.js.map +1 -0
- package/common/types/account-manager.types.d.ts +917 -0
- package/common/types/account-manager.types.js +89 -0
- package/common/types/account-manager.types.js.map +1 -0
- package/common/types/account-setting.types.d.ts +120 -0
- package/common/types/account-setting.types.js +44 -0
- package/common/types/account-setting.types.js.map +1 -0
- package/common/types/account.types.d.ts +595 -0
- package/common/types/account.types.js +214 -0
- package/common/types/account.types.js.map +1 -0
- package/common/types/activity.types.d.ts +580 -0
- package/common/types/activity.types.js +245 -0
- package/common/types/activity.types.js.map +1 -0
- package/common/types/address.types.d.ts +89 -0
- package/common/types/address.types.js +36 -0
- package/common/types/address.types.js.map +1 -0
- package/common/types/aic.types.d.ts +434 -0
- package/common/types/aic.types.js +170 -0
- package/common/types/aic.types.js.map +1 -0
- package/common/types/aml.types.d.ts +41 -0
- package/common/types/aml.types.js +16 -0
- package/common/types/aml.types.js.map +1 -0
- package/common/types/api-key-logs.types.d.ts +204 -0
- package/common/types/api-key-logs.types.js +52 -0
- package/common/types/api-key-logs.types.js.map +1 -0
- package/common/types/api-keys.types.d.ts +192 -0
- package/common/types/api-keys.types.js +57 -0
- package/common/types/api-keys.types.js.map +1 -0
- package/common/types/asset.types.d.ts +888 -0
- package/common/types/asset.types.js +280 -0
- package/common/types/asset.types.js.map +1 -0
- package/common/types/auth.types.d.ts +487 -0
- package/common/types/auth.types.js +279 -0
- package/common/types/auth.types.js.map +1 -0
- package/common/types/batch-jobs.types.d.ts +321 -0
- package/common/types/batch-jobs.types.js +111 -0
- package/common/types/batch-jobs.types.js.map +1 -0
- package/common/types/bonus-tier.types.d.ts +888 -0
- package/common/types/bonus-tier.types.js +130 -0
- package/common/types/bonus-tier.types.js.map +1 -0
- package/common/types/cap-table.types.d.ts +1124 -0
- package/common/types/cap-table.types.js +406 -0
- package/common/types/cap-table.types.js.map +1 -0
- package/common/types/cart.types.d.ts +28 -0
- package/common/types/cart.types.js +19 -0
- package/common/types/cart.types.js.map +1 -0
- package/common/types/checklist-items.types.d.ts +195 -0
- package/common/types/checklist-items.types.js +54 -0
- package/common/types/checklist-items.types.js.map +1 -0
- package/common/types/checklist.types.d.ts +140 -0
- package/common/types/checklist.types.js +71 -0
- package/common/types/checklist.types.js.map +1 -0
- package/common/types/common.types.d.ts +1495 -0
- package/common/types/common.types.js +1430 -0
- package/common/types/common.types.js.map +1 -0
- package/common/types/comply-advantage-api.types.d.ts +3959 -0
- package/common/types/comply-advantage-api.types.js +270 -0
- package/common/types/comply-advantage-api.types.js.map +1 -0
- package/common/types/comply-advantage.types.d.ts +48 -0
- package/common/types/comply-advantage.types.js +21 -0
- package/common/types/comply-advantage.types.js.map +1 -0
- package/common/types/contact-us.types.d.ts +126 -0
- package/common/types/contact-us.types.js +91 -0
- package/common/types/contact-us.types.js.map +1 -0
- package/common/types/countries.types.d.ts +77 -0
- package/common/types/countries.types.js +349 -0
- package/common/types/countries.types.js.map +1 -0
- package/common/types/covered-person.types.d.ts +204 -0
- package/common/types/covered-person.types.js +234 -0
- package/common/types/covered-person.types.js.map +1 -0
- package/common/types/dashboard.types.d.ts +2086 -0
- package/common/types/dashboard.types.js +690 -0
- package/common/types/dashboard.types.js.map +1 -0
- package/common/types/data-record.types.d.ts +347 -0
- package/common/types/data-record.types.js +261 -0
- package/common/types/data-record.types.js.map +1 -0
- package/common/types/data-room.types.d.ts +1277 -0
- package/common/types/data-room.types.js +167 -0
- package/common/types/data-room.types.js.map +1 -0
- package/common/types/default-theme-config.types.d.ts +445 -0
- package/common/types/default-theme-config.types.js +63 -0
- package/common/types/default-theme-config.types.js.map +1 -0
- package/common/types/disbursement-adjustment.types.d.ts +21 -0
- package/common/types/disbursement-adjustment.types.js +25 -0
- package/common/types/disbursement-adjustment.types.js.map +1 -0
- package/common/types/disbursement-approval-user.types.d.ts +935 -0
- package/common/types/disbursement-approval-user.types.js +68 -0
- package/common/types/disbursement-approval-user.types.js.map +1 -0
- package/common/types/disbursement-review.types.d.ts +923 -0
- package/common/types/disbursement-review.types.js +76 -0
- package/common/types/disbursement-review.types.js.map +1 -0
- package/common/types/disbursement-transaction.types.d.ts +621 -0
- package/common/types/disbursement-transaction.types.js +51 -0
- package/common/types/disbursement-transaction.types.js.map +1 -0
- package/common/types/disbursements.types.d.ts +2343 -0
- package/common/types/disbursements.types.js +308 -0
- package/common/types/disbursements.types.js.map +1 -0
- package/common/types/domain-filter.types.d.ts +135 -0
- package/common/types/domain-filter.types.js +40 -0
- package/common/types/domain-filter.types.js.map +1 -0
- package/common/types/email-theme.types.d.ts +1359 -0
- package/common/types/email-theme.types.js +318 -0
- package/common/types/email-theme.types.js.map +1 -0
- package/common/types/entity.types.d.ts +21 -0
- package/common/types/entity.types.js +14 -0
- package/common/types/entity.types.js.map +1 -0
- package/common/types/error-responses.types.d.ts +144 -0
- package/common/types/error-responses.types.js +125 -0
- package/common/types/error-responses.types.js.map +1 -0
- package/common/types/escrow-account.types.d.ts +398 -0
- package/common/types/escrow-account.types.js +75 -0
- package/common/types/escrow-account.types.js.map +1 -0
- package/common/types/exchange-api-key.types.d.ts +1010 -0
- package/common/types/exchange-api-key.types.js +90 -0
- package/common/types/exchange-api-key.types.js.map +1 -0
- package/common/types/exchange-import.types.d.ts +23 -0
- package/common/types/exchange-import.types.js +23 -0
- package/common/types/exchange-import.types.js.map +1 -0
- package/common/types/exchange-provider.types.d.ts +1308 -0
- package/common/types/exchange-provider.types.js +268 -0
- package/common/types/exchange-provider.types.js.map +1 -0
- package/common/types/file.types.d.ts +401 -0
- package/common/types/file.types.js +378 -0
- package/common/types/file.types.js.map +1 -0
- package/common/types/health.types.d.ts +112 -0
- package/common/types/health.types.js +22 -0
- package/common/types/health.types.js.map +1 -0
- package/common/types/i-will-do-it-later.types.d.ts +51 -0
- package/common/types/i-will-do-it-later.types.js +30 -0
- package/common/types/i-will-do-it-later.types.js.map +1 -0
- package/common/types/{index.ts → index.d.ts} +3 -3
- package/common/types/index.js +52 -0
- package/common/types/index.js.map +1 -0
- package/common/types/individuals.types.d.ts +1899 -0
- package/common/types/individuals.types.js +500 -0
- package/common/types/individuals.types.js.map +1 -0
- package/common/types/investor-account.types.d.ts +2996 -0
- package/common/types/investor-account.types.js +930 -0
- package/common/types/investor-account.types.js.map +1 -0
- package/common/types/investorAccountIdSchema.type.js +1 -0
- package/common/types/investorAccountIdSchema.type.js.map +1 -0
- package/common/types/investors-offering.types.d.ts +391 -0
- package/common/types/investors-offering.types.js +49 -0
- package/common/types/investors-offering.types.js.map +1 -0
- package/common/types/invite.types.d.ts +641 -0
- package/common/types/invite.types.js +113 -0
- package/common/types/invite.types.js.map +1 -0
- package/common/types/issuer-bank-account.types.d.ts +385 -0
- package/common/types/issuer-bank-account.types.js +81 -0
- package/common/types/issuer-bank-account.types.js.map +1 -0
- package/common/types/issuer-offering.types.d.ts +1245 -0
- package/common/types/issuer-offering.types.js +344 -0
- package/common/types/issuer-offering.types.js.map +1 -0
- package/common/types/issuer-payment-method.types.d.ts +1100 -0
- package/common/types/issuer-payment-method.types.js +311 -0
- package/common/types/issuer-payment-method.types.js.map +1 -0
- package/common/types/issuer.types.d.ts +539 -0
- package/common/types/issuer.types.js +275 -0
- package/common/types/issuer.types.js.map +1 -0
- package/common/types/job-item.types.d.ts +230 -0
- package/common/types/job-item.types.js +89 -0
- package/common/types/job-item.types.js.map +1 -0
- package/common/types/jobs.types.d.ts +296 -0
- package/common/types/jobs.types.js +150 -0
- package/common/types/jobs.types.js.map +1 -0
- package/common/types/kyb.types.d.ts +167 -0
- package/common/types/kyb.types.js +45 -0
- package/common/types/kyb.types.js.map +1 -0
- package/common/types/kyc.types.d.ts +2197 -0
- package/common/types/kyc.types.js +301 -0
- package/common/types/kyc.types.js.map +1 -0
- package/common/types/legal-entity.types.d.ts +638 -0
- package/common/types/legal-entity.types.js +148 -0
- package/common/types/legal-entity.types.js.map +1 -0
- package/common/types/login-history.types.d.ts +160 -0
- package/common/types/login-history.types.js +39 -0
- package/common/types/login-history.types.js.map +1 -0
- package/common/types/mail-template.types.d.ts +595 -0
- package/common/types/mail-template.types.js +401 -0
- package/common/types/mail-template.types.js.map +1 -0
- package/common/types/north-cap-integration.types.d.ts +1303 -0
- package/common/types/north-cap-integration.types.js +145 -0
- package/common/types/north-cap-integration.types.js.map +1 -0
- package/common/types/note.types.d.ts +216 -0
- package/common/types/note.types.js +82 -0
- package/common/types/note.types.js.map +1 -0
- package/common/types/notification.types.d.ts +2689 -0
- package/common/types/notification.types.js +408 -0
- package/common/types/notification.types.js.map +1 -0
- package/common/types/notion-api.types.d.ts +3626 -0
- package/common/types/notion-api.types.js +271 -0
- package/common/types/notion-api.types.js.map +1 -0
- package/common/types/notion-database.types.d.ts +191 -0
- package/common/types/notion-database.types.js +95 -0
- package/common/types/notion-database.types.js.map +1 -0
- package/common/types/notion-page.types.d.ts +3482 -0
- package/common/types/notion-page.types.js +208 -0
- package/common/types/notion-page.types.js.map +1 -0
- package/common/types/offering-reports.types.d.ts +525 -0
- package/common/types/offering-reports.types.js +111 -0
- package/common/types/offering-reports.types.js.map +1 -0
- package/common/types/offering-submission.types.d.ts +587 -0
- package/common/types/offering-submission.types.js +278 -0
- package/common/types/offering-submission.types.js.map +1 -0
- package/common/types/offering.types.d.ts +2335 -0
- package/common/types/offering.types.js +505 -0
- package/common/types/offering.types.js.map +1 -0
- package/common/types/page-revision.types.d.ts +74 -0
- package/common/types/page-revision.types.js +68 -0
- package/common/types/page-revision.types.js.map +1 -0
- package/common/types/page.types.d.ts +540 -0
- package/common/types/page.types.js +361 -0
- package/common/types/page.types.js.map +1 -0
- package/common/types/password.type.d.ts +2 -0
- package/common/types/password.type.js +14 -0
- package/common/types/password.type.js.map +1 -0
- package/common/types/payment-methods.types.d.ts +800 -0
- package/common/types/payment-methods.types.js +260 -0
- package/common/types/payment-methods.types.js.map +1 -0
- package/common/types/phone.type.d.ts +12 -0
- package/common/types/phone.type.js +29 -0
- package/common/types/phone.type.js.map +1 -0
- package/common/types/portfolio.types.d.ts +185 -0
- package/common/types/portfolio.types.js +36 -0
- package/common/types/portfolio.types.js.map +1 -0
- package/common/types/privacy-policy-and-tos.types.d.ts +2 -0
- package/common/types/{privacy-policy-and-tos.types.ts → privacy-policy-and-tos.types.js} +1 -1
- package/common/types/privacy-policy-and-tos.types.js.map +1 -0
- package/common/types/queue.types.d.ts +22 -0
- package/common/types/queue.types.js +73 -0
- package/common/types/queue.types.js.map +1 -0
- package/common/types/registered-reps.types.d.ts +6 -0
- package/common/types/registered-reps.types.js +21 -0
- package/common/types/registered-reps.types.js.map +1 -0
- package/common/types/rejection-reasons.types.d.ts +35 -0
- package/common/types/rejection-reasons.types.js +49 -0
- package/common/types/rejection-reasons.types.js.map +1 -0
- package/common/types/review.types.d.ts +419 -0
- package/common/types/review.types.js +101 -0
- package/common/types/review.types.js.map +1 -0
- package/common/types/role.types.d.ts +30 -0
- package/common/types/role.types.js +21 -0
- package/common/types/role.types.js.map +1 -0
- package/common/types/secondary-customer.types.d.ts +586 -0
- package/common/types/secondary-customer.types.js +39 -0
- package/common/types/secondary-customer.types.js.map +1 -0
- package/common/types/secondary-issuer.types.d.ts +283 -0
- package/common/types/secondary-issuer.types.js +37 -0
- package/common/types/secondary-issuer.types.js.map +1 -0
- package/common/types/secondary-order.types.d.ts +508 -0
- package/common/types/secondary-order.types.js +40 -0
- package/common/types/secondary-order.types.js.map +1 -0
- package/common/types/secondary-security.types.d.ts +175 -0
- package/common/types/secondary-security.types.js +45 -0
- package/common/types/secondary-security.types.js.map +1 -0
- package/common/types/secondary-trade.entity.d.ts +16 -0
- package/common/types/secondary-trade.entity.js +12 -0
- package/common/types/secondary-trade.entity.js.map +1 -0
- package/common/types/secondary-trade.types.d.ts +465 -0
- package/common/types/secondary-trade.types.js +61 -0
- package/common/types/secondary-trade.types.js.map +1 -0
- package/common/types/secure-request.types.d.ts +171 -0
- package/common/types/secure-request.types.js +51 -0
- package/common/types/secure-request.types.js.map +1 -0
- package/common/types/signer.types.d.ts +3394 -0
- package/common/types/signer.types.js +517 -0
- package/common/types/signer.types.js.map +1 -0
- package/common/types/site-link.types.d.ts +875 -0
- package/common/types/site-link.types.js +126 -0
- package/common/types/site-link.types.js.map +1 -0
- package/common/types/site-settings.types.d.ts +1673 -0
- package/common/types/site-settings.types.js +500 -0
- package/common/types/site-settings.types.js.map +1 -0
- package/common/types/site.types.d.ts +1476 -0
- package/common/types/site.types.js +213 -0
- package/common/types/site.types.js.map +1 -0
- package/common/types/sms.types.d.ts +40 -0
- package/common/types/sms.types.js +27 -0
- package/common/types/sms.types.js.map +1 -0
- package/common/types/state-machine.types.d.ts +591 -0
- package/common/types/state-machine.types.js +144 -0
- package/common/types/state-machine.types.js.map +1 -0
- package/common/types/states.types.d.ts +77 -0
- package/common/types/states.types.js +137 -0
- package/common/types/states.types.js.map +1 -0
- package/common/types/subdoc-preview.types.d.ts +379 -0
- package/common/types/subdoc-preview.types.js +24 -0
- package/common/types/subdoc-preview.types.js.map +1 -0
- package/common/types/task.types.d.ts +537 -0
- package/common/types/task.types.js +211 -0
- package/common/types/task.types.js.map +1 -0
- package/common/types/trade-adjustment.type.d.ts +40 -0
- package/common/types/trade-adjustment.type.js +26 -0
- package/common/types/trade-adjustment.type.js.map +1 -0
- package/common/types/trade-line-item.types.d.ts +312 -0
- package/common/types/trade-line-item.types.js +89 -0
- package/common/types/trade-line-item.types.js.map +1 -0
- package/common/types/trade.types.d.ts +1987 -0
- package/common/types/trade.types.js +780 -0
- package/common/types/trade.types.js.map +1 -0
- package/common/types/transaction.types.d.ts +375 -0
- package/common/types/transaction.types.js +154 -0
- package/common/types/transaction.types.js.map +1 -0
- package/common/types/trusted-contact.types.d.ts +440 -0
- package/common/types/trusted-contact.types.js +95 -0
- package/common/types/trusted-contact.types.js.map +1 -0
- package/common/types/typography.types.d.ts +52 -0
- package/common/types/typography.types.js +67 -0
- package/common/types/typography.types.js.map +1 -0
- package/common/types/user-manual.types.d.ts +287 -0
- package/common/types/user-manual.types.js +192 -0
- package/common/types/user-manual.types.js.map +1 -0
- package/common/types/user-setting.types.d.ts +273 -0
- package/common/types/user-setting.types.js +85 -0
- package/common/types/user-setting.types.js.map +1 -0
- package/common/types/user.types.d.ts +1946 -0
- package/common/types/user.types.js +237 -0
- package/common/types/user.types.js.map +1 -0
- package/common/types/webhook.types.d.ts +10829 -0
- package/common/types/webhook.types.js +658 -0
- package/common/types/webhook.types.js.map +1 -0
- package/common/types/zip.type.d.ts +35 -0
- package/common/types/zip.type.js +28 -0
- package/common/types/zip.type.js.map +1 -0
- package/contracts/clients/accounts/index.d.ts +308 -0
- package/contracts/clients/accounts/index.js +43 -0
- package/contracts/clients/accounts/index.js.map +1 -0
- package/contracts/clients/aic/index.d.ts +280 -0
- package/contracts/clients/aic/index.js +47 -0
- package/contracts/clients/aic/index.js.map +1 -0
- package/contracts/clients/api-key-logs/index.d.ts +287 -0
- package/contracts/clients/api-key-logs/index.js +37 -0
- package/contracts/clients/api-key-logs/index.js.map +1 -0
- package/contracts/clients/api-keys/index.d.ts +374 -0
- package/contracts/clients/api-keys/index.js +59 -0
- package/contracts/clients/api-keys/index.js.map +1 -0
- package/contracts/clients/assets/index.d.ts +1028 -0
- package/contracts/clients/assets/index.js +80 -0
- package/contracts/clients/assets/index.js.map +1 -0
- package/contracts/clients/auth/index.d.ts +236 -0
- package/contracts/clients/auth/index.js +38 -0
- package/contracts/clients/auth/index.js.map +1 -0
- package/contracts/clients/cart/index.d.ts +229 -0
- package/contracts/clients/cart/index.js +63 -0
- package/contracts/clients/cart/index.js.map +1 -0
- package/contracts/clients/files/index.d.ts +552 -0
- package/contracts/clients/files/index.js +142 -0
- package/contracts/clients/files/index.js.map +1 -0
- package/contracts/clients/files-public/index.d.ts +552 -0
- package/contracts/clients/files-public/index.js +142 -0
- package/contracts/clients/files-public/index.js.map +1 -0
- package/contracts/clients/index.d.ts +12476 -0
- package/contracts/clients/index.js +52 -0
- package/contracts/clients/index.js.map +1 -0
- package/contracts/clients/individuals/index.d.ts +3199 -0
- package/contracts/clients/individuals/index.js +74 -0
- package/contracts/clients/individuals/index.js.map +1 -0
- package/contracts/clients/investor-accounts/index.d.ts +339 -0
- package/contracts/clients/investor-accounts/index.js +73 -0
- package/contracts/clients/investor-accounts/index.js.map +1 -0
- package/contracts/clients/issuer-payment-methods/index.d.ts +276 -0
- package/contracts/clients/issuer-payment-methods/index.js +24 -0
- package/contracts/clients/issuer-payment-methods/index.js.map +1 -0
- package/contracts/clients/issuers/index.d.ts +449 -0
- package/contracts/clients/issuers/index.js +75 -0
- package/contracts/clients/issuers/index.js.map +1 -0
- package/contracts/clients/kyc/index.d.ts +345 -0
- package/contracts/clients/kyc/index.js +49 -0
- package/contracts/clients/kyc/index.js.map +1 -0
- package/contracts/clients/legal-entities/index.d.ts +887 -0
- package/contracts/clients/legal-entities/index.js +74 -0
- package/contracts/clients/legal-entities/index.js.map +1 -0
- package/contracts/clients/offerings/index.d.ts +767 -0
- package/contracts/clients/offerings/index.js +95 -0
- package/contracts/clients/offerings/index.js.map +1 -0
- package/contracts/clients/payment-methods/index.d.ts +456 -0
- package/contracts/clients/payment-methods/index.js +68 -0
- package/contracts/clients/payment-methods/index.js.map +1 -0
- package/contracts/clients/secure-requests/index.d.ts +100 -0
- package/contracts/clients/secure-requests/index.js +22 -0
- package/contracts/clients/secure-requests/index.js.map +1 -0
- package/contracts/clients/sites/index.d.ts +657 -0
- package/contracts/clients/sites/index.js +40 -0
- package/contracts/clients/sites/index.js.map +1 -0
- package/contracts/clients/trade-line-items/index.d.ts +216 -0
- package/contracts/clients/trade-line-items/index.js +47 -0
- package/contracts/clients/trade-line-items/index.js.map +1 -0
- package/contracts/clients/trades/index.d.ts +865 -0
- package/contracts/clients/trades/index.js +156 -0
- package/contracts/clients/trades/index.js.map +1 -0
- package/contracts/clients/transactions/index.d.ts +88 -0
- package/contracts/clients/transactions/index.js +25 -0
- package/contracts/clients/transactions/index.js.map +1 -0
- package/package.json +15 -15
- package/common/helpers/index.ts +0 -59
- package/common/types/account-contact.types.ts +0 -99
- package/common/types/account-detail.types.ts +0 -27
- package/common/types/account-integration.types.ts +0 -143
- package/common/types/account-manager.types.ts +0 -120
- package/common/types/account-setting.types.ts +0 -65
- package/common/types/account.types.ts +0 -297
- package/common/types/activity.types.ts +0 -274
- package/common/types/address.types.ts +0 -41
- package/common/types/aic.types.ts +0 -246
- package/common/types/aml.types.ts +0 -18
- package/common/types/api-key-logs.types.ts +0 -66
- package/common/types/api-keys.types.ts +0 -69
- package/common/types/asset.types.ts +0 -338
- package/common/types/auth.types.ts +0 -359
- package/common/types/batch-jobs.types.ts +0 -151
- package/common/types/bonus-tier.types.ts +0 -180
- package/common/types/cart.types.ts +0 -21
- package/common/types/checklist-items.types.ts +0 -70
- package/common/types/checklist.types.ts +0 -97
- package/common/types/common.types.ts +0 -1552
- package/common/types/comply-advantage-api.types.ts +0 -316
- package/common/types/comply-advantage.types.ts +0 -25
- package/common/types/contact-us.types.ts +0 -111
- package/common/types/countries.types.ts +0 -375
- package/common/types/covered-person.types.ts +0 -275
- package/common/types/dashboard.types.ts +0 -792
- package/common/types/data-record.types.ts +0 -325
- package/common/types/data-room.types.ts +0 -242
- package/common/types/default-theme-config.types.ts +0 -87
- package/common/types/disbursement-adjustment.types.ts +0 -32
- package/common/types/disbursement-approval-user.types.ts +0 -100
- package/common/types/disbursement-review.types.ts +0 -110
- package/common/types/disbursement-transaction.types.ts +0 -72
- package/common/types/disbursements.types.ts +0 -426
- package/common/types/domain-filter.types.ts +0 -55
- package/common/types/email-theme.types.ts +0 -442
- package/common/types/entity.types.ts +0 -15
- package/common/types/error-responses.types.ts +0 -135
- package/common/types/escrow-account.types.ts +0 -104
- package/common/types/exchange-api-key.types.ts +0 -121
- package/common/types/exchange-import.types.ts +0 -36
- package/common/types/exchange-provider.types.ts +0 -329
- package/common/types/file.types.ts +0 -477
- package/common/types/health.types.ts +0 -29
- package/common/types/i-will-do-it-later.types.ts +0 -68
- package/common/types/individuals.types.ts +0 -542
- package/common/types/investor-account.types.ts +0 -1240
- package/common/types/investors-offering.types.ts +0 -65
- package/common/types/invite.types.ts +0 -159
- package/common/types/issuer-bank-account.types.ts +0 -107
- package/common/types/issuer-offering.types.ts +0 -389
- package/common/types/issuer-payment-method.types.ts +0 -382
- package/common/types/issuer.types.ts +0 -321
- package/common/types/job-item.types.ts +0 -119
- package/common/types/jobs.types.ts +0 -171
- package/common/types/kyb.types.ts +0 -53
- package/common/types/kyc.types.ts +0 -188
- package/common/types/legal-entity.types.ts +0 -186
- package/common/types/login-history.types.ts +0 -46
- package/common/types/mail-template.types.ts +0 -470
- package/common/types/north-cap-integration.types.ts +0 -190
- package/common/types/note.types.ts +0 -109
- package/common/types/notification.types.ts +0 -554
- package/common/types/notion-api.types.ts +0 -374
- package/common/types/notion-database.types.ts +0 -125
- package/common/types/notion-page.types.ts +0 -267
- package/common/types/offering-reports.types.ts +0 -153
- package/common/types/offering-submission.types.ts +0 -314
- package/common/types/offering.types.ts +0 -676
- package/common/types/page-revision.types.ts +0 -86
- package/common/types/page.types.ts +0 -436
- package/common/types/password.type.ts +0 -15
- package/common/types/payment-methods.types.ts +0 -298
- package/common/types/phone.type.ts +0 -27
- package/common/types/portfolio.types.ts +0 -50
- package/common/types/queue.types.ts +0 -112
- package/common/types/registered-reps.types.ts +0 -25
- package/common/types/rejection-reasons.types.ts +0 -56
- package/common/types/reminder-config.types.ts +0 -40
- package/common/types/review.types.ts +0 -133
- package/common/types/role.types.ts +0 -26
- package/common/types/secondary-customer.types.ts +0 -66
- package/common/types/secondary-issuer.types.ts +0 -50
- package/common/types/secondary-order.types.ts +0 -58
- package/common/types/secondary-security.types.ts +0 -60
- package/common/types/secondary-trade.entity.ts +0 -16
- package/common/types/secondary-trade.types.ts +0 -95
- package/common/types/secure-request.types.ts +0 -68
- package/common/types/signer.types.ts +0 -651
- package/common/types/site-link.types.ts +0 -166
- package/common/types/site-settings.types.ts +0 -727
- package/common/types/site.types.ts +0 -263
- package/common/types/sms.types.ts +0 -30
- package/common/types/state-machine.types.ts +0 -177
- package/common/types/states.types.ts +0 -163
- package/common/types/subdoc-preview.types.ts +0 -35
- package/common/types/task.types.ts +0 -258
- package/common/types/trade-adjustment.type.ts +0 -33
- package/common/types/trade-line-item.types.ts +0 -125
- package/common/types/trade.types.ts +0 -1045
- package/common/types/transaction.types.ts +0 -209
- package/common/types/trusted-contact.types.ts +0 -122
- package/common/types/typography.types.ts +0 -75
- package/common/types/user-manual.types.ts +0 -290
- package/common/types/user-setting.types.ts +0 -133
- package/common/types/user.types.ts +0 -304
- package/common/types/webhook.types.ts +0 -730
- package/common/types/zip.type.ts +0 -36
- package/contracts/clients/accounts/index.ts +0 -61
- package/contracts/clients/aic/index.ts +0 -59
- package/contracts/clients/api-key-logs/index.ts +0 -53
- package/contracts/clients/api-keys/index.ts +0 -73
- package/contracts/clients/assets/index.ts +0 -102
- package/contracts/clients/auth/index.ts +0 -50
- package/contracts/clients/cart/index.ts +0 -80
- package/contracts/clients/files/index.ts +0 -166
- package/contracts/clients/files-public/index.ts +0 -166
- package/contracts/clients/index.ts +0 -54
- package/contracts/clients/individuals/index.ts +0 -93
- package/contracts/clients/investor-accounts/index.ts +0 -93
- package/contracts/clients/issuer-payment-methods/index.ts +0 -39
- package/contracts/clients/issuers/index.ts +0 -94
- package/contracts/clients/legal-entities/index.ts +0 -93
- package/contracts/clients/offerings/index.ts +0 -117
- package/contracts/clients/payment-methods/index.ts +0 -85
- package/contracts/clients/secure-requests/index.ts +0 -34
- package/contracts/clients/sites/index.ts +0 -56
- package/contracts/clients/trade-line-items/index.ts +0 -66
- package/contracts/clients/trades/index.ts +0 -186
- package/contracts/clients/transactions/index.ts +0 -37
- package/index.ts +0 -10
- /package/common/types/{investorAccountIdSchema.type.ts → investorAccountIdSchema.type.d.ts} +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AccountZod, IPaginationMeta, OfferingType } from './common.types';
|
|
3
|
-
import { IBaseEntity } from './entity.types';
|
|
4
|
-
import { accountIdSchema } from './account.types';
|
|
5
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
6
|
-
extendZodWithOpenApi(z);
|
|
7
|
-
|
|
8
|
-
export const InvestorsOffering = IBaseEntity.extend({
|
|
9
|
-
name: z.string(),
|
|
10
|
-
tid: z.string().nullable(),
|
|
11
|
-
type: z.nativeEnum(OfferingType).nullable(),
|
|
12
|
-
raiseAmount: z.coerce.number().nullable(),
|
|
13
|
-
minInvestment: z.coerce.number().nullable(),
|
|
14
|
-
maxInvestment: z.coerce.number().nullable(),
|
|
15
|
-
contingencyAmount: z.coerce.number().nullable(),
|
|
16
|
-
startAt: z.date().nullable(),
|
|
17
|
-
endAt: z.date().nullable(),
|
|
18
|
-
platform: z.string(),
|
|
19
|
-
platformSettings: z.string().nullable(),
|
|
20
|
-
enabled: z.boolean(),
|
|
21
|
-
accountId: z.string().nullable(),
|
|
22
|
-
account: AccountZod.optional().nullable(),
|
|
23
|
-
});
|
|
24
|
-
export type InvestorsOffering = z.infer<typeof InvestorsOffering>;
|
|
25
|
-
|
|
26
|
-
export const InvestorsPaginatedOffering = z.object({
|
|
27
|
-
items: z.array(InvestorsOffering),
|
|
28
|
-
meta: IPaginationMeta,
|
|
29
|
-
});
|
|
30
|
-
export type InvestorsPaginatedOffering = z.infer<
|
|
31
|
-
typeof InvestorsPaginatedOffering
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
const investorsOfferingsInclude = z.enum(['account', 'assets', 'issuer']);
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @description Query parameters for including related entities
|
|
38
|
-
* @xample in contract us as -> query: z.object({}).merge(UsersIncludeQuery),
|
|
39
|
-
*/
|
|
40
|
-
export const InvestorsOfferingsIncludeQuery = z.object({
|
|
41
|
-
include: z
|
|
42
|
-
.string()
|
|
43
|
-
.optional()
|
|
44
|
-
.transform((str) => (str ? str.split(',') : []))
|
|
45
|
-
.refine(
|
|
46
|
-
(includes) =>
|
|
47
|
-
includes.every((include) =>
|
|
48
|
-
investorsOfferingsInclude.options.includes(include as any),
|
|
49
|
-
),
|
|
50
|
-
{
|
|
51
|
-
message: `Invalid include option provided. Valid options are: ${investorsOfferingsInclude.options.join(',')}`,
|
|
52
|
-
},
|
|
53
|
-
)
|
|
54
|
-
.openapi({
|
|
55
|
-
example: `${investorsOfferingsInclude.options.join(',')}`,
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
58
|
-
export interface InvestorsOfferingsIncludeQuery
|
|
59
|
-
extends z.infer<typeof InvestorsOfferingsIncludeQuery> {}
|
|
60
|
-
|
|
61
|
-
export const InvestorsOfferingFiltersZod = z.object({
|
|
62
|
-
name: z.string().optional(),
|
|
63
|
-
accountId: accountIdSchema.optional(),
|
|
64
|
-
issuerId: z.string().optional(),
|
|
65
|
-
});
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
AccountZod,
|
|
4
|
-
IPaginationMeta,
|
|
5
|
-
IssuerRole,
|
|
6
|
-
PortalType,
|
|
7
|
-
UserRole,
|
|
8
|
-
EmailSchema,
|
|
9
|
-
} from './common.types';
|
|
10
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
11
|
-
import { TypeID } from 'typeid-js';
|
|
12
|
-
import { roleIdSchema, RoleZod } from './role.types';
|
|
13
|
-
import { accountIdSchema } from './account.types';
|
|
14
|
-
extendZodWithOpenApi(z);
|
|
15
|
-
export const inviteIdSchema = z.string().refine(
|
|
16
|
-
(value) => {
|
|
17
|
-
try {
|
|
18
|
-
const tid = TypeID.fromString(value);
|
|
19
|
-
return tid.getType() === 'invite';
|
|
20
|
-
} catch {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
message: `Invalid invite ID format. Must be a valid TypeID with "invite" prefix. Example: invite_01j5y5ghx5fg68d663j1fvy2x7`,
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
export const InviteWithoutSecretZod = z.object({
|
|
29
|
-
id: z.string(),
|
|
30
|
-
email: z.string().email(),
|
|
31
|
-
code: z.string(),
|
|
32
|
-
roleId: roleIdSchema.nullable(),
|
|
33
|
-
role: RoleZod.nullable().optional(),
|
|
34
|
-
used: z.boolean(),
|
|
35
|
-
createdAt: z.date(),
|
|
36
|
-
updatedAt: z.date(),
|
|
37
|
-
deletedAt: z.date().nullable(),
|
|
38
|
-
account: AccountZod.nullable().optional(),
|
|
39
|
-
});
|
|
40
|
-
export type InviteWithoutSecretZod = z.infer<typeof InviteWithoutSecretZod>;
|
|
41
|
-
export const IPaginatedInvite = z.object({
|
|
42
|
-
items: z.array(InviteWithoutSecretZod),
|
|
43
|
-
meta: IPaginationMeta,
|
|
44
|
-
});
|
|
45
|
-
export type InviteWithSecretZod = z.infer<typeof InviteWithoutSecretZod>;
|
|
46
|
-
|
|
47
|
-
export const InviteWithUrl = InviteWithoutSecretZod.extend({
|
|
48
|
-
url: z.string(),
|
|
49
|
-
});
|
|
50
|
-
export type InviteWithUrl = z.infer<typeof InviteWithUrl>;
|
|
51
|
-
|
|
52
|
-
export const PostIssuerInviteZod = z.object({
|
|
53
|
-
email: EmailSchema,
|
|
54
|
-
role: z.nativeEnum(IssuerRole),
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export type PostIssuerInviteZod = z.infer<typeof PostIssuerInviteZod>;
|
|
58
|
-
|
|
59
|
-
export const IssuerInvitesFiltersZod = z.object({
|
|
60
|
-
role: z
|
|
61
|
-
.nativeEnum(UserRole)
|
|
62
|
-
.optional()
|
|
63
|
-
.refine((role) => !role || Object.values(UserRole).includes(role), {
|
|
64
|
-
message: 'Role must be a valid issuer role, such as OWNER or MARKETER',
|
|
65
|
-
}),
|
|
66
|
-
used: z
|
|
67
|
-
.string()
|
|
68
|
-
.optional()
|
|
69
|
-
.transform((val) => {
|
|
70
|
-
if (val === 'true') return true;
|
|
71
|
-
if (val === 'false') return false;
|
|
72
|
-
if (val === '') return undefined;
|
|
73
|
-
return;
|
|
74
|
-
}),
|
|
75
|
-
email: z.string().optional(),
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
export type IssuerInvitesFiltersZod = z.infer<typeof IssuerInvitesFiltersZod>;
|
|
79
|
-
|
|
80
|
-
export const IssuerVerifyInviteResponse = z.object({
|
|
81
|
-
valid: z.boolean(),
|
|
82
|
-
email: z.string().email().nullable(),
|
|
83
|
-
existingLogin: z.boolean().nullable().optional(),
|
|
84
|
-
accountName: z.string().nullable().optional(),
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export type IssuerVerifyInviteResponse = z.infer<
|
|
88
|
-
typeof IssuerVerifyInviteResponse
|
|
89
|
-
>;
|
|
90
|
-
|
|
91
|
-
export const IssuerInvitesDecisionResponse = z.object({
|
|
92
|
-
message: z.string(),
|
|
93
|
-
});
|
|
94
|
-
export type IssuerInvitesDecisionResponse = z.infer<
|
|
95
|
-
typeof IssuerInvitesDecisionResponse
|
|
96
|
-
>;
|
|
97
|
-
|
|
98
|
-
const invitesInclude = z.enum(['user', 'role']);
|
|
99
|
-
|
|
100
|
-
export const InvitesIncludeQuery = z.object({
|
|
101
|
-
include: z
|
|
102
|
-
.string()
|
|
103
|
-
.optional()
|
|
104
|
-
.transform((str) => (str ? str.split(',') : []))
|
|
105
|
-
.refine(
|
|
106
|
-
(includes) =>
|
|
107
|
-
includes.every((include) =>
|
|
108
|
-
invitesInclude.options.includes(include as any),
|
|
109
|
-
),
|
|
110
|
-
{
|
|
111
|
-
message: `Invalid include option provided. Valid options are: ${invitesInclude.options.join(',')}`,
|
|
112
|
-
},
|
|
113
|
-
)
|
|
114
|
-
.openapi({
|
|
115
|
-
example: `${invitesInclude.options.join(',')}`,
|
|
116
|
-
}),
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
export const PatchInviteRoleZod = z.object({
|
|
120
|
-
role: z.nativeEnum(UserRole).openapi({
|
|
121
|
-
example: UserRole.OWNER,
|
|
122
|
-
}),
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
export type PatchInviteRoleZod = z.infer<typeof PatchInviteRoleZod>;
|
|
126
|
-
|
|
127
|
-
export const PatchInviteForComplianceZod = PatchInviteRoleZod.extend({
|
|
128
|
-
accountId: accountIdSchema.optional().openapi({
|
|
129
|
-
example: 'account_01j5y5ghx5fg68d663j1fvy2x7',
|
|
130
|
-
}),
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
export type PatchInviteForComplianceZod = z.infer<
|
|
134
|
-
typeof PatchInviteForComplianceZod
|
|
135
|
-
>;
|
|
136
|
-
|
|
137
|
-
export const PostInviteZod = z.object({
|
|
138
|
-
email: EmailSchema,
|
|
139
|
-
role: z.nativeEnum(UserRole).openapi({
|
|
140
|
-
example: UserRole.ADMIN,
|
|
141
|
-
}),
|
|
142
|
-
accountId: z.string().optional().openapi({
|
|
143
|
-
example: 'account_01j5y5ghx5fg68d663j1fvy2x7',
|
|
144
|
-
}),
|
|
145
|
-
portalType: z.nativeEnum(PortalType).optional().openapi({
|
|
146
|
-
example: PortalType.ISSUER,
|
|
147
|
-
}),
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
export type PostInviteZod = z.infer<typeof PostInviteZod>;
|
|
151
|
-
|
|
152
|
-
export const CompliancePostInviteZod = z.object({
|
|
153
|
-
email: EmailSchema,
|
|
154
|
-
role: z.nativeEnum(UserRole).openapi({
|
|
155
|
-
example: UserRole.ADMIN,
|
|
156
|
-
}),
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
export type CompliancePostInviteZod = z.infer<typeof CompliancePostInviteZod>;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { AccountZod, IPaginationMeta } from './common.types';
|
|
4
|
-
import { IBaseEntity } from './entity.types';
|
|
5
|
-
import { IIssuer, issuerIdSchema } from './issuer.types';
|
|
6
|
-
import { TypeID } from 'typeid-js';
|
|
7
|
-
import { accountIdSchema } from './account.types';
|
|
8
|
-
|
|
9
|
-
extendZodWithOpenApi(z);
|
|
10
|
-
|
|
11
|
-
export const issuerBankAccountIdSchema = z.string().refine(
|
|
12
|
-
(value) => {
|
|
13
|
-
try {
|
|
14
|
-
const tid = TypeID.fromString(value);
|
|
15
|
-
return tid.getType() === 'issuer_bank_account';
|
|
16
|
-
} catch {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
message:
|
|
22
|
-
'Invalid issuer ID format. Must be a valid TypeID with "issuer_bank_account" prefix.',
|
|
23
|
-
},
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
export const IIssuerBankAccount = IBaseEntity.extend({
|
|
27
|
-
accountNumber: z.string(),
|
|
28
|
-
accountHolder: z.string(),
|
|
29
|
-
routingNumber: z.string(),
|
|
30
|
-
nickName: z.string(),
|
|
31
|
-
accountId: z.string(),
|
|
32
|
-
account: AccountZod.optional().nullable(),
|
|
33
|
-
issuerId: issuerIdSchema,
|
|
34
|
-
issuer: z
|
|
35
|
-
.lazy(() => IIssuer)
|
|
36
|
-
.optional()
|
|
37
|
-
.nullable(),
|
|
38
|
-
});
|
|
39
|
-
export type IIssuerBankAccount = z.infer<typeof IIssuerBankAccount>;
|
|
40
|
-
|
|
41
|
-
export const IPaginatedIssuerBankAccount = z.object({
|
|
42
|
-
items: z.array(IIssuerBankAccount),
|
|
43
|
-
meta: IPaginationMeta,
|
|
44
|
-
});
|
|
45
|
-
export type IPaginatedIssuerBankAccount = z.infer<
|
|
46
|
-
typeof IPaginatedIssuerBankAccount
|
|
47
|
-
>;
|
|
48
|
-
export const PostIssuerBankAccount = z.object({
|
|
49
|
-
accountId: accountIdSchema.optional(),
|
|
50
|
-
issuerId: z.lazy(() => issuerIdSchema),
|
|
51
|
-
nickName: z.string().min(2).max(50).openapi({ example: 'Bulk' }),
|
|
52
|
-
accountNumber: z
|
|
53
|
-
.string()
|
|
54
|
-
.min(10, 'Account number must be at least 10 digits')
|
|
55
|
-
.max(18, 'Account number must not exceed 18 digits'),
|
|
56
|
-
routingNumber: z.string().min(9).max(9),
|
|
57
|
-
accountHolder: z.string().min(2).max(50),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export type PostIssuerBankAccount = z.infer<typeof PostIssuerBankAccount>;
|
|
61
|
-
|
|
62
|
-
const issuerBankAccountsInclude = z.enum([
|
|
63
|
-
'account',
|
|
64
|
-
'issuer',
|
|
65
|
-
'transactions',
|
|
66
|
-
'disbursements',
|
|
67
|
-
]);
|
|
68
|
-
/**
|
|
69
|
-
* @description Query parameters for including related entities
|
|
70
|
-
* @xample in contract us as -> query: z.object({}).merge(IssuerBankAccountsIncludeQuery),
|
|
71
|
-
*/
|
|
72
|
-
export const IssuerBankAccountsIncludeQuery = z.object({
|
|
73
|
-
include: z
|
|
74
|
-
.string()
|
|
75
|
-
.optional()
|
|
76
|
-
.transform((str) => (str ? str.split(',') : []))
|
|
77
|
-
.refine(
|
|
78
|
-
(includes) =>
|
|
79
|
-
includes.every((include) =>
|
|
80
|
-
issuerBankAccountsInclude.options.includes(include as any),
|
|
81
|
-
),
|
|
82
|
-
{
|
|
83
|
-
message: `Invalid include option provided. Valid options are: ${issuerBankAccountsInclude.options.join(',')}`,
|
|
84
|
-
},
|
|
85
|
-
)
|
|
86
|
-
.openapi({
|
|
87
|
-
example: `${issuerBankAccountsInclude.options.join(',')}`,
|
|
88
|
-
}),
|
|
89
|
-
});
|
|
90
|
-
export interface IssuerBankAccountsIncludeQuery
|
|
91
|
-
extends z.infer<typeof IssuerBankAccountsIncludeQuery> {}
|
|
92
|
-
|
|
93
|
-
export const IssuerBankAccountsFilter = z.object({
|
|
94
|
-
issuerId: z.lazy(() => issuerIdSchema).optional(),
|
|
95
|
-
accountId: accountIdSchema.optional(),
|
|
96
|
-
search: z.string().optional(),
|
|
97
|
-
});
|
|
98
|
-
export interface IssuerBankAccountsFilter
|
|
99
|
-
extends z.infer<typeof IssuerBankAccountsFilter> {}
|
|
100
|
-
|
|
101
|
-
export const PatchIssuerBankAccount = z.object({
|
|
102
|
-
nickName: z.string().min(2).max(50).optional(),
|
|
103
|
-
accountNumber: z.string().min(10).max(18).optional(),
|
|
104
|
-
routingNumber: z.string().min(9).max(9).optional(),
|
|
105
|
-
accountHolder: z.string().min(2).max(50).optional(),
|
|
106
|
-
});
|
|
107
|
-
export type PatchIssuerBankAccount = z.infer<typeof PatchIssuerBankAccount>;
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
AccountZod,
|
|
5
|
-
dateSchema,
|
|
6
|
-
IPaginationMeta,
|
|
7
|
-
OfferingType,
|
|
8
|
-
ManagedByType,
|
|
9
|
-
OfferingVersioningType,
|
|
10
|
-
ComplianceReview,
|
|
11
|
-
DurationType,
|
|
12
|
-
AssetType,
|
|
13
|
-
StringToBooleanSchema,
|
|
14
|
-
} from './common.types';
|
|
15
|
-
import { IBaseEntity } from './entity.types';
|
|
16
|
-
import { IIssuer, issuerIdSchema } from './issuer.types';
|
|
17
|
-
import { IAsset, postAssetRefinement, AssetTemplateType } from './asset.types';
|
|
18
|
-
import { fileIdSchema, FileZod } from './file.types';
|
|
19
|
-
import { accountIdSchema } from './account.types';
|
|
20
|
-
|
|
21
|
-
extendZodWithOpenApi(z);
|
|
22
|
-
|
|
23
|
-
export enum OfferingStatus {
|
|
24
|
-
ONBOARDING = 'ONBOARDING',
|
|
25
|
-
IN_COMPLIANCE_REVIEW = 'IN_COMPLIANCE_REVIEW',
|
|
26
|
-
ACTIVE = 'ACTIVE',
|
|
27
|
-
PAUSED = 'PAUSED',
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const IIssuerOffering = IBaseEntity.extend({
|
|
31
|
-
name: z.string(),
|
|
32
|
-
tid: z.string().nullable(),
|
|
33
|
-
description: z.string().nullable(),
|
|
34
|
-
type: z.nativeEnum(OfferingType).nullable(),
|
|
35
|
-
raiseAmount: z.number().nullable(),
|
|
36
|
-
targetAmount: z.number().nullable(),
|
|
37
|
-
minInvestment: z.number().nullable(),
|
|
38
|
-
maxInvestment: z.number().nullable(),
|
|
39
|
-
contingencyAmount: z.number().nullable(),
|
|
40
|
-
startAt: z.date().nullable(),
|
|
41
|
-
endAt: z.date().nullable(),
|
|
42
|
-
platform: z.string(),
|
|
43
|
-
platformSettings: z.string().nullable(),
|
|
44
|
-
enabled: z.boolean(),
|
|
45
|
-
accountId: z.string().nullable(),
|
|
46
|
-
account: AccountZod.optional().nullable(),
|
|
47
|
-
issuer: z
|
|
48
|
-
.lazy(() => IIssuer)
|
|
49
|
-
.optional()
|
|
50
|
-
.nullable(), // Use z.lazy here
|
|
51
|
-
issuerId: z.string().nullable(),
|
|
52
|
-
assets: z
|
|
53
|
-
.lazy(() => z.array(IAsset))
|
|
54
|
-
.nullable()
|
|
55
|
-
.optional(), // Use z.lazy here
|
|
56
|
-
cancellationPeriod: z.number().nullable(),
|
|
57
|
-
coverArtId: z
|
|
58
|
-
.lazy(() => fileIdSchema)
|
|
59
|
-
.nullable()
|
|
60
|
-
.optional(),
|
|
61
|
-
coverArt: z.lazy(() => FileZod).nullable(),
|
|
62
|
-
memorandumId: z
|
|
63
|
-
.lazy(() => fileIdSchema)
|
|
64
|
-
.optional()
|
|
65
|
-
.nullable(),
|
|
66
|
-
subscriptionAgreementId: z
|
|
67
|
-
.lazy(() => fileIdSchema)
|
|
68
|
-
.optional()
|
|
69
|
-
.nullable(),
|
|
70
|
-
managedBy: z.nativeEnum(ManagedByType).nullable(),
|
|
71
|
-
valuationCap: z.number().nullable(),
|
|
72
|
-
showTotalRaised: z.boolean().optional(),
|
|
73
|
-
status: z.nativeEnum(OfferingStatus).optional().nullable(),
|
|
74
|
-
});
|
|
75
|
-
export type IIssuerOffering = z.infer<typeof IIssuerOffering>;
|
|
76
|
-
|
|
77
|
-
export const IPaginatedIssuerOffering = z.object({
|
|
78
|
-
items: z.array(IIssuerOffering),
|
|
79
|
-
meta: IPaginationMeta,
|
|
80
|
-
});
|
|
81
|
-
export type IPaginatedIssuerOffering = z.infer<typeof IPaginatedIssuerOffering>;
|
|
82
|
-
export const PostIssuerOffering = z
|
|
83
|
-
.object({
|
|
84
|
-
issuerId: issuerIdSchema,
|
|
85
|
-
name: z.string().min(2).max(100).openapi({ example: 'Airbnb IPO' }),
|
|
86
|
-
type: z.nativeEnum(OfferingType).openapi({ example: OfferingType.REG_D }),
|
|
87
|
-
targetAmount: z
|
|
88
|
-
.number()
|
|
89
|
-
.min(0.01)
|
|
90
|
-
.max(10000000000)
|
|
91
|
-
.openapi({ example: 120000 }),
|
|
92
|
-
raiseAmount: z
|
|
93
|
-
.number()
|
|
94
|
-
.min(0)
|
|
95
|
-
.max(10000000000)
|
|
96
|
-
.optional()
|
|
97
|
-
.openapi({ example: 200000 }),
|
|
98
|
-
minInvestment: z
|
|
99
|
-
.number()
|
|
100
|
-
.min(0)
|
|
101
|
-
.max(10000000000)
|
|
102
|
-
.optional()
|
|
103
|
-
.openapi({ example: 1000 }),
|
|
104
|
-
maxInvestment: z
|
|
105
|
-
.number()
|
|
106
|
-
.min(0)
|
|
107
|
-
.max(10000000000)
|
|
108
|
-
.optional()
|
|
109
|
-
.openapi({ example: 20000 }),
|
|
110
|
-
contingencyAmount: z
|
|
111
|
-
.number()
|
|
112
|
-
.min(0)
|
|
113
|
-
.max(10000000000)
|
|
114
|
-
.optional()
|
|
115
|
-
.openapi({ example: 5000 }),
|
|
116
|
-
startAt: dateSchema.optional().openapi({ example: '10/20/2024' }),
|
|
117
|
-
endAt: dateSchema.optional().openapi({ example: '10/27/2024' }),
|
|
118
|
-
active: z.boolean().optional().openapi({ example: true }),
|
|
119
|
-
cancellationPeriod: z
|
|
120
|
-
.number()
|
|
121
|
-
.min(1)
|
|
122
|
-
.max(30)
|
|
123
|
-
.openapi({ example: 4 })
|
|
124
|
-
.optional()
|
|
125
|
-
.nullable(),
|
|
126
|
-
description: z
|
|
127
|
-
.string()
|
|
128
|
-
.min(1)
|
|
129
|
-
.max(1000)
|
|
130
|
-
.optional()
|
|
131
|
-
.nullable()
|
|
132
|
-
.openapi({ example: 'This is a description of the offering.' }),
|
|
133
|
-
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
134
|
-
assetName: z.string().min(2).max(50).openapi({ example: 'Asset name' }),
|
|
135
|
-
assetType: z.nativeEnum(AssetType).openapi({ example: AssetType.STOCK }),
|
|
136
|
-
pricePerUnit: z
|
|
137
|
-
.number()
|
|
138
|
-
.min(0.01)
|
|
139
|
-
.max(10000000000)
|
|
140
|
-
.nullable()
|
|
141
|
-
.openapi({ example: 2000 }),
|
|
142
|
-
totalUnits: z
|
|
143
|
-
.number()
|
|
144
|
-
.min(1)
|
|
145
|
-
.max(10000000000)
|
|
146
|
-
.nullable()
|
|
147
|
-
.openapi({ example: 5200 }),
|
|
148
|
-
yield: z
|
|
149
|
-
.number()
|
|
150
|
-
.min(0.01)
|
|
151
|
-
.max(10000000000)
|
|
152
|
-
.nullable()
|
|
153
|
-
.optional()
|
|
154
|
-
.openapi({ example: 1200 }),
|
|
155
|
-
duration: z
|
|
156
|
-
.number()
|
|
157
|
-
.min(1)
|
|
158
|
-
.max(1000)
|
|
159
|
-
.nullable()
|
|
160
|
-
.optional()
|
|
161
|
-
.openapi({ example: 1 }),
|
|
162
|
-
durationType: z
|
|
163
|
-
.nativeEnum(DurationType)
|
|
164
|
-
.nullable()
|
|
165
|
-
.optional()
|
|
166
|
-
.openapi({ example: DurationType.DAY }),
|
|
167
|
-
template: z
|
|
168
|
-
.nativeEnum(AssetTemplateType)
|
|
169
|
-
.default(AssetTemplateType.STANDARD)
|
|
170
|
-
.openapi({ example: AssetTemplateType.STANDARD }),
|
|
171
|
-
tiers: z.array(z.number().positive()).nullable().optional(),
|
|
172
|
-
enableBonus: z.boolean().default(false).optional(),
|
|
173
|
-
})
|
|
174
|
-
.superRefine((data, ctx) => {
|
|
175
|
-
// Check if both values are present, and if so, ensure minInvestment is less than maxInvestment
|
|
176
|
-
if (data.minInvestment && data.maxInvestment) {
|
|
177
|
-
if (data.minInvestment >= data.maxInvestment) {
|
|
178
|
-
ctx.addIssue({
|
|
179
|
-
path: ['minInvestment'],
|
|
180
|
-
message: 'Minimum investment must be less than maximum investment.',
|
|
181
|
-
code: z.ZodIssueCode.custom,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
// Apply asset-specific refinements
|
|
186
|
-
postAssetRefinement(data, ctx);
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
export type PostIssuerOffering = z.infer<typeof PostIssuerOffering>;
|
|
190
|
-
export const PatchIssuerOffering = z.object({
|
|
191
|
-
name: z
|
|
192
|
-
.string()
|
|
193
|
-
.min(2)
|
|
194
|
-
.max(100)
|
|
195
|
-
.optional()
|
|
196
|
-
.openapi({ example: 'Airbnb IPO' }),
|
|
197
|
-
type: z
|
|
198
|
-
.nativeEnum(OfferingType)
|
|
199
|
-
.optional()
|
|
200
|
-
.openapi({ example: OfferingType.REG_D }),
|
|
201
|
-
targetAmount: z
|
|
202
|
-
.number()
|
|
203
|
-
.min(0)
|
|
204
|
-
.max(10000000000)
|
|
205
|
-
.optional()
|
|
206
|
-
.openapi({ example: 120000 }),
|
|
207
|
-
minInvestment: z
|
|
208
|
-
.number()
|
|
209
|
-
.min(0)
|
|
210
|
-
.max(10000000000)
|
|
211
|
-
.nullable()
|
|
212
|
-
.optional()
|
|
213
|
-
.openapi({ example: 1000 }),
|
|
214
|
-
maxInvestment: z
|
|
215
|
-
.number()
|
|
216
|
-
.min(0)
|
|
217
|
-
.max(10000000000)
|
|
218
|
-
.nullable()
|
|
219
|
-
.optional()
|
|
220
|
-
.openapi({ example: 20000 }),
|
|
221
|
-
contingencyAmount: z
|
|
222
|
-
.number()
|
|
223
|
-
.min(0)
|
|
224
|
-
.max(10000000000)
|
|
225
|
-
.nullable()
|
|
226
|
-
.optional()
|
|
227
|
-
.openapi({ example: 5000 }),
|
|
228
|
-
startAt: dateSchema.nullable().optional().openapi({ example: '10/20/2024' }),
|
|
229
|
-
endAt: dateSchema.nullable().optional().openapi({ example: '10/27/2024' }),
|
|
230
|
-
cancellationPeriod: z
|
|
231
|
-
.number()
|
|
232
|
-
.min(1)
|
|
233
|
-
.max(30)
|
|
234
|
-
.optional()
|
|
235
|
-
.openapi({ example: 4 })
|
|
236
|
-
.nullable(),
|
|
237
|
-
description: z
|
|
238
|
-
.string()
|
|
239
|
-
.min(1)
|
|
240
|
-
.max(1000)
|
|
241
|
-
.optional()
|
|
242
|
-
.nullable()
|
|
243
|
-
.openapi({ example: 'This is a description of the offering.' }),
|
|
244
|
-
memorandumId: z
|
|
245
|
-
.lazy(() => fileIdSchema)
|
|
246
|
-
.optional()
|
|
247
|
-
.nullable(),
|
|
248
|
-
subscriptionAgreementId: z
|
|
249
|
-
.lazy(() => fileIdSchema)
|
|
250
|
-
.optional()
|
|
251
|
-
.nullable(),
|
|
252
|
-
coverArtId: z
|
|
253
|
-
.lazy(() => fileIdSchema)
|
|
254
|
-
.nullable()
|
|
255
|
-
.optional(),
|
|
256
|
-
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
257
|
-
showTotalRaised: z.boolean().optional(),
|
|
258
|
-
issuerId: issuerIdSchema.optional(),
|
|
259
|
-
assetName: z.string().min(2).max(50).optional().openapi({ example: 'Z' }),
|
|
260
|
-
assetType: z
|
|
261
|
-
.nativeEnum(AssetType)
|
|
262
|
-
.optional()
|
|
263
|
-
.openapi({ example: AssetType.STOCK }),
|
|
264
|
-
pricePerUnit: z
|
|
265
|
-
.number()
|
|
266
|
-
.min(0.01)
|
|
267
|
-
.max(10000000000)
|
|
268
|
-
.nullable()
|
|
269
|
-
.optional()
|
|
270
|
-
.openapi({ example: 2000 }),
|
|
271
|
-
totalUnits: z
|
|
272
|
-
.number()
|
|
273
|
-
.min(1)
|
|
274
|
-
.max(10000000000)
|
|
275
|
-
.nullable()
|
|
276
|
-
.optional()
|
|
277
|
-
.openapi({ example: 5200 }),
|
|
278
|
-
yield: z
|
|
279
|
-
.number()
|
|
280
|
-
.min(0.01)
|
|
281
|
-
.max(10000000000)
|
|
282
|
-
.nullable()
|
|
283
|
-
.optional()
|
|
284
|
-
.openapi({ example: 1200 }),
|
|
285
|
-
duration: z
|
|
286
|
-
.number()
|
|
287
|
-
.min(1)
|
|
288
|
-
.max(1000)
|
|
289
|
-
.nullable()
|
|
290
|
-
.optional()
|
|
291
|
-
.openapi({ example: 1 }),
|
|
292
|
-
durationType: z
|
|
293
|
-
.nativeEnum(DurationType)
|
|
294
|
-
.nullable()
|
|
295
|
-
.optional()
|
|
296
|
-
.openapi({ example: DurationType.DAY }),
|
|
297
|
-
template: z
|
|
298
|
-
.nativeEnum(AssetTemplateType)
|
|
299
|
-
.default(AssetTemplateType.STANDARD)
|
|
300
|
-
.openapi({ example: AssetTemplateType.STANDARD })
|
|
301
|
-
.nullable()
|
|
302
|
-
.optional(),
|
|
303
|
-
tiers: z.array(z.number().positive()).nullable().optional(),
|
|
304
|
-
enabled: z.boolean().optional(),
|
|
305
|
-
enableBonus: z.boolean().optional(),
|
|
306
|
-
});
|
|
307
|
-
export type PatchIssuerOffering = z.infer<typeof PatchIssuerOffering>;
|
|
308
|
-
|
|
309
|
-
const issuerOfferingsInclude = z.enum([
|
|
310
|
-
'account',
|
|
311
|
-
'trades',
|
|
312
|
-
'issuer',
|
|
313
|
-
'assets',
|
|
314
|
-
'draftVersion',
|
|
315
|
-
'publishedVersion',
|
|
316
|
-
'revisions',
|
|
317
|
-
'onboardingReviewedBy',
|
|
318
|
-
]);
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* @description Query parameters for including related entities
|
|
322
|
-
* @xample in contract us as -> query: z.object({}).merge(UsersIncludeQuery),
|
|
323
|
-
*/
|
|
324
|
-
export const IssuerOfferingsIncludeQuery = z.object({
|
|
325
|
-
include: z
|
|
326
|
-
.string()
|
|
327
|
-
.optional()
|
|
328
|
-
.transform((str) => (str ? str.split(',') : []))
|
|
329
|
-
.refine(
|
|
330
|
-
(includes) =>
|
|
331
|
-
includes.every((include) =>
|
|
332
|
-
issuerOfferingsInclude.options.includes(include as any),
|
|
333
|
-
),
|
|
334
|
-
{
|
|
335
|
-
message: `Invalid include option provided. Valid options are: ${issuerOfferingsInclude.options.join(',')}`,
|
|
336
|
-
},
|
|
337
|
-
)
|
|
338
|
-
.openapi({
|
|
339
|
-
example: `${issuerOfferingsInclude.options.join(',')}`,
|
|
340
|
-
}),
|
|
341
|
-
});
|
|
342
|
-
export interface IssuerOfferingsIncludeQuery
|
|
343
|
-
extends z.infer<typeof IssuerOfferingsIncludeQuery> {}
|
|
344
|
-
|
|
345
|
-
export const IssuerOfferingsDeleteResponse = z.object({
|
|
346
|
-
message: z.string(),
|
|
347
|
-
});
|
|
348
|
-
export type IssuerOfferingsDeleteResponse = z.infer<
|
|
349
|
-
typeof IssuerOfferingsDeleteResponse
|
|
350
|
-
>;
|
|
351
|
-
export const OfferingCapTableFiltersZod = z.object({
|
|
352
|
-
startDate: dateSchema.optional(),
|
|
353
|
-
endDate: dateSchema.optional(),
|
|
354
|
-
});
|
|
355
|
-
export type OfferingCapTableFiltersZod = z.infer<
|
|
356
|
-
typeof OfferingCapTableFiltersZod
|
|
357
|
-
>;
|
|
358
|
-
|
|
359
|
-
export const OfferingCapTableResponse = z.array(
|
|
360
|
-
z.object({
|
|
361
|
-
name: z.string(),
|
|
362
|
-
sharesOwned: z.coerce.number().default(0),
|
|
363
|
-
percentageOfOwnership: z.coerce.number().default(0),
|
|
364
|
-
}),
|
|
365
|
-
);
|
|
366
|
-
export type OfferingCapTableResponse = z.infer<typeof OfferingCapTableResponse>;
|
|
367
|
-
|
|
368
|
-
export const IssuerOfferingsFilterZod = z.object({
|
|
369
|
-
issuerName: z.string().optional(),
|
|
370
|
-
name: z.string().optional(),
|
|
371
|
-
accountId: accountIdSchema.optional(),
|
|
372
|
-
issuerId: z.lazy(() => issuerIdSchema).optional(),
|
|
373
|
-
type: z.nativeEnum(OfferingType).optional(),
|
|
374
|
-
status: z.nativeEnum(ComplianceReview).optional(),
|
|
375
|
-
enabled: StringToBooleanSchema.optional(),
|
|
376
|
-
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
377
|
-
versioningType: z.nativeEnum(OfferingVersioningType).optional(),
|
|
378
|
-
combinedStatus: z.nativeEnum(OfferingStatus).optional(),
|
|
379
|
-
sortByNameASC: z.preprocess(
|
|
380
|
-
(val) =>
|
|
381
|
-
val === 'true' || val === '1'
|
|
382
|
-
? true
|
|
383
|
-
: val === 'false' || val === '0'
|
|
384
|
-
? false
|
|
385
|
-
: val,
|
|
386
|
-
z.boolean().optional().default(false),
|
|
387
|
-
),
|
|
388
|
-
});
|
|
389
|
-
export type IssuerOfferingsFilterZod = z.infer<typeof IssuerOfferingsFilterZod>;
|