arky-sdk 0.7.115 → 0.7.117

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/admin.cjs CHANGED
@@ -130,23 +130,23 @@ var getImageUrl = (imageBlock, isBlock = true) => {
130
130
  function normalizeOrderQuoteItems(items) {
131
131
  return items.map((item) => {
132
132
  if ("type" in item) {
133
- return item;
133
+ return item.type === "booking" ? { ...item, type: "service" } : item;
134
134
  }
135
135
  if ("product_id" in item) {
136
136
  return { type: "product", ...item };
137
137
  }
138
- return { type: "booking", ...item };
138
+ return { type: "service", ...item };
139
139
  });
140
140
  }
141
141
  function normalizeOrderCheckoutItems(items) {
142
142
  return items.map((item) => {
143
143
  if ("type" in item) {
144
- return item;
144
+ return item.type === "booking" ? { ...item, type: "service" } : item;
145
145
  }
146
146
  if ("product_id" in item) {
147
147
  return { type: "product", ...item };
148
148
  }
149
- return { type: "booking", ...item };
149
+ return { type: "service", ...item };
150
150
  });
151
151
  }
152
152