@dunbackmeadow/commerce-sdk 0.9.0 → 0.11.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.
@@ -96,6 +96,12 @@ type DunbackEventSettings = {
96
96
  serviceStyle?: "buffet" | "meal_boxes"; // default "meal_boxes"
97
97
  includeDrinks?: boolean; // default true (non-alcoholic only)
98
98
  budgetPerGuest?: number; // USD; options above it are flagged, not hidden
99
+ maxTotal?: number; // USD, hard: options above it aren't offered; show request.budget.message
100
+ maxPerGuest?: number; // USD per guest, hard
101
+ dishPreferences?: string[]; // "sushi", "seafood", "pastries", "bagels"... (no cuisine needed)
102
+ mealType?: "breakfast" | "lunch" | "dinner"; // "breakfast": pastries, bagels, eggs... whatever the time
103
+ spicyShare?: number; // 0..1 of the main servings spicy; 0 = nothing spicy
104
+ partyDiet?: ("vegetarian" | "vegan" | "halal" | "kosher" | "gluten_free" | "dairy_free" | "pescatarian")[];
99
105
  guestListDeadline?: string; // ISO; "Order Food" is offered from then on
100
106
  deliveryDeadlineLocal?: string; // default: 30 min before start, venue-local "YYYY-MM-DDTHH:mm"
101
107
  deliveryNotes?: string; // "Loading dock on Emerson St"
package/package.json CHANGED
@@ -1,72 +1,72 @@
1
- {
2
- "name": "@dunbackmeadow/commerce-sdk",
3
- "version": "0.9.0",
4
- "description": "Official Node.js/TypeScript SDK for the Dunback Meadow commerce API. Order from your app or agent and pay by card (Stripe) or USDC. Event catering is available now; more product types are coming.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/DunbackMeadow/commerce-sdk.git"
8
- },
9
- "homepage": "https://dunbackmeadow.com/developer",
10
- "bugs": {
11
- "url": "https://github.com/DunbackMeadow/commerce-sdk/issues"
12
- },
13
- "type": "module",
14
- "main": "dist/index.js",
15
- "types": "dist/index.d.ts",
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
20
- },
21
- "./react": {
22
- "types": "./dist/react/index.d.ts",
23
- "import": "./dist/react/index.js"
24
- }
25
- },
26
- "files": [
27
- "dist",
28
- "README.md",
29
- "LICENSE",
30
- "docs"
31
- ],
32
- "scripts": {
33
- "build": "tsup src/index.ts src/react/index.tsx --format esm --dts --clean --external react",
34
- "test": "vitest run",
35
- "typecheck": "tsc --noEmit"
36
- },
37
- "keywords": [
38
- "dunback-meadow",
39
- "catering",
40
- "luma",
41
- "events",
42
- "food-delivery",
43
- "x402",
44
- "usdc",
45
- "stripe",
46
- "agents"
47
- ],
48
- "author": "Dunback Meadow",
49
- "license": "MIT",
50
- "peerDependencies": {
51
- "react": ">=18"
52
- },
53
- "peerDependenciesMeta": {
54
- "react": {
55
- "optional": true
56
- }
57
- },
58
- "devDependencies": {
59
- "@types/node": "^22.10.7",
60
- "@types/react": "^18.3.12",
61
- "react": "^18.3.1",
62
- "tsup": "^8.3.5",
63
- "typescript": "^5.7.3",
64
- "vitest": "^2.1.8"
65
- },
66
- "engines": {
67
- "node": ">=18"
68
- },
69
- "publishConfig": {
70
- "access": "public"
71
- }
72
- }
1
+ {
2
+ "name": "@dunbackmeadow/commerce-sdk",
3
+ "version": "0.11.0",
4
+ "description": "Official Node.js/TypeScript SDK for the Dunback Meadow commerce API. Order from your app or agent and pay by card (Stripe) or USDC. Event catering is available now; more product types are coming.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/DunbackMeadow/commerce-sdk.git"
8
+ },
9
+ "homepage": "https://dunbackmeadow.com/developer",
10
+ "bugs": {
11
+ "url": "https://github.com/DunbackMeadow/commerce-sdk/issues"
12
+ },
13
+ "type": "module",
14
+ "main": "dist/index.js",
15
+ "types": "dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./react": {
22
+ "types": "./dist/react/index.d.ts",
23
+ "import": "./dist/react/index.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md",
29
+ "LICENSE",
30
+ "docs"
31
+ ],
32
+ "scripts": {
33
+ "build": "tsup src/index.ts src/react/index.tsx --format esm --dts --clean --external react",
34
+ "test": "vitest run",
35
+ "typecheck": "tsc --noEmit"
36
+ },
37
+ "keywords": [
38
+ "dunback-meadow",
39
+ "catering",
40
+ "luma",
41
+ "events",
42
+ "food-delivery",
43
+ "x402",
44
+ "usdc",
45
+ "stripe",
46
+ "agents"
47
+ ],
48
+ "author": "Dunback Meadow",
49
+ "license": "MIT",
50
+ "peerDependencies": {
51
+ "react": ">=18"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "react": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^22.10.7",
60
+ "@types/react": "^18.3.12",
61
+ "react": "^18.3.1",
62
+ "tsup": "^8.3.5",
63
+ "typescript": "^5.7.3",
64
+ "vitest": "^2.1.8"
65
+ },
66
+ "engines": {
67
+ "node": ">=18"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ }
72
+ }