@pacp/spec 3.1.0 → 3.3.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.
package/README.md CHANGED
@@ -89,6 +89,8 @@ const product: Product = {
89
89
  sku: 'MES-001',
90
90
  manufacturer: 'Moveis Artisan',
91
91
  brand: 'Artisan Home',
92
+ category: [['Móveis', 'Mesas']],
93
+ collections: ['linha_artisan', 'lancamento_2026'],
92
94
  base_price: 2500,
93
95
  weight: { value: 45, unit: 'kg' },
94
96
  dimensions: { width: 160, height: 78, depth: 90, unit: 'cm' },
package/dist/index.d.cts CHANGED
@@ -51,16 +51,18 @@ interface SalesUnit {
51
51
  interface Product {
52
52
  id: string;
53
53
  name?: string;
54
+ visibility?: "PUBLIC" | "INTERNAL";
54
55
  sku?: string;
55
56
  manufacturer?: string;
56
57
  brand?: string;
57
58
  description?: string;
58
- category?: string;
59
+ category?: string[][];
59
60
  gtin?: string;
60
61
  base_price?: number;
61
62
  unit?: string;
62
63
  images?: Image[];
63
64
  tags?: string[];
65
+ collections?: string[];
64
66
  weight?: Measure;
65
67
  dimensions?: PhysicalDimensions;
66
68
  lot_policy?: LotPolicy;
package/dist/index.d.ts CHANGED
@@ -51,16 +51,18 @@ interface SalesUnit {
51
51
  interface Product {
52
52
  id: string;
53
53
  name?: string;
54
+ visibility?: "PUBLIC" | "INTERNAL";
54
55
  sku?: string;
55
56
  manufacturer?: string;
56
57
  brand?: string;
57
58
  description?: string;
58
- category?: string;
59
+ category?: string[][];
59
60
  gtin?: string;
60
61
  base_price?: number;
61
62
  unit?: string;
62
63
  images?: Image[];
63
64
  tags?: string[];
65
+ collections?: string[];
64
66
  weight?: Measure;
65
67
  dimensions?: PhysicalDimensions;
66
68
  lot_policy?: LotPolicy;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://cdn.jsdelivr.net/npm/@pacp/spec@latest/dist/pacp.schema.json",
4
- "title": "PACP v3.1.0",
4
+ "title": "PACP v3.3.0",
5
5
  "oneOf": [
6
6
  {
7
7
  "$ref": "#/$defs/catalog_document"
@@ -298,6 +298,14 @@
298
298
  "name": {
299
299
  "type": "string"
300
300
  },
301
+ "visibility": {
302
+ "type": "string",
303
+ "enum": [
304
+ "PUBLIC",
305
+ "INTERNAL"
306
+ ],
307
+ "default": "PUBLIC"
308
+ },
301
309
  "sku": {
302
310
  "type": "string",
303
311
  "minLength": 1
@@ -349,6 +357,15 @@
349
357
  "minLength": 1
350
358
  }
351
359
  },
360
+ "collections": {
361
+ "type": "array",
362
+ "uniqueItems": true,
363
+ "items": {
364
+ "type": "string",
365
+ "minLength": 1
366
+ },
367
+ "description": "Identificadores de coleções às quais o produto pertence (ex.: \"verao_2026\", \"linha_premium\"). Cada item é um ID estável, único por catálogo, com semântica de agrupamento curatorial/sazonal."
368
+ },
352
369
  "weight": {
353
370
  "$ref": "#/$defs/measure"
354
371
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pacp/spec",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "PACP - Padrão Aberto de Catálogo e Precificação. Schema, profiles e validador para catálogos de produtos.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",