@pfdev/api-types 3.0.4 → 3.0.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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/v3.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pfdev/api-types",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "TypeScript types for PF API V3",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
@@ -9,6 +9,7 @@
9
9
  "v3.ts"
10
10
  ],
11
11
  "scripts": {
12
+ "watch": "chokidar '../pfapi-fs/src/routes/v3/*/schemas.ts' -c 'npm run generate'",
12
13
  "verify": "tsc --noEmit v3.ts",
13
14
  "generate": "bash generate-types.sh",
14
15
  "preversion": "npm run generate && git add v3.ts",
@@ -23,6 +24,7 @@
23
24
  "license": "MIT",
24
25
  "devDependencies": {
25
26
  "@sinclair/typebox": "^0.34.52",
27
+ "chokidar-cli": "^3.0.0",
26
28
  "typescript": "^7.0.2"
27
29
  }
28
30
  }
package/v3.ts CHANGED
@@ -23,7 +23,11 @@ export const CardSchema = Type.Object(
23
23
  rarity: Type.Optional(Type.String({ description: 'Card rarity' })),
24
24
  images: CardImagesSchema,
25
25
  setid: Type.String({ description: 'Set this card belongs to' }),
26
- setname: Type.String({ description: 'Name of the set' })
26
+ setname: Type.String({ description: 'Name of the set' }),
27
+ price: Type.Optional(Type.Number({ description: 'Lowest price across all variants' })),
28
+ change_1d: Type.Optional(Type.Number({ description: '1-day price change as a percentage' })),
29
+ change_1d_value: Type.Optional(Type.Number({ description: '1-day price change in dollars' })),
30
+ variants: Type.Optional(Type.Array(Type.String(), { description: 'Available variants for this card' }))
27
31
  },
28
32
  {
29
33
  title: 'Card',