@cranberry-money/shared-types 8.22.513 → 8.22.515
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/dist/api.d.ts +0 -11
- package/dist/api.d.ts.map +1 -1
- package/dist/domain/identity-verification.d.ts +1 -0
- package/dist/domain/identity-verification.d.ts.map +1 -1
- package/dist/domain/index.d.ts +0 -2
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +0 -2
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/onramp.d.ts +3 -73
- package/dist/domain/onramp.d.ts.map +1 -1
- package/dist/domain/onramp.js +1 -1
- package/dist/domain/user-preferences.d.ts +0 -3
- package/dist/domain/user-preferences.d.ts.map +1 -1
- package/dist/ui.d.ts +10 -252
- package/dist/ui.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/domain/fiat-purchase.d.ts +0 -51
- package/dist/domain/fiat-purchase.d.ts.map +0 -1
- package/dist/domain/fiat-purchase.js +0 -2
- package/dist/domain/fiat-purchase.js.map +0 -1
- package/dist/domain/widget.d.ts +0 -41
- package/dist/domain/widget.d.ts.map +0 -1
- package/dist/domain/widget.js +0 -2
- package/dist/domain/widget.js.map +0 -1
package/dist/api.d.ts
CHANGED
|
@@ -82,17 +82,6 @@ export type WithUuidReference<T extends string> = {
|
|
|
82
82
|
export interface WithStatusFilter<T extends string = string> {
|
|
83
83
|
status?: T;
|
|
84
84
|
}
|
|
85
|
-
export interface WaitlistSignupRequest {
|
|
86
|
-
email: string;
|
|
87
|
-
}
|
|
88
|
-
export interface WaitlistSignupResponse {
|
|
89
|
-
success: boolean;
|
|
90
|
-
message: string;
|
|
91
|
-
data?: {
|
|
92
|
-
email: string;
|
|
93
|
-
};
|
|
94
|
-
errors?: FormErrors;
|
|
95
|
-
}
|
|
96
85
|
/**
|
|
97
86
|
* User-friendly error interface for displaying clean error messages to users
|
|
98
87
|
* while preserving the original error for debugging.
|
package/dist/api.d.ts.map
CHANGED
|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AAG,IAAI,CAAC;KAC1B,CAAC,CAAC;IACH,YAAY,EAAE,KAAK,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC,CAAC;IACH,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-verification.d.ts","sourceRoot":"","sources":["../../src/domain/identity-verification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE/F,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE7D,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"identity-verification.d.ts","sourceRoot":"","sources":["../../src/domain/identity-verification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE/F,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE7D,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC9C"}
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -16,9 +16,7 @@ export * from './chain';
|
|
|
16
16
|
export * from './transaction';
|
|
17
17
|
export * from './wallet-verification';
|
|
18
18
|
export * from './wallet-transfer';
|
|
19
|
-
export * from './fiat-purchase';
|
|
20
19
|
export * from './onramp';
|
|
21
20
|
export * from './hardware-wallet';
|
|
22
|
-
export * from './widget';
|
|
23
21
|
export * from './trading';
|
|
24
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
package/dist/domain/index.js
CHANGED
|
@@ -16,9 +16,7 @@ export * from './chain';
|
|
|
16
16
|
export * from './transaction';
|
|
17
17
|
export * from './wallet-verification';
|
|
18
18
|
export * from './wallet-transfer';
|
|
19
|
-
export * from './fiat-purchase';
|
|
20
19
|
export * from './onramp';
|
|
21
20
|
export * from './hardware-wallet';
|
|
22
|
-
export * from './widget';
|
|
23
21
|
export * from './trading';
|
|
24
22
|
//# sourceMappingURL=index.js.map
|
package/dist/domain/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
package/dist/domain/onramp.d.ts
CHANGED
|
@@ -1,92 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types for fiat on-ramp
|
|
2
|
+
* Types for fiat on-ramp widget integration (Transak).
|
|
3
3
|
*/
|
|
4
|
-
import type { OnRampProviderType } from '@cranberry-money/shared-constants';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export interface OnRampQuote {
|
|
9
|
-
provider: OnRampProviderType;
|
|
10
|
-
fiatAmount: string;
|
|
11
|
-
fiatCurrency: string;
|
|
12
|
-
cryptoAmount: string;
|
|
13
|
-
cryptoCurrency: string;
|
|
14
|
-
totalFee: string;
|
|
15
|
-
networkFee: string;
|
|
16
|
-
providerFee: string;
|
|
17
|
-
exchangeRate: string;
|
|
18
|
-
estimatedTime?: string;
|
|
19
|
-
available: boolean;
|
|
20
|
-
errorMessage?: string;
|
|
21
|
-
quoteId?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Request for getting quotes from all providers
|
|
25
|
-
*/
|
|
26
|
-
export interface GetOnRampQuotesRequest {
|
|
27
|
-
walletUuid: string;
|
|
28
|
-
fiatAmount: number;
|
|
29
|
-
fiatCurrency?: string;
|
|
30
|
-
cryptoCurrency?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Response containing quotes from all providers
|
|
34
|
-
*/
|
|
35
|
-
export interface OnRampQuotesResponse {
|
|
36
|
-
quotes: OnRampQuote[];
|
|
37
|
-
bestProvider: OnRampProviderType | null;
|
|
38
|
-
requestedAmount: string;
|
|
39
|
-
requestedCurrency: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Request to get widget URL for a specific provider
|
|
5
|
+
* Request to get widget URL for Transak
|
|
43
6
|
*/
|
|
44
7
|
export interface GetOnRampWidgetRequest {
|
|
45
8
|
walletUuid: string;
|
|
46
|
-
provider: OnRampProviderType;
|
|
47
9
|
fiatAmount?: number;
|
|
48
10
|
fiatCurrency?: string;
|
|
49
11
|
cryptoCurrency?: string;
|
|
50
|
-
quoteId?: string;
|
|
51
12
|
}
|
|
52
13
|
/**
|
|
53
|
-
* Response with widget configuration
|
|
54
|
-
* widgetType determines how the provider is rendered:
|
|
55
|
-
* - 'iframe': embedded via iframe src URL (Transak, Banxa)
|
|
56
|
-
* - 'popup': opened in a centered popup window (Coinbase)
|
|
14
|
+
* Response with Transak widget configuration
|
|
57
15
|
*/
|
|
58
16
|
export interface OnRampWidgetResponse {
|
|
59
|
-
provider: OnRampProviderType;
|
|
60
|
-
widgetType: 'iframe' | 'popup';
|
|
61
17
|
url: string;
|
|
62
18
|
walletAddress: string;
|
|
63
19
|
chain: string;
|
|
64
20
|
cryptoCurrency?: string;
|
|
65
|
-
quoteId?: string;
|
|
66
|
-
sessionToken?: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Payment method from Coinbase buy options
|
|
70
|
-
*/
|
|
71
|
-
export interface BuyOptionsPaymentMethod {
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
minBuyAmount?: string;
|
|
75
|
-
maxBuyAmount?: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Purchasable currency from Coinbase buy options
|
|
79
|
-
*/
|
|
80
|
-
export interface BuyOptionsCurrency {
|
|
81
|
-
currencyCode: string;
|
|
82
|
-
name: string;
|
|
83
|
-
networks: string[];
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Response from the Coinbase buy options endpoint
|
|
87
|
-
*/
|
|
88
|
-
export interface BuyOptionsResponse {
|
|
89
|
-
paymentMethods: BuyOptionsPaymentMethod[];
|
|
90
|
-
purchaseCurrencies: BuyOptionsCurrency[];
|
|
91
21
|
}
|
|
92
22
|
//# sourceMappingURL=onramp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onramp.d.ts","sourceRoot":"","sources":["../../src/domain/onramp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"onramp.d.ts","sourceRoot":"","sources":["../../src/domain/onramp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/dist/domain/onramp.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OnRampProviderType } from '@cranberry-money/shared-constants';
|
|
2
1
|
import type { BaseEntity } from '../common';
|
|
3
2
|
import type { OrderingParams } from '../api';
|
|
4
3
|
/**
|
|
@@ -26,7 +25,6 @@ export interface UserPreferences extends BaseEntity {
|
|
|
26
25
|
userProfile: string;
|
|
27
26
|
selectedAccount: SelectedAccount | null;
|
|
28
27
|
selectedPortfolio: SelectedPortfolio | null;
|
|
29
|
-
preferredOnrampProvider: OnRampProviderType | null;
|
|
30
28
|
}
|
|
31
29
|
export interface UserPreferencesValidationError {
|
|
32
30
|
selectedAccount?: string;
|
|
@@ -47,7 +45,6 @@ export interface UserPreferencesQueryParams extends OrderingParams {
|
|
|
47
45
|
export interface UpdateUserPreferences {
|
|
48
46
|
selectedAccount?: string | null;
|
|
49
47
|
selectedPortfolio?: string | null;
|
|
50
|
-
preferredOnrampProvider?: OnRampProviderType | null;
|
|
51
48
|
}
|
|
52
49
|
export interface UserPreferencesResponse {
|
|
53
50
|
success: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-preferences.d.ts","sourceRoot":"","sources":["../../src/domain/user-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"user-preferences.d.ts","sourceRoot":"","sources":["../../src/domain/user-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,8BAA8B;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { UserProfile, FinancialProfile, AssetQueryParams } from './domain';
|
|
3
|
+
import type { FieldValidation, FormValidation } from './validation';
|
|
4
4
|
export type { CountryData } from '@cranberry-money/shared-constants';
|
|
5
|
-
import type { FormErrors } from './api';
|
|
6
|
-
import type { AssetQueryParams } from './domain';
|
|
7
|
-
import type { ValidationResult, FieldValidation, FormValidation } from './validation';
|
|
8
5
|
export type { AssetQueryParams };
|
|
9
6
|
export interface ReviewData {
|
|
10
7
|
userProfile: UserProfile | null;
|
|
@@ -15,63 +12,6 @@ export interface UserProfileFormValidation extends FormValidation {
|
|
|
15
12
|
residentialAddress: FieldValidation;
|
|
16
13
|
phoneNumber: FieldValidation;
|
|
17
14
|
}
|
|
18
|
-
export interface TokenValidation {
|
|
19
|
-
isValid: boolean;
|
|
20
|
-
isEmpty: boolean;
|
|
21
|
-
isValidFormat: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface TaxResidencyForm {
|
|
24
|
-
localUuid: string;
|
|
25
|
-
backendUuid?: string;
|
|
26
|
-
country: string;
|
|
27
|
-
isPrimary: boolean;
|
|
28
|
-
taxNumber: string;
|
|
29
|
-
isExempted: boolean;
|
|
30
|
-
exemptionReason: string | null;
|
|
31
|
-
}
|
|
32
|
-
export interface PortfolioSelectionFormValidation extends FormValidation {
|
|
33
|
-
selectedTemplate: ValidationResult;
|
|
34
|
-
}
|
|
35
|
-
export interface FinancialSummary {
|
|
36
|
-
availableCashBalance: number;
|
|
37
|
-
}
|
|
38
|
-
export interface DashboardPerformance {
|
|
39
|
-
marketValue: number;
|
|
40
|
-
totalReturn: number;
|
|
41
|
-
totalReturnPercent: number;
|
|
42
|
-
}
|
|
43
|
-
export interface PasswordValidation extends ValidationResult {
|
|
44
|
-
lengthValid: boolean;
|
|
45
|
-
notNumeric: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface EmailConfirmationValidation extends FieldValidation {
|
|
48
|
-
isValidFormat: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface MessageFieldValidation extends ValidationResult {
|
|
51
|
-
message: string;
|
|
52
|
-
}
|
|
53
|
-
export type BadgeVariant = 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
54
|
-
export interface BadgeData {
|
|
55
|
-
text: string;
|
|
56
|
-
variant: BadgeVariant;
|
|
57
|
-
ariaLabel: string;
|
|
58
|
-
}
|
|
59
|
-
export interface ParsedAddress {
|
|
60
|
-
unit?: string;
|
|
61
|
-
streetNumber?: string;
|
|
62
|
-
streetName?: string;
|
|
63
|
-
neighborhood?: string;
|
|
64
|
-
city?: string;
|
|
65
|
-
zipcode?: string;
|
|
66
|
-
state?: string;
|
|
67
|
-
country?: string;
|
|
68
|
-
formatted?: string;
|
|
69
|
-
}
|
|
70
|
-
export interface UserProfileFieldValidation {
|
|
71
|
-
readonly fullName: (value: string) => ValidationResult;
|
|
72
|
-
readonly phoneNumber: (value: string) => ValidationResult;
|
|
73
|
-
readonly residentialAddress: (value: string) => ValidationResult;
|
|
74
|
-
}
|
|
75
15
|
export interface FinancialProfileFormState {
|
|
76
16
|
userProfileId: string;
|
|
77
17
|
occupation: string;
|
|
@@ -80,18 +20,15 @@ export interface FinancialProfileFormState {
|
|
|
80
20
|
intendedUse: string;
|
|
81
21
|
intendedUseOtherText: string;
|
|
82
22
|
}
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
investmentAmount: MessageFieldValidation;
|
|
88
|
-
sourceOfFunds: MessageFieldValidation;
|
|
23
|
+
export interface PasswordValidation {
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
lengthValid: boolean;
|
|
26
|
+
notNumeric: boolean;
|
|
89
27
|
}
|
|
90
|
-
export interface
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
changePercent: string;
|
|
28
|
+
export interface EmailConfirmationValidation {
|
|
29
|
+
isValid: boolean;
|
|
30
|
+
isEmpty: boolean;
|
|
31
|
+
isValidFormat: boolean;
|
|
95
32
|
}
|
|
96
33
|
export interface ChartDataPoint {
|
|
97
34
|
dayIndex: number;
|
|
@@ -99,158 +36,6 @@ export interface ChartDataPoint {
|
|
|
99
36
|
price: number;
|
|
100
37
|
changePercent: number;
|
|
101
38
|
}
|
|
102
|
-
export interface ReviewAllocationSummaryProps {
|
|
103
|
-
allocations: AssetAllocation[];
|
|
104
|
-
}
|
|
105
|
-
export interface WithLoadingState {
|
|
106
|
-
isLoading?: boolean;
|
|
107
|
-
isSubmitting?: boolean;
|
|
108
|
-
isError?: boolean;
|
|
109
|
-
error?: Error | string | null;
|
|
110
|
-
}
|
|
111
|
-
export interface WithRefreshActions {
|
|
112
|
-
onRefresh?: () => void;
|
|
113
|
-
onRetry?: () => void;
|
|
114
|
-
}
|
|
115
|
-
export interface BasePanelProps<TItem, TFilters> extends WithLoadingState, WithRefreshActions {
|
|
116
|
-
items: TItem[];
|
|
117
|
-
filters: TFilters;
|
|
118
|
-
onFilterUpdate: (filters: Partial<TFilters>) => void;
|
|
119
|
-
}
|
|
120
|
-
export interface BaseFormProps<TForm, TErrors = Record<string, string[]>> {
|
|
121
|
-
form: TForm;
|
|
122
|
-
errors?: TErrors;
|
|
123
|
-
isSubmitting?: boolean;
|
|
124
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>) => void;
|
|
125
|
-
onSubmit: (e: React.FormEvent) => void | Promise<void>;
|
|
126
|
-
}
|
|
127
|
-
export interface ControlledSearchFieldProps {
|
|
128
|
-
readonly onSearch: (query: string) => void;
|
|
129
|
-
readonly placeholder?: string;
|
|
130
|
-
readonly value: string;
|
|
131
|
-
readonly onClear?: () => void;
|
|
132
|
-
}
|
|
133
|
-
export interface BaseSummaryPanelProps<T> {
|
|
134
|
-
readonly summary: T;
|
|
135
|
-
readonly isLoading?: boolean;
|
|
136
|
-
readonly error?: Error | null;
|
|
137
|
-
readonly onRefresh?: () => void;
|
|
138
|
-
}
|
|
139
|
-
export interface BaseTradingPanelProps<TItem, TFilters> {
|
|
140
|
-
items: TItem[];
|
|
141
|
-
dialogFilters: TFilters;
|
|
142
|
-
clientSearchQuery: string;
|
|
143
|
-
isLoading?: boolean;
|
|
144
|
-
onSearch: (query: string) => void;
|
|
145
|
-
onUpdateDialogFilters: (filters: Partial<TFilters>) => void;
|
|
146
|
-
onApplyFiltersToServer: () => void;
|
|
147
|
-
onClearAllFilters: () => void;
|
|
148
|
-
}
|
|
149
|
-
export interface BaseFiltersDialogProps<T> {
|
|
150
|
-
filters: T;
|
|
151
|
-
isOpen: boolean;
|
|
152
|
-
onClose: () => void;
|
|
153
|
-
onUpdateFilters: (filters: Partial<T>) => void;
|
|
154
|
-
onApplyFilters: (filters?: T) => void;
|
|
155
|
-
onClearFilters: () => void;
|
|
156
|
-
}
|
|
157
|
-
export interface PortfolioSummaryCardProps {
|
|
158
|
-
portfolio: Portfolio | undefined;
|
|
159
|
-
performanceData: DashboardPerformance | null;
|
|
160
|
-
totalCashBalance: number;
|
|
161
|
-
onRefresh?: () => void;
|
|
162
|
-
}
|
|
163
|
-
export interface UserFormProps {
|
|
164
|
-
form: SignupRequest;
|
|
165
|
-
errors: FormErrors;
|
|
166
|
-
isSubmitting: boolean;
|
|
167
|
-
showPassword: boolean;
|
|
168
|
-
passwordValidation: PasswordValidation;
|
|
169
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
170
|
-
onSubmit: (e: React.FormEvent) => void;
|
|
171
|
-
onTogglePassword: () => void;
|
|
172
|
-
}
|
|
173
|
-
export interface SigninFormProps {
|
|
174
|
-
form: SigninRequest;
|
|
175
|
-
errors: FormErrors;
|
|
176
|
-
generalError: string | null;
|
|
177
|
-
isSubmitting: boolean;
|
|
178
|
-
showPassword: boolean;
|
|
179
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
180
|
-
onSubmit: (e: React.FormEvent) => void;
|
|
181
|
-
onTogglePassword: () => void;
|
|
182
|
-
}
|
|
183
|
-
export interface EmailConfirmationFormProps {
|
|
184
|
-
form: EmailVerificationRequest;
|
|
185
|
-
errors: FormErrors;
|
|
186
|
-
isSubmitting: boolean;
|
|
187
|
-
isResending: boolean;
|
|
188
|
-
tokenValidation?: TokenValidation;
|
|
189
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
190
|
-
onSubmit: (e: React.FormEvent) => void;
|
|
191
|
-
onResendCode: () => void;
|
|
192
|
-
onBack?: () => void;
|
|
193
|
-
}
|
|
194
|
-
export interface UserProfileFormProps {
|
|
195
|
-
form: CreateUserProfile;
|
|
196
|
-
errors: FormErrors;
|
|
197
|
-
isSubmitting: boolean;
|
|
198
|
-
formValidation?: UserProfileFormValidation;
|
|
199
|
-
selectedCountry?: CountryData;
|
|
200
|
-
countries?: CountryData[];
|
|
201
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>) => void;
|
|
202
|
-
onSubmit: (e: React.FormEvent) => void;
|
|
203
|
-
onBack?: () => void;
|
|
204
|
-
onCountryChange?: (country: CountryData) => void;
|
|
205
|
-
}
|
|
206
|
-
export interface TaxResidencyCardProps {
|
|
207
|
-
taxResidency: TaxResidencyForm;
|
|
208
|
-
index: number;
|
|
209
|
-
countries: Country[];
|
|
210
|
-
onChange: (index: number, field: keyof TaxResidencyForm, value: string | boolean | null) => void;
|
|
211
|
-
onRemove: (index: number) => void;
|
|
212
|
-
onTogglePrimary: (index: number) => void;
|
|
213
|
-
isOnlyOne: boolean;
|
|
214
|
-
errors: Record<string, string>;
|
|
215
|
-
}
|
|
216
|
-
export interface ReviewFormProps {
|
|
217
|
-
data: ReviewData;
|
|
218
|
-
isLoading: boolean;
|
|
219
|
-
error: string | null;
|
|
220
|
-
onCompleteSignup: () => void;
|
|
221
|
-
isSubmitting: boolean;
|
|
222
|
-
canCompleteSignup: boolean;
|
|
223
|
-
onBack?: () => void;
|
|
224
|
-
}
|
|
225
|
-
export interface TimeRangeSelectorProps {
|
|
226
|
-
selectedRange: TimeRange;
|
|
227
|
-
onRangeChange: (range: TimeRange) => void;
|
|
228
|
-
}
|
|
229
|
-
export interface FinancialSummaryPanelProps {
|
|
230
|
-
financialSummary: FinancialSummary;
|
|
231
|
-
isLoading?: boolean;
|
|
232
|
-
error?: Error | null;
|
|
233
|
-
onRefresh?: () => void;
|
|
234
|
-
}
|
|
235
|
-
export interface AssetsPanelProps extends WithLoadingState {
|
|
236
|
-
assets: Asset[];
|
|
237
|
-
filters: AssetQueryParams;
|
|
238
|
-
showFiltersDialog: boolean;
|
|
239
|
-
onSearch: (query: string) => void;
|
|
240
|
-
onClear: () => void;
|
|
241
|
-
onUpdateFilters: (filters: Partial<AssetQueryParams>) => void;
|
|
242
|
-
onApplyFilters: () => void;
|
|
243
|
-
onClearFilters: () => void;
|
|
244
|
-
onToggleFiltersDialog: () => void;
|
|
245
|
-
onRefresh?: () => void;
|
|
246
|
-
}
|
|
247
|
-
export interface AssetsTableProps {
|
|
248
|
-
assets: Asset[];
|
|
249
|
-
selectedAssets: Set<string>;
|
|
250
|
-
onToggleAsset: (assetUuid: string) => void;
|
|
251
|
-
isLoading?: boolean;
|
|
252
|
-
isSubmitting?: boolean;
|
|
253
|
-
}
|
|
254
39
|
export interface RadioGroupFieldProps {
|
|
255
40
|
label: string;
|
|
256
41
|
value: string;
|
|
@@ -271,33 +56,6 @@ export interface CheckboxGroupFieldProps {
|
|
|
271
56
|
error?: string[];
|
|
272
57
|
onChange: (values: string[]) => void;
|
|
273
58
|
}
|
|
274
|
-
export interface SearchFieldProps {
|
|
275
|
-
value?: string;
|
|
276
|
-
initialValue?: string;
|
|
277
|
-
onSearch: (query: string) => void;
|
|
278
|
-
onClear?: () => void;
|
|
279
|
-
placeholder?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface SearchWithFiltersProps {
|
|
282
|
-
value: string;
|
|
283
|
-
onChange: (value: string) => void;
|
|
284
|
-
placeholder?: string;
|
|
285
|
-
showFilters: boolean;
|
|
286
|
-
filters: AssetQueryParams;
|
|
287
|
-
onToggleFilters: () => void;
|
|
288
|
-
onCloseFilters: () => void;
|
|
289
|
-
onUpdateFilters: (filters: Partial<AssetQueryParams>) => void;
|
|
290
|
-
onApplyFilters: () => void;
|
|
291
|
-
onClearFilters: () => void;
|
|
292
|
-
}
|
|
293
|
-
export interface TooltipProps {
|
|
294
|
-
children: React.ReactNode;
|
|
295
|
-
content: string;
|
|
296
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
297
|
-
className?: string;
|
|
298
|
-
disabled?: boolean;
|
|
299
|
-
delay?: number;
|
|
300
|
-
}
|
|
301
59
|
export interface LayoutProps {
|
|
302
60
|
children: React.ReactNode;
|
|
303
61
|
}
|
package/dist/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,WAA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AAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-types",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.515",
|
|
4
4
|
"description": "Shared TypeScript type definitions for Blueberry platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run clean && npm run typecheck && npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cranberry-money/shared-constants": "^8.15.
|
|
32
|
+
"@cranberry-money/shared-constants": "^8.15.540",
|
|
33
33
|
"@types/react": "^19.1.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { BaseEntity } from '../common';
|
|
2
|
-
import type { BaseQueryParams } from '../api';
|
|
3
|
-
export interface FiatTransaction extends BaseEntity {
|
|
4
|
-
externalId: string;
|
|
5
|
-
wallet: string;
|
|
6
|
-
walletAddress?: string;
|
|
7
|
-
chain?: string;
|
|
8
|
-
fiatAmount: string;
|
|
9
|
-
fiatCurrency: string;
|
|
10
|
-
cryptoAmount?: string;
|
|
11
|
-
cryptoCurrency: string;
|
|
12
|
-
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
13
|
-
paymentMethod?: 'CARD' | 'BANK_TRANSFER' | 'APPLE_PAY' | 'GOOGLE_PAY';
|
|
14
|
-
transactionHash?: string;
|
|
15
|
-
providerFee?: string;
|
|
16
|
-
networkFee?: string;
|
|
17
|
-
completedAt?: string;
|
|
18
|
-
failedAt?: string;
|
|
19
|
-
failureReason?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Query parameters for fiat transaction endpoints.
|
|
23
|
-
* Extends BaseQueryParams for page-based pagination.
|
|
24
|
-
*
|
|
25
|
-
* NAMING CONVENTION: Query params use snake_case following REST API URL standards.
|
|
26
|
-
*/
|
|
27
|
-
export interface FiatTransactionQueryParams extends BaseQueryParams {
|
|
28
|
-
wallet?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface TransakWidgetConfig {
|
|
31
|
-
walletUuid: string;
|
|
32
|
-
cryptoCurrencyCode?: string;
|
|
33
|
-
defaultCryptoCurrency?: string;
|
|
34
|
-
chain?: string;
|
|
35
|
-
fiatCurrency?: string;
|
|
36
|
-
defaultFiatCurrency?: string;
|
|
37
|
-
fiatAmount?: number;
|
|
38
|
-
defaultFiatAmount?: number;
|
|
39
|
-
email?: string;
|
|
40
|
-
disableWalletAddressForm?: boolean;
|
|
41
|
-
productsAvailed?: 'BUY' | 'SELL' | 'BUY,SELL';
|
|
42
|
-
themeColor?: string;
|
|
43
|
-
redirectURL?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface TransakWidgetUrlResponse {
|
|
46
|
-
url: string;
|
|
47
|
-
walletAddress: string;
|
|
48
|
-
chain: string;
|
|
49
|
-
cryptoCurrency?: string;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=fiat-purchase.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fiat-purchase.d.ts","sourceRoot":"","sources":["../../src/domain/fiat-purchase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACxE,aAAa,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,WAAW,GAAG,YAAY,CAAC;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,eAAe,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fiat-purchase.js","sourceRoot":"","sources":["../../src/domain/fiat-purchase.ts"],"names":[],"mappings":""}
|
package/dist/domain/widget.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { BaseEntity } from '../common';
|
|
2
|
-
import type { OrderingParams } from '../api';
|
|
3
|
-
/**
|
|
4
|
-
* Widget name type matching backend WIDGET_NAME_CHOICES
|
|
5
|
-
*/
|
|
6
|
-
export type WidgetNameType = 'HOLDINGS' | 'WALLETS' | 'TRANSACTIONS' | 'TRANSFER' | 'PORTFOLIO' | 'ASSETS';
|
|
7
|
-
/**
|
|
8
|
-
* Widget entity from the API
|
|
9
|
-
*/
|
|
10
|
-
export interface Widget extends BaseEntity {
|
|
11
|
-
userAccount: string;
|
|
12
|
-
name: WidgetNameType;
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create widget request (userAccount and name are required, isActive defaults to true)
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateWidget {
|
|
19
|
-
userAccount: string;
|
|
20
|
-
name: WidgetNameType;
|
|
21
|
-
isActive?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Update widget request (partial)
|
|
25
|
-
*/
|
|
26
|
-
export interface UpdateWidget {
|
|
27
|
-
name?: WidgetNameType;
|
|
28
|
-
isActive?: boolean;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Query parameters for widget endpoints.
|
|
32
|
-
* Extends OrderingParams for sorting (widgets are a small list, no pagination needed).
|
|
33
|
-
*
|
|
34
|
-
* NAMING CONVENTION: Query params use snake_case following REST API URL standards.
|
|
35
|
-
*/
|
|
36
|
-
export interface WidgetQueryParams extends OrderingParams {
|
|
37
|
-
user_account?: string;
|
|
38
|
-
user_profile?: string;
|
|
39
|
-
name?: WidgetNameType;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/domain/widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE3G;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB"}
|
package/dist/domain/widget.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../src/domain/widget.ts"],"names":[],"mappings":""}
|