order3000 0.19.1 → 0.21.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/client.cjs +92 -1
- package/dist/client.d.cts +198 -4
- package/dist/client.d.mts +198 -4
- package/dist/client.mjs +92 -1
- package/dist/schemas.cjs +15 -1
- package/dist/schemas.d.cts +279 -14
- package/dist/schemas.d.mts +279 -14
- package/dist/schemas.mjs +15 -1
- package/package.json +2 -2
package/dist/client.mjs
CHANGED
|
@@ -182,6 +182,55 @@ class AreasResource extends BaseResource {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
class ArticlesResource extends BaseResource {
|
|
186
|
+
constructor(tokenManager, baseUrl) {
|
|
187
|
+
super(tokenManager, baseUrl, "/articles");
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* List articles for the venue. Default behaviour returns published +
|
|
191
|
+
* active articles, ordered by `priority` (desc) then `publishedAt`
|
|
192
|
+
* (desc). Override defaults via `includeDrafts` / `includeInactive`,
|
|
193
|
+
* or filter by a single tag.
|
|
194
|
+
*
|
|
195
|
+
* `content` on each article is a TipTap JSON document — opaque on the
|
|
196
|
+
* wire. Use the order3000-cli's `articles outline` command (forthcoming)
|
|
197
|
+
* for human-friendly node addressing.
|
|
198
|
+
*/
|
|
199
|
+
async list(options) {
|
|
200
|
+
const params = new URLSearchParams();
|
|
201
|
+
if (options?.tag) params.set("tag", options.tag);
|
|
202
|
+
if (options?.includeDrafts !== void 0) {
|
|
203
|
+
params.set("includeDrafts", String(options.includeDrafts));
|
|
204
|
+
}
|
|
205
|
+
if (options?.includeInactive !== void 0) {
|
|
206
|
+
params.set("includeInactive", String(options.includeInactive));
|
|
207
|
+
}
|
|
208
|
+
const qs = params.toString();
|
|
209
|
+
const path = qs ? `?${qs}` : "";
|
|
210
|
+
return this.request("GET", path);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Fetch a single article by id or accessor within the active venue.
|
|
214
|
+
* Returns the full row including the TipTap `content` document.
|
|
215
|
+
*/
|
|
216
|
+
async getByAccessor(idOrAccessor) {
|
|
217
|
+
return this.request("GET", `/${encodeURIComponent(idOrAccessor)}`);
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Partial-update an article. Locale-keyed fields (slug, title, excerpt)
|
|
221
|
+
* merge at the locale level — `{ slug: { en: 'foo' } }` updates `en`
|
|
222
|
+
* without touching `de`. Plain scalar / array fields fully replace.
|
|
223
|
+
* Returns the resulting article.
|
|
224
|
+
*/
|
|
225
|
+
async patch(idOrAccessor, body) {
|
|
226
|
+
return this.request(
|
|
227
|
+
"PATCH",
|
|
228
|
+
`/${encodeURIComponent(idOrAccessor)}`,
|
|
229
|
+
body
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
185
234
|
class BasketsResource extends BaseResource {
|
|
186
235
|
constructor(tokenManager, baseUrl) {
|
|
187
236
|
super(tokenManager, baseUrl, "/baskets");
|
|
@@ -765,6 +814,44 @@ class TeamOrdersResource {
|
|
|
765
814
|
}
|
|
766
815
|
}
|
|
767
816
|
|
|
817
|
+
class VenuesResource {
|
|
818
|
+
constructor(tokenManager, baseUrl) {
|
|
819
|
+
this.tokenManager = tokenManager;
|
|
820
|
+
this.baseUrl = baseUrl;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Fetch a venue by its UUID or its accessor (slug). The path accepts
|
|
824
|
+
* either form; the server resolves transparently.
|
|
825
|
+
*
|
|
826
|
+
* Powers the order3000-cli's `venues use <accessor>` validation step
|
|
827
|
+
* — the CLI hits this to prove the accessor exists and to cache the
|
|
828
|
+
* resolved UUID + display fields locally.
|
|
829
|
+
*/
|
|
830
|
+
async getByAccessor(idOrAccessor) {
|
|
831
|
+
const token = await this.tokenManager.getToken();
|
|
832
|
+
const url = `${this.baseUrl}/venues/${encodeURIComponent(idOrAccessor)}`;
|
|
833
|
+
const response = await fetch(url, {
|
|
834
|
+
method: "GET",
|
|
835
|
+
headers: {
|
|
836
|
+
Authorization: `Bearer ${token}`,
|
|
837
|
+
"Content-Type": "application/json"
|
|
838
|
+
},
|
|
839
|
+
cache: "no-store"
|
|
840
|
+
});
|
|
841
|
+
if (!response.ok) {
|
|
842
|
+
let body = "";
|
|
843
|
+
try {
|
|
844
|
+
body = await response.text();
|
|
845
|
+
} catch {
|
|
846
|
+
}
|
|
847
|
+
throw new Error(
|
|
848
|
+
`HTTP ${response.status}: ${response.statusText}${body ? ` \u2014 ${body}` : ""}`
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
return response.json();
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
768
855
|
var __defProp$2 = Object.defineProperty;
|
|
769
856
|
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
770
857
|
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -1090,6 +1177,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1090
1177
|
class Order3000Client {
|
|
1091
1178
|
constructor(config) {
|
|
1092
1179
|
__publicField(this, "areas");
|
|
1180
|
+
__publicField(this, "articles");
|
|
1093
1181
|
__publicField(this, "baskets");
|
|
1094
1182
|
__publicField(this, "events");
|
|
1095
1183
|
__publicField(this, "menus");
|
|
@@ -1098,11 +1186,12 @@ class Order3000Client {
|
|
|
1098
1186
|
__publicField(this, "reservations");
|
|
1099
1187
|
__publicField(this, "subscriptions");
|
|
1100
1188
|
__publicField(this, "teamOrders");
|
|
1189
|
+
__publicField(this, "venues");
|
|
1101
1190
|
__publicField(this, "realtime");
|
|
1102
1191
|
__publicField(this, "baseUrl");
|
|
1103
1192
|
__publicField(this, "tokenManager");
|
|
1104
1193
|
this.baseUrl = config.baseUrl || "https://order3000.com/api";
|
|
1105
|
-
const tokenUrl = config.tokenUrl || `${this.baseUrl}/
|
|
1194
|
+
const tokenUrl = config.tokenUrl || `${this.baseUrl}/m2m/token`;
|
|
1106
1195
|
this.tokenManager = new TokenManager(
|
|
1107
1196
|
config.clientId,
|
|
1108
1197
|
config.clientSecret,
|
|
@@ -1110,6 +1199,7 @@ class Order3000Client {
|
|
|
1110
1199
|
config.venueId
|
|
1111
1200
|
);
|
|
1112
1201
|
this.areas = new AreasResource(this.tokenManager, this.baseUrl);
|
|
1202
|
+
this.articles = new ArticlesResource(this.tokenManager, this.baseUrl);
|
|
1113
1203
|
this.baskets = new BasketsResource(this.tokenManager, this.baseUrl);
|
|
1114
1204
|
this.events = new EventsResource(this.tokenManager, this.baseUrl);
|
|
1115
1205
|
this.menus = new MenusResource(this.tokenManager, this.baseUrl);
|
|
@@ -1127,6 +1217,7 @@ class Order3000Client {
|
|
|
1127
1217
|
this.baseUrl
|
|
1128
1218
|
);
|
|
1129
1219
|
this.teamOrders = new TeamOrdersResource(this.tokenManager, this.baseUrl);
|
|
1220
|
+
this.venues = new VenuesResource(this.tokenManager, this.baseUrl);
|
|
1130
1221
|
this.realtime = new RealtimeManager(this.tokenManager, this.baseUrl);
|
|
1131
1222
|
}
|
|
1132
1223
|
}
|
package/dist/schemas.cjs
CHANGED
|
@@ -8,6 +8,12 @@ const GetAreaResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string
|
|
|
8
8
|
const GetAreaAvailabilityResponse = zod.z.object({ from: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), to: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), bookingMode: zod.z.enum(["slot", "day"]), occupied: zod.z.array(zod.z.object({ date: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), startTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), endTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable() }).strict()) }).strict();
|
|
9
9
|
const SubmitAreaBookingRequest = zod.z.object({ requestedDate: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), requestedEndTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), partySize: zod.z.number().int().lte(9007199254740991), customerFirstName: zod.z.string().min(1), customerLastName: zod.z.string().min(1), customerEmail: zod.z.string().regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/).email(), customerPhone: zod.z.string().optional(), message: zod.z.string().optional(), source: zod.z.enum(["website", "phone", "walk_in"]).optional() }).strict();
|
|
10
10
|
const SubmitAreaBookingResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), areaId: zod.z.string(), requestedDate: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), requestedEndTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), partySize: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), customerFirstName: zod.z.string(), customerLastName: zod.z.string(), customerEmail: zod.z.string(), customerPhone: zod.z.string().nullable(), message: zod.z.string().nullable(), source: zod.z.enum(["website", "phone", "walk_in"]), status: zod.z.enum(["pending", "approved", "rejected", "cancelled"]), areaBookingId: zod.z.string().nullable(), createdAt: zod.z.string().nullable(), updatedAt: zod.z.string().nullable() }).strict();
|
|
11
|
+
const includeDrafts = zod.z.union([zod.z.literal("true"), zod.z.literal("false")]).optional();
|
|
12
|
+
const Article = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), slug: zod.z.record(zod.z.string()), title: zod.z.record(zod.z.string()), excerpt: zod.z.record(zod.z.string()).nullable(), content: zod.z.object({}).partial().strict().passthrough().nullable(), tags: zod.z.array(zod.z.string()), featuredImageId: zod.z.string().nullable(), isActive: zod.z.boolean(), isFeatured: zod.z.boolean(), priority: zod.z.number().int().gte(-2147483648).lte(2147483647), publishedAt: zod.z.unknown().nullable(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
13
|
+
const ListArticlesResponse = zod.z.array(Article);
|
|
14
|
+
const GetArticleResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), slug: zod.z.record(zod.z.string()), title: zod.z.record(zod.z.string()), excerpt: zod.z.record(zod.z.string()).nullable(), content: zod.z.object({}).partial().strict().passthrough().nullable(), tags: zod.z.array(zod.z.string()), featuredImageId: zod.z.string().nullable(), isActive: zod.z.boolean(), isFeatured: zod.z.boolean(), priority: zod.z.number().int().gte(-2147483648).lte(2147483647), publishedAt: zod.z.unknown().nullable(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
15
|
+
const PatchArticleRequest = zod.z.object({ slug: zod.z.record(zod.z.string()), title: zod.z.record(zod.z.string()), excerpt: zod.z.record(zod.z.string()), content: zod.z.object({}).partial().strict().passthrough(), tags: zod.z.array(zod.z.string()), featuredImageId: zod.z.string().nullable(), isActive: zod.z.boolean(), isFeatured: zod.z.boolean(), priority: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991) }).partial().strict();
|
|
16
|
+
const PatchArticleResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), slug: zod.z.record(zod.z.string()), title: zod.z.record(zod.z.string()), excerpt: zod.z.record(zod.z.string()).nullable(), content: zod.z.object({}).partial().strict().passthrough().nullable(), tags: zod.z.array(zod.z.string()), featuredImageId: zod.z.string().nullable(), isActive: zod.z.boolean(), isFeatured: zod.z.boolean(), priority: zod.z.number().int().gte(-2147483648).lte(2147483647), publishedAt: zod.z.unknown().nullable(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
11
17
|
const AddToBasketRequest = zod.z.object({ venueId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), sessionId: zod.z.string().min(1), menuItems: zod.z.array(zod.z.object({ menuItemId: zod.z.string().min(1), role: zod.z.string().optional(), quantity: zod.z.number().gt(0).optional(), unit: zod.z.enum(["grams", "kilograms", "liters", "milliliters", "pieces"]).optional() }).strict()).min(1), metadata: zod.z.object({}).partial().strict().passthrough().optional() }).strict();
|
|
12
18
|
const AddToBasketResponse = zod.z.object({ basketItemId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: zod.z.number().int().gte(0).lte(9007199254740991), deposit: zod.z.object({ depositwareTemplateId: zod.z.string(), name: zod.z.record(zod.z.string()), amount: zod.z.number().int().gte(0).lte(9007199254740991), currency: zod.z.enum(["EUR", "CHF"]) }).strict().nullable(), totals: zod.z.object({ currency: zod.z.enum(["EUR", "CHF"]), itemsTotal: zod.z.number().int().gte(0).lte(9007199254740991), taxAmount: zod.z.number().int().gte(0).lte(9007199254740991), depositCharge: zod.z.number().int().gte(0).lte(9007199254740991), grossTotal: zod.z.number().int().gte(0).lte(9007199254740991), depositCredit: zod.z.number().int().gte(0).lte(9007199254740991), effectiveTotal: zod.z.number().int().gte(0).lte(9007199254740991), cashRefund: zod.z.number().int().gte(0).lte(9007199254740991), returnable: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict() }).strict();
|
|
13
19
|
const RemoveFromBasketResponse = zod.z.object({ success: zod.z.boolean(), basketItemId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: zod.z.number().int().gte(0).lte(9007199254740991), totals: zod.z.object({ currency: zod.z.enum(["EUR", "CHF"]), itemsTotal: zod.z.number().int().gte(0).lte(9007199254740991), taxAmount: zod.z.number().int().gte(0).lte(9007199254740991), depositCharge: zod.z.number().int().gte(0).lte(9007199254740991), grossTotal: zod.z.number().int().gte(0).lte(9007199254740991), depositCredit: zod.z.number().int().gte(0).lte(9007199254740991), effectiveTotal: zod.z.number().int().gte(0).lte(9007199254740991), cashRefund: zod.z.number().int().gte(0).lte(9007199254740991), returnable: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict().nullable() }).strict();
|
|
@@ -59,6 +65,7 @@ const SwitchFulfillmentTeamOrderRequest = zod.z.object({ publicId: zod.z.string(
|
|
|
59
65
|
const SwitchFulfillmentTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), fulfillmentType: zod.z.enum(["pickup", "delivery"]), deliveryAddressId: zod.z.string().nullable() }).strict();
|
|
60
66
|
const UpdateDeliveryAddressTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), deliveryAddress: zod.z.object({ street: zod.z.string(), city: zod.z.string(), state: zod.z.string(), postalCode: zod.z.string(), country: zod.z.string() }).strict() }).strict();
|
|
61
67
|
const UpdateDeliveryAddressTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), deliveryAddressId: zod.z.string() }).strict();
|
|
68
|
+
const GetVenueResponse = zod.z.object({ id: zod.z.string(), accessor: zod.z.string(), officialName: zod.z.string(), legalName: zod.z.string(), shortName: zod.z.string(), brandName: zod.z.string(), primaryLocale: zod.z.string(), supportedLocales: zod.z.array(zod.z.string()), timezone: zod.z.string(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
62
69
|
const schemas = {
|
|
63
70
|
Area,
|
|
64
71
|
ListAreasResponse,
|
|
@@ -66,6 +73,12 @@ const schemas = {
|
|
|
66
73
|
GetAreaAvailabilityResponse,
|
|
67
74
|
SubmitAreaBookingRequest,
|
|
68
75
|
SubmitAreaBookingResponse,
|
|
76
|
+
includeDrafts,
|
|
77
|
+
Article,
|
|
78
|
+
ListArticlesResponse,
|
|
79
|
+
GetArticleResponse,
|
|
80
|
+
PatchArticleRequest,
|
|
81
|
+
PatchArticleResponse,
|
|
69
82
|
AddToBasketRequest,
|
|
70
83
|
AddToBasketResponse,
|
|
71
84
|
RemoveFromBasketResponse,
|
|
@@ -116,7 +129,8 @@ const schemas = {
|
|
|
116
129
|
SwitchFulfillmentTeamOrderRequest,
|
|
117
130
|
SwitchFulfillmentTeamOrderResponse,
|
|
118
131
|
UpdateDeliveryAddressTeamOrderRequest,
|
|
119
|
-
UpdateDeliveryAddressTeamOrderResponse
|
|
132
|
+
UpdateDeliveryAddressTeamOrderResponse,
|
|
133
|
+
GetVenueResponse
|
|
120
134
|
};
|
|
121
135
|
|
|
122
136
|
exports.schemas = schemas;
|
package/dist/schemas.d.cts
CHANGED
|
@@ -649,6 +649,234 @@ declare const schemas: {
|
|
|
649
649
|
createdAt: string | null;
|
|
650
650
|
updatedAt: string | null;
|
|
651
651
|
}>;
|
|
652
|
+
includeDrafts: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
653
|
+
Article: z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
venueId: z.ZodString;
|
|
656
|
+
accessor: z.ZodString;
|
|
657
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
658
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
659
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
660
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
661
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
662
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
663
|
+
isActive: z.ZodBoolean;
|
|
664
|
+
isFeatured: z.ZodBoolean;
|
|
665
|
+
priority: z.ZodNumber;
|
|
666
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
667
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
668
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
669
|
+
}, "strict", z.ZodTypeAny, {
|
|
670
|
+
id: string;
|
|
671
|
+
venueId: string;
|
|
672
|
+
accessor: string;
|
|
673
|
+
tags: string[];
|
|
674
|
+
slug: Record<string, string>;
|
|
675
|
+
title: Record<string, string>;
|
|
676
|
+
excerpt: Record<string, string> | null;
|
|
677
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
678
|
+
featuredImageId: string | null;
|
|
679
|
+
isActive: boolean;
|
|
680
|
+
isFeatured: boolean;
|
|
681
|
+
priority: number;
|
|
682
|
+
createdAt?: unknown;
|
|
683
|
+
updatedAt?: unknown;
|
|
684
|
+
publishedAt?: unknown;
|
|
685
|
+
}, {
|
|
686
|
+
id: string;
|
|
687
|
+
venueId: string;
|
|
688
|
+
accessor: string;
|
|
689
|
+
tags: string[];
|
|
690
|
+
slug: Record<string, string>;
|
|
691
|
+
title: Record<string, string>;
|
|
692
|
+
excerpt: Record<string, string> | null;
|
|
693
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
694
|
+
featuredImageId: string | null;
|
|
695
|
+
isActive: boolean;
|
|
696
|
+
isFeatured: boolean;
|
|
697
|
+
priority: number;
|
|
698
|
+
createdAt?: unknown;
|
|
699
|
+
updatedAt?: unknown;
|
|
700
|
+
publishedAt?: unknown;
|
|
701
|
+
}>;
|
|
702
|
+
ListArticlesResponse: z.ZodArray<z.ZodObject<{
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
venueId: z.ZodString;
|
|
705
|
+
accessor: z.ZodString;
|
|
706
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
707
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
708
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
709
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
710
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
711
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
712
|
+
isActive: z.ZodBoolean;
|
|
713
|
+
isFeatured: z.ZodBoolean;
|
|
714
|
+
priority: z.ZodNumber;
|
|
715
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
716
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
717
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
718
|
+
}, "strict", z.ZodTypeAny, {
|
|
719
|
+
id: string;
|
|
720
|
+
venueId: string;
|
|
721
|
+
accessor: string;
|
|
722
|
+
tags: string[];
|
|
723
|
+
slug: Record<string, string>;
|
|
724
|
+
title: Record<string, string>;
|
|
725
|
+
excerpt: Record<string, string> | null;
|
|
726
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
727
|
+
featuredImageId: string | null;
|
|
728
|
+
isActive: boolean;
|
|
729
|
+
isFeatured: boolean;
|
|
730
|
+
priority: number;
|
|
731
|
+
createdAt?: unknown;
|
|
732
|
+
updatedAt?: unknown;
|
|
733
|
+
publishedAt?: unknown;
|
|
734
|
+
}, {
|
|
735
|
+
id: string;
|
|
736
|
+
venueId: string;
|
|
737
|
+
accessor: string;
|
|
738
|
+
tags: string[];
|
|
739
|
+
slug: Record<string, string>;
|
|
740
|
+
title: Record<string, string>;
|
|
741
|
+
excerpt: Record<string, string> | null;
|
|
742
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
743
|
+
featuredImageId: string | null;
|
|
744
|
+
isActive: boolean;
|
|
745
|
+
isFeatured: boolean;
|
|
746
|
+
priority: number;
|
|
747
|
+
createdAt?: unknown;
|
|
748
|
+
updatedAt?: unknown;
|
|
749
|
+
publishedAt?: unknown;
|
|
750
|
+
}>, "many">;
|
|
751
|
+
GetArticleResponse: z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
venueId: z.ZodString;
|
|
754
|
+
accessor: z.ZodString;
|
|
755
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
756
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
757
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
758
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
759
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
760
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
761
|
+
isActive: z.ZodBoolean;
|
|
762
|
+
isFeatured: z.ZodBoolean;
|
|
763
|
+
priority: z.ZodNumber;
|
|
764
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
765
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
766
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
767
|
+
}, "strict", z.ZodTypeAny, {
|
|
768
|
+
id: string;
|
|
769
|
+
venueId: string;
|
|
770
|
+
accessor: string;
|
|
771
|
+
tags: string[];
|
|
772
|
+
slug: Record<string, string>;
|
|
773
|
+
title: Record<string, string>;
|
|
774
|
+
excerpt: Record<string, string> | null;
|
|
775
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
776
|
+
featuredImageId: string | null;
|
|
777
|
+
isActive: boolean;
|
|
778
|
+
isFeatured: boolean;
|
|
779
|
+
priority: number;
|
|
780
|
+
createdAt?: unknown;
|
|
781
|
+
updatedAt?: unknown;
|
|
782
|
+
publishedAt?: unknown;
|
|
783
|
+
}, {
|
|
784
|
+
id: string;
|
|
785
|
+
venueId: string;
|
|
786
|
+
accessor: string;
|
|
787
|
+
tags: string[];
|
|
788
|
+
slug: Record<string, string>;
|
|
789
|
+
title: Record<string, string>;
|
|
790
|
+
excerpt: Record<string, string> | null;
|
|
791
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
792
|
+
featuredImageId: string | null;
|
|
793
|
+
isActive: boolean;
|
|
794
|
+
isFeatured: boolean;
|
|
795
|
+
priority: number;
|
|
796
|
+
createdAt?: unknown;
|
|
797
|
+
updatedAt?: unknown;
|
|
798
|
+
publishedAt?: unknown;
|
|
799
|
+
}>;
|
|
800
|
+
PatchArticleRequest: z.ZodObject<{
|
|
801
|
+
slug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
802
|
+
title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
803
|
+
excerpt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
804
|
+
content: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
805
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
806
|
+
featuredImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
808
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
809
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
}, "strict", z.ZodTypeAny, {
|
|
811
|
+
tags?: string[] | undefined;
|
|
812
|
+
slug?: Record<string, string> | undefined;
|
|
813
|
+
title?: Record<string, string> | undefined;
|
|
814
|
+
excerpt?: Record<string, string> | undefined;
|
|
815
|
+
content?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
816
|
+
featuredImageId?: string | null | undefined;
|
|
817
|
+
isActive?: boolean | undefined;
|
|
818
|
+
isFeatured?: boolean | undefined;
|
|
819
|
+
priority?: number | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
tags?: string[] | undefined;
|
|
822
|
+
slug?: Record<string, string> | undefined;
|
|
823
|
+
title?: Record<string, string> | undefined;
|
|
824
|
+
excerpt?: Record<string, string> | undefined;
|
|
825
|
+
content?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
826
|
+
featuredImageId?: string | null | undefined;
|
|
827
|
+
isActive?: boolean | undefined;
|
|
828
|
+
isFeatured?: boolean | undefined;
|
|
829
|
+
priority?: number | undefined;
|
|
830
|
+
}>;
|
|
831
|
+
PatchArticleResponse: z.ZodObject<{
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
venueId: z.ZodString;
|
|
834
|
+
accessor: z.ZodString;
|
|
835
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
836
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
837
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
838
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
839
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
840
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
isActive: z.ZodBoolean;
|
|
842
|
+
isFeatured: z.ZodBoolean;
|
|
843
|
+
priority: z.ZodNumber;
|
|
844
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
845
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
846
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
847
|
+
}, "strict", z.ZodTypeAny, {
|
|
848
|
+
id: string;
|
|
849
|
+
venueId: string;
|
|
850
|
+
accessor: string;
|
|
851
|
+
tags: string[];
|
|
852
|
+
slug: Record<string, string>;
|
|
853
|
+
title: Record<string, string>;
|
|
854
|
+
excerpt: Record<string, string> | null;
|
|
855
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
856
|
+
featuredImageId: string | null;
|
|
857
|
+
isActive: boolean;
|
|
858
|
+
isFeatured: boolean;
|
|
859
|
+
priority: number;
|
|
860
|
+
createdAt?: unknown;
|
|
861
|
+
updatedAt?: unknown;
|
|
862
|
+
publishedAt?: unknown;
|
|
863
|
+
}, {
|
|
864
|
+
id: string;
|
|
865
|
+
venueId: string;
|
|
866
|
+
accessor: string;
|
|
867
|
+
tags: string[];
|
|
868
|
+
slug: Record<string, string>;
|
|
869
|
+
title: Record<string, string>;
|
|
870
|
+
excerpt: Record<string, string> | null;
|
|
871
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
872
|
+
featuredImageId: string | null;
|
|
873
|
+
isActive: boolean;
|
|
874
|
+
isFeatured: boolean;
|
|
875
|
+
priority: number;
|
|
876
|
+
createdAt?: unknown;
|
|
877
|
+
updatedAt?: unknown;
|
|
878
|
+
publishedAt?: unknown;
|
|
879
|
+
}>;
|
|
652
880
|
AddToBasketRequest: z.ZodObject<{
|
|
653
881
|
venueId: z.ZodString;
|
|
654
882
|
sessionId: z.ZodString;
|
|
@@ -1082,6 +1310,9 @@ declare const schemas: {
|
|
|
1082
1310
|
venueAccessor: string;
|
|
1083
1311
|
accessor?: string | null | undefined;
|
|
1084
1312
|
description?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1313
|
+
isActive?: boolean | undefined;
|
|
1314
|
+
isFeatured?: boolean | undefined;
|
|
1315
|
+
priority?: number | undefined;
|
|
1085
1316
|
scheduleId?: string | null | undefined;
|
|
1086
1317
|
maxBookings?: number | null | undefined;
|
|
1087
1318
|
maxGuests?: number | null | undefined;
|
|
@@ -1092,9 +1323,6 @@ declare const schemas: {
|
|
|
1092
1323
|
reservationsEnabled?: boolean | undefined;
|
|
1093
1324
|
bookingOpensAtDays?: number | null | undefined;
|
|
1094
1325
|
bookingClosesAtHours?: number | null | undefined;
|
|
1095
|
-
isActive?: boolean | undefined;
|
|
1096
|
-
isFeatured?: boolean | undefined;
|
|
1097
|
-
priority?: number | undefined;
|
|
1098
1326
|
schedule?: {
|
|
1099
1327
|
timeRanges: {
|
|
1100
1328
|
startTime: string;
|
|
@@ -1115,6 +1343,9 @@ declare const schemas: {
|
|
|
1115
1343
|
venueAccessor: string;
|
|
1116
1344
|
accessor?: string | null | undefined;
|
|
1117
1345
|
description?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1346
|
+
isActive?: boolean | undefined;
|
|
1347
|
+
isFeatured?: boolean | undefined;
|
|
1348
|
+
priority?: number | undefined;
|
|
1118
1349
|
scheduleId?: string | null | undefined;
|
|
1119
1350
|
maxBookings?: number | null | undefined;
|
|
1120
1351
|
maxGuests?: number | null | undefined;
|
|
@@ -1125,9 +1356,6 @@ declare const schemas: {
|
|
|
1125
1356
|
reservationsEnabled?: boolean | undefined;
|
|
1126
1357
|
bookingOpensAtDays?: number | null | undefined;
|
|
1127
1358
|
bookingClosesAtHours?: number | null | undefined;
|
|
1128
|
-
isActive?: boolean | undefined;
|
|
1129
|
-
isFeatured?: boolean | undefined;
|
|
1130
|
-
priority?: number | undefined;
|
|
1131
1359
|
schedule?: {
|
|
1132
1360
|
timeRanges: {
|
|
1133
1361
|
startTime: string;
|
|
@@ -1174,6 +1402,9 @@ declare const schemas: {
|
|
|
1174
1402
|
accessor: string | null;
|
|
1175
1403
|
name: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1176
1404
|
description: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1405
|
+
isActive: boolean;
|
|
1406
|
+
isFeatured: boolean;
|
|
1407
|
+
priority: number;
|
|
1177
1408
|
scheduleId: string | null;
|
|
1178
1409
|
maxBookings: number | null;
|
|
1179
1410
|
maxGuests: number | null;
|
|
@@ -1184,9 +1415,6 @@ declare const schemas: {
|
|
|
1184
1415
|
reservationsEnabled: boolean;
|
|
1185
1416
|
bookingOpensAtDays: number | null;
|
|
1186
1417
|
bookingClosesAtHours: number | null;
|
|
1187
|
-
isActive: boolean;
|
|
1188
|
-
isFeatured: boolean;
|
|
1189
|
-
priority: number;
|
|
1190
1418
|
ritualId: string | null;
|
|
1191
1419
|
createdBy: string | null;
|
|
1192
1420
|
updatedBy: string | null;
|
|
@@ -1198,6 +1426,9 @@ declare const schemas: {
|
|
|
1198
1426
|
accessor: string | null;
|
|
1199
1427
|
name: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1200
1428
|
description: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1429
|
+
isActive: boolean;
|
|
1430
|
+
isFeatured: boolean;
|
|
1431
|
+
priority: number;
|
|
1201
1432
|
scheduleId: string | null;
|
|
1202
1433
|
maxBookings: number | null;
|
|
1203
1434
|
maxGuests: number | null;
|
|
@@ -1208,9 +1439,6 @@ declare const schemas: {
|
|
|
1208
1439
|
reservationsEnabled: boolean;
|
|
1209
1440
|
bookingOpensAtDays: number | null;
|
|
1210
1441
|
bookingClosesAtHours: number | null;
|
|
1211
|
-
isActive: boolean;
|
|
1212
|
-
isFeatured: boolean;
|
|
1213
|
-
priority: number;
|
|
1214
1442
|
ritualId: string | null;
|
|
1215
1443
|
createdBy: string | null;
|
|
1216
1444
|
updatedBy: string | null;
|
|
@@ -1743,8 +1971,8 @@ declare const schemas: {
|
|
|
1743
1971
|
name: Record<string, string>;
|
|
1744
1972
|
description: Record<string, string> | null;
|
|
1745
1973
|
currency: "EUR" | "CHF";
|
|
1746
|
-
scheduleId: string | null;
|
|
1747
1974
|
isActive: boolean;
|
|
1975
|
+
scheduleId: string | null;
|
|
1748
1976
|
menuId: string;
|
|
1749
1977
|
shortName: Record<string, string> | null;
|
|
1750
1978
|
allowance: number;
|
|
@@ -1772,8 +2000,8 @@ declare const schemas: {
|
|
|
1772
2000
|
name: Record<string, string>;
|
|
1773
2001
|
description: Record<string, string> | null;
|
|
1774
2002
|
currency: "EUR" | "CHF";
|
|
1775
|
-
scheduleId: string | null;
|
|
1776
2003
|
isActive: boolean;
|
|
2004
|
+
scheduleId: string | null;
|
|
1777
2005
|
menuId: string;
|
|
1778
2006
|
shortName: Record<string, string> | null;
|
|
1779
2007
|
allowance: number;
|
|
@@ -2748,6 +2976,43 @@ declare const schemas: {
|
|
|
2748
2976
|
teamOrderId: string;
|
|
2749
2977
|
deliveryAddressId: string;
|
|
2750
2978
|
}>;
|
|
2979
|
+
GetVenueResponse: z.ZodObject<{
|
|
2980
|
+
id: z.ZodString;
|
|
2981
|
+
accessor: z.ZodString;
|
|
2982
|
+
officialName: z.ZodString;
|
|
2983
|
+
legalName: z.ZodString;
|
|
2984
|
+
shortName: z.ZodString;
|
|
2985
|
+
brandName: z.ZodString;
|
|
2986
|
+
primaryLocale: z.ZodString;
|
|
2987
|
+
supportedLocales: z.ZodArray<z.ZodString, "many">;
|
|
2988
|
+
timezone: z.ZodString;
|
|
2989
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
2990
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
2991
|
+
}, "strict", z.ZodTypeAny, {
|
|
2992
|
+
id: string;
|
|
2993
|
+
accessor: string;
|
|
2994
|
+
timezone: string;
|
|
2995
|
+
shortName: string;
|
|
2996
|
+
officialName: string;
|
|
2997
|
+
legalName: string;
|
|
2998
|
+
brandName: string;
|
|
2999
|
+
primaryLocale: string;
|
|
3000
|
+
supportedLocales: string[];
|
|
3001
|
+
createdAt?: unknown;
|
|
3002
|
+
updatedAt?: unknown;
|
|
3003
|
+
}, {
|
|
3004
|
+
id: string;
|
|
3005
|
+
accessor: string;
|
|
3006
|
+
timezone: string;
|
|
3007
|
+
shortName: string;
|
|
3008
|
+
officialName: string;
|
|
3009
|
+
legalName: string;
|
|
3010
|
+
brandName: string;
|
|
3011
|
+
primaryLocale: string;
|
|
3012
|
+
supportedLocales: string[];
|
|
3013
|
+
createdAt?: unknown;
|
|
3014
|
+
updatedAt?: unknown;
|
|
3015
|
+
}>;
|
|
2751
3016
|
};
|
|
2752
3017
|
|
|
2753
3018
|
export { schemas };
|