@cranberry-money/shared-types 4.14.0 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Account-related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ /**
6
+ * Account entity
7
+ */
8
+ export interface Account {
9
+ uuid: string;
10
+ accountNumber: string | null;
11
+ accountType: string;
12
+ activationDate: string | null;
13
+ }
14
+ /**
15
+ * Payload for creating or updating an account
16
+ */
17
+ export interface AccountPayload {
18
+ accountType: string;
19
+ name: string;
20
+ userProfile: string;
21
+ }
22
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Account-related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ export {};
package/dist/index.d.ts CHANGED
@@ -10,4 +10,6 @@ export type { TradeStatus, WithdrawalStatus, LiquidationStatus, TargetTradeStatu
10
10
  export type { InstrumentTypeInfo, InstrumentBasicInfo, PriceChangeResult, PriceSnapshot, FormattedPriceChange, TradeableInstrument, MarketDataInfo, } from './instruments';
11
11
  export type { LiquidationProgress } from './withdrawal';
12
12
  export type { UserProfile, UserProfilePayload, UserProfileCompletionPayload } from './user';
13
+ export type { Account, AccountPayload } from './account';
14
+ export type { InvestmentPreference, InvestmentPreferencePayload } from './investment';
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7F,YAAY,EACV,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAGhH,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGlG,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG1G,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7F,YAAY,EACV,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAGhH,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGlG,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG1G,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAG5F,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGzD,YAAY,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Investment preferences and related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ /**
6
+ * Investment preferences entity
7
+ */
8
+ export interface InvestmentPreference {
9
+ uuid: string;
10
+ userProfile: string;
11
+ investmentHorizon: string;
12
+ riskTolerance: string;
13
+ investmentExperience: string;
14
+ investmentAmount: string;
15
+ sourceOfFunds: string[];
16
+ }
17
+ /**
18
+ * Payload for creating or updating investment preferences
19
+ */
20
+ export interface InvestmentPreferencePayload {
21
+ investmentHorizon: string;
22
+ riskTolerance: string;
23
+ investmentExperience: string;
24
+ investmentAmount: number;
25
+ sourceOfFunds: string[];
26
+ }
27
+ //# sourceMappingURL=investment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"investment.d.ts","sourceRoot":"","sources":["../src/investment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Investment preferences and related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-types",
3
- "version": "4.14.0",
3
+ "version": "4.16.0",
4
4
  "description": "Shared TypeScript type definitions for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",