@ventrata/octo-types 0.0.2 → 0.0.3

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.
Files changed (70) hide show
  1. package/dist/index.d.ts +22 -2
  2. package/dist/models/{Octo_AvailabilityCalendar.d.ts → AvailabilityCalendar.d.ts} +37 -7
  3. package/dist/models/AvailabilityCalendarOffers.d.ts +19 -0
  4. package/dist/models/AvailabilityCalendarPricing.d.ts +12 -0
  5. package/dist/models/AvailabilityUpdate.d.ts +25 -0
  6. package/dist/models/BookingUpdate.d.ts +19 -0
  7. package/dist/models/CreateWebhookBody.d.ts +35 -0
  8. package/dist/models/CreateWebhookRequest.d.ts +4 -0
  9. package/dist/models/CreateWebhookRequestHeaders_octoCapabilities.d.ts +4 -0
  10. package/dist/models/Diff.d.ts +18 -0
  11. package/dist/models/ListWebhooksRequest.d.ts +1 -0
  12. package/dist/models/ListWebhooksRequestHeaders_octoCapabilities.d.ts +4 -0
  13. package/dist/models/OptionRestrictions.d.ts +1 -1
  14. package/dist/models/PricingUnit.d.ts +2 -0
  15. package/dist/models/Webhook.d.ts +1 -1
  16. package/dist/schemas/Availability.d.ts +5 -0
  17. package/dist/schemas/AvailabilityCalendar.d.ts +726 -0
  18. package/dist/schemas/AvailabilityCalendarOffers.d.ts +171 -0
  19. package/dist/schemas/AvailabilityCalendarPricing.d.ts +491 -0
  20. package/dist/schemas/AvailabilityPricing.d.ts +5 -0
  21. package/dist/schemas/AvailabilityUpdate.d.ts +1768 -0
  22. package/dist/schemas/BookingConfirmationBody.d.ts +4 -4
  23. package/dist/schemas/BookingConfirmationRequest.d.ts +6 -6
  24. package/dist/schemas/BookingExtras.d.ts +8 -8
  25. package/dist/schemas/BookingOffers.d.ts +10 -10
  26. package/dist/schemas/BookingReservationBody.d.ts +4 -4
  27. package/dist/schemas/BookingReservationRequest.d.ts +6 -6
  28. package/dist/schemas/BookingUpdate.d.ts +575 -0
  29. package/dist/schemas/BookingUpdateBody.d.ts +4 -4
  30. package/dist/schemas/BookingUpdateRequest.d.ts +6 -6
  31. package/dist/schemas/Brand.d.ts +4 -4
  32. package/dist/schemas/BrandContact.d.ts +2 -2
  33. package/dist/schemas/CreateWaitlistRequest.d.ts +2 -2
  34. package/dist/schemas/CreateWebhookBody.d.ts +23 -0
  35. package/dist/schemas/CreateWebhookRequest.d.ts +43 -0
  36. package/dist/schemas/CreateWebhookRequestHeaders_octoCapabilities.d.ts +2 -0
  37. package/dist/schemas/Destination.d.ts +4 -4
  38. package/dist/schemas/DestinationContact.d.ts +2 -2
  39. package/dist/schemas/Diff.d.ts +17 -0
  40. package/dist/schemas/Extra.d.ts +4 -4
  41. package/dist/schemas/ExtraItem.d.ts +6 -6
  42. package/dist/schemas/ExtraRestrictions.d.ts +2 -2
  43. package/dist/schemas/GetBookingsRequest.d.ts +2 -2
  44. package/dist/schemas/Gift.d.ts +2 -2
  45. package/dist/schemas/ListWebhooksRequest.d.ts +2 -0
  46. package/dist/schemas/ListWebhooksRequestHeaders_octoCapabilities.d.ts +2 -0
  47. package/dist/schemas/Octo_AvailabilityCalendar.d.ts +12 -12
  48. package/dist/schemas/Octo_GetBookingsRequest.d.ts +2 -2
  49. package/dist/schemas/Octo_Media.d.ts +2 -2
  50. package/dist/schemas/OfferCombination.d.ts +8 -8
  51. package/dist/schemas/OfferComparison.d.ts +8 -8
  52. package/dist/schemas/OptionExtras.d.ts +6 -6
  53. package/dist/schemas/OptionRestrictions.d.ts +3 -3
  54. package/dist/schemas/Order.d.ts +10 -10
  55. package/dist/schemas/OrderOffers.d.ts +10 -10
  56. package/dist/schemas/PartnersListConnection.d.ts +20 -20
  57. package/dist/schemas/PricingUnit.d.ts +3 -0
  58. package/dist/schemas/ProductContent.d.ts +14 -14
  59. package/dist/schemas/Supplier.d.ts +14 -14
  60. package/dist/schemas/SupplierContact.d.ts +2 -2
  61. package/dist/schemas/SupplierContent.d.ts +6 -6
  62. package/dist/schemas/Unit.d.ts +6 -6
  63. package/dist/schemas/UnitExtras.d.ts +6 -6
  64. package/dist/schemas/UnitItem.d.ts +14 -14
  65. package/dist/schemas/UnitItemIdentifier.d.ts +2 -2
  66. package/dist/schemas/Waitlist.d.ts +2 -2
  67. package/dist/schemas/Webhook.d.ts +3 -3
  68. package/dist/schemas/WhoIAm.d.ts +32 -32
  69. package/package.json +2 -2
  70. package/dist/models/Octo_OpeningHours.d.ts +0 -13
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const webhookSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  event: z.ZodNativeEnum<typeof import("..").WebhookEvent>;
5
- url: z.ZodOptional<z.ZodString>;
5
+ url: z.ZodNullable<z.ZodString>;
6
6
  retryOnError: z.ZodBoolean;
