@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,253 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Document Services - Pure Functional Implementation
|
|
4
|
-
*
|
|
5
|
-
* Document generation, signing, and management operations as pure functions.
|
|
6
|
-
* Handles MDA, SOA, and Agreement documents for compliance.
|
|
7
|
-
* No global state, no side effects - everything is explicit and testable.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.canSignDocument = exports.isDocumentExpired = exports.isDocumentSigned = exports.getDocumentStatusLabel = exports.getDocumentTypeLabel = exports.getUnsignedDocuments = exports.DOCUMENT_STATUS_LABELS = exports.DOCUMENT_TYPE_LABELS = exports.DOCUMENT_TYPES = exports.getExpiredDocuments = exports.getPendingDocuments = exports.getSignedDocuments = exports.getDocument = exports.getDocuments = exports.getAgreementDocument = exports.getAgreementDocuments = exports.getSOADocument = exports.getSOADocuments = exports.getMDADocument = exports.getMDADocuments = exports.signDocument = exports.signAgreementDocument = exports.signSOADocument = exports.signMDADocument = exports.downloadDocument = exports.downloadAgreementDocument = exports.downloadSOADocument = exports.downloadMDADocument = exports.generateDocument = exports.generateAgreementDocument = exports.generateSOADocument = exports.generateMDADocument = void 0;
|
|
11
|
-
// Document operations with explicit dependencies
|
|
12
|
-
// Generate documents
|
|
13
|
-
const generateMDADocument = async ({ apiClient }) => {
|
|
14
|
-
return apiClient.post('/api/documents/mda/', {});
|
|
15
|
-
};
|
|
16
|
-
exports.generateMDADocument = generateMDADocument;
|
|
17
|
-
const generateSOADocument = async ({ apiClient }) => {
|
|
18
|
-
return apiClient.post('/api/documents/soa/', {});
|
|
19
|
-
};
|
|
20
|
-
exports.generateSOADocument = generateSOADocument;
|
|
21
|
-
const generateAgreementDocument = async ({ apiClient }) => {
|
|
22
|
-
return apiClient.post('/api/documents/agreement/', {});
|
|
23
|
-
};
|
|
24
|
-
exports.generateAgreementDocument = generateAgreementDocument;
|
|
25
|
-
const generateDocument = async ({ apiClient }, documentType) => {
|
|
26
|
-
switch (documentType) {
|
|
27
|
-
case 'MDA':
|
|
28
|
-
return (0, exports.generateMDADocument)({ apiClient });
|
|
29
|
-
case 'SOA':
|
|
30
|
-
return (0, exports.generateSOADocument)({ apiClient });
|
|
31
|
-
case 'AGREEMENT':
|
|
32
|
-
return (0, exports.generateAgreementDocument)({ apiClient });
|
|
33
|
-
default:
|
|
34
|
-
throw new Error(`Unsupported document type: ${documentType}`);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.generateDocument = generateDocument;
|
|
38
|
-
// Download documents
|
|
39
|
-
const downloadMDADocument = async ({ apiClient }, documentUuid) => {
|
|
40
|
-
if (!documentUuid?.trim()) {
|
|
41
|
-
throw new Error('Document UUID is required');
|
|
42
|
-
}
|
|
43
|
-
// Note: The API client should handle blob responses based on the endpoint
|
|
44
|
-
return apiClient.get(`/api/documents/mda/${documentUuid}/`, {
|
|
45
|
-
headers: {
|
|
46
|
-
Accept: '*/*',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
exports.downloadMDADocument = downloadMDADocument;
|
|
51
|
-
const downloadSOADocument = async ({ apiClient }, documentUuid) => {
|
|
52
|
-
if (!documentUuid?.trim()) {
|
|
53
|
-
throw new Error('Document UUID is required');
|
|
54
|
-
}
|
|
55
|
-
// Note: The API client should handle blob responses based on the endpoint
|
|
56
|
-
return apiClient.get(`/api/documents/soa/${documentUuid}/`, {
|
|
57
|
-
headers: {
|
|
58
|
-
Accept: '*/*',
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
exports.downloadSOADocument = downloadSOADocument;
|
|
63
|
-
const downloadAgreementDocument = async ({ apiClient }, documentUuid) => {
|
|
64
|
-
if (!documentUuid?.trim()) {
|
|
65
|
-
throw new Error('Document UUID is required');
|
|
66
|
-
}
|
|
67
|
-
// Note: The API client should handle blob responses based on the endpoint
|
|
68
|
-
return apiClient.get(`/api/documents/agreement/${documentUuid}/`, {
|
|
69
|
-
headers: {
|
|
70
|
-
Accept: '*/*',
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
exports.downloadAgreementDocument = downloadAgreementDocument;
|
|
75
|
-
const downloadDocument = async ({ apiClient }, documentType, documentUuid) => {
|
|
76
|
-
switch (documentType) {
|
|
77
|
-
case 'MDA':
|
|
78
|
-
return (0, exports.downloadMDADocument)({ apiClient }, documentUuid);
|
|
79
|
-
case 'SOA':
|
|
80
|
-
return (0, exports.downloadSOADocument)({ apiClient }, documentUuid);
|
|
81
|
-
case 'AGREEMENT':
|
|
82
|
-
return (0, exports.downloadAgreementDocument)({ apiClient }, documentUuid);
|
|
83
|
-
default:
|
|
84
|
-
throw new Error(`Unsupported document type: ${documentType}`);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
exports.downloadDocument = downloadDocument;
|
|
88
|
-
// Sign documents
|
|
89
|
-
const signMDADocument = async ({ apiClient }, documentUuid) => {
|
|
90
|
-
if (!documentUuid?.trim()) {
|
|
91
|
-
throw new Error('Document UUID is required');
|
|
92
|
-
}
|
|
93
|
-
return apiClient.patch(`/api/documents/mda/${documentUuid}/`, {});
|
|
94
|
-
};
|
|
95
|
-
exports.signMDADocument = signMDADocument;
|
|
96
|
-
const signSOADocument = async ({ apiClient }, documentUuid) => {
|
|
97
|
-
if (!documentUuid?.trim()) {
|
|
98
|
-
throw new Error('Document UUID is required');
|
|
99
|
-
}
|
|
100
|
-
return apiClient.patch(`/api/documents/soa/${documentUuid}/`, {});
|
|
101
|
-
};
|
|
102
|
-
exports.signSOADocument = signSOADocument;
|
|
103
|
-
const signAgreementDocument = async ({ apiClient }, documentUuid) => {
|
|
104
|
-
if (!documentUuid?.trim()) {
|
|
105
|
-
throw new Error('Document UUID is required');
|
|
106
|
-
}
|
|
107
|
-
return apiClient.patch(`/api/documents/agreement/${documentUuid}/`, {});
|
|
108
|
-
};
|
|
109
|
-
exports.signAgreementDocument = signAgreementDocument;
|
|
110
|
-
const signDocument = async ({ apiClient }, documentType, documentUuid) => {
|
|
111
|
-
switch (documentType) {
|
|
112
|
-
case 'MDA':
|
|
113
|
-
return (0, exports.signMDADocument)({ apiClient }, documentUuid);
|
|
114
|
-
case 'SOA':
|
|
115
|
-
return (0, exports.signSOADocument)({ apiClient }, documentUuid);
|
|
116
|
-
case 'AGREEMENT':
|
|
117
|
-
return (0, exports.signAgreementDocument)({ apiClient }, documentUuid);
|
|
118
|
-
default:
|
|
119
|
-
throw new Error(`Unsupported document type: ${documentType}`);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
exports.signDocument = signDocument;
|
|
123
|
-
// Get specific document types
|
|
124
|
-
const getMDADocuments = async ({ apiClient }, filters) => {
|
|
125
|
-
return (0, exports.getDocuments)({ apiClient }, { ...filters, documentType: 'MDA' });
|
|
126
|
-
};
|
|
127
|
-
exports.getMDADocuments = getMDADocuments;
|
|
128
|
-
const getMDADocument = async ({ apiClient }, uuid) => {
|
|
129
|
-
if (!uuid?.trim()) {
|
|
130
|
-
throw new Error('Document UUID is required');
|
|
131
|
-
}
|
|
132
|
-
return apiClient.get(`/api/documents/mda/${uuid}/`);
|
|
133
|
-
};
|
|
134
|
-
exports.getMDADocument = getMDADocument;
|
|
135
|
-
const getSOADocuments = async ({ apiClient }, filters) => {
|
|
136
|
-
return (0, exports.getDocuments)({ apiClient }, { ...filters, documentType: 'SOA' });
|
|
137
|
-
};
|
|
138
|
-
exports.getSOADocuments = getSOADocuments;
|
|
139
|
-
const getSOADocument = async ({ apiClient }, uuid) => {
|
|
140
|
-
if (!uuid?.trim()) {
|
|
141
|
-
throw new Error('Document UUID is required');
|
|
142
|
-
}
|
|
143
|
-
return apiClient.get(`/api/documents/soa/${uuid}/`);
|
|
144
|
-
};
|
|
145
|
-
exports.getSOADocument = getSOADocument;
|
|
146
|
-
const getAgreementDocuments = async ({ apiClient }, filters) => {
|
|
147
|
-
return (0, exports.getDocuments)({ apiClient }, { ...filters, documentType: 'AGREEMENT' });
|
|
148
|
-
};
|
|
149
|
-
exports.getAgreementDocuments = getAgreementDocuments;
|
|
150
|
-
const getAgreementDocument = async ({ apiClient }, uuid) => {
|
|
151
|
-
if (!uuid?.trim()) {
|
|
152
|
-
throw new Error('Document UUID is required');
|
|
153
|
-
}
|
|
154
|
-
return apiClient.get(`/api/documents/agreement/${uuid}/`);
|
|
155
|
-
};
|
|
156
|
-
exports.getAgreementDocument = getAgreementDocument;
|
|
157
|
-
// List and search documents
|
|
158
|
-
const getDocuments = async ({ apiClient }, filters) => {
|
|
159
|
-
const params = {};
|
|
160
|
-
if (filters?.documentType)
|
|
161
|
-
params.document_type = filters.documentType;
|
|
162
|
-
if (filters?.status)
|
|
163
|
-
params.status = filters.status;
|
|
164
|
-
if (filters?.fromDate)
|
|
165
|
-
params.from_date = filters.fromDate;
|
|
166
|
-
if (filters?.toDate)
|
|
167
|
-
params.to_date = filters.toDate;
|
|
168
|
-
if (filters?.ordering)
|
|
169
|
-
params.ordering = filters.ordering;
|
|
170
|
-
return apiClient.get('/api/documents/', { params });
|
|
171
|
-
};
|
|
172
|
-
exports.getDocuments = getDocuments;
|
|
173
|
-
const getDocument = async ({ apiClient }, uuid) => {
|
|
174
|
-
if (!uuid?.trim()) {
|
|
175
|
-
throw new Error('Document UUID is required');
|
|
176
|
-
}
|
|
177
|
-
return apiClient.get(`/api/documents/${uuid}/`);
|
|
178
|
-
};
|
|
179
|
-
exports.getDocument = getDocument;
|
|
180
|
-
// Helper functions
|
|
181
|
-
const getSignedDocuments = async ({ apiClient }, documentType) => {
|
|
182
|
-
return (0, exports.getDocuments)({ apiClient }, {
|
|
183
|
-
documentType,
|
|
184
|
-
status: 'SIGNED',
|
|
185
|
-
ordering: '-signed_at',
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
exports.getSignedDocuments = getSignedDocuments;
|
|
189
|
-
const getPendingDocuments = async ({ apiClient }, documentType) => {
|
|
190
|
-
return (0, exports.getDocuments)({ apiClient }, {
|
|
191
|
-
documentType,
|
|
192
|
-
status: 'GENERATED',
|
|
193
|
-
ordering: '-generated_at',
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
exports.getPendingDocuments = getPendingDocuments;
|
|
197
|
-
const getExpiredDocuments = async ({ apiClient }, documentType) => {
|
|
198
|
-
return (0, exports.getDocuments)({ apiClient }, {
|
|
199
|
-
documentType,
|
|
200
|
-
status: 'EXPIRED',
|
|
201
|
-
ordering: '-expires_at',
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
exports.getExpiredDocuments = getExpiredDocuments;
|
|
205
|
-
// Document type constants
|
|
206
|
-
exports.DOCUMENT_TYPES = {
|
|
207
|
-
MDA: 'MDA',
|
|
208
|
-
SOA: 'SOA',
|
|
209
|
-
AGREEMENT: 'AGREEMENT',
|
|
210
|
-
};
|
|
211
|
-
exports.DOCUMENT_TYPE_LABELS = {
|
|
212
|
-
MDA: 'Managed Discretionary Account',
|
|
213
|
-
SOA: 'Statement of Advice',
|
|
214
|
-
AGREEMENT: 'Client Agreement',
|
|
215
|
-
};
|
|
216
|
-
exports.DOCUMENT_STATUS_LABELS = {
|
|
217
|
-
DRAFT: 'Draft',
|
|
218
|
-
GENERATED: 'Generated',
|
|
219
|
-
SIGNED: 'Signed',
|
|
220
|
-
EXPIRED: 'Expired',
|
|
221
|
-
};
|
|
222
|
-
const getUnsignedDocuments = async ({ apiClient }, userProfileUuid) => {
|
|
223
|
-
const params = { status: 'GENERATED' };
|
|
224
|
-
if (userProfileUuid)
|
|
225
|
-
params.user_profile = userProfileUuid;
|
|
226
|
-
return apiClient.get('/api/documents/', { params });
|
|
227
|
-
};
|
|
228
|
-
exports.getUnsignedDocuments = getUnsignedDocuments;
|
|
229
|
-
// Utility functions
|
|
230
|
-
const getDocumentTypeLabel = (documentType) => {
|
|
231
|
-
return exports.DOCUMENT_TYPE_LABELS[documentType] || documentType;
|
|
232
|
-
};
|
|
233
|
-
exports.getDocumentTypeLabel = getDocumentTypeLabel;
|
|
234
|
-
const getDocumentStatusLabel = (status) => {
|
|
235
|
-
return exports.DOCUMENT_STATUS_LABELS[status] || status;
|
|
236
|
-
};
|
|
237
|
-
exports.getDocumentStatusLabel = getDocumentStatusLabel;
|
|
238
|
-
const isDocumentSigned = (document) => {
|
|
239
|
-
return document.status === 'SIGNED' && !!document.signedAt;
|
|
240
|
-
};
|
|
241
|
-
exports.isDocumentSigned = isDocumentSigned;
|
|
242
|
-
const isDocumentExpired = (document) => {
|
|
243
|
-
if (document.status === 'EXPIRED')
|
|
244
|
-
return true;
|
|
245
|
-
if (!document.expiresAt)
|
|
246
|
-
return false;
|
|
247
|
-
return new Date(document.expiresAt) < new Date();
|
|
248
|
-
};
|
|
249
|
-
exports.isDocumentExpired = isDocumentExpired;
|
|
250
|
-
const canSignDocument = (document) => {
|
|
251
|
-
return document.status === 'GENERATED' && !(0, exports.isDocumentExpired)(document);
|
|
252
|
-
};
|
|
253
|
-
exports.canSignDocument = canSignDocument;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates account services with proper dependency injection.
|
|
5
|
-
* Includes user profiles, accounts, and investment preferences.
|
|
6
|
-
*/
|
|
7
|
-
import type { AccountServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create account service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Account service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createAccountServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => AccountServiceFactory;
|
|
16
|
-
//# sourceMappingURL=account-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/account-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,qBA+CF,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Account Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates account services with proper dependency injection.
|
|
6
|
-
* Includes user profiles, accounts, and investment preferences.
|
|
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.createAccountServiceFactory = void 0;
|
|
43
|
-
const AccountServices = __importStar(require("../accounts"));
|
|
44
|
-
/**
|
|
45
|
-
* Create account service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Account service factory
|
|
50
|
-
*/
|
|
51
|
-
const createAccountServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for account services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// User profile operations
|
|
58
|
-
getUserProfile: () => AccountServices.getUserProfile(coreDeps),
|
|
59
|
-
updateUserProfile: (data) => AccountServices.updateUserProfile(coreDeps, data),
|
|
60
|
-
deleteUserAccount: () => AccountServices.deleteUserAccount(coreDeps),
|
|
61
|
-
getUserProfiles: () => AccountServices.getUserProfiles(coreDeps),
|
|
62
|
-
createUserProfile: (data) => AccountServices.createUserProfile(coreDeps, data),
|
|
63
|
-
updateUserProfileById: (uuid, data) => AccountServices.updateUserProfileById(coreDeps, uuid, data),
|
|
64
|
-
updateUserProfileCompletion: (uuid, data) => AccountServices.updateUserProfileCompletion(coreDeps, uuid, data),
|
|
65
|
-
// Account operations
|
|
66
|
-
getAccounts: () => AccountServices.getAccounts(coreDeps),
|
|
67
|
-
getUserAccounts: () => AccountServices.getUserAccounts(coreDeps),
|
|
68
|
-
getAccount: (uuid) => AccountServices.getAccount(coreDeps, uuid),
|
|
69
|
-
createAccount: (data) => AccountServices.createAccount(coreDeps, data),
|
|
70
|
-
updateAccount: (uuid, data) => AccountServices.updateAccount(coreDeps, uuid, data),
|
|
71
|
-
// Investment preference operations
|
|
72
|
-
getInvestmentPreferences: () => AccountServices.getInvestmentPreferences(coreDeps),
|
|
73
|
-
getInvestmentPreference: (uuid) => AccountServices.getInvestmentPreference(coreDeps, uuid),
|
|
74
|
-
createInvestmentPreference: (data) => AccountServices.createInvestmentPreference(coreDeps, data),
|
|
75
|
-
updateInvestmentPreference: (uuid, data) => AccountServices.updateInvestmentPreference(coreDeps, uuid, data),
|
|
76
|
-
deleteInvestmentPreference: (uuid) => AccountServices.deleteInvestmentPreference(coreDeps, uuid),
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
exports.createAccountServiceFactory = createAccountServiceFactory;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authentication Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates authentication services with proper dependency injection.
|
|
5
|
-
* Follows pure functional patterns with explicit configuration.
|
|
6
|
-
*/
|
|
7
|
-
import type { AuthServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create authentication service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Authentication service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createAuthServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => AuthServiceFactory;
|
|
16
|
-
/**
|
|
17
|
-
* Create platform-specific token storage
|
|
18
|
-
*
|
|
19
|
-
* @param config - Service factory configuration
|
|
20
|
-
* @returns Token storage implementation
|
|
21
|
-
*/
|
|
22
|
-
export declare const createTokenStorageForPlatform: (config: ServiceFactoryConfig) => import("../../auth/functional/auth-operations").TokenStorage;
|
|
23
|
-
//# sourceMappingURL=auth-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/auth-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAMjB;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,kBAqCF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GAAI,QAAQ,oBAAoB,iEAczE,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Authentication Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates authentication services with proper dependency injection.
|
|
6
|
-
* Follows pure functional patterns with explicit configuration.
|
|
7
|
-
*/
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.createTokenStorageForPlatform = exports.createAuthServiceFactory = void 0;
|
|
13
|
-
const react_1 = __importDefault(require("react"));
|
|
14
|
-
const types_1 = require("./types");
|
|
15
|
-
const AuthProvider_1 = require("../../auth/react/AuthProvider");
|
|
16
|
-
const token_storage_1 = require("../../auth/functional/token-storage");
|
|
17
|
-
/**
|
|
18
|
-
* Create authentication service factory
|
|
19
|
-
*
|
|
20
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
21
|
-
* @param config - Service factory configuration
|
|
22
|
-
* @returns Authentication service factory
|
|
23
|
-
*/
|
|
24
|
-
const createAuthServiceFactory = (coreDeps, _config) => {
|
|
25
|
-
// Validate dependencies
|
|
26
|
-
if (!coreDeps.apiClient) {
|
|
27
|
-
throw new types_1.DependencyError('API client is required for auth services');
|
|
28
|
-
}
|
|
29
|
-
if (!coreDeps.tokenStorage) {
|
|
30
|
-
throw new types_1.DependencyError('Token storage is required for auth services');
|
|
31
|
-
}
|
|
32
|
-
// Create auth dependencies
|
|
33
|
-
const createAuthDependencies = () => ({
|
|
34
|
-
apiClient: coreDeps.apiClient,
|
|
35
|
-
tokenStorage: coreDeps.tokenStorage,
|
|
36
|
-
});
|
|
37
|
-
// Create auth provider factory
|
|
38
|
-
const createAuthProvider = (providerConfig) => {
|
|
39
|
-
const AuthProviderComponent = ({ children }) => {
|
|
40
|
-
const authDeps = createAuthDependencies();
|
|
41
|
-
return react_1.default.createElement(AuthProvider_1.AuthProvider, {
|
|
42
|
-
dependencies: authDeps,
|
|
43
|
-
autoInitialize: providerConfig?.autoInitialize ?? true,
|
|
44
|
-
children,
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
AuthProviderComponent.displayName = 'AuthProviderComponent';
|
|
48
|
-
return AuthProviderComponent;
|
|
49
|
-
};
|
|
50
|
-
return {
|
|
51
|
-
createAuthDependencies,
|
|
52
|
-
createAuthProvider,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
exports.createAuthServiceFactory = createAuthServiceFactory;
|
|
56
|
-
/**
|
|
57
|
-
* Create platform-specific token storage
|
|
58
|
-
*
|
|
59
|
-
* @param config - Service factory configuration
|
|
60
|
-
* @returns Token storage implementation
|
|
61
|
-
*/
|
|
62
|
-
const createTokenStorageForPlatform = (config) => {
|
|
63
|
-
switch (config.platform.platform) {
|
|
64
|
-
case 'web':
|
|
65
|
-
return (0, token_storage_1.createWebTokenStorage)();
|
|
66
|
-
case 'mobile':
|
|
67
|
-
if (!config.secureStore) {
|
|
68
|
-
throw new types_1.ConfigurationError('Secure store is required for mobile platform');
|
|
69
|
-
}
|
|
70
|
-
return (0, token_storage_1.createMobileTokenStorage)(config.secureStore);
|
|
71
|
-
default:
|
|
72
|
-
throw new types_1.ConfigurationError(`Unsupported platform: ${config.platform.platform}`);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.createTokenStorageForPlatform = createTokenStorageForPlatform;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bank Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates bank services with proper dependency injection.
|
|
5
|
-
* Includes bank accounts, verification, and user bank management.
|
|
6
|
-
*/
|
|
7
|
-
import type { BankServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create bank service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Bank service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createBankServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => BankServiceFactory;
|
|
16
|
-
//# sourceMappingURL=bank-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bank-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/bank-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,kBAiCF,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Bank Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates bank services with proper dependency injection.
|
|
6
|
-
* Includes bank accounts, verification, and user bank management.
|
|
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.createBankServiceFactory = void 0;
|
|
43
|
-
const BankServices = __importStar(require("../banks"));
|
|
44
|
-
/**
|
|
45
|
-
* Create bank service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Bank service factory
|
|
50
|
-
*/
|
|
51
|
-
const createBankServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for bank services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// Bank account operations
|
|
58
|
-
getBankAccounts: (filters) => BankServices.getBankAccounts(coreDeps, filters),
|
|
59
|
-
getBankAccount: (uuid) => BankServices.getBankAccount(coreDeps, uuid),
|
|
60
|
-
createBankAccount: (data) => BankServices.createBankAccount(coreDeps, data),
|
|
61
|
-
updateBankAccount: (uuid, data) => BankServices.updateBankAccount(coreDeps, uuid, data),
|
|
62
|
-
deleteBankAccount: (uuid) => BankServices.deleteBankAccount(coreDeps, uuid),
|
|
63
|
-
// Verification and status operations
|
|
64
|
-
verifyBankAccount: (uuid) => BankServices.verifyBankAccount(coreDeps, uuid),
|
|
65
|
-
setPrimaryBankAccount: (uuid) => BankServices.setPrimaryBankAccount(coreDeps, uuid),
|
|
66
|
-
// User bank account operations
|
|
67
|
-
getUserBankAccounts: (userProfileUuid) => BankServices.getUserBankAccounts(coreDeps, userProfileUuid),
|
|
68
|
-
getVerifiedBankAccounts: (userProfileUuid) => BankServices.getVerifiedBankAccounts(coreDeps, userProfileUuid),
|
|
69
|
-
getPrimaryBankAccount: (userProfileUuid) => BankServices.getPrimaryBankAccount(coreDeps, userProfileUuid),
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
exports.createBankServiceFactory = createBankServiceFactory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cash Account Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates cash account services with proper dependency injection.
|
|
5
|
-
* Includes cash accounts, transactions, balances, and currency operations.
|
|
6
|
-
*/
|
|
7
|
-
import type { CashAccountServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create cash account service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Cash account service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createCashAccountServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => CashAccountServiceFactory;
|
|
16
|
-
//# sourceMappingURL=cash-account-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cash-account-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/cash-account-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAC1C,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,yBAqCF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Cash Account Service Factory
|
|
4
|
-
*
|
|
5
|
-
* Creates cash account services with proper dependency injection.
|
|
6
|
-
* Includes cash accounts, transactions, balances, and currency 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.createCashAccountServiceFactory = void 0;
|
|
43
|
-
const CashAccountServices = __importStar(require("../cash-accounts"));
|
|
44
|
-
/**
|
|
45
|
-
* Create cash account service factory
|
|
46
|
-
*
|
|
47
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
48
|
-
* @param config - Service factory configuration
|
|
49
|
-
* @returns Cash account service factory
|
|
50
|
-
*/
|
|
51
|
-
const createCashAccountServiceFactory = (coreDeps, _config) => {
|
|
52
|
-
// Validate dependencies
|
|
53
|
-
if (!coreDeps.apiClient) {
|
|
54
|
-
throw new Error('API client is required for cash account services');
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
// Cash account operations
|
|
58
|
-
getCashAccounts: (params) => CashAccountServices.getCashAccounts(coreDeps, params),
|
|
59
|
-
getCashAccount: (uuid) => CashAccountServices.getCashAccount(coreDeps, uuid),
|
|
60
|
-
getAccountCashAccounts: (accountUuid) => CashAccountServices.getAccountCashAccounts(coreDeps, accountUuid),
|
|
61
|
-
// Cash transaction operations
|
|
62
|
-
getCashTransactions: (filters) => CashAccountServices.getCashTransactions(coreDeps, filters),
|
|
63
|
-
getCashTransaction: (uuid) => CashAccountServices.getCashTransaction(coreDeps, uuid),
|
|
64
|
-
createCashTransaction: (data) => CashAccountServices.createCashTransaction(coreDeps, data),
|
|
65
|
-
getCashAccountTransactions: (cashAccountUuid, filters) => CashAccountServices.getCashAccountTransactions(coreDeps, cashAccountUuid, filters),
|
|
66
|
-
// Balance and utility operations
|
|
67
|
-
getCashAccountBalance: (cashAccountUuid) => CashAccountServices.getCashAccountBalance(coreDeps, cashAccountUuid),
|
|
68
|
-
getCashAccountsByCurrency: (currency, accountUuid) => CashAccountServices.getCashAccountsByCurrency(coreDeps, currency, accountUuid),
|
|
69
|
-
getPendingTransactions: (cashAccountUuid) => CashAccountServices.getPendingTransactions(coreDeps, cashAccountUuid),
|
|
70
|
-
getRecentTransactions: (cashAccountUuid, days) => CashAccountServices.getRecentTransactions(coreDeps, cashAccountUuid, days),
|
|
71
|
-
getTransactionsByDateRange: (cashAccountUuid, fromDate, toDate) => CashAccountServices.getTransactionsByDateRange(coreDeps, cashAccountUuid, fromDate, toDate),
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
exports.createCashAccountServiceFactory = createCashAccountServiceFactory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document Service Factory
|
|
3
|
-
*
|
|
4
|
-
* Creates document services with proper dependency injection.
|
|
5
|
-
* Includes MDA, SOA, Agreement documents, generation, and signing.
|
|
6
|
-
*/
|
|
7
|
-
import type { DocumentServiceFactory, CoreDependencies, ServiceFactoryConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create document service factory
|
|
10
|
-
*
|
|
11
|
-
* @param coreDeps - Core dependencies (API client, etc.)
|
|
12
|
-
* @param config - Service factory configuration
|
|
13
|
-
* @returns Document service factory
|
|
14
|
-
*/
|
|
15
|
-
export declare const createDocumentServiceFactory: (coreDeps: CoreDependencies, _config: ServiceFactoryConfig) => DocumentServiceFactory;
|
|
16
|
-
//# sourceMappingURL=document-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-factory.d.ts","sourceRoot":"","sources":["../../../src/services/factories/document-factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GACvC,UAAU,gBAAgB,EAC1B,SAAS,oBAAoB,KAC5B,sBAsDF,CAAC"}
|