@dalmore/api-contracts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/common/types/account-contact.types.ts +98 -0
- package/common/types/account-detail.types.ts +27 -0
- package/common/types/account-integration.types.ts +143 -0
- package/common/types/account-manager.types.ts +114 -0
- package/common/types/account.types.ts +239 -0
- package/common/types/activity.types.ts +236 -0
- package/common/types/address.types.ts +41 -0
- package/common/types/aic.types.ts +246 -0
- package/common/types/aml.types.ts +18 -0
- package/common/types/api-key-logs.types.ts +66 -0
- package/common/types/api-keys.types.ts +69 -0
- package/common/types/asset.types.ts +335 -0
- package/common/types/auth.types.ts +343 -0
- package/common/types/batch-jobs.types.ts +151 -0
- package/common/types/bonus-tier.types.ts +115 -0
- package/common/types/cart.types.ts +18 -0
- package/common/types/checklist-items.types.ts +70 -0
- package/common/types/checklist.types.ts +97 -0
- package/common/types/common.types.ts +1501 -0
- package/common/types/comply-advantage-api.types.ts +316 -0
- package/common/types/comply-advantage.types.ts +25 -0
- package/common/types/contact-us.types.ts +107 -0
- package/common/types/countries.types.ts +375 -0
- package/common/types/covered-person.types.ts +274 -0
- package/common/types/dashboard.types.ts +799 -0
- package/common/types/data-record.types.ts +325 -0
- package/common/types/data-room.types.ts +242 -0
- package/common/types/default-theme-config.types.ts +87 -0
- package/common/types/disbursement-adjustment.types.ts +32 -0
- package/common/types/disbursement-approval-user.types.ts +100 -0
- package/common/types/disbursement-review.types.ts +110 -0
- package/common/types/disbursement-transaction.types.ts +72 -0
- package/common/types/disbursements.types.ts +310 -0
- package/common/types/domain-filter.types.ts +55 -0
- package/common/types/email-theme.types.ts +442 -0
- package/common/types/entity.types.ts +15 -0
- package/common/types/error-responses.types.ts +135 -0
- package/common/types/escrow-account.types.ts +104 -0
- package/common/types/exchange-api-key.types.ts +121 -0
- package/common/types/exchange-import.types.ts +36 -0
- package/common/types/exchange-provider.types.ts +329 -0
- package/common/types/file.types.ts +461 -0
- package/common/types/health.types.ts +29 -0
- package/common/types/index.ts +48 -0
- package/common/types/individuals.types.ts +554 -0
- package/common/types/investor-account.types.ts +1168 -0
- package/common/types/investorAccountIdSchema.type.ts +0 -0
- package/common/types/investors-offering.types.ts +65 -0
- package/common/types/invite.types.ts +133 -0
- package/common/types/issuer-bank-account.types.ts +107 -0
- package/common/types/issuer-offering.types.ts +306 -0
- package/common/types/issuer-payment-method.types.ts +341 -0
- package/common/types/issuer.types.ts +312 -0
- package/common/types/job-item.types.ts +119 -0
- package/common/types/jobs.types.ts +171 -0
- package/common/types/kyb.types.ts +53 -0
- package/common/types/kyc.types.ts +188 -0
- package/common/types/legal-entity.types.ts +185 -0
- package/common/types/login-history.types.ts +46 -0
- package/common/types/mail-template.types.ts +436 -0
- package/common/types/north-cap-integration.types.ts +190 -0
- package/common/types/note.types.ts +109 -0
- package/common/types/notification.types.ts +58 -0
- package/common/types/notion-api.types.ts +374 -0
- package/common/types/notion-database.types.ts +125 -0
- package/common/types/notion-page.types.ts +267 -0
- package/common/types/offering-reports.types.ts +153 -0
- package/common/types/offering-submission.types.ts +314 -0
- package/common/types/offering.types.ts +590 -0
- package/common/types/page-revision.types.ts +86 -0
- package/common/types/page.types.ts +436 -0
- package/common/types/password.type.ts +15 -0
- package/common/types/payment-methods.types.ts +298 -0
- package/common/types/phone.type.ts +27 -0
- package/common/types/portfolio.types.ts +50 -0
- package/common/types/privacy-policy-and-tos.types.ts +231 -0
- package/common/types/queue.types.ts +112 -0
- package/common/types/registered-reps.types.ts +25 -0
- package/common/types/rejection-reasons.types.ts +56 -0
- package/common/types/reminder-config.types.ts +40 -0
- package/common/types/review.types.ts +133 -0
- package/common/types/role.types.ts +26 -0
- package/common/types/secondary-customer.types.ts +66 -0
- package/common/types/secondary-issuer.types.ts +50 -0
- package/common/types/secondary-order.types.ts +58 -0
- package/common/types/secondary-security.types.ts +60 -0
- package/common/types/secondary-trade.entity.ts +16 -0
- package/common/types/secondary-trade.types.ts +87 -0
- package/common/types/secure-request.types.ts +68 -0
- package/common/types/signer.types.ts +651 -0
- package/common/types/site-link.types.ts +166 -0
- package/common/types/site-settings.types.ts +726 -0
- package/common/types/site.types.ts +270 -0
- package/common/types/sms.types.ts +30 -0
- package/common/types/state-machine.types.ts +177 -0
- package/common/types/states.types.ts +163 -0
- package/common/types/subdoc-preview.types.ts +35 -0
- package/common/types/task.types.ts +258 -0
- package/common/types/trade-adjustment.type.ts +33 -0
- package/common/types/trade-line-item.type.ts +132 -0
- package/common/types/trade.types.ts +849 -0
- package/common/types/transaction.types.ts +198 -0
- package/common/types/trusted-contact.types.ts +122 -0
- package/common/types/typography.types.ts +75 -0
- package/common/types/user-manual.types.ts +290 -0
- package/common/types/user-setting.types.ts +133 -0
- package/common/types/user.types.ts +318 -0
- package/common/types/webhook.types.ts +588 -0
- package/common/types/zip.type.ts +36 -0
- package/contracts/clients/accounts/index.ts +58 -0
- package/contracts/clients/aic/index.ts +59 -0
- package/contracts/clients/api-key-logs/index.ts +53 -0
- package/contracts/clients/api-keys/index.ts +73 -0
- package/contracts/clients/assets/index.ts +102 -0
- package/contracts/clients/auth/index.ts +33 -0
- package/contracts/clients/files/index.ts +166 -0
- package/contracts/clients/files-public/index.ts +166 -0
- package/contracts/clients/index.ts +42 -0
- package/contracts/clients/individuals/index.ts +93 -0
- package/contracts/clients/investor-accounts/index.ts +93 -0
- package/contracts/clients/issuers/index.ts +94 -0
- package/contracts/clients/legal-entities/index.ts +93 -0
- package/contracts/clients/offerings/index.ts +116 -0
- package/contracts/clients/secure-requests/index.ts +34 -0
- package/contracts/clients/trades/index.ts +122 -0
- package/contracts/compliance/account-contacts/index.ts +82 -0
- package/contracts/compliance/account-managers/index.ts +140 -0
- package/contracts/compliance/accounts/index.ts +185 -0
- package/contracts/compliance/activities/index.ts +55 -0
- package/contracts/compliance/aic/index.ts +60 -0
- package/contracts/compliance/api-keys/index.ts +91 -0
- package/contracts/compliance/assets/index.ts +122 -0
- package/contracts/compliance/auth/index.ts +134 -0
- package/contracts/compliance/batch-jobs/index.ts +62 -0
- package/contracts/compliance/checklist/index.ts +87 -0
- package/contracts/compliance/checklist-items/index.ts +86 -0
- package/contracts/compliance/covered-persons/index.ts +97 -0
- package/contracts/compliance/dashboard/index.ts +111 -0
- package/contracts/compliance/data-records/index.ts +116 -0
- package/contracts/compliance/data-rooms/index.ts +113 -0
- package/contracts/compliance/default-theme-configs/index.ts +95 -0
- package/contracts/compliance/disbursement/index.ts +165 -0
- package/contracts/compliance/disbursement-approval-users/index.ts +84 -0
- package/contracts/compliance/disbursement-transactions/index.ts +37 -0
- package/contracts/compliance/domain-filters/index.ts +117 -0
- package/contracts/compliance/email-themes/index.ts +284 -0
- package/contracts/compliance/escrow-accounts/index.ts +85 -0
- package/contracts/compliance/exchange-api-keys/index.ts +129 -0
- package/contracts/compliance/exchange-imports/index.ts +137 -0
- package/contracts/compliance/files/index.ts +267 -0
- package/contracts/compliance/files-public/index.ts +188 -0
- package/contracts/compliance/health/index.ts +26 -0
- package/contracts/compliance/index.ts +145 -0
- package/contracts/compliance/individuals/index.ts +57 -0
- package/contracts/compliance/investor-accounts/index.ts +137 -0
- package/contracts/compliance/invites/index.ts +137 -0
- package/contracts/compliance/issuer-bank-accounts/index.ts +81 -0
- package/contracts/compliance/issuer-payment-methods/index.ts +81 -0
- package/contracts/compliance/issuers/index.ts +97 -0
- package/contracts/compliance/job-items/index.ts +58 -0
- package/contracts/compliance/jobs/index.ts +59 -0
- package/contracts/compliance/kyb/index.ts +54 -0
- package/contracts/compliance/kyc/index.ts +77 -0
- package/contracts/compliance/legal-entities/index.ts +57 -0
- package/contracts/compliance/login-histories/index.ts +37 -0
- package/contracts/compliance/notes/index.ts +69 -0
- package/contracts/compliance/notion-databases/index.ts +107 -0
- package/contracts/compliance/notion-pages/index.ts +105 -0
- package/contracts/compliance/offering-reports/index.ts +149 -0
- package/contracts/compliance/offerings/index.ts +233 -0
- package/contracts/compliance/pages/index.ts +178 -0
- package/contracts/compliance/payment-methods/index.ts +57 -0
- package/contracts/compliance/rejection-reasons/index.ts +32 -0
- package/contracts/compliance/review/index.ts +169 -0
- package/contracts/compliance/roles/index.ts +34 -0
- package/contracts/compliance/secondary-customers/index.ts +77 -0
- package/contracts/compliance/secondary-orders/index.ts +60 -0
- package/contracts/compliance/secondary-trades/index.ts +100 -0
- package/contracts/compliance/secure-requests/index.ts +54 -0
- package/contracts/compliance/signer/index.ts +369 -0
- package/contracts/compliance/site-links/index.ts +128 -0
- package/contracts/compliance/site-settings/index.ts +669 -0
- package/contracts/compliance/sites/index.ts +56 -0
- package/contracts/compliance/state-machine/index.ts +94 -0
- package/contracts/compliance/tasks/index.ts +91 -0
- package/contracts/compliance/third-parties/index.ts +52 -0
- package/contracts/compliance/trade-line-items/index.ts +59 -0
- package/contracts/compliance/trades/index.ts +230 -0
- package/contracts/compliance/transactions/index.ts +161 -0
- package/contracts/compliance/user-manuals/index.ts +271 -0
- package/contracts/compliance/user-settings/index.ts +189 -0
- package/contracts/compliance/users/index.ts +200 -0
- package/contracts/compliance/webhooks/index.ts +41 -0
- package/contracts/compliance-apikey/accounts/index.ts +58 -0
- package/contracts/compliance-apikey/index.ts +14 -0
- package/contracts/index.ts +6 -0
- package/contracts/investors/account-contacts/index.ts +58 -0
- package/contracts/investors/aic/index.ts +59 -0
- package/contracts/investors/assets/index.ts +61 -0
- package/contracts/investors/auth/index.ts +116 -0
- package/contracts/investors/bonus-tiers/index.ts +37 -0
- package/contracts/investors/cart/index.ts +75 -0
- package/contracts/investors/contact-us/index.ts +48 -0
- package/contracts/investors/data-records/index.ts +113 -0
- package/contracts/investors/data-rooms/index.ts +96 -0
- package/contracts/investors/files/index.ts +167 -0
- package/contracts/investors/files-public/index.ts +185 -0
- package/contracts/investors/index.ts +72 -0
- package/contracts/investors/individuals/index.ts +99 -0
- package/contracts/investors/investor-accounts/index.ts +110 -0
- package/contracts/investors/issuer-payment-methods/index.ts +36 -0
- package/contracts/investors/issuers/index.ts +30 -0
- package/contracts/investors/legal-entities/index.ts +93 -0
- package/contracts/investors/notes/index.ts +69 -0
- package/contracts/investors/offerings/index.ts +93 -0
- package/contracts/investors/pages/index.ts +88 -0
- package/contracts/investors/payment-methods/index.ts +149 -0
- package/contracts/investors/portfolios/index.ts +53 -0
- package/contracts/investors/sites/index.ts +96 -0
- package/contracts/investors/tasks/index.ts +111 -0
- package/contracts/investors/trade-line-items/index.ts +75 -0
- package/contracts/investors/trades/index.ts +114 -0
- package/contracts/investors/transactions/index.ts +37 -0
- package/contracts/investors/trusted-contacts/index.ts +93 -0
- package/contracts/investors/user-manuals/index.ts +62 -0
- package/contracts/investors/user-settings/index.ts +170 -0
- package/contracts/investors/users/index.ts +45 -0
- package/contracts/investors/webhooks/index.ts +30 -0
- package/contracts/issuers/account-contacts/index.ts +76 -0
- package/contracts/issuers/account-integrations/index.ts +97 -0
- package/contracts/issuers/accounts/index.ts +92 -0
- package/contracts/issuers/activities/index.ts +54 -0
- package/contracts/issuers/aic/index.ts +39 -0
- package/contracts/issuers/api-key-logs/index.ts +53 -0
- package/contracts/issuers/api-keys/index.ts +93 -0
- package/contracts/issuers/assets/index.ts +122 -0
- package/contracts/issuers/auth/index.ts +152 -0
- package/contracts/issuers/bonus-tiers/index.ts +37 -0
- package/contracts/issuers/contact-us/index.ts +48 -0
- package/contracts/issuers/covered-persons/index.ts +136 -0
- package/contracts/issuers/dashboard/index.ts +72 -0
- package/contracts/issuers/data-records/index.ts +257 -0
- package/contracts/issuers/data-rooms/index.ts +134 -0
- package/contracts/issuers/disbursement-approval-users/index.ts +82 -0
- package/contracts/issuers/disbursement-transactions/index.ts +53 -0
- package/contracts/issuers/disbursements/index.ts +153 -0
- package/contracts/issuers/email-themes/index.ts +242 -0
- package/contracts/issuers/escrow-accounts/index.ts +81 -0
- package/contracts/issuers/exchange-api-keys/index.ts +144 -0
- package/contracts/issuers/files/index.ts +166 -0
- package/contracts/issuers/files-public/index.ts +166 -0
- package/contracts/issuers/health/index.ts +24 -0
- package/contracts/issuers/index.ts +112 -0
- package/contracts/issuers/investor-accounts/index.ts +126 -0
- package/contracts/issuers/invites/index.ts +129 -0
- package/contracts/issuers/issuer/index.ts +94 -0
- package/contracts/issuers/issuer-bank-accounts/index.ts +81 -0
- package/contracts/issuers/issuer-payment-methods/index.ts +136 -0
- package/contracts/issuers/kyc/index.ts +38 -0
- package/contracts/issuers/login-histories/index.ts +51 -0
- package/contracts/issuers/notes/index.ts +69 -0
- package/contracts/issuers/offerings/index.ts +206 -0
- package/contracts/issuers/pages/index.ts +138 -0
- package/contracts/issuers/payment-methods/index.ts +61 -0
- package/contracts/issuers/portfolios/index.ts +36 -0
- package/contracts/issuers/rejection-reasons/index.ts +32 -0
- package/contracts/issuers/review/index.ts +63 -0
- package/contracts/issuers/secondary-customers/index.ts +55 -0
- package/contracts/issuers/secondary-orders/index.ts +57 -0
- package/contracts/issuers/secondary-trades/index.ts +57 -0
- package/contracts/issuers/secure-requests/index.ts +34 -0
- package/contracts/issuers/site-links/index.ts +116 -0
- package/contracts/issuers/site-settings/index.ts +585 -0
- package/contracts/issuers/sites/index.ts +32 -0
- package/contracts/issuers/tasks/index.ts +111 -0
- package/contracts/issuers/trades/index.ts +132 -0
- package/contracts/issuers/transactions/index.ts +158 -0
- package/contracts/issuers/user-manuals/index.ts +62 -0
- package/contracts/issuers/user-settings/index.ts +170 -0
- package/contracts/issuers/users/index.ts +126 -0
- package/contracts/secondaries/accounts/index.ts +58 -0
- package/contracts/secondaries/index.ts +23 -0
- package/contracts/secondaries/secondary-customers/index.ts +55 -0
- package/contracts/secondaries/secondary-issuers/index.ts +94 -0
- package/contracts/secondaries/secondary-orders/index.ts +56 -0
- package/contracts/secondaries/secondary-securities/index.ts +95 -0
- package/contracts/secondaries/secondary-trades/index.ts +56 -0
- package/package.json +74 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { accountsContract } from './accounts';
|
|
2
|
+
import { accountContactsContract } from './account-contacts';
|
|
3
|
+
import { accountManagersContract } from './account-managers';
|
|
4
|
+
import { activitiesContract } from './activities';
|
|
5
|
+
import { apiKeysContract } from './api-keys';
|
|
6
|
+
import { assetsContract } from './assets';
|
|
7
|
+
import { authContract } from './auth';
|
|
8
|
+
import { checkListContract } from './checklist';
|
|
9
|
+
import { checkListItemsContract } from './checklist-items';
|
|
10
|
+
import { coveredPersonsContract } from './covered-persons';
|
|
11
|
+
import { dashboardContract } from './dashboard';
|
|
12
|
+
import { dataRecordsContract } from './data-records';
|
|
13
|
+
import { dataRoomsContract } from './data-rooms';
|
|
14
|
+
import { disbursementApprovalUsersContract } from './disbursement-approval-users';
|
|
15
|
+
import { disbursementContract } from './disbursement';
|
|
16
|
+
import { disbursementTransactionsContract } from './disbursement-transactions';
|
|
17
|
+
import { emailThemesContract } from './email-themes';
|
|
18
|
+
import { escrowAccountsContract } from './escrow-accounts';
|
|
19
|
+
import { filesContract } from './files';
|
|
20
|
+
import { filesPublicContract } from './files-public';
|
|
21
|
+
import { individualsContract } from './individuals';
|
|
22
|
+
import { initContract } from '@ts-rest/core';
|
|
23
|
+
import { investorAccountsContract } from './investor-accounts';
|
|
24
|
+
import { invitesContract } from './invites';
|
|
25
|
+
import { issuerBankAccountsContract } from './issuer-bank-accounts';
|
|
26
|
+
import { issuerPaymentMethodsContract } from './issuer-payment-methods';
|
|
27
|
+
import { issuersContract } from './issuers';
|
|
28
|
+
import { jobsContract } from './jobs';
|
|
29
|
+
import { kybsContract } from './kyb';
|
|
30
|
+
import { kycsContract } from './kyc';
|
|
31
|
+
import { legalEntitiesContract } from './legal-entities';
|
|
32
|
+
import { loginHistoriesContract } from './login-histories';
|
|
33
|
+
import { notesContract } from './notes';
|
|
34
|
+
import { offeringsContract } from './offerings';
|
|
35
|
+
import { pagesContract } from './pages';
|
|
36
|
+
import { paymentMethodsContract } from './payment-methods';
|
|
37
|
+
import { rejectionReasonsContract } from './rejection-reasons';
|
|
38
|
+
import { reviewContract } from './review';
|
|
39
|
+
import { rolesContract } from './roles';
|
|
40
|
+
import { secureRequestContract } from './secure-requests';
|
|
41
|
+
import { siteLinksContract } from './site-links';
|
|
42
|
+
import { sitesContract } from './sites';
|
|
43
|
+
import { siteSettingsContract } from './site-settings';
|
|
44
|
+
import { tasksContract } from './tasks';
|
|
45
|
+
import { thirdPartiesContract } from './third-parties';
|
|
46
|
+
import { tradeLineItemsContract } from './trade-line-items';
|
|
47
|
+
import { tradesContract } from './trades';
|
|
48
|
+
import { transactionsContract } from './transactions';
|
|
49
|
+
import { userManualsContract } from './user-manuals';
|
|
50
|
+
import { usersContract } from './users';
|
|
51
|
+
import { userSettingsContract } from './user-settings';
|
|
52
|
+
import { webhooksContract } from './webhooks';
|
|
53
|
+
import { domainFiltersContract } from './domain-filters';
|
|
54
|
+
import { healthContract } from './health';
|
|
55
|
+
import { signerContract } from './signer';
|
|
56
|
+
import { secondaryCustomersContract } from './secondary-customers';
|
|
57
|
+
import { secondaryOrdersContract } from './secondary-orders';
|
|
58
|
+
import { batchJobsContract } from './batch-jobs';
|
|
59
|
+
import { jobItemsContract } from './job-items';
|
|
60
|
+
import { exchangeImportsContract } from './exchange-imports';
|
|
61
|
+
import { secondaryTradesContract } from './secondary-trades';
|
|
62
|
+
import { exchangeApiKeysContract } from './exchange-api-keys';
|
|
63
|
+
import { notionDatabasesContract } from './notion-databases';
|
|
64
|
+
import { notionPagesContract } from './notion-pages';
|
|
65
|
+
import { defaultThemeConfigsContract } from './default-theme-configs';
|
|
66
|
+
import { aicContract } from './aic';
|
|
67
|
+
import { stateMachineContract } from './state-machine';
|
|
68
|
+
import { offeringReportsContract } from './offering-reports';
|
|
69
|
+
|
|
70
|
+
const c = initContract();
|
|
71
|
+
|
|
72
|
+
export const complianceContract = c.router(
|
|
73
|
+
{
|
|
74
|
+
accounts: accountsContract,
|
|
75
|
+
accountContacts: accountContactsContract,
|
|
76
|
+
accountManagers: accountManagersContract,
|
|
77
|
+
activities: activitiesContract,
|
|
78
|
+
apiKeys: apiKeysContract,
|
|
79
|
+
assets: assetsContract,
|
|
80
|
+
auth: authContract,
|
|
81
|
+
aic: aicContract,
|
|
82
|
+
batchJobs: batchJobsContract,
|
|
83
|
+
checklist: checkListContract,
|
|
84
|
+
checklistItems: checkListItemsContract,
|
|
85
|
+
coveredPersons: coveredPersonsContract,
|
|
86
|
+
dashboard: dashboardContract,
|
|
87
|
+
dataRecords: dataRecordsContract,
|
|
88
|
+
dataRooms: dataRoomsContract,
|
|
89
|
+
defaultThemeConfigs: defaultThemeConfigsContract,
|
|
90
|
+
disbursementApprovalUsers: disbursementApprovalUsersContract,
|
|
91
|
+
disbursements: disbursementContract,
|
|
92
|
+
disbursementTransactions: disbursementTransactionsContract,
|
|
93
|
+
domainFilters: domainFiltersContract,
|
|
94
|
+
emailThemes: emailThemesContract,
|
|
95
|
+
escrowAccounts: escrowAccountsContract,
|
|
96
|
+
exchangeApiKeys: exchangeApiKeysContract,
|
|
97
|
+
exchangeImports: exchangeImportsContract,
|
|
98
|
+
files: filesContract,
|
|
99
|
+
filesPublic: filesPublicContract,
|
|
100
|
+
health: healthContract,
|
|
101
|
+
individuals: individualsContract,
|
|
102
|
+
investorAccounts: investorAccountsContract,
|
|
103
|
+
invites: invitesContract,
|
|
104
|
+
issuerBankAccounts: issuerBankAccountsContract,
|
|
105
|
+
issuerPaymentMethods: issuerPaymentMethodsContract,
|
|
106
|
+
issuers: issuersContract,
|
|
107
|
+
jobs: jobsContract,
|
|
108
|
+
kybs: kybsContract,
|
|
109
|
+
kycs: kycsContract,
|
|
110
|
+
legalEntities: legalEntitiesContract,
|
|
111
|
+
loginHistories: loginHistoriesContract,
|
|
112
|
+
notes: notesContract,
|
|
113
|
+
offerings: offeringsContract,
|
|
114
|
+
pages: pagesContract,
|
|
115
|
+
paymentMethods: paymentMethodsContract,
|
|
116
|
+
review: reviewContract,
|
|
117
|
+
roles: rolesContract,
|
|
118
|
+
rejectionReasons: rejectionReasonsContract,
|
|
119
|
+
secondaryCustomers: secondaryCustomersContract,
|
|
120
|
+
secondaryOrders: secondaryOrdersContract,
|
|
121
|
+
secondaryTrades: secondaryTradesContract,
|
|
122
|
+
secureRequests: secureRequestContract,
|
|
123
|
+
stateMachine: stateMachineContract,
|
|
124
|
+
signer: signerContract,
|
|
125
|
+
siteLinks: siteLinksContract,
|
|
126
|
+
sites: sitesContract,
|
|
127
|
+
siteSettings: siteSettingsContract,
|
|
128
|
+
tasks: tasksContract,
|
|
129
|
+
thirdParties: thirdPartiesContract,
|
|
130
|
+
trades: tradesContract,
|
|
131
|
+
transactions: transactionsContract,
|
|
132
|
+
tradeLineItems: tradeLineItemsContract,
|
|
133
|
+
userManuals: userManualsContract,
|
|
134
|
+
users: usersContract,
|
|
135
|
+
userSettings: userSettingsContract,
|
|
136
|
+
webhooks: webhooksContract,
|
|
137
|
+
jobItems: jobItemsContract,
|
|
138
|
+
notionDatabases: notionDatabasesContract,
|
|
139
|
+
notionPages: notionPagesContract,
|
|
140
|
+
offeringReports: offeringReportsContract,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
pathPrefix: '/compliance/api/v1/',
|
|
144
|
+
},
|
|
145
|
+
);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
ForbiddenError,
|
|
4
|
+
IPaginatedIndividual,
|
|
5
|
+
NotFoundError,
|
|
6
|
+
PaginationOptionsZod,
|
|
7
|
+
UnauthorizedError,
|
|
8
|
+
ComplianceIndividualFiltersZod,
|
|
9
|
+
IndividualsIncludeQuery,
|
|
10
|
+
IIndividualZod,
|
|
11
|
+
individualIdSchema,
|
|
12
|
+
} from '../../../common/types';
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
|
|
15
|
+
const c = initContract();
|
|
16
|
+
|
|
17
|
+
export const individualsContract = c.router(
|
|
18
|
+
{
|
|
19
|
+
getIndividual: {
|
|
20
|
+
summary: 'Get individual by id',
|
|
21
|
+
method: 'GET',
|
|
22
|
+
path: '/:id',
|
|
23
|
+
metadata: {
|
|
24
|
+
auth: true,
|
|
25
|
+
},
|
|
26
|
+
query: z.object({}).merge(IndividualsIncludeQuery),
|
|
27
|
+
pathParams: z.object({
|
|
28
|
+
id: individualIdSchema,
|
|
29
|
+
}),
|
|
30
|
+
responses: {
|
|
31
|
+
200: IIndividualZod,
|
|
32
|
+
401: UnauthorizedError,
|
|
33
|
+
403: ForbiddenError,
|
|
34
|
+
404: NotFoundError,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
getIndividuals: {
|
|
38
|
+
summary: 'Get individuals',
|
|
39
|
+
method: 'GET',
|
|
40
|
+
path: '',
|
|
41
|
+
metadata: {
|
|
42
|
+
auth: true,
|
|
43
|
+
},
|
|
44
|
+
query: PaginationOptionsZod.merge(ComplianceIndividualFiltersZod).merge(
|
|
45
|
+
IndividualsIncludeQuery,
|
|
46
|
+
),
|
|
47
|
+
responses: {
|
|
48
|
+
200: IPaginatedIndividual,
|
|
49
|
+
401: UnauthorizedError,
|
|
50
|
+
403: ForbiddenError,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
pathPrefix: 'individuals',
|
|
56
|
+
},
|
|
57
|
+
);
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
accountIdSchema,
|
|
4
|
+
BadRequestError,
|
|
5
|
+
ForbiddenError,
|
|
6
|
+
InternalError,
|
|
7
|
+
NotFoundError,
|
|
8
|
+
PaginationOptionsZod,
|
|
9
|
+
UnauthorizedError,
|
|
10
|
+
} from '../../../common/types';
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import {
|
|
13
|
+
ExportInvestorAccountsResponse,
|
|
14
|
+
IInvestorAccount,
|
|
15
|
+
IInvestorAccountSummary,
|
|
16
|
+
investorAccountIdSchema,
|
|
17
|
+
InvestorAccountsFiltersZod,
|
|
18
|
+
InvestorAccountsIncludeQuery,
|
|
19
|
+
InvestorAccountsSortZod,
|
|
20
|
+
IPaginatedInvestorAccounts,
|
|
21
|
+
IPaginatedRegisteredInvestorUserZod,
|
|
22
|
+
RegisteredInvestorUserFiltersZod,
|
|
23
|
+
SeedInvestorAccountsForDemoUsersZod,
|
|
24
|
+
} from '../../../common/types/investor-account.types';
|
|
25
|
+
|
|
26
|
+
const c = initContract();
|
|
27
|
+
|
|
28
|
+
export const investorAccountsContract = c.router(
|
|
29
|
+
{
|
|
30
|
+
getRegisteredInvestorUsers: {
|
|
31
|
+
summary: 'Get registered investor users',
|
|
32
|
+
method: 'GET',
|
|
33
|
+
path: '/registered-users/:accountId',
|
|
34
|
+
metadata: {
|
|
35
|
+
auth: true,
|
|
36
|
+
},
|
|
37
|
+
pathParams: z.object({
|
|
38
|
+
accountId: accountIdSchema,
|
|
39
|
+
}),
|
|
40
|
+
query: PaginationOptionsZod.merge(RegisteredInvestorUserFiltersZod),
|
|
41
|
+
responses: {
|
|
42
|
+
200: IPaginatedRegisteredInvestorUserZod,
|
|
43
|
+
401: UnauthorizedError,
|
|
44
|
+
403: ForbiddenError,
|
|
45
|
+
500: InternalError,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
getInvestorAccount: {
|
|
49
|
+
summary: 'Get investor account by id',
|
|
50
|
+
method: 'GET',
|
|
51
|
+
path: '/:id',
|
|
52
|
+
metadata: {
|
|
53
|
+
auth: true,
|
|
54
|
+
},
|
|
55
|
+
query: z.object({}).merge(InvestorAccountsIncludeQuery),
|
|
56
|
+
pathParams: z.object({
|
|
57
|
+
id: investorAccountIdSchema,
|
|
58
|
+
}),
|
|
59
|
+
responses: {
|
|
60
|
+
200: IInvestorAccount,
|
|
61
|
+
401: UnauthorizedError,
|
|
62
|
+
403: ForbiddenError,
|
|
63
|
+
404: NotFoundError,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
getInvestorAccounts: {
|
|
67
|
+
summary: 'Get investor accounts',
|
|
68
|
+
method: 'GET',
|
|
69
|
+
path: '',
|
|
70
|
+
metadata: {
|
|
71
|
+
auth: true,
|
|
72
|
+
},
|
|
73
|
+
query: PaginationOptionsZod.merge(InvestorAccountsFiltersZod).merge(
|
|
74
|
+
InvestorAccountsSortZod,
|
|
75
|
+
),
|
|
76
|
+
responses: {
|
|
77
|
+
200: IPaginatedInvestorAccounts,
|
|
78
|
+
401: UnauthorizedError,
|
|
79
|
+
403: ForbiddenError,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
getInvestorAccountSummary: {
|
|
83
|
+
summary: 'Get investor account summary',
|
|
84
|
+
method: 'GET',
|
|
85
|
+
path: '/:id/summary',
|
|
86
|
+
metadata: {
|
|
87
|
+
auth: true,
|
|
88
|
+
},
|
|
89
|
+
pathParams: z.object({
|
|
90
|
+
id: investorAccountIdSchema,
|
|
91
|
+
}),
|
|
92
|
+
responses: {
|
|
93
|
+
200: IInvestorAccountSummary,
|
|
94
|
+
401: UnauthorizedError,
|
|
95
|
+
403: ForbiddenError,
|
|
96
|
+
404: NotFoundError,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
seedInvestorAccountsForDemoUsers: {
|
|
100
|
+
summary: '[Admin] Seed investor accounts for demo users',
|
|
101
|
+
method: 'POST',
|
|
102
|
+
path: '/seed',
|
|
103
|
+
metadata: {
|
|
104
|
+
auth: true,
|
|
105
|
+
},
|
|
106
|
+
body: SeedInvestorAccountsForDemoUsersZod,
|
|
107
|
+
responses: {
|
|
108
|
+
200: ExportInvestorAccountsResponse,
|
|
109
|
+
400: BadRequestError,
|
|
110
|
+
401: UnauthorizedError,
|
|
111
|
+
403: ForbiddenError,
|
|
112
|
+
404: NotFoundError,
|
|
113
|
+
500: InternalError,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
seedInvestorAccountsForAllDemoUsers: {
|
|
117
|
+
summary: '[Admin] Seed investor accounts for all demo users',
|
|
118
|
+
method: 'POST',
|
|
119
|
+
path: '/seed-all',
|
|
120
|
+
metadata: {
|
|
121
|
+
auth: true,
|
|
122
|
+
},
|
|
123
|
+
body: z.object({}),
|
|
124
|
+
responses: {
|
|
125
|
+
200: ExportInvestorAccountsResponse,
|
|
126
|
+
400: BadRequestError,
|
|
127
|
+
401: UnauthorizedError,
|
|
128
|
+
403: ForbiddenError,
|
|
129
|
+
404: NotFoundError,
|
|
130
|
+
500: InternalError,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
pathPrefix: 'investor-accounts',
|
|
136
|
+
},
|
|
137
|
+
);
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
BadRequestError,
|
|
4
|
+
ForbiddenError,
|
|
5
|
+
InternalError,
|
|
6
|
+
inviteIdSchema,
|
|
7
|
+
InviteWithoutSecretZod,
|
|
8
|
+
InviteWithUrl,
|
|
9
|
+
IPaginatedInvite,
|
|
10
|
+
NotFoundError,
|
|
11
|
+
PaginationOptionsZod,
|
|
12
|
+
PatchInviteForComplianceZod,
|
|
13
|
+
PortalType,
|
|
14
|
+
UnauthorizedError,
|
|
15
|
+
UserRole,
|
|
16
|
+
} from '../../../common/types';
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
|
|
19
|
+
const c = initContract();
|
|
20
|
+
|
|
21
|
+
export const invitesContract = c.router(
|
|
22
|
+
{
|
|
23
|
+
getInvites: {
|
|
24
|
+
summary: '[ADMIN] Get invites',
|
|
25
|
+
method: 'GET',
|
|
26
|
+
path: '',
|
|
27
|
+
metadata: {
|
|
28
|
+
auth: true,
|
|
29
|
+
},
|
|
30
|
+
query: PaginationOptionsZod,
|
|
31
|
+
responses: {
|
|
32
|
+
200: IPaginatedInvite,
|
|
33
|
+
400: BadRequestError,
|
|
34
|
+
401: UnauthorizedError,
|
|
35
|
+
403: ForbiddenError,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
postInvite: {
|
|
39
|
+
summary: '[ADMIN] Invite user',
|
|
40
|
+
method: 'POST',
|
|
41
|
+
path: '',
|
|
42
|
+
metadata: {
|
|
43
|
+
auth: true,
|
|
44
|
+
},
|
|
45
|
+
body: z.object({
|
|
46
|
+
email: z.string().email(),
|
|
47
|
+
role: z.nativeEnum(UserRole),
|
|
48
|
+
accountId: z.string().optional(),
|
|
49
|
+
portalType: z.nativeEnum(PortalType).optional(),
|
|
50
|
+
}),
|
|
51
|
+
responses: {
|
|
52
|
+
201: InviteWithUrl,
|
|
53
|
+
400: BadRequestError,
|
|
54
|
+
401: UnauthorizedError,
|
|
55
|
+
403: ForbiddenError,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
postInviteForCompliance: {
|
|
59
|
+
summary: '[ADMIN] Invite user for Compliance',
|
|
60
|
+
method: 'POST',
|
|
61
|
+
path: '/compliance',
|
|
62
|
+
metadata: {
|
|
63
|
+
auth: true,
|
|
64
|
+
},
|
|
65
|
+
body: z.object({
|
|
66
|
+
email: z.string().email(),
|
|
67
|
+
role: z.nativeEnum(UserRole),
|
|
68
|
+
}),
|
|
69
|
+
responses: {
|
|
70
|
+
201: InviteWithUrl,
|
|
71
|
+
400: BadRequestError,
|
|
72
|
+
401: UnauthorizedError,
|
|
73
|
+
403: ForbiddenError,
|
|
74
|
+
500: InternalError,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
verifyInvite: {
|
|
78
|
+
summary: 'Verify invite',
|
|
79
|
+
method: 'GET',
|
|
80
|
+
path: '/verify/:code',
|
|
81
|
+
pathParams: z.object({
|
|
82
|
+
code: z.string(),
|
|
83
|
+
}),
|
|
84
|
+
responses: {
|
|
85
|
+
200: z.object({
|
|
86
|
+
valid: z.boolean(),
|
|
87
|
+
email: z.string().email().nullable(),
|
|
88
|
+
}),
|
|
89
|
+
400: BadRequestError,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
patchInviteRole: {
|
|
93
|
+
summary: 'Patch invite role',
|
|
94
|
+
method: 'PATCH',
|
|
95
|
+
path: '/:id/role',
|
|
96
|
+
pathParams: z.object({
|
|
97
|
+
id: inviteIdSchema,
|
|
98
|
+
}),
|
|
99
|
+
metadata: {
|
|
100
|
+
auth: true,
|
|
101
|
+
},
|
|
102
|
+
body: PatchInviteForComplianceZod,
|
|
103
|
+
responses: {
|
|
104
|
+
201: InviteWithoutSecretZod,
|
|
105
|
+
400: BadRequestError,
|
|
106
|
+
401: UnauthorizedError,
|
|
107
|
+
403: ForbiddenError,
|
|
108
|
+
404: NotFoundError,
|
|
109
|
+
500: InternalError,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
deleteInvite: {
|
|
113
|
+
summary: 'Delete invite by id',
|
|
114
|
+
method: 'DELETE',
|
|
115
|
+
path: '/:id',
|
|
116
|
+
metadata: {
|
|
117
|
+
auth: true,
|
|
118
|
+
},
|
|
119
|
+
pathParams: z.object({
|
|
120
|
+
id: inviteIdSchema,
|
|
121
|
+
}),
|
|
122
|
+
responses: {
|
|
123
|
+
200: z.object({
|
|
124
|
+
message: z.string(),
|
|
125
|
+
}),
|
|
126
|
+
400: BadRequestError,
|
|
127
|
+
401: UnauthorizedError,
|
|
128
|
+
403: ForbiddenError,
|
|
129
|
+
404: NotFoundError,
|
|
130
|
+
500: InternalError,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
pathPrefix: 'invites',
|
|
136
|
+
},
|
|
137
|
+
);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
ForbiddenError,
|
|
4
|
+
InternalError,
|
|
5
|
+
NotFoundError,
|
|
6
|
+
UnauthorizedError,
|
|
7
|
+
PaginationOptionsZod,
|
|
8
|
+
BadRequestError,
|
|
9
|
+
} from '../../../common/types';
|
|
10
|
+
import {
|
|
11
|
+
IIssuerBankAccount,
|
|
12
|
+
IPaginatedIssuerBankAccount,
|
|
13
|
+
issuerBankAccountIdSchema,
|
|
14
|
+
IssuerBankAccountsFilter,
|
|
15
|
+
IssuerBankAccountsIncludeQuery,
|
|
16
|
+
PatchIssuerBankAccount,
|
|
17
|
+
PostIssuerBankAccount,
|
|
18
|
+
} from '../../../common/types/issuer-bank-account.types';
|
|
19
|
+
import { z } from 'zod';
|
|
20
|
+
|
|
21
|
+
const c = initContract();
|
|
22
|
+
|
|
23
|
+
export const issuerBankAccountsContract = c.router(
|
|
24
|
+
{
|
|
25
|
+
getIssuerBankAccounts: {
|
|
26
|
+
summary: 'Get issuer bank accounts',
|
|
27
|
+
method: 'GET',
|
|
28
|
+
path: '',
|
|
29
|
+
metadata: {
|
|
30
|
+
auth: true,
|
|
31
|
+
},
|
|
32
|
+
query: PaginationOptionsZod.merge(IssuerBankAccountsFilter).merge(
|
|
33
|
+
IssuerBankAccountsIncludeQuery,
|
|
34
|
+
),
|
|
35
|
+
responses: {
|
|
36
|
+
200: IPaginatedIssuerBankAccount,
|
|
37
|
+
401: UnauthorizedError,
|
|
38
|
+
403: ForbiddenError,
|
|
39
|
+
404: NotFoundError,
|
|
40
|
+
500: InternalError,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
postIssuerBankAccount: {
|
|
44
|
+
summary: 'Create an issuer bank account',
|
|
45
|
+
method: 'POST',
|
|
46
|
+
path: '',
|
|
47
|
+
metadata: {
|
|
48
|
+
auth: true,
|
|
49
|
+
},
|
|
50
|
+
body: PostIssuerBankAccount,
|
|
51
|
+
responses: {
|
|
52
|
+
201: IIssuerBankAccount,
|
|
53
|
+
400: BadRequestError,
|
|
54
|
+
401: UnauthorizedError,
|
|
55
|
+
404: NotFoundError,
|
|
56
|
+
500: InternalError,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
patchIssuerBankAccount: {
|
|
60
|
+
summary: 'Update issuer bank account',
|
|
61
|
+
method: 'PATCH',
|
|
62
|
+
path: '/:id',
|
|
63
|
+
metadata: {
|
|
64
|
+
auth: true,
|
|
65
|
+
},
|
|
66
|
+
pathParams: z.object({ id: issuerBankAccountIdSchema }),
|
|
67
|
+
body: PatchIssuerBankAccount,
|
|
68
|
+
responses: {
|
|
69
|
+
201: IIssuerBankAccount,
|
|
70
|
+
400: BadRequestError,
|
|
71
|
+
401: UnauthorizedError,
|
|
72
|
+
403: ForbiddenError,
|
|
73
|
+
404: NotFoundError,
|
|
74
|
+
500: InternalError,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
pathPrefix: 'issuer-bank-accounts',
|
|
80
|
+
},
|
|
81
|
+
);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
ForbiddenError,
|
|
4
|
+
InternalError,
|
|
5
|
+
NotFoundError,
|
|
6
|
+
UnauthorizedError,
|
|
7
|
+
ComplianceGetIssuerPaymentMethodZod,
|
|
8
|
+
IIssuerPaymentMethod,
|
|
9
|
+
IPaginatedIssuerPaymentMethod,
|
|
10
|
+
issuerPaymentMethodIdSchema,
|
|
11
|
+
PaginationOptionsZod,
|
|
12
|
+
accountIdSchema,
|
|
13
|
+
CompliancePatchIssuerPaymentMethodZod,
|
|
14
|
+
} from '../../../common/types';
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
|
|
17
|
+
const c = initContract();
|
|
18
|
+
|
|
19
|
+
export const issuerPaymentMethodsContract = c.router(
|
|
20
|
+
{
|
|
21
|
+
getIssuerPaymentMethods: {
|
|
22
|
+
summary: 'get payment methods',
|
|
23
|
+
method: 'GET',
|
|
24
|
+
path: '',
|
|
25
|
+
metadata: {
|
|
26
|
+
auth: true,
|
|
27
|
+
},
|
|
28
|
+
query: PaginationOptionsZod.merge(ComplianceGetIssuerPaymentMethodZod),
|
|
29
|
+
responses: {
|
|
30
|
+
200: IPaginatedIssuerPaymentMethod,
|
|
31
|
+
401: UnauthorizedError,
|
|
32
|
+
403: ForbiddenError,
|
|
33
|
+
404: NotFoundError,
|
|
34
|
+
500: InternalError,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
patchIssuerPaymentMethod: {
|
|
38
|
+
summary: 'PATCH issuer payment method for compliance',
|
|
39
|
+
method: 'PATCH',
|
|
40
|
+
path: '/:id',
|
|
41
|
+
pathParams: z.object({
|
|
42
|
+
id: issuerPaymentMethodIdSchema,
|
|
43
|
+
}),
|
|
44
|
+
metadata: {
|
|
45
|
+
auth: true,
|
|
46
|
+
},
|
|
47
|
+
body: CompliancePatchIssuerPaymentMethodZod,
|
|
48
|
+
responses: {
|
|
49
|
+
201: IIssuerPaymentMethod,
|
|
50
|
+
401: UnauthorizedError,
|
|
51
|
+
403: ForbiddenError,
|
|
52
|
+
404: NotFoundError,
|
|
53
|
+
500: InternalError,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
toggleIssuerPaymentMethod: {
|
|
57
|
+
summary: 'Toggle issuer payment method',
|
|
58
|
+
method: 'PATCH',
|
|
59
|
+
path: '/:id/toggle',
|
|
60
|
+
metadata: {
|
|
61
|
+
auth: true,
|
|
62
|
+
},
|
|
63
|
+
pathParams: z.object({
|
|
64
|
+
id: issuerPaymentMethodIdSchema,
|
|
65
|
+
}),
|
|
66
|
+
body: z.object({
|
|
67
|
+
enabled: z.boolean(),
|
|
68
|
+
accountId: accountIdSchema,
|
|
69
|
+
}),
|
|
70
|
+
responses: {
|
|
71
|
+
200: IIssuerPaymentMethod,
|
|
72
|
+
401: UnauthorizedError,
|
|
73
|
+
403: ForbiddenError,
|
|
74
|
+
404: NotFoundError,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
pathPrefix: 'issuer-payment-methods',
|
|
80
|
+
},
|
|
81
|
+
);
|