@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,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,136 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
ForbiddenError,
|
|
4
|
+
InternalError,
|
|
5
|
+
NotFoundError,
|
|
6
|
+
UnauthorizedError,
|
|
7
|
+
GetIssuerPaymentMethodZod,
|
|
8
|
+
IIssuerPaymentMethod,
|
|
9
|
+
IPaginatedIssuerPaymentMethod,
|
|
10
|
+
issuerPaymentMethodIdSchema,
|
|
11
|
+
PatchIssuerPaymentMethodZod,
|
|
12
|
+
PaginationOptionsZod,
|
|
13
|
+
ConnectIssuerPaymentMethodZod,
|
|
14
|
+
BadRequestError,
|
|
15
|
+
} from '../../../common/types';
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
|
|
18
|
+
const c = initContract();
|
|
19
|
+
|
|
20
|
+
export const issuerPaymentMethodsContract = c.router(
|
|
21
|
+
{
|
|
22
|
+
getIssuerPaymentMethods: {
|
|
23
|
+
summary: 'get payment methods',
|
|
24
|
+
method: 'GET',
|
|
25
|
+
path: '',
|
|
26
|
+
metadata: {
|
|
27
|
+
auth: true,
|
|
28
|
+
},
|
|
29
|
+
query: PaginationOptionsZod.merge(GetIssuerPaymentMethodZod),
|
|
30
|
+
responses: {
|
|
31
|
+
200: IPaginatedIssuerPaymentMethod,
|
|
32
|
+
401: UnauthorizedError,
|
|
33
|
+
403: ForbiddenError,
|
|
34
|
+
404: NotFoundError,
|
|
35
|
+
500: InternalError,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
patchIssuerPaymentMethod: {
|
|
39
|
+
summary: 'PATCH issuer payment method',
|
|
40
|
+
method: 'PATCH',
|
|
41
|
+
path: '/:id',
|
|
42
|
+
pathParams: z.object({
|
|
43
|
+
id: issuerPaymentMethodIdSchema,
|
|
44
|
+
}),
|
|
45
|
+
metadata: {
|
|
46
|
+
auth: true,
|
|
47
|
+
},
|
|
48
|
+
body: PatchIssuerPaymentMethodZod,
|
|
49
|
+
responses: {
|
|
50
|
+
201: IIssuerPaymentMethod,
|
|
51
|
+
401: UnauthorizedError,
|
|
52
|
+
403: ForbiddenError,
|
|
53
|
+
404: NotFoundError,
|
|
54
|
+
500: InternalError,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
toggleIssuerPaymentMethod: {
|
|
58
|
+
summary: 'Toggle issuer payment method',
|
|
59
|
+
method: 'PATCH',
|
|
60
|
+
path: '/:id/toggle',
|
|
61
|
+
metadata: {
|
|
62
|
+
auth: true,
|
|
63
|
+
},
|
|
64
|
+
pathParams: z.object({
|
|
65
|
+
id: issuerPaymentMethodIdSchema,
|
|
66
|
+
}),
|
|
67
|
+
body: z.object({
|
|
68
|
+
enabled: z.boolean(),
|
|
69
|
+
}),
|
|
70
|
+
responses: {
|
|
71
|
+
200: IIssuerPaymentMethod,
|
|
72
|
+
401: UnauthorizedError,
|
|
73
|
+
403: ForbiddenError,
|
|
74
|
+
404: NotFoundError,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
connectIssuerPaymentMethod: {
|
|
78
|
+
summary: 'Connect issuer payment method',
|
|
79
|
+
method: 'POST',
|
|
80
|
+
path: '/integrations/connect',
|
|
81
|
+
metadata: {
|
|
82
|
+
auth: true,
|
|
83
|
+
},
|
|
84
|
+
body: ConnectIssuerPaymentMethodZod,
|
|
85
|
+
responses: {
|
|
86
|
+
200: z.array(IIssuerPaymentMethod),
|
|
87
|
+
400: BadRequestError,
|
|
88
|
+
401: UnauthorizedError,
|
|
89
|
+
403: ForbiddenError,
|
|
90
|
+
404: NotFoundError,
|
|
91
|
+
500: InternalError,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
disconnectIssuerPaymentMethod: {
|
|
95
|
+
summary: 'Disconnect issuer payment method',
|
|
96
|
+
method: 'PATCH',
|
|
97
|
+
path: '/:id/integrations/disconnect',
|
|
98
|
+
metadata: {
|
|
99
|
+
auth: true,
|
|
100
|
+
},
|
|
101
|
+
pathParams: z.object({
|
|
102
|
+
id: issuerPaymentMethodIdSchema,
|
|
103
|
+
}),
|
|
104
|
+
body: z.object({}),
|
|
105
|
+
responses: {
|
|
106
|
+
200: IIssuerPaymentMethod,
|
|
107
|
+
401: UnauthorizedError,
|
|
108
|
+
403: ForbiddenError,
|
|
109
|
+
404: NotFoundError,
|
|
110
|
+
500: InternalError,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
createIssuerPaymentMethodAccountLink: {
|
|
114
|
+
summary: 'Create issuer payment method account link',
|
|
115
|
+
method: 'POST',
|
|
116
|
+
path: '/:id/integrations/account-link',
|
|
117
|
+
metadata: {
|
|
118
|
+
auth: true,
|
|
119
|
+
},
|
|
120
|
+
pathParams: z.object({
|
|
121
|
+
id: issuerPaymentMethodIdSchema,
|
|
122
|
+
}),
|
|
123
|
+
body: z.object({}),
|
|
124
|
+
responses: {
|
|
125
|
+
200: IIssuerPaymentMethod,
|
|
126
|
+
401: UnauthorizedError,
|
|
127
|
+
403: ForbiddenError,
|
|
128
|
+
404: NotFoundError,
|
|
129
|
+
500: InternalError,
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
pathPrefix: 'issuer-payment-methods',
|
|
135
|
+
},
|
|
136
|
+
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
ForbiddenError,
|
|
4
|
+
InternalError,
|
|
5
|
+
UnauthorizedError,
|
|
6
|
+
inquiryIdSchema,
|
|
7
|
+
InquiryResponse,
|
|
8
|
+
ServiceUnavailableError,
|
|
9
|
+
} from '../../../common/types';
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
|
|
12
|
+
const c = initContract();
|
|
13
|
+
|
|
14
|
+
export const kycsContract = c.router(
|
|
15
|
+
{
|
|
16
|
+
getInquiry: {
|
|
17
|
+
summary: 'KYC inquiry by ID',
|
|
18
|
+
method: 'GET',
|
|
19
|
+
path: '/inquiries/:inquiryId',
|
|
20
|
+
metadata: {
|
|
21
|
+
auth: true,
|
|
22
|
+
},
|
|
23
|
+
pathParams: z.object({
|
|
24
|
+
inquiryId: inquiryIdSchema,
|
|
25
|
+
}),
|
|
26
|
+
responses: {
|
|
27
|
+
200: InquiryResponse,
|
|
28
|
+
401: UnauthorizedError,
|
|
29
|
+
403: ForbiddenError,
|
|
30
|
+
500: InternalError,
|
|
31
|
+
503: ServiceUnavailableError,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
pathPrefix: 'kycs',
|
|
37
|
+
},
|
|
38
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
BadRequestError,
|
|
5
|
+
ForbiddenError,
|
|
6
|
+
UnauthorizedError,
|
|
7
|
+
IListLoginHistories,
|
|
8
|
+
userIdSchema,
|
|
9
|
+
} from '../../../common/types';
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
|
|
12
|
+
const c = initContract();
|
|
13
|
+
|
|
14
|
+
export const loginHistoriesContract = c.router(
|
|
15
|
+
{
|
|
16
|
+
getLoginHistories: {
|
|
17
|
+
summary: 'Get Login Histories',
|
|
18
|
+
method: 'GET',
|
|
19
|
+
path: '',
|
|
20
|
+
metadata: {
|
|
21
|
+
auth: true,
|
|
22
|
+
},
|
|
23
|
+
responses: {
|
|
24
|
+
200: IListLoginHistories,
|
|
25
|
+
400: BadRequestError,
|
|
26
|
+
401: UnauthorizedError,
|
|
27
|
+
403: ForbiddenError,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
getLoginHistoriesByUserId: {
|
|
31
|
+
summary: 'Get Login Histories by User id',
|
|
32
|
+
method: 'GET',
|
|
33
|
+
path: '/:userId',
|
|
34
|
+
metadata: {
|
|
35
|
+
auth: true,
|
|
36
|
+
},
|
|
37
|
+
pathParams: z.object({
|
|
38
|
+
userId: userIdSchema,
|
|
39
|
+
}),
|
|
40
|
+
responses: {
|
|
41
|
+
200: IListLoginHistories,
|
|
42
|
+
400: BadRequestError,
|
|
43
|
+
401: UnauthorizedError,
|
|
44
|
+
403: ForbiddenError,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
pathPrefix: 'login-histories',
|
|
50
|
+
},
|
|
51
|
+
);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import {
|
|
3
|
+
BadRequestError,
|
|
4
|
+
InternalError,
|
|
5
|
+
IPaginatedNote,
|
|
6
|
+
noteIdSchema,
|
|
7
|
+
NotesFilters,
|
|
8
|
+
NoteZod,
|
|
9
|
+
NotFoundError,
|
|
10
|
+
PaginationOptionsZod,
|
|
11
|
+
PostNoteBody,
|
|
12
|
+
UnauthorizedError,
|
|
13
|
+
} from '../../../common/types';
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
|
|
16
|
+
const c = initContract();
|
|
17
|
+
|
|
18
|
+
export const issuerNotesContract = c.router(
|
|
19
|
+
{
|
|
20
|
+
postNote: {
|
|
21
|
+
summary: 'Create a note',
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '',
|
|
24
|
+
metadata: {
|
|
25
|
+
auth: true,
|
|
26
|
+
},
|
|
27
|
+
body: PostNoteBody,
|
|
28
|
+
responses: {
|
|
29
|
+
201: NoteZod,
|
|
30
|
+
400: BadRequestError,
|
|
31
|
+
401: UnauthorizedError,
|
|
32
|
+
404: NotFoundError,
|
|
33
|
+
500: InternalError,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
getNotes: {
|
|
37
|
+
summary: 'Get notes',
|
|
38
|
+
method: 'GET',
|
|
39
|
+
path: '',
|
|
40
|
+
metadata: {
|
|
41
|
+
auth: true,
|
|
42
|
+
},
|
|
43
|
+
query: PaginationOptionsZod.merge(NotesFilters),
|
|
44
|
+
responses: {
|
|
45
|
+
200: IPaginatedNote,
|
|
46
|
+
401: UnauthorizedError,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
getNote: {
|
|
50
|
+
summary: 'Get note by id',
|
|
51
|
+
method: 'GET',
|
|
52
|
+
path: '/:id',
|
|
53
|
+
metadata: {
|
|
54
|
+
auth: true,
|
|
55
|
+
},
|
|
56
|
+
pathParams: z.object({
|
|
57
|
+
id: noteIdSchema,
|
|
58
|
+
}),
|
|
59
|
+
responses: {
|
|
60
|
+
200: NoteZod,
|
|
61
|
+
401: UnauthorizedError,
|
|
62
|
+
404: NotFoundError,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
pathPrefix: 'notes',
|
|
68
|
+
},
|
|
69
|
+
);
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import {
|
|
4
|
+
BadRequestError,
|
|
5
|
+
ForbiddenError,
|
|
6
|
+
IIssuerOffering,
|
|
7
|
+
InternalError,
|
|
8
|
+
IOffering,
|
|
9
|
+
IPaginatedIssuerOffering,
|
|
10
|
+
IssuerOfferingsDeleteResponse,
|
|
11
|
+
IssuerOfferingsFilterZod,
|
|
12
|
+
IssuerOfferingsIncludeQuery,
|
|
13
|
+
NotFoundError,
|
|
14
|
+
OfferingCapTableFiltersZod,
|
|
15
|
+
OfferingCapTableResponse,
|
|
16
|
+
offeringIdSchema,
|
|
17
|
+
OfferingsIncludeQuery,
|
|
18
|
+
OfferingSummaryFiltersZod,
|
|
19
|
+
PaginatedOfferingSummaryResponseZod,
|
|
20
|
+
PaginationOptionsZod,
|
|
21
|
+
PatchIssuerOffering,
|
|
22
|
+
PostIssuerOffering,
|
|
23
|
+
SubmitIssuerOfferingResponse,
|
|
24
|
+
UnauthorizedError,
|
|
25
|
+
} from '../../../common/types';
|
|
26
|
+
|
|
27
|
+
const c = initContract();
|
|
28
|
+
|
|
29
|
+
export const issuersOfferingsContract = c.router(
|
|
30
|
+
{
|
|
31
|
+
getOfferings: {
|
|
32
|
+
summary: 'Get offerings',
|
|
33
|
+
method: 'GET',
|
|
34
|
+
path: '',
|
|
35
|
+
metadata: {
|
|
36
|
+
auth: true,
|
|
37
|
+
},
|
|
38
|
+
query: PaginationOptionsZod.merge(IssuerOfferingsIncludeQuery).merge(
|
|
39
|
+
IssuerOfferingsFilterZod,
|
|
40
|
+
),
|
|
41
|
+
responses: {
|
|
42
|
+
200: IPaginatedIssuerOffering,
|
|
43
|
+
400: BadRequestError,
|
|
44
|
+
401: UnauthorizedError,
|
|
45
|
+
403: ForbiddenError,
|
|
46
|
+
500: InternalError,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
getOfferingsSummary: {
|
|
50
|
+
summary: 'Get offerings summary',
|
|
51
|
+
method: 'GET',
|
|
52
|
+
path: '/summary',
|
|
53
|
+
metadata: {
|
|
54
|
+
auth: true,
|
|
55
|
+
},
|
|
56
|
+
query: PaginationOptionsZod.merge(OfferingSummaryFiltersZod),
|
|
57
|
+
responses: {
|
|
58
|
+
200: PaginatedOfferingSummaryResponseZod,
|
|
59
|
+
400: BadRequestError,
|
|
60
|
+
401: UnauthorizedError,
|
|
61
|
+
403: ForbiddenError,
|
|
62
|
+
500: InternalError,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
getOfferingCapTable: {
|
|
66
|
+
summary: 'Get offering cap table',
|
|
67
|
+
method: 'GET',
|
|
68
|
+
path: '/:id/cap-table',
|
|
69
|
+
metadata: {
|
|
70
|
+
auth: true,
|
|
71
|
+
},
|
|
72
|
+
pathParams: z.object({
|
|
73
|
+
id: offeringIdSchema,
|
|
74
|
+
}),
|
|
75
|
+
query: OfferingCapTableFiltersZod,
|
|
76
|
+
responses: {
|
|
77
|
+
200: OfferingCapTableResponse,
|
|
78
|
+
400: BadRequestError,
|
|
79
|
+
401: UnauthorizedError,
|
|
80
|
+
403: ForbiddenError,
|
|
81
|
+
404: NotFoundError,
|
|
82
|
+
500: InternalError,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
getOffering: {
|
|
86
|
+
summary: 'Get offering by id',
|
|
87
|
+
method: 'GET',
|
|
88
|
+
path: '/:id',
|
|
89
|
+
metadata: {
|
|
90
|
+
auth: true,
|
|
91
|
+
},
|
|
92
|
+
query: z.object({}).merge(OfferingsIncludeQuery),
|
|
93
|
+
pathParams: z.object({
|
|
94
|
+
id: offeringIdSchema,
|
|
95
|
+
}),
|
|
96
|
+
responses: {
|
|
97
|
+
200: IIssuerOffering,
|
|
98
|
+
400: BadRequestError,
|
|
99
|
+
401: UnauthorizedError,
|
|
100
|
+
403: ForbiddenError,
|
|
101
|
+
404: NotFoundError,
|
|
102
|
+
500: InternalError,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
submitOffering: {
|
|
106
|
+
summary: 'Submit offering for review',
|
|
107
|
+
method: 'PATCH',
|
|
108
|
+
path: '/:id/submit',
|
|
109
|
+
metadata: {
|
|
110
|
+
auth: true,
|
|
111
|
+
},
|
|
112
|
+
pathParams: z.object({
|
|
113
|
+
id: offeringIdSchema,
|
|
114
|
+
}),
|
|
115
|
+
body: z.object({}),
|
|
116
|
+
responses: {
|
|
117
|
+
201: SubmitIssuerOfferingResponse,
|
|
118
|
+
400: BadRequestError,
|
|
119
|
+
401: UnauthorizedError,
|
|
120
|
+
403: ForbiddenError,
|
|
121
|
+
404: NotFoundError,
|
|
122
|
+
500: InternalError,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
patchOffering: {
|
|
126
|
+
summary: 'Update offering by id',
|
|
127
|
+
method: 'PATCH',
|
|
128
|
+
path: '/:id',
|
|
129
|
+
metadata: {
|
|
130
|
+
auth: true,
|
|
131
|
+
},
|
|
132
|
+
pathParams: z.object({
|
|
133
|
+
id: offeringIdSchema,
|
|
134
|
+
}),
|
|
135
|
+
body: PatchIssuerOffering,
|
|
136
|
+
responses: {
|
|
137
|
+
201: IIssuerOffering,
|
|
138
|
+
400: BadRequestError,
|
|
139
|
+
401: UnauthorizedError,
|
|
140
|
+
403: ForbiddenError,
|
|
141
|
+
404: NotFoundError,
|
|
142
|
+
500: InternalError,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
postOffering: {
|
|
146
|
+
summary: '[ADMIN] Create offering',
|
|
147
|
+
method: 'POST',
|
|
148
|
+
path: '',
|
|
149
|
+
metadata: {
|
|
150
|
+
auth: true,
|
|
151
|
+
},
|
|
152
|
+
body: PostIssuerOffering,
|
|
153
|
+
responses: {
|
|
154
|
+
201: IIssuerOffering,
|
|
155
|
+
400: BadRequestError,
|
|
156
|
+
401: UnauthorizedError,
|
|
157
|
+
403: ForbiddenError,
|
|
158
|
+
500: InternalError,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
toggleOffering: {
|
|
162
|
+
summary: 'Toggle offering by id',
|
|
163
|
+
method: 'PATCH',
|
|
164
|
+
path: '/:id/toggle',
|
|
165
|
+
metadata: {
|
|
166
|
+
auth: true,
|
|
167
|
+
},
|
|
168
|
+
pathParams: z.object({
|
|
169
|
+
id: offeringIdSchema,
|
|
170
|
+
}),
|
|
171
|
+
body: z.object({
|
|
172
|
+
enabled: z.boolean(),
|
|
173
|
+
}),
|
|
174
|
+
responses: {
|
|
175
|
+
200: IOffering,
|
|
176
|
+
400: BadRequestError,
|
|
177
|
+
401: UnauthorizedError,
|
|
178
|
+
403: ForbiddenError,
|
|
179
|
+
404: NotFoundError,
|
|
180
|
+
500: InternalError,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
deleteOffering: {
|
|
184
|
+
summary: 'Delete offering by id',
|
|
185
|
+
method: 'DELETE',
|
|
186
|
+
path: '/:id',
|
|
187
|
+
metadata: {
|
|
188
|
+
auth: true,
|
|
189
|
+
},
|
|
190
|
+
pathParams: z.object({
|
|
191
|
+
id: offeringIdSchema,
|
|
192
|
+
}),
|
|
193
|
+
responses: {
|
|
194
|
+
200: IssuerOfferingsDeleteResponse,
|
|
195
|
+
400: BadRequestError,
|
|
196
|
+
401: UnauthorizedError,
|
|
197
|
+
403: ForbiddenError,
|
|
198
|
+
404: NotFoundError,
|
|
199
|
+
500: InternalError,
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
pathPrefix: 'offerings',
|
|
205
|
+
},
|
|
206
|
+
);
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
BadRequestError,
|
|
5
|
+
ForbiddenError,
|
|
6
|
+
InternalError,
|
|
7
|
+
NotFoundError,
|
|
8
|
+
PaginationOptionsZod,
|
|
9
|
+
UnauthorizedError,
|
|
10
|
+
pageRevisionIdSchema,
|
|
11
|
+
PagesIncludeQuery,
|
|
12
|
+
GetPagesZod,
|
|
13
|
+
IPaginatedPages,
|
|
14
|
+
pageIdSchema,
|
|
15
|
+
IPage,
|
|
16
|
+
PostPageZod,
|
|
17
|
+
PatchPageZod,
|
|
18
|
+
ConflictError,
|
|
19
|
+
IPageRevision,
|
|
20
|
+
GetLandingPageCandidatesResponse,
|
|
21
|
+
} from '../../../common/types';
|
|
22
|
+
|
|
23
|
+
import { z } from 'zod';
|
|
24
|
+
const c = initContract();
|
|
25
|
+
|
|
26
|
+
export const pagesContract = c.router(
|
|
27
|
+
{
|
|
28
|
+
getPages: {
|
|
29
|
+
summary: 'Get Pages',
|
|
30
|
+
method: 'GET',
|
|
31
|
+
path: '',
|
|
32
|
+
metadata: {
|
|
33
|
+
auth: true,
|
|
34
|
+
},
|
|
35
|
+
query: PaginationOptionsZod.merge(PagesIncludeQuery).merge(GetPagesZod),
|
|
36
|
+
responses: {
|
|
37
|
+
200: IPaginatedPages,
|
|
38
|
+
400: BadRequestError,
|
|
39
|
+
401: UnauthorizedError,
|
|
40
|
+
403: ForbiddenError,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
getLandingPageCandidates: {
|
|
44
|
+
summary: 'Get pages that are qualified to be presented as landing page',
|
|
45
|
+
method: 'GET',
|
|
46
|
+
path: '/landing-page-candidates',
|
|
47
|
+
metadata: {
|
|
48
|
+
auth: true,
|
|
49
|
+
},
|
|
50
|
+
responses: {
|
|
51
|
+
200: GetLandingPageCandidatesResponse,
|
|
52
|
+
400: BadRequestError,
|
|
53
|
+
401: UnauthorizedError,
|
|
54
|
+
403: ForbiddenError,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
getPage: {
|
|
58
|
+
summary: 'Get Page',
|
|
59
|
+
method: 'GET',
|
|
60
|
+
path: '/:id',
|
|
61
|
+
metadata: {
|
|
62
|
+
auth: true,
|
|
63
|
+
},
|
|
64
|
+
query: z.object({}).merge(PagesIncludeQuery),
|
|
65
|
+
pathParams: z.object({
|
|
66
|
+
id: pageIdSchema,
|
|
67
|
+
}),
|
|
68
|
+
responses: {
|
|
69
|
+
200: IPage,
|
|
70
|
+
400: BadRequestError,
|
|
71
|
+
401: UnauthorizedError,
|
|
72
|
+
403: ForbiddenError,
|
|
73
|
+
404: NotFoundError,
|
|
74
|
+
500: InternalError,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
postPage: {
|
|
78
|
+
summary: 'Post Pages',
|
|
79
|
+
method: 'POST',
|
|
80
|
+
path: '',
|
|
81
|
+
metadata: {
|
|
82
|
+
auth: true,
|
|
83
|
+
},
|
|
84
|
+
body: PostPageZod,
|
|
85
|
+
responses: {
|
|
86
|
+
201: IPage,
|
|
87
|
+
400: BadRequestError,
|
|
88
|
+
401: UnauthorizedError,
|
|
89
|
+
403: ForbiddenError,
|
|
90
|
+
409: ConflictError,
|
|
91
|
+
500: InternalError,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
updatePublishedVersion: {
|
|
95
|
+
summary: 'Update the current published version',
|
|
96
|
+
method: 'PATCH',
|
|
97
|
+
path: '/published-version',
|
|
98
|
+
metadata: {
|
|
99
|
+
auth: true,
|
|
100
|
+
},
|
|
101
|
+
body: z.object({
|
|
102
|
+
id: pageRevisionIdSchema,
|
|
103
|
+
}),
|
|
104
|
+
responses: {
|
|
105
|
+
201: IPageRevision,
|
|
106
|
+
400: BadRequestError,
|
|
107
|
+
401: UnauthorizedError,
|
|
108
|
+
403: ForbiddenError,
|
|
109
|
+
404: NotFoundError,
|
|
110
|
+
500: InternalError,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
patchPage: {
|
|
114
|
+
summary: 'Patch Pages',
|
|
115
|
+
method: 'PATCH',
|
|
116
|
+
path: '/:id',
|
|
117
|
+
metadata: {
|
|
118
|
+
auth: true,
|
|
119
|
+
},
|
|
120
|
+
pathParams: z.object({
|
|
121
|
+
id: pageIdSchema,
|
|
122
|
+
}),
|
|
123
|
+
body: PatchPageZod,
|
|
124
|
+
responses: {
|
|
125
|
+
201: IPage,
|
|
126
|
+
400: BadRequestError,
|
|
127
|
+
401: UnauthorizedError,
|
|
128
|
+
403: ForbiddenError,
|
|
129
|
+
409: ConflictError,
|
|
130
|
+
404: NotFoundError,
|
|
131
|
+
500: InternalError,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
pathPrefix: 'pages',
|
|
137
|
+
},
|
|
138
|
+
);
|