@pfdev/api-types 3.0.33 → 3.0.34

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 +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pfdev/api-types",
3
- "version": "3.0.33",
3
+ "version": "3.0.34",
4
4
  "description": "TypeScript types for PF API V3",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
package/v3.ts CHANGED
@@ -1249,9 +1249,9 @@ export const InventoryPatchTransactionSchema = Type.Object(
1249
1249
  transaction_type: Type.Number(),
1250
1250
  transaction_date: Type.String({ description: 'ISO date (YYYY-MM-DD)' }),
1251
1251
  amount: Type.Number(),
1252
- currency: Type.Optional(Type.String({ minLength: 3, maxLength: 3, default: 'USD' })),
1253
- description: Type.Optional(Type.String()),
1254
- source_platform: Type.Optional(Type.String())
1252
+ currency: Type.Optional(Type.String({ minLength: 3, maxLength: 3, default: 'USD', description: 'Currency code from /currencies. Unknown codes are rejected with 400.' })),
1253
+ description: Type.Optional(Type.Union([Type.String(), Type.Null()])),
1254
+ source_platform: Type.Optional(Type.Union([Type.String(), Type.Null()]))
1255
1255
  },
1256
1256
  { title: 'InventoryPatchTransaction' }
1257
1257
  );