@pacp/spec 3.4.1 → 3.5.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/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/pacp.schema.json +16 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -475,6 +475,10 @@ interface PriceList {
|
|
|
475
475
|
interface Catalog {
|
|
476
476
|
id: string;
|
|
477
477
|
name?: string;
|
|
478
|
+
/** Observações públicas sobre o catálogo. Consumidores PODEM exibir. */
|
|
479
|
+
notes?: string;
|
|
480
|
+
/** Anotações não-públicas. Consumidores que geram catálogos públicos DEVEM omitir. Ver spec §9.1. */
|
|
481
|
+
internal_notes?: string;
|
|
478
482
|
default_price_list_id?: string;
|
|
479
483
|
price_lists?: PriceList[];
|
|
480
484
|
[key: `x-${string}`]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,10 @@ interface PriceList {
|
|
|
475
475
|
interface Catalog {
|
|
476
476
|
id: string;
|
|
477
477
|
name?: string;
|
|
478
|
+
/** Observações públicas sobre o catálogo. Consumidores PODEM exibir. */
|
|
479
|
+
notes?: string;
|
|
480
|
+
/** Anotações não-públicas. Consumidores que geram catálogos públicos DEVEM omitir. Ver spec §9.1. */
|
|
481
|
+
internal_notes?: string;
|
|
478
482
|
default_price_list_id?: string;
|
|
479
483
|
price_lists?: PriceList[];
|
|
480
484
|
[key: `x-${string}`]: unknown;
|
package/dist/pacp.schema.json
CHANGED
|
@@ -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.
|
|
4
|
+
"title": "PACP v3.5.0",
|
|
5
5
|
"oneOf": [
|
|
6
6
|
{
|
|
7
7
|
"$ref": "#/$defs/catalog_document"
|
|
@@ -183,6 +183,14 @@
|
|
|
183
183
|
"type": "string",
|
|
184
184
|
"minLength": 1
|
|
185
185
|
},
|
|
186
|
+
"notes": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"description": "Observações públicas sobre o catálogo (vigência, escopo, instruções de uso). Texto livre, multilinha permitido. Consumidores PODEM exibir."
|
|
189
|
+
},
|
|
190
|
+
"internal_notes": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"description": "Anotações internas (não-públicas) sobre o catálogo. Consumidores que geram vitrines/catálogos públicos DEVEM omitir este campo. Ver spec §9.1."
|
|
193
|
+
},
|
|
186
194
|
"default_price_list_id": {
|
|
187
195
|
"type": "string",
|
|
188
196
|
"minLength": 1
|
|
@@ -331,7 +339,7 @@
|
|
|
331
339
|
},
|
|
332
340
|
"minItems": 1
|
|
333
341
|
},
|
|
334
|
-
"description": "Categorias
|
|
342
|
+
"description": "Categorias hierárquicas do produto. Cada item é um path da raiz à folha, ex.: [[\"Móveis\", \"Sofá\"], [\"Promoções\"]]."
|
|
335
343
|
},
|
|
336
344
|
"gtin": {
|
|
337
345
|
"type": "string",
|
|
@@ -364,7 +372,7 @@
|
|
|
364
372
|
"type": "string",
|
|
365
373
|
"minLength": 1
|
|
366
374
|
},
|
|
367
|
-
"description": "Identificadores de
|
|
375
|
+
"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
376
|
},
|
|
369
377
|
"weight": {
|
|
370
378
|
"$ref": "#/$defs/measure"
|
|
@@ -401,7 +409,7 @@
|
|
|
401
409
|
"items": {
|
|
402
410
|
"$ref": "#/$defs/supplied_material"
|
|
403
411
|
},
|
|
404
|
-
"description": "Materiais consumidos pelo produto, com sourcing factory/customer. Ver
|
|
412
|
+
"description": "Materiais consumidos pelo produto, com sourcing factory/customer. Ver seção 4.8."
|
|
405
413
|
},
|
|
406
414
|
"ruleset_ids": {
|
|
407
415
|
"type": "array",
|
|
@@ -1190,7 +1198,7 @@
|
|
|
1190
1198
|
"position": {
|
|
1191
1199
|
"type": "integer",
|
|
1192
1200
|
"minimum": 0,
|
|
1193
|
-
"description": "Ordem
|
|
1201
|
+
"description": "Ordem explícita de exibição; quando presente, consumidores DEVEM ordenar por position crescente."
|
|
1194
1202
|
},
|
|
1195
1203
|
"type": {
|
|
1196
1204
|
"type": "string",
|
|
@@ -1305,7 +1313,7 @@
|
|
|
1305
1313
|
}
|
|
1306
1314
|
}
|
|
1307
1315
|
],
|
|
1308
|
-
"description": "Quantidade de insumo
|
|
1316
|
+
"description": "Quantidade de insumo necessária. Aceita value fixo (number > 0) OU table_id (lookup). Sempre exige unit."
|
|
1309
1317
|
},
|
|
1310
1318
|
"supplied_material_cost": {
|
|
1311
1319
|
"type": "object",
|
|
@@ -1491,7 +1499,7 @@
|
|
|
1491
1499
|
}
|
|
1492
1500
|
}
|
|
1493
1501
|
],
|
|
1494
|
-
"description": "Insumo consumido pelo produto, com regra de quem fornece (
|
|
1502
|
+
"description": "Insumo consumido pelo produto, com regra de quem fornece (fábrica ou cliente). Ver seção 4.8 da spec."
|
|
1495
1503
|
}
|
|
1496
1504
|
}
|
|
1497
|
-
}
|
|
1505
|
+
}
|
package/package.json
CHANGED