@voyant-travel/inventory 0.5.4 → 0.5.6

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 (84) hide show
  1. package/dist/action-ledger.d.ts +5 -5
  2. package/dist/authoring/extension.d.ts +4 -4
  3. package/dist/authoring/spec.d.ts +2 -2
  4. package/dist/booking-extension.js +1 -1
  5. package/dist/extras/routes.d.ts +470 -119
  6. package/dist/extras/routes.d.ts.map +1 -1
  7. package/dist/extras/routes.js +252 -37
  8. package/dist/extras/schema.d.ts +2 -2
  9. package/dist/extras/service.d.ts +11 -11
  10. package/dist/extras/validation.d.ts +37 -37
  11. package/dist/extras.d.ts +15 -15
  12. package/dist/extras.js +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +0 -1
  15. package/dist/interface.d.ts +4417 -1994
  16. package/dist/interface.d.ts.map +1 -1
  17. package/dist/interface.js +0 -1
  18. package/dist/public-tags-contract.test.d.ts +2 -0
  19. package/dist/public-tags-contract.test.d.ts.map +1 -0
  20. package/dist/public-tags-contract.test.js +11 -0
  21. package/dist/public-taxonomy-contract.test.d.ts +2 -0
  22. package/dist/public-taxonomy-contract.test.d.ts.map +1 -0
  23. package/dist/public-taxonomy-contract.test.js +37 -0
  24. package/dist/routes-associations.d.ts +101 -42
  25. package/dist/routes-associations.d.ts.map +1 -1
  26. package/dist/routes-associations.js +177 -38
  27. package/dist/routes-brochure.d.ts +3 -2
  28. package/dist/routes-brochure.d.ts.map +1 -1
  29. package/dist/routes-brochure.js +65 -6
  30. package/dist/routes-brochure.test.js +1 -1
  31. package/dist/routes-catalog.d.ts +349 -88
  32. package/dist/routes-catalog.d.ts.map +1 -1
  33. package/dist/routes-catalog.js +390 -62
  34. package/dist/routes-configuration.d.ts +507 -129
  35. package/dist/routes-configuration.d.ts.map +1 -1
  36. package/dist/routes-configuration.js +668 -90
  37. package/dist/routes-content.d.ts +4 -4
  38. package/dist/routes-content.d.ts.map +1 -1
  39. package/dist/routes-content.js +44 -6
  40. package/dist/routes-core.d.ts +307 -66
  41. package/dist/routes-core.d.ts.map +1 -1
  42. package/dist/routes-core.js +226 -29
  43. package/dist/routes-itinerary-translations.d.ts +202 -87
  44. package/dist/routes-itinerary-translations.d.ts.map +1 -1
  45. package/dist/routes-itinerary-translations.js +261 -55
  46. package/dist/routes-itinerary.d.ts +580 -212
  47. package/dist/routes-itinerary.d.ts.map +1 -1
  48. package/dist/routes-itinerary.js +655 -129
  49. package/dist/routes-maintenance.d.ts +21 -9
  50. package/dist/routes-maintenance.d.ts.map +1 -1
  51. package/dist/routes-maintenance.js +38 -9
  52. package/dist/routes-media.d.ts +425 -148
  53. package/dist/routes-media.d.ts.map +1 -1
  54. package/dist/routes-media.js +438 -128
  55. package/dist/routes-merchandising.d.ts +906 -316
  56. package/dist/routes-merchandising.d.ts.map +1 -1
  57. package/dist/routes-merchandising.js +945 -125
  58. package/dist/routes-options.d.ts +356 -115
  59. package/dist/routes-options.d.ts.map +1 -1
  60. package/dist/routes-options.js +288 -52
  61. package/dist/routes-public.d.ts +368 -380
  62. package/dist/routes-public.d.ts.map +1 -1
  63. package/dist/routes-public.js +256 -40
  64. package/dist/routes-translations.d.ts +356 -86
  65. package/dist/routes-translations.d.ts.map +1 -1
  66. package/dist/routes-translations.js +404 -56
  67. package/dist/routes.d.ts +4185 -1595
  68. package/dist/routes.d.ts.map +1 -1
  69. package/dist/routes.js +8 -3
  70. package/dist/schema-core.d.ts +1 -1
  71. package/dist/schema-settings.d.ts +1 -1
  72. package/dist/service-catalog.d.ts +4 -4
  73. package/dist/service-core.d.ts +6 -6
  74. package/dist/service-delivery-formats.d.ts +1 -1
  75. package/dist/service-destinations.d.ts +3 -3
  76. package/dist/service-itinerary-translations.d.ts +1 -1
  77. package/dist/service-itinerary.d.ts +3 -3
  78. package/dist/service-merchandising.d.ts +5 -5
  79. package/dist/service-option-translations.d.ts +4 -4
  80. package/dist/service-options.d.ts +2 -2
  81. package/dist/service-public.d.ts +12 -12
  82. package/dist/service-taxonomy.d.ts +4 -4
  83. package/dist/service.d.ts +41 -41
  84. package/package.json +10 -9
