@wix/himalaya-cli 0.1871.0 → 0.1873.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/core/dev-server/src/app-module.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/portfolio/src/index.d.ts +19 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ab91dfb9c348c8c78f942a5b88ba90df456c5b436e135d97791d5dd95d6a40dc.bin → a9d34f09c807f1cde9ab000737f0f7b849670c37908aa47cb77889b7e01d34cb.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +506 -323
- package/dist/preview-assets.generated.bin +0 -0
- package/fixtures/wix-canned.json +8 -0
- package/guides/release-notes.md +18 -0
- package/guides/sdk-reference.json +8 -1
- package/package.json +2 -2
- package/template-icons/professional-services.png +0 -0
- package/templates/bare-fashion/config.ts +37 -2
- package/templates/bare-fashion/dev/index.ts +4006 -48
- package/templates/bare-fashion/himalaya.content.json +15 -0
- package/templates/bare-fashion/tier5-src/_shared/member-account-routes.ts +56 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/branded-lite/dev/index.ts +2 -1
- package/templates/branded-lite/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-coupons/index.ts +13 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio/index.ts +90 -9
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +53 -4
- package/templates/branded-lite/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/community-club/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/conference/config.ts +43 -1
- package/templates/conference/dev/index.ts +4127 -0
- package/templates/conference/himalaya.content.json +18 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/conference/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/conference/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/events-meetups/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/gym-fitness/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/medical-services/config.ts +42 -0
- package/templates/medical-services/dev/index.ts +4136 -0
- package/templates/medical-services/himalaya.content.json +18 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/medical-services/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/nonprofit-cause/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/podcast-creator/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/portfolio-creative/dev/index.ts +2 -1
- package/templates/portfolio-creative/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio/index.ts +90 -9
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +53 -4
- package/templates/portfolio-creative/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/professional-services/README.md +55 -0
- package/templates/professional-services/config.ts +436 -0
- package/templates/professional-services/dev/index.ts +44772 -0
- package/templates/professional-services/himalaya.content.json +100 -0
- package/templates/professional-services/himalaya.template.json +16 -0
- package/templates/professional-services/icon.png +0 -0
- package/templates/professional-services/platforms.json +1 -0
- package/templates/professional-services/tier5-src/_shared/app-locale.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/booking-location.ts +147 -0
- package/templates/professional-services/tier5-src/_shared/booking-session.ts +224 -0
- package/templates/professional-services/tier5-src/_shared/branded-lite-hosted.ts +282 -0
- package/templates/professional-services/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-copy.ts +40 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-history.ts +51 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-model.ts +56 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-presenter.ts +587 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-transport.ts +164 -0
- package/templates/professional-services/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/professional-services/tier5-src/_shared/collection-contract.ts +232 -0
- package/templates/professional-services/tier5-src/_shared/collection-query.ts +201 -0
- package/templates/professional-services/tier5-src/_shared/collection-service.ts +429 -0
- package/templates/professional-services/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/professional-services/tier5-src/_shared/engine-intl.ts +538 -0
- package/templates/professional-services/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/professional-services/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/professional-services/tier5-src/_shared/faq-list.ts +405 -0
- package/templates/professional-services/tier5-src/_shared/featured-event.ts +63 -0
- package/templates/professional-services/tier5-src/_shared/group-member-count.ts +15 -0
- package/templates/professional-services/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/professional-services/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/professional-services/tier5-src/_shared/himi-account.ts +222 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-hidden.ts +66 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-post-row.ts +214 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-saved.ts +64 -0
- package/templates/professional-services/tier5-src/_shared/himi-booking-saved.ts +88 -0
- package/templates/professional-services/tier5-src/_shared/himi-bookings.ts +318 -0
- package/templates/professional-services/tier5-src/_shared/himi-copy.ts +123 -0
- package/templates/professional-services/tier5-src/_shared/himi-events.ts +92 -0
- package/templates/professional-services/tier5-src/_shared/himi-media.ts +33 -0
- package/templates/professional-services/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/professional-services/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/professional-services/tier5-src/_shared/host-events.ts +66 -0
- package/templates/professional-services/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance-purchase.ts +235 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/professional-services/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/professional-services/tier5-src/_shared/inbox-rooms.ts +163 -0
- package/templates/professional-services/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/professional-services/tier5-src/_shared/member-access.ts +63 -0
- package/templates/professional-services/tier5-src/_shared/member-account-routes.ts +56 -0
- package/templates/professional-services/tier5-src/_shared/member-avatar.ts +76 -0
- package/templates/professional-services/tier5-src/_shared/member-bookings.ts +107 -0
- package/templates/professional-services/tier5-src/_shared/member-read.ts +82 -0
- package/templates/professional-services/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/professional-services/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/professional-services/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/professional-services/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/professional-services/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/professional-services/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/professional-services/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/professional-services/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/professional-services/tier5-src/_shared/result-snackbar.ts +26 -0
- package/templates/professional-services/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/professional-services/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/professional-services/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/professional-services/tier5-src/_shared/staff-name.ts +18 -0
- package/templates/professional-services/tier5-src/_shared/weekly-goal.ts +111 -0
- package/templates/professional-services/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/professional-services/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/professional-services/tier5-src/_shared/wix-service-price.ts +146 -0
- package/templates/professional-services/tier5-src/business-chat/index.ts +797 -0
- package/templates/professional-services/tier5-src/business-contact/index.ts +6 -0
- package/templates/professional-services/tier5-src/himi-blog-feed/index.ts +444 -0
- package/templates/professional-services/tier5-src/himi-blog-post/index.ts +1239 -0
- package/templates/professional-services/tier5-src/himi-booking-account/index.ts +278 -0
- package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +475 -0
- package/templates/professional-services/tier5-src/himi-booking-service/index.ts +1197 -0
- package/templates/professional-services/tier5-src/himi-booking-services/index.ts +795 -0
- package/templates/professional-services/tier5-src/himi-booking-time/index.ts +1840 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-coupons/index.ts +96 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-faq/index.ts +6 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-file-share/index.ts +12 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-group/index.ts +310 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-group-about/index.ts +240 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-notifications/index.ts +263 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-plans/index.ts +498 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-portfolio/index.ts +136 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-portfolio-project/index.ts +198 -0
- package/templates/professional-services/tier5-src/himi-events-detail/index.ts +1306 -0
- package/templates/professional-services/tier5-src/himi-events-list/index.ts +171 -0
- package/templates/professional-services/tier5-src/himi-events-my-events/index.ts +227 -0
- package/templates/professional-services/tier5-src/himi-events-rsvp/index.ts +230 -0
- package/templates/professional-services/tier5-src/himi-professional-services-community/index.ts +318 -0
- package/templates/professional-services/tier5-src/himi-professional-services-home/index.ts +772 -0
- package/templates/professional-services/tier5-src/himi-store-account/index.ts +1514 -0
- package/templates/professional-services/tier5-src/wix-spaces-coupon-detail/index.ts +43 -0
- package/templates/professional-services/tier5-src/wix-spaces-my-subscriptions/index.ts +89 -0
- package/templates/professional-services/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/professional-services/tokens.json +456 -0
- package/templates/restaurant/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/salon-spa/config.ts +42 -0
- package/templates/salon-spa/dev/index.ts +4136 -0
- package/templates/salon-spa/himalaya.content.json +18 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/salon-spa/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/wholesale-store/config.ts +43 -1
- package/templates/wholesale-store/dev/index.ts +4136 -0
- package/templates/wholesale-store/himalaya.content.json +18 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/wholesale-store/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/yoga-studio/tier5-src/himi-events-list/index.ts +5 -1
|
@@ -2,8 +2,16 @@ import { descriptionBody } from "../_shared/rich-body.js";
|
|
|
2
2
|
// himi-branded-lite-portfolio-project — real Wix Portfolio project detail.
|
|
3
3
|
// The public project row is resolved again from Wix, then its ordered project
|
|
4
4
|
// items supply the actual image/video/text story. No sample project is invented.
|
|
5
|
+
//
|
|
6
|
+
// The project's collection (`collection`), its "Location" detail (`location`), its Client, Year and
|
|
7
|
+
// Duration details as fact chips (`facts`) and every other detail (`details`) come from the same
|
|
8
|
+
// list read (_shared/portfolio-details.ts). Each collapses when the project has none. `share`
|
|
9
|
+
// opens the system share sheet with the project's page on the site when Wix gives one, else the
|
|
10
|
+
// site's own address when the screen passes it (`siteUrl` load param); with neither, no share.
|
|
5
11
|
import { defineService } from "@himalaya/state";
|
|
6
|
-
import { listProjectItems, listProjects, portfolioCoverRef, type WixPortfolioProjectItem } from "@himalaya/wix-portfolio";
|
|
12
|
+
import { listCollections, listProjectItems, listProjects, portfolioCoverRef, type WixPortfolioProjectItem } from "@himalaya/wix-portfolio";
|
|
13
|
+
import { share as shareSheet } from "@himalaya/share";
|
|
14
|
+
import { collectionNames, projectCollection, projectDetails, type ProjectDetailRow, type ProjectFact } from "../_shared/portfolio-details.js";
|
|
7
15
|
import { wixMediaUrl, WIX_DETAIL_IMAGE } from "@himalaya/wix-media";
|
|
8
16
|
import { copyParam, stashCopy } from "../_shared/himi-copy.js";
|
|
9
17
|
import { presence, type PresenceFlags } from "../_shared/detail-presence.js";
|
|
@@ -41,8 +49,24 @@ interface State extends PresenceFlags {
|
|
|
41
49
|
noItems: boolean;
|
|
42
50
|
hideContent: boolean;
|
|
43
51
|
noEmpty: boolean;
|
|
52
|
+
collection: string;
|
|
53
|
+
noCollection: boolean;
|
|
54
|
+
location: string;
|
|
55
|
+
noLocation: boolean;
|
|
56
|
+
facts: ProjectFact[];
|
|
57
|
+
noFacts: boolean;
|
|
58
|
+
details: ProjectDetailRow[];
|
|
59
|
+
noDetails: boolean;
|
|
60
|
+
/** The project's page on the published site ("" when Wix gives none: no share). */
|
|
61
|
+
shareUrl: string;
|
|
62
|
+
noShare: boolean;
|
|
44
63
|
}
|
|
45
64
|
|
|
65
|
+
const NO_DETAILS = {
|
|
66
|
+
collection: "", noCollection: true, location: "", noLocation: true, facts: [] as ProjectFact[], noFacts: true,
|
|
67
|
+
details: [] as ProjectDetailRow[], noDetails: true, shareUrl: "", noShare: true,
|
|
68
|
+
};
|
|
69
|
+
|
|
46
70
|
function inputId(): string {
|
|
47
71
|
const input = (globalThis as { himalaya?: { input?: { id?: unknown } } }).himalaya?.input;
|
|
48
72
|
return typeof input?.id === "string" ? input.id : "";
|
|
@@ -101,15 +125,22 @@ function unavailableProject(state: State, status: "ready" | "error", id: string,
|
|
|
101
125
|
coverImage: "",
|
|
102
126
|
items: [],
|
|
103
127
|
emptyText,
|
|
128
|
+
...NO_DETAILS,
|
|
104
129
|
// A project that is not there is `missing`; one that failed to load is not — the
|
|
105
130
|
// error card speaks, and nothing claims the project was removed.
|
|
106
131
|
...presence(status === "ready" ? "missing" : "failed"),
|
|
107
132
|
});
|
|
108
133
|
}
|
|
109
134
|
|
|
110
|
-
|
|
135
|
+
/** A project page on the web (https only): the share sheet carries nothing else. */
|
|
136
|
+
function shareUrlOf(raw: unknown): string {
|
|
137
|
+
const url = typeof raw === "string" ? raw.trim() : "";
|
|
138
|
+
return /^https:\/\/[^\s]+$/i.test(url) ? url : "";
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const svc = defineService<State, { load: (state: State, arg?: unknown) => Promise<State>; share: (state: State) => Promise<State> }>("himiBrandedPortfolioProject", {
|
|
111
142
|
state: derive({
|
|
112
|
-
status: "loading", id: "", title: "", initial: "", description: "", coverImage: "", items: [], emptyText: "",
|
|
143
|
+
status: "loading", id: "", title: "", initial: "", description: "", coverImage: "", items: [], emptyText: "", ...NO_DETAILS,
|
|
113
144
|
isLoading: true, notLoading: false, isErrored: false, notErrored: true,
|
|
114
145
|
hasCover: false, noCover: true, hasItems: false, noItems: true, hideContent: true, noEmpty: true, ...presence("loading"),
|
|
115
146
|
}),
|
|
@@ -119,7 +150,11 @@ const svc = defineService<State, { load: (state: State, arg?: unknown) => Promis
|
|
|
119
150
|
const id = inputId();
|
|
120
151
|
if (!id) return unavailableProject(state, "ready", "", copyParam("portfolioProject.emptyText", "This project is no longer available."));
|
|
121
152
|
try {
|
|
122
|
-
const projects = await
|
|
153
|
+
const [projects, collections] = await Promise.all([
|
|
154
|
+
listProjects(100),
|
|
155
|
+
// The collection name is extra: a failed read leaves the project without it.
|
|
156
|
+
listCollections(100).then((r) => r.collections ?? []).catch(() => []),
|
|
157
|
+
]);
|
|
123
158
|
const project = (projects.projects ?? []).find((candidate) => candidate.id === id && candidate.hidden !== true);
|
|
124
159
|
if (!project) return unavailableProject(state, "ready", id, copyParam("portfolioProject.emptyText", "This project is no longer available."));
|
|
125
160
|
const response = await listProjectItems(id, 100);
|
|
@@ -127,6 +162,10 @@ const svc = defineService<State, { load: (state: State, arg?: unknown) => Promis
|
|
|
127
162
|
.slice()
|
|
128
163
|
.sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0))
|
|
129
164
|
.map(row);
|
|
165
|
+
const details = projectDetails(project);
|
|
166
|
+
const collection = projectCollection(project, collectionNames(collections)).name;
|
|
167
|
+
// A site with no Portfolio page gives no project url: the site itself is what to share.
|
|
168
|
+
const shareUrl = shareUrlOf(project.url) || shareUrlOf((arg as { siteUrl?: unknown } | undefined)?.siteUrl);
|
|
130
169
|
return derive({
|
|
131
170
|
...state,
|
|
132
171
|
status: "ready",
|
|
@@ -137,12 +176,22 @@ const svc = defineService<State, { load: (state: State, arg?: unknown) => Promis
|
|
|
137
176
|
coverImage: wixMediaUrl(portfolioCoverRef(project.coverImage), WIX_DETAIL_IMAGE),
|
|
138
177
|
items,
|
|
139
178
|
emptyText: items.length ? "" : copyParam("portfolioProject.noMediaText", "This project has no published media yet."),
|
|
179
|
+
collection, noCollection: !collection,
|
|
180
|
+
location: details.location, noLocation: !details.location,
|
|
181
|
+
facts: details.facts, noFacts: details.facts.length === 0,
|
|
182
|
+
details: details.others, noDetails: details.others.length === 0,
|
|
183
|
+
shareUrl, noShare: !shareUrl,
|
|
140
184
|
...presence("found"),
|
|
141
185
|
});
|
|
142
186
|
} catch {
|
|
143
187
|
return unavailableProject(state, "error", id, copyParam("portfolioProject.errorText", "This project could not be loaded. Try again."));
|
|
144
188
|
}
|
|
145
189
|
},
|
|
190
|
+
share: async (state) => {
|
|
191
|
+
if (!state.shareUrl) return state;
|
|
192
|
+
try { await shareSheet({ subject: state.title, text: state.title, url: state.shareUrl }); } catch { /* the sheet is best-effort */ }
|
|
193
|
+
return state;
|
|
194
|
+
},
|
|
146
195
|
},
|
|
147
196
|
});
|
|
148
197
|
svc.load();
|
|
@@ -7,6 +7,7 @@ import { offsetPage } from "../_shared/offset-page.js";
|
|
|
7
7
|
import { copyParam } from "../_shared/himi-copy.js";
|
|
8
8
|
import { eventPageUrlOf, registrationUi } from "../_shared/event-registration.js";
|
|
9
9
|
import { share as shareSheet } from "@himalaya/share";
|
|
10
|
+
import { memberAvatarSource } from "../_shared/member-avatar.js";
|
|
10
11
|
import { eventsSelectionFilter, eventsSelectionFromScope, eventsSelectionOf, eventsSelectionScope, type EventsSelection } from "../_shared/events-inline-options.js";
|
|
11
12
|
|
|
12
13
|
// Offline-first (data-offline): the public events list is a read-through catalog —
|
|
@@ -54,6 +55,8 @@ async function writeCached(rows: EventRow[]): Promise<void> {
|
|
|
54
55
|
|
|
55
56
|
interface S {
|
|
56
57
|
status: "loading" | "ready";
|
|
58
|
+
/** The signed-in member's photo and initials, for a screen that asks for its top-bar avatar. */
|
|
59
|
+
memberImage: string; memberInitials: string;
|
|
57
60
|
query: string; all: ListEventRow[]; results: ListEventRow[]; emptyText: string; countLabel: string;
|
|
58
61
|
errored: boolean; notErrored: boolean; isLoading: boolean; notLoading: boolean; noEmpty: boolean;
|
|
59
62
|
/** Upcoming is empty but the site has past events: the empty state says "No upcoming events" and offers
|
|
@@ -85,9 +88,10 @@ function readSelection(arg?: unknown): EventsSelection {
|
|
|
85
88
|
}
|
|
86
89
|
const svc = defineBackendCollection<S, ListEventRow>("himiEvents", {
|
|
87
90
|
restorePagesOnLoad: true,
|
|
91
|
+
memberAvatar: memberAvatarSource,
|
|
88
92
|
onLoad(arg) { selection = readSelection(arg); },
|
|
89
93
|
scope: () => eventsSelectionScope(selection),
|
|
90
|
-
state: { status: "loading", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
94
|
+
state: { status: "loading", memberImage: "", memberInitials: "", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
91
95
|
isLoading: true, notLoading: false, noEmpty: true, pastEventsLabel: "", noPastEvents: true },
|
|
92
96
|
source: {
|
|
93
97
|
id: row => row.id,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# __HIMI_APP_NAME__ — from the `professional-services` template
|
|
2
|
+
|
|
3
|
+
A consulting or professional-services firm app over a real Wix site, light with the brand's navy and one bright action blue: a Home that answers a visitor (a photo hero with the free first call, problem-led services, upcoming workshops, case studies, the consultants, testimonials, contact) and a client (Up next — sessions and workshop registrations in one list — the latest chat messages, services and the package); Services — the shared Branded Lite booking flow; Workshops (Wix Events); Community (Wix Groups) with new-post badges and Join in place; Projects (Wix Portfolio) with collections and project facts; Consulting packages (Pricing Plans); Insights, Resources, Coupons, FAQ and About from Profile. Boots as a VISITOR; booking, registering, joining and the chat open Branded Lite's sign-in sheet.
|
|
4
|
+
|
|
5
|
+
Everything here is now yours to edit — screens in `dev/`, logic in `tier5-src/`,
|
|
6
|
+
identity and navigation in `config.ts`, look and feel in `tokens.json`.
|
|
7
|
+
|
|
8
|
+
## Point at your Wix site
|
|
9
|
+
|
|
10
|
+
Your **Wix Headless `clientId` binds the data** — the visitor token minted from it already
|
|
11
|
+
names your site, so reads need nothing else. Set these before `himi build` / preview so calls
|
|
12
|
+
hit YOUR site (the placeholders are not a real backend):
|
|
13
|
+
|
|
14
|
+
export WIX_CLIENT_ID="<headless-oauth-client-id>"
|
|
15
|
+
export WIX_SITE_URL="https://your-site.wixsite.com/…"
|
|
16
|
+
export WIX_SITE_ID="<metasite-id>"
|
|
17
|
+
|
|
18
|
+
`WIX_SITE_ID` is the site that client belongs to. The member login takes it from the environment
|
|
19
|
+
while `WIX_CLIENT_ID` is the client the config uses. A native build needs it for member sign-up on
|
|
20
|
+
a CAPTCHA-protected site, push registration and in-app purchases.
|
|
21
|
+
|
|
22
|
+
Full details, including how to ship a binary a customer can install against their own
|
|
23
|
+
site: `himi docs branded-lite-site-binding`.
|
|
24
|
+
|
|
25
|
+
## The loop
|
|
26
|
+
|
|
27
|
+
himi build # compile tier5-src/* -> dist/bundles
|
|
28
|
+
himi validate # screens, bindings and worker boot
|
|
29
|
+
himi render <screenId> --tree # render a screen right here, no device needed
|
|
30
|
+
himi test # exercise every action your screens declare
|
|
31
|
+
himi login --browser --target wix # sign in with your Wix account (once)
|
|
32
|
+
# no browser? export WIX_API_KEY, then himi login --wix --target wix
|
|
33
|
+
himi push --draft # publish a DRAFT release + get preview links
|
|
34
|
+
|
|
35
|
+
Build, validate, render and test run entirely on your machine. Only `login` and
|
|
36
|
+
`push` reach Wix. No per-app install is needed: the CLI ships the `@wix/himalaya`
|
|
37
|
+
runtime it compiles against.
|
|
38
|
+
|
|
39
|
+
## Pattern index — where to look for each recipe
|
|
40
|
+
|
|
41
|
+
| Pattern | Screens |
|
|
42
|
+
|---|---|
|
|
43
|
+
| One Home for a client and a visitor (sections that collapse fully) | himi_ps_home |
|
|
44
|
+
| A header row drawn in the content, over a photo hero (no top bar) | himi_ps_home |
|
|
45
|
+
| Sessions and workshop registrations merged into one Up next list | himi_ps_home up next |
|
|
46
|
+
| A chat preview card with an unread count and a tap-to-open input row | himi_ps_home messages |
|
|
47
|
+
| A device-local new-posts badge over a feed (no unread API) | himi_ps_community |
|
|
48
|
+
| Join in place from a list, sign-in sheet for a visitor | himi_ps_community |
|
|
49
|
+
| Portfolio collections as chips and project details as fact chips | himi_portfolio, himi_portfolio_project |
|
|
50
|
+
| Reusing a shared screen in your own words (stock-string copy rewrite) | himi_services, himi_events, himi_blog |
|
|
51
|
+
| Your own design over a shared worker | himi_plans, himi_portfolio, himi_account |
|
|
52
|
+
| Member chat with the business (Wix Inbox) | himi_business_chat |
|
|
53
|
+
|
|
54
|
+
Guides: `himi docs recipe-dynamic-list`, `himi docs tier-5-add-a-screen`,
|
|
55
|
+
`himi docs designing-himi-screens`. Seed references: `himi agent-init`.
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
// Your app's configuration — identity, auth, navigation, capabilities and tokens.
|
|
2
|
+
// Inspect the live values any time with `himi context`; see `himi docs app-config`.
|
|
3
|
+
import { defineApp } from "@himalaya/core";
|
|
4
|
+
import { WixConsumerAuthProvider } from "@himalaya/wix-auth";
|
|
5
|
+
import { ConsoleTelemetrySink } from "@himalaya/telemetry-console";
|
|
6
|
+
|
|
7
|
+
export default defineApp({
|
|
8
|
+
id: "__HIMI_APP_DOTID__",
|
|
9
|
+
name: "__HIMI_APP_NAME__",
|
|
10
|
+
bundleId: "__HIMI_APP_DOTID__",
|
|
11
|
+
applicationId: "__HIMI_APP_DOTID__",
|
|
12
|
+
// Placeholders — an over-the-air app never consumes these. Leave as-is.
|
|
13
|
+
schemaPackage: "@example/__HIMI_APP_SLUG__-schema",
|
|
14
|
+
schemaPackageRange: { min: 9900, max: 9909 },
|
|
15
|
+
// Placeholders — only a local server would read these. Leave as-is.
|
|
16
|
+
ports: { devServer: 8190, web: 5390 },
|
|
17
|
+
auth: WixConsumerAuthProvider({
|
|
18
|
+
// POINT THESE AT YOUR SITE — set WIX_CLIENT_ID (a public headless OAuth client id)
|
|
19
|
+
// and WIX_SITE_URL (your live site URL). The placeholders below are NOT a real
|
|
20
|
+
// backend; the app boots but reads nothing until you set them. The site needs
|
|
21
|
+
// Wix Bookings; Events, Portfolio, Pricing Plans, Groups, Blog, File Share, Coupons,
|
|
22
|
+
// FAQ and the Wix Inbox chat are optional (each section collapses without its data).
|
|
23
|
+
clientId: process.env.WIX_CLIENT_ID ?? "YOUR_WIX_CLIENT_ID",
|
|
24
|
+
siteUrl: process.env.WIX_SITE_URL ?? "https://your-site.example.com",
|
|
25
|
+
// The OAuth redirect must be ALLOWLISTED on the headless client in `clientId`.
|
|
26
|
+
redirectUri: process.env.WIX_REDIRECT_URI ?? "himalaya-__HIMI_APP_SLUG__://oauth/callback",
|
|
27
|
+
bootAsVisitor: true,
|
|
28
|
+
preserveVisitorOnSignOut: true,
|
|
29
|
+
}),
|
|
30
|
+
telemetry: ConsoleTelemetrySink(),
|
|
31
|
+
serverUrls: {
|
|
32
|
+
screen: "http://localhost:8190/v1",
|
|
33
|
+
actions: "http://localhost:8190/v1/actions",
|
|
34
|
+
sync: "http://localhost:8190/v1/sync",
|
|
35
|
+
},
|
|
36
|
+
capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","iap","wix_chat","calendar","files","file_picker","presigned_upload","clipboard","keyboard","ui","wix_cashier"],
|
|
37
|
+
designTokensPath: "./tokens.json",
|
|
38
|
+
navigation: {
|
|
39
|
+
"navKind": "responsive",
|
|
40
|
+
"scheme": "himalaya-__HIMI_APP_SLUG__",
|
|
41
|
+
"deepLinkPatterns": [],
|
|
42
|
+
"linkableScreens": [
|
|
43
|
+
{
|
|
44
|
+
"screenId": "himi_ps_home",
|
|
45
|
+
"isPublic": true,
|
|
46
|
+
"paramKeys": [],
|
|
47
|
+
"parentScreenId": "",
|
|
48
|
+
"tabId": "home"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"screenId": "himi_ps_about",
|
|
52
|
+
"isPublic": true,
|
|
53
|
+
"paramKeys": [],
|
|
54
|
+
"parentScreenId": "himi_ps_home",
|
|
55
|
+
"tabId": "home"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"screenId": "himi_account",
|
|
59
|
+
"isPublic": true,
|
|
60
|
+
"paramKeys": [],
|
|
61
|
+
"parentScreenId": "himi_ps_home",
|
|
62
|
+
"tabId": "home"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"screenId": "himi_portfolio",
|
|
66
|
+
"isPublic": true,
|
|
67
|
+
"paramKeys": [],
|
|
68
|
+
"parentScreenId": "himi_ps_home",
|
|
69
|
+
"tabId": "home"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"screenId": "himi_portfolio_project",
|
|
73
|
+
"isPublic": true,
|
|
74
|
+
"paramKeys": [
|
|
75
|
+
"id"
|
|
76
|
+
],
|
|
77
|
+
"parentScreenId": "himi_portfolio",
|
|
78
|
+
"tabId": "home"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"screenId": "himi_plans",
|
|
82
|
+
"isPublic": true,
|
|
83
|
+
"paramKeys": [],
|
|
84
|
+
"parentScreenId": "himi_ps_home",
|
|
85
|
+
"tabId": "home"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"screenId": "himi_plan",
|
|
89
|
+
"isPublic": true,
|
|
90
|
+
"paramKeys": [
|
|
91
|
+
"id"
|
|
92
|
+
],
|
|
93
|
+
"parentScreenId": "himi_plans",
|
|
94
|
+
"tabId": "home"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"screenId": "himi_my_subscriptions",
|
|
98
|
+
"isPublic": false,
|
|
99
|
+
"paramKeys": [],
|
|
100
|
+
"parentScreenId": "himi_account",
|
|
101
|
+
"tabId": "home"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"screenId": "himi_subscription",
|
|
105
|
+
"isPublic": false,
|
|
106
|
+
"paramKeys": [
|
|
107
|
+
"id"
|
|
108
|
+
],
|
|
109
|
+
"parentScreenId": "himi_my_subscriptions",
|
|
110
|
+
"tabId": "home"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"screenId": "himi_bookings",
|
|
114
|
+
"isPublic": false,
|
|
115
|
+
"paramKeys": [],
|
|
116
|
+
"parentScreenId": "himi_account",
|
|
117
|
+
"tabId": "home"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"screenId": "himi_my_events",
|
|
121
|
+
"isPublic": false,
|
|
122
|
+
"paramKeys": [],
|
|
123
|
+
"parentScreenId": "himi_account",
|
|
124
|
+
"tabId": "home"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"screenId": "himi_blog",
|
|
128
|
+
"isPublic": true,
|
|
129
|
+
"paramKeys": [],
|
|
130
|
+
"parentScreenId": "himi_account",
|
|
131
|
+
"tabId": "home"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"screenId": "himi_blog_post",
|
|
135
|
+
"isPublic": true,
|
|
136
|
+
"paramKeys": [
|
|
137
|
+
"id"
|
|
138
|
+
],
|
|
139
|
+
"parentScreenId": "himi_blog",
|
|
140
|
+
"tabId": "home"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"screenId": "himi_file_share",
|
|
144
|
+
"isPublic": false,
|
|
145
|
+
"paramKeys": [
|
|
146
|
+
"folderId"
|
|
147
|
+
],
|
|
148
|
+
"parentScreenId": "himi_account",
|
|
149
|
+
"tabId": "home"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"screenId": "himi_coupons",
|
|
153
|
+
"isPublic": false,
|
|
154
|
+
"paramKeys": [],
|
|
155
|
+
"parentScreenId": "himi_account",
|
|
156
|
+
"tabId": "home"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"screenId": "himi_coupon",
|
|
160
|
+
"isPublic": false,
|
|
161
|
+
"paramKeys": [
|
|
162
|
+
"id"
|
|
163
|
+
],
|
|
164
|
+
"parentScreenId": "himi_coupons",
|
|
165
|
+
"tabId": "home"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"screenId": "himi_faq",
|
|
169
|
+
"isPublic": true,
|
|
170
|
+
"paramKeys": [],
|
|
171
|
+
"parentScreenId": "himi_account",
|
|
172
|
+
"tabId": "home"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"screenId": "himi_business_chat",
|
|
176
|
+
"isPublic": false,
|
|
177
|
+
"paramKeys": [],
|
|
178
|
+
"parentScreenId": "himi_ps_home",
|
|
179
|
+
"tabId": "home"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"screenId": "himi_business_contact",
|
|
183
|
+
"isPublic": true,
|
|
184
|
+
"paramKeys": [],
|
|
185
|
+
"parentScreenId": "himi_account",
|
|
186
|
+
"tabId": "home"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"screenId": "himi_notifications",
|
|
190
|
+
"isPublic": false,
|
|
191
|
+
"paramKeys": [],
|
|
192
|
+
"parentScreenId": "himi_account",
|
|
193
|
+
"tabId": "home"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"screenId": "himi_services",
|
|
197
|
+
"isPublic": true,
|
|
198
|
+
"paramKeys": [
|
|
199
|
+
"category",
|
|
200
|
+
"categoryActivation"
|
|
201
|
+
],
|
|
202
|
+
"parentScreenId": "",
|
|
203
|
+
"tabId": "services"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"screenId": "himi_service",
|
|
207
|
+
"isPublic": true,
|
|
208
|
+
"paramKeys": [
|
|
209
|
+
"id",
|
|
210
|
+
"sessionId",
|
|
211
|
+
"start"
|
|
212
|
+
],
|
|
213
|
+
"parentScreenId": "himi_services",
|
|
214
|
+
"tabId": "services"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"screenId": "himi_time",
|
|
218
|
+
"isPublic": true,
|
|
219
|
+
"paramKeys": [
|
|
220
|
+
"id",
|
|
221
|
+
"course",
|
|
222
|
+
"start",
|
|
223
|
+
"sessionId"
|
|
224
|
+
],
|
|
225
|
+
"parentScreenId": "himi_service",
|
|
226
|
+
"tabId": "services"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"screenId": "himi_events",
|
|
230
|
+
"isPublic": true,
|
|
231
|
+
"paramKeys": [],
|
|
232
|
+
"parentScreenId": "",
|
|
233
|
+
"tabId": "workshops"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"screenId": "himi_event",
|
|
237
|
+
"isPublic": true,
|
|
238
|
+
"paramKeys": [
|
|
239
|
+
"id"
|
|
240
|
+
],
|
|
241
|
+
"parentScreenId": "himi_events",
|
|
242
|
+
"tabId": "workshops"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"screenId": "himi_rsvp",
|
|
246
|
+
"isPublic": true,
|
|
247
|
+
"paramKeys": [
|
|
248
|
+
"id"
|
|
249
|
+
],
|
|
250
|
+
"parentScreenId": "himi_event",
|
|
251
|
+
"tabId": "workshops"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"screenId": "himi_ps_community",
|
|
255
|
+
"isPublic": true,
|
|
256
|
+
"paramKeys": [],
|
|
257
|
+
"parentScreenId": "",
|
|
258
|
+
"tabId": "community"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"screenId": "himi_group",
|
|
262
|
+
"isPublic": true,
|
|
263
|
+
"paramKeys": [
|
|
264
|
+
"id"
|
|
265
|
+
],
|
|
266
|
+
"parentScreenId": "himi_ps_community",
|
|
267
|
+
"tabId": "community"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"screenId": "himi_my_groups",
|
|
271
|
+
"isPublic": false,
|
|
272
|
+
"paramKeys": [],
|
|
273
|
+
"parentScreenId": "himi_ps_community",
|
|
274
|
+
"tabId": "community"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"screenId": "himi_group_about",
|
|
278
|
+
"isPublic": true,
|
|
279
|
+
"paramKeys": [
|
|
280
|
+
"id"
|
|
281
|
+
],
|
|
282
|
+
"parentScreenId": "himi_group",
|
|
283
|
+
"tabId": "community"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"screenId": "himi_sign_in",
|
|
287
|
+
"isPublic": true,
|
|
288
|
+
"paramKeys": [
|
|
289
|
+
"mode",
|
|
290
|
+
"intent",
|
|
291
|
+
"modal",
|
|
292
|
+
"returnTab",
|
|
293
|
+
"contextName",
|
|
294
|
+
"returnScreenId",
|
|
295
|
+
"returnId",
|
|
296
|
+
"returnChannelId",
|
|
297
|
+
"authContinuation"
|
|
298
|
+
],
|
|
299
|
+
"parentScreenId": "himi_account",
|
|
300
|
+
"tabId": "home"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"tabBar": {
|
|
304
|
+
"presentation": "native",
|
|
305
|
+
"items": [
|
|
306
|
+
{
|
|
307
|
+
"id": "home",
|
|
308
|
+
"screenId": "himi_ps_home",
|
|
309
|
+
"label": "Home",
|
|
310
|
+
"icon": "home",
|
|
311
|
+
"selectedIcon": "home_fill"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "services",
|
|
315
|
+
"screenId": "himi_services",
|
|
316
|
+
"label": "Services",
|
|
317
|
+
"icon": "layers"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"id": "workshops",
|
|
321
|
+
"screenId": "himi_events",
|
|
322
|
+
"label": "Workshops",
|
|
323
|
+
"icon": "ticket",
|
|
324
|
+
"selectedIcon": "ticket_fill"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": "community",
|
|
328
|
+
"screenId": "himi_ps_community",
|
|
329
|
+
"label": "Community",
|
|
330
|
+
"icon": "people"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
// This app talks to a language model (dual LLM / remote model).
|
|
336
|
+
agent: {
|
|
337
|
+
"onDevice": {
|
|
338
|
+
"ios": "foundation_models",
|
|
339
|
+
"android": "mediapipe"
|
|
340
|
+
},
|
|
341
|
+
"remote": {
|
|
342
|
+
"providerId": "anthropic",
|
|
343
|
+
"config": {
|
|
344
|
+
"model": "claude-haiku-4-5"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"privateModeToggle": false
|
|
348
|
+
},
|
|
349
|
+
entities: {},
|
|
350
|
+
// Your on-device database. It must declare every entity a worker reads or writes,
|
|
351
|
+
// or those calls fail closed — keep it in step with `local_database` above.
|
|
352
|
+
dataSchema: {
|
|
353
|
+
"version": 2,
|
|
354
|
+
"entities": [
|
|
355
|
+
{
|
|
356
|
+
"name": "services",
|
|
357
|
+
"encrypted": false,
|
|
358
|
+
"fields": [
|
|
359
|
+
{
|
|
360
|
+
"name": "id",
|
|
361
|
+
"type": "string",
|
|
362
|
+
"required": true
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "name",
|
|
366
|
+
"type": "string"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "events",
|
|
372
|
+
"encrypted": false,
|
|
373
|
+
"fields": [
|
|
374
|
+
{
|
|
375
|
+
"name": "id",
|
|
376
|
+
"type": "string",
|
|
377
|
+
"required": true
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "title",
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "blog_posts",
|
|
387
|
+
"encrypted": false,
|
|
388
|
+
"fields": [
|
|
389
|
+
{
|
|
390
|
+
"name": "id",
|
|
391
|
+
"type": "string",
|
|
392
|
+
"required": true
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "title",
|
|
396
|
+
"type": "string"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "booking_prefs",
|
|
402
|
+
"encrypted": false,
|
|
403
|
+
"fields": [
|
|
404
|
+
{
|
|
405
|
+
"name": "id",
|
|
406
|
+
"type": "string",
|
|
407
|
+
"required": true
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "locationId",
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "locationLabel",
|
|
415
|
+
"type": "string"
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "member_bookings",
|
|
421
|
+
"encrypted": true,
|
|
422
|
+
"fields": [
|
|
423
|
+
{
|
|
424
|
+
"name": "id",
|
|
425
|
+
"type": "string",
|
|
426
|
+
"required": true
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "serviceId",
|
|
430
|
+
"type": "string"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
});
|