@cranberry-money/shared-services 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -27
- package/dist/services/portfolios.d.ts +4 -8
- package/dist/services/portfolios.d.ts.map +1 -1
- package/package.json +2 -6
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# @cranberry/shared-services v3.0.0
|
|
1
|
+
# @cranberry-money/shared-services v3.0.0
|
|
2
2
|
|
|
3
3
|
**Functional Architecture Shared Services** with pure functions, dependency injection, and comprehensive TypeScript support for the MyPortfolio platform.
|
|
4
4
|
|
|
5
|
-
[](https://badge.fury.io/js/%40cranberry%2Fshared-services)
|
|
5
|
+
[](https://badge.fury.io/js/%40cranberry-money%2Fshared-services)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://reactjs.org/)
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
### Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm install @cranberry/shared-services@^3.0.0
|
|
22
|
+
npm install @cranberry-money/shared-services@^3.0.0
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Basic Setup
|
|
@@ -28,7 +28,7 @@ npm install @cranberry/shared-services@^3.0.0
|
|
|
28
28
|
import {
|
|
29
29
|
createWebServiceFactory,
|
|
30
30
|
initializeFeatureFlags
|
|
31
|
-
} from '@cranberry/shared-services';
|
|
31
|
+
} from '@cranberry-money/shared-services';
|
|
32
32
|
|
|
33
33
|
// 1. Initialize feature flags (optional but recommended)
|
|
34
34
|
await initializeFeatureFlags({
|
|
@@ -77,7 +77,7 @@ All operations are pure functions with explicit dependencies:
|
|
|
77
77
|
|
|
78
78
|
```typescript
|
|
79
79
|
// Pure function with explicit dependencies
|
|
80
|
-
import { signin, createWebTokenStorage } from '@cranberry/shared-services';
|
|
80
|
+
import { signin, createWebTokenStorage } from '@cranberry-money/shared-services';
|
|
81
81
|
|
|
82
82
|
const authDeps = {
|
|
83
83
|
apiClient: services.auth.createAuthDependencies().apiClient,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
useFunctionalAuthState,
|
|
97
97
|
useFunctionalAuthActions,
|
|
98
98
|
FunctionalAuthGuard
|
|
99
|
-
} from '@cranberry/shared-services';
|
|
99
|
+
} from '@cranberry-money/shared-services';
|
|
100
100
|
|
|
101
101
|
function Dashboard() {
|
|
102
102
|
const authState = useFunctionalAuthState();
|
|
@@ -128,16 +128,16 @@ function Dashboard() {
|
|
|
128
128
|
|
|
129
129
|
```typescript
|
|
130
130
|
// Web (localStorage)
|
|
131
|
-
import { createWebTokenStorage } from '@cranberry/shared-services';
|
|
131
|
+
import { createWebTokenStorage } from '@cranberry-money/shared-services';
|
|
132
132
|
const webStorage = createWebTokenStorage();
|
|
133
133
|
|
|
134
134
|
// Mobile (secure storage)
|
|
135
|
-
import { createMobileTokenStorage } from '@cranberry/shared-services';
|
|
135
|
+
import { createMobileTokenStorage } from '@cranberry-money/shared-services';
|
|
136
136
|
import * as SecureStore from 'expo-secure-store';
|
|
137
137
|
const mobileStorage = createMobileTokenStorage(SecureStore);
|
|
138
138
|
|
|
139
139
|
// Testing (in-memory)
|
|
140
|
-
import { createMemoryTokenStorage } from '@cranberry/shared-services';
|
|
140
|
+
import { createMemoryTokenStorage } from '@cranberry-money/shared-services';
|
|
141
141
|
const testStorage = createMemoryTokenStorage();
|
|
142
142
|
```
|
|
143
143
|
|
|
@@ -146,7 +146,7 @@ const testStorage = createMemoryTokenStorage();
|
|
|
146
146
|
### Functional API Client
|
|
147
147
|
|
|
148
148
|
```typescript
|
|
149
|
-
import { createFunctionalApiClient } from '@cranberry/shared-services';
|
|
149
|
+
import { createFunctionalApiClient } from '@cranberry-money/shared-services';
|
|
150
150
|
|
|
151
151
|
const apiClient = createFunctionalApiClient({
|
|
152
152
|
baseURL: 'https://api.example.com',
|
|
@@ -165,11 +165,11 @@ const result = await apiClient.post('/api/items', { name: 'Item' });
|
|
|
165
165
|
|
|
166
166
|
```typescript
|
|
167
167
|
// Web-optimized client
|
|
168
|
-
import { createFunctionalWebApiClient } from '@cranberry/shared-services';
|
|
168
|
+
import { createFunctionalWebApiClient } from '@cranberry-money/shared-services';
|
|
169
169
|
const webClient = createFunctionalWebApiClient('https://api.example.com');
|
|
170
170
|
|
|
171
171
|
// Mobile-optimized client
|
|
172
|
-
import { createFunctionalMobileApiClient } from '@cranberry/shared-services';
|
|
172
|
+
import { createFunctionalMobileApiClient } from '@cranberry-money/shared-services';
|
|
173
173
|
const mobileClient = createFunctionalMobileApiClient('https://api.example.com');
|
|
174
174
|
```
|
|
175
175
|
|
|
@@ -201,7 +201,7 @@ const updated = await services.portfolio.updatePortfolio('portfolio-id', {
|
|
|
201
201
|
### Reference Data Services
|
|
202
202
|
|
|
203
203
|
```typescript
|
|
204
|
-
import { createReferenceDataMigration } from '@cranberry/shared-services';
|
|
204
|
+
import { createReferenceDataMigration } from '@cranberry-money/shared-services';
|
|
205
205
|
|
|
206
206
|
const referenceData = createReferenceDataMigration(services);
|
|
207
207
|
|
|
@@ -239,7 +239,7 @@ await flags.updateFlags({ useFunctionalAuth: true });
|
|
|
239
239
|
### Migration Helpers
|
|
240
240
|
|
|
241
241
|
```typescript
|
|
242
|
-
import { createMigrationHelpers } from '@cranberry/shared-services';
|
|
242
|
+
import { createMigrationHelpers } from '@cranberry-money/shared-services';
|
|
243
243
|
|
|
244
244
|
const helpers = createMigrationHelpers(services, {
|
|
245
245
|
apiClient: legacyApiClient,
|
|
@@ -264,7 +264,7 @@ if (!validation.isValid) {
|
|
|
264
264
|
import {
|
|
265
265
|
runQuickPerformanceCheck,
|
|
266
266
|
runComprehensivePerformanceAnalysis
|
|
267
|
-
} from '@cranberry/shared-services';
|
|
267
|
+
} from '@cranberry-money/shared-services';
|
|
268
268
|
|
|
269
269
|
// Quick performance check
|
|
270
270
|
const quickReport = await runQuickPerformanceCheck();
|
|
@@ -278,7 +278,7 @@ console.log(detailedReport);
|
|
|
278
278
|
### Performance Tracking
|
|
279
279
|
|
|
280
280
|
```typescript
|
|
281
|
-
import { monitorMigrationPerformance } from '@cranberry/shared-services';
|
|
281
|
+
import { monitorMigrationPerformance } from '@cranberry-money/shared-services';
|
|
282
282
|
|
|
283
283
|
// Wrap functions for automatic performance tracking
|
|
284
284
|
const monitored = monitorMigrationPerformance(
|
|
@@ -296,7 +296,7 @@ const result = await monitored();
|
|
|
296
296
|
### Pure Function Testing
|
|
297
297
|
|
|
298
298
|
```typescript
|
|
299
|
-
import { signin, createMemoryTokenStorage } from '@cranberry/shared-services';
|
|
299
|
+
import { signin, createMemoryTokenStorage } from '@cranberry-money/shared-services';
|
|
300
300
|
|
|
301
301
|
describe('Authentication', () => {
|
|
302
302
|
it('should signin successfully', async () => {
|
|
@@ -331,7 +331,7 @@ describe('Authentication', () => {
|
|
|
331
331
|
|
|
332
332
|
```typescript
|
|
333
333
|
import { render, screen } from '@testing-library/react';
|
|
334
|
-
import { createMemoryTokenStorage } from '@cranberry/shared-services';
|
|
334
|
+
import { createMemoryTokenStorage } from '@cranberry-money/shared-services';
|
|
335
335
|
|
|
336
336
|
const TestAuthProvider = ({ children }) => {
|
|
337
337
|
const services = createWebServiceFactory('http://test-api.com');
|
|
@@ -356,7 +356,7 @@ test('should display user name when authenticated', () => {
|
|
|
356
356
|
### Web Application Setup
|
|
357
357
|
|
|
358
358
|
```typescript
|
|
359
|
-
import { createWebServiceFactory } from '@cranberry/shared-services';
|
|
359
|
+
import { createWebServiceFactory } from '@cranberry-money/shared-services';
|
|
360
360
|
|
|
361
361
|
const services = createWebServiceFactory(
|
|
362
362
|
process.env.REACT_APP_API_URL,
|
|
@@ -372,7 +372,7 @@ export { services };
|
|
|
372
372
|
### Mobile Application Setup
|
|
373
373
|
|
|
374
374
|
```typescript
|
|
375
|
-
import { createMobileServiceFactory } from '@cranberry/shared-services';
|
|
375
|
+
import { createMobileServiceFactory } from '@cranberry-money/shared-services';
|
|
376
376
|
import * as SecureStore from 'expo-secure-store';
|
|
377
377
|
|
|
378
378
|
const services = createMobileServiceFactory(
|
|
@@ -408,7 +408,7 @@ const services = createWebServiceFactory(getApiUrl());
|
|
|
408
408
|
### Custom Service Factory
|
|
409
409
|
|
|
410
410
|
```typescript
|
|
411
|
-
import { createServiceFactory } from '@cranberry/shared-services';
|
|
411
|
+
import { createServiceFactory } from '@cranberry-money/shared-services';
|
|
412
412
|
|
|
413
413
|
const customServices = createServiceFactory({
|
|
414
414
|
platform: {
|
|
@@ -422,7 +422,7 @@ const customServices = createServiceFactory({
|
|
|
422
422
|
### Error Handling
|
|
423
423
|
|
|
424
424
|
```typescript
|
|
425
|
-
import { isFunctionalApiError } from '@cranberry/shared-services';
|
|
425
|
+
import { isFunctionalApiError } from '@cranberry-money/shared-services';
|
|
426
426
|
|
|
427
427
|
try {
|
|
428
428
|
const data = await services.portfolio.getPortfolios();
|
|
@@ -469,10 +469,10 @@ function useCreatePortfolio() {
|
|
|
469
469
|
|
|
470
470
|
## 📖 Documentation
|
|
471
471
|
|
|
472
|
-
- **[Migration Guide](
|
|
473
|
-
- **[Architecture Overview](
|
|
474
|
-
- **[
|
|
475
|
-
- **[
|
|
472
|
+
- **[Migration Guide](../../docs/MIGRATION-V3.md)**: Complete guide for migrating from v2.x
|
|
473
|
+
- **[Architecture Overview](../../docs/ARCHITECTURE.md)**: Detailed architecture documentation
|
|
474
|
+
- **[Best Practices](../../docs/BEST-PRACTICES.md)**: Code standards and patterns
|
|
475
|
+
- **[Service Development Guide](../../docs/SERVICE-DEVELOPMENT-GUIDE.md)**: Creating new services
|
|
476
476
|
|
|
477
477
|
## 🛠 Development
|
|
478
478
|
|
|
@@ -559,4 +559,4 @@ MIT License - see the [LICENSE](LICENSE) file for details.
|
|
|
559
559
|
|
|
560
560
|
---
|
|
561
561
|
|
|
562
|
-
**Need help migrating from v2.x?** Check out our [comprehensive migration guide](
|
|
562
|
+
**Need help migrating from v2.x?** Check out our [comprehensive migration guide](../../docs/MIGRATION-V3.md) with step-by-step instructions and examples.
|
|
@@ -6,15 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ApiClient } from '../api/functional-client';
|
|
8
8
|
export interface Portfolio {
|
|
9
|
-
readonly id: string;
|
|
10
9
|
readonly uuid: string;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly isActive: boolean;
|
|
16
|
-
readonly createdAt: string;
|
|
17
|
-
readonly updatedAt: string;
|
|
10
|
+
readonly account: string;
|
|
11
|
+
readonly template?: string;
|
|
12
|
+
readonly name?: string;
|
|
13
|
+
readonly marketValue: string;
|
|
18
14
|
}
|
|
19
15
|
export interface PortfolioFilters {
|
|
20
16
|
readonly isActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolios.d.ts","sourceRoot":"","sources":["../../src/services/portfolios.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"portfolios.d.ts","sourceRoot":"","sources":["../../src/services/portfolios.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;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;CAAE,EACvC,MAAM,MAAM,KACX,OAAO,CAAC,YAAY,CAMtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,eAAe;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,EACvC,UAAU,2BAA2B,KACpC,OAAO,CAAC,8BAA8B,CAWxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,eAAe;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,EACvC,IAAI,MAAM,KACT,OAAO,CAAC,oBAAoB,CAM9B,CAAC;AAMF,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,CAAC,EAAE,gBAAgB,GAAG,YAAY,GAAG,QAAQ,CAAC;CACjE;AAED,eAAO,MAAM,yBAAyB,GACpC,eAAe;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,EACvC,eAAe,MAAM,KACpB,OAAO,CAAC,mCAAmC,CAS7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Functional architecture shared services with pure functions, dependency injection, and comprehensive TypeScript support for the MyPortfolio platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,11 +23,7 @@
|
|
|
23
23
|
"typecheck": "tsc --noEmit",
|
|
24
24
|
"dev": "tsc --watch",
|
|
25
25
|
"lint": "eslint src --ext .ts,.tsx",
|
|
26
|
-
"lint:fix": "eslint src --ext .ts,.tsx --fix"
|
|
27
|
-
"validate": "tsx scripts/validate-package.ts",
|
|
28
|
-
"prepare-release": "tsx scripts/prepare-release.ts",
|
|
29
|
-
"release": "npm run prepare-release && npm publish",
|
|
30
|
-
"release:dry-run": "npm run prepare-release -- --dry-run"
|
|
26
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix"
|
|
31
27
|
},
|
|
32
28
|
"dependencies": {
|
|
33
29
|
"axios": "^1.7.0"
|