@voyant-travel/commerce 0.1.0 → 0.2.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.
@@ -76,21 +76,13 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
76
76
  input: {};
77
77
  output: {
78
78
  data: {
79
- id: string;
80
- code: string | null;
81
- currency: string | null;
82
- validUntil: string | null;
83
- validFrom: string | null;
84
- active: boolean;
85
79
  metadata: import("hono/utils/types").JSONValue;
86
- description: string | null;
80
+ id: string;
87
81
  name: string;
88
82
  createdAt: string;
83
+ code: string | null;
84
+ description: string | null;
89
85
  updatedAt: string;
90
- slug: string;
91
- discountType: "percentage" | "fixed_amount";
92
- discountPercent: string | null;
93
- discountAmountCents: number | null;
94
86
  scope: {
95
87
  kind: "global";
96
88
  } | {
@@ -115,6 +107,15 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
115
107
  kind: "cabin_grades";
116
108
  cabinGradeCodes: string[];
117
109
  };
110
+ slug: string;
111
+ currency: string | null;
112
+ active: boolean;
113
+ validFrom: string | null;
114
+ stackable: boolean;
115
+ discountType: "percentage" | "fixed_amount";
116
+ discountPercent: string | null;
117
+ discountAmountCents: number | null;
118
+ validUntil: string | null;
118
119
  conditions: {
119
120
  minPax?: number | undefined;
120
121
  pastGuestOnly?: boolean | undefined;
@@ -122,7 +123,6 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
122
123
  childTravelerOnly?: boolean | undefined;
123
124
  familyOnly?: boolean | undefined;
124
125
  };
125
- stackable: boolean;
126
126
  };
127
127
  };
128
128
  outputFormat: "json";
@@ -138,22 +138,25 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
138
138
  };
139
139
  };
140
140
  output: {
141
- data: {
141
+ error: string;
142
+ };
143
+ outputFormat: "json";
144
+ status: 404;
145
+ } | {
146
+ input: {
147
+ param: {
142
148
  id: string;
143
- code: string | null;
144
- currency: string | null;
145
- validUntil: string | null;
146
- validFrom: string | null;
147
- active: boolean;
149
+ };
150
+ };
151
+ output: {
152
+ data: {
148
153
  metadata: import("hono/utils/types").JSONValue;
149
- description: string | null;
154
+ id: string;
150
155
  name: string;
151
156
  createdAt: string;
157
+ code: string | null;
158
+ description: string | null;
152
159
  updatedAt: string;
153
- slug: string;
154
- discountType: "percentage" | "fixed_amount";
155
- discountPercent: string | null;
156
- discountAmountCents: number | null;
157
160
  scope: {
158
161
  kind: "global";
159
162
  } | {
@@ -178,6 +181,15 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
178
181
  kind: "cabin_grades";
179
182
  cabinGradeCodes: string[];
180
183
  };
184
+ slug: string;
185
+ currency: string | null;
186
+ active: boolean;
187
+ validFrom: string | null;
188
+ stackable: boolean;
189
+ discountType: "percentage" | "fixed_amount";
190
+ discountPercent: string | null;
191
+ discountAmountCents: number | null;
192
+ validUntil: string | null;
181
193
  conditions: {
182
194
  minPax?: number | undefined;
183
195
  pastGuestOnly?: boolean | undefined;
@@ -185,22 +197,10 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
185
197
  childTravelerOnly?: boolean | undefined;
186
198
  familyOnly?: boolean | undefined;
187
199
  };
188
- stackable: boolean;
189
200
  };
190
201
  };
191
202
  outputFormat: "json";
192
203
  status: import("hono/utils/http-status").ContentfulStatusCode;
193
- } | {
194
- input: {
195
- param: {
196
- id: string;
197
- };
198
- };
199
- output: {
200
- error: string;
201
- };
202
- outputFormat: "json";
203
- status: 404;
204
204
  };
205
205
  };
206
206
  } & {
@@ -224,21 +224,13 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
224
224
  };
