@cranberry-money/shared-types 8.22.193 → 8.22.197
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/domain/asset.d.ts +40 -0
- package/dist/domain/asset.d.ts.map +1 -0
- package/dist/domain/asset.js +14 -0
- package/dist/domain/asset.js.map +1 -0
- package/dist/domain/crypto-coin.d.ts +46 -0
- package/dist/domain/crypto-coin.d.ts.map +1 -0
- package/dist/domain/crypto-coin.js +16 -0
- package/dist/domain/crypto-coin.js.map +1 -0
- package/dist/domain/index.d.ts +3 -0
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +3 -0
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/instrument.d.ts +34 -6
- package/dist/domain/instrument.d.ts.map +1 -1
- package/dist/domain/stable-coin.d.ts +46 -0
- package/dist/domain/stable-coin.d.ts.map +1 -0
- package/dist/domain/stable-coin.js +13 -0
- package/dist/domain/stable-coin.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base Asset model - common fields for all tradeable assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AssetType {
|
|
6
|
+
STOCK = "STOCK",
|
|
7
|
+
ETF = "ETF",
|
|
8
|
+
FUND = "FUND",
|
|
9
|
+
CRYPTO = "CRYPTO",
|
|
10
|
+
STABLECOIN = "STABLECOIN"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Base asset interface
|
|
14
|
+
* Used by /api/assets/ endpoint for unified overview
|
|
15
|
+
*/
|
|
16
|
+
export interface Asset {
|
|
17
|
+
uuid: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
name: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
currentPrice: string;
|
|
22
|
+
currency: string | null;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
assetType: AssetType;
|
|
25
|
+
assetTypeDisplay: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Query parameters for /api/assets/ endpoint
|
|
31
|
+
* Query params remain snake_case (NOT converted by djangorestframework_camel_case)
|
|
32
|
+
*/
|
|
33
|
+
export interface AssetQueryParams {
|
|
34
|
+
asset_type?: AssetType;
|
|
35
|
+
symbol?: string;
|
|
36
|
+
is_active?: 'true' | 'false';
|
|
37
|
+
search?: string;
|
|
38
|
+
order_by?: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/domain/asset.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAE/B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base Asset model - common fields for all tradeable assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
// Asset type enum matching Django choices
|
|
6
|
+
export var AssetType;
|
|
7
|
+
(function (AssetType) {
|
|
8
|
+
AssetType["STOCK"] = "STOCK";
|
|
9
|
+
AssetType["ETF"] = "ETF";
|
|
10
|
+
AssetType["FUND"] = "FUND";
|
|
11
|
+
AssetType["CRYPTO"] = "CRYPTO";
|
|
12
|
+
AssetType["STABLECOIN"] = "STABLECOIN";
|
|
13
|
+
})(AssetType || (AssetType = {}));
|
|
14
|
+
//# sourceMappingURL=asset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/domain/asset.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;AAC3B,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CryptoCoin model - cryptocurrency assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
import { AssetType } from './asset';
|
|
6
|
+
export declare enum Blockchain {
|
|
7
|
+
BITCOIN = "BITCOIN",
|
|
8
|
+
ETHEREUM = "ETHEREUM",
|
|
9
|
+
SOLANA = "SOLANA",
|
|
10
|
+
POLYGON = "POLYGON",
|
|
11
|
+
ARBITRUM = "ARBITRUM",
|
|
12
|
+
OPTIMISM = "OPTIMISM",
|
|
13
|
+
BASE = "BASE"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CryptoCoin interface
|
|
17
|
+
* Used by /api/crypto/ endpoint
|
|
18
|
+
*/
|
|
19
|
+
export interface CryptoCoin {
|
|
20
|
+
uuid: string;
|
|
21
|
+
symbol: string;
|
|
22
|
+
name: string;
|
|
23
|
+
displayName: string;
|
|
24
|
+
currentPrice: string;
|
|
25
|
+
currency: string | null;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
assetType: AssetType;
|
|
28
|
+
blockchain: Blockchain;
|
|
29
|
+
contractAddress: string | null;
|
|
30
|
+
protocol: string | null;
|
|
31
|
+
marketCap: string | null;
|
|
32
|
+
circulatingSupply: string | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Query parameters for /api/crypto/ endpoint
|
|
36
|
+
* Query params remain snake_case (NOT converted by djangorestframework_camel_case)
|
|
37
|
+
*/
|
|
38
|
+
export interface CryptoCoinQueryParams {
|
|
39
|
+
blockchain?: Blockchain;
|
|
40
|
+
protocol?: string;
|
|
41
|
+
symbol?: string;
|
|
42
|
+
is_active?: 'true' | 'false';
|
|
43
|
+
search?: string;
|
|
44
|
+
order_by?: string;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=crypto-coin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-coin.d.ts","sourceRoot":"","sources":["../../src/domain/crypto-coin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IAEzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IAGrB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CryptoCoin model - cryptocurrency assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
// Blockchain enum matching Django choices
|
|
6
|
+
export var Blockchain;
|
|
7
|
+
(function (Blockchain) {
|
|
8
|
+
Blockchain["BITCOIN"] = "BITCOIN";
|
|
9
|
+
Blockchain["ETHEREUM"] = "ETHEREUM";
|
|
10
|
+
Blockchain["SOLANA"] = "SOLANA";
|
|
11
|
+
Blockchain["POLYGON"] = "POLYGON";
|
|
12
|
+
Blockchain["ARBITRUM"] = "ARBITRUM";
|
|
13
|
+
Blockchain["OPTIMISM"] = "OPTIMISM";
|
|
14
|
+
Blockchain["BASE"] = "BASE";
|
|
15
|
+
})(Blockchain || (Blockchain = {}));
|
|
16
|
+
//# sourceMappingURL=crypto-coin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-coin.js","sourceRoot":"","sources":["../../src/domain/crypto-coin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;AACf,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB"}
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './account';
|
|
2
|
+
export * from './asset';
|
|
2
3
|
export * from './asset-allocation';
|
|
3
4
|
export * from './bank-account';
|
|
4
5
|
export * from './cash-account';
|
|
5
6
|
export * from './cash-account-transaction';
|
|
7
|
+
export * from './crypto-coin';
|
|
6
8
|
export * from './withdrawal';
|
|
7
9
|
export * from './auth';
|
|
8
10
|
export * from './document';
|
|
@@ -13,6 +15,7 @@ export * from './portfolio';
|
|
|
13
15
|
export * from './portfolio-template';
|
|
14
16
|
export * from './rebalancing';
|
|
15
17
|
export * from './reference-data';
|
|
18
|
+
export * from './stable-coin';
|
|
16
19
|
export * from './tax-residency';
|
|
17
20
|
export * from './trade';
|
|
18
21
|
export * from './order';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
|
package/dist/domain/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './account';
|
|
2
|
+
export * from './asset';
|
|
2
3
|
export * from './asset-allocation';
|
|
3
4
|
export * from './bank-account';
|
|
4
5
|
export * from './cash-account';
|
|
5
6
|
export * from './cash-account-transaction';
|
|
7
|
+
export * from './crypto-coin';
|
|
6
8
|
export * from './withdrawal';
|
|
7
9
|
export * from './auth';
|
|
8
10
|
export * from './document';
|
|
@@ -13,6 +15,7 @@ export * from './portfolio';
|
|
|
13
15
|
export * from './portfolio-template';
|
|
14
16
|
export * from './rebalancing';
|
|
15
17
|
export * from './reference-data';
|
|
18
|
+
export * from './stable-coin';
|
|
16
19
|
export * from './tax-residency';
|
|
17
20
|
export * from './trade';
|
|
18
21
|
export * from './order';
|
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,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { AssetType } from './asset';
|
|
2
|
+
/**
|
|
3
|
+
* Instrument interface for traditional financial instruments (stocks, ETFs, funds)
|
|
4
|
+
* Extends Asset base model with instrument-specific fields
|
|
5
|
+
* Used by /api/instruments/ endpoint
|
|
6
|
+
*/
|
|
1
7
|
export interface Instrument {
|
|
2
8
|
uuid: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
name: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
currentPrice: string;
|
|
13
|
+
currency: string | null;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
assetType: AssetType;
|
|
3
16
|
exchange: string;
|
|
4
17
|
exchangeName: string;
|
|
5
18
|
country: string;
|
|
@@ -8,16 +21,31 @@ export interface Instrument {
|
|
|
8
21
|
industryName: string;
|
|
9
22
|
sector: string;
|
|
10
23
|
sectorName: string;
|
|
11
|
-
symbol: string;
|
|
12
|
-
name: string;
|
|
13
|
-
displayName: string;
|
|
14
|
-
currentPrice: string;
|
|
15
|
-
currency: string | null;
|
|
16
24
|
isEtf: boolean;
|
|
17
25
|
isFund: boolean;
|
|
18
|
-
isActive: boolean;
|
|
19
26
|
isActivelyTrading: boolean;
|
|
20
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Query parameters for /api/instruments/ endpoint
|
|
30
|
+
* Query params remain snake_case (NOT converted by djangorestframework_camel_case)
|
|
31
|
+
*/
|
|
32
|
+
export interface InstrumentQueryParams {
|
|
33
|
+
uuid?: string;
|
|
34
|
+
symbol?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
exchange_uuid?: string;
|
|
37
|
+
exchange_short_name?: string;
|
|
38
|
+
portfolio_uuid?: string;
|
|
39
|
+
sector_uuid?: string;
|
|
40
|
+
industry_uuid?: string;
|
|
41
|
+
country_uuid?: string;
|
|
42
|
+
is_etf?: 'true' | 'false';
|
|
43
|
+
is_fund?: 'true' | 'false';
|
|
44
|
+
min_price?: number;
|
|
45
|
+
max_price?: number;
|
|
46
|
+
order_by?: string;
|
|
47
|
+
search?: string;
|
|
48
|
+
}
|
|
21
49
|
export interface InstrumentSnapshot {
|
|
22
50
|
uuid: string;
|
|
23
51
|
instrument: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../src/domain/instrument.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;
|
|
1
|
+
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../src/domain/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IAEzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IAGrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StableCoin model - stablecoin assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
import { AssetType } from './asset';
|
|
6
|
+
export declare enum CollateralType {
|
|
7
|
+
FIAT = "FIAT",
|
|
8
|
+
CRYPTO = "CRYPTO",
|
|
9
|
+
ALGORITHMIC = "ALGORITHMIC",
|
|
10
|
+
HYBRID = "HYBRID"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* StableCoin interface
|
|
14
|
+
* Used by /api/stablecoins/ endpoint
|
|
15
|
+
*/
|
|
16
|
+
export interface StableCoin {
|
|
17
|
+
uuid: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
name: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
currentPrice: string;
|
|
22
|
+
currency: string | null;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
assetType: AssetType;
|
|
25
|
+
pegCurrency: string;
|
|
26
|
+
blockchain: string;
|
|
27
|
+
contractAddress: string;
|
|
28
|
+
collateralType: CollateralType;
|
|
29
|
+
issuer: string;
|
|
30
|
+
isAudited: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Query parameters for /api/stablecoins/ endpoint
|
|
34
|
+
* Query params remain snake_case (NOT converted by djangorestframework_camel_case)
|
|
35
|
+
*/
|
|
36
|
+
export interface StableCoinQueryParams {
|
|
37
|
+
blockchain?: string;
|
|
38
|
+
collateral_type?: CollateralType;
|
|
39
|
+
peg_currency?: string;
|
|
40
|
+
is_audited?: 'true' | 'false';
|
|
41
|
+
symbol?: string;
|
|
42
|
+
is_active?: 'true' | 'false';
|
|
43
|
+
search?: string;
|
|
44
|
+
order_by?: string;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=stable-coin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stable-coin.d.ts","sourceRoot":"","sources":["../../src/domain/stable-coin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IAEzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,eAAe,CAAC,EAAE,cAAc,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StableCoin model - stablecoin assets
|
|
3
|
+
* API responses use camelCase (converted by djangorestframework_camel_case)
|
|
4
|
+
*/
|
|
5
|
+
// Collateral type enum matching Django choices
|
|
6
|
+
export var CollateralType;
|
|
7
|
+
(function (CollateralType) {
|
|
8
|
+
CollateralType["FIAT"] = "FIAT";
|
|
9
|
+
CollateralType["CRYPTO"] = "CRYPTO";
|
|
10
|
+
CollateralType["ALGORITHMIC"] = "ALGORITHMIC";
|
|
11
|
+
CollateralType["HYBRID"] = "HYBRID";
|
|
12
|
+
})(CollateralType || (CollateralType = {}));
|
|
13
|
+
//# sourceMappingURL=stable-coin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stable-coin.js","sourceRoot":"","sources":["../../src/domain/stable-coin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,+CAA+C;AAC/C,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,mCAAiB,CAAA;IACjB,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
|
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.197",
|
|
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.222",
|
|
33
33
|
"@types/react": "^19.1.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|