@ventrata/octo-types 0.0.7 → 0.0.8

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.
@@ -1,2 +1,4 @@
1
1
  import type { Octo_BookingCancellationBody } from './Octo_BookingCancellationBody';
2
- export type BookingCancellationBody = Octo_BookingCancellationBody;
2
+ export type BookingCancellationBody = Octo_BookingCancellationBody & {
3
+ emailReceipt?: boolean;
4
+ };
@@ -17,4 +17,6 @@ export type BookingConfirmationBody = {
17
17
  * Contact details for the main guest who will attend the tour/attraction. Contact Body can be applied to both the booking object (the main reservation) or the unit object (individual ticket holders - if the supplier requires this information).
18
18
  */
19
19
  contact: BookingContact;
20
+ notes?: string;
21
+ metadata?: Record<string, string>;
20
22
  };
@@ -65,4 +65,5 @@ export type BookingReservationBody = {
65
65
  uuid?: string;
66
66
  tags?: Array<string>;
67
67
  orderId?: string;
68
+ metadata?: Record<string, string>;
68
69
  };
@@ -60,4 +60,5 @@ export type BookingUpdateBody = {
60
60
  */
61
61
  uuid?: string;
62
62
  tags?: Array<string>;
63
+ metadata?: Record<string, string>;
63
64
  };
@@ -1,10 +1,17 @@
1
- export declare const bookingCancellationBodySchema: import("zod").ZodObject<{
2
- reason: import("zod").ZodOptional<import("zod").ZodString>;
3
- force: import("zod").ZodOptional<import("zod").ZodBoolean>;
4
- }, "strip", import("zod").ZodTypeAny, {
1
+ import { z } from 'zod';
2
+ export declare const bookingCancellationBodySchema: z.ZodIntersection<z.ZodObject<{
3
+ reason: z.ZodOptional<z.ZodString>;
4
+ force: z.ZodOptional<z.ZodBoolean>;
5
+ }, "strip", z.ZodTypeAny, {
5
6
  reason?: string | undefined;
6
7
  force?: boolean | undefined;
7
8
  }, {
8
9
  reason?: string | undefined;
9
10
  force?: boolean | undefined;
10
- }>;
11
+ }>, z.ZodObject<{
12
+ emailReceipt: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ emailReceipt?: boolean | undefined;
15
+ }, {
16
+ emailReceipt?: boolean | undefined;
17
+ }>>;
@@ -24,7 +24,7 @@ export declare const bookingCancellationRequestSchema: z.ZodIntersection<z.ZodOb
24
24
  };
25
25
  uuid: string;
26
26
  }>, z.ZodObject<{
27
- body: z.ZodObject<{
27
+ body: z.ZodIntersection<z.ZodObject<{
28
28
  reason: z.ZodOptional<z.ZodString>;
29
29
  force: z.ZodOptional<z.ZodBoolean>;
30
30
  }, "strip", z.ZodTypeAny, {
@@ -33,15 +33,25 @@ export declare const bookingCancellationRequestSchema: z.ZodIntersection<z.ZodOb
33
33
  }, {
34
34
  reason?: string | undefined;
35
35
  force?: boolean | undefined;
36
- }>;
36
+ }>, z.ZodObject<{
37
+ emailReceipt: z.ZodOptional<z.ZodBoolean>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ emailReceipt?: boolean | undefined;
40
+ }, {
41
+ emailReceipt?: boolean | undefined;
42
+ }>>;
37
43
  }, "strip", z.ZodTypeAny, {
38
44
  body: {
39
45
  reason?: string | undefined;
40
46
  force?: boolean | undefined;
47
+ } & {
48
+ emailReceipt?: boolean | undefined;
41
49
  };
42
50
  }, {
43
51
  body: {
44
52
  reason?: string | undefined;
45
53
  force?: boolean | undefined;
54
+ } & {
55
+ emailReceipt?: boolean | undefined;
46
56
  };
47
57
  }>>;
@@ -67,6 +67,8 @@ export declare const bookingConfirmationBodySchema: z.ZodObject<{
67
67
  streetAddress?: string | null | undefined;
68
68
  city?: string | null | undefined;
69
69
  }>;
