Skip to content

Commit

Permalink
LPD-34676 Commerce site init data-sets JSONs
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcobrunialti committed Sep 23, 2024
1 parent 6d0a45f commit 12c8e9f
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"dataSet": {
"externalReferenceCode": "commerce-pending-order-items-data-set",
"label": "Pending Order Items",
"restApplication": "/headless-commerce-delivery-cart/v1.0",
"restEndpoint": "/v1.0/carts/{cartId}/cart-items",
"restSchema": "CartItem"
},
"views": [
{
"actions": [
{
"confirmationMessage_i18n": {
},
"icon": "view",
"label_i18n": {
"en_US": "View"
},
"method": "",
"modalSize": "",
"permissionKey": "",
"title_i18n": {
},
"type": "link",
"url": "{productURLs.en_US}"
},
{
"confirmationMessage_i18n": {
},
"icon": "trash",
"label_i18n": {
"en_US": "Remove"
},
"method": "DELETE",
"modalSize": "",
"permissionKey": "",
"title_i18n": {
},
"type": "async",
"url": "/o/headless-commerce-delivery-cart/v1.0/cart-items/{id}"
}
],
"externalReferenceCode": "commerce-pending-order-items-data-set-view",
"label": "Pending Order Items View",
"visualizationModes": {
"table": [
{
"label_i18n": {
"en_US": ""
},
"name": "thumbnail",
"renderer": "image",
"sortable": false,
"type": "string"
},
{
"label_i18n": {
"en_US": "SKU"
},
"name": "sku",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Name"
},
"name": "name",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "List Price"
},
"name": "price.priceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Promotion Price"
},
"name": "price.promoPriceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Discount"
},
"name": "price.discountFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Quantity"
},
"name": "quantity",
"renderer": "default",
"sortable": true,
"type": "integer"
},
{
"label_i18n": {
"en_US": "UOM"
},
"name": "skuUnitOfMeasure.name",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Total"
},
"name": "price.finalPriceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
}
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"dataSet": {
"externalReferenceCode": "commerce-pending-orders-data-set",
"label": "Pending Orders",
"restApplication": "/headless-commerce-delivery-cart/v1.0",
"restEndpoint": "/v1.0/channels/{channelId}/carts",
"restSchema": "Cart"
},
"views": [
{
"actions": [
{
"confirmationMessage_i18n": {
},
"icon": "view",
"label_i18n": {
"en_US": "View"
},
"method": "",
"modalSize": "",
"permissionKey": "",
"title_i18n": {
},
"type": "link",
"url": "cart/{id}"
}
],
"externalReferenceCode": "commerce-pending-orders-data-set-view",
"label": "Pending Orders View",
"visualizationModes": {
"table": [
{
"label_i18n": {
"en_US": "Order ID"
},
"name": "id",
"renderer": "actionLink",
"sortable": true,
"type": "integer"
},
{
"label_i18n": {
"en_US": "Order Name"
},
"name": "name",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Order Date"
},
"name": "createDate",
"renderer": "Date",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "ERC"
},
"name": "externalReferenceCode",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Purchase Order Number"
},
"name": "purchaseOrderNumber",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Account"
},
"name": "account",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Amount"
},
"name": "summary.totalFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Created by"
},
"name": "author",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Status"
},
"name": "workflowStatusInfo.label_i18n",
"renderer": "label",
"sortable": true,
"type": "string"
}
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"dataSet": {
"externalReferenceCode": "commerce-placed-order-items-data-set",
"label": "Placed Order Items",
"restApplication": "/headless-commerce-delivery-order/v1.0",
"restEndpoint": "/v1.0/channels/{placedOrderId}/placed-order-items",
"restSchema": "PlacedOrderItem"
},
"views": [
{
"actions": [
{
"confirmationMessage_i18n": {
},
"icon": "view",
"label_i18n": {
"en_US": "View"
},
"method": "",
"modalSize": "",
"permissionKey": "",
"title_i18n": {
},
"type": "link",
"url": "../p/{productURLs.en_US}"
}
],
"externalReferenceCode": "commerce-placed-order-items-data-set-view",
"label": "Placed Order Items View",
"visualizationModes": {
"table": [
{
"label_i18n": {
"en_US": ""
},
"name": "thumbnail",
"renderer": "image",
"sortable": false,
"type": "string"
},
{
"label_i18n": {
"en_US": "SKU"
},
"name": "sku",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Name"
},
"name": "name",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "List Price"
},
"name": "price.priceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Promotion Price"
},
"name": "price.promoPriceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Discount"
},
"name": "price.discountFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Quantity"
},
"name": "quantity",
"renderer": "default",
"sortable": true,
"type": "integer"
},
{
"label_i18n": {
"en_US": "UOM"
},
"name": "skuUnitOfMeasure.name",
"renderer": "default",
"sortable": true,
"type": "string"
},
{
"label_i18n": {
"en_US": "Total"
},
"name": "price.finalPriceFormatted",
"renderer": "default",
"sortable": true,
"type": "string"
}
]
}
}
]
}
Loading

0 comments on commit 12c8e9f

Please sign in to comment.