@@ -38,19 +38,19 @@ export declare function listProductActionLedger(c: Context<Env>): Promise<(Respo
38
38
  }, 404, "json">) | (Response & import("hono").TypedResponse<{
39
39
  data: {
40
40
  id: string;
41
+ status: "requested" | "failed" | "expired" | "cancelled" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
41
42
  actionName: string;
42
43
  actionVersion: string;
43
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
44
- status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
45
- evaluatedRisk: "low" | "medium" | "high" | "critical";
44
+ actionKind: "reverse" | "execute" | "delete" | "create" | "update" | "duplicate" | "read" | "approve" | "reject" | "compensate";
45
+ evaluatedRisk: "medium" | "low" | "high" | "critical";
46
46
  actorType: string | null;
47
- principalType: "user" | "api_key" | "agent" | "workflow" | "system";
47
+ principalType: "workflow" | "system" | "user" | "api_key" | "agent";
48
48
  principalId: string;
49
49
  principalSubtype: string | null;
50
50
  sessionId: string | null;
51
51
  apiTokenId: string | null;
52
52
  internalRequest: boolean;
53
- delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
53
+ delegatedByPrincipalType: "workflow" | "system" | "user" | "api_key" | "agent" | null;
54
54
  delegatedByPrincipalId: string | null;
55
55
  delegationId: string | null;
56
56
  callerType: string | null;
@@ -91,13 +91,12 @@ export declare const inventoryAuthoringRoutes: import("hono/hono-base").HonoBase
91
91
  id: string;
92
92
  name: string;
93
93
  status: "draft" | "active" | "archived";
94
- createdAt: string;
95
94
  description: string | null;
96
95
  inclusionsHtml: string | null;
97
96
  exclusionsHtml: string | null;
98
97
  termsHtml: string | null;
99
98
  termsShowOnContract: boolean;
100
- bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
99
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
101
100
  capacityMode: "free_sale" | "limited" | "on_request";
102
101
  timezone: string | null;
103
102
  defaultLanguageTag: string | null;
@@ -118,6 +117,7 @@ export declare const inventoryAuthoringRoutes: import("hono/hono-base").HonoBase
118
117
  taxClassId: string | null;
119
118
  customerPaymentPolicy: import("hono/utils/types").JSONValue;
120
119
  tags: string[] | null;
120
+ createdAt: string;
121
121
  updatedAt: string;
122
122
  };
123
123
  options: {
@@ -202,13 +202,12 @@ export declare const catalogAuthoringRoutes: import("hono/hono-base").HonoBase<E
202
202
  id: string;
203
203
  name: string;
204
204
  status: "draft" | "active" | "archived";
205
- createdAt: string;
206
205
  description: string | null;
207
206
  inclusionsHtml: string | null;
208
207
  exclusionsHtml: string | null;
209
208
  termsHtml: string | null;
210
209
  termsShowOnContract: boolean;
211
- bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
210
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
212
211
  capacityMode: "free_sale" | "limited" | "on_request";
213
212
  timezone: string | null;
214
213
  defaultLanguageTag: string | null;
@@ -229,6 +228,7 @@ export declare const catalogAuthoringRoutes: import("hono/hono-base").HonoBase<E
229
228
  taxClassId: string | null;
230
229
  customerPaymentPolicy: import("hono/utils/types").JSONValue;
231
230
  tags: string[] | null;
231
+ createdAt: string;
232
232
  updatedAt: string;
233
233
  };
234
234
  options: {
@@ -295,8 +295,8 @@ export declare const productRowSpecSchema: z.ZodObject<{
295
295
  termsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
296
  termsShowOnContract: z.ZodDefault<z.ZodBoolean>;
297
297
  bookingMode: z.ZodDefault<z.ZodEnum<{
298
- date: "date";
299
298
  other: "other";
299
+ date: "date";
300
300
  date_time: "date_time";
301
301
  open: "open";
302
302
  stay: "stay";
@@ -345,8 +345,8 @@ export declare const productGraphSpecSchema: z.ZodObject<{
345
345
  termsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
346
  termsShowOnContract: z.ZodDefault<z.ZodBoolean>;
347
347
  bookingMode: z.ZodDefault<z.ZodEnum<{
348
- date: "date";
349
348
  other: "other";
349
+ date: "date";
350
350
  date_time: "date_time";
351
351
  open: "open";
352
352
  stay: "stay";
@@ -157,5 +157,5 @@ const productsBookingExtensionDef = {
157
157
  };
158
158
  export const productsBookingExtension = {
159
159
  extension: productsBookingExtensionDef,
160
- routes: bookingProductExtensionRoutes,
160
+ adminRoutes: bookingProductExtensionRoutes,
161
161
  };