@soltech/fluid-common 1.3.4 → 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 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
@@ -0,0 +1,5 @@
1
+ # CLAUDE.md
2
+
3
+ ## Primary instruction
4
+
5
+ This repository’s canonical agent instructions live in `AGENTS.md`.
package/lib/index.d.ts CHANGED
@@ -15,7 +15,6 @@ export declare enum TraitType {
15
15
  SOUND = "SOUND"
16
16
  }
17
17
  export declare enum PaymentType {
18
- APPLE_PAY = "ApplePay",
19
18
  BANK_TRANSFER = "BankTransfer",
20
19
  CREDIT_CARD = "CreditCard",
21
20
  CRYPTO = "Crypto",
@@ -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
- fullName?: string;
323
+ affiliateId?: string;
324
324
  age?: number;
325
+ email?: string;
325
326
  dayOfMonth?: number;
326
327
  dayOfWeek?: string;
327
328
  depositLimit?: number;
328
- minimumDeposit?: number;
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
- affiliateId?: string;
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
@@ -19,7 +19,6 @@ export var TraitType;
19
19
  })(TraitType || (TraitType = {}));
20
20
  export var PaymentType;
21
21
  (function (PaymentType) {
22
- PaymentType["APPLE_PAY"] = "ApplePay";
23
22
  PaymentType["BANK_TRANSFER"] = "BankTransfer";
24
23
  PaymentType["CREDIT_CARD"] = "CreditCard";
25
24
  PaymentType["CRYPTO"] = "Crypto";
@@ -53,6 +52,7 @@ export var TransactionState;
53
52
  TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
54
53
  TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
55
54
  TransactionState["CANCELLED"] = "CANCELLED";
55
+ TransactionState["BLACKLISTED"] = "BLACKLISTED";
56
56
  })(TransactionState || (TransactionState = {}));
57
57
  export var HttpVerb;
58
58
  (function (HttpVerb) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -18,7 +18,6 @@ export enum TraitType {
18
18
  }
19
19
 
20
20
  export enum PaymentType {
21
- APPLE_PAY = 'ApplePay',
22
21
  BANK_TRANSFER = 'BankTransfer',
23
22
  CREDIT_CARD = 'CreditCard',
24
23
  CRYPTO = 'Crypto',
@@ -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
- fullName?: string;
366
+ affiliateId?: string;
367
367
  age?: number;
368
+ email?: string;
368
369
  dayOfMonth?: number;
369
370
  dayOfWeek?: string;
370
371
  depositLimit?: number;
371
- minimumDeposit?: number;
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
- affiliateId?: string;
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 {