@dalmore/api-contracts 0.0.0-dev.685c0b3 → 0.0.0-dev.6d952b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +27 -0
- package/common/helpers/index.js +43 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account-setting.types.d.ts +46 -26
- package/common/types/account-setting.types.js +2 -23
- package/common/types/account-setting.types.js.map +1 -1
- package/common/types/account.types.d.ts +63 -18
- package/common/types/account.types.js +7 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +36 -25
- package/common/types/activity.types.js +14 -0
- package/common/types/activity.types.js.map +1 -1
- package/common/types/asset.types.d.ts +212 -0
- package/common/types/asset.types.js +115 -42
- package/common/types/asset.types.js.map +1 -1
- package/common/types/attribution.types.d.ts +582 -0
- package/common/types/attribution.types.js +126 -0
- package/common/types/attribution.types.js.map +1 -0
- package/common/types/auth.types.d.ts +37 -1
- package/common/types/auth.types.js +4 -3
- package/common/types/auth.types.js.map +1 -1
- package/common/types/bonus-tier.types.d.ts +15 -4
- package/common/types/bonus-tier.types.js +14 -7
- package/common/types/bonus-tier.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +256 -61
- package/common/types/cap-table.types.js +52 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/cart.types.d.ts +3 -0
- package/common/types/cart.types.js +1 -0
- package/common/types/cart.types.js.map +1 -1
- package/common/types/common.types.d.ts +375 -9
- package/common/types/common.types.js +85 -4
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +145 -478
- package/common/types/comply-advantage-api.types.js +24 -3
- package/common/types/comply-advantage-api.types.js.map +1 -1
- package/common/types/csv.types.d.ts +3612 -0
- package/common/types/csv.types.js +290 -0
- package/common/types/csv.types.js.map +1 -0
- package/common/types/dashboard.types.d.ts +7 -7
- package/common/types/data-record.types.d.ts +4 -4
- package/common/types/disbursement-transaction.types.d.ts +1 -1
- package/common/types/disbursement-transaction.types.js +1 -1
- package/common/types/disbursement-transaction.types.js.map +1 -1
- package/common/types/disbursements.types.d.ts +1642 -412
- package/common/types/disbursements.types.js +142 -3
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/escrow-account.types.d.ts +17 -0
- package/common/types/escrow-account.types.js +3 -0
- package/common/types/escrow-account.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +38 -11
- package/common/types/file.types.js +14 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +5 -2
- package/common/types/index.js +5 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +395 -5
- package/common/types/individuals.types.js +16 -16
- package/common/types/individuals.types.js.map +1 -1
- package/common/types/investor-account.types.d.ts +5 -5
- package/common/types/investor-account.types.js +3 -2
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/investors-offering.types.d.ts +8 -0
- package/common/types/investors-offering.types.js +1 -0
- package/common/types/investors-offering.types.js.map +1 -1
- package/common/types/invite.types.d.ts +5 -2
- package/common/types/invite.types.js +2 -1
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-bank-account.types.d.ts +4 -276
- package/common/types/issuer-offering.types.d.ts +1007 -16
- package/common/types/issuer-offering.types.js +304 -43
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- package/common/types/legal-entity.types.d.ts +39 -1
- package/common/types/legal-entity.types.js +8 -5
- package/common/types/legal-entity.types.js.map +1 -1
- package/common/types/mail-template.types.d.ts +85 -4
- package/common/types/mail-template.types.js +130 -0
- package/common/types/mail-template.types.js.map +1 -1
- package/common/types/note.types.d.ts +15 -15
- package/common/types/notification.types.d.ts +1 -0
- package/common/types/notification.types.js +3 -0
- package/common/types/notification.types.js.map +1 -1
- package/common/types/offering-submission.types.d.ts +198 -0
- package/common/types/offering-submission.types.js +17 -4
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +555 -31
- package/common/types/offering.types.js +355 -28
- package/common/types/offering.types.js.map +1 -1
- package/common/types/payment-methods.types.d.ts +365 -0
- package/common/types/payment-methods.types.js +121 -0
- package/common/types/payment-methods.types.js.map +1 -1
- package/common/types/portfolio.types.d.ts +6 -6
- package/common/types/reports.types.d.ts +345 -0
- package/common/types/reports.types.js +69 -0
- package/common/types/reports.types.js.map +1 -0
- package/common/types/review.types.js +1 -1
- package/common/types/review.types.js.map +1 -1
- package/common/types/secondary-order.types.d.ts +10 -10
- package/common/types/secondary-trade.types.d.ts +10 -10
- package/common/types/signer.types.d.ts +23 -11
- package/common/types/signer.types.js +16 -1
- package/common/types/signer.types.js.map +1 -1
- package/common/types/site.types.d.ts +17 -12
- package/common/types/state-machine.types.d.ts +3 -3
- package/common/types/state-machine.types.js +1 -1
- package/common/types/state-machine.types.js.map +1 -1
- package/common/types/task.types.d.ts +30 -22
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade-line-item.types.d.ts +42 -1
- package/common/types/trade-line-item.types.js +15 -1
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +84 -59
- package/common/types/trade.types.js +31 -11
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +104 -3
- package/common/types/transaction.types.js +48 -3
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +108 -77
- package/common/types/user.types.js +10 -22
- package/common/types/user.types.js.map +1 -1
- package/common/types/zapier.types.d.ts +126 -0
- package/common/types/zapier.types.js +247 -0
- package/common/types/zapier.types.js.map +1 -0
- package/contracts/clients/assets/index.d.ts +22 -0
- package/contracts/clients/cart/index.d.ts +3 -0
- package/contracts/clients/csv/index.d.ts +1988 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- package/contracts/clients/files/index.d.ts +3 -3
- package/contracts/clients/files-public/index.d.ts +3 -3
- package/contracts/clients/index.d.ts +4265 -1060
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +381 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +310 -9
- package/contracts/clients/review/index.d.ts +85 -0
- package/contracts/clients/review/index.js +27 -0
- package/contracts/clients/review/index.js.map +1 -0
- package/contracts/clients/trades/index.d.ts +9 -3
- package/contracts/clients/webhooks/index.d.ts +506 -0
- package/contracts/clients/webhooks/index.js +118 -0
- package/contracts/clients/webhooks/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** CDN URL prefixes to skip (do not cache). Normalized URLs are checked against these. */
|
|
2
|
+
export declare const CDN_URL_PREFIXES_TO_SKIP: readonly ["https://fonts.", "https://cdn.jsdelivr.net", "https://maxcdn.bootstrapcdn.com", "https://cdnjs.cloudflare.com", "https://unpkg.com", "https://framerusercontent.com", "https://fonts.gstatic.com", "https://use.fontawesome.com", "https://ajax.googleapis.com", "https://code.jquery.com", "https://cdn.polyfill.io", "https://cdn.auth0.com", "https://fast.fonts.net", "https://static.cloudflareinsights.com"];
|
|
3
|
+
export declare const MAX_EXPORT_SIZE = 50000;
|
|
4
|
+
export declare const SENSITIVE_PATTERNS: RegExp[];
|
|
5
|
+
/**
|
|
6
|
+
* CSV Upload Limits
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of rows allowed in investor account CSV uploads
|
|
10
|
+
* Used to prevent excessive processing and ensure reasonable batch sizes
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_INVESTOR_CSV_ROWS = 100;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of rows allowed in AIC questionnaire CSV uploads
|
|
15
|
+
* Limited to 1 as AIC questionnaires are processed individually
|
|
16
|
+
*/
|
|
17
|
+
export declare const MAX_AIC_CSV_ROWS = 1;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of rows allowed in KYC CSV uploads
|
|
20
|
+
* Limited to 1 as KYC records are processed individually per individual
|
|
21
|
+
*/
|
|
22
|
+
export declare const MAX_KYC_CSV_ROWS = 1;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum number of rows allowed in issuer account CSV uploads
|
|
25
|
+
* Used to prevent excessive processing and ensure reasonable batch sizes
|
|
26
|
+
*/
|
|
27
|
+
export declare const MAX_ISSUER_CSV_ROWS = 100;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum number of rows allowed in offering CSV upload
|
|
30
|
+
* Limited to 1 as offerings are processed individually
|
|
31
|
+
*/
|
|
32
|
+
export declare const MAX_OFFERING_CSV_ROWS = 1;
|
|
33
|
+
export declare const DILUTED_SHARES_HARDCODED_VALUE = 999999999;
|
|
34
|
+
/**
|
|
35
|
+
* Bulk export streaming chunk size
|
|
36
|
+
*
|
|
37
|
+
* Determines how many records to fetch/process in each DB "page" during large streaming exports
|
|
38
|
+
* (e.g., for CSV download pipeline in ExportBulkDataWorker).
|
|
39
|
+
*
|
|
40
|
+
* A value of 1000 strikes a balance between memory consumption and DB/query performance.
|
|
41
|
+
* Increase only if memory allows; decrease if OOM issues are encountered with very large exports.
|
|
42
|
+
*/
|
|
43
|
+
export declare const BULK_EXPORT_CHUNK_SIZE = 1000;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/** CDN URL prefixes to skip (do not cache). Normalized URLs are checked against these. */
|
|
2
|
+
export const CDN_URL_PREFIXES_TO_SKIP = [
|
|
3
|
+
'https://fonts.', // Google Fonts, Adobe Fonts, etc.
|
|
4
|
+
'https://cdn.jsdelivr.net', // jsDelivr
|
|
5
|
+
'https://maxcdn.bootstrapcdn.com', // MaxCDN Bootstrap
|
|
6
|
+
'https://cdnjs.cloudflare.com', // Cloudflare CDN
|
|
7
|
+
'https://unpkg.com', // unpkg CDN
|
|
8
|
+
'https://framerusercontent.com', // Framer
|
|
9
|
+
'https://fonts.gstatic.com', // Google Fonts static assets
|
|
10
|
+
'https://use.fontawesome.com', // FontAwesome CDN
|
|
11
|
+
'https://ajax.googleapis.com', // Google's AJAX Libraries API
|
|
12
|
+
'https://code.jquery.com', // jQuery CDN
|
|
13
|
+
'https://cdn.polyfill.io', // Polyfill service
|
|
14
|
+
'https://cdn.auth0.com', // Auth0 CDN
|
|
15
|
+
'https://fast.fonts.net', // Monotype/Fonts.com CDN
|
|
16
|
+
'https://static.cloudflareinsights.com', // Cloudflare analytics
|
|
17
|
+
];
|
|
18
|
+
export const MAX_EXPORT_SIZE = 50000;
|
|
19
|
+
export const SENSITIVE_PATTERNS = [
|
|
20
|
+
/password/i,
|
|
21
|
+
/credit.*card/i,
|
|
22
|
+
/ssn/i,
|
|
23
|
+
/social.*security/i,
|
|
24
|
+
/token/i,
|
|
25
|
+
/access.*token/i,
|
|
26
|
+
/code/i,
|
|
27
|
+
/apiKey/i,
|
|
28
|
+
/key/i,
|
|
29
|
+
/stripeSecretKey/i,
|
|
30
|
+
/usAccountNumber/i,
|
|
31
|
+
/recoveryCodes/i,
|
|
32
|
+
/totpSecret/i,
|
|
33
|
+
/totpTemporarySecret/i,
|
|
34
|
+
/smsVerificationCode/i,
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* CSV Upload Limits
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Maximum number of rows allowed in investor account CSV uploads
|
|
41
|
+
* Used to prevent excessive processing and ensure reasonable batch sizes
|
|
42
|
+
*/
|
|
43
|
+
export const MAX_INVESTOR_CSV_ROWS = 100;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum number of rows allowed in AIC questionnaire CSV uploads
|
|
46
|
+
* Limited to 1 as AIC questionnaires are processed individually
|
|
47
|
+
*/
|
|
48
|
+
export const MAX_AIC_CSV_ROWS = 1;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum number of rows allowed in KYC CSV uploads
|
|
51
|
+
* Limited to 1 as KYC records are processed individually per individual
|
|
52
|
+
*/
|
|
53
|
+
export const MAX_KYC_CSV_ROWS = 1;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum number of rows allowed in issuer account CSV uploads
|
|
56
|
+
* Used to prevent excessive processing and ensure reasonable batch sizes
|
|
57
|
+
*/
|
|
58
|
+
export const MAX_ISSUER_CSV_ROWS = 100;
|
|
59
|
+
/**
|
|
60
|
+
* Maximum number of rows allowed in offering CSV upload
|
|
61
|
+
* Limited to 1 as offerings are processed individually
|
|
62
|
+
*/
|
|
63
|
+
export const MAX_OFFERING_CSV_ROWS = 1;
|
|
64
|
+
// This hardcoded value is used because we are not yet dynamically calculating fully diluted shares.
|
|
65
|
+
// As a temporary measure (per team suggestion), we set a very high value for this field for now.
|
|
66
|
+
export const DILUTED_SHARES_HARDCODED_VALUE = 999999999;
|
|
67
|
+
/**
|
|
68
|
+
* Bulk export streaming chunk size
|
|
69
|
+
*
|
|
70
|
+
* Determines how many records to fetch/process in each DB "page" during large streaming exports
|
|
71
|
+
* (e.g., for CSV download pipeline in ExportBulkDataWorker).
|
|
72
|
+
*
|
|
73
|
+
* A value of 1000 strikes a balance between memory consumption and DB/query performance.
|
|
74
|
+
* Increase only if memory allows; decrease if OOM issues are encountered with very large exports.
|
|
75
|
+
*/
|
|
76
|
+
export const BULK_EXPORT_CHUNK_SIZE = 1000;
|
|
77
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,gBAAgB,EAAE,kCAAkC;IACpD,0BAA0B,EAAE,WAAW;IACvC,iCAAiC,EAAE,mBAAmB;IACtD,8BAA8B,EAAE,iBAAiB;IACjD,mBAAmB,EAAE,YAAY;IACjC,+BAA+B,EAAE,SAAS;IAC1C,2BAA2B,EAAE,6BAA6B;IAC1D,6BAA6B,EAAE,kBAAkB;IACjD,6BAA6B,EAAE,8BAA8B;IAC7D,yBAAyB,EAAE,aAAa;IACxC,yBAAyB,EAAE,mBAAmB;IAC9C,uBAAuB,EAAE,YAAY;IACrC,wBAAwB,EAAE,yBAAyB;IACnD,uCAAuC,EAAE,uBAAuB;CACxD,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,WAAW;IACX,eAAe;IACf,MAAM;IACN,mBAAmB;IACnB,QAAQ;IACR,gBAAgB;IAChB,OAAO;IACP,SAAS;IACT,MAAM;IACN,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,aAAa;IACb,sBAAsB;IACtB,sBAAsB;CACvB,CAAC;AAEF;;GAEG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEvC,oGAAoG;AACpG,iGAAiG;AACjG,MAAM,CAAC,MAAM,8BAA8B,GAAG,SAAS,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC"}
|
|
@@ -47,4 +47,31 @@ export declare const validateCanadaZipCode: (zipCode: string) => boolean;
|
|
|
47
47
|
* @returns The generated slug
|
|
48
48
|
*/
|
|
49
49
|
export declare function slugify(input: string, exclude?: boolean): string;
|
|
50
|
+
/**
|
|
51
|
+
* Sanitizes HTML content by removing potentially dangerous tags and attributes.
|
|
52
|
+
* This is a stub implementation for type checking.
|
|
53
|
+
* In the actual implementation, this uses a sanitization library (e.g., DOMPurify).
|
|
54
|
+
* @param html - The HTML string to sanitize
|
|
55
|
+
* @returns The sanitized HTML string
|
|
56
|
+
*/
|
|
57
|
+
export declare function sanitizeHtmlWithPurify(html: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Safely parses a JSON string and returns null if parsing fails.
|
|
60
|
+
*
|
|
61
|
+
* This function attempts to parse a JSON string and returns null if:
|
|
62
|
+
* - The input is null, undefined, or an empty string
|
|
63
|
+
* - The input is not valid JSON
|
|
64
|
+
*
|
|
65
|
+
* @param {string | null | undefined} json - The JSON string to parse
|
|
66
|
+
* @returns {unknown} The parsed JSON value, or null if parsing fails
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* safeJsonParse('{"name": "John"}'); // Returns: { name: 'John' }
|
|
70
|
+
* safeJsonParse('[1, 2, 3]'); // Returns: [1, 2, 3]
|
|
71
|
+
* safeJsonParse('invalid json'); // Returns: null
|
|
72
|
+
* safeJsonParse(null); // Returns: null
|
|
73
|
+
* safeJsonParse(undefined); // Returns: null
|
|
74
|
+
* safeJsonParse(''); // Returns: null
|
|
75
|
+
*/
|
|
76
|
+
export declare function safeJsonParse(json: string | null | undefined): unknown;
|
|
50
77
|
export {};
|
package/common/helpers/index.js
CHANGED
|
@@ -133,4 +133,47 @@ export function slugify(input, exclude = false) {
|
|
|
133
133
|
.replace(/-+/g, '-')
|
|
134
134
|
.replace(/^-|-$/g, '');
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Sanitizes HTML content by removing potentially dangerous tags and attributes.
|
|
138
|
+
* This is a stub implementation for type checking.
|
|
139
|
+
* In the actual implementation, this uses a sanitization library (e.g., DOMPurify).
|
|
140
|
+
* @param html - The HTML string to sanitize
|
|
141
|
+
* @returns The sanitized HTML string
|
|
142
|
+
*/
|
|
143
|
+
export function sanitizeHtmlWithPurify(html) {
|
|
144
|
+
// Stub implementation for type checking only
|
|
145
|
+
// Actual implementation requires a sanitization library
|
|
146
|
+
if (!html || typeof html !== 'string') {
|
|
147
|
+
return html;
|
|
148
|
+
}
|
|
149
|
+
return html;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Safely parses a JSON string and returns null if parsing fails.
|
|
153
|
+
*
|
|
154
|
+
* This function attempts to parse a JSON string and returns null if:
|
|
155
|
+
* - The input is null, undefined, or an empty string
|
|
156
|
+
* - The input is not valid JSON
|
|
157
|
+
*
|
|
158
|
+
* @param {string | null | undefined} json - The JSON string to parse
|
|
159
|
+
* @returns {unknown} The parsed JSON value, or null if parsing fails
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* safeJsonParse('{"name": "John"}'); // Returns: { name: 'John' }
|
|
163
|
+
* safeJsonParse('[1, 2, 3]'); // Returns: [1, 2, 3]
|
|
164
|
+
* safeJsonParse('invalid json'); // Returns: null
|
|
165
|
+
* safeJsonParse(null); // Returns: null
|
|
166
|
+
* safeJsonParse(undefined); // Returns: null
|
|
167
|
+
* safeJsonParse(''); // Returns: null
|
|
168
|
+
*/
|
|
169
|
+
export function safeJsonParse(json) {
|
|
170
|
+
if (!json)
|
|
171
|
+
return null;
|
|
172
|
+
try {
|
|
173
|
+
return JSON.parse(json);
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
136
179
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,MAAM,CAAC,MAAM,UAAU,GAA2B;IAChD,aAAa,EAAE,6CAA6C;CAC7D,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAC1B,MAAc,EACd,IAAY,EACZ,OAAoB,EACpB,EAAE;IACF,MAAM,OAAO,GAAG,4DAA4D,CAAC;IAC7E,IAAI,IAAI,GAAG,WAAW,MAAM,CAAC,WAAW,EAAE,KAAK,OAAO,GAAG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,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EACjE,CAAC;gBACD,KAAK,GAAG,aAAa,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK;SACT,IAAI,EAAE;SACN,WAAW,EAAE;SACb,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;SAC5B,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,6CAA6C;IAC7C,wDAAwD;IACxD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,aAAa,CAAC,IAA+B;IAC3D,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const accountSettingIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
|
-
export declare const IAccountSettingZod: z.ZodObject<{
|
|
4
|
-
__entity: z.ZodOptional<z.ZodString>;
|
|
5
|
-
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
6
|
-
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
7
|
-
deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
8
|
-
} & {
|
|
9
|
-
id: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
-
accountId: z.ZodString;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string | Date;
|
|
14
|
-
updatedAt: string | Date;
|
|
15
|
-
deletedAt: string | Date | null;
|
|
16
|
-
accountId: string;
|
|
17
|
-
__entity?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: string | Date;
|
|
21
|
-
updatedAt: string | Date;
|
|
22
|
-
deletedAt: string | Date | null;
|
|
23
|
-
accountId: string;
|
|
24
|
-
__entity?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export type IAccountSettingZod = z.infer<typeof IAccountSettingZod>;
|
|
27
2
|
export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
28
3
|
items: z.ZodArray<z.ZodObject<{
|
|
29
4
|
__entity: z.ZodOptional<z.ZodString>;
|
|
@@ -33,12 +8,30 @@ export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
|
33
8
|
} & {
|
|
34
9
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
35
10
|
accountId: z.ZodString;
|
|
11
|
+
offeringSetup: z.ZodBoolean;
|
|
12
|
+
investorPortalSetup: z.ZodBoolean;
|
|
13
|
+
paymentMethodSetup: z.ZodBoolean;
|
|
14
|
+
accountContactsSetup: z.ZodBoolean;
|
|
15
|
+
productPrimaries: z.ZodBoolean;
|
|
16
|
+
productSecondaries: z.ZodBoolean;
|
|
17
|
+
featureDisbursements: z.ZodBoolean;
|
|
18
|
+
apiPortal: z.ZodBoolean;
|
|
19
|
+
investorSiteEnabled: z.ZodBoolean;
|
|
36
20
|
}, "strip", z.ZodTypeAny, {
|
|
37
21
|
id: string;
|
|
38
22
|
createdAt: string | Date;
|
|
39
23
|
updatedAt: string | Date;
|
|
40
24
|
deletedAt: string | Date | null;
|
|
41
25
|
accountId: string;
|
|
26
|
+
offeringSetup: boolean;
|
|
27
|
+
investorPortalSetup: boolean;
|
|
28
|
+
paymentMethodSetup: boolean;
|
|
29
|
+
accountContactsSetup: boolean;
|
|
30
|
+
productPrimaries: boolean;
|
|
31
|
+
productSecondaries: boolean;
|
|
32
|
+
featureDisbursements: boolean;
|
|
33
|
+
apiPortal: boolean;
|
|
34
|
+
investorSiteEnabled: boolean;
|
|
42
35
|
__entity?: string | undefined;
|
|
43
36
|
}, {
|
|
44
37
|
id: string;
|
|
@@ -46,6 +39,15 @@ export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
|
46
39
|
updatedAt: string | Date;
|
|
47
40
|
deletedAt: string | Date | null;
|
|
48
41
|
accountId: string;
|
|
42
|
+
offeringSetup: boolean;
|
|
43
|
+
investorPortalSetup: boolean;
|
|
44
|
+
paymentMethodSetup: boolean;
|
|
45
|
+
accountContactsSetup: boolean;
|
|
46
|
+
productPrimaries: boolean;
|
|
47
|
+
productSecondaries: boolean;
|
|
48
|
+
featureDisbursements: boolean;
|
|
49
|
+
apiPortal: boolean;
|
|
50
|
+
investorSiteEnabled: boolean;
|
|
49
51
|
__entity?: string | undefined;
|
|
50
52
|
}>, "many">;
|
|
51
53
|
meta: z.ZodObject<{
|
|
@@ -74,6 +76,15 @@ export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
|
74
76
|
updatedAt: string | Date;
|
|
75
77
|
deletedAt: string | Date | null;
|
|
76
78
|
accountId: string;
|
|
79
|
+
offeringSetup: boolean;
|
|
80
|
+
investorPortalSetup: boolean;
|
|
81
|
+
paymentMethodSetup: boolean;
|
|
82
|
+
accountContactsSetup: boolean;
|
|
83
|
+
productPrimaries: boolean;
|
|
84
|
+
productSecondaries: boolean;
|
|
85
|
+
featureDisbursements: boolean;
|
|
86
|
+
apiPortal: boolean;
|
|
87
|
+
investorSiteEnabled: boolean;
|
|
77
88
|
__entity?: string | undefined;
|
|
78
89
|
}[];
|
|
79
90
|
meta: {
|
|
@@ -90,6 +101,15 @@ export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
|
90
101
|
updatedAt: string | Date;
|
|
91
102
|
deletedAt: string | Date | null;
|
|
92
103
|
accountId: string;
|
|
104
|
+
offeringSetup: boolean;
|
|
105
|
+
investorPortalSetup: boolean;
|
|
106
|
+
paymentMethodSetup: boolean;
|
|
107
|
+
accountContactsSetup: boolean;
|
|
108
|
+
productPrimaries: boolean;
|
|
109
|
+
productSecondaries: boolean;
|
|
110
|
+
featureDisbursements: boolean;
|
|
111
|
+
apiPortal: boolean;
|
|
112
|
+
investorSiteEnabled: boolean;
|
|
93
113
|
__entity?: string | undefined;
|
|
94
114
|
}[];
|
|
95
115
|
meta: {
|
|
@@ -102,7 +122,7 @@ export declare const IPaginatedAccountSetting: z.ZodObject<{
|
|
|
102
122
|
}>;
|
|
103
123
|
export type IPaginatedAccountSetting = z.infer<typeof IPaginatedAccountSetting>;
|
|
104
124
|
export declare const AccountSettingsFilters: z.ZodObject<{
|
|
105
|
-
accountId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string
|
|
125
|
+
accountId: z.ZodLazy<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
106
126
|
}, "strip", z.ZodTypeAny, {
|
|
107
127
|
accountId?: string | undefined;
|
|
108
128
|
}, {
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import { IBaseEntity } from './entity.types.js';
|
|
5
|
-
import { IPaginationMeta } from './common.types.js';
|
|
3
|
+
import { IAccountSettingZod, IPaginationMeta } from './common.types.js';
|
|
6
4
|
import { accountIdSchema } from './account.types.js';
|
|
7
5
|
extendZodWithOpenApi(z);
|
|
8
|
-
export const accountSettingIdSchema = z.string().refine((value) => {
|
|
9
|
-
try {
|
|
10
|
-
const tid = TypeID.fromString(value);
|
|
11
|
-
return tid.getType() === 'account_setting';
|
|
12
|
-
}
|
|
13
|
-
catch {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
message: 'Invalid account setting ID format. Must be a valid TypeID with "account_setting" prefix.',
|
|
18
|
-
});
|
|
19
|
-
export const IAccountSettingZod = IBaseEntity.extend({
|
|
20
|
-
id: accountSettingIdSchema.openapi({
|
|
21
|
-
example: 'account_setting_01j5y5ghx8fvc83dmx3pznq7hv',
|
|
22
|
-
}),
|
|
23
|
-
accountId: z.string().openapi({
|
|
24
|
-
example: 'account_01j5y5ghx8fvc83dmx3pznq7hv',
|
|
25
|
-
}),
|
|
26
|
-
});
|
|
27
6
|
export const IPaginatedAccountSetting = z.object({
|
|
28
7
|
items: z.array(IAccountSettingZod),
|
|
29
8
|
meta: IPaginationMeta,
|
|
30
9
|
});
|
|
31
10
|
export const AccountSettingsFilters = z.object({
|
|
32
|
-
accountId: accountIdSchema.optional(),
|
|
11
|
+
accountId: z.lazy(() => accountIdSchema.optional()),
|
|
33
12
|
});
|
|
34
13
|
export const accountSettingsInclude = z.enum(['notificationChannels']);
|
|
35
14
|
export const AccountSettingsIncludeQuery = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-setting.types.js","sourceRoot":"","sources":["account-setting.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"account-setting.types.js","sourceRoot":"","sources":["account-setting.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAExB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IAClC,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;CACpD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAC/C,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CACzB,sBAAsB,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAc,CAAC,CACxD,EACH;QACE,OAAO,EAAE,4CAA4C,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KACjG,CACF;CACJ,CAAC,CAAC"}
|
|
@@ -24,12 +24,12 @@ export type UpdateAccountZod = z.infer<typeof UpdateAccountZod>;
|
|
|
24
24
|
export declare const CreateAccountZod: z.ZodObject<{
|
|
25
25
|
name: z.ZodString;
|
|
26
26
|
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
|
|
27
|
-
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType
|
|
27
|
+
managedBy: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>>;
|
|
28
28
|
approversCount: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
hubspotCompany: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
name: string;
|
|
32
|
-
managedBy
|
|
32
|
+
managedBy: ManagedByType;
|
|
33
33
|
platform?: Platform | undefined;
|
|
34
34
|
approversCount?: number | undefined;
|
|
35
35
|
hubspotCompany?: string | null | undefined;
|
|
@@ -192,24 +192,30 @@ export declare const PatchAccountZod: z.ZodObject<{
|
|
|
192
192
|
productPrimaries: z.ZodOptional<z.ZodBoolean>;
|
|
193
193
|
productSecondaries: z.ZodOptional<z.ZodBoolean>;
|
|
194
194
|
featureDisbursements: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
apiPortal: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
investorSiteEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
195
197
|
}, "strip", z.ZodTypeAny, {
|
|
196
198
|
name: string;
|
|
199
|
+
productPrimaries?: boolean | undefined;
|
|
200
|
+
productSecondaries?: boolean | undefined;
|
|
201
|
+
featureDisbursements?: boolean | undefined;
|
|
202
|
+
apiPortal?: boolean | undefined;
|
|
203
|
+
investorSiteEnabled?: boolean | undefined;
|
|
197
204
|
managedBy?: ManagedByType | undefined;
|
|
198
205
|
platform?: Platform | undefined;
|
|
199
206
|
approversCount?: number | undefined;
|
|
200
207
|
integrationGuideId?: string | null | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
name: string;
|
|
201
210
|
productPrimaries?: boolean | undefined;
|
|
202
211
|
productSecondaries?: boolean | undefined;
|
|
203
212
|
featureDisbursements?: boolean | undefined;
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
apiPortal?: boolean | undefined;
|
|
214
|
+
investorSiteEnabled?: boolean | undefined;
|
|
206
215
|
managedBy?: ManagedByType | undefined;
|
|
207
216
|
platform?: Platform | undefined;
|
|
208
217
|
approversCount?: number | undefined;
|
|
209
218
|
integrationGuideId?: string | null | undefined;
|
|
210
|
-
productPrimaries?: boolean | undefined;
|
|
211
|
-
productSecondaries?: boolean | undefined;
|
|
212
|
-
featureDisbursements?: boolean | undefined;
|
|
213
219
|
}>;
|
|
214
220
|
export type PatchAccountZod = z.infer<typeof PatchAccountZod>;
|
|
215
221
|
export declare const CompliancePatchAccountZod: z.ZodObject<{
|
|
@@ -221,28 +227,34 @@ export declare const CompliancePatchAccountZod: z.ZodObject<{
|
|
|
221
227
|
productPrimaries: z.ZodOptional<z.ZodBoolean>;
|
|
222
228
|
productSecondaries: z.ZodOptional<z.ZodBoolean>;
|
|
223
229
|
featureDisbursements: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
apiPortal: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
investorSiteEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
224
232
|
} & {
|
|
225
233
|
hubspotCompany: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
234
|
}, "strip", z.ZodTypeAny, {
|
|
227
235
|
name: string;
|
|
236
|
+
productPrimaries?: boolean | undefined;
|
|
237
|
+
productSecondaries?: boolean | undefined;
|
|
238
|
+
featureDisbursements?: boolean | undefined;
|
|
239
|
+
apiPortal?: boolean | undefined;
|
|
240
|
+
investorSiteEnabled?: boolean | undefined;
|
|
228
241
|
managedBy?: ManagedByType | undefined;
|
|
229
242
|
platform?: Platform | undefined;
|
|
230
243
|
approversCount?: number | undefined;
|
|
231
244
|
hubspotCompany?: string | null | undefined;
|
|
232
245
|
integrationGuideId?: string | null | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
name: string;
|
|
233
248
|
productPrimaries?: boolean | undefined;
|
|
234
249
|
productSecondaries?: boolean | undefined;
|
|
235
250
|
featureDisbursements?: boolean | undefined;
|
|
236
|
-
|
|
237
|
-
|
|
251
|
+
apiPortal?: boolean | undefined;
|
|
252
|
+
investorSiteEnabled?: boolean | undefined;
|
|
238
253
|
managedBy?: ManagedByType | undefined;
|
|
239
254
|
platform?: Platform | undefined;
|
|
240
255
|
approversCount?: number | undefined;
|
|
241
256
|
hubspotCompany?: string | null | undefined;
|
|
242
257
|
integrationGuideId?: string | null | undefined;
|
|
243
|
-
productPrimaries?: boolean | undefined;
|
|
244
|
-
productSecondaries?: boolean | undefined;
|
|
245
|
-
featureDisbursements?: boolean | undefined;
|
|
246
258
|
}>;
|
|
247
259
|
export type CompliancePatchAccountZod = z.infer<typeof CompliancePatchAccountZod>;
|
|
248
260
|
export declare const PostAccountResponse: z.ZodObject<{
|
|
@@ -481,20 +493,20 @@ export declare const OnboardingAccountSummaryZod: z.ZodObject<{
|
|
|
481
493
|
accountContactsSetup: z.ZodBoolean;
|
|
482
494
|
}, "strip", z.ZodTypeAny, {
|
|
483
495
|
accountId: string;
|
|
484
|
-
accountName: string;
|
|
485
496
|
offeringSetup: boolean;
|
|
486
497
|
investorPortalSetup: boolean;
|
|
487
498
|
paymentMethodSetup: boolean;
|
|
488
499
|
accountContactsSetup: boolean;
|
|
500
|
+
accountName: string;
|
|
489
501
|
siteId: string | null;
|
|
490
502
|
offeringId: string | null;
|
|
491
503
|
}, {
|
|
492
504
|
accountId: string;
|
|
493
|
-
accountName: string;
|
|
494
505
|
offeringSetup: boolean;
|
|
495
506
|
investorPortalSetup: boolean;
|
|
496
507
|
paymentMethodSetup: boolean;
|
|
497
508
|
accountContactsSetup: boolean;
|
|
509
|
+
accountName: string;
|
|
498
510
|
siteId: string | null;
|
|
499
511
|
offeringId: string | null;
|
|
500
512
|
}>;
|
|
@@ -511,20 +523,20 @@ export declare const IPaginatedOnboardingAccountSummaryResponse: z.ZodObject<{
|
|
|
511
523
|
accountContactsSetup: z.ZodBoolean;
|
|
512
524
|
}, "strip", z.ZodTypeAny, {
|
|
513
525
|
accountId: string;
|
|
514
|
-
accountName: string;
|
|
515
526
|
offeringSetup: boolean;
|
|
516
527
|
investorPortalSetup: boolean;
|
|
517
528
|
paymentMethodSetup: boolean;
|
|
518
529
|
accountContactsSetup: boolean;
|
|
530
|
+
accountName: string;
|
|
519
531
|
siteId: string | null;
|
|
520
532
|
offeringId: string | null;
|
|
521
533
|
}, {
|
|
522
534
|
accountId: string;
|
|
523
|
-
accountName: string;
|
|
524
535
|
offeringSetup: boolean;
|
|
525
536
|
investorPortalSetup: boolean;
|
|
526
537
|
paymentMethodSetup: boolean;
|
|
527
538
|
accountContactsSetup: boolean;
|
|
539
|
+
accountName: string;
|
|
528
540
|
siteId: string | null;
|
|
529
541
|
offeringId: string | null;
|
|
530
542
|
}>, "many">;
|
|
@@ -550,11 +562,11 @@ export declare const IPaginatedOnboardingAccountSummaryResponse: z.ZodObject<{
|
|
|
550
562
|
}, "strip", z.ZodTypeAny, {
|
|
551
563
|
items: {
|
|
552
564
|
accountId: string;
|
|
553
|
-
accountName: string;
|
|
554
565
|
offeringSetup: boolean;
|
|
555
566
|
investorPortalSetup: boolean;
|
|
556
567
|
paymentMethodSetup: boolean;
|
|
557
568
|
accountContactsSetup: boolean;
|
|
569
|
+
accountName: string;
|
|
558
570
|
siteId: string | null;
|
|
559
571
|
offeringId: string | null;
|
|
560
572
|
}[];
|
|
@@ -568,11 +580,11 @@ export declare const IPaginatedOnboardingAccountSummaryResponse: z.ZodObject<{
|
|
|
568
580
|
}, {
|
|
569
581
|
items: {
|
|
570
582
|
accountId: string;
|
|
571
|
-
accountName: string;
|
|
572
583
|
offeringSetup: boolean;
|
|
573
584
|
investorPortalSetup: boolean;
|
|
574
585
|
paymentMethodSetup: boolean;
|
|
575
586
|
accountContactsSetup: boolean;
|
|
587
|
+
accountName: string;
|
|
576
588
|
siteId: string | null;
|
|
577
589
|
offeringId: string | null;
|
|
578
590
|
}[];
|
|
@@ -593,3 +605,36 @@ export declare const OnboardingAccountSummaryFilterZod: z.ZodObject<{
|
|
|
593
605
|
status?: AccountStatus | undefined;
|
|
594
606
|
}>;
|
|
595
607
|
export type OnboardingAccountSummaryFilterZod = z.infer<typeof OnboardingAccountSummaryFilterZod>;
|
|
608
|
+
export declare const PatchIssuerAccountZod: z.ZodObject<Omit<{
|
|
609
|
+
name: z.ZodString;
|
|
610
|
+
approversCount: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
612
|
+
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
|
|
613
|
+
integrationGuideId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
614
|
+
productPrimaries: z.ZodOptional<z.ZodBoolean>;
|
|
615
|
+
productSecondaries: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
+
featureDisbursements: z.ZodOptional<z.ZodBoolean>;
|
|
617
|
+
apiPortal: z.ZodOptional<z.ZodBoolean>;
|
|
618
|
+
investorSiteEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
619
|
+
}, "apiPortal">, "strip", z.ZodTypeAny, {
|
|
620
|
+
name: string;
|
|
621
|
+
productPrimaries?: boolean | undefined;
|
|
622
|
+
productSecondaries?: boolean | undefined;
|
|
623
|
+
featureDisbursements?: boolean | undefined;
|
|
624
|
+
investorSiteEnabled?: boolean | undefined;
|
|
625
|
+
managedBy?: ManagedByType | undefined;
|
|
626
|
+
platform?: Platform | undefined;
|
|
627
|
+
approversCount?: number | undefined;
|
|
628
|
+
integrationGuideId?: string | null | undefined;
|
|
629
|
+
}, {
|
|
630
|
+
name: string;
|
|
631
|
+
productPrimaries?: boolean | undefined;
|
|
632
|
+
productSecondaries?: boolean | undefined;
|
|
633
|
+
featureDisbursements?: boolean | undefined;
|
|
634
|
+
investorSiteEnabled?: boolean | undefined;
|
|
635
|
+
managedBy?: ManagedByType | undefined;
|
|
636
|
+
platform?: Platform | undefined;
|
|
637
|
+
approversCount?: number | undefined;
|
|
638
|
+
integrationGuideId?: string | null | undefined;
|
|
639
|
+
}>;
|
|
640
|
+
export type PatchIssuerAccountZod = z.infer<typeof PatchIssuerAccountZod>;
|
|
@@ -21,7 +21,7 @@ export const UpdateAccountZod = z.object({
|
|
|
21
21
|
platform: z
|
|
22
22
|
.nativeEnum(Platform)
|
|
23
23
|
.optional()
|
|
24
|
-
.openapi({ example: Platform.
|
|
24
|
+
.openapi({ example: Platform.IMPORT }),
|
|
25
25
|
managedBy: z
|
|
26
26
|
.nativeEnum(ManagedByType)
|
|
27
27
|
.optional()
|
|
@@ -33,10 +33,11 @@ export const CreateAccountZod = z.object({
|
|
|
33
33
|
platform: z
|
|
34
34
|
.nativeEnum(Platform)
|
|
35
35
|
.optional()
|
|
36
|
-
.openapi({ example: Platform.
|
|
36
|
+
.openapi({ example: Platform.IMPORT }),
|
|
37
37
|
managedBy: z
|
|
38
38
|
.nativeEnum(ManagedByType)
|
|
39
39
|
.optional()
|
|
40
|
+
.default(ManagedByType.ISSUER)
|
|
40
41
|
.openapi({ example: ManagedByType.DALMORE }),
|
|
41
42
|
approversCount: z.number().min(1).max(5).optional().openapi({ example: 2 }),
|
|
42
43
|
hubspotCompany: z
|
|
@@ -57,7 +58,7 @@ export const AccountFiltersZod = z.object({
|
|
|
57
58
|
platform: z
|
|
58
59
|
.nativeEnum(Platform)
|
|
59
60
|
.optional()
|
|
60
|
-
.openapi({ example: Platform.
|
|
61
|
+
.openapi({ example: Platform.IMPORT }),
|
|
61
62
|
managedBy: z
|
|
62
63
|
.nativeEnum(ManagedByType)
|
|
63
64
|
.optional()
|
|
@@ -108,6 +109,8 @@ export const PatchAccountZod = z.object({
|
|
|
108
109
|
productPrimaries: z.boolean().optional(),
|
|
109
110
|
productSecondaries: z.boolean().optional(),
|
|
110
111
|
featureDisbursements: z.boolean().optional(),
|
|
112
|
+
apiPortal: z.boolean().optional(),
|
|
113
|
+
investorSiteEnabled: z.boolean().optional(),
|
|
111
114
|
});
|
|
112
115
|
export const CompliancePatchAccountZod = PatchAccountZod.extend({
|
|
113
116
|
hubspotCompany: z
|
|
@@ -211,4 +214,5 @@ export const IPaginatedOnboardingAccountSummaryResponse = z.object({
|
|
|
211
214
|
export const OnboardingAccountSummaryFilterZod = z.object({
|
|
212
215
|
status: z.nativeEnum(AccountStatus).optional(),
|
|
213
216
|
});
|
|
217
|
+
export const PatchIssuerAccountZod = PatchAccountZod.omit({ apiPortal: true });
|
|
214
218
|
//# sourceMappingURL=account.types.js.map
|