dodalem pinia store.

dodalem dokumentacje opisujaca dzialanie store
dodalem services do komunikacji z directus
dodalem opis dzialania services
dodalem mocki danych
przygotowania do refaktoryzacji
This commit is contained in:
2026-04-30 16:35:53 +02:00
parent 5725c024dc
commit 6e3d722e69
19 changed files with 3286 additions and 29 deletions

View File

@@ -0,0 +1,109 @@
{
"models": [
{
"id": 1,
"name": "Regius Core 6"
},
{
"id": 2,
"name": "Duvell Elite 7 B26,5"
},
{
"id": 3,
"name": "Legend 6"
}
],
"clients": [
{
"id": 1,
"name": "HIENDGUITAR.COM / INDONESIA",
"country": "INDONESIA"
},
{
"id": 2,
"name": "USA | Sebastopol | USA",
"country": "USA"
},
{
"id": 3,
"name": "Mayo Stock",
"country": "POLAND"
}
],
"finishes": [
{
"value": "GLOSS",
"label": "Gloss"
},
{
"value": "SATIN",
"label": "Satin"
},
{
"value": "MAT",
"label": "Mat"
},
{
"value": "S+M",
"label": "Satin + Mat"
},
{
"value": "G+M",
"label": "Gloss + Mat"
}
],
"productionLists": [
{
"id": 1,
"name": "CZE-00"
},
{
"id": 2,
"name": "LIS-25"
},
{
"id": 3,
"name": "STY-25"
},
{
"id": 4,
"name": "SUMMIT"
}
],
"operations": [
{
"id": 1,
"code": "B",
"name": "Bejca"
},
{
"id": 2,
"code": "IZ",
"name": "Izolant"
},
{
"id": 3,
"code": "AK",
"name": "Akryl"
},
{
"id": 4,
"code": "M",
"name": "Monolith"
}
],
"colors": [
{
"id": 1,
"name": "Trans Natural Satine"
},
{
"id": 2,
"name": "Trans Natural Matt"
},
{
"id": 3,
"name": "Fluo Orange"
}
]
}

View File

@@ -0,0 +1,117 @@
{
"items": [
{
"id": 101,
"orderId": "0143/2025/1",
"orderNumber": "0143",
"orderYear": 2025,
"orderIndex": 1,
"model": "Regius Core 6",
"client": "HIENDGUITAR.COM / INDONESIA",
"finish": "S+M",
"productionLists": ["CZE-00"],
"timelinePreview": {
"body": [
{
"id": 9001,
"code": "B",
"label": "Bejca",
"date": "2026-04-20",
"status": "done"
},
{
"id": 9002,
"code": "IZ",
"label": "Izolant",
"date": "2026-04-22",
"status": "done"
},
{
"id": 9003,
"code": "AK",
"label": "Akryl",
"date": "2026-04-24",
"status": "done"
}
],
"neck": [
{
"id": 9004,
"code": "B",
"label": "Bejca",
"date": "2026-04-21",
"status": "done"
},
{
"id": 9005,
"code": "IZ",
"label": "Izolant",
"date": "2026-04-23",
"status": "done"
}
]
}
},
{
"id": 102,
"orderId": "0367/2025/1",
"orderNumber": "0367",
"orderYear": 2025,
"orderIndex": 1,
"model": "Duvell Elite 7 B26,5",
"client": "USA | Sebastopol | USA",
"finish": "G+M",
"productionLists": ["LIS-25"],
"timelinePreview": {
"body": [
{
"id": 9011,
"code": "B",
"label": "Bejca",
"date": "2026-04-18",
"status": "done"
},
{
"id": 9012,
"code": "M",
"label": "Monolith",
"date": "2026-04-25",
"status": "in_progress"
}
],
"neck": [
{
"id": 9013,
"code": "IZ",
"label": "Izolant",
"date": "2026-04-19",
"status": "done"
}
]
}
},
{
"id": 103,
"orderId": "0029/2024/12",
"orderNumber": "0029",
"orderYear": 2024,
"orderIndex": 12,
"model": "Legend 6",
"client": "Mayo Stock",
"finish": "MAT",
"productionLists": ["STY-25", "SUMMIT"],
"timelinePreview": {
"body": [
{
"id": 9021,
"code": "B",
"label": "Bejca",
"date": "2026-04-14",
"status": "done"
}
],
"neck": []
}
}
]
}