7
7
  useContactLanguage: z.ZodBoolean;
8
8
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -10,17 +10,17 @@ export declare const webhookSchema: z.ZodObject<{
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: string;
12
12
  event: import("..").WebhookEvent;
13
+ url: string | null;
13
14
  retryOnError: boolean;
14
15
  useContactLanguage: boolean;
15
16
  headers: Record<string, string>;
16
17
  capabilities: import("..").Capability[];
17
- url?: string | undefined;
18
18
  }, {
19
19
  id: string;
20
20
  event: import("..").WebhookEvent;
21
+ url: string | null;
21
22
  retryOnError: boolean;
22
23
  useContactLanguage: boolean;
23
24
  headers: Record<string, string>;
24
25
  capabilities: import("..").Capability[];
25
- url?: string | undefined;
26
26
  }>;
@@ -11,14 +11,14 @@ export declare const whoIAmSchema: z.ZodObject<{
11
11
  address: z.ZodNullable<z.ZodString>;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  address: string | null;
14
+ website: string | null;
14
15
  email: string | null;
15
16
  telephone: string | null;
16
- website: string | null;
17
17
  }, {
18
18
  address: string | null;
19
+ website: string | null;
19
20
  email: string | null;
20
21
  telephone: string | null;
21
- website: string | null;
22
22
  }>;
23
23
  shortDescription: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
24
  media: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -31,16 +31,16 @@ export declare const whoIAmSchema: z.ZodObject<{
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  type: import("..").MediaType;
33
33
  title: string | null;
34
- caption: string | null;
35
34
  src: string;
36
35
  rel: import("..").MediaRel;
36
+ caption: string | null;
37
37
  copyright: string | null;
38
38
  }, {
39
39
  type: import("..").MediaType;
40
40
  title: string | null;
41
- caption: string | null;
42
41
  src: string;
43
42
  rel: import("..").MediaRel;
43
+ caption: string | null;
44
44
  copyright: string | null;
45
45
  }>, "many">>;
46
46
  country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -61,15 +61,15 @@ export declare const whoIAmSchema: z.ZodObject<{
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  name: string | null;
63
63
  address: string | null;
64
+ website: string | null;
64
65
  email: string | null;
65
66
  telephone: string | null;
66
- website: string | null;
67
67
  }, {
68
68
  name: string | null;
69
69
  address: string | null;
70
+ website: string | null;
70
71
  email: string | null;
71
72
  telephone: string | null;
72
- website: string | null;
73
73
  }>;
