@cranberry-money/shared-services 4.0.0 → 8.0.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.
- package/package.json +4 -3
- package/dist/api/functional-client.d.ts +0 -66
- package/dist/api/functional-client.d.ts.map +0 -1
- package/dist/api/functional-client.js +0 -165
- package/dist/auth/functional/auth-operations.d.ts +0 -116
- package/dist/auth/functional/auth-operations.d.ts.map +0 -1
- package/dist/auth/functional/auth-operations.js +0 -246
- package/dist/auth/functional/auth-state.d.ts +0 -38
- package/dist/auth/functional/auth-state.d.ts.map +0 -1
- package/dist/auth/functional/auth-state.js +0 -87
- package/dist/auth/functional/token-storage.d.ts +0 -44
- package/dist/auth/functional/token-storage.d.ts.map +0 -1
- package/dist/auth/functional/token-storage.js +0 -178
- package/dist/auth/react/AuthProvider.d.ts +0 -92
- package/dist/auth/react/AuthProvider.d.ts.map +0 -1
- package/dist/auth/react/AuthProvider.js +0 -207
- package/dist/integration/blueberry-integration.d.ts +0 -21
- package/dist/integration/blueberry-integration.d.ts.map +0 -1
- package/dist/integration/blueberry-integration.js +0 -109
- package/dist/integration/index.d.ts +0 -8
- package/dist/integration/index.d.ts.map +0 -1
- package/dist/integration/index.js +0 -18
- package/dist/services/accounts.d.ts +0 -220
- package/dist/services/accounts.d.ts.map +0 -1
- package/dist/services/accounts.js +0 -175
- package/dist/services/banks.d.ts +0 -123
- package/dist/services/banks.d.ts.map +0 -1
- package/dist/services/banks.js +0 -151
- package/dist/services/cash-accounts.d.ts +0 -112
- package/dist/services/cash-accounts.d.ts.map +0 -1
- package/dist/services/cash-accounts.js +0 -222
- package/dist/services/documents.d.ts +0 -143
- package/dist/services/documents.d.ts.map +0 -1
- package/dist/services/documents.js +0 -253
- package/dist/services/factories/account-factory.d.ts +0 -16
- package/dist/services/factories/account-factory.d.ts.map +0 -1
- package/dist/services/factories/account-factory.js +0 -79
- package/dist/services/factories/auth-factory.d.ts +0 -23
- package/dist/services/factories/auth-factory.d.ts.map +0 -1
- package/dist/services/factories/auth-factory.js +0 -75
- package/dist/services/factories/bank-factory.d.ts +0 -16
- package/dist/services/factories/bank-factory.d.ts.map +0 -1
- package/dist/services/factories/bank-factory.js +0 -72
- package/dist/services/factories/cash-account-factory.d.ts +0 -16
- package/dist/services/factories/cash-account-factory.d.ts.map +0 -1
- package/dist/services/factories/cash-account-factory.js +0 -74
- package/dist/services/factories/document-factory.d.ts +0 -16
- package/dist/services/factories/document-factory.d.ts.map +0 -1
- package/dist/services/factories/document-factory.js +0 -85
- package/dist/services/factories/index.d.ts +0 -21
- package/dist/services/factories/index.d.ts.map +0 -1
- package/dist/services/factories/index.js +0 -40
- package/dist/services/factories/instrument-factory.d.ts +0 -16
- package/dist/services/factories/instrument-factory.d.ts.map +0 -1
- package/dist/services/factories/instrument-factory.js +0 -68
- package/dist/services/factories/master-factory.d.ts +0 -74
- package/dist/services/factories/master-factory.d.ts.map +0 -1
- package/dist/services/factories/master-factory.js +0 -183
- package/dist/services/factories/portfolio-factory.d.ts +0 -16
- package/dist/services/factories/portfolio-factory.d.ts.map +0 -1
- package/dist/services/factories/portfolio-factory.js +0 -74
- package/dist/services/factories/portfolio-template-factory.d.ts +0 -16
- package/dist/services/factories/portfolio-template-factory.d.ts.map +0 -1
- package/dist/services/factories/portfolio-template-factory.js +0 -76
- package/dist/services/factories/reference-data-factory.d.ts +0 -16
- package/dist/services/factories/reference-data-factory.d.ts.map +0 -1
- package/dist/services/factories/reference-data-factory.js +0 -86
- package/dist/services/factories/tax-residency-factory.d.ts +0 -16
- package/dist/services/factories/tax-residency-factory.d.ts.map +0 -1
- package/dist/services/factories/tax-residency-factory.js +0 -73
- package/dist/services/factories/trade-factory.d.ts +0 -16
- package/dist/services/factories/trade-factory.d.ts.map +0 -1
- package/dist/services/factories/trade-factory.js +0 -79
- package/dist/services/factories/types.d.ts +0 -250
- package/dist/services/factories/types.d.ts.map +0 -1
- package/dist/services/factories/types.js +0 -32
- package/dist/services/factories/withdrawal-factory.d.ts +0 -16
- package/dist/services/factories/withdrawal-factory.d.ts.map +0 -1
- package/dist/services/factories/withdrawal-factory.js +0 -78
- package/dist/services/instruments.d.ts +0 -138
- package/dist/services/instruments.d.ts.map +0 -1
- package/dist/services/instruments.js +0 -178
- package/dist/services/portfolio-templates.d.ts +0 -142
- package/dist/services/portfolio-templates.d.ts.map +0 -1
- package/dist/services/portfolio-templates.js +0 -201
- package/dist/services/portfolios.d.ts +0 -157
- package/dist/services/portfolios.d.ts.map +0 -1
- package/dist/services/portfolios.js +0 -144
- package/dist/services/reference-data.d.ts +0 -185
- package/dist/services/reference-data.d.ts.map +0 -1
- package/dist/services/reference-data.js +0 -245
- package/dist/services/tax-residencies.d.ts +0 -83
- package/dist/services/tax-residencies.d.ts.map +0 -1
- package/dist/services/tax-residencies.js +0 -179
- package/dist/services/trades.d.ts +0 -190
- package/dist/services/trades.d.ts.map +0 -1
- package/dist/services/trades.js +0 -207
- package/dist/services/withdrawals.d.ts +0 -236
- package/dist/services/withdrawals.d.ts.map +0 -1
- package/dist/services/withdrawals.js +0 -345
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Document Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates document services with proper dependency injection.
|
|
6
|
-
* Includes MDA, SOA, Agreement documents, generation, and signing.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
-
var ownKeys = function(o) {
|
|
26
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
-
var ar = [];
|
|
28
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
-
return ar;
|
|
30
|
-
};
|
|
31
|
-
return ownKeys(o);
|
|
32
|
-
};
|
|
33
|
-
return function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
})();
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.createDocumentServiceFactory = void 0;
|
|
43
|
-
const DocumentServices = __importStar(require("../documents"));
|
|
44
|
-
/**
|
|
45
|
-
* Create document service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Document service factory
|
|
50
|
-
*/
|
|
51
|
-
const createDocumentServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for document services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// General document operations
|
|
58
|
-
getDocuments: (filters) => DocumentServices.getDocuments(coreDeps, filters),
|
|
59
|
-
getDocument: (_documentType, documentUuid) => DocumentServices.getDocument(coreDeps, documentUuid),
|
|
60
|
-
// MDA document operations
|
|
61
|
-
getMDADocuments: (filters) => DocumentServices.getMDADocuments(coreDeps, filters),
|
|
62
|
-
getMDADocument: (uuid) => DocumentServices.getMDADocument(coreDeps, uuid),
|
|
63
|
-
generateMDADocument: () => DocumentServices.generateMDADocument(coreDeps),
|
|
64
|
-
signMDADocument: (uuid) => DocumentServices.signMDADocument(coreDeps, uuid),
|
|
65
|
-
// SOA document operations
|
|
66
|
-
getSOADocuments: (filters) => DocumentServices.getSOADocuments(coreDeps, filters),
|
|
67
|
-
getSOADocument: (uuid) => DocumentServices.getSOADocument(coreDeps, uuid),
|
|
68
|
-
generateSOADocument: (_accountUuid, _year, _month) => DocumentServices.generateSOADocument(coreDeps),
|
|
69
|
-
signSOADocument: (uuid) => DocumentServices.signSOADocument(coreDeps, uuid),
|
|
70
|
-
// Agreement document operations
|
|
71
|
-
getAgreementDocuments: (filters) => DocumentServices.getAgreementDocuments(coreDeps, filters),
|
|
72
|
-
getAgreementDocument: (uuid) => DocumentServices.getAgreementDocument(coreDeps, uuid),
|
|
73
|
-
generateAgreementDocument: () => DocumentServices.generateAgreementDocument(coreDeps),
|
|
74
|
-
signAgreementDocument: (uuid) => DocumentServices.signAgreementDocument(coreDeps, uuid),
|
|
75
|
-
// Utility operations
|
|
76
|
-
signDocument: (documentType, documentUuid) => DocumentServices.signDocument(coreDeps, documentType, documentUuid),
|
|
77
|
-
getSignedDocuments: (_userProfileUuid) => {
|
|
78
|
-
// Note: The service expects documentType, but factory interface expects userProfileUuid
|
|
79
|
-
// This is a design mismatch that should be addressed
|
|
80
|
-
return DocumentServices.getSignedDocuments(coreDeps, undefined);
|
|
81
|
-
},
|
|
82
|
-
getUnsignedDocuments: (userProfileUuid) => DocumentServices.getUnsignedDocuments(coreDeps, userProfileUuid),
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
exports.createDocumentServiceFactory = createDocumentServiceFactory;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Service Factories Export
|
|
3
|
-
*
|
|
4
|
-
* Main export file for all service factories.
|
|
5
|
-
* Provides clean imports for applications using the service factory pattern.
|
|
6
|
-
*/
|
|
7
|
-
export { createServiceFactory, createWebServiceFactory, createMobileServiceFactory, } from './master-factory';
|
|
8
|
-
export { createAuthServiceFactory, createTokenStorageForPlatform, } from './auth-factory';
|
|
9
|
-
export { createPortfolioServiceFactory } from './portfolio-factory';
|
|
10
|
-
export { createAccountServiceFactory } from './account-factory';
|
|
11
|
-
export { createTradeServiceFactory } from './trade-factory';
|
|
12
|
-
export { createWithdrawalServiceFactory } from './withdrawal-factory';
|
|
13
|
-
export { createInstrumentServiceFactory } from './instrument-factory';
|
|
14
|
-
export { createCashAccountServiceFactory } from './cash-account-factory';
|
|
15
|
-
export { createBankServiceFactory } from './bank-factory';
|
|
16
|
-
export { createDocumentServiceFactory } from './document-factory';
|
|
17
|
-
export { createPortfolioTemplateServiceFactory } from './portfolio-template-factory';
|
|
18
|
-
export { createTaxResidencyServiceFactory } from './tax-residency-factory';
|
|
19
|
-
export { createReferenceDataServiceFactory } from './reference-data-factory';
|
|
20
|
-
export type { ServiceFactory, ServiceFactoryConfig, PlatformConfig, CoreDependencies, AuthServiceFactory, PortfolioServiceFactory, AccountServiceFactory, TradeServiceFactory, WithdrawalServiceFactory, InstrumentServiceFactory, CashAccountServiceFactory, BankServiceFactory, DocumentServiceFactory, PortfolioTemplateServiceFactory, TaxResidencyServiceFactory, ReferenceDataServiceFactory, ServiceFactoryError, ConfigurationError, DependencyError, } from './types';
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/factories/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,qCAAqC,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAG7E,YAAY,EAEV,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAGhB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,+BAA+B,EAC/B,0BAA0B,EAC1B,2BAA2B,EAG3B,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,SAAS,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Service Factories Export
|
|
4
|
-
*
|
|
5
|
-
* Main export file for all service factories.
|
|
6
|
-
* Provides clean imports for applications using the service factory pattern.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.createReferenceDataServiceFactory = exports.createTaxResidencyServiceFactory = exports.createPortfolioTemplateServiceFactory = exports.createDocumentServiceFactory = exports.createBankServiceFactory = exports.createCashAccountServiceFactory = exports.createInstrumentServiceFactory = exports.createWithdrawalServiceFactory = exports.createTradeServiceFactory = exports.createAccountServiceFactory = exports.createPortfolioServiceFactory = exports.createTokenStorageForPlatform = exports.createAuthServiceFactory = exports.createMobileServiceFactory = exports.createWebServiceFactory = exports.createServiceFactory = void 0;
|
|
10
|
-
// Main factory exports
|
|
11
|
-
var master_factory_1 = require("./master-factory");
|
|
12
|
-
Object.defineProperty(exports, "createServiceFactory", { enumerable: true, get: function () { return master_factory_1.createServiceFactory; } });
|
|
13
|
-
Object.defineProperty(exports, "createWebServiceFactory", { enumerable: true, get: function () { return master_factory_1.createWebServiceFactory; } });
|
|
14
|
-
Object.defineProperty(exports, "createMobileServiceFactory", { enumerable: true, get: function () { return master_factory_1.createMobileServiceFactory; } });
|
|
15
|
-
// Individual factory exports (for advanced use cases)
|
|
16
|
-
var auth_factory_1 = require("./auth-factory");
|
|
17
|
-
Object.defineProperty(exports, "createAuthServiceFactory", { enumerable: true, get: function () { return auth_factory_1.createAuthServiceFactory; } });
|
|
18
|
-
Object.defineProperty(exports, "createTokenStorageForPlatform", { enumerable: true, get: function () { return auth_factory_1.createTokenStorageForPlatform; } });
|
|
19
|
-
var portfolio_factory_1 = require("./portfolio-factory");
|
|
20
|
-
Object.defineProperty(exports, "createPortfolioServiceFactory", { enumerable: true, get: function () { return portfolio_factory_1.createPortfolioServiceFactory; } });
|
|
21
|
-
var account_factory_1 = require("./account-factory");
|
|
22
|
-
Object.defineProperty(exports, "createAccountServiceFactory", { enumerable: true, get: function () { return account_factory_1.createAccountServiceFactory; } });
|
|
23
|
-
var trade_factory_1 = require("./trade-factory");
|
|
24
|
-
Object.defineProperty(exports, "createTradeServiceFactory", { enumerable: true, get: function () { return trade_factory_1.createTradeServiceFactory; } });
|
|
25
|
-
var withdrawal_factory_1 = require("./withdrawal-factory");
|
|
26
|
-
Object.defineProperty(exports, "createWithdrawalServiceFactory", { enumerable: true, get: function () { return withdrawal_factory_1.createWithdrawalServiceFactory; } });
|
|
27
|
-
var instrument_factory_1 = require("./instrument-factory");
|
|
28
|
-
Object.defineProperty(exports, "createInstrumentServiceFactory", { enumerable: true, get: function () { return instrument_factory_1.createInstrumentServiceFactory; } });
|
|
29
|
-
var cash_account_factory_1 = require("./cash-account-factory");
|
|
30
|
-
Object.defineProperty(exports, "createCashAccountServiceFactory", { enumerable: true, get: function () { return cash_account_factory_1.createCashAccountServiceFactory; } });
|
|
31
|
-
var bank_factory_1 = require("./bank-factory");
|
|
32
|
-
Object.defineProperty(exports, "createBankServiceFactory", { enumerable: true, get: function () { return bank_factory_1.createBankServiceFactory; } });
|
|
33
|
-
var document_factory_1 = require("./document-factory");
|
|
34
|
-
Object.defineProperty(exports, "createDocumentServiceFactory", { enumerable: true, get: function () { return document_factory_1.createDocumentServiceFactory; } });
|
|
35
|
-
var portfolio_template_factory_1 = require("./portfolio-template-factory");
|
|
36
|
-
Object.defineProperty(exports, "createPortfolioTemplateServiceFactory", { enumerable: true, get: function () { return portfolio_template_factory_1.createPortfolioTemplateServiceFactory; } });
|
|
37
|
-
var tax_residency_factory_1 = require("./tax-residency-factory");
|
|
38
|
-
Object.defineProperty(exports, "createTaxResidencyServiceFactory", { enumerable: true, get: function () { return tax_residency_factory_1.createTaxResidencyServiceFactory; } });
|
|
39
|
-
var reference_data_factory_1 = require("./reference-data-factory");
|
|
40
|
-
Object.defineProperty(exports, "createReferenceDataServiceFactory", { enumerable: true, get: function () { return reference_data_factory_1.createReferenceDataServiceFactory; } });
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Instrument Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates instrument services with proper dependency injection.
|
|
5
|
-
* Includes instruments, snapshots, ETFs, funds, and batch operations.
|
|
6
|
-
*/
|
|
7
|
-
import type { InstrumentServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create instrument service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Instrument service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createInstrumentServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => InstrumentServiceFactory;
|
|
16
|
-
//# sourceMappingURL=instrument-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instrument-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/instrument-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,wBAyBF,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Instrument Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates instrument services with proper dependency injection.
|
|
6
|
-
* Includes instruments, snapshots, ETFs, funds, and batch operations.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
-
var ownKeys = function(o) {
|
|
26
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
-
var ar = [];
|
|
28
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
-
return ar;
|
|
30
|
-
};
|
|
31
|
-
return ownKeys(o);
|
|
32
|
-
};
|
|
33
|
-
return function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
})();
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.createInstrumentServiceFactory = void 0;
|
|
43
|
-
const InstrumentServices = __importStar(require("../instruments"));
|
|
44
|
-
/**
|
|
45
|
-
* Create instrument service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Instrument service factory
|
|
50
|
-
*/
|
|
51
|
-
const createInstrumentServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for instrument services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// Instrument operations
|
|
58
|
-
getInstruments: (params) => InstrumentServices.getInstruments(coreDeps, params),
|
|
59
|
-
getInstrument: (uuid) => InstrumentServices.getInstrument(coreDeps, uuid),
|
|
60
|
-
getInstrumentSnapshots: (instrumentUuid, filters) => InstrumentServices.getInstrumentSnapshots(coreDeps, instrumentUuid, filters),
|
|
61
|
-
searchInstruments: (searchTerm, additionalParams) => InstrumentServices.searchInstruments(coreDeps, searchTerm, additionalParams),
|
|
62
|
-
getInstrumentsByExchange: (exchangeUuid, additionalParams) => InstrumentServices.getInstrumentsByExchange(coreDeps, exchangeUuid, additionalParams),
|
|
63
|
-
getETFs: (additionalParams) => InstrumentServices.getETFs(coreDeps, additionalParams),
|
|
64
|
-
getFunds: (additionalParams) => InstrumentServices.getFunds(coreDeps, additionalParams),
|
|
65
|
-
getBatchInstrumentSnapshots: (requests) => InstrumentServices.getBatchInstrumentSnapshots(coreDeps, requests),
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
exports.createInstrumentServiceFactory = createInstrumentServiceFactory;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Master Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Composes all domain service factories with dependency injection.
|
|
5
|
-
* This is the main entry point for creating all application services.
|
|
6
|
-
*/
|
|
7
|
-
import type { ServiceFactory, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create master service factory
|
|
10
|
-
*
|
|
11
|
-
* This is the main factory that composes all domain services with proper
|
|
12
|
-
* dependency injection. All services are created with explicit dependencies.
|
|
13
|
-
*
|
|
14
|
-
* @param config - Service factory configuration
|
|
15
|
-
* @returns Master service factory with all domain services
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* // Web application
|
|
20
|
-
* const services = createServiceFactory({
|
|
21
|
-
* platform: {
|
|
22
|
-
* platform: 'web',
|
|
23
|
-
* apiBaseUrl: 'https://api.example.com',
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
*
|
|
27
|
-
* // Use authentication
|
|
28
|
-
* const AuthProvider = services.auth.createAuthProvider();
|
|
29
|
-
*
|
|
30
|
-
* // Use portfolio services
|
|
31
|
-
* const portfolios = await services.portfolio.getPortfolios();
|
|
32
|
-
*
|
|
33
|
-
* // Use account services
|
|
34
|
-
* const userProfile = await services.account.getUserProfile();
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* // Mobile application
|
|
40
|
-
* import * as SecureStore from 'expo-secure-store';
|
|
41
|
-
*
|
|
42
|
-
* const services = createServiceFactory({
|
|
43
|
-
* platform: {
|
|
44
|
-
* platform: 'mobile',
|
|
45
|
-
* apiBaseUrl: 'https://api.example.com',
|
|
46
|
-
* },
|
|
47
|
-
* secureStore: SecureStore,
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare const createServiceFactory: (config: ServiceFactoryConfig) => ServiceFactory;
|
|
52
|
-
/**
|
|
53
|
-
* Convenience factory for web applications
|
|
54
|
-
*
|
|
55
|
-
* @param apiBaseUrl - Base URL for API calls
|
|
56
|
-
* @param options - Additional configuration options
|
|
57
|
-
* @returns Service factory configured for web
|
|
58
|
-
*/
|
|
59
|
-
export declare const createWebServiceFactory: (apiBaseUrl: string, options?: {
|
|
60
|
-
apiTimeout?: number;
|
|
61
|
-
enableCredentials?: boolean;
|
|
62
|
-
}) => ServiceFactory;
|
|
63
|
-
/**
|
|
64
|
-
* Convenience factory for mobile applications
|
|
65
|
-
*
|
|
66
|
-
* @param apiBaseUrl - Base URL for API calls
|
|
67
|
-
* @param secureStore - Secure storage implementation (e.g., Expo SecureStore)
|
|
68
|
-
* @param options - Additional configuration options
|
|
69
|
-
* @returns Service factory configured for mobile
|
|
70
|
-
*/
|
|
71
|
-
export declare const createMobileServiceFactory: (apiBaseUrl: string, secureStore: any, options?: {
|
|
72
|
-
apiTimeout?: number;
|
|
73
|
-
}) => ServiceFactory;
|
|
74
|
-
//# sourceMappingURL=master-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"master-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/master-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EAErB,MAAM,SAAS,CAAC;AAuEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,oBAAoB,KAAG,cAoCnE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,MAAM,EAClB,UAAU;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,KACA,cASF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GACrC,YAAY,MAAM,EAClB,aAAa,GAAG,EAChB,UAAU;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,KACA,cASF,CAAC"}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Master Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Composes all domain service factories with dependency injection.
|
|
6
|
-
* This is the main entry point for creating all application services.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.createMobileServiceFactory = exports.createWebServiceFactory = exports.createServiceFactory = void 0;
|
|
10
|
-
const types_1 = require("./types");
|
|
11
|
-
const functional_client_1 = require("../../api/functional-client");
|
|
12
|
-
const auth_factory_1 = require("./auth-factory");
|
|
13
|
-
const portfolio_factory_1 = require("./portfolio-factory");
|
|
14
|
-
const account_factory_1 = require("./account-factory");
|
|
15
|
-
const trade_factory_1 = require("./trade-factory");
|
|
16
|
-
const withdrawal_factory_1 = require("./withdrawal-factory");
|
|
17
|
-
const instrument_factory_1 = require("./instrument-factory");
|
|
18
|
-
const cash_account_factory_1 = require("./cash-account-factory");
|
|
19
|
-
const bank_factory_1 = require("./bank-factory");
|
|
20
|
-
const document_factory_1 = require("./document-factory");
|
|
21
|
-
const portfolio_template_factory_1 = require("./portfolio-template-factory");
|
|
22
|
-
const tax_residency_factory_1 = require("./tax-residency-factory");
|
|
23
|
-
const reference_data_factory_1 = require("./reference-data-factory");
|
|
24
|
-
/**
|
|
25
|
-
* Validate service factory configuration
|
|
26
|
-
*/
|
|
27
|
-
const validateConfig = (config) => {
|
|
28
|
-
if (!config.platform) {
|
|
29
|
-
throw new types_1.ConfigurationError('Platform configuration is required');
|
|
30
|
-
}
|
|
31
|
-
if (!config.platform.apiBaseUrl) {
|
|
32
|
-
throw new types_1.ConfigurationError('API base URL is required');
|
|
33
|
-
}
|
|
34
|
-
if (!['web', 'mobile'].includes(config.platform.platform)) {
|
|
35
|
-
throw new types_1.ConfigurationError(`Invalid platform: ${config.platform.platform}`);
|
|
36
|
-
}
|
|
37
|
-
if (config.platform.platform === 'mobile' && !config.secureStore) {
|
|
38
|
-
throw new types_1.ConfigurationError('Secure store is required for mobile platform');
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Create core dependencies based on platform configuration
|
|
43
|
-
*/
|
|
44
|
-
const createCoreDependencies = (config) => {
|
|
45
|
-
// Create platform-specific API client
|
|
46
|
-
let apiClient;
|
|
47
|
-
switch (config.platform.platform) {
|
|
48
|
-
case 'web':
|
|
49
|
-
apiClient = (0, functional_client_1.createWebApiClient)(config.platform.apiBaseUrl);
|
|
50
|
-
break;
|
|
51
|
-
case 'mobile':
|
|
52
|
-
apiClient = (0, functional_client_1.createMobileApiClient)(config.platform.apiBaseUrl);
|
|
53
|
-
break;
|
|
54
|
-
default:
|
|
55
|
-
// Fallback to generic client
|
|
56
|
-
apiClient = (0, functional_client_1.createApiClient)({
|
|
57
|
-
baseURL: config.platform.apiBaseUrl,
|
|
58
|
-
timeout: config.platform.apiTimeout,
|
|
59
|
-
withCredentials: config.platform.enableCredentials,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
// Create platform-specific token storage
|
|
63
|
-
const tokenStorage = (0, auth_factory_1.createTokenStorageForPlatform)(config);
|
|
64
|
-
return {
|
|
65
|
-
apiClient,
|
|
66
|
-
tokenStorage,
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Create master service factory
|
|
71
|
-
*
|
|
72
|
-
* This is the main factory that composes all domain services with proper
|
|
73
|
-
* dependency injection. All services are created with explicit dependencies.
|
|
74
|
-
*
|
|
75
|
-
* @param config - Service factory configuration
|
|
76
|
-
* @returns Master service factory with all domain services
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* // Web application
|
|
81
|
-
* const services = createServiceFactory({
|
|
82
|
-
* platform: {
|
|
83
|
-
* platform: 'web',
|
|
84
|
-
* apiBaseUrl: 'https://api.example.com',
|
|
85
|
-
* },
|
|
86
|
-
* });
|
|
87
|
-
*
|
|
88
|
-
* // Use authentication
|
|
89
|
-
* const AuthProvider = services.auth.createAuthProvider();
|
|
90
|
-
*
|
|
91
|
-
* // Use portfolio services
|
|
92
|
-
* const portfolios = await services.portfolio.getPortfolios();
|
|
93
|
-
*
|
|
94
|
-
* // Use account services
|
|
95
|
-
* const userProfile = await services.account.getUserProfile();
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* // Mobile application
|
|
101
|
-
* import * as SecureStore from 'expo-secure-store';
|
|
102
|
-
*
|
|
103
|
-
* const services = createServiceFactory({
|
|
104
|
-
* platform: {
|
|
105
|
-
* platform: 'mobile',
|
|
106
|
-
* apiBaseUrl: 'https://api.example.com',
|
|
107
|
-
* },
|
|
108
|
-
* secureStore: SecureStore,
|
|
109
|
-
* });
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
const createServiceFactory = (config) => {
|
|
113
|
-
// Validate configuration
|
|
114
|
-
validateConfig(config);
|
|
115
|
-
// Create core dependencies
|
|
116
|
-
const coreDeps = createCoreDependencies(config);
|
|
117
|
-
// Create all domain service factories
|
|
118
|
-
const auth = (0, auth_factory_1.createAuthServiceFactory)(coreDeps, config);
|
|
119
|
-
const portfolio = (0, portfolio_factory_1.createPortfolioServiceFactory)(coreDeps, config);
|
|
120
|
-
const account = (0, account_factory_1.createAccountServiceFactory)(coreDeps, config);
|
|
121
|
-
const trade = (0, trade_factory_1.createTradeServiceFactory)(coreDeps, config);
|
|
122
|
-
const withdrawal = (0, withdrawal_factory_1.createWithdrawalServiceFactory)(coreDeps, config);
|
|
123
|
-
const instrument = (0, instrument_factory_1.createInstrumentServiceFactory)(coreDeps, config);
|
|
124
|
-
const cashAccount = (0, cash_account_factory_1.createCashAccountServiceFactory)(coreDeps, config);
|
|
125
|
-
const bank = (0, bank_factory_1.createBankServiceFactory)(coreDeps, config);
|
|
126
|
-
const document = (0, document_factory_1.createDocumentServiceFactory)(coreDeps, config);
|
|
127
|
-
const portfolioTemplate = (0, portfolio_template_factory_1.createPortfolioTemplateServiceFactory)(coreDeps, config);
|
|
128
|
-
const taxResidency = (0, tax_residency_factory_1.createTaxResidencyServiceFactory)(coreDeps, config);
|
|
129
|
-
const referenceData = (0, reference_data_factory_1.createReferenceDataServiceFactory)(coreDeps, config);
|
|
130
|
-
return {
|
|
131
|
-
auth,
|
|
132
|
-
portfolio,
|
|
133
|
-
account,
|
|
134
|
-
trade,
|
|
135
|
-
withdrawal,
|
|
136
|
-
instrument,
|
|
137
|
-
cashAccount,
|
|
138
|
-
bank,
|
|
139
|
-
document,
|
|
140
|
-
portfolioTemplate,
|
|
141
|
-
taxResidency,
|
|
142
|
-
referenceData,
|
|
143
|
-
config,
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
exports.createServiceFactory = createServiceFactory;
|
|
147
|
-
/**
|
|
148
|
-
* Convenience factory for web applications
|
|
149
|
-
*
|
|
150
|
-
* @param apiBaseUrl - Base URL for API calls
|
|
151
|
-
* @param options - Additional configuration options
|
|
152
|
-
* @returns Service factory configured for web
|
|
153
|
-
*/
|
|
154
|
-
const createWebServiceFactory = (apiBaseUrl, options) => {
|
|
155
|
-
return (0, exports.createServiceFactory)({
|
|
156
|
-
platform: {
|
|
157
|
-
platform: 'web',
|
|
158
|
-
apiBaseUrl,
|
|
159
|
-
apiTimeout: options?.apiTimeout,
|
|
160
|
-
enableCredentials: options?.enableCredentials,
|
|
161
|
-
},
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
exports.createWebServiceFactory = createWebServiceFactory;
|
|
165
|
-
/**
|
|
166
|
-
* Convenience factory for mobile applications
|
|
167
|
-
*
|
|
168
|
-
* @param apiBaseUrl - Base URL for API calls
|
|
169
|
-
* @param secureStore - Secure storage implementation (e.g., Expo SecureStore)
|
|
170
|
-
* @param options - Additional configuration options
|
|
171
|
-
* @returns Service factory configured for mobile
|
|
172
|
-
*/
|
|
173
|
-
const createMobileServiceFactory = (apiBaseUrl, secureStore, options) => {
|
|
174
|
-
return (0, exports.createServiceFactory)({
|
|
175
|
-
platform: {
|
|
176
|
-
platform: 'mobile',
|
|
177
|
-
apiBaseUrl,
|
|
178
|
-
apiTimeout: options?.apiTimeout,
|
|
179
|
-
},
|
|
180
|
-
secureStore,
|
|
181
|
-
});
|
|
182
|
-
};
|
|
183
|
-
exports.createMobileServiceFactory = createMobileServiceFactory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Portfolio Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates portfolio services with proper dependency injection.
|
|
5
|
-
* Only includes portfolio-specific operations.
|
|
6
|
-
*/
|
|
7
|
-
import type { PortfolioServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create portfolio service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Portfolio service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createPortfolioServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => PortfolioServiceFactory;
|
|
16
|
-
//# sourceMappingURL=portfolio-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/portfolio-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,uBAqCF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Portfolio Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates portfolio services with proper dependency injection.
|
|
6
|
-
* Only includes portfolio-specific operations.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
-
var ownKeys = function(o) {
|
|
26
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
-
var ar = [];
|
|
28
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
-
return ar;
|
|
30
|
-
};
|
|
31
|
-
return ownKeys(o);
|
|
32
|
-
};
|
|
33
|
-
return function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
})();
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.createPortfolioServiceFactory = void 0;
|
|
43
|
-
const PortfolioServices = __importStar(require("../portfolios"));
|
|
44
|
-
/**
|
|
45
|
-
* Create portfolio service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Portfolio service factory
|
|
50
|
-
*/
|
|
51
|
-
const createPortfolioServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for portfolio services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// Portfolio operations
|
|
58
|
-
getPortfolios: (filters) => PortfolioServices.getPortfolios(coreDeps, filters),
|
|
59
|
-
getPortfolio: (uuid) => PortfolioServices.getPortfolio(coreDeps, uuid),
|
|
60
|
-
createPortfolio: (data) => PortfolioServices.createPortfolio(coreDeps, data),
|
|
61
|
-
updatePortfolio: (uuid, data) => PortfolioServices.updatePortfolio(coreDeps, uuid, data),
|
|
62
|
-
deletePortfolio: (uuid) => PortfolioServices.deletePortfolio(coreDeps, uuid),
|
|
63
|
-
// Portfolio advanced operations
|
|
64
|
-
getPortfolioAllocations: (portfolioUuid) => PortfolioServices.getPortfolioAllocations(coreDeps, portfolioUuid),
|
|
65
|
-
createAssetAllocation: (data) => PortfolioServices.createAssetAllocation(coreDeps, data),
|
|
66
|
-
updateAssetAllocation: (uuid, data) => PortfolioServices.updateAssetAllocation(coreDeps, uuid, data),
|
|
67
|
-
deleteAssetAllocation: (uuid) => PortfolioServices.deleteAssetAllocation(coreDeps, uuid),
|
|
68
|
-
getPortfolioHoldings: (portfolioUuid, orderBy) => PortfolioServices.getPortfolioHoldings(coreDeps, portfolioUuid, orderBy),
|
|
69
|
-
getAssetHoldings: (filters) => PortfolioServices.getAssetHoldings(coreDeps, filters),
|
|
70
|
-
getAssetHolding: (uuid) => PortfolioServices.getAssetHolding(coreDeps, uuid),
|
|
71
|
-
generateRebalancingTrades: (portfolioUuid) => PortfolioServices.generateRebalancingTrades(coreDeps, portfolioUuid),
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
exports.createPortfolioServiceFactory = createPortfolioServiceFactory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Portfolio Template Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates portfolio template services with proper dependency injection.
|
|
5
|
-
* Includes templates, allocations, risk levels, and validation.
|
|
6
|
-
*/
|
|
7
|
-
import type { PortfolioTemplateServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create portfolio template service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Portfolio template service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createPortfolioTemplateServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => PortfolioTemplateServiceFactory;
|
|
16
|
-
//# sourceMappingURL=portfolio-template-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-template-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/portfolio-template-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,+BAA+B,EAC/B,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,GAChD,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,+BAyCF,CAAC"}
|