@revenexx/cover 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenexx/cover",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Cover — revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -36,7 +36,7 @@ interface AppList {
36
36
  id: string;
37
37
  name: string;
38
38
  kind: string;
39
- public: boolean;
39
+ shared: boolean;
40
40
  owner_id: string;
41
41
  owner_name: string;
42
42
  organization_id: string | null;
@@ -93,7 +93,7 @@ function toCoverList(row: AppList): OrderList {
93
93
  id: row.id,
94
94
  name: row.name,
95
95
  kind: row.kind === "label" ? "label" : "shopping",
96
- public: Boolean(row.public),
96
+ public: Boolean(row.shared),
97
97
  owner: { id: row.owner_id, name: row.owner_name },
98
98
  positions: (row.items ?? []).map(toCoverPosition),
99
99
  createdAt: row.created_at,
@@ -127,7 +127,7 @@ export async function createOrderList(
127
127
  body: {
128
128
  name: body.name,
129
129
  kind: body.kind === "label" ? "label" : "shopping",
130
- public: Boolean(body.public),
130
+ shared: Boolean(body.public),
131
131
  owner_id: me.contactId,
132
132
  owner_name: me.name,
133
133
  organization_id: me.organizationId ?? null,
@@ -147,7 +147,7 @@ export async function updateOrderList(
147
147
 
148
148
  const meta: Record<string, unknown> = {};
149
149
  if (typeof body.name === "string" && body.name.trim()) meta.name = body.name.trim();
150
- if (typeof body.public === "boolean") meta.public = body.public;
150
+ if (typeof body.public === "boolean") meta.shared = body.public;
151
151
  if (Object.keys(meta).length > 0) {
152
152
  await sdk.call<AppList>("PUT", `/v1/orderlists/${id}`, { body: meta });
153
153
  }