70
+ notes: z.ZodOptional<z.ZodString>;
71
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
72
  }, "strip", z.ZodTypeAny, {
71
73
  contact: {
72
74
  firstName?: string | undefined;
@@ -91,8 +93,10 @@ export declare const bookingConfirmationBodySchema: z.ZodObject<{
91
93
  resellerReference?: string | undefined;
92
94
  alias?: string | undefined;
93
95
  }[];
96
+ notes?: string | undefined;
94
97
  resellerReference?: string | undefined;
95
98
  emailReceipt?: boolean | undefined;
99
+ metadata?: Record<string, string> | undefined;
96
100
  }, {
97
101
  contact: {
98
102
  firstName?: string | undefined;
@@ -117,6 +121,8 @@ export declare const bookingConfirmationBodySchema: z.ZodObject<{
117
121
  resellerReference?: string | undefined;
118
122
  alias?: string | undefined;
119
123
  }[];
124
+ notes?: string | undefined;
120
125
  resellerReference?: string | undefined;
121
126
  emailReceipt?: boolean | undefined;
127
+ metadata?: Record<string, string> | undefined;
122
128
  }>;
@@ -193,6 +193,8 @@ export declare const bookingConfirmationRequestSchema: z.ZodIntersection<z.ZodOb
193
193
  streetAddress?: string | null | undefined;
194
194
  city?: string | null | undefined;
195
195
  }>;
196
+ notes: z.ZodOptional<z.ZodString>;
197
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
196
198
  }, "strip", z.ZodTypeAny, {
197
199
  contact: {
198
200
  firstName?: string | undefined;
@@ -217,8 +219,10 @@ export declare const bookingConfirmationRequestSchema: z.ZodIntersection<z.ZodOb
217
219
  resellerReference?: string | undefined;
218
220
  alias?: string | undefined;
219
221
  }[];
222
+ notes?: string | undefined;
220
223
  resellerReference?: string | undefined;
221
224
  emailReceipt?: boolean | undefined;
225
+ metadata?: Record<string, string> | undefined;
222
226
  }, {
223
227
  contact: {
224
228
  firstName?: string | undefined;
@@ -243,8 +247,10 @@ export declare const bookingConfirmationRequestSchema: z.ZodIntersection<z.ZodOb
243
247
  resellerReference?: string | undefined;
244
248
  alias?: string | undefined;
245
249
  }[];
250
+ notes?: string | undefined;
246
251
  resellerReference?: string | undefined;
247
252
  emailReceipt?: boolean | undefined;
253
+ metadata?: Record<string, string> | undefined;
248
254
  }>;
249
255
  }, "strip", z.ZodTypeAny, {
250
256
  body: {
@@ -271,8 +277,10 @@ export declare const bookingConfirmationRequestSchema: z.ZodIntersection<z.ZodOb
271
277
  resellerReference?: string | undefined;
272
278
  alias?: string | undefined;
273
279
  }[];
280
+ notes?: string | undefined;
274
281
  resellerReference?: string | undefined;
275
282
  emailReceipt?: boolean | undefined;
283
+ metadata?: Record<string, string> | undefined;
276
284
  };
277
285
  }, {
278
286
  body: {
@@ -299,7 +307,9 @@ export declare const bookingConfirmationRequestSchema: z.ZodIntersection<z.ZodOb
299
307
  resellerReference?: string | undefined;
300
308
  alias?: string | undefined;
301
309
  }[];
310
+ notes?: string | undefined;
302
311
  resellerReference?: string | undefined;
303
312
  emailReceipt?: boolean | undefined;
313
+ metadata?: Record<string, string> | undefined;
304
314
  };
305
315
  }>>;
