@dalmore/api-contracts 0.0.0-dev.9d42e16 → 0.0.0-dev.a0bb940
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 +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 +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 +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 +783 -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 +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 -298
- 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 -1047
- 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
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { BadRequestError, ForbiddenError, InternalError, NotFoundError, PaginationOptionsZod, UnauthorizedError, } from '../../../common/types/index.js';
|
|
3
|
+
import { InvestorsTradeResponse, IPaginatedTrade, IssuersTradeFiltersZod, PatchTradeStatus, PostTradeBody, tradeIdOrTidSchema, TradesIncludeQuery, TradeZod, PostAttachSubdocBody, PutAttachSubdocBody, PatchSubdocSignatureBody, AttachSubdocResponse, } from '../../../common/types/trade.types.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { PostTradeLineItem, TradeLineItemQuery, TradeLineItemResponse, } from '../../../common/types/trade-line-item.types.js';
|
|
6
|
+
const c = initContract();
|
|
7
|
+
export const tradesContract = c.router({
|
|
8
|
+
getTrade: {
|
|
9
|
+
summary: 'Get trade by id - id could be either the entity id or tid',
|
|
10
|
+
method: 'GET',
|
|
11
|
+
path: '/:id',
|
|
12
|
+
metadata: {
|
|
13
|
+
auth: true,
|
|
14
|
+
},
|
|
15
|
+
query: z
|
|
16
|
+
.object({})
|
|
17
|
+
.merge(IssuersTradeFiltersZod)
|
|
18
|
+
.merge(TradesIncludeQuery),
|
|
19
|
+
pathParams: z.object({
|
|
20
|
+
id: tradeIdOrTidSchema,
|
|
21
|
+
}),
|
|
22
|
+
responses: {
|
|
23
|
+
200: TradeZod,
|
|
24
|
+
401: UnauthorizedError,
|
|
25
|
+
403: ForbiddenError,
|
|
26
|
+
404: NotFoundError,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
getTrades: {
|
|
30
|
+
summary: 'Get trades',
|
|
31
|
+
method: 'GET',
|
|
32
|
+
path: '',
|
|
33
|
+
metadata: {
|
|
34
|
+
auth: true,
|
|
35
|
+
},
|
|
36
|
+
query: PaginationOptionsZod.merge(IssuersTradeFiltersZod).merge(TradesIncludeQuery),
|
|
37
|
+
responses: {
|
|
38
|
+
200: IPaginatedTrade,
|
|
39
|
+
401: UnauthorizedError,
|
|
40
|
+
403: ForbiddenError,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
createTrades: {
|
|
44
|
+
summary: 'Create Trades',
|
|
45
|
+
method: 'POST',
|
|
46
|
+
path: '/',
|
|
47
|
+
metadata: {
|
|
48
|
+
auth: true,
|
|
49
|
+
},
|
|
50
|
+
body: PostTradeBody,
|
|
51
|
+
responses: {
|
|
52
|
+
201: InvestorsTradeResponse,
|
|
53
|
+
401: UnauthorizedError,
|
|
54
|
+
403: ForbiddenError,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
postLineItem: {
|
|
58
|
+
summary: 'Create a Line Item',
|
|
59
|
+
method: 'POST',
|
|
60
|
+
path: '/line-items',
|
|
61
|
+
metadata: {
|
|
62
|
+
auth: true,
|
|
63
|
+
},
|
|
64
|
+
query: TradeLineItemQuery,
|
|
65
|
+
body: PostTradeLineItem,
|
|
66
|
+
responses: {
|
|
67
|
+
201: TradeLineItemResponse,
|
|
68
|
+
401: UnauthorizedError,
|
|
69
|
+
403: ForbiddenError,
|
|
70
|
+
400: BadRequestError,
|
|
71
|
+
500: InternalError,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
patchTradeStatus: {
|
|
75
|
+
summary: 'Patch a trade status',
|
|
76
|
+
method: 'PATCH',
|
|
77
|
+
path: '/:id',
|
|
78
|
+
pathParams: z.object({
|
|
79
|
+
id: tradeIdOrTidSchema,
|
|
80
|
+
}),
|
|
81
|
+
metadata: {
|
|
82
|
+
auth: true,
|
|
83
|
+
},
|
|
84
|
+
body: PatchTradeStatus,
|
|
85
|
+
responses: {
|
|
86
|
+
201: TradeZod,
|
|
87
|
+
401: UnauthorizedError,
|
|
88
|
+
403: ForbiddenError,
|
|
89
|
+
400: BadRequestError,
|
|
90
|
+
500: InternalError,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
postAttachSubdoc: {
|
|
94
|
+
summary: 'Attach subdoc to trade',
|
|
95
|
+
method: 'POST',
|
|
96
|
+
path: '/:id/attach-subdoc',
|
|
97
|
+
pathParams: z.object({
|
|
98
|
+
id: tradeIdOrTidSchema,
|
|
99
|
+
}),
|
|
100
|
+
metadata: {
|
|
101
|
+
auth: true,
|
|
102
|
+
},
|
|
103
|
+
body: PostAttachSubdocBody,
|
|
104
|
+
responses: {
|
|
105
|
+
200: AttachSubdocResponse,
|
|
106
|
+
400: BadRequestError,
|
|
107
|
+
401: UnauthorizedError,
|
|
108
|
+
403: ForbiddenError,
|
|
109
|
+
404: NotFoundError,
|
|
110
|
+
500: InternalError,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
putAttachSubdoc: {
|
|
114
|
+
summary: 'Update attached subdoc for trade',
|
|
115
|
+
method: 'PUT',
|
|
116
|
+
path: '/:id/attach-subdoc',
|
|
117
|
+
pathParams: z.object({
|
|
118
|
+
id: tradeIdOrTidSchema,
|
|
119
|
+
}),
|
|
120
|
+
metadata: {
|
|
121
|
+
auth: true,
|
|
122
|
+
},
|
|
123
|
+
body: PutAttachSubdocBody,
|
|
124
|
+
responses: {
|
|
125
|
+
200: AttachSubdocResponse,
|
|
126
|
+
400: BadRequestError,
|
|
127
|
+
401: UnauthorizedError,
|
|
128
|
+
403: ForbiddenError,
|
|
129
|
+
404: NotFoundError,
|
|
130
|
+
500: InternalError,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
patchSubdocSign: {
|
|
134
|
+
summary: 'Update subdoc signature statuses for trade',
|
|
135
|
+
method: 'PATCH',
|
|
136
|
+
path: '/:id/sign',
|
|
137
|
+
pathParams: z.object({
|
|
138
|
+
id: tradeIdOrTidSchema,
|
|
139
|
+
}),
|
|
140
|
+
metadata: {
|
|
141
|
+
auth: true,
|
|
142
|
+
},
|
|
143
|
+
body: PatchSubdocSignatureBody,
|
|
144
|
+
responses: {
|
|
145
|
+
200: AttachSubdocResponse,
|
|
146
|
+
400: BadRequestError,
|
|
147
|
+
401: UnauthorizedError,
|
|
148
|
+
403: ForbiddenError,
|
|
149
|
+
404: NotFoundError,
|
|
150
|
+
500: InternalError,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
}, {
|
|
154
|
+
pathPrefix: 'trades',
|
|
155
|
+
});
|
|
156
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const clientsTransactionsContract: {
|
|
2
|
+
postTransaction: {
|
|
3
|
+
method: "POST";
|
|
4
|
+
metadata: {
|
|
5
|
+
auth: boolean;
|
|
6
|
+
};
|
|
7
|
+
body: import("zod").ZodObject<{
|
|
8
|
+
tid: import("zod").ZodString;
|
|
9
|
+
tradeId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
chargedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>;
|
|
12
|
+
amount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
|
|
13
|
+
} & {
|
|
14
|
+
userId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
name: string;
|
|
17
|
+
tid: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
amount: number;
|
|
20
|
+
tradeId: string;
|
|
21
|
+
chargedAt: Date | null;
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
tid: string;
|
|
25
|
+
userId: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
tradeId: string;
|
|
28
|
+
chargedAt: string | null;
|
|
29
|
+
}>;
|
|
30
|
+
summary: "Create a transaction";
|
|
31
|
+
path: "transactions";
|
|
32
|
+
responses: {
|
|
33
|
+
201: any;
|
|
34
|
+
400: import("zod").ZodObject<{
|
|
35
|
+
status: import("zod").ZodNumber;
|
|
36
|
+
message: import("zod").ZodString;
|
|
37
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
38
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
39
|
+
message: string;
|
|
40
|
+
status: number;
|
|
41
|
+
errors: string[];
|
|
42
|
+
}, {
|
|
43
|
+
message: string;
|
|
44
|
+
status: number;
|
|
45
|
+
errors: string[];
|
|
46
|
+
}>;
|
|
47
|
+
401: import("zod").ZodObject<{
|
|
48
|
+
status: import("zod").ZodNumber;
|
|
49
|
+
message: import("zod").ZodString;
|
|
50
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
51
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
52
|
+
message: string;
|
|
53
|
+
status: number;
|
|
54
|
+
errors: string[];
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
status: number;
|
|
58
|
+
errors: string[];
|
|
59
|
+
}>;
|
|
60
|
+
404: import("zod").ZodObject<{
|
|
61
|
+
status: import("zod").ZodNumber;
|
|
62
|
+
message: import("zod").ZodString;
|
|
63
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
64
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
65
|
+
message: string;
|
|
66
|
+
status: number;
|
|
67
|
+
errors: string[];
|
|
68
|
+
}, {
|
|
69
|
+
message: string;
|
|
70
|
+
status: number;
|
|
71
|
+
errors: string[];
|
|
72
|
+
}>;
|
|
73
|
+
500: import("zod").ZodObject<{
|
|
74
|
+
status: import("zod").ZodNumber;
|
|
75
|
+
message: import("zod").ZodString;
|
|
76
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
77
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
78
|
+
message: string;
|
|
79
|
+
status: number;
|
|
80
|
+
errors: string[];
|
|
81
|
+
}, {
|
|
82
|
+
message: string;
|
|
83
|
+
status: number;
|
|
84
|
+
errors: string[];
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { BadRequestError, InternalError, NotFoundError, UnauthorizedError, } from '../../../common/types/index.js';
|
|
3
|
+
import { ClientPostTransactionZod, TransactionZod, } from '../../../common/types/transaction.types.js';
|
|
4
|
+
const c = initContract();
|
|
5
|
+
export const clientsTransactionsContract = c.router({
|
|
6
|
+
postTransaction: {
|
|
7
|
+
summary: 'Create a transaction',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
path: '',
|
|
10
|
+
metadata: {
|
|
11
|
+
auth: true,
|
|
12
|
+
},
|
|
13
|
+
body: ClientPostTransactionZod,
|
|
14
|
+
responses: {
|
|
15
|
+
201: TransactionZod,
|
|
16
|
+
400: BadRequestError,
|
|
17
|
+
401: UnauthorizedError,
|
|
18
|
+
404: NotFoundError,
|
|
19
|
+
500: InternalError,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
}, {
|
|
23
|
+
pathPrefix: 'transactions',
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,aAAa,EACb,aAAa,EACb,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EACxB,cAAc,GACf,MAAM,yCAAyC,CAAC;AAEjD,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CACjD;IACE,eAAe,EAAE;QACf,OAAO,EAAE,sBAAsB;QAC/B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,IAAI,EAAE,wBAAwB;QAC9B,SAAS,EAAE;YACT,GAAG,EAAE,cAAc;YACnB,GAAG,EAAE,eAAe;YACpB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,aAAa;YAClB,GAAG,EAAE,aAAa;SACnB;KACF;CACF,EACD;IACE,UAAU,EAAE,cAAc;CAC3B,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalmore/api-contracts",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.a0bb940",
|
|
4
4
|
"description": "Type-safe API contracts for Dalmore Client Portal",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./index.
|
|
7
|
-
"types": "./index.ts",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./index.ts",
|
|
11
|
-
"import": "./index.
|
|
12
|
-
"default": "./index.
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"import": "./index.js",
|
|
12
|
+
"default": "./index.js"
|
|
13
13
|
},
|
|
14
14
|
"./clients": {
|
|
15
|
-
"types": "./contracts/clients/index.ts",
|
|
16
|
-
"import": "./contracts/clients/index.
|
|
17
|
-
"default": "./contracts/clients/index.
|
|
15
|
+
"types": "./contracts/clients/index.d.ts",
|
|
16
|
+
"import": "./contracts/clients/index.js",
|
|
17
|
+
"default": "./contracts/clients/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./types": {
|
|
20
|
-
"types": "./common/types/index.ts",
|
|
21
|
-
"import": "./common/types/index.
|
|
22
|
-
"default": "./common/types/index.
|
|
20
|
+
"types": "./common/types/index.d.ts",
|
|
21
|
+
"import": "./common/types/index.js",
|
|
22
|
+
"default": "./common/types/index.js"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"typesVersions": {
|
|
26
26
|
"*": {
|
|
27
27
|
".": [
|
|
28
|
-
"./index.ts"
|
|
28
|
+
"./index.d.ts"
|
|
29
29
|
],
|
|
30
30
|
"clients": [
|
|
31
|
-
"./contracts/clients/index.ts"
|
|
31
|
+
"./contracts/clients/index.d.ts"
|
|
32
32
|
],
|
|
33
33
|
"types": [
|
|
34
|
-
"./common/types/index.ts"
|
|
34
|
+
"./common/types/index.d.ts"
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
},
|
package/common/helpers/index.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contract helpers - minimal subset for API documentation generation
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
type CurlOptions = {
|
|
6
|
-
query?: Record<string, string>;
|
|
7
|
-
headers?: Record<string, string>;
|
|
8
|
-
body?: Record<string, unknown>;
|
|
9
|
-
formData?: Record<string, string>;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const authHeader: CurlOptions['headers'] = {
|
|
13
|
-
Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const generateCurlExample = (
|
|
17
|
-
method: string,
|
|
18
|
-
path: string,
|
|
19
|
-
options: CurlOptions,
|
|
20
|
-
) => {
|
|
21
|
-
const baseUrl = 'https://dalmore-client-portal-api-prod.onrender.com/api/v1';
|
|
22
|
-
let curl = `curl -X ${method.toUpperCase()} '${baseUrl}${path}`;
|
|
23
|
-
if (options.query) {
|
|
24
|
-
const queryString = new URLSearchParams(options.query).toString();
|
|
25
|
-
curl += `?${queryString}`;
|
|
26
|
-
}
|
|
27
|
-
curl += "'";
|
|
28
|
-
if (options.headers) {
|
|
29
|
-
Object.entries(options.headers).forEach(([key, value]) => {
|
|
30
|
-
curl += ` \\\n --header '${key}: ${value}'`;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
if (options.body) {
|
|
34
|
-
curl += ` \\\n --header 'Content-Type: application/json'`;
|
|
35
|
-
curl += ` \\\n --data '${JSON.stringify(options.body)}'`;
|
|
36
|
-
}
|
|
37
|
-
if (options.formData) {
|
|
38
|
-
Object.entries(options.formData).forEach(([key, value]) => {
|
|
39
|
-
curl += ` \\\n --form '${key}=${value}'`;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return curl;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const generateApiDescription = (
|
|
46
|
-
summary: string,
|
|
47
|
-
method: string,
|
|
48
|
-
path: string,
|
|
49
|
-
options: CurlOptions,
|
|
50
|
-
) => {
|
|
51
|
-
const curlExample = generateCurlExample(method, path, options);
|
|
52
|
-
return `${summary}
|
|
53
|
-
|
|
54
|
-
### Example curl request
|
|
55
|
-
|
|
56
|
-
\`\`\`bash
|
|
57
|
-
${curlExample}
|
|
58
|
-
\`\`\``;
|
|
59
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
|
-
import { TypeID } from 'typeid-js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { accountIdSchema } from './account.types';
|
|
5
|
-
import { PhoneZodSchema } from './phone.type';
|
|
6
|
-
import {
|
|
7
|
-
AccountContactType,
|
|
8
|
-
AccountZod,
|
|
9
|
-
EmailSchema,
|
|
10
|
-
IPaginationMeta,
|
|
11
|
-
} from './common.types';
|
|
12
|
-
import { IBaseEntity } from './entity.types';
|
|
13
|
-
import { PhoneNumberData } from './sms.types';
|
|
14
|
-
|
|
15
|
-
extendZodWithOpenApi(z);
|
|
16
|
-
|
|
17
|
-
export const accountContactIdSchema = z.string().refine(
|
|
18
|
-
(value) => {
|
|
19
|
-
try {
|
|
20
|
-
const tid = TypeID.fromString(value);
|
|
21
|
-
return tid.getType() === 'account_contact';
|
|
22
|
-
} catch {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
message:
|
|
28
|
-
'Invalid account contact ID format. Must be a valid TypeID with "account_contact" prefix.',
|
|
29
|
-
},
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
export const IAccountContact = IBaseEntity.extend({
|
|
33
|
-
id: accountContactIdSchema,
|
|
34
|
-
title: z.string().nullable().openapi({ example: 'Mr' }),
|
|
35
|
-
firstName: z.string().nullable().openapi({ example: 'John' }),
|
|
36
|
-
lastName: z.string().nullable().openapi({ example: 'Doe' }),
|
|
37
|
-
email: z
|
|
38
|
-
.string()
|
|
39
|
-
.email()
|
|
40
|
-
.nullable()
|
|
41
|
-
.openapi({ example: 'john.doe@example.com' }),
|
|
42
|
-
phone: PhoneNumberData.nullable().optional().openapi({ example: null }),
|
|
43
|
-
type: z
|
|
44
|
-
.nativeEnum(AccountContactType)
|
|
45
|
-
.openapi({ example: AccountContactType.GENERAL }),
|
|
46
|
-
accountId: accountIdSchema.openapi({
|
|
47
|
-
example: 'account_01je6ht4b8fbmttkzh2hs82xqp',
|
|
48
|
-
}),
|
|
49
|
-
account: AccountZod.optional().nullable(),
|
|
50
|
-
referenceLink: z.string().nullable().optional(),
|
|
51
|
-
});
|
|
52
|
-
export type IAccountContact = z.infer<typeof IAccountContact>;
|
|
53
|
-
|
|
54
|
-
export const PatchAccountContactZod = z.object({
|
|
55
|
-
title: z
|
|
56
|
-
.string()
|
|
57
|
-
.min(1)
|
|
58
|
-
.max(50)
|
|
59
|
-
.nullable()
|
|
60
|
-
.optional()
|
|
61
|
-
.openapi({ example: 'Mr' }),
|
|
62
|
-
firstName: z.string().min(1).max(150).openapi({ example: 'John' }),
|
|
63
|
-
lastName: z.string().min(1).max(150).openapi({ example: 'Doe' }),
|
|
64
|
-
email: EmailSchema.openapi({ example: 'john.doe@example.com' }),
|
|
65
|
-
phone: PhoneZodSchema.nullable()
|
|
66
|
-
.optional()
|
|
67
|
-
.openapi({ example: '+12124567890' }),
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export type PatchAccountContactZod = z.infer<typeof PatchAccountContactZod>;
|
|
71
|
-
|
|
72
|
-
export const CompliancePatchAccountContactZod = PatchAccountContactZod.extend({
|
|
73
|
-
accountId: accountIdSchema.openapi({
|
|
74
|
-
example: 'account_01je6ht4b8fbmttkzh2hs82xqp',
|
|
75
|
-
}),
|
|
76
|
-
referenceLink: z
|
|
77
|
-
.string()
|
|
78
|
-
.url()
|
|
79
|
-
.max(2048)
|
|
80
|
-
.nullable()
|
|
81
|
-
.optional()
|
|
82
|
-
.openapi({ example: 'https://www.google.com' }),
|
|
83
|
-
});
|
|
84
|
-
export type CompliancePatchAccountContactZod = z.infer<
|
|
85
|
-
typeof CompliancePatchAccountContactZod
|
|
86
|
-
>;
|
|
87
|
-
|
|
88
|
-
export const IPaginatedAccountContact = z.object({
|
|
89
|
-
items: z.array(IAccountContact),
|
|
90
|
-
meta: IPaginationMeta,
|
|
91
|
-
});
|
|
92
|
-
export type IPaginatedAccountContact = z.infer<typeof IPaginatedAccountContact>;
|
|
93
|
-
|
|
94
|
-
export const AccountContactDeleteResponse = z.object({
|
|
95
|
-
status: z.enum(['pass', 'fail']),
|
|
96
|
-
});
|
|
97
|
-
export type AccountContactDeleteResponse = z.infer<
|
|
98
|
-
typeof AccountContactDeleteResponse
|
|
99
|
-
>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { IAsset } from './asset.types';
|
|
3
|
-
import { IIssuer } from './issuer.types';
|
|
4
|
-
import { IOffering } from './offering.types';
|
|
5
|
-
import { IIssuerPaymentMethod } from './issuer-payment-method.types';
|
|
6
|
-
import { SiteZod } from './site.types';
|
|
7
|
-
import { IPage } from './page.types';
|
|
8
|
-
|
|
9
|
-
export const AccountDetailSummaryZod = z.object({
|
|
10
|
-
id: z.string(),
|
|
11
|
-
name: z.string(),
|
|
12
|
-
issuers: z.array(
|
|
13
|
-
IIssuer.extend({
|
|
14
|
-
offerings: z.lazy(() =>
|
|
15
|
-
z.array(
|
|
16
|
-
IOffering.extend({
|
|
17
|
-
assets: z.lazy(() => z.array(IAsset)),
|
|
18
|
-
}),
|
|
19
|
-
),
|
|
20
|
-
),
|
|
21
|
-
paymentMethods: z.lazy(() => z.array(IIssuerPaymentMethod)),
|
|
22
|
-
}),
|
|
23
|
-
),
|
|
24
|
-
sites: z.lazy(() => z.array(SiteZod)),
|
|
25
|
-
pages: z.lazy(() => z.array(IPage)),
|
|
26
|
-
});
|
|
27
|
-
export type AccountDetailSummaryZod = z.infer<typeof AccountDetailSummaryZod>;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
|
-
import { TypeID } from 'typeid-js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { IBaseEntity } from './entity.types';
|
|
5
|
-
import { accountIdSchema } from './account.types';
|
|
6
|
-
import { IPaginationMeta } from './common.types';
|
|
7
|
-
|
|
8
|
-
extendZodWithOpenApi(z);
|
|
9
|
-
|
|
10
|
-
export enum IntegrationType {
|
|
11
|
-
RAISI = 'RAISI',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const accountIntegrationIdSchema = z.string().refine(
|
|
15
|
-
(value) => {
|
|
16
|
-
try {
|
|
17
|
-
const tid = TypeID.fromString(value);
|
|
18
|
-
return tid.getType() === 'account_integration';
|
|
19
|
-
} catch {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
message:
|
|
25
|
-
'Invalid account integration ID format. Must be a valid TypeID with "account_integration" prefix.',
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export const AccountIntegrationZod = IBaseEntity.extend({
|
|
30
|
-
id: accountIntegrationIdSchema,
|
|
31
|
-
name: z.string(),
|
|
32
|
-
integration: z.nativeEnum(IntegrationType),
|
|
33
|
-
description: z.string().nullable(),
|
|
34
|
-
partnerId: z.string().nullable(),
|
|
35
|
-
url: z.string().nullable(),
|
|
36
|
-
webhook: z.string().nullable(),
|
|
37
|
-
active: z.boolean(),
|
|
38
|
-
metadata: z.record(z.string(), z.unknown()).nullable(),
|
|
39
|
-
accountId: z.lazy(() => accountIdSchema),
|
|
40
|
-
});
|
|
41
|
-
export type AccountIntegrationZod = z.infer<typeof AccountIntegrationZod>;
|
|
42
|
-
|
|
43
|
-
export const IPaginatedAccountIntegration = z.object({
|
|
44
|
-
items: z.array(AccountIntegrationZod),
|
|
45
|
-
meta: IPaginationMeta,
|
|
46
|
-
});
|
|
47
|
-
export type IPaginatedAccountIntegration = z.infer<
|
|
48
|
-
typeof IPaginatedAccountIntegration
|
|
49
|
-
>;
|
|
50
|
-
|
|
51
|
-
export const PostAccountIntegrationZod = z.object({
|
|
52
|
-
name: z.string().min(1).max(100).openapi({ example: 'Raisi' }),
|
|
53
|
-
integration: z
|
|
54
|
-
.nativeEnum(IntegrationType)
|
|
55
|
-
.openapi({ example: IntegrationType.RAISI }),
|
|
56
|
-
description: z
|
|
57
|
-
.string()
|
|
58
|
-
.min(1)
|
|
59
|
-
.max(1000)
|
|
60
|
-
.nullable()
|
|
61
|
-
.optional()
|
|
62
|
-
.openapi({ example: 'Raisi integration' }),
|
|
63
|
-
partnerId: z
|
|
64
|
-
.string()
|
|
65
|
-
.min(1)
|
|
66
|
-
.max(100)
|
|
67
|
-
.nullable()
|
|
68
|
-
.optional()
|
|
69
|
-
.openapi({ example: '1234567890' }),
|
|
70
|
-
url: z
|
|
71
|
-
.string()
|
|
72
|
-
.url()
|
|
73
|
-
.nullable()
|
|
74
|
-
.optional()
|
|
75
|
-
.openapi({ example: 'https://www.raisi.com' }),
|
|
76
|
-
webhook: z
|
|
77
|
-
.string()
|
|
78
|
-
.url()
|
|
79
|
-
.nullable()
|
|
80
|
-
.optional()
|
|
81
|
-
.openapi({ example: 'https://www.raisi.com/webhook' }),
|
|
82
|
-
active: z.boolean().default(true).openapi({ example: true }),
|
|
83
|
-
metadata: z
|
|
84
|
-
.record(z.string(), z.unknown())
|
|
85
|
-
.nullable()
|
|
86
|
-
.optional()
|
|
87
|
-
.openapi({ example: { key: 'value' } }),
|
|
88
|
-
});
|
|
89
|
-
export type PostAccountIntegrationZod = z.infer<
|
|
90
|
-
typeof PostAccountIntegrationZod
|
|
91
|
-
>;
|
|
92
|
-
|
|
93
|
-
export const PatchAccountIntegrationZod = z.object({
|
|
94
|
-
name: z
|
|
95
|
-
.string()
|
|
96
|
-
.min(1)
|
|
97
|
-
.max(100)
|
|
98
|
-
.nullable()
|
|
99
|
-
.optional()
|
|
100
|
-
.openapi({ example: 'Raisi' }),
|
|
101
|
-
integration: z
|
|
102
|
-
.nativeEnum(IntegrationType)
|
|
103
|
-
.optional()
|
|
104
|
-
.openapi({ example: IntegrationType.RAISI }),
|
|
105
|
-
description: z
|
|
106
|
-
.string()
|
|
107
|
-
.min(1)
|
|
108
|
-
.max(1000)
|
|
109
|
-
.nullable()
|
|
110
|
-
.optional()
|
|
111
|
-
.openapi({ example: 'Raisi integration' }),
|
|
112
|
-
partnerId: z.string().min(1).max(100).nullable().optional(),
|
|
113
|
-
url: z
|
|
114
|
-
.string()
|
|
115
|
-
.url()
|
|
116
|
-
.nullable()
|
|
117
|
-
.optional()
|
|
118
|
-
.openapi({ example: 'https://www.raisi.com' }),
|
|
119
|
-
webhook: z
|
|
120
|
-
.string()
|
|
121
|
-
.url()
|
|
122
|
-
.nullable()
|
|
123
|
-
.optional()
|
|
124
|
-
.openapi({ example: 'https://www.raisi.com/webhook' }),
|
|
125
|
-
active: z.boolean().nullable().optional(),
|
|
126
|
-
metadata: z
|
|
127
|
-
.record(z.string(), z.unknown())
|
|
128
|
-
.nullable()
|
|
129
|
-
.optional()
|
|
130
|
-
.openapi({ example: { key: 'value' } }),
|
|
131
|
-
});
|
|
132
|
-
export type PatchAccountIntegrationZod = z.infer<
|
|
133
|
-
typeof PatchAccountIntegrationZod
|
|
134
|
-
>;
|
|
135
|
-
|
|
136
|
-
export const AccountIntegrationFiltersZod = z.object({
|
|
137
|
-
search: z.string().max(50).optional(),
|
|
138
|
-
integration: z.nativeEnum(IntegrationType).optional(),
|
|
139
|
-
active: z.boolean().optional(),
|
|
140
|
-
});
|
|
141
|
-
export type AccountIntegrationFiltersZod = z.infer<
|
|
142
|
-
typeof AccountIntegrationFiltersZod
|
|
143
|
-
>;
|