@dalmore/api-contracts 0.0.0-dev.ab1033d → 0.0.0-dev.ada6a86
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 +23 -19
- 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 +184 -0
- package/common/types/account-setting.types.js +52 -0
- package/common/types/account-setting.types.js.map +1 -0
- package/common/types/account.types.d.ts +631 -0
- package/common/types/account.types.js +217 -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 +980 -0
- package/common/types/bonus-tier.types.js +159 -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 +1498 -0
- package/common/types/common.types.js +1431 -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 +3084 -0
- package/common/types/disbursements.types.js +342 -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} +5 -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 +3406 -0
- package/common/types/signer.types.js +532 -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 +329 -0
- package/common/types/trade-line-item.types.js +100 -0
- package/common/types/trade-line-item.types.js.map +1 -0
- package/common/types/trade.types.d.ts +2004 -0
- package/common/types/trade.types.js +787 -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 +1951 -0
- package/common/types/user.types.js +238 -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 +12482 -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 +871 -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 +27 -36
- package/common/helpers/index.ts +0 -59
- package/common/types/account-contact.types.ts +0 -98
- 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 -124
- package/common/types/account.types.ts +0 -296
- 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 -370
- package/common/types/batch-jobs.types.ts +0 -151
- package/common/types/bonus-tier.types.ts +0 -147
- package/common/types/cart.types.ts +0 -18
- package/common/types/checklist-items.types.ts +0 -70
- package/common/types/checklist.types.ts +0 -97
- package/common/types/common.types.ts +0 -1520
- 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 -107
- package/common/types/countries.types.ts +0 -375
- package/common/types/covered-person.types.ts +0 -274
- package/common/types/dashboard.types.ts +0 -799
- 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 -310
- 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 -461
- package/common/types/health.types.ts +0 -29
- package/common/types/individuals.types.ts +0 -554
- package/common/types/investor-account.types.ts +0 -1239
- package/common/types/investors-offering.types.ts +0 -65
- package/common/types/invite.types.ts +0 -133
- package/common/types/issuer-bank-account.types.ts +0 -107
- package/common/types/issuer-offering.types.ts +0 -393
- package/common/types/issuer-payment-method.types.ts +0 -341
- package/common/types/issuer.types.ts +0 -312
- 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 -185
- package/common/types/login-history.types.ts +0 -46
- package/common/types/mail-template.types.ts +0 -436
- 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 -58
- 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 -681
- 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 -726
- package/common/types/site.types.ts +0 -270
- 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.type.ts +0 -132
- package/common/types/trade.types.ts +0 -999
- package/common/types/transaction.types.ts +0 -198
- 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 -320
- package/common/types/webhook.types.ts +0 -588
- 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 -40
- package/contracts/clients/files/index.ts +0 -166
- package/contracts/clients/files-public/index.ts +0 -166
- package/contracts/clients/index.ts +0 -46
- package/contracts/clients/individuals/index.ts +0 -93
- package/contracts/clients/investor-accounts/index.ts +0 -93
- 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/secure-requests/index.ts +0 -34
- package/contracts/clients/sites/index.ts +0 -56
- package/contracts/clients/trades/index.ts +0 -186
- package/contracts/compliance/account-contacts/index.ts +0 -82
- package/contracts/compliance/account-managers/index.ts +0 -142
- package/contracts/compliance/accounts/index.ts +0 -187
- package/contracts/compliance/activities/index.ts +0 -55
- package/contracts/compliance/aic/index.ts +0 -60
- package/contracts/compliance/api-keys/index.ts +0 -91
- package/contracts/compliance/assets/index.ts +0 -122
- package/contracts/compliance/auth/index.ts +0 -134
- package/contracts/compliance/batch-jobs/index.ts +0 -62
- package/contracts/compliance/bonus-tiers/index.ts +0 -55
- package/contracts/compliance/checklist/index.ts +0 -87
- package/contracts/compliance/checklist-items/index.ts +0 -86
- package/contracts/compliance/covered-persons/index.ts +0 -97
- package/contracts/compliance/dashboard/index.ts +0 -111
- package/contracts/compliance/data-records/index.ts +0 -116
- package/contracts/compliance/data-rooms/index.ts +0 -113
- package/contracts/compliance/default-theme-configs/index.ts +0 -95
- package/contracts/compliance/disbursement/index.ts +0 -165
- package/contracts/compliance/disbursement-approval-users/index.ts +0 -84
- package/contracts/compliance/disbursement-transactions/index.ts +0 -37
- package/contracts/compliance/domain-filters/index.ts +0 -117
- package/contracts/compliance/email-themes/index.ts +0 -284
- package/contracts/compliance/escrow-accounts/index.ts +0 -85
- package/contracts/compliance/exchange-api-keys/index.ts +0 -129
- package/contracts/compliance/exchange-imports/index.ts +0 -137
- package/contracts/compliance/files/index.ts +0 -267
- package/contracts/compliance/files-public/index.ts +0 -188
- package/contracts/compliance/health/index.ts +0 -26
- package/contracts/compliance/index.ts +0 -147
- package/contracts/compliance/individuals/index.ts +0 -57
- package/contracts/compliance/investor-accounts/index.ts +0 -141
- package/contracts/compliance/invites/index.ts +0 -137
- package/contracts/compliance/issuer-bank-accounts/index.ts +0 -81
- package/contracts/compliance/issuer-payment-methods/index.ts +0 -81
- package/contracts/compliance/issuers/index.ts +0 -97
- package/contracts/compliance/job-items/index.ts +0 -58
- package/contracts/compliance/jobs/index.ts +0 -59
- package/contracts/compliance/kyb/index.ts +0 -54
- package/contracts/compliance/kyc/index.ts +0 -77
- package/contracts/compliance/legal-entities/index.ts +0 -57
- package/contracts/compliance/login-histories/index.ts +0 -37
- package/contracts/compliance/notes/index.ts +0 -69
- package/contracts/compliance/notion-databases/index.ts +0 -107
- package/contracts/compliance/notion-pages/index.ts +0 -105
- package/contracts/compliance/offering-reports/index.ts +0 -149
- package/contracts/compliance/offerings/index.ts +0 -233
- package/contracts/compliance/pages/index.ts +0 -178
- package/contracts/compliance/payment-methods/index.ts +0 -57
- package/contracts/compliance/rejection-reasons/index.ts +0 -32
- package/contracts/compliance/review/index.ts +0 -169
- package/contracts/compliance/roles/index.ts +0 -34
- package/contracts/compliance/secondary-customers/index.ts +0 -77
- package/contracts/compliance/secondary-orders/index.ts +0 -60
- package/contracts/compliance/secondary-trades/index.ts +0 -100
- package/contracts/compliance/secure-requests/index.ts +0 -54
- package/contracts/compliance/signer/index.ts +0 -369
- package/contracts/compliance/site-links/index.ts +0 -128
- package/contracts/compliance/site-settings/index.ts +0 -669
- package/contracts/compliance/sites/index.ts +0 -56
- package/contracts/compliance/state-machine/index.ts +0 -94
- package/contracts/compliance/tasks/index.ts +0 -91
- package/contracts/compliance/third-parties/index.ts +0 -52
- package/contracts/compliance/trade-line-items/index.ts +0 -59
- package/contracts/compliance/trades/index.ts +0 -230
- package/contracts/compliance/transactions/index.ts +0 -161
- package/contracts/compliance/user-manuals/index.ts +0 -271
- package/contracts/compliance/user-settings/index.ts +0 -189
- package/contracts/compliance/users/index.ts +0 -200
- package/contracts/compliance/webhooks/index.ts +0 -41
- package/contracts/compliance-apikey/accounts/index.ts +0 -58
- package/contracts/compliance-apikey/index.ts +0 -14
- package/contracts/index.ts +0 -6
- package/contracts/investors/account-contacts/index.ts +0 -58
- package/contracts/investors/aic/index.ts +0 -59
- package/contracts/investors/assets/index.ts +0 -61
- package/contracts/investors/auth/index.ts +0 -116
- package/contracts/investors/bonus-tiers/index.ts +0 -37
- package/contracts/investors/cart/index.ts +0 -75
- package/contracts/investors/contact-us/index.ts +0 -48
- package/contracts/investors/data-records/index.ts +0 -113
- package/contracts/investors/data-rooms/index.ts +0 -96
- package/contracts/investors/files/index.ts +0 -167
- package/contracts/investors/files-public/index.ts +0 -185
- package/contracts/investors/index.ts +0 -72
- package/contracts/investors/individuals/index.ts +0 -99
- package/contracts/investors/investor-accounts/index.ts +0 -110
- package/contracts/investors/issuer-payment-methods/index.ts +0 -36
- package/contracts/investors/issuers/index.ts +0 -30
- package/contracts/investors/legal-entities/index.ts +0 -93
- package/contracts/investors/notes/index.ts +0 -69
- package/contracts/investors/offerings/index.ts +0 -93
- package/contracts/investors/pages/index.ts +0 -88
- package/contracts/investors/payment-methods/index.ts +0 -149
- package/contracts/investors/portfolios/index.ts +0 -53
- package/contracts/investors/sites/index.ts +0 -96
- package/contracts/investors/tasks/index.ts +0 -111
- package/contracts/investors/trade-line-items/index.ts +0 -75
- package/contracts/investors/trades/index.ts +0 -114
- package/contracts/investors/transactions/index.ts +0 -37
- package/contracts/investors/trusted-contacts/index.ts +0 -93
- package/contracts/investors/user-manuals/index.ts +0 -62
- package/contracts/investors/user-settings/index.ts +0 -170
- package/contracts/investors/users/index.ts +0 -45
- package/contracts/investors/webhooks/index.ts +0 -30
- package/contracts/issuers/account-contacts/index.ts +0 -76
- package/contracts/issuers/account-integrations/index.ts +0 -97
- package/contracts/issuers/accounts/index.ts +0 -97
- package/contracts/issuers/activities/index.ts +0 -54
- package/contracts/issuers/aic/index.ts +0 -39
- package/contracts/issuers/api-key-logs/index.ts +0 -53
- package/contracts/issuers/api-keys/index.ts +0 -93
- package/contracts/issuers/assets/index.ts +0 -122
- package/contracts/issuers/auth/index.ts +0 -152
- package/contracts/issuers/bonus-tiers/index.ts +0 -55
- package/contracts/issuers/contact-us/index.ts +0 -48
- package/contracts/issuers/covered-persons/index.ts +0 -136
- package/contracts/issuers/dashboard/index.ts +0 -72
- package/contracts/issuers/data-records/index.ts +0 -257
- package/contracts/issuers/data-rooms/index.ts +0 -134
- package/contracts/issuers/disbursement-approval-users/index.ts +0 -82
- package/contracts/issuers/disbursement-transactions/index.ts +0 -53
- package/contracts/issuers/disbursements/index.ts +0 -153
- package/contracts/issuers/email-themes/index.ts +0 -242
- package/contracts/issuers/escrow-accounts/index.ts +0 -81
- package/contracts/issuers/exchange-api-keys/index.ts +0 -144
- package/contracts/issuers/files/index.ts +0 -166
- package/contracts/issuers/files-public/index.ts +0 -166
- package/contracts/issuers/health/index.ts +0 -24
- package/contracts/issuers/index.ts +0 -112
- package/contracts/issuers/investor-accounts/index.ts +0 -148
- package/contracts/issuers/invites/index.ts +0 -129
- package/contracts/issuers/issuer/index.ts +0 -94
- package/contracts/issuers/issuer-bank-accounts/index.ts +0 -81
- package/contracts/issuers/issuer-payment-methods/index.ts +0 -136
- package/contracts/issuers/kyc/index.ts +0 -38
- package/contracts/issuers/login-histories/index.ts +0 -51
- package/contracts/issuers/notes/index.ts +0 -69
- package/contracts/issuers/offerings/index.ts +0 -206
- package/contracts/issuers/pages/index.ts +0 -138
- package/contracts/issuers/payment-methods/index.ts +0 -61
- package/contracts/issuers/portfolios/index.ts +0 -36
- package/contracts/issuers/rejection-reasons/index.ts +0 -32
- package/contracts/issuers/review/index.ts +0 -63
- package/contracts/issuers/secondary-customers/index.ts +0 -55
- package/contracts/issuers/secondary-orders/index.ts +0 -57
- package/contracts/issuers/secondary-trades/index.ts +0 -57
- package/contracts/issuers/secure-requests/index.ts +0 -34
- package/contracts/issuers/site-links/index.ts +0 -116
- package/contracts/issuers/site-settings/index.ts +0 -585
- package/contracts/issuers/sites/index.ts +0 -32
- package/contracts/issuers/tasks/index.ts +0 -111
- package/contracts/issuers/trades/index.ts +0 -132
- package/contracts/issuers/transactions/index.ts +0 -158
- package/contracts/issuers/user-manuals/index.ts +0 -62
- package/contracts/issuers/user-settings/index.ts +0 -170
- package/contracts/issuers/users/index.ts +0 -126
- package/contracts/secondaries/accounts/index.ts +0 -58
- package/contracts/secondaries/index.ts +0 -23
- package/contracts/secondaries/secondary-customers/index.ts +0 -55
- package/contracts/secondaries/secondary-issuers/index.ts +0 -94
- package/contracts/secondaries/secondary-orders/index.ts +0 -56
- package/contracts/secondaries/secondary-securities/index.ts +0 -95
- package/contracts/secondaries/secondary-trades/index.ts +0 -56
- /package/common/types/{investorAccountIdSchema.type.ts → investorAccountIdSchema.type.d.ts} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TypeID } from 'typeid-js';
|
|
3
|
+
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
4
|
+
import { IBaseEntity } from './entity.types.js';
|
|
5
|
+
import { IPaginationMeta } from './common.types.js';
|
|
6
|
+
import { accountIdSchema } from './account.types.js';
|
|
7
|
+
import { secureRequestIdSchema } from './secure-request.types.js';
|
|
8
|
+
extendZodWithOpenApi(z);
|
|
9
|
+
export var NorthCapIntegrationEnvironment;
|
|
10
|
+
(function (NorthCapIntegrationEnvironment) {
|
|
11
|
+
NorthCapIntegrationEnvironment["PRODUCTION"] = "PRODUCTION";
|
|
12
|
+
NorthCapIntegrationEnvironment["SANDBOX"] = "SANDBOX";
|
|
13
|
+
})(NorthCapIntegrationEnvironment || (NorthCapIntegrationEnvironment = {}));
|
|
14
|
+
export var NorthCapIntegrationStatus;
|
|
15
|
+
(function (NorthCapIntegrationStatus) {
|
|
16
|
+
NorthCapIntegrationStatus["PENDING"] = "PENDING";
|
|
17
|
+
NorthCapIntegrationStatus["VERIFIED"] = "VERIFIED";
|
|
18
|
+
NorthCapIntegrationStatus["ERROR"] = "ERROR";
|
|
19
|
+
})(NorthCapIntegrationStatus || (NorthCapIntegrationStatus = {}));
|
|
20
|
+
export const ApiSuccessResponseSchema = z.object({
|
|
21
|
+
valid: z.literal(true),
|
|
22
|
+
status_code: z.number(),
|
|
23
|
+
latency_ms: z.number(),
|
|
24
|
+
raw: z
|
|
25
|
+
.object({
|
|
26
|
+
statusCode: z.string(),
|
|
27
|
+
statusDesc: z.string(),
|
|
28
|
+
job: z
|
|
29
|
+
.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
type: z.string(),
|
|
32
|
+
progress: z.string(),
|
|
33
|
+
status: z.string(),
|
|
34
|
+
reason: z.string().nullable(),
|
|
35
|
+
outputId: z.string().nullable(),
|
|
36
|
+
createdAt: z.string(),
|
|
37
|
+
updatedAt: z.string(),
|
|
38
|
+
})
|
|
39
|
+
.optional(),
|
|
40
|
+
})
|
|
41
|
+
.and(z.record(z.any())),
|
|
42
|
+
});
|
|
43
|
+
export const ApiErrorResponseSchema = z.object({
|
|
44
|
+
valid: z.literal(false),
|
|
45
|
+
status_code: z.number(),
|
|
46
|
+
latency_ms: z.number(),
|
|
47
|
+
raw: z
|
|
48
|
+
.object({
|
|
49
|
+
statusCode: z.string(),
|
|
50
|
+
statusDesc: z.string(),
|
|
51
|
+
})
|
|
52
|
+
.and(z.record(z.any())),
|
|
53
|
+
error: z.string().optional(),
|
|
54
|
+
});
|
|
55
|
+
export const ApiMessageSchema = z.union([
|
|
56
|
+
ApiSuccessResponseSchema,
|
|
57
|
+
ApiErrorResponseSchema,
|
|
58
|
+
]);
|
|
59
|
+
export const northCapIntegrationIdSchema = z.string().refine((value) => {
|
|
60
|
+
try {
|
|
61
|
+
const tid = TypeID.fromString(value);
|
|
62
|
+
return tid.getType() === 'north_cap_integration';
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
message: 'Invalid North Cap Integration ID format. Must be a valid TypeID with "north_cap_integration" prefix. Example: north_cap_integration_01j5y5ghx8fvc83dmx3pznq7hv',
|
|
69
|
+
});
|
|
70
|
+
export const NorthCapIntegrationZod = IBaseEntity.extend({
|
|
71
|
+
id: northCapIntegrationIdSchema,
|
|
72
|
+
accountId: accountIdSchema.openapi({
|
|
73
|
+
example: 'account_01j1xgme5qeqq97gpdztd7e4a6',
|
|
74
|
+
}),
|
|
75
|
+
environment: z
|
|
76
|
+
.nativeEnum(NorthCapIntegrationEnvironment)
|
|
77
|
+
.openapi({ example: NorthCapIntegrationEnvironment.SANDBOX }),
|
|
78
|
+
clientId: z
|
|
79
|
+
.string()
|
|
80
|
+
.min(1, 'Client ID is required')
|
|
81
|
+
.max(50, 'Client ID is too long')
|
|
82
|
+
.openapi({ example: 'client123' }),
|
|
83
|
+
apikey: z
|
|
84
|
+
.string()
|
|
85
|
+
.min(1, 'API key is required')
|
|
86
|
+
.max(255, 'API key is too long')
|
|
87
|
+
.openapi({ example: 'api_key_123' }),
|
|
88
|
+
primaries: z.boolean().openapi({ example: false }),
|
|
89
|
+
secondaries: z.boolean().openapi({ example: true }),
|
|
90
|
+
status: z
|
|
91
|
+
.nativeEnum(NorthCapIntegrationStatus)
|
|
92
|
+
.openapi({ example: NorthCapIntegrationStatus.PENDING }),
|
|
93
|
+
apiMessage: ApiMessageSchema.nullable().openapi({ example: null }),
|
|
94
|
+
secureRequestId: secureRequestIdSchema.openapi({
|
|
95
|
+
example: 'secure_request_01j1xgme5qeqq97gpdztd7e4a6',
|
|
96
|
+
}),
|
|
97
|
+
});
|
|
98
|
+
export const IPaginatedNorthCapIntegrations = z.object({
|
|
99
|
+
items: z.array(NorthCapIntegrationZod),
|
|
100
|
+
meta: IPaginationMeta,
|
|
101
|
+
});
|
|
102
|
+
export const PostNorthCapIntegrationSchema = z.object({
|
|
103
|
+
accountId: z.lazy(() => accountIdSchema),
|
|
104
|
+
environment: z
|
|
105
|
+
.nativeEnum(NorthCapIntegrationEnvironment)
|
|
106
|
+
.default(NorthCapIntegrationEnvironment.SANDBOX),
|
|
107
|
+
clientId: z
|
|
108
|
+
.string()
|
|
109
|
+
.min(1, 'Client ID is required')
|
|
110
|
+
.max(50, 'Client ID is too long'),
|
|
111
|
+
apikey: z
|
|
112
|
+
.string()
|
|
113
|
+
.min(1, 'API key is required')
|
|
114
|
+
.max(255, 'API key is too long'),
|
|
115
|
+
primaries: z.boolean().default(false),
|
|
116
|
+
secondaries: z.boolean().default(false),
|
|
117
|
+
apiMessage: ApiMessageSchema.nullable().optional(),
|
|
118
|
+
secureRequestId: secureRequestIdSchema,
|
|
119
|
+
});
|
|
120
|
+
export const UpdateNorthCapIntegrationSchema = z.object({
|
|
121
|
+
status: z.nativeEnum(NorthCapIntegrationStatus).optional(),
|
|
122
|
+
apiMessage: ApiMessageSchema.nullable().optional(),
|
|
123
|
+
});
|
|
124
|
+
export const NorthCapIntegrationFiltersZod = z.object({
|
|
125
|
+
accountId: accountIdSchema.optional(),
|
|
126
|
+
status: z.nativeEnum(NorthCapIntegrationStatus).optional(),
|
|
127
|
+
});
|
|
128
|
+
export const northCapIntegrationInclude = z.enum(['account', 'secureRequest']);
|
|
129
|
+
/**
|
|
130
|
+
* @description Query parameters for including related entities
|
|
131
|
+
* @example in contract use as -> query: z.object({}).merge(NorthCapIntegrationsIncludeQuery),
|
|
132
|
+
*/
|
|
133
|
+
export const NorthCapIntegrationsIncludeQuery = z.object({
|
|
134
|
+
include: z
|
|
135
|
+
.string()
|
|
136
|
+
.optional()
|
|
137
|
+
.transform((str) => (str ? str.split(',') : []))
|
|
138
|
+
.refine((includes) => includes.every((include) => northCapIntegrationInclude.options.includes(include)), {
|
|
139
|
+
message: `Invalid include option provided. Valid options are: ${northCapIntegrationInclude.options.join(',')}`,
|
|
140
|
+
})
|
|
141
|
+
.openapi({
|
|
142
|
+
example: `${northCapIntegrationInclude.options.join(',')}`,
|
|
143
|
+
}),
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=north-cap-integration.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"north-cap-integration.types.js","sourceRoot":"","sources":["north-cap-integration.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,WAAW,E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AAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAC/C,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CACzB,0BAA0B,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAc,CAAC,CAC5D,EACH;QACE,OAAO,EAAE,uDAAuD,0BAA0B,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KAC/G,CACF;SACA,OAAO,CAAC;QACP,OAAO,EAAE,GAAG,0BAA0B,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KAC3D,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const noteIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
|
+
export declare const NoteZod: z.ZodEffects<z.ZodObject<{
|
|
4
|
+
__entity: z.ZodOptional<z.ZodString>;
|
|
5
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
6
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
7
|
+
deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
8
|
+
} & {
|
|
9
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
body: z.ZodString;
|
|
11
|
+
accountId: z.ZodString;
|
|
12
|
+
userId: z.ZodString;
|
|
13
|
+
targetTable: z.ZodEnum<["KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS", ...("KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS")[]]>;
|
|
14
|
+
targetId: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string | Date;
|
|
18
|
+
updatedAt: string | Date;
|
|
19
|
+
deletedAt: string | Date | null;
|
|
20
|
+
accountId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
targetId: string;
|
|
23
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
24
|
+
body: string;
|
|
25
|
+
__entity?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: string | Date;
|
|
29
|
+
updatedAt: string | Date;
|
|
30
|
+
deletedAt: string | Date | null;
|
|
31
|
+
accountId: string;
|
|
32
|
+
userId: string;
|
|
33
|
+
targetId: string;
|
|
34
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
35
|
+
body: string;
|
|
36
|
+
__entity?: string | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
id: string;
|
|
39
|
+
createdAt: string | Date;
|
|
40
|
+
updatedAt: string | Date;
|
|
41
|
+
deletedAt: string | Date | null;
|
|
42
|
+
accountId: string;
|
|
43
|
+
userId: string;
|
|
44
|
+
targetId: string;
|
|
45
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
46
|
+
body: string;
|
|
47
|
+
__entity?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: string | Date;
|
|
51
|
+
updatedAt: string | Date;
|
|
52
|
+
deletedAt: string | Date | null;
|
|
53
|
+
accountId: string;
|
|
54
|
+
userId: string;
|
|
55
|
+
targetId: string;
|
|
56
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
57
|
+
body: string;
|
|
58
|
+
__entity?: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export type NoteZod = z.infer<typeof NoteZod>;
|
|
61
|
+
export declare const IPaginatedNote: z.ZodObject<{
|
|
62
|
+
items: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
63
|
+
__entity: z.ZodOptional<z.ZodString>;
|
|
64
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
65
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
66
|
+
deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
67
|
+
} & {
|
|
68
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
+
body: z.ZodString;
|
|
70
|
+
accountId: z.ZodString;
|
|
71
|
+
userId: z.ZodString;
|
|
72
|
+
targetTable: z.ZodEnum<["KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS", ...("KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS")[]]>;
|
|
73
|
+
targetId: z.ZodString;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
id: string;
|
|
76
|
+
createdAt: string | Date;
|
|
77
|
+
updatedAt: string | Date;
|
|
78
|
+
deletedAt: string | Date | null;
|
|
79
|
+
accountId: string;
|
|
80
|
+
userId: string;
|
|
81
|
+
targetId: string;
|
|
82
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
83
|
+
body: string;
|
|
84
|
+
__entity?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
id: string;
|
|
87
|
+
createdAt: string | Date;
|
|
88
|
+
updatedAt: string | Date;
|
|
89
|
+
deletedAt: string | Date | null;
|
|
90
|
+
accountId: string;
|
|
91
|
+
userId: string;
|
|
92
|
+
targetId: string;
|
|
93
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
94
|
+
body: string;
|
|
95
|
+
__entity?: string | undefined;
|
|
96
|
+
}>, {
|
|
97
|
+
id: string;
|
|
98
|
+
createdAt: string | Date;
|
|
99
|
+
updatedAt: string | Date;
|
|
100
|
+
deletedAt: string | Date | null;
|
|
101
|
+
accountId: string;
|
|
102
|
+
userId: string;
|
|
103
|
+
targetId: string;
|
|
104
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
105
|
+
body: string;
|
|
106
|
+
__entity?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
id: string;
|
|
109
|
+
createdAt: string | Date;
|
|
110
|
+
updatedAt: string | Date;
|
|
111
|
+
deletedAt: string | Date | null;
|
|
112
|
+
accountId: string;
|
|
113
|
+
userId: string;
|
|
114
|
+
targetId: string;
|
|
115
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
116
|
+
body: string;
|
|
117
|
+
__entity?: string | undefined;
|
|
118
|
+
}>, "many">;
|
|
119
|
+
meta: z.ZodObject<{
|
|
120
|
+
itemCount: z.ZodNumber;
|
|
121
|
+
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
itemsPerPage: z.ZodNumber;
|
|
123
|
+
totalPages: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
currentPage: z.ZodNumber;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
itemCount: number;
|
|
127
|
+
itemsPerPage: number;
|
|
128
|
+
currentPage: number;
|
|
129
|
+
totalItems?: number | undefined;
|
|
130
|
+
totalPages?: number | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
itemCount: number;
|
|
133
|
+
itemsPerPage: number;
|
|
134
|
+
currentPage: number;
|
|
135
|
+
totalItems?: number | undefined;
|
|
136
|
+
totalPages?: number | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
items: {
|
|
140
|
+
id: string;
|
|
141
|
+
createdAt: string | Date;
|
|
142
|
+
updatedAt: string | Date;
|
|
143
|
+
deletedAt: string | Date | null;
|
|
144
|
+
accountId: string;
|
|
145
|
+
userId: string;
|
|
146
|
+
targetId: string;
|
|
147
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
148
|
+
body: string;
|
|
149
|
+
__entity?: string | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
meta: {
|
|
152
|
+
itemCount: number;
|
|
153
|
+
itemsPerPage: number;
|
|
154
|
+
currentPage: number;
|
|
155
|
+
totalItems?: number | undefined;
|
|
156
|
+
totalPages?: number | undefined;
|
|
157
|
+
};
|
|
158
|
+
}, {
|
|
159
|
+
items: {
|
|
160
|
+
id: string;
|
|
161
|
+
createdAt: string | Date;
|
|
162
|
+
updatedAt: string | Date;
|
|
163
|
+
deletedAt: string | Date | null;
|
|
164
|
+
accountId: string;
|
|
165
|
+
userId: string;
|
|
166
|
+
targetId: string;
|
|
167
|
+
targetTable: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS";
|
|
168
|
+
body: string;
|
|
169
|
+
__entity?: string | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
meta: {
|
|
172
|
+
itemCount: number;
|
|
173
|
+
itemsPerPage: number;
|
|
174
|
+
currentPage: number;
|
|
175
|
+
totalItems?: number | undefined;
|
|
176
|
+
totalPages?: number | undefined;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
export type IPaginatedNote = z.infer<typeof IPaginatedNote>;
|
|
180
|
+
export declare const PostNoteBody: z.ZodObject<{
|
|
181
|
+
body: z.ZodString;
|
|
182
|
+
targetId: z.ZodEffects<z.ZodString, string, string>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
targetId: string;
|
|
185
|
+
body: string;
|
|
186
|
+
}, {
|
|
187
|
+
targetId: string;
|
|
188
|
+
body: string;
|
|
189
|
+
}>;
|
|
190
|
+
export type PostNoteBody = z.infer<typeof PostNoteBody>;
|
|
191
|
+
export declare const CompliancePostNoteBody: z.ZodObject<{
|
|
192
|
+
body: z.ZodString;
|
|
193
|
+
targetId: z.ZodEffects<z.ZodString, string, string>;
|
|
194
|
+
} & {
|
|
195
|
+
accountId: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
accountId: string | null;
|
|
198
|
+
targetId: string;
|
|
199
|
+
body: string;
|
|
200
|
+
}, {
|
|
201
|
+
targetId: string;
|
|
202
|
+
body: string;
|
|
203
|
+
accountId?: string | null | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
export type CompliancePostNoteBody = z.infer<typeof CompliancePostNoteBody>;
|
|
206
|
+
export declare const NotesFilters: z.ZodObject<{
|
|
207
|
+
targetTable: z.ZodOptional<z.ZodEnum<["KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS", ...("KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS")[]]>>;
|
|
208
|
+
targetId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
targetId?: string | undefined;
|
|
211
|
+
targetTable?: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS" | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
targetId?: string | undefined;
|
|
214
|
+
targetTable?: "KYCS" | "AMLS" | "AICS" | "KYBS" | "INDIVIDUALS" | "LEGAL_ENTITIES" | "INVESTOR_ACCOUNTS" | "TRADES" | "OFFERINGS" | "ISSUERS" | "COVERED_PERSONS" | "PAYMENT_METHODS" | "NOTES" | "USERS" | "ACCOUNTS" | "PAGES" | "TASKS" | "FILES" | "DATA_RECORD_FILES" | "ASSETS" | "SITES" | "PAGE_REVISIONS" | "TRADE_LINE_ITEMS" | "TRANSACTIONS" | "DISBURSEMENTS" | "DISBURSEMENT_REVIEWS" | "ISSUER_PAYMENT_METHODS" | "SIGNER_BRANDS" | "THEMES" | "THEME_SETTINGS" | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export type NotesFilters = z.infer<typeof NotesFilters>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TypeID } from 'typeid-js';
|
|
3
|
+
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
4
|
+
import { IBaseEntity } from './entity.types.js';
|
|
5
|
+
import { IPaginationMeta, TargetTableConfig, TargetTableEnum,
|
|
6
|
+
// UserWithoutPasswordAccountZod,
|
|
7
|
+
} from './common.types.js';
|
|
8
|
+
import { accountIdSchema } from './account.types.js';
|
|
9
|
+
extendZodWithOpenApi(z);
|
|
10
|
+
export const noteIdSchema = z.string().refine((value) => {
|
|
11
|
+
try {
|
|
12
|
+
const tid = TypeID.fromString(value);
|
|
13
|
+
return tid.getType() === 'note';
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
message: 'Invalid note ID format. Must be a valid TypeID with "note" prefix. Example: note_01j5y5ghx8fvc83dmx3pznq7hv',
|
|
20
|
+
});
|
|
21
|
+
export const NoteZod = IBaseEntity.extend({
|
|
22
|
+
id: noteIdSchema,
|
|
23
|
+
body: z.string(),
|
|
24
|
+
accountId: z.string(),
|
|
25
|
+
userId: z.string(),
|
|
26
|
+
targetTable: z.enum(TargetTableEnum),
|
|
27
|
+
targetId: z.string(),
|
|
28
|
+
}).refine((data) => {
|
|
29
|
+
const { targetTable, targetId } = data;
|
|
30
|
+
const idPrefix = TargetTableConfig[targetTable].idPrefix;
|
|
31
|
+
try {
|
|
32
|
+
const tid = TypeID.fromString(targetId);
|
|
33
|
+
return tid.getType() === idPrefix;
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
message: "Invalid target ID format. Must match the corresponding table's ID prefix.",
|
|
40
|
+
path: ['targetId'],
|
|
41
|
+
});
|
|
42
|
+
export const IPaginatedNote = z.object({
|
|
43
|
+
items: z.array(NoteZod),
|
|
44
|
+
meta: IPaginationMeta,
|
|
45
|
+
});
|
|
46
|
+
export const PostNoteBody = z.object({
|
|
47
|
+
body: z.string(),
|
|
48
|
+
targetId: z.string().refine((value) => {
|
|
49
|
+
try {
|
|
50
|
+
const tid = TypeID.fromString(value);
|
|
51
|
+
return Object.values(TargetTableConfig).some((config) => config.idPrefix === tid.getType());
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
message: `Invalid target ID format. Must match the corresponding table's ID prefix. Valid prefix: ${TargetTableEnum.toString().toLowerCase()}. Example: disbursement_01j6aqmtfyfwy9spjdcnh7yqk7`,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
export const CompliancePostNoteBody = PostNoteBody.extend({
|
|
61
|
+
accountId: accountIdSchema.nullable().default(null),
|
|
62
|
+
});
|
|
63
|
+
export const NotesFilters = z.object({
|
|
64
|
+
targetTable: z.enum(TargetTableEnum).optional(),
|
|
65
|
+
targetId: z
|
|
66
|
+
.string()
|
|
67
|
+
.optional()
|
|
68
|
+
.refine((value) => {
|
|
69
|
+
try {
|
|
70
|
+
if (!value)
|
|
71
|
+
return true;
|
|
72
|
+
const tid = TypeID.fromString(value);
|
|
73
|
+
return Object.values(TargetTableConfig).some((config) => config.idPrefix === tid.getType());
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
message: `Invalid target ID format. Must match the corresponding table's ID prefix. Valid prefix: ${TargetTableEnum.toString().toLowerCase()}. Example: disbursement_01j6aqmtfyfwy9spjdcnh7yqk7`,
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=note.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.types.js","sourceRoot":"","sources":["note.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,oBAAo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