@wix/himalaya-cli 0.1075.0 → 0.1076.0
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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/automations-v1/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/billing-tax-v1/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-tools-v1/src/index.d.ts +27 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/index.d.ts +243 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/data-collections-v1/src/index.d.ts +151 -19
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/donations/src/index.d.ts +10 -17
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/email-marketing-v1/src/index.d.ts +136 -20
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/faq-v2/src/index.d.ts +39 -28
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/gift-cards/src/index.d.ts +28 -17
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/redirects-v1/src/index.d.ts +2 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/seo-v1/src/index.d.ts +0 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/workflows-v1/src/index.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-business-tools.mjs +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +53 -5
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-data-collections.mjs +40 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-donations.mjs +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-email-marketing.mjs +90 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-faq.mjs +10 -0
- package/dist/cli.mjs +20 -4
- package/guides/sdk-reference.json +744 -391
- package/package.json +2 -2
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/community-club-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/events-meetups-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/owner-lite/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/restaurant-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/retail-store-owner/tier5-src/_shared/owner-module-data.ts +6 -2
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-module-data.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1076.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "3123c984ed5fe0542e00a7944eefd04225a131e1fcdd210717328c3b"
|
|
69
69
|
}
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|
|
@@ -193,11 +193,15 @@ export function ownerRecord(module: OwnerModuleId, raw: unknown): OwnerRecord {
|
|
|
193
193
|
image = field(raw, 'description.image.url') || field(raw, 'coverImage'); statusLabel = words(field(raw, 'status') || field(raw, 'state'));
|
|
194
194
|
details = [['Participants', field(raw, 'participantsCount') || field(raw, 'participants.count')], ['Steps', field(raw, 'contentSummary.stepCount')]];
|
|
195
195
|
break;
|
|
196
|
-
case 'badges':
|
|
196
|
+
case 'badges': {
|
|
197
197
|
title = field(raw, 'title'); subtitle = field(raw, 'description');
|
|
198
|
-
|
|
198
|
+
// The V4 badges API (/badges/v4/badges) names the flag `permissionsEnabled`. The newer
|
|
199
|
+
// /v2/badges service calls it `hasPermissions`; read it only as a fallback.
|
|
200
|
+
const permissionsEnabled = at(raw, 'permissionsEnabled') ?? at(raw, 'hasPermissions');
|
|
201
|
+
statusLabel = typeof permissionsEnabled === 'boolean' ? permissionsEnabled ? 'Access enabled' : 'Recognition only' : '';
|
|
199
202
|
details = [['Slug', field(raw, 'slug')], ['Background color', field(raw, 'backgroundColor')], ['Text color', field(raw, 'textColor')]];
|
|
200
203
|
break;
|
|
204
|
+
}
|
|
201
205
|
case 'reservations':
|
|
202
206
|
title = name(raw, 'reservee.firstName', 'reservee.lastName'); subtitle = field(raw, 'details.startDate'); statusLabel = words(field(raw, 'status'));
|
|
203
207
|
details = [['Arrival', subtitle], ['Party size', field(raw, 'details.partySize')], ['Email', field(raw, 'reservee.email')], ['Phone', field(raw, 'reservee.phone')]];
|