@dalmore/api-contracts 1.0.2 → 1.0.5
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 +34 -55
- package/index.d.mts +17 -0
- package/index.d.ts +17 -0
- package/index.mjs +10970 -0
- package/package.json +10 -46
- package/common/helpers/index.ts +0 -205
- package/common/types/account-contact.types.ts +0 -98
- package/common/types/account-detail.types.ts +0 -27
- package/common/types/account-integration.types.ts +0 -143
- package/common/types/account-manager.types.ts +0 -124
- package/common/types/account.types.ts +0 -296
- package/common/types/activity.types.ts +0 -274
- package/common/types/address.types.ts +0 -41
- package/common/types/aic.types.ts +0 -246
- package/common/types/aml.types.ts +0 -18
- package/common/types/api-key-logs.types.ts +0 -66
- package/common/types/api-keys.types.ts +0 -69
- package/common/types/asset.types.ts +0 -338
- package/common/types/auth.types.ts +0 -370
- package/common/types/batch-jobs.types.ts +0 -150
- package/common/types/bonus-tier.types.ts +0 -147
- package/common/types/cart.types.ts +0 -18
- package/common/types/checklist-items.types.ts +0 -70
- package/common/types/checklist.types.ts +0 -97
- package/common/types/common.types.ts +0 -1520
- package/common/types/comply-advantage-api.types.ts +0 -316
- package/common/types/comply-advantage.types.ts +0 -25
- package/common/types/contact-us.types.ts +0 -107
- package/common/types/contract-helpers.ts +0 -205
- package/common/types/countries.types.ts +0 -375
- package/common/types/covered-person.types.ts +0 -274
- package/common/types/dashboard.types.ts +0 -799
- package/common/types/data-record.types.ts +0 -325
- package/common/types/data-room.types.ts +0 -242
- package/common/types/default-theme-config.types.ts +0 -87
- package/common/types/disbursement-adjustment.types.ts +0 -32
- package/common/types/disbursement-approval-user.types.ts +0 -100
- package/common/types/disbursement-review.types.ts +0 -110
- package/common/types/disbursement-transaction.types.ts +0 -72
- package/common/types/disbursements.types.ts +0 -310
- package/common/types/domain-filter.types.ts +0 -55
- package/common/types/email-theme.types.ts +0 -442
- package/common/types/entity.types.ts +0 -15
- package/common/types/error-responses.types.ts +0 -135
- package/common/types/escrow-account.types.ts +0 -104
- package/common/types/exchange-api-key.types.ts +0 -121
- package/common/types/exchange-import.types.ts +0 -36
- package/common/types/exchange-provider.types.ts +0 -329
- package/common/types/file.types.ts +0 -461
- package/common/types/health.types.ts +0 -29
- package/common/types/index.ts +0 -48
- package/common/types/individuals.types.ts +0 -554
- package/common/types/investor-account.types.ts +0 -1239
- package/common/types/investorAccountIdSchema.type.ts +0 -0
- package/common/types/investors-offering.types.ts +0 -65
- package/common/types/invite.types.ts +0 -133
- package/common/types/issuer-bank-account.types.ts +0 -107
- package/common/types/issuer-offering.types.ts +0 -306
- package/common/types/issuer-payment-method.types.ts +0 -341
- package/common/types/issuer.types.ts +0 -312
- package/common/types/job-item.types.ts +0 -119
- package/common/types/jobs.types.ts +0 -171
- package/common/types/kyb.types.ts +0 -53
- package/common/types/kyc.types.ts +0 -188
- package/common/types/legal-entity.types.ts +0 -185
- package/common/types/login-history.types.ts +0 -46
- package/common/types/mail-template.types.ts +0 -436
- package/common/types/north-cap-integration.types.ts +0 -190
- package/common/types/note.types.ts +0 -109
- package/common/types/notification.types.ts +0 -58
- package/common/types/notion-api.types.ts +0 -374
- package/common/types/notion-database.types.ts +0 -125
- package/common/types/notion-page.types.ts +0 -267
- package/common/types/offering-reports.types.ts +0 -153
- package/common/types/offering-submission.types.ts +0 -314
- package/common/types/offering.types.ts +0 -590
- 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/privacy-policy-and-tos.types.ts +0 -231
- package/common/types/queue.types.ts +0 -111
- package/common/types/registered-reps.types.ts +0 -25
- package/common/types/rejection-reasons.types.ts +0 -56
- package/common/types/review.types.ts +0 -133
- package/common/types/role.types.ts +0 -26
- package/common/types/secondary-customer.types.ts +0 -66
- package/common/types/secondary-issuer.types.ts +0 -50
- package/common/types/secondary-order.types.ts +0 -58
- package/common/types/secondary-security.types.ts +0 -60
- package/common/types/secondary-trade.entity.ts +0 -16
- package/common/types/secondary-trade.types.ts +0 -95
- package/common/types/secure-request.types.ts +0 -68
- package/common/types/signer.types.ts +0 -651
- package/common/types/site-link.types.ts +0 -166
- package/common/types/site-settings.types.ts +0 -726
- package/common/types/site.types.ts +0 -270
- package/common/types/sms.types.ts +0 -30
- package/common/types/state-machine.types.ts +0 -177
- package/common/types/states.types.ts +0 -163
- package/common/types/subdoc-preview.types.ts +0 -35
- package/common/types/task.types.ts +0 -258
- package/common/types/trade-adjustment.type.ts +0 -33
- package/common/types/trade-line-item.type.ts +0 -132
- package/common/types/trade.types.ts +0 -931
- package/common/types/transaction.types.ts +0 -198
- package/common/types/trusted-contact.types.ts +0 -122
- package/common/types/typography.types.ts +0 -75
- package/common/types/user-manual.types.ts +0 -290
- package/common/types/user-setting.types.ts +0 -133
- package/common/types/user.types.ts +0 -320
- package/common/types/webhook.types.ts +0 -588
- package/common/types/zip.type.ts +0 -36
- package/contracts/clients/accounts/index.ts +0 -61
- package/contracts/clients/aic/index.ts +0 -59
- package/contracts/clients/api-key-logs/index.ts +0 -53
- package/contracts/clients/api-keys/index.ts +0 -73
- package/contracts/clients/assets/index.ts +0 -102
- package/contracts/clients/auth/index.ts +0 -50
- package/contracts/clients/files/index.ts +0 -166
- package/contracts/clients/files-public/index.ts +0 -166
- package/contracts/clients/index.ts +0 -44
- package/contracts/clients/individuals/index.ts +0 -93
- package/contracts/clients/investor-accounts/index.ts +0 -93
- package/contracts/clients/issuers/index.ts +0 -94
- package/contracts/clients/legal-entities/index.ts +0 -93
- package/contracts/clients/offerings/index.ts +0 -117
- package/contracts/clients/secure-requests/index.ts +0 -34
- package/contracts/clients/sites/index.ts +0 -56
- package/contracts/clients/trades/index.ts +0 -122
- package/contracts/compliance/account-contacts/index.ts +0 -82
- package/contracts/compliance/account-managers/index.ts +0 -142
- package/contracts/compliance/accounts/index.ts +0 -187
- package/contracts/compliance/activities/index.ts +0 -55
- package/contracts/compliance/aic/index.ts +0 -60
- package/contracts/compliance/api-keys/index.ts +0 -91
- package/contracts/compliance/assets/index.ts +0 -122
- package/contracts/compliance/auth/index.ts +0 -134
- package/contracts/compliance/batch-jobs/index.ts +0 -62
- package/contracts/compliance/bonus-tiers/index.ts +0 -55
- package/contracts/compliance/checklist/index.ts +0 -87
- package/contracts/compliance/checklist-items/index.ts +0 -86
- package/contracts/compliance/covered-persons/index.ts +0 -97
- package/contracts/compliance/dashboard/index.ts +0 -111
- package/contracts/compliance/data-records/index.ts +0 -116
- package/contracts/compliance/data-rooms/index.ts +0 -113
- package/contracts/compliance/default-theme-configs/index.ts +0 -95
- package/contracts/compliance/disbursement/index.ts +0 -165
- package/contracts/compliance/disbursement-approval-users/index.ts +0 -84
- package/contracts/compliance/disbursement-transactions/index.ts +0 -37
- package/contracts/compliance/domain-filters/index.ts +0 -117
- package/contracts/compliance/email-themes/index.ts +0 -284
- package/contracts/compliance/escrow-accounts/index.ts +0 -85
- package/contracts/compliance/exchange-api-keys/index.ts +0 -129
- package/contracts/compliance/exchange-imports/index.ts +0 -137
- package/contracts/compliance/files/index.ts +0 -267
- package/contracts/compliance/files-public/index.ts +0 -188
- package/contracts/compliance/health/index.ts +0 -26
- package/contracts/compliance/index.ts +0 -147
- package/contracts/compliance/individuals/index.ts +0 -57
- package/contracts/compliance/investor-accounts/index.ts +0 -141
- package/contracts/compliance/invites/index.ts +0 -137
- package/contracts/compliance/issuer-bank-accounts/index.ts +0 -81
- package/contracts/compliance/issuer-payment-methods/index.ts +0 -81
- package/contracts/compliance/issuers/index.ts +0 -97
- package/contracts/compliance/job-items/index.ts +0 -58
- package/contracts/compliance/jobs/index.ts +0 -59
- package/contracts/compliance/kyb/index.ts +0 -54
- package/contracts/compliance/kyc/index.ts +0 -77
- package/contracts/compliance/legal-entities/index.ts +0 -57
- package/contracts/compliance/login-histories/index.ts +0 -37
- package/contracts/compliance/notes/index.ts +0 -69
- package/contracts/compliance/notion-databases/index.ts +0 -107
- package/contracts/compliance/notion-pages/index.ts +0 -105
- package/contracts/compliance/offering-reports/index.ts +0 -149
- package/contracts/compliance/offerings/index.ts +0 -233
- package/contracts/compliance/pages/index.ts +0 -178
- package/contracts/compliance/payment-methods/index.ts +0 -57
- package/contracts/compliance/rejection-reasons/index.ts +0 -32
- package/contracts/compliance/review/index.ts +0 -169
- package/contracts/compliance/roles/index.ts +0 -34
- package/contracts/compliance/secondary-customers/index.ts +0 -77
- package/contracts/compliance/secondary-orders/index.ts +0 -60
- package/contracts/compliance/secondary-trades/index.ts +0 -100
- package/contracts/compliance/secure-requests/index.ts +0 -54
- package/contracts/compliance/signer/index.ts +0 -369
- package/contracts/compliance/site-links/index.ts +0 -128
- package/contracts/compliance/site-settings/index.ts +0 -669
- package/contracts/compliance/sites/index.ts +0 -56
- package/contracts/compliance/state-machine/index.ts +0 -94
- package/contracts/compliance/tasks/index.ts +0 -91
- package/contracts/compliance/third-parties/index.ts +0 -52
- package/contracts/compliance/trade-line-items/index.ts +0 -59
- package/contracts/compliance/trades/index.ts +0 -230
- package/contracts/compliance/transactions/index.ts +0 -161
- package/contracts/compliance/user-manuals/index.ts +0 -271
- package/contracts/compliance/user-settings/index.ts +0 -189
- package/contracts/compliance/users/index.ts +0 -200
- package/contracts/compliance/webhooks/index.ts +0 -41
- package/contracts/compliance-apikey/accounts/index.ts +0 -58
- package/contracts/compliance-apikey/index.ts +0 -14
- package/contracts/index.ts +0 -6
- package/contracts/investors/account-contacts/index.ts +0 -58
- package/contracts/investors/aic/index.ts +0 -59
- package/contracts/investors/assets/index.ts +0 -61
- package/contracts/investors/auth/index.ts +0 -116
- package/contracts/investors/bonus-tiers/index.ts +0 -37
- package/contracts/investors/cart/index.ts +0 -75
- package/contracts/investors/contact-us/index.ts +0 -48
- package/contracts/investors/data-records/index.ts +0 -113
- package/contracts/investors/data-rooms/index.ts +0 -96
- package/contracts/investors/files/index.ts +0 -167
- package/contracts/investors/files-public/index.ts +0 -185
- package/contracts/investors/index.ts +0 -72
- package/contracts/investors/individuals/index.ts +0 -99
- package/contracts/investors/investor-accounts/index.ts +0 -110
- package/contracts/investors/issuer-payment-methods/index.ts +0 -36
- package/contracts/investors/issuers/index.ts +0 -30
- package/contracts/investors/legal-entities/index.ts +0 -93
- package/contracts/investors/notes/index.ts +0 -69
- package/contracts/investors/offerings/index.ts +0 -93
- package/contracts/investors/pages/index.ts +0 -88
- package/contracts/investors/payment-methods/index.ts +0 -149
- package/contracts/investors/portfolios/index.ts +0 -53
- package/contracts/investors/sites/index.ts +0 -96
- package/contracts/investors/tasks/index.ts +0 -111
- package/contracts/investors/trade-line-items/index.ts +0 -75
- package/contracts/investors/trades/index.ts +0 -114
- package/contracts/investors/transactions/index.ts +0 -37
- package/contracts/investors/trusted-contacts/index.ts +0 -93
- package/contracts/investors/user-manuals/index.ts +0 -62
- package/contracts/investors/user-settings/index.ts +0 -170
- package/contracts/investors/users/index.ts +0 -45
- package/contracts/investors/webhooks/index.ts +0 -30
- package/contracts/issuers/account-contacts/index.ts +0 -76
- package/contracts/issuers/account-integrations/index.ts +0 -97
- package/contracts/issuers/accounts/index.ts +0 -97
- package/contracts/issuers/activities/index.ts +0 -54
- package/contracts/issuers/aic/index.ts +0 -39
- package/contracts/issuers/api-key-logs/index.ts +0 -53
- package/contracts/issuers/api-keys/index.ts +0 -93
- package/contracts/issuers/assets/index.ts +0 -122
- package/contracts/issuers/auth/index.ts +0 -152
- package/contracts/issuers/bonus-tiers/index.ts +0 -55
- package/contracts/issuers/contact-us/index.ts +0 -48
- package/contracts/issuers/covered-persons/index.ts +0 -136
- package/contracts/issuers/dashboard/index.ts +0 -72
- package/contracts/issuers/data-records/index.ts +0 -257
- package/contracts/issuers/data-rooms/index.ts +0 -134
- package/contracts/issuers/disbursement-approval-users/index.ts +0 -82
- package/contracts/issuers/disbursement-transactions/index.ts +0 -53
- package/contracts/issuers/disbursements/index.ts +0 -153
- package/contracts/issuers/email-themes/index.ts +0 -242
- package/contracts/issuers/escrow-accounts/index.ts +0 -81
- package/contracts/issuers/exchange-api-keys/index.ts +0 -144
- package/contracts/issuers/files/index.ts +0 -166
- package/contracts/issuers/files-public/index.ts +0 -166
- package/contracts/issuers/health/index.ts +0 -24
- package/contracts/issuers/index.ts +0 -112
- package/contracts/issuers/investor-accounts/index.ts +0 -148
- package/contracts/issuers/invites/index.ts +0 -129
- package/contracts/issuers/issuer/index.ts +0 -94
- package/contracts/issuers/issuer-bank-accounts/index.ts +0 -81
- package/contracts/issuers/issuer-payment-methods/index.ts +0 -136
- package/contracts/issuers/kyc/index.ts +0 -38
- package/contracts/issuers/login-histories/index.ts +0 -51
- package/contracts/issuers/notes/index.ts +0 -69
- package/contracts/issuers/offerings/index.ts +0 -206
- package/contracts/issuers/pages/index.ts +0 -138
- package/contracts/issuers/payment-methods/index.ts +0 -61
- package/contracts/issuers/portfolios/index.ts +0 -36
- package/contracts/issuers/rejection-reasons/index.ts +0 -32
- package/contracts/issuers/review/index.ts +0 -63
- package/contracts/issuers/secondary-customers/index.ts +0 -55
- package/contracts/issuers/secondary-orders/index.ts +0 -57
- package/contracts/issuers/secondary-trades/index.ts +0 -57
- package/contracts/issuers/secure-requests/index.ts +0 -34
- package/contracts/issuers/site-links/index.ts +0 -116
- package/contracts/issuers/site-settings/index.ts +0 -585
- package/contracts/issuers/sites/index.ts +0 -32
- package/contracts/issuers/tasks/index.ts +0 -111
- package/contracts/issuers/trades/index.ts +0 -132
- package/contracts/issuers/transactions/index.ts +0 -158
- package/contracts/issuers/user-manuals/index.ts +0 -62
- package/contracts/issuers/user-settings/index.ts +0 -170
- package/contracts/issuers/users/index.ts +0 -126
- package/contracts/secondaries/accounts/index.ts +0 -58
- package/contracts/secondaries/index.ts +0 -23
- package/contracts/secondaries/secondary-customers/index.ts +0 -55
- package/contracts/secondaries/secondary-issuers/index.ts +0 -94
- package/contracts/secondaries/secondary-orders/index.ts +0 -56
- package/contracts/secondaries/secondary-securities/index.ts +0 -95
- package/contracts/secondaries/secondary-trades/index.ts +0 -56
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,136 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,206 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,138 +0,0 @@
|
|
|
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
|
-
);
|