@@ -81,6 +81,7 @@ export declare const bookingReservationBodySchema: z.ZodObject<{
81
81
  uuid: z.ZodOptional<z.ZodString>;
82
82
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
83
  orderId: z.ZodOptional<z.ZodString>;
84
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
85
  }, "strip", z.ZodTypeAny, {
85
86
  productId: string;
86
87
  optionId: string;
@@ -119,6 +120,7 @@ export declare const bookingReservationBodySchema: z.ZodObject<{
119
120
  quote?: boolean | undefined;
120
121
  emailReceipt?: boolean | undefined;
121
122
  orderId?: string | undefined;
123
+ metadata?: Record<string, string> | undefined;
122
124
  expirationMinutes?: number | undefined;
123
125
  redeemed?: boolean | undefined;
124
126
  }, {
@@ -159,6 +161,7 @@ export declare const bookingReservationBodySchema: z.ZodObject<{
159
161
  quote?: boolean | undefined;
160
162
  emailReceipt?: boolean | undefined;
161
163
  orderId?: string | undefined;
164
+ metadata?: Record<string, string> | undefined;
162
165
  expirationMinutes?: number | undefined;
163
166
  redeemed?: boolean | undefined;
164
167
  }>;
@@ -82,6 +82,7 @@ export declare const bookingReservationRequestSchema: z.ZodObject<{
82
82
  uuid: z.ZodOptional<z.ZodString>;
83
83
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
84
  orderId: z.ZodOptional<z.ZodString>;
85
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
86
  }, "strip", z.ZodTypeAny, {
86
87
  productId: string;
87
88
  optionId: string;
@@ -120,6 +121,7 @@ export declare const bookingReservationRequestSchema: z.ZodObject<{
120
121
  quote?: boolean | undefined;
121
122
  emailReceipt?: boolean | undefined;
122
123
  orderId?: string | undefined;
124
+ metadata?: Record<string, string> | undefined;
123
125
  expirationMinutes?: number | undefined;
124
126
  redeemed?: boolean | undefined;
125
127
  }, {
@@ -160,6 +162,7 @@ export declare const bookingReservationRequestSchema: z.ZodObject<{
160
162
  quote?: boolean | undefined;
161
163
  emailReceipt?: boolean | undefined;
162
164
  orderId?: string | undefined;
165
+ metadata?: Record<string, string> | undefined;
163
166
  expirationMinutes?: number | undefined;
164
167
  redeemed?: boolean | undefined;
165
168
  }>;
@@ -202,6 +205,7 @@ export declare const bookingReservationRequestSchema: z.ZodObject<{
202
205
  quote?: boolean | undefined;
203
206
  emailReceipt?: boolean | undefined;
204
207
  orderId?: string | undefined;
208
+ metadata?: Record<string, string> | undefined;
205
209
  expirationMinutes?: number | undefined;
206
210
  redeemed?: boolean | undefined;
207
211
  };
@@ -244,6 +248,7 @@ export declare const bookingReservationRequestSchema: z.ZodObject<{
244
248
  quote?: boolean | undefined;
245
249
  emailReceipt?: boolean | undefined;
246
250
  orderId?: string | undefined;
251
+ metadata?: Record<string, string> | undefined;
247
252
  expirationMinutes?: number | undefined;
248
253
  redeemed?: boolean | undefined;
249
254
  };
@@ -79,6 +79,7 @@ export declare const bookingUpdateBodySchema: z.ZodObject<{
79
79
  redeemed: z.ZodOptional<z.ZodBoolean>;
80
80
  uuid: z.ZodOptional<z.ZodString>;
81
81
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
83
  }, "strip", z.ZodTypeAny, {
83
84
  notes?: string | undefined;
84
85
  tags?: string[] | undefined;
@@ -115,6 +116,7 @@ export declare const bookingUpdateBodySchema: z.ZodObject<{
115
116
  settlementMethod?: import("..").SettlementMethod | undefined;
116
117
  quote?: boolean | undefined;
117
118
  emailReceipt?: boolean | undefined;
119
+ metadata?: Record<string, string> | undefined;
118
120
  expirationMinutes?: number | undefined;
119
121
  redeemed?: boolean | undefined;
120
122
  }, {
@@ -153,6 +155,7 @@ export declare const bookingUpdateBodySchema: z.ZodObject<{
153
155
  settlementMethod?: import("..").SettlementMethod | undefined;
154
156
  quote?: boolean | undefined;
155
157
  emailReceipt?: boolean | undefined;
158
+ metadata?: Record<string, string> | undefined;
156
159
  expirationMinutes?: number | undefined;
157
160
  redeemed?: boolean | undefined;
158
161
  }>;
@@ -80,6 +80,7 @@ export declare const bookingUpdateRequestSchema: z.ZodObject<{
80
80
  redeemed: z.ZodOptional<z.ZodBoolean>;
81
81
  uuid: z.ZodOptional<z.ZodString>;
82
82
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
83
84
  }, "strip", z.ZodTypeAny, {
84
85
  notes?: string | undefined;
85
86
  tags?: string[] | undefined;
@@ -116,6 +117,7 @@ export declare const bookingUpdateRequestSchema: z.ZodObject<{
116
117
  settlementMethod?: import("..").SettlementMethod | undefined;
117
118
  quote?: boolean | undefined;
118
119
  emailReceipt?: boolean | undefined;
120
+ metadata?: Record<string, string> | undefined;
119
121
  expirationMinutes?: number | undefined;
120
122
  redeemed?: boolean | undefined;
121
123
  }, {
@@ -154,6 +156,7 @@ export declare const bookingUpdateRequestSchema: z.ZodObject<{
154
156
  settlementMethod?: import("..").SettlementMethod | undefined;
155
157
  quote?: boolean | undefined;
156
158
  emailReceipt?: boolean | undefined;
159
+ metadata?: Record<string, string> | undefined;
157
160
  expirationMinutes?: number | undefined;
158
161
  redeemed?: boolean | undefined;
159
162
  }>;
@@ -194,6 +197,7 @@ export declare const bookingUpdateRequestSchema: z.ZodObject<{
194
197
  settlementMethod?: import("..").SettlementMethod | undefined;
195
198
  quote?: boolean | undefined;
196
199
  emailReceipt?: boolean | undefined;
200
+ metadata?: Record<string, string> | undefined;
197
201
  expirationMinutes?: number | undefined;
198
202
  redeemed?: boolean | undefined;
199
203
  };
@@ -234,6 +238,7 @@ export declare const bookingUpdateRequestSchema: z.ZodObject<{
234
238
  settlementMethod?: import("..").SettlementMethod | undefined;
235
239
  quote?: boolean | undefined;
236
240
  emailReceipt?: boolean | undefined;
241
+ metadata?: Record<string, string> | undefined;
237
242
  expirationMinutes?: number | undefined;
238
243
  redeemed?: boolean | undefined;
239
244
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventrata/octo-types",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "license": "ISC",
6
6
  "files": [