feat(dashboard, js-sdk): shipping option type mngmt dashboard (#13208)

* chore(types, api): support shipping option type api endpoints

* core flows

* api

* typos

* compiler errors

* integration tests

* remove metadata

* changeset

* modify test

* upsert

* change remote query

* minor to patch

* description optional

* chore(dashboard, js-sdk): shipping option type management on admin dashboard

* description optional

* woops my bad

* my bad again

* create and edit

* prettier

* build code from label

* remove metadata route

* remove some translation text that is not used

* remove unsued files

* changeset

* adapt test

* fix test

* suggestion

---------

Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
This commit is contained in:
William Bouchard
2025-08-14 15:21:33 -04:00
committed by GitHub
co-authored by william bouchard
parent 257e71f988
commit 4b3c43fe92
36 changed files with 1344 additions and 5 deletions
@@ -10411,6 +10411,77 @@
],
"additionalProperties": false
},
"shippingOptionTypes": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"create": {
"type": "object",
"properties": {
"header": {
"type": "string"
},
"hint": {
"type": "string"
},
"successToast": {
"type": "string"
}
},
"required": ["header", "hint", "successToast"],
"additionalProperties": false
},
"edit": {
"type": "object",
"properties": {
"header": {
"type": "string"
},
"successToast": {
"type": "string"
}
},
"required": ["header", "successToast"],
"additionalProperties": false
},
"delete": {
"type": "object",
"properties": {
"confirmation": {
"type": "string"
},
"successToast": {
"type": "string"
}
},
"required": ["confirmation", "successToast"],
"additionalProperties": false
},
"fields": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["label", "code", "description"],
"additionalProperties": false
}
},
"required": ["domain", "subtitle", "create", "edit", "delete", "fields"],
"additionalProperties": false
},
"productTypes": {
"type": "object",
"properties": {
@@ -2799,6 +2799,28 @@
}
}
},
"shippingOptionTypes": {
"domain": "Shipping Option Types",
"subtitle": "Organize your shipping options into types.",
"create": {
"header": "Create Shipping Option Type",
"hint": "Create a new shipping option type to categorize your shipping options.",
"successToast": "Shipping option type {{label}} was successfully created."
},
"edit": {
"header": "Edit Shipping Option Type",
"successToast": "Shipping option type {{label}} was successfully updated."
},
"delete": {
"confirmation": "You are about to delete the shipping option type \"{{label}}\". This action cannot be undone.",
"successToast": "Shipping option type \"{{label}}\" was successfully deleted."
},
"fields": {
"label": "Label",
"code": "Code",
"description": "Description"
}
},
"productTypes": {
"domain": "Product Types",
"subtitle": "Organize your products into types.",
@@ -3051,4 +3073,4 @@
"seconds_one": "Second",
"seconds_other": "Seconds"
}
}
}