74
74
  latitude: z.ZodNullable<z.ZodNumber>;
75
75
  longitude: z.ZodNullable<z.ZodNumber>;
@@ -156,9 +156,9 @@ export declare const whoIAmSchema: z.ZodObject<{
156
156
  contact: {
157
157
  name: string | null;
158
158
  address: string | null;
159
+ website: string | null;
159
160
  email: string | null;
160
161
  telephone: string | null;
161
- website: string | null;
162
162
  };
163
163
  videoUrl: string | null;
164
164
  facebookUrl: string | null;
@@ -202,9 +202,9 @@ export declare const whoIAmSchema: z.ZodObject<{
202
202
  contact: {
203
203
  name: string | null;
204
204
  address: string | null;
205
+ website: string | null;
205
206
  email: string | null;
206
207
  telephone: string | null;
207
- website: string | null;
208
208
  };
209
209
  videoUrl: string | null;
210
210
  facebookUrl: string | null;
@@ -230,9 +230,9 @@ export declare const whoIAmSchema: z.ZodObject<{
230
230
  name: string;
231
231
  contact: {
232
232
  address: string | null;
233
+ website: string | null;
233
234
  email: string | null;
234
235
  telephone: string | null;
235
- website: string | null;
236
236
  };
237
237
  endpoint: string;
238
238
  country?: string | null | undefined;
@@ -240,9 +240,9 @@ export declare const whoIAmSchema: z.ZodObject<{
240
240
  media?: {
241
241
  type: import("..").MediaType;
242
242
  title: string | null;
243
- caption: string | null;
244
243
  src: string;
245
244
  rel: import("..").MediaRel;
245
+ caption: string | null;
246
246
  copyright: string | null;
247
247
  }[] | undefined;
248
248
  destinations?: {
@@ -269,9 +269,9 @@ export declare const whoIAmSchema: z.ZodObject<{
269
269
  contact: {
270
270
  name: string | null;
271
271
  address: string | null;
272
+ website: string | null;
272
273
  email: string | null;
273
274
  telephone: string | null;
274
- website: string | null;
275
275
  };
276
276
  videoUrl: string | null;
277
277
  facebookUrl: string | null;
@@ -297,9 +297,9 @@ export declare const whoIAmSchema: z.ZodObject<{
297
297
  name: string;
298
298
  contact: {
299
299
  address: string | null;
300
+ website: string | null;
300
301
  email: string | null;
301
302
  telephone: string | null;
302
- website: string | null;
303
303
  };
304
304
  endpoint: string;
305
305
  country?: string | null | undefined;
@@ -307,9 +307,9 @@ export declare const whoIAmSchema: z.ZodObject<{
307
307
  media?: {
308
308
  type: import("..").MediaType;
309
309
  title: string | null;
310
- caption: string | null;
311
310
  src: string;
312
311
  rel: import("..").MediaRel;
312
+ caption: string | null;
313
313
  copyright: string | null;
314
314
  }[] | undefined;
315
315
  destinations?: {
@@ -336,9 +336,9 @@ export declare const whoIAmSchema: z.ZodObject<{
336
336
  contact: {
337
337
  name: string | null;
338
338
  address: string | null;
339
+ website: string | null;
339
340
  email: string | null;
340
341
  telephone: string | null;
341
- website: string | null;
342
342
  };
343
343
  videoUrl: string | null;
344
344
  facebookUrl: string | null;
@@ -439,20 +439,14 @@ export declare const whoIAmSchema: z.ZodObject<{
439
439
  operator: z.ZodAny;
440
440
  terminal: z.ZodAny;
441
441
  }, "strip", z.ZodTypeAny, {
442
- reseller: {
443
- id: string;
444
- name: string;
445
- reference: string | null;
446
- tags: string[];
447
- };
448
442
  supplier: {
449
443
  id: string;
450
444
  name: string;
451
445
  contact: {
452
446
  address: string | null;
447
+ website: string | null;
453
448
  email: string | null;
454
449
  telephone: string | null;
455
- website: string | null;
456
450
  };
457
451
  endpoint: string;
458
452
  country?: string | null | undefined;
@@ -460,9 +454,9 @@ export declare const whoIAmSchema: z.ZodObject<{
460
454
  media?: {
461
455
  type: import("..").MediaType;
462
456
  title: string | null;
463
- caption: string | null;
464
457
  src: string;
465
458
  rel: import("..").MediaRel;
459
+ caption: string | null;
466
460
  copyright: string | null;
467
461
  }[] | undefined;
468
462
  destinations?: {
@@ -489,9 +483,9 @@ export declare const whoIAmSchema: z.ZodObject<{
489
483
  contact: {
490
484
  name: string | null;
491
485
  address: string | null;
486
+ website: string | null;
492
487
  email: string | null;
493
488
  telephone: string | null;
494
- website: string | null;
495
489
  };
496
490
  videoUrl: string | null;
497
491
  facebookUrl: string | null;
@@ -513,6 +507,12 @@ export declare const whoIAmSchema: z.ZodObject<{
513
507
  }[];
514
508
  }[] | undefined;
515
509
  };
510
+ reseller: {
511
+ id: string;
512
+ name: string;
513
+ reference: string | null;
514
+ tags: string[];
515
+ };
516
516
  connection: {
517
517
  id: string;
518
518
  name: string;
@@ -538,20 +538,14 @@ export declare const whoIAmSchema: z.ZodObject<{
538
538
  checkout?: any;
539
539
  terminal?: any;
540
540
  }, {
541
- reseller: {
542
- id: string;
543
- name: string;
544
- reference: string | null;
545
- tags: string[];
546
- };
547
541
  supplier: {
548
542
  id: string;
549
543
  name: string;
550
544
  contact: {
551
545
  address: string | null;
546
+ website: string | null;
552
547
  email: string | null;
553
548
  telephone: string | null;
554
- website: string | null;
555
549
  };
556
550
  endpoint: string;
557
551
  country?: string | null | undefined;
@@ -559,9 +553,9 @@ export declare const whoIAmSchema: z.ZodObject<{
559
553
  media?: {
560
554
  type: import("..").MediaType;
561
555
  title: string | null;
562
- caption: string | null;
563
556
  src: string;
564
557
  rel: import("..").MediaRel;
558
+ caption: string | null;
565
559
  copyright: string | null;
566
560
  }[] | undefined;
567
561
  destinations?: {
@@ -588,9 +582,9 @@ export declare const whoIAmSchema: z.ZodObject<{
588
582
  contact: {
589
583
  name: string | null;
590
584
  address: string | null;
585
+ website: string | null;
591
586
  email: string | null;
592
587
  telephone: string | null;
593
- website: string | null;
594
588
  };
595
589
  videoUrl: string | null;
596
590
  facebookUrl: string | null;
@@ -612,6 +606,12 @@ export declare const whoIAmSchema: z.ZodObject<{
612
606
  }[];
613
607
  }[] | undefined;
614
608
  };
609
+ reseller: {
610
+ id: string;
611
+ name: string;
612
+ reference: string | null;
613
+ tags: string[];
614
+ };
615
615
  connection: {
616
616
  id: string;
617
617
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventrata/octo-types",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "license": "ISC",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "main": "dist/index.js",
16
16
  "scripts": {
17
17
  "get:openapi:yaml": "ts-node src/utils/get-openapi-yaml.ts",
18
- "generate:models": "openapi --input src/openapi.yaml --output src/ --exportCore false --exportServices false --client none --indent 2",
18
+ "generate:models": "openapi --input src/openapi.yaml --output src/ --exportCore false --exportServices false --client none",
19
19
  "generate:schemas": "ts-node src/utils/generate-schemas.ts",
20
20
  "clean": "rm -rf dist",
21
21
  "generate": "npm run get:openapi:yaml && npm run generate:models && npm run generate:schemas && npm run fix",
@@ -1,13 +0,0 @@
1
- /**
2
- * Defines the opening hours for this availability, even for start time-based availability. Supports multiple periods for breaks in the day.
3
- */
4
- export type Octo_OpeningHours = {
5
- /**
6
- * The opening time
7
- */
8
- from: string;
9
- /**
10
- * The closing time
11
- */
12
- to: string;
13
- };