@soltech/fluid-common 1.3.4 → 1.3.6
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 +44 -0
- package/CLAUDE.md +5 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# AGENTS.md – Instructions for AI Coding Agents
|
|
2
|
+
|
|
3
|
+
Read this entire file before every task.
|
|
4
|
+
|
|
5
|
+
## Agent Rules & Safety
|
|
6
|
+
- Never edit any files when the current git branch is `main` — always work on a feature branch. Run `git branch --show-current` to confirm before making any changes.
|
|
7
|
+
- Never touch `.env*`, `certs/` or any file containing secrets/credentials.
|
|
8
|
+
- Never introduce new dependencies without asking first.
|
|
9
|
+
- Never rewrite large parts of the codebase unless explicitly requested.
|
|
10
|
+
- Always propose changes as diffs or small file edits and get approval before applying.
|
|
11
|
+
- If unsure about architecture, style, or impact, ask before coding.
|
|
12
|
+
|
|
13
|
+
## Project Overview & Architecture
|
|
14
|
+
- TypeScript-only package containing shared interfaces and enums used by both `fluid-widget` (frontend) and `fluid-api` (API/middleware).
|
|
15
|
+
- Source of truth is `src/index.ts`.
|
|
16
|
+
- Build output is generated in `lib/` and must not be edited by hand.
|
|
17
|
+
|
|
18
|
+
## Build, Dev & Validation
|
|
19
|
+
- Build: `npm run build`
|
|
20
|
+
- Lint: `npm run lint`
|
|
21
|
+
- Publish: `npm run pub` (build + publish + push)
|
|
22
|
+
|
|
23
|
+
Before final proposal on code changes:
|
|
24
|
+
1. Run `npm run lint`.
|
|
25
|
+
2. Run `npm run build`.
|
|
26
|
+
3. If you did not run them, say so.
|
|
27
|
+
|
|
28
|
+
## Coding Style & Conventions
|
|
29
|
+
- Follow `.editorconfig` (tabs, max line length 140).
|
|
30
|
+
- Follow ESLint config `@soltech`.
|
|
31
|
+
|
|
32
|
+
## Testing
|
|
33
|
+
- There is no testing in this repo.
|
|
34
|
+
|
|
35
|
+
## Versioning
|
|
36
|
+
- When changes are meant for release, bump `package.json` version per README guidance.
|
|
37
|
+
|
|
38
|
+
## Pull Requests
|
|
39
|
+
|
|
40
|
+
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:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
[sc-17649](https://app.shortcut.com/soltech/story/17649/ticket-title-slug)
|
|
44
|
+
```
|
package/CLAUDE.md
ADDED
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",
|
|
@@ -116,6 +115,7 @@ export interface PaymentMethod {
|
|
|
116
115
|
instructions?: string;
|
|
117
116
|
fees?: PaymentMethodFees;
|
|
118
117
|
popupWindowRedirect: boolean;
|
|
118
|
+
windowRedirect: boolean;
|
|
119
119
|
voucherAmounts?: number[];
|
|
120
120
|
depositHandledByHostSite?: boolean;
|
|
121
121
|
withdrawalHandledByHostSite?: boolean;
|
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";
|
package/package.json
CHANGED
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',
|
|
@@ -130,6 +129,7 @@ export interface PaymentMethod {
|
|
|
130
129
|
instructions?: string;
|
|
131
130
|
fees?: PaymentMethodFees;
|
|
132
131
|
popupWindowRedirect: boolean;
|
|
132
|
+
windowRedirect: boolean;
|
|
133
133
|
voucherAmounts?: number[];
|
|
134
134
|
depositHandledByHostSite?: boolean;
|
|
135
135
|
withdrawalHandledByHostSite?: boolean;
|