joopjs 2.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/CHANGELOG.md +678 -0
- package/README.md +583 -0
- package/dist/a11y.service-C-DQQfgO.d.mts +143 -0
- package/dist/a11y.service-CauEJrJe.d.ts +143 -0
- package/dist/adapters-B6slG6hQ.d.mts +84 -0
- package/dist/adapters-B6slG6hQ.d.ts +84 -0
- package/dist/aes.service-CkoupAww.d.mts +95 -0
- package/dist/aes.service-CkoupAww.d.ts +95 -0
- package/dist/ai/index.d.mts +99 -0
- package/dist/ai/index.d.ts +99 -0
- package/dist/ai/index.js +307 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/index.mjs +304 -0
- package/dist/ai/index.mjs.map +1 -0
- package/dist/analytics/index.d.mts +42 -0
- package/dist/analytics/index.d.ts +42 -0
- package/dist/analytics/index.js +139 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/index.mjs +136 -0
- package/dist/analytics/index.mjs.map +1 -0
- package/dist/angular/index.d.mts +148 -0
- package/dist/angular/index.d.ts +148 -0
- package/dist/angular/index.js +122 -0
- package/dist/angular/index.js.map +1 -0
- package/dist/angular/index.mjs +101 -0
- package/dist/angular/index.mjs.map +1 -0
- package/dist/api/index.d.mts +128 -0
- package/dist/api/index.d.ts +128 -0
- package/dist/api/index.js +1358 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/index.mjs +1332 -0
- package/dist/api/index.mjs.map +1 -0
- package/dist/auth/index.d.mts +105 -0
- package/dist/auth/index.d.ts +105 -0
- package/dist/auth/index.js +989 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/index.mjs +979 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/auth.service-DNVB-L4U.d.mts +16 -0
- package/dist/auth.service-PjUUSUIt.d.ts +16 -0
- package/dist/banking/index.d.mts +1530 -0
- package/dist/banking/index.d.ts +1530 -0
- package/dist/banking/index.js +4739 -0
- package/dist/banking/index.js.map +1 -0
- package/dist/banking/index.mjs +4661 -0
- package/dist/banking/index.mjs.map +1 -0
- package/dist/cache/index.d.mts +40 -0
- package/dist/cache/index.d.ts +40 -0
- package/dist/cache/index.js +174 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/index.mjs +172 -0
- package/dist/cache/index.mjs.map +1 -0
- package/dist/client-profile.service-BuPeXVp5.d.mts +28 -0
- package/dist/client-profile.service-D5bRRYQp.d.ts +28 -0
- package/dist/config.models-Cqg04fAQ.d.mts +84 -0
- package/dist/config.models-Cqg04fAQ.d.ts +84 -0
- package/dist/config.service-CrCvI-JS.d.ts +31 -0
- package/dist/config.service-Cz4QQLlf.d.mts +31 -0
- package/dist/core/index.d.mts +4 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +631 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +619 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/crypto-utils-DriNhLdx.d.mts +30 -0
- package/dist/crypto-utils-DriNhLdx.d.ts +30 -0
- package/dist/data-storage.service-DT6xaTxE.d.ts +51 -0
- package/dist/data-storage.service-LvhGRCmw.d.mts +51 -0
- package/dist/deeplink/index.d.mts +39 -0
- package/dist/deeplink/index.d.ts +39 -0
- package/dist/deeplink/index.js +268 -0
- package/dist/deeplink/index.js.map +1 -0
- package/dist/deeplink/index.mjs +265 -0
- package/dist/deeplink/index.mjs.map +1 -0
- package/dist/deeplink.service-Ctd5u243.d.mts +35 -0
- package/dist/deeplink.service-uUuTnY9_.d.ts +35 -0
- package/dist/dev/index.d.mts +20 -0
- package/dist/dev/index.d.ts +20 -0
- package/dist/dev/index.js +51 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/index.mjs +49 -0
- package/dist/dev/index.mjs.map +1 -0
- package/dist/device/index.d.mts +108 -0
- package/dist/device/index.d.ts +108 -0
- package/dist/device/index.js +960 -0
- package/dist/device/index.js.map +1 -0
- package/dist/device/index.mjs +951 -0
- package/dist/device/index.mjs.map +1 -0
- package/dist/differential-privacy-BcAv1G80.d.mts +210 -0
- package/dist/differential-privacy-C8mAUjZr.d.ts +210 -0
- package/dist/encryption/index.d.mts +75 -0
- package/dist/encryption/index.d.ts +75 -0
- package/dist/encryption/index.js +605 -0
- package/dist/encryption/index.js.map +1 -0
- package/dist/encryption/index.mjs +598 -0
- package/dist/encryption/index.mjs.map +1 -0
- package/dist/form-validator-3tkmzr_o.d.mts +72 -0
- package/dist/form-validator-3tkmzr_o.d.ts +72 -0
- package/dist/forms/index.d.mts +59 -0
- package/dist/forms/index.d.ts +59 -0
- package/dist/forms/index.js +446 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/index.mjs +442 -0
- package/dist/forms/index.mjs.map +1 -0
- package/dist/i18n/index.d.mts +37 -0
- package/dist/i18n/index.d.ts +37 -0
- package/dist/i18n/index.js +147 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/index.mjs +145 -0
- package/dist/i18n/index.mjs.map +1 -0
- package/dist/idempotency.service-_6LqhivP.d.mts +372 -0
- package/dist/idempotency.service-eOKoISRD.d.ts +372 -0
- package/dist/index-B_ksKpS1.d.mts +202 -0
- package/dist/index-CqDKWTUP.d.mts +28 -0
- package/dist/index-CqDKWTUP.d.ts +28 -0
- package/dist/index-DFqEoX_l.d.ts +202 -0
- package/dist/index-Dz0gOur2.d.mts +36 -0
- package/dist/index-Dz0gOur2.d.ts +36 -0
- package/dist/index.d.mts +1336 -0
- package/dist/index.d.ts +1336 -0
- package/dist/index.js +19464 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +19155 -0
- package/dist/index.mjs.map +1 -0
- package/dist/india/index.d.mts +75 -0
- package/dist/india/index.d.ts +75 -0
- package/dist/india/index.js +325 -0
- package/dist/india/index.js.map +1 -0
- package/dist/india/index.mjs +303 -0
- package/dist/india/index.mjs.map +1 -0
- package/dist/joop-Bx7Iwj5p.d.mts +155 -0
- package/dist/joop-CA3DMeOO.d.ts +155 -0
- package/dist/native-bridge/index.d.mts +27 -0
- package/dist/native-bridge/index.d.ts +27 -0
- package/dist/native-bridge/index.js +98 -0
- package/dist/native-bridge/index.js.map +1 -0
- package/dist/native-bridge/index.mjs +96 -0
- package/dist/native-bridge/index.mjs.map +1 -0
- package/dist/network/index.d.mts +85 -0
- package/dist/network/index.d.ts +85 -0
- package/dist/network/index.js +454 -0
- package/dist/network/index.js.map +1 -0
- package/dist/network/index.mjs +451 -0
- package/dist/network/index.mjs.map +1 -0
- package/dist/network-monitor-BIwPSXme.d.mts +179 -0
- package/dist/network-monitor-Bqp2hvZr.d.ts +179 -0
- package/dist/notification.service-Dm4fvfZf.d.mts +25 -0
- package/dist/notification.service-tEMKatWJ.d.ts +25 -0
- package/dist/observability/index.d.mts +179 -0
- package/dist/observability/index.d.ts +179 -0
- package/dist/observability/index.js +559 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/index.mjs +552 -0
- package/dist/observability/index.mjs.map +1 -0
- package/dist/oidc-client-DIJcClmB.d.mts +190 -0
- package/dist/oidc-client-DxhyE59t.d.ts +190 -0
- package/dist/platform/index.d.mts +73 -0
- package/dist/platform/index.d.ts +73 -0
- package/dist/platform/index.js +127 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/index.mjs +125 -0
- package/dist/platform/index.mjs.map +1 -0
- package/dist/pwa/index.d.mts +31 -0
- package/dist/pwa/index.d.ts +31 -0
- package/dist/pwa/index.js +247 -0
- package/dist/pwa/index.js.map +1 -0
- package/dist/pwa/index.mjs +244 -0
- package/dist/pwa/index.mjs.map +1 -0
- package/dist/react/index.d.mts +133 -0
- package/dist/react/index.d.ts +133 -0
- package/dist/react/index.js +632 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/index.mjs +630 -0
- package/dist/react/index.mjs.map +1 -0
- package/dist/router/index.d.mts +39 -0
- package/dist/router/index.d.ts +39 -0
- package/dist/router/index.js +168 -0
- package/dist/router/index.js.map +1 -0
- package/dist/router/index.mjs +166 -0
- package/dist/router/index.mjs.map +1 -0
- package/dist/security/index.d.mts +206 -0
- package/dist/security/index.d.ts +206 -0
- package/dist/security/index.js +1297 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/index.mjs +1285 -0
- package/dist/security/index.mjs.map +1 -0
- package/dist/session/index.d.mts +115 -0
- package/dist/session/index.d.ts +115 -0
- package/dist/session/index.js +297 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/index.mjs +292 -0
- package/dist/session/index.mjs.map +1 -0
- package/dist/state/index.d.mts +43 -0
- package/dist/state/index.d.ts +43 -0
- package/dist/state/index.js +156 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/index.mjs +152 -0
- package/dist/state/index.mjs.map +1 -0
- package/dist/statement-parser-BHQtXwCM.d.ts +260 -0
- package/dist/statement-parser-C2qNmb49.d.mts +260 -0
- package/dist/storage/index.d.mts +40 -0
- package/dist/storage/index.d.ts +40 -0
- package/dist/storage/index.js +256 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/index.mjs +252 -0
- package/dist/storage/index.mjs.map +1 -0
- package/dist/sync/index.d.mts +69 -0
- package/dist/sync/index.d.ts +69 -0
- package/dist/sync/index.js +330 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/index.mjs +323 -0
- package/dist/sync/index.mjs.map +1 -0
- package/dist/sync-engine-DCIMRG5s.d.ts +61 -0
- package/dist/sync-engine-DZqyKHkK.d.mts +61 -0
- package/dist/theme/index.d.mts +53 -0
- package/dist/theme/index.d.ts +53 -0
- package/dist/theme/index.js +169 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/index.mjs +167 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/ui/index.d.mts +66 -0
- package/dist/ui/index.d.ts +66 -0
- package/dist/ui/index.js +811 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/index.mjs +803 -0
- package/dist/ui/index.mjs.map +1 -0
- package/dist/utilities/index.d.mts +199 -0
- package/dist/utilities/index.d.ts +199 -0
- package/dist/utilities/index.js +1991 -0
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/index.mjs +1923 -0
- package/dist/utilities/index.mjs.map +1 -0
- package/dist/validation/index.d.mts +60 -0
- package/dist/validation/index.d.ts +60 -0
- package/dist/validation/index.js +460 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/index.mjs +455 -0
- package/dist/validation/index.mjs.map +1 -0
- package/dist/vue/index.d.mts +135 -0
- package/dist/vue/index.d.ts +135 -0
- package/dist/vue/index.js +621 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/index.mjs +619 -0
- package/dist/vue/index.mjs.map +1 -0
- package/dist/watermark.service-Detur5tq.d.ts +235 -0
- package/dist/watermark.service-QNegMeQZ.d.mts +235 -0
- package/dist/workers/index.d.mts +42 -0
- package/dist/workers/index.d.ts +42 -0
- package/dist/workers/index.js +359 -0
- package/dist/workers/index.js.map +1 -0
- package/dist/workers/index.mjs +356 -0
- package/dist/workers/index.mjs.map +1 -0
- package/dist/workflow/index.d.mts +99 -0
- package/dist/workflow/index.d.ts +99 -0
- package/dist/workflow/index.js +282 -0
- package/dist/workflow/index.js.map +1 -0
- package/dist/workflow/index.mjs +279 -0
- package/dist/workflow/index.mjs.map +1 -0
- package/package.json +226 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { a as JoopBehaviorSubject, J as JoopObservable } from './index-Dz0gOur2.js';
|
|
2
|
+
|
|
3
|
+
interface JoopReceiptLine {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
bold?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface JoopReceiptData {
|
|
9
|
+
title: string;
|
|
10
|
+
referenceNumber: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
lines: JoopReceiptLine[];
|
|
13
|
+
footer?: string;
|
|
14
|
+
}
|
|
15
|
+
declare class JoopReceiptService {
|
|
16
|
+
build(data: JoopReceiptData): JoopReceiptData;
|
|
17
|
+
toText(data: JoopReceiptData): string;
|
|
18
|
+
toJson(data: JoopReceiptData): string;
|
|
19
|
+
toHtml(data: JoopReceiptData): string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface JoopTransactionSignal {
|
|
23
|
+
transactionId: string;
|
|
24
|
+
amount: number;
|
|
25
|
+
currency: string;
|
|
26
|
+
timestamp: number;
|
|
27
|
+
deviceId?: string;
|
|
28
|
+
ipAddress?: string;
|
|
29
|
+
latitude?: number;
|
|
30
|
+
longitude?: number;
|
|
31
|
+
cardBin?: string;
|
|
32
|
+
merchantCategory?: string;
|
|
33
|
+
channel?: 'web' | 'mobile' | 'atm' | 'pos';
|
|
34
|
+
userId?: string;
|
|
35
|
+
}
|
|
36
|
+
interface JoopFraudSignalResult {
|
|
37
|
+
name: string;
|
|
38
|
+
score: number;
|
|
39
|
+
triggered: boolean;
|
|
40
|
+
detail?: string;
|
|
41
|
+
}
|
|
42
|
+
type JoopFraudLevel = 'low' | 'medium' | 'high' | 'critical';
|
|
43
|
+
interface JoopFraudResult {
|
|
44
|
+
transactionId: string;
|
|
45
|
+
score: number;
|
|
46
|
+
level: JoopFraudLevel;
|
|
47
|
+
signals: JoopFraudSignalResult[];
|
|
48
|
+
recommendation: 'allow' | 'review' | 'challenge' | 'block';
|
|
49
|
+
timestamp: number;
|
|
50
|
+
}
|
|
51
|
+
interface JoopFraudConfig {
|
|
52
|
+
velocityWindowMs?: number;
|
|
53
|
+
velocityCountThreshold?: number;
|
|
54
|
+
velocityAmountThreshold?: number;
|
|
55
|
+
largeAmountThreshold?: number;
|
|
56
|
+
geoDistanceThresholdKm?: number;
|
|
57
|
+
alertThreshold?: number;
|
|
58
|
+
maxHistorySize?: number;
|
|
59
|
+
}
|
|
60
|
+
declare class JoopFraudDetection {
|
|
61
|
+
private readonly _cfg;
|
|
62
|
+
private _history;
|
|
63
|
+
private _alertHandlers;
|
|
64
|
+
readonly result$: JoopBehaviorSubject<JoopFraudResult | null>;
|
|
65
|
+
constructor(config?: JoopFraudConfig);
|
|
66
|
+
evaluate(signal: JoopTransactionSignal): JoopFraudResult;
|
|
67
|
+
addSignal(signal: JoopTransactionSignal): void;
|
|
68
|
+
clearHistory(userId?: string): void;
|
|
69
|
+
onAlert(handler: (result: JoopFraudResult) => void): () => void;
|
|
70
|
+
/** Velocity: count of transactions by same user/device in window — max 30 pts */
|
|
71
|
+
private _velocityCount;
|
|
72
|
+
/** Velocity: total amount by same user/device in window — max 25 pts */
|
|
73
|
+
private _velocityAmount;
|
|
74
|
+
/** Large single amount — max 20 pts */
|
|
75
|
+
private _largeAmount;
|
|
76
|
+
/** Geo distance from last transaction by same user — max 15 pts */
|
|
77
|
+
private _geoDistance;
|
|
78
|
+
/** Time anomaly: unusual hours 02:00–05:00 local time — max 10 pts */
|
|
79
|
+
private _timeAnomaly;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface JoopOBCredentials {
|
|
83
|
+
clientId: string;
|
|
84
|
+
clientSecret: string;
|
|
85
|
+
baseUrl: string;
|
|
86
|
+
tokenUrl: string;
|
|
87
|
+
}
|
|
88
|
+
type JoopOBConsentStatus = 'AwaitingAuthorisation' | 'Authorised' | 'Rejected' | 'Consumed' | 'Expired';
|
|
89
|
+
type JoopOBPaymentStatus = 'Pending' | 'AcceptedSettlementInProcess' | 'AcceptedSettlementCompleted' | 'Rejected' | 'Cancelled';
|
|
90
|
+
type JoopOBAccountType = 'Personal' | 'Business';
|
|
91
|
+
interface JoopOBAccount {
|
|
92
|
+
accountId: string;
|
|
93
|
+
iban?: string;
|
|
94
|
+
currency: string;
|
|
95
|
+
accountType: JoopOBAccountType;
|
|
96
|
+
nickname?: string;
|
|
97
|
+
balance?: {
|
|
98
|
+
amount: number;
|
|
99
|
+
currency: string;
|
|
100
|
+
creditDebitIndicator: 'Credit' | 'Debit';
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
interface JoopOBTransaction {
|
|
104
|
+
transactionId: string;
|
|
105
|
+
accountId: string;
|
|
106
|
+
amount: number;
|
|
107
|
+
currency: string;
|
|
108
|
+
creditDebitIndicator: 'Credit' | 'Debit';
|
|
109
|
+
status: 'Booked' | 'Pending';
|
|
110
|
+
bookingDateTime: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
merchantName?: string;
|
|
113
|
+
reference?: string;
|
|
114
|
+
}
|
|
115
|
+
interface JoopOBPaymentRequest {
|
|
116
|
+
reference: string;
|
|
117
|
+
amount: number;
|
|
118
|
+
currency: string;
|
|
119
|
+
creditorName: string;
|
|
120
|
+
creditorIban: string;
|
|
121
|
+
debtorIban?: string;
|
|
122
|
+
remittanceInfo?: string;
|
|
123
|
+
}
|
|
124
|
+
interface JoopOBConsentRequest {
|
|
125
|
+
scopes: Array<'ReadAccountsBasic' | 'ReadAccountsDetail' | 'ReadBalances' | 'ReadTransactionsDetail' | 'ReadTransactionsCredits' | 'ReadTransactionsDebits'>;
|
|
126
|
+
expirationDateTime?: string;
|
|
127
|
+
}
|
|
128
|
+
declare class JoopOpenBankingClient {
|
|
129
|
+
private readonly _credentials;
|
|
130
|
+
private _token;
|
|
131
|
+
/** Reactive authentication state — true once a valid token is held */
|
|
132
|
+
readonly authenticated$: JoopBehaviorSubject<boolean>;
|
|
133
|
+
constructor(credentials: JoopOBCredentials);
|
|
134
|
+
authenticate(): Promise<void>;
|
|
135
|
+
getAccounts(consentId: string): Promise<JoopOBAccount[]>;
|
|
136
|
+
getTransactions(accountId: string, consentId: string, fromDate?: string, toDate?: string): Promise<JoopOBTransaction[]>;
|
|
137
|
+
createConsent(request: JoopOBConsentRequest): Promise<{
|
|
138
|
+
consentId: string;
|
|
139
|
+
authorisationUrl: string;
|
|
140
|
+
status: JoopOBConsentStatus;
|
|
141
|
+
}>;
|
|
142
|
+
getConsentStatus(consentId: string): Promise<JoopOBConsentStatus>;
|
|
143
|
+
revokeConsent(consentId: string): Promise<void>;
|
|
144
|
+
initiatePayment(request: JoopOBPaymentRequest): Promise<{
|
|
145
|
+
paymentId: string;
|
|
146
|
+
status: JoopOBPaymentStatus;
|
|
147
|
+
consentId: string;
|
|
148
|
+
}>;
|
|
149
|
+
getPaymentStatus(paymentId: string): Promise<JoopOBPaymentStatus>;
|
|
150
|
+
cancelPayment(paymentId: string): Promise<void>;
|
|
151
|
+
private _getToken;
|
|
152
|
+
private _fetchToken;
|
|
153
|
+
private _request;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type JoopPaymentStep = 'idle' | 'initiating' | 'awaiting_3ds' | 'processing_3ds' | 'authorised' | 'settled' | 'failed' | 'cancelled';
|
|
157
|
+
interface JoopPaymentSession {
|
|
158
|
+
sessionId: string;
|
|
159
|
+
paymentId: string;
|
|
160
|
+
amount: number;
|
|
161
|
+
currency: string;
|
|
162
|
+
step: JoopPaymentStep;
|
|
163
|
+
threeDsUrl?: string;
|
|
164
|
+
threeDsData?: string;
|
|
165
|
+
errorCode?: string;
|
|
166
|
+
errorMessage?: string;
|
|
167
|
+
createdAt: number;
|
|
168
|
+
updatedAt: number;
|
|
169
|
+
}
|
|
170
|
+
interface JoopPaymentRequest {
|
|
171
|
+
amount: number;
|
|
172
|
+
currency: string;
|
|
173
|
+
cardNumber: string;
|
|
174
|
+
cardExpiry: string;
|
|
175
|
+
cvv: string;
|
|
176
|
+
merchantId: string;
|
|
177
|
+
reference: string;
|
|
178
|
+
returnUrl?: string;
|
|
179
|
+
notifyUrl?: string;
|
|
180
|
+
metadata?: Record<string, string>;
|
|
181
|
+
}
|
|
182
|
+
interface JoopThreeDsResult {
|
|
183
|
+
transactionId: string;
|
|
184
|
+
status: 'Y' | 'N' | 'U' | 'A';
|
|
185
|
+
eci: string;
|
|
186
|
+
cavv?: string;
|
|
187
|
+
}
|
|
188
|
+
interface JoopPaymentOrchestratorConfig {
|
|
189
|
+
gatewayUrl: string;
|
|
190
|
+
merchantId: string;
|
|
191
|
+
apiKey: string;
|
|
192
|
+
timeoutMs?: number;
|
|
193
|
+
pollIntervalMs?: number;
|
|
194
|
+
}
|
|
195
|
+
declare class JoopPaymentOrchestrator {
|
|
196
|
+
private readonly _cfg;
|
|
197
|
+
private readonly _sessions;
|
|
198
|
+
constructor(config: JoopPaymentOrchestratorConfig);
|
|
199
|
+
initiate(request: JoopPaymentRequest): Promise<JoopPaymentSession>;
|
|
200
|
+
handle3ds(sessionId: string, result: JoopThreeDsResult): Promise<JoopPaymentSession>;
|
|
201
|
+
poll(sessionId: string): Promise<JoopPaymentSession>;
|
|
202
|
+
confirm(sessionId: string): Promise<JoopPaymentSession>;
|
|
203
|
+
cancel(sessionId: string): Promise<JoopPaymentSession>;
|
|
204
|
+
getSession(sessionId: string): JoopPaymentSession | null;
|
|
205
|
+
session$(sessionId: string): JoopObservable<JoopPaymentSession>;
|
|
206
|
+
destroy(): void;
|
|
207
|
+
private _requireSession;
|
|
208
|
+
private _updateSession;
|
|
209
|
+
private _generateSessionId;
|
|
210
|
+
private _fetch;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
type JoopTxnType = 'credit' | 'debit' | 'fee' | 'interest' | 'transfer' | 'unknown';
|
|
214
|
+
interface JoopTransaction {
|
|
215
|
+
id: string;
|
|
216
|
+
date: string;
|
|
217
|
+
valueDate?: string;
|
|
218
|
+
amount: number;
|
|
219
|
+
type: JoopTxnType;
|
|
220
|
+
currency: string;
|
|
221
|
+
description: string;
|
|
222
|
+
reference?: string;
|
|
223
|
+
balance?: number;
|
|
224
|
+
counterpartyName?: string;
|
|
225
|
+
counterpartyIban?: string;
|
|
226
|
+
category?: string;
|
|
227
|
+
raw?: string;
|
|
228
|
+
}
|
|
229
|
+
interface JoopStatementResult {
|
|
230
|
+
format: 'MT940' | 'OFX' | 'QIF' | 'CSV' | 'unknown';
|
|
231
|
+
accountId?: string;
|
|
232
|
+
currency?: string;
|
|
233
|
+
openingBalance?: number;
|
|
234
|
+
closingBalance?: number;
|
|
235
|
+
transactions: JoopTransaction[];
|
|
236
|
+
parseErrors: string[];
|
|
237
|
+
}
|
|
238
|
+
interface JoopCsvStatementConfig {
|
|
239
|
+
delimiter?: string;
|
|
240
|
+
dateColumn?: string | number;
|
|
241
|
+
amountColumn?: string | number;
|
|
242
|
+
creditColumn?: string | number;
|
|
243
|
+
debitColumn?: string | number;
|
|
244
|
+
descriptionColumn?: string | number;
|
|
245
|
+
referenceColumn?: string | number;
|
|
246
|
+
balanceColumn?: string | number;
|
|
247
|
+
dateFormat?: string;
|
|
248
|
+
hasHeader?: boolean;
|
|
249
|
+
skipRows?: number;
|
|
250
|
+
}
|
|
251
|
+
declare class JoopStatementParser {
|
|
252
|
+
parse(text: string, csvConfig?: JoopCsvStatementConfig): JoopStatementResult;
|
|
253
|
+
static detectFormat(text: string): 'MT940' | 'OFX' | 'QIF' | 'CSV' | 'unknown';
|
|
254
|
+
parseMT940(text: string): JoopStatementResult;
|
|
255
|
+
parseOFX(text: string): JoopStatementResult;
|
|
256
|
+
parseQIF(text: string): JoopStatementResult;
|
|
257
|
+
parseCsv(text: string, config?: JoopCsvStatementConfig): JoopStatementResult;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export { type JoopReceiptLine as A, type JoopTransaction as B, JoopReceiptService as J, JoopFraudDetection as a, JoopOpenBankingClient as b, JoopPaymentOrchestrator as c, JoopStatementParser as d, type JoopCsvStatementConfig as e, type JoopFraudConfig as f, type JoopFraudLevel as g, type JoopFraudResult as h, type JoopFraudSignalResult as i, type JoopOBAccount as j, type JoopOBAccountType as k, type JoopOBConsentRequest as l, type JoopOBConsentStatus as m, type JoopOBCredentials as n, type JoopOBPaymentRequest as o, type JoopOBPaymentStatus as p, type JoopOBTransaction as q, type JoopPaymentOrchestratorConfig as r, type JoopPaymentRequest as s, type JoopPaymentSession as t, type JoopPaymentStep as u, type JoopReceiptData as v, type JoopStatementResult as w, type JoopThreeDsResult as x, type JoopTransactionSignal as y, type JoopTxnType as z };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { a as JoopBehaviorSubject, J as JoopObservable } from './index-Dz0gOur2.mjs';
|
|
2
|
+
|
|
3
|
+
interface JoopReceiptLine {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
bold?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface JoopReceiptData {
|
|
9
|
+
title: string;
|
|
10
|
+
referenceNumber: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
lines: JoopReceiptLine[];
|
|
13
|
+
footer?: string;
|
|
14
|
+
}
|
|
15
|
+
declare class JoopReceiptService {
|
|
16
|
+
build(data: JoopReceiptData): JoopReceiptData;
|
|
17
|
+
toText(data: JoopReceiptData): string;
|
|
18
|
+
toJson(data: JoopReceiptData): string;
|
|
19
|
+
toHtml(data: JoopReceiptData): string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface JoopTransactionSignal {
|
|
23
|
+
transactionId: string;
|
|
24
|
+
amount: number;
|
|
25
|
+
currency: string;
|
|
26
|
+
timestamp: number;
|
|
27
|
+
deviceId?: string;
|
|
28
|
+
ipAddress?: string;
|
|
29
|
+
latitude?: number;
|
|
30
|
+
longitude?: number;
|
|
31
|
+
cardBin?: string;
|
|
32
|
+
merchantCategory?: string;
|
|
33
|
+
channel?: 'web' | 'mobile' | 'atm' | 'pos';
|
|
34
|
+
userId?: string;
|
|
35
|
+
}
|
|
36
|
+
interface JoopFraudSignalResult {
|
|
37
|
+
name: string;
|
|
38
|
+
score: number;
|
|
39
|
+
triggered: boolean;
|
|
40
|
+
detail?: string;
|
|
41
|
+
}
|
|
42
|
+
type JoopFraudLevel = 'low' | 'medium' | 'high' | 'critical';
|
|
43
|
+
interface JoopFraudResult {
|
|
44
|
+
transactionId: string;
|
|
45
|
+
score: number;
|
|
46
|
+
level: JoopFraudLevel;
|
|
47
|
+
signals: JoopFraudSignalResult[];
|
|
48
|
+
recommendation: 'allow' | 'review' | 'challenge' | 'block';
|
|
49
|
+
timestamp: number;
|
|
50
|
+
}
|
|
51
|
+
interface JoopFraudConfig {
|
|
52
|
+
velocityWindowMs?: number;
|
|
53
|
+
velocityCountThreshold?: number;
|
|
54
|
+
velocityAmountThreshold?: number;
|
|
55
|
+
largeAmountThreshold?: number;
|
|
56
|
+
geoDistanceThresholdKm?: number;
|
|
57
|
+
alertThreshold?: number;
|
|
58
|
+
maxHistorySize?: number;
|
|
59
|
+
}
|
|
60
|
+
declare class JoopFraudDetection {
|
|
61
|
+
private readonly _cfg;
|
|
62
|
+
private _history;
|
|
63
|
+
private _alertHandlers;
|
|
64
|
+
readonly result$: JoopBehaviorSubject<JoopFraudResult | null>;
|
|
65
|
+
constructor(config?: JoopFraudConfig);
|
|
66
|
+
evaluate(signal: JoopTransactionSignal): JoopFraudResult;
|
|
67
|
+
addSignal(signal: JoopTransactionSignal): void;
|
|
68
|
+
clearHistory(userId?: string): void;
|
|
69
|
+
onAlert(handler: (result: JoopFraudResult) => void): () => void;
|
|
70
|
+
/** Velocity: count of transactions by same user/device in window — max 30 pts */
|
|
71
|
+
private _velocityCount;
|
|
72
|
+
/** Velocity: total amount by same user/device in window — max 25 pts */
|
|
73
|
+
private _velocityAmount;
|
|
74
|
+
/** Large single amount — max 20 pts */
|
|
75
|
+
private _largeAmount;
|
|
76
|
+
/** Geo distance from last transaction by same user — max 15 pts */
|
|
77
|
+
private _geoDistance;
|
|
78
|
+
/** Time anomaly: unusual hours 02:00–05:00 local time — max 10 pts */
|
|
79
|
+
private _timeAnomaly;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface JoopOBCredentials {
|
|
83
|
+
clientId: string;
|
|
84
|
+
clientSecret: string;
|
|
85
|
+
baseUrl: string;
|
|
86
|
+
tokenUrl: string;
|
|
87
|
+
}
|
|
88
|
+
type JoopOBConsentStatus = 'AwaitingAuthorisation' | 'Authorised' | 'Rejected' | 'Consumed' | 'Expired';
|
|
89
|
+
type JoopOBPaymentStatus = 'Pending' | 'AcceptedSettlementInProcess' | 'AcceptedSettlementCompleted' | 'Rejected' | 'Cancelled';
|
|
90
|
+
type JoopOBAccountType = 'Personal' | 'Business';
|
|
91
|
+
interface JoopOBAccount {
|
|
92
|
+
accountId: string;
|
|
93
|
+
iban?: string;
|
|
94
|
+
currency: string;
|
|
95
|
+
accountType: JoopOBAccountType;
|
|
96
|
+
nickname?: string;
|
|
97
|
+
balance?: {
|
|
98
|
+
amount: number;
|
|
99
|
+
currency: string;
|
|
100
|
+
creditDebitIndicator: 'Credit' | 'Debit';
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
interface JoopOBTransaction {
|
|
104
|
+
transactionId: string;
|
|
105
|
+
accountId: string;
|
|
106
|
+
amount: number;
|
|
107
|
+
currency: string;
|
|
108
|
+
creditDebitIndicator: 'Credit' | 'Debit';
|
|
109
|
+
status: 'Booked' | 'Pending';
|
|
110
|
+
bookingDateTime: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
merchantName?: string;
|
|
113
|
+
reference?: string;
|
|
114
|
+
}
|
|
115
|
+
interface JoopOBPaymentRequest {
|
|
116
|
+
reference: string;
|
|
117
|
+
amount: number;
|
|
118
|
+
currency: string;
|
|
119
|
+
creditorName: string;
|
|
120
|
+
creditorIban: string;
|
|
121
|
+
debtorIban?: string;
|
|
122
|
+
remittanceInfo?: string;
|
|
123
|
+
}
|
|
124
|
+
interface JoopOBConsentRequest {
|
|
125
|
+
scopes: Array<'ReadAccountsBasic' | 'ReadAccountsDetail' | 'ReadBalances' | 'ReadTransactionsDetail' | 'ReadTransactionsCredits' | 'ReadTransactionsDebits'>;
|
|
126
|
+
expirationDateTime?: string;
|
|
127
|
+
}
|
|
128
|
+
declare class JoopOpenBankingClient {
|
|
129
|
+
private readonly _credentials;
|
|
130
|
+
private _token;
|
|
131
|
+
/** Reactive authentication state — true once a valid token is held */
|
|
132
|
+
readonly authenticated$: JoopBehaviorSubject<boolean>;
|
|
133
|
+
constructor(credentials: JoopOBCredentials);
|
|
134
|
+
authenticate(): Promise<void>;
|
|
135
|
+
getAccounts(consentId: string): Promise<JoopOBAccount[]>;
|
|
136
|
+
getTransactions(accountId: string, consentId: string, fromDate?: string, toDate?: string): Promise<JoopOBTransaction[]>;
|
|
137
|
+
createConsent(request: JoopOBConsentRequest): Promise<{
|
|
138
|
+
consentId: string;
|
|
139
|
+
authorisationUrl: string;
|
|
140
|
+
status: JoopOBConsentStatus;
|
|
141
|
+
}>;
|
|
142
|
+
getConsentStatus(consentId: string): Promise<JoopOBConsentStatus>;
|
|
143
|
+
revokeConsent(consentId: string): Promise<void>;
|
|
144
|
+
initiatePayment(request: JoopOBPaymentRequest): Promise<{
|
|
145
|
+
paymentId: string;
|
|
146
|
+
status: JoopOBPaymentStatus;
|
|
147
|
+
consentId: string;
|
|
148
|
+
}>;
|
|
149
|
+
getPaymentStatus(paymentId: string): Promise<JoopOBPaymentStatus>;
|
|
150
|
+
cancelPayment(paymentId: string): Promise<void>;
|
|
151
|
+
private _getToken;
|
|
152
|
+
private _fetchToken;
|
|
153
|
+
private _request;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type JoopPaymentStep = 'idle' | 'initiating' | 'awaiting_3ds' | 'processing_3ds' | 'authorised' | 'settled' | 'failed' | 'cancelled';
|
|
157
|
+
interface JoopPaymentSession {
|
|
158
|
+
sessionId: string;
|
|
159
|
+
paymentId: string;
|
|
160
|
+
amount: number;
|
|
161
|
+
currency: string;
|
|
162
|
+
step: JoopPaymentStep;
|
|
163
|
+
threeDsUrl?: string;
|
|
164
|
+
threeDsData?: string;
|
|
165
|
+
errorCode?: string;
|
|
166
|
+
errorMessage?: string;
|
|
167
|
+
createdAt: number;
|
|
168
|
+
updatedAt: number;
|
|
169
|
+
}
|
|
170
|
+
interface JoopPaymentRequest {
|
|
171
|
+
amount: number;
|
|
172
|
+
currency: string;
|
|
173
|
+
cardNumber: string;
|
|
174
|
+
cardExpiry: string;
|
|
175
|
+
cvv: string;
|
|
176
|
+
merchantId: string;
|
|
177
|
+
reference: string;
|
|
178
|
+
returnUrl?: string;
|
|
179
|
+
notifyUrl?: string;
|
|
180
|
+
metadata?: Record<string, string>;
|
|
181
|
+
}
|
|
182
|
+
interface JoopThreeDsResult {
|
|
183
|
+
transactionId: string;
|
|
184
|
+
status: 'Y' | 'N' | 'U' | 'A';
|
|
185
|
+
eci: string;
|
|
186
|
+
cavv?: string;
|
|
187
|
+
}
|
|
188
|
+
interface JoopPaymentOrchestratorConfig {
|
|
189
|
+
gatewayUrl: string;
|
|
190
|
+
merchantId: string;
|
|
191
|
+
apiKey: string;
|
|
192
|
+
timeoutMs?: number;
|
|
193
|
+
pollIntervalMs?: number;
|
|
194
|
+
}
|
|
195
|
+
declare class JoopPaymentOrchestrator {
|
|
196
|
+
private readonly _cfg;
|
|
197
|
+
private readonly _sessions;
|
|
198
|
+
constructor(config: JoopPaymentOrchestratorConfig);
|
|
199
|
+
initiate(request: JoopPaymentRequest): Promise<JoopPaymentSession>;
|
|
200
|
+
handle3ds(sessionId: string, result: JoopThreeDsResult): Promise<JoopPaymentSession>;
|
|
201
|
+
poll(sessionId: string): Promise<JoopPaymentSession>;
|
|
202
|
+
confirm(sessionId: string): Promise<JoopPaymentSession>;
|
|
203
|
+
cancel(sessionId: string): Promise<JoopPaymentSession>;
|
|
204
|
+
getSession(sessionId: string): JoopPaymentSession | null;
|
|
205
|
+
session$(sessionId: string): JoopObservable<JoopPaymentSession>;
|
|
206
|
+
destroy(): void;
|
|
207
|
+
private _requireSession;
|
|
208
|
+
private _updateSession;
|
|
209
|
+
private _generateSessionId;
|
|
210
|
+
private _fetch;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
type JoopTxnType = 'credit' | 'debit' | 'fee' | 'interest' | 'transfer' | 'unknown';
|
|
214
|
+
interface JoopTransaction {
|
|
215
|
+
id: string;
|
|
216
|
+
date: string;
|
|
217
|
+
valueDate?: string;
|
|
218
|
+
amount: number;
|
|
219
|
+
type: JoopTxnType;
|
|
220
|
+
currency: string;
|
|
221
|
+
description: string;
|
|
222
|
+
reference?: string;
|
|
223
|
+
balance?: number;
|
|
224
|
+
counterpartyName?: string;
|
|
225
|
+
counterpartyIban?: string;
|
|
226
|
+
category?: string;
|
|
227
|
+
raw?: string;
|
|
228
|
+
}
|
|
229
|
+
interface JoopStatementResult {
|
|
230
|
+
format: 'MT940' | 'OFX' | 'QIF' | 'CSV' | 'unknown';
|
|
231
|
+
accountId?: string;
|
|
232
|
+
currency?: string;
|
|
233
|
+
openingBalance?: number;
|
|
234
|
+
closingBalance?: number;
|
|
235
|
+
transactions: JoopTransaction[];
|
|
236
|
+
parseErrors: string[];
|
|
237
|
+
}
|
|
238
|
+
interface JoopCsvStatementConfig {
|
|
239
|
+
delimiter?: string;
|
|
240
|
+
dateColumn?: string | number;
|
|
241
|
+
amountColumn?: string | number;
|
|
242
|
+
creditColumn?: string | number;
|
|
243
|
+
debitColumn?: string | number;
|
|
244
|
+
descriptionColumn?: string | number;
|
|
245
|
+
referenceColumn?: string | number;
|
|
246
|
+
balanceColumn?: string | number;
|
|
247
|
+
dateFormat?: string;
|
|
248
|
+
hasHeader?: boolean;
|
|
249
|
+
skipRows?: number;
|
|
250
|
+
}
|
|
251
|
+
declare class JoopStatementParser {
|
|
252
|
+
parse(text: string, csvConfig?: JoopCsvStatementConfig): JoopStatementResult;
|
|
253
|
+
static detectFormat(text: string): 'MT940' | 'OFX' | 'QIF' | 'CSV' | 'unknown';
|
|
254
|
+
parseMT940(text: string): JoopStatementResult;
|
|
255
|
+
parseOFX(text: string): JoopStatementResult;
|
|
256
|
+
parseQIF(text: string): JoopStatementResult;
|
|
257
|
+
parseCsv(text: string, config?: JoopCsvStatementConfig): JoopStatementResult;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export { type JoopReceiptLine as A, type JoopTransaction as B, JoopReceiptService as J, JoopFraudDetection as a, JoopOpenBankingClient as b, JoopPaymentOrchestrator as c, JoopStatementParser as d, type JoopCsvStatementConfig as e, type JoopFraudConfig as f, type JoopFraudLevel as g, type JoopFraudResult as h, type JoopFraudSignalResult as i, type JoopOBAccount as j, type JoopOBAccountType as k, type JoopOBConsentRequest as l, type JoopOBConsentStatus as m, type JoopOBCredentials as n, type JoopOBPaymentRequest as o, type JoopOBPaymentStatus as p, type JoopOBTransaction as q, type JoopPaymentOrchestratorConfig as r, type JoopPaymentRequest as s, type JoopPaymentSession as t, type JoopPaymentStep as u, type JoopReceiptData as v, type JoopStatementResult as w, type JoopThreeDsResult as x, type JoopTransactionSignal as y, type JoopTxnType as z };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { J as JoopDataStorage, a as JoopScopeMapService } from '../data-storage.service-LvhGRCmw.mjs';
|
|
2
|
+
import { J as JoopObservable } from '../index-Dz0gOur2.mjs';
|
|
3
|
+
import '../index-CqDKWTUP.mjs';
|
|
4
|
+
|
|
5
|
+
interface JoopIdbStoreSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
keyPath?: string;
|
|
8
|
+
autoIncrement?: boolean;
|
|
9
|
+
indexes?: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
keyPath: string | string[];
|
|
12
|
+
unique?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
interface JoopIdbConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
version: number;
|
|
18
|
+
stores: JoopIdbStoreSchema[];
|
|
19
|
+
}
|
|
20
|
+
declare class JoopIndexedDbService {
|
|
21
|
+
private _db;
|
|
22
|
+
private _ready$;
|
|
23
|
+
open(config: JoopIdbConfig): Promise<void>;
|
|
24
|
+
close(): void;
|
|
25
|
+
isOpen(): boolean;
|
|
26
|
+
ready$(): JoopObservable<boolean>;
|
|
27
|
+
private _store;
|
|
28
|
+
get<T>(store: string, key: IDBValidKey): Promise<T | null>;
|
|
29
|
+
set(store: string, value: unknown, key?: IDBValidKey): Promise<IDBValidKey>;
|
|
30
|
+
delete(store: string, key: IDBValidKey): Promise<void>;
|
|
31
|
+
getAll<T>(store: string): Promise<T[]>;
|
|
32
|
+
getAllKeys(store: string): Promise<IDBValidKey[]>;
|
|
33
|
+
query<T>(store: string, indexName: string, range: IDBKeyRange): Promise<T[]>;
|
|
34
|
+
count(store: string, range?: IDBKeyRange): Promise<number>;
|
|
35
|
+
clear(store: string): Promise<void>;
|
|
36
|
+
bulkSet(store: string, items: unknown[]): Promise<void>;
|
|
37
|
+
deleteDatabase(name: string): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { type JoopIdbConfig, type JoopIdbStoreSchema, JoopIndexedDbService };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { J as JoopDataStorage, a as JoopScopeMapService } from '../data-storage.service-DT6xaTxE.js';
|
|
2
|
+
import { J as JoopObservable } from '../index-Dz0gOur2.js';
|
|
3
|
+
import '../index-CqDKWTUP.js';
|
|
4
|
+
|
|
5
|
+
interface JoopIdbStoreSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
keyPath?: string;
|
|
8
|
+
autoIncrement?: boolean;
|
|
9
|
+
indexes?: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
keyPath: string | string[];
|
|
12
|
+
unique?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
interface JoopIdbConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
version: number;
|
|
18
|
+
stores: JoopIdbStoreSchema[];
|
|
19
|
+
}
|
|
20
|
+
declare class JoopIndexedDbService {
|
|
21
|
+
private _db;
|
|
22
|
+
private _ready$;
|
|
23
|
+
open(config: JoopIdbConfig): Promise<void>;
|
|
24
|
+
close(): void;
|
|
25
|
+
isOpen(): boolean;
|
|
26
|
+
ready$(): JoopObservable<boolean>;
|
|
27
|
+
private _store;
|
|
28
|
+
get<T>(store: string, key: IDBValidKey): Promise<T | null>;
|
|
29
|
+
set(store: string, value: unknown, key?: IDBValidKey): Promise<IDBValidKey>;
|
|
30
|
+
delete(store: string, key: IDBValidKey): Promise<void>;
|
|
31
|
+
getAll<T>(store: string): Promise<T[]>;
|
|
32
|
+
getAllKeys(store: string): Promise<IDBValidKey[]>;
|
|
33
|
+
query<T>(store: string, indexName: string, range: IDBKeyRange): Promise<T[]>;
|
|
34
|
+
count(store: string, range?: IDBKeyRange): Promise<number>;
|
|
35
|
+
clear(store: string): Promise<void>;
|
|
36
|
+
bulkSet(store: string, items: unknown[]): Promise<void>;
|
|
37
|
+
deleteDatabase(name: string): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { type JoopIdbConfig, type JoopIdbStoreSchema, JoopIndexedDbService };
|