225
225
  output: {
226
226
  data: {
227
- id: string;
228
- code: string | null;
229
- currency: string | null;
230
- validUntil: string | null;
231
- validFrom: string | null;
232
- active: boolean;
233
227
  metadata: import("hono/utils/types").JSONValue;
234
- description: string | null;
228
+ id: string;
235
229
  name: string;
236
230
  createdAt: string;
231
+ code: string | null;
232
+ description: string | null;
237
233
  updatedAt: string;
238
- slug: string;
239
- discountType: "percentage" | "fixed_amount";
240
- discountPercent: string | null;
241
- discountAmountCents: number | null;
242
234
  scope: {
243
235
  kind: "global";
244
236
  } | {
@@ -263,6 +255,15 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
263
255
  kind: "cabin_grades";
264
256
  cabinGradeCodes: string[];
265
257
  };
258
+ slug: string;
259
+ currency: string | null;
260
+ active: boolean;
261
+ validFrom: string | null;
262
+ stackable: boolean;
263
+ discountType: "percentage" | "fixed_amount";
264
+ discountPercent: string | null;
265
+ discountAmountCents: number | null;
266
+ validUntil: string | null;
266
267
  conditions: {
267
268
  minPax?: number | undefined;
268
269
  pastGuestOnly?: boolean | undefined;
@@ -270,7 +271,6 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
270
271
  childTravelerOnly?: boolean | undefined;
271
272
  familyOnly?: boolean | undefined;
272
273
  };
273
- stackable: boolean;
274
274
  };
275
275
  };
276
276
  outputFormat: "json";
@@ -298,21 +298,13 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
298
298
  };
299
299
  output: {
300
300
  data: {
301
- id: string;
302
- code: string | null;
303
- currency: string | null;
304
- validUntil: string | null;
305
- validFrom: string | null;
306
- active: boolean;
307
301
  metadata: import("hono/utils/types").JSONValue;
308
- description: string | null;
302
+ id: string;
309
303
  name: string;
310
304
  createdAt: string;
305
+ code: string | null;
306
+ description: string | null;
311
307
  updatedAt: string;
312
- slug: string;
313
- discountType: "percentage" | "fixed_amount";
314
- discountPercent: string | null;
315
- discountAmountCents: number | null;
316
308
  scope: {
317
309
  kind: "global";
318
310
  } | {
@@ -337,6 +329,15 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
337
329
  kind: "cabin_grades";
338
330
  cabinGradeCodes: string[];
339
331
  };
332
+ slug: string;
333
+ currency: string | null;
334
+ active: boolean;
335
+ validFrom: string | null;
336
+ stackable: boolean;
337
+ discountType: "percentage" | "fixed_amount";
338
+ discountPercent: string | null;
339
+ discountAmountCents: number | null;
340
+ validUntil: string | null;
340
341
  conditions: {
341
342
  minPax?: number | undefined;
342
343
  pastGuestOnly?: boolean | undefined;
@@ -344,7 +345,6 @@ export declare const promotionsRoutes: import("hono/hono-base").HonoBase<Env, {
344
345
  childTravelerOnly?: boolean | undefined;
345
346
  familyOnly?: boolean | undefined;
346
347
  };
347
- stackable: boolean;
348
348
  };
349
349
  };
350
350
  outputFormat: "json";
@@ -165,14 +165,14 @@ export declare const promotionalOfferListQuerySchema: z.ZodObject<{
165
165
  auto: "auto";
166
166
  }>>;
167
167
  status: z.ZodOptional<z.ZodEnum<{
168
- expired: "expired";
169
168
  active: "active";
169
+ expired: "expired";
170
170
  archived: "archived";
171
171
  scheduled: "scheduled";
172
172
  }>>;
173
173
  scopeKind: z.ZodOptional<z.ZodEnum<{
174
- products: "products";
175
174
  markets: "markets";
175
+ products: "products";
176
176
  destinations: "destinations";
177
177
  categories: "categories";
178
178
  global: "global";