@soltech/fluid-common 1.3.3 → 1.3.5
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/AGENTS.md +43 -0
- package/CLAUDE.md +5 -0
- package/lib/index.d.ts +11 -9
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +11 -9
package/AGENTS.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# AGENTS.md – Instructions for AI Coding Agents
|
|
2
|
+
|
|
3
|
+
Read this entire file before every task.
|
|
4
|
+
|
|
5
|
+
## Agent Rules & Safety
|
|
6
|
+
- Never touch `.env*`, `certs/` or any file containing secrets/credentials.
|
|
7
|
+
- Never introduce new dependencies without asking first.
|
|
8
|
+
- Never rewrite large parts of the codebase unless explicitly requested.
|
|
9
|
+
- Always propose changes as diffs or small file edits and get approval before applying.
|
|
10
|
+
- If unsure about architecture, style, or impact, ask before coding.
|
|
11
|
+
|
|
12
|
+
## Project Overview & Architecture
|
|
13
|
+
- TypeScript-only package containing shared interfaces and enums used by both `fluid-widget` (frontend) and `fluid-api` (API/middleware).
|
|
14
|
+
- Source of truth is `src/index.ts`.
|
|
15
|
+
- Build output is generated in `lib/` and must not be edited by hand.
|
|
16
|
+
|
|
17
|
+
## Build, Dev & Validation
|
|
18
|
+
- Build: `npm run build`
|
|
19
|
+
- Lint: `npm run lint`
|
|
20
|
+
- Publish: `npm run pub` (build + publish + push)
|
|
21
|
+
|
|
22
|
+
Before final proposal on code changes:
|
|
23
|
+
1. Run `npm run lint`.
|
|
24
|
+
2. Run `npm run build`.
|
|
25
|
+
3. If you did not run them, say so.
|
|
26
|
+
|
|
27
|
+
## Coding Style & Conventions
|
|
28
|
+
- Follow `.editorconfig` (tabs, max line length 140).
|
|
29
|
+
- Follow ESLint config `@soltech`.
|
|
30
|
+
|
|
31
|
+
## Testing
|
|
32
|
+
- There is no testing in this repo.
|
|
33
|
+
|
|
34
|
+
## Versioning
|
|
35
|
+
- When changes are meant for release, bump `package.json` version per README guidance.
|
|
36
|
+
|
|
37
|
+
## Pull Requests
|
|
38
|
+
|
|
39
|
+
When creating PRs, always include a Shortcut ticket reference in the PR body using the `[sc-NNNNN]` format so it automatically links to the ticket:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
[sc-17649](https://app.shortcut.com/soltech/story/17649/ticket-title-slug)
|
|
43
|
+
```
|
package/CLAUDE.md
ADDED
package/lib/index.d.ts
CHANGED
|
@@ -127,7 +127,6 @@ export interface EncryptionSettings {
|
|
|
127
127
|
encryptionType: EncryptionType;
|
|
128
128
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
129
129
|
encryptCardholderName: boolean;
|
|
130
|
-
encryptFullYear: boolean;
|
|
131
130
|
}
|
|
132
131
|
export declare enum EncryptionType {
|
|
133
132
|
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
@@ -264,7 +263,8 @@ export declare enum TransactionState {
|
|
|
264
263
|
PROCESSING = "PROCESSING",
|
|
265
264
|
WAITING_APPROVAL = "WAITING_APPROVAL",
|
|
266
265
|
WAITING_INPUT = "WAITING_INPUT",
|
|
267
|
-
CANCELLED = "CANCELLED"
|
|
266
|
+
CANCELLED = "CANCELLED",
|
|
267
|
+
BLACKLISTED = "BLACKLISTED"
|
|
268
268
|
}
|
|
269
269
|
export interface ProviderTransactionError {
|
|
270
270
|
action: Action;
|
|
@@ -320,21 +320,23 @@ export declare enum KycStatus {
|
|
|
320
320
|
PROCESSING = "processing"
|
|
321
321
|
}
|
|
322
322
|
export interface UserData {
|
|
323
|
-
|
|
323
|
+
affiliateId?: string;
|
|
324
324
|
age?: number;
|
|
325
|
+
email?: string;
|
|
325
326
|
dayOfMonth?: number;
|
|
326
327
|
dayOfWeek?: string;
|
|
327
328
|
depositLimit?: number;
|
|
328
|
-
|
|
329
|
-
maximumDeposit?: number;
|
|
330
|
-
previousDeposit?: number;
|
|
331
|
-
timeOfDay?: string;
|
|
332
|
-
lifetimeDeposit?: number;
|
|
329
|
+
fullName?: string;
|
|
333
330
|
depositCount?: number;
|
|
334
331
|
daysSinceRegistration?: number;
|
|
335
332
|
kycStatus?: KycStatus;
|
|
336
|
-
|
|
333
|
+
lifetimeDeposit?: number;
|
|
334
|
+
maximumDeposit?: number;
|
|
335
|
+
minimumDeposit?: number;
|
|
336
|
+
phoneNumber?: string;
|
|
337
|
+
previousDeposit?: number;
|
|
337
338
|
tags?: string[];
|
|
339
|
+
timeOfDay?: string;
|
|
338
340
|
}
|
|
339
341
|
export interface TrackingEventData {
|
|
340
342
|
id: string;
|
package/lib/index.js
CHANGED
|
@@ -52,6 +52,7 @@ export var TransactionState;
|
|
|
52
52
|
TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
|
|
53
53
|
TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
|
|
54
54
|
TransactionState["CANCELLED"] = "CANCELLED";
|
|
55
|
+
TransactionState["BLACKLISTED"] = "BLACKLISTED";
|
|
55
56
|
})(TransactionState || (TransactionState = {}));
|
|
56
57
|
export var HttpVerb;
|
|
57
58
|
(function (HttpVerb) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -142,7 +142,6 @@ export interface EncryptionSettings {
|
|
|
142
142
|
encryptionType: EncryptionType;
|
|
143
143
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
144
144
|
encryptCardholderName: boolean;
|
|
145
|
-
encryptFullYear: boolean;
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
export enum EncryptionType {
|
|
@@ -297,7 +296,8 @@ export enum TransactionState {
|
|
|
297
296
|
PROCESSING = 'PROCESSING',
|
|
298
297
|
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
299
298
|
WAITING_INPUT = 'WAITING_INPUT',
|
|
300
|
-
CANCELLED = 'CANCELLED'
|
|
299
|
+
CANCELLED = 'CANCELLED',
|
|
300
|
+
BLACKLISTED = 'BLACKLISTED'
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
export interface ProviderTransactionError {
|
|
@@ -363,21 +363,23 @@ export enum KycStatus {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
export interface UserData {
|
|
366
|
-
|
|
366
|
+
affiliateId?: string;
|
|
367
367
|
age?: number;
|
|
368
|
+
email?: string;
|
|
368
369
|
dayOfMonth?: number;
|
|
369
370
|
dayOfWeek?: string;
|
|
370
371
|
depositLimit?: number;
|
|
371
|
-
|
|
372
|
-
maximumDeposit?: number;
|
|
373
|
-
previousDeposit?: number;
|
|
374
|
-
timeOfDay?: string;
|
|
375
|
-
lifetimeDeposit?: number;
|
|
372
|
+
fullName?: string;
|
|
376
373
|
depositCount?: number;
|
|
377
374
|
daysSinceRegistration?: number;
|
|
378
375
|
kycStatus?: KycStatus;
|
|
379
|
-
|
|
376
|
+
lifetimeDeposit?: number;
|
|
377
|
+
maximumDeposit?: number;
|
|
378
|
+
minimumDeposit?: number;
|
|
379
|
+
phoneNumber?: string;
|
|
380
|
+
previousDeposit?: number;
|
|
380
381
|
tags?: string[];
|
|
382
|
+
timeOfDay?: string;
|
|
381
383
|
}
|
|
382
384
|
|
|
383
385
|
export interface TrackingEventData {
|