@pfdev/api-types 3.0.16 → 3.0.17

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 +1 -1
  2. package/v3.ts +11 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pfdev/api-types",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "description": "TypeScript types for PF API V3",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
package/v3.ts CHANGED
@@ -76,8 +76,10 @@ export const CardListSortSchema = Type.Union([
76
76
  Type.Literal('name_asc'),
77
77
  Type.Literal('name_desc'),
78
78
  Type.Literal('price_asc'),
79
- Type.Literal('price_desc')
80
- ], { default: 'number_asc', description: 'Sort order. Defaults to number_asc.' });
79
+ Type.Literal('price_desc'),
80
+ Type.Literal('change_asc'),
81
+ Type.Literal('change_desc')
82
+ ], { default: 'number_asc', description: 'Sort order. change_* sorts by 1-day percentage price change. Defaults to number_asc.' });
81
83
 
82
84
  export type CardListSort = Static<typeof CardListSortSchema>;
83
85
 
@@ -99,7 +101,8 @@ export const CardBatchQuerySchema = Type.Object({
99
101
  ids: Type.String({
100
102
  minLength: 1,
101
103
  description: 'Comma-separated list of card IDs (e.g. "xy1-2,base1-4"). Duplicates are deduped. Max 200 IDs per request.'
102
- })
104
+ }),
105
+ include: Type.Optional(Type.Literal('variant_prices', { description: 'Include per-variant prices and period changes on each card' }))
103
106
  });
104
107
 
105
108
  export type CardBatchQuery = Static<typeof CardBatchQuerySchema>;
@@ -567,7 +570,11 @@ export const InventorySummaryItemSchema = Type.Object(
567
570
  variant: Type.String({ description: 'Card variant (e.g. Normal, Holofoil, Reverse Holofoil)' }),
568
571
  status: Type.Union([Type.Number(), Type.Null()], {
569
572
  description: 'Numeric status code. <100 = active, >=100 = sold/past. Null when no details row exists yet.'
570
- })
573
+ }),
574
+ acquired: Type.Union([Type.String(), Type.Null()], {
575
+ description: 'User-entered acquired date. Null when not set or no details row exists yet.'
576
+ }),
577
+ created_at: Type.String({ description: 'When this inventory row was created' })
571
578
  },
572
579
  { title: 'InventorySummaryItem' }
573
580
  );