@emulates/flex 2.3.1
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 +9 -0
- package/DISCOVERY.md +55 -0
- package/README.md +234 -0
- package/SUPPORT.md +24 -0
- package/dist/chunk-O6YIBDG6.js +6137 -0
- package/dist/chunk-O6YIBDG6.js.map +7 -0
- package/dist/chunk-TYLVTAND.js +871 -0
- package/dist/chunk-TYLVTAND.js.map +7 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +7 -0
- package/dist/index.d.ts +1267 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +7 -0
- package/dist/server.d.ts +1659 -0
- package/dist/server.js +12 -0
- package/dist/server.js.map +7 -0
- package/openapi.yaml +1180 -0
- package/package.json +129 -0
package/package.json
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emulates/flex",
|
|
3
|
+
"version": "2.3.1",
|
|
4
|
+
"description": "Stateful emulator of the Flex HSA/FSA payments API: products (recorded catalog corpus), checkout sessions in payment, subscription, off-session and setup modes, subscriptions, customers, setup intents, refunds, the hosted checkout page, and Svix-signed webhooks.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"DISCOVERY.md",
|
|
13
|
+
"SUPPORT.md",
|
|
14
|
+
"openapi.yaml"
|
|
15
|
+
],
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./server": {
|
|
24
|
+
"types": "./dist/server.d.ts",
|
|
25
|
+
"default": "./dist/server.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"emulates-flex": "./dist/cli.js"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"provenance": true
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/crvouga/emulators.git",
|
|
38
|
+
"directory": "packages/service/flex"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/crvouga/emulators/tree/main/packages/service/flex#readme",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"emulates",
|
|
43
|
+
"service",
|
|
44
|
+
"flex",
|
|
45
|
+
"withflex",
|
|
46
|
+
"hsa",
|
|
47
|
+
"fsa",
|
|
48
|
+
"payments",
|
|
49
|
+
"checkout"
|
|
50
|
+
],
|
|
51
|
+
"emulates": {
|
|
52
|
+
"runtime": "portable",
|
|
53
|
+
"entries": {
|
|
54
|
+
"server": "node",
|
|
55
|
+
"cli": "node"
|
|
56
|
+
},
|
|
57
|
+
"layer": "service",
|
|
58
|
+
"category": "payments",
|
|
59
|
+
"displayName": "Flex",
|
|
60
|
+
"vendor": {
|
|
61
|
+
"website": "https://www.withflex.com",
|
|
62
|
+
"docs": "https://docs.withflex.com",
|
|
63
|
+
"description": "Flex lets merchants accept HSA/FSA funds at checkout for eligible health and wellness products."
|
|
64
|
+
},
|
|
65
|
+
"parity": "Checkout, subscriptions, and webhooks",
|
|
66
|
+
"parityTier": "cold",
|
|
67
|
+
"playground": {
|
|
68
|
+
"headers": {
|
|
69
|
+
"authorization": "Bearer fsk_test_emulators"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"discovery": {
|
|
73
|
+
"guide": "DISCOVERY.md",
|
|
74
|
+
"behavior": "README.md",
|
|
75
|
+
"capabilities": "SUPPORT.md",
|
|
76
|
+
"contract": "openapi.yaml",
|
|
77
|
+
"types": "dist/index.d.ts",
|
|
78
|
+
"oracle": {
|
|
79
|
+
"kind": "Live vendor API or sandbox",
|
|
80
|
+
"command": "bun run parity:service -- flex",
|
|
81
|
+
"note": "Run from an Emulates checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
|
|
82
|
+
},
|
|
83
|
+
"introspection": [
|
|
84
|
+
"GET /__admin/health",
|
|
85
|
+
"GET /__admin",
|
|
86
|
+
"GET /__admin/state",
|
|
87
|
+
"GET /__admin/requests",
|
|
88
|
+
"GET /__admin/metrics",
|
|
89
|
+
"GET /__admin/faults/presets",
|
|
90
|
+
"GET /__admin/ui"
|
|
91
|
+
],
|
|
92
|
+
"reporting": "https://github.com/crvouga/emulators/blob/main/docs/REPORTING_ISSUES.md"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"scripts": {
|
|
96
|
+
"generate": "bun ../../openapi/codegen/dist/cli.js",
|
|
97
|
+
"generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
|
|
98
|
+
"openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
|
|
99
|
+
"build": "bun ../../../scripts/bundle-service.ts",
|
|
100
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
101
|
+
"lint": "biome check .",
|
|
102
|
+
"test": "bun test",
|
|
103
|
+
"parity": "bun scripts/parity.ts",
|
|
104
|
+
"portability": "bun ../../../scripts/portability.ts",
|
|
105
|
+
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
106
|
+
},
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@emulates/sqlite": "2.1.2",
|
|
109
|
+
"hono": "4.11.9"
|
|
110
|
+
},
|
|
111
|
+
"devDependencies": {
|
|
112
|
+
"fast-check": "4.9.0",
|
|
113
|
+
"@emulates/testing": "0.1.0",
|
|
114
|
+
"@emulates/sqlite": "0.0.0-development",
|
|
115
|
+
"@emulates/parity": "0.0.0-development",
|
|
116
|
+
"@emulates/credentials": "0.0.0-development",
|
|
117
|
+
"@emulates/openapi-codegen": "0.1.0",
|
|
118
|
+
"@emulates/openapi-metadata": "0.0.0-development",
|
|
119
|
+
"@emulates/core": "0.0.0-development",
|
|
120
|
+
"@emulates/sqlite-client": "0.0.0-development",
|
|
121
|
+
"@emulates/openapi": "0.0.0-development",
|
|
122
|
+
"@emulates/service": "0.0.0-development",
|
|
123
|
+
"@emulates/ui": "0.0.0-development",
|
|
124
|
+
"@emulates/http-codec": "0.0.0-development",
|
|
125
|
+
"@emulates/adapter-node": "0.0.0-development",
|
|
126
|
+
"svix": "1.41.0",
|
|
127
|
+
"zod": "3.25.76"
|
|
128
|
+
}
|
|
129
|
+
}
|