order3000 1.13.1 → 2.0.1

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.
@@ -0,0 +1,295 @@
1
+ 'use strict';
2
+
3
+ var v4 = require('zod/v4');
4
+
5
+ const fulfillmentTypeSchema = v4.z.enum(["pickup", "delivery"]);
6
+
7
+ const participantStatusSchema = v4.z.enum([
8
+ "browsing",
9
+ "authorized",
10
+ "cash_pending",
11
+ "placed",
12
+ "completed",
13
+ "cancelled"
14
+ ]);
15
+
16
+ const paymentMethodSchema = v4.z.enum(["card", "cash", "voucher"]);
17
+
18
+ const teamOrderStatusSchema = v4.z.enum([
19
+ "draft",
20
+ "collecting",
21
+ "locked",
22
+ "placed",
23
+ "ready",
24
+ "completed",
25
+ "cancelled"
26
+ ]);
27
+
28
+ const countrySchema = v4.z.enum([
29
+ "AD",
30
+ "AE",
31
+ "AF",
32
+ "AG",
33
+ "AI",
34
+ "AL",
35
+ "AM",
36
+ "AO",
37
+ "AQ",
38
+ "AR",
39
+ "AS",
40
+ "AT",
41
+ "AU",
42
+ "AW",
43
+ "AX",
44
+ "AZ",
45
+ "BA",
46
+ "BB",
47
+ "BD",
48
+ "BE",
49
+ "BF",
50
+ "BG",
51
+ "BH",
52
+ "BI",
53
+ "BJ",
54
+ "BL",
55
+ "BM",
56
+ "BN",
57
+ "BO",
58
+ "BQ",
59
+ "BR",
60
+ "BS",
61
+ "BT",
62
+ "BV",
63
+ "BW",
64
+ "BY",
65
+ "BZ",
66
+ "CA",
67
+ "CC",
68
+ "CD",
69
+ "CF",
70
+ "CG",
71
+ "CH",
72
+ "CI",
73
+ "CK",
74
+ "CL",
75
+ "CM",
76
+ "CN",
77
+ "CO",
78
+ "CR",
79
+ "CU",
80
+ "CV",
81
+ "CW",
82
+ "CX",
83
+ "CY",
84
+ "CZ",
85
+ "DE",
86
+ "DJ",
87
+ "DK",
88
+ "DM",
89
+ "DO",
90
+ "DZ",
91
+ "EC",
92
+ "EE",
93
+ "EG",
94
+ "EH",
95
+ "ER",
96
+ "ES",
97
+ "ET",
98
+ "FI",
99
+ "FJ",
100
+ "FK",
101
+ "FM",
102
+ "FO",
103
+ "FR",
104
+ "GA",
105
+ "GB",
106
+ "GD",
107
+ "GE",
108
+ "GF",
109
+ "GG",
110
+ "GH",
111
+ "GI",
112
+ "GL",
113
+ "GM",
114
+ "GN",
115
+ "GP",
116
+ "GQ",
117
+ "GR",
118
+ "GS",
119
+ "GT",
120
+ "GU",
121
+ "GW",
122
+ "GY",
123
+ "HK",
124
+ "HM",
125
+ "HN",
126
+ "HR",
127
+ "HT",
128
+ "HU",
129
+ "ID",
130
+ "IE",
131
+ "IL",
132
+ "IM",
133
+ "IN",
134
+ "IO",
135
+ "IQ",
136
+ "IR",
137
+ "IS",
138
+ "IT",
139
+ "JE",
140
+ "JM",
141
+ "JO",
142
+ "JP",
143
+ "KE",
144
+ "KG",
145
+ "KH",
146
+ "KI",
147
+ "KM",
148
+ "KN",
149
+ "KP",
150
+ "KR",
151
+ "KW",
152
+ "KY",
153
+ "KZ",
154
+ "LA",
155
+ "LB",
156
+ "LC",
157
+ "LI",
158
+ "LK",
159
+ "LR",
160
+ "LS",
161
+ "LT",
162
+ "LU",
163
+ "LV",
164
+ "LY",
165
+ "MA",
166
+ "MC",
167
+ "MD",
168
+ "ME",
169
+ "MF",
170
+ "MG",
171
+ "MH",
172
+ "MK",
173
+ "ML",
174
+ "MM",
175
+ "MN",
176
+ "MO",
177
+ "MP",
178
+ "MQ",
179
+ "MR",
180
+ "MS",
181
+ "MT",
182
+ "MU",
183
+ "MV",
184
+ "MW",
185
+ "MX",
186
+ "MY",
187
+ "MZ",
188
+ "NA",
189
+ "NC",
190
+ "NE",
191
+ "NF",
192
+ "NG",
193
+ "NI",
194
+ "NL",
195
+ "NO",
196
+ "NP",
197
+ "NR",
198
+ "NU",
199
+ "NZ",
200
+ "OM",
201
+ "PA",
202
+ "PE",
203
+ "PF",
204
+ "PG",
205
+ "PH",
206
+ "PK",
207
+ "PL",
208
+ "PM",
209
+ "PN",
210
+ "PR",
211
+ "PS",
212
+ "PT",
213
+ "PW",
214
+ "PY",
215
+ "QA",
216
+ "RE",
217
+ "RO",
218
+ "RS",
219
+ "RU",
220
+ "RW",
221
+ "SA",
222
+ "SB",
223
+ "SC",
224
+ "SD",
225
+ "SE",
226
+ "SG",
227
+ "SH",
228
+ "SI",
229
+ "SJ",
230
+ "SK",
231
+ "SL",
232
+ "SM",
233
+ "SN",
234
+ "SO",
235
+ "SR",
236
+ "SS",
237
+ "ST",
238
+ "SV",
239
+ "SX",
240
+ "SY",
241
+ "SZ",
242
+ "TC",
243
+ "TD",
244
+ "TF",
245
+ "TG",
246
+ "TH",
247
+ "TJ",
248
+ "TK",
249
+ "TL",
250
+ "TM",
251
+ "TN",
252
+ "TO",
253
+ "TR",
254
+ "TT",
255
+ "TV",
256
+ "TW",
257
+ "TZ",
258
+ "UA",
259
+ "UG",
260
+ "UM",
261
+ "US",
262
+ "UY",
263
+ "UZ",
264
+ "VA",
265
+ "VC",
266
+ "VE",
267
+ "VG",
268
+ "VI",
269
+ "VN",
270
+ "VU",
271
+ "WF",
272
+ "WS",
273
+ "YE",
274
+ "YT",
275
+ "ZA",
276
+ "ZM",
277
+ "ZW"
278
+ ]);
279
+
280
+ const deliveryAddressSchema = v4.z.object({
281
+ street: v4.z.string(),
282
+ city: v4.z.string(),
283
+ region: v4.z.string().nullish(),
284
+ postcode: v4.z.string(),
285
+ get country() {
286
+ return countrySchema;
287
+ }
288
+ });
289
+
290
+ exports.countrySchema = countrySchema;
291
+ exports.deliveryAddressSchema = deliveryAddressSchema;
292
+ exports.fulfillmentTypeSchema = fulfillmentTypeSchema;
293
+ exports.participantStatusSchema = participantStatusSchema;
294
+ exports.paymentMethodSchema = paymentMethodSchema;
295
+ exports.teamOrderStatusSchema = teamOrderStatusSchema;
@@ -0,0 +1,288 @@
1
+ import { z } from 'zod/v4';
2
+
3
+ const fulfillmentTypeSchema = z.enum(["pickup", "delivery"]);
4
+
5
+ const participantStatusSchema = z.enum([
6
+ "browsing",
7
+ "authorized",
8
+ "cash_pending",
9
+ "placed",
10
+ "completed",
11
+ "cancelled"
12
+ ]);
13
+
14
+ const paymentMethodSchema = z.enum(["card", "cash", "voucher"]);
15
+
16
+ const teamOrderStatusSchema = z.enum([
17
+ "draft",
18
+ "collecting",
19
+ "locked",
20
+ "placed",
21
+ "ready",
22
+ "completed",
23
+ "cancelled"
24
+ ]);
25
+
26
+ const countrySchema = z.enum([
27
+ "AD",
28
+ "AE",
29
+ "AF",
30
+ "AG",
31
+ "AI",
32
+ "AL",
33
+ "AM",
34
+ "AO",
35
+ "AQ",
36
+ "AR",
37
+ "AS",
38
+ "AT",
39
+ "AU",
40
+ "AW",
41
+ "AX",
42
+ "AZ",
43
+ "BA",
44
+ "BB",
45
+ "BD",
46
+ "BE",
47
+ "BF",
48
+ "BG",
49
+ "BH",
50
+ "BI",
51
+ "BJ",
52
+ "BL",
53
+ "BM",
54
+ "BN",
55
+ "BO",
56
+ "BQ",
57
+ "BR",
58
+ "BS",
59
+ "BT",
60
+ "BV",
61
+ "BW",
62
+ "BY",
63
+ "BZ",
64
+ "CA",
65
+ "CC",
66
+ "CD",
67
+ "CF",
68
+ "CG",
69
+ "CH",
70
+ "CI",
71
+ "CK",
72
+ "CL",
73
+ "CM",
74
+ "CN",
75
+ "CO",
76
+ "CR",
77
+ "CU",
78
+ "CV",
79
+ "CW",
80
+ "CX",
81
+ "CY",
82
+ "CZ",
83
+ "DE",
84
+ "DJ",
85
+ "DK",
86
+ "DM",
87
+ "DO",
88
+ "DZ",
89
+ "EC",
90
+ "EE",
91
+ "EG",
92
+ "EH",
93
+ "ER",
94
+ "ES",
95
+ "ET",
96
+ "FI",
97
+ "FJ",
98
+ "FK",
99
+ "FM",
100
+ "FO",
101
+ "FR",
102
+ "GA",
103
+ "GB",
104
+ "GD",
105
+ "GE",
106
+ "GF",
107
+ "GG",
108
+ "GH",
109
+ "GI",
110
+ "GL",
111
+ "GM",
112
+ "GN",
113
+ "GP",
114
+ "GQ",
115
+ "GR",
116
+ "GS",
117
+ "GT",
118
+ "GU",
119
+ "GW",
120
+ "GY",
121
+ "HK",
122
+ "HM",
123
+ "HN",
124
+ "HR",
125
+ "HT",
126
+ "HU",
127
+ "ID",
128
+ "IE",
129
+ "IL",
130
+ "IM",
131
+ "IN",
132
+ "IO",
133
+ "IQ",
134
+ "IR",
135
+ "IS",
136
+ "IT",
137
+ "JE",
138
+ "JM",
139
+ "JO",
140
+ "JP",
141
+ "KE",
142
+ "KG",
143
+ "KH",
144
+ "KI",
145
+ "KM",
146
+ "KN",
147
+ "KP",
148
+ "KR",
149
+ "KW",
150
+ "KY",
151
+ "KZ",
152
+ "LA",
153
+ "LB",
154
+ "LC",
155
+ "LI",
156
+ "LK",
157
+ "LR",
158
+ "LS",
159
+ "LT",
160
+ "LU",
161
+ "LV",
162
+ "LY",
163
+ "MA",
164
+ "MC",
165
+ "MD",
166
+ "ME",
167
+ "MF",
168
+ "MG",
169
+ "MH",
170
+ "MK",
171
+ "ML",
172
+ "MM",
173
+ "MN",
174
+ "MO",
175
+ "MP",
176
+ "MQ",
177
+ "MR",
178
+ "MS",
179
+ "MT",
180
+ "MU",
181
+ "MV",
182
+ "MW",
183
+ "MX",
184
+ "MY",
185
+ "MZ",
186
+ "NA",
187
+ "NC",
188
+ "NE",
189
+ "NF",
190
+ "NG",
191
+ "NI",
192
+ "NL",
193
+ "NO",
194
+ "NP",
195
+ "NR",
196
+ "NU",
197
+ "NZ",
198
+ "OM",
199
+ "PA",
200
+ "PE",
201
+ "PF",
202
+ "PG",
203
+ "PH",
204
+ "PK",
205
+ "PL",
206
+ "PM",
207
+ "PN",
208
+ "PR",
209
+ "PS",
210
+ "PT",
211
+ "PW",
212
+ "PY",
213
+ "QA",
214
+ "RE",
215
+ "RO",
216
+ "RS",
217
+ "RU",
218
+ "RW",
219
+ "SA",
220
+ "SB",
221
+ "SC",
222
+ "SD",
223
+ "SE",
224
+ "SG",
225
+ "SH",
226
+ "SI",
227
+ "SJ",
228
+ "SK",
229
+ "SL",
230
+ "SM",
231
+ "SN",
232
+ "SO",
233
+ "SR",
234
+ "SS",
235
+ "ST",
236
+ "SV",
237
+ "SX",
238
+ "SY",
239
+ "SZ",
240
+ "TC",
241
+ "TD",
242
+ "TF",
243
+ "TG",
244
+ "TH",
245
+ "TJ",
246
+ "TK",
247
+ "TL",
248
+ "TM",
249
+ "TN",
250
+ "TO",
251
+ "TR",
252
+ "TT",
253
+ "TV",
254
+ "TW",
255
+ "TZ",
256
+ "UA",
257
+ "UG",
258
+ "UM",
259
+ "US",
260
+ "UY",
261
+ "UZ",
262
+ "VA",
263
+ "VC",
264
+ "VE",
265
+ "VG",
266
+ "VI",
267
+ "VN",
268
+ "VU",
269
+ "WF",
270
+ "WS",
271
+ "YE",
272
+ "YT",
273
+ "ZA",
274
+ "ZM",
275
+ "ZW"
276
+ ]);
277
+
278
+ const deliveryAddressSchema = z.object({
279
+ street: z.string(),
280
+ city: z.string(),
281
+ region: z.string().nullish(),
282
+ postcode: z.string(),
283
+ get country() {
284
+ return countrySchema;
285
+ }
286
+ });
287
+
288
+ export { paymentMethodSchema as a, countrySchema as c, deliveryAddressSchema as d, fulfillmentTypeSchema as f, participantStatusSchema as p, teamOrderStatusSchema as t };
@@ -3065,9 +3065,9 @@ interface components {
3065
3065
  DeliveryAddress: {
3066
3066
  street: string;
3067
3067
  city: string;
3068
- state: string;
3069
- postalCode: string;
3070
- country: string;
3068
+ region?: string | null;
3069
+ postcode: string;
3070
+ country: components["schemas"]["Country"];
3071
3071
  };
3072
3072
  /**
3073
3073
  * CreateTeamOrderRequest
@@ -3522,6 +3522,14 @@ interface components {
3522
3522
  /** @enum {string} */
3523
3523
  InvitationScenario: "new_user" | "already_member" | "former_employee";
3524
3524
  /** @enum {string} */
3525
+ InvitationStatus: "pending" | "accepted" | "rejected" | "expired" | "revoked";
3526
+ /** @enum {string} */
3527
+ InvitationType: "venue_user" | "party_connection";
3528
+ /** @enum {string} */
3529
+ Jurisdiction: "DE" | "CH" | "FR" | "IT";
3530
+ /** @enum {string} */
3531
+ JurisdictionType: "country" | "region" | "municipality";
3532
+ /** @enum {string} */
3525
3533
  KeywordDefaultScope: "venueType" | "cuisine";
3526
3534
  /** @enum {string} */
3527
3535
  Locale: "aa" | "ab" | "ae" | "af" | "ak" | "am" | "an" | "ar" | "as" | "av" | "ay" | "az" | "ba" | "be" | "bg" | "bh" | "bi" | "bm" | "bn" | "bo" | "br" | "bs" | "ca" | "ce" | "ch" | "co" | "cr" | "cs" | "cu" | "cv" | "cy" | "da" | "de" | "dv" | "dz" | "ee" | "el" | "en" | "eo" | "es" | "et" | "eu" | "fa" | "ff" | "fi" | "fj" | "fo" | "fr" | "fy" | "ga" | "gd" | "gl" | "gn" | "gu" | "gv" | "ha" | "he" | "hi" | "ho" | "hr" | "ht" | "hu" | "hy" | "hz" | "ia" | "id" | "ie" | "ig" | "ii" | "ik" | "io" | "is" | "it" | "iu" | "ja" | "jv" | "ka" | "kg" | "ki" | "kj" | "kk" | "kl" | "km" | "kn" | "ko" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "la" | "lb" | "lg" | "li" | "ln" | "lo" | "lt" | "lu" | "lv" | "mg" | "mh" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "na" | "nb" | "nd" | "ne" | "ng" | "nl" | "nn" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "or" | "os" | "pa" | "pi" | "pl" | "ps" | "pt" | "qu" | "rm" | "rn" | "ro" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sm" | "sn" | "so" | "sq" | "sr" | "ss" | "st" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "ti" | "tk" | "tl" | "tn" | "to" | "tr" | "ts" | "tt" | "tw" | "ty" | "ug" | "uk" | "ur" | "uz" | "ve" | "vi" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zu";
@@ -3530,6 +3538,16 @@ interface components {
3530
3538
  /** @enum {string} */
3531
3539
  MenuItemType: "dish" | "beverage";
3532
3540
  /** @enum {string} */
3541
+ MessageDirection: "incoming" | "outgoing";
3542
+ /** @enum {string} */
3543
+ MessageSource: "platform";
3544
+ /** @enum {string} */
3545
+ MessageStatus: "draft" | "submitting" | "submitted" | "rejected" | "failed" | "received";
3546
+ /** @enum {string} */
3547
+ MessageThreadStatus: "open" | "awaiting_them" | "awaiting_us" | "closed";
3548
+ /** @enum {string} */
3549
+ MessageThreadSubjectType: "party";
3550
+ /** @enum {string} */
3533
3551
  MetaCallToAction: "LEARN_MORE" | "BOOK_TRAVEL" | "ORDER_NOW" | "GET_OFFER" | "CONTACT_US" | "SIGN_UP";
3534
3552
  /** @enum {string} */
3535
3553
  MetaChannel: "facebook" | "instagram";
@@ -3546,6 +3564,8 @@ interface components {
3546
3564
  /** @enum {string} */
3547
3565
  OrderStatus: "pending" | "in_progress" | "ready" | "completed" | "cancelled";
3548
3566
  /** @enum {string} */
3567
+ PartyGender: "male" | "female" | "neutral";
3568
+ /** @enum {string} */
3549
3569
  PartyType: "natural_person" | "legal_entity";
3550
3570
  /** @enum {string} */
3551
3571
  PaxBand: "1-2" | "3-4" | "5-6" | "7+";
@@ -3606,6 +3626,8 @@ interface components {
3606
3626
  /** @enum {string} */
3607
3627
  MentionType: "link" | "value";
3608
3628
  /** @enum {string} */
3629
+ Permission: "area-booking-requests:create" | "bank-accounts:manage" | "bank-accounts:view" | "beverages:create" | "beverages:delete" | "beverages:read" | "beverages:update" | "categories:create" | "categories:delete" | "categories:update" | "deposits:calculate" | "deposits:mark-lost" | "deposits:override-penalty" | "deposits:process-return" | "deposits:report" | "deposits:view" | "dishes:create" | "dishes:delete" | "dishes:read" | "dishes:update" | "features:create" | "features:delete" | "features:update" | "features:view" | "fulfillment:assign" | "fulfillment:mark-delivered" | "iam:human" | "iam:robot" | "inbox:view" | "kitchen:mark-preparing" | "kitchen:mark-ready" | "kitchen:view" | "m2m:ping" | "menus:manage" | "menus:read" | "orders:activity" | "orders:analytics" | "orders:cancel" | "orders:create" | "orders:discount" | "orders:export" | "orders:read-all" | "orders:read-own" | "orders:refund" | "orders:update" | "orders:void" | "payments:process" | "payments:refund" | "plans:create" | "plans:delete" | "plans:update" | "plans:view" | "platform:view" | "users:delete" | "platform-mention-fields:manage" | "reports:analytics" | "reports:orders" | "roles:assign" | "roles:create" | "roles:delete" | "roles:update" | "roles:view" | "rolodex:manage" | "rolodex:view" | "subscriptions:create" | "subscriptions:delete" | "subscriptions:update" | "subscriptions:view" | "team:invite" | "team:remove" | "team:revoke" | "team:update" | "team:view" | "venue:manage-gbp" | "venue:manage-payments" | "venue:update" | "venue:view";
3630
+ /** @enum {string} */
3609
3631
  PendingSuperadminTransferStatus: "pending_invite" | "accepted_awaiting_payment" | "completed" | "cancelled" | "expired";
3610
3632
  /** @enum {string} */
3611
3633
  BillingMode: "single_anchor" | "split";
@@ -3618,9 +3640,9 @@ interface components {
3618
3640
  /** @enum {string} */
3619
3641
  GbpSyncStatus: "processing" | "live" | "rejected" | "failed" | "removed";
3620
3642
  /** @enum {string} */
3621
- GeoAreaType: "postcode" | "city" | "region";
3643
+ GeoAreaType: "postcode" | "city";
3622
3644
  /** @enum {string} */
3623
- Jurisdiction: "DE" | "CH" | "FR" | "IT";
3645
+ PublicationSectionType: "cover" | "body" | "back";
3624
3646
  /** @enum {string} */
3625
3647
  PublicationFrameStyle: "solid" | "icon";
3626
3648
  /** @enum {string} */
@@ -3650,8 +3672,6 @@ interface components {
3650
3672
  /** @enum {string} */
3651
3673
  PublicationWeekScope: "current" | "all" | "range";
3652
3674
  /** @enum {string} */
3653
- PublicationSectionType: "cover" | "body" | "back";
3654
- /** @enum {string} */
3655
3675
  Direction: "left" | "right" | "up" | "down";
3656
3676
  /** @enum {string} */
3657
3677
  DirectionX: "left" | "right";
@@ -3682,6 +3702,8 @@ interface components {
3682
3702
  /** @enum {string} */
3683
3703
  FeatureCategory: "articles" | "auth" | "billing" | "core" | "guests" | "events" | "inventory" | "menus" | "orders" | "platform" | "promotions" | "reservations" | "settings" | "venues";
3684
3704
  /** @enum {string} */
3705
+ FeatureGate: "custom-email-sender";
3706
+ /** @enum {string} */
3685
3707
  FeatureStatus: "backlog" | "in_development" | "released";
3686
3708
  /** @enum {string} */
3687
3709
  MentionFieldFormatter: "text" | "currency" | "integer" | "percentage" | "boolean";