diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-order-items/data-set.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-order-items/data-set.json new file mode 100644 index 00000000000000..6e799d05313f9b --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-order-items/data-set.json @@ -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" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-orders/data-set.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-orders/data-set.json new file mode 100644 index 00000000000000..c70a9bd80e9d5b --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/pending-orders/data-set.json @@ -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" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-order-items/data-set.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-order-items/data-set.json new file mode 100644 index 00000000000000..eea999dfee5eca --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-order-items/data-set.json @@ -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" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-orders/data-set.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-orders/data-set.json new file mode 100644 index 00000000000000..811d32ab0903f9 --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/data-sets/placed-orders/data-set.json @@ -0,0 +1,117 @@ +{ + "dataSet": { + "externalReferenceCode": "commerce-placed-orders-data-set", + "label": "Placed Orders", + "restApplication": "/headless-commerce-delivery-order/v1.0", + "restEndpoint": "/v1.0/channels/{channelId}/placed-orders", + "restSchema": "PlacedOrder" + }, + "views": [ + { + "actions": [ + { + "confirmationMessage_i18n": { + }, + "icon": "view", + "label_i18n": { + "en_US": "View" + }, + "method": "", + "modalSize": "", + "permissionKey": "", + "title_i18n": { + }, + "type": "link", + "url": "order/{id}" + } + ], + "externalReferenceCode": "commerce-placed-orders-data-set-view", + "label": "Placed 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": "orderStatusInfo.label_i18n", + "renderer": "label", + "sortable": true, + "type": "string" + } + ] + } + } + ] +} \ No newline at end of file