View File

@@ -0,0 +1,93 @@
{
"101": {
"productId": 101,
"orderId": "0143/2025/1",
"sourceUrl": "http://10.8.0.6/mayo2/index.php?&modul=14&id_zamowienia=8055&id_zestawu=35994",
"lastFetchedAt": "2026-04-22T10:30:00Z",
"specification": {
"sections": [
{
"key": "szyjka",
"label": "Szyjka",
"fields": [
{
"key": "radius",
"label": "Radius",
"values": ["GITARA SETIUS/REGIUS/CUSTOM/ 16"]
},
{
"key": "drewno-szyjka",
"label": "Drewno szyjka",
"values": [
"Klon amerykanski-Mahon-Wenge-Amazakoe (11 czesci)",
"Regius Core/ Profil laczenia szyjki z korpusem / wyzlobienie schodkowe"
]
}
]
},
{
"key": "kolor",
"label": "Kolor",
"fields": [
{
"key": "kolor-top",
"label": "Kolor top",
"values": ["T-NAT-S/ Trans Natural Satine"]
},
{
"key": "kolor-korpus",
"label": "Kolor korpus",
"values": ["T-NAT-M/ Trans Natural Matt"]
}
]
}
]
},
"diff": []
},
"102": {
"productId": 102,
"orderId": "0367/2025/1",
"sourceUrl": "http://10.8.0.6/mayo2/index.php?id_zestawu=37692&id_zamowienia=8286&modul=14&pozycja=",
"lastFetchedAt": "2026-04-22T10:35:00Z",
"specification": {
"sections": [
{
"key": "konstrukcja",
"label": "Konstrukcja",
"fields": [
{
"key": "wersja",
"label": "Wersja",
"values": ["BARYTON 26.5"]
},
{
"key": "konstrukcja",
"label": "Konstrukcja",
"values": ["bolt-on (gryf przykrecany)"]
}
]
},
{
"key": "elektronika",
"label": "Elektronika",
"fields": [
{
"key": "przetworniki-gitara",
"label": "Przetworniki gitara",
"values": ["SEYMOUR DUNCAN / Pegasus 7 / Bridge Humbucker"]
}
]
}
]
},
"diff": [
{
"path": "kolor.kolor-top",
"type": "changed",
"initial": "Black",
"current": "Fluo Orange"
}
]
}
}

View File

@@ -0,0 +1,111 @@
{
"101": {
"productId": 101,
"events": [
{
"id": 9001,
"productId": 101,
"partId": 501,
"partType": "BODY",
"type": "operation",
"operationId": 1,
"operationCode": "B",
"operationName": "Bejca",
"date": "2026-04-20",
"note": null,
"photosCount": 0
},
{
"id": 9002,
"productId": 101,
"partId": 501,
"partType": "BODY",
"type": "operation",
"operationId": 2,
"operationCode": "IZ",
"operationName": "Izolant",
"date": "2026-04-22",
"note": null,
"photosCount": 1
},
{
"id": 9006,
"productId": 101,
"partId": 501,
"partType": "BODY",
"type": "note",
"operationId": null,
"operationCode": null,
"operationName": null,
"date": "2026-04-23",
"note": "Do sprawdzenia rownomiernosc koloru na krawedzi topu.",
"photosCount": 2
}
],
"timelinePreview": {
"body": [
{
"id": 9001,
"code": "B",
"label": "Bejca",
"date": "2026-04-20",
"status": "done"
},
{
"id": 9002,
"code": "IZ",
"label": "Izolant",
"date": "2026-04-22",
"status": "done"
}
],
"neck": [
{
"id": 9004,
"code": "B",
"label": "Bejca",
"date": "2026-04-21",
"status": "done"
}
]
}
},
"102": {
"productId": 102,
"events": [
{
"id": 9011,
"productId": 102,
"partId": 511,
"partType": "BODY",
"type": "operation",
"operationId": 1,
"operationCode": "B",
"operationName": "Bejca",
"date": "2026-04-18",
"note": null,
"photosCount": 0
}
],
"timelinePreview": {
"body": [
{
"id": 9011,
"code": "B",
"label": "Bejca",
"date": "2026-04-18",
"status": "done"
}
],
"neck": []
}
},
"103": {
"productId": 103,
"events": [],
"timelinePreview": {
"body": [],
"neck": []
}
}
}