@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.
@@ -41,21 +41,21 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
41
41
  input: {};
42
42
  output: {
43
43
  data: {
44
- id: string;
45
- code: string;
46
- status: "active" | "inactive" | "archived";
47
- countryCode: string | null;
48
44
  metadata: {
49
45
  [x: string]: import("hono/utils/types").JSONValue;
50
46
  } | null;
47
+ id: string;
51
48
  name: string;
49
+ status: "active" | "inactive" | "archived";
50
+ createdAt: string;
51
+ code: string;
52
+ updatedAt: string;
53
+ timezone: string | null;
52
54
  regionCode: string | null;
55
+ countryCode: string | null;
53
56
  defaultLanguageTag: string;
54
57
  defaultCurrency: string;
55
- timezone: string | null;
56
58
  taxContext: string | null;
57
- createdAt: string;
58
- updatedAt: string;
59
59
  } | null;
60
60
  };
61
61
  outputFormat: "json";
@@ -217,9 +217,9 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
217
217
  output: {
218
218
  data: {
219
219
  id: string;
220
- active: boolean;
221
220
  createdAt: string;
222
221
  updatedAt: string;
222
+ active: boolean;
223
223
  marketId: string;
224
224
  languageTag: string;
225
225
  isDefault: boolean;
@@ -338,9 +338,9 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
338
338
  output: {
339
339
  data: {
340
340
  id: string;
341
- active: boolean;
342
341
  createdAt: string;
343
342
  updatedAt: string;
343
+ active: boolean;
344
344
  marketId: string;
345
345
  isDefault: boolean;
346
346
  sortOrder: number;
@@ -423,7 +423,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
423
423
  output: {
424
424
  data: {
425
425
  id: string;
426
- source: "supplier" | "custom" | "channel" | "manual" | "ecb" | "other";
426
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
427
427
  baseCurrency: string;
428
428
  effectiveAt: string;
429
429
  observedAt: string | null;
@@ -448,17 +448,17 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
448
448
  input: {};
449
449
  output: {
450
450
  data: {
451
- id: string;
452
- source: "supplier" | "custom" | "channel" | "manual" | "ecb" | "other";
451
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
453
452
  metadata: {
454
453
  [x: string]: import("hono/utils/types").JSONValue;
455
454
  } | null;
455
+ id: string;
456
456
  createdAt: string;
457
+ notes: string | null;
457
458
  baseCurrency: string;
458
459
  effectiveAt: string;
459
460
  observedAt: string | null;
460
461
  sourceReference: string | null;
461
- notes: string | null;
462
462
  } | null;
463
463
  };
464
464
  outputFormat: "json";
@@ -487,7 +487,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
487
487
  output: {
488
488
  data: {
489
489
  id: string;
490
- source: "supplier" | "custom" | "channel" | "manual" | "ecb" | "other";
490
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
491
491
  baseCurrency: string;
492
492
  effectiveAt: string;
493
493
  observedAt: string | null;
@@ -525,7 +525,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
525
525
  output: {
526
526
  data: {
527
527
  id: string;
528
- source: "supplier" | "custom" | "channel" | "manual" | "ecb" | "other";
528
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
529
529
  baseCurrency: string;
530
530
  effectiveAt: string;
531
531
  observedAt: string | null;
@@ -726,18 +726,18 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
726
726
  input: {};
727
727
  output: {
728
728
  data: {
729
- id: string;
730
- active: boolean;
731
729
  metadata: {
732
730
  [x: string]: import("hono/utils/types").JSONValue;
733
731
  } | null;
732
+ id: string;
734
733
  createdAt: string;
734
+ priority: number;
735
735
  updatedAt: string;
736
+ notes: string | null;
737
+ active: boolean;
736
738
  marketId: string;
737
739
  isDefault: boolean;
738
- notes: string | null;
739
740
  priceCatalogId: string;
740
- priority: number;
741
741
  };
742
742
  };
743
743
  outputFormat: "json";
@@ -861,7 +861,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
861
861
  priceCatalogId: string | null;
862
862
  visibility: "public" | "private" | "hidden";
863
863
  sellability: "unavailable" | "sellable" | "on_request";
864
- channelScope: "all" | "b2c" | "b2b" | "internal";
864
+ channelScope: "internal" | "all" | "b2c" | "b2b";
865
865
  active: boolean;
866
866
  availableFrom: string | null;
867
867
  availableTo: string | null;
@@ -890,18 +890,18 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
890
890
  input: {};
891
891
  output: {
892
892
  data: {
893
- id: string;
894
893
  sellability: "unavailable" | "sellable" | "on_request";
895
- active: boolean;
894
+ id: string;
896
895
  createdAt: string;
897
896
  updatedAt: string;
898
- marketId: string;
899
897
  notes: string | null;
898
+ active: boolean;
899
+ marketId: string;
900
900
  priceCatalogId: string | null;
901
901
  productId: string;
902
902
  optionId: string | null;
903
903
  visibility: "public" | "private" | "hidden";
904
- channelScope: "all" | "b2c" | "b2b" | "internal";
904
+ channelScope: "internal" | "all" | "b2c" | "b2b";
905
905
  availableFrom: string | null;
906
906
  availableTo: string | null;
907
907
  };
@@ -938,7 +938,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
938
938
  priceCatalogId: string | null;
939
939
  visibility: "public" | "private" | "hidden";
940
940
  sellability: "unavailable" | "sellable" | "on_request";
941
- channelScope: "all" | "b2c" | "b2b" | "internal";
941
+ channelScope: "internal" | "all" | "b2c" | "b2b";
942
942
  active: boolean;
943
943
  availableFrom: string | null;
944
944
  availableTo: string | null;
@@ -979,7 +979,7 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
979
979
  priceCatalogId: string | null;
980
980
  visibility: "public" | "private" | "hidden";
981
981
  sellability: "unavailable" | "sellable" | "on_request";
982
- channelScope: "all" | "b2c" | "b2b" | "internal";
982
+ channelScope: "internal" | "all" | "b2c" | "b2b";
983
983
  active: boolean;
984
984
  availableFrom: string | null;
985
985
  availableTo: string | null;
@@ -1057,15 +1057,15 @@ export declare const marketsRoutes: import("hono/hono-base").HonoBase<Env, {
1057
1057
  input: {};
1058
1058
  output: {
1059
1059
  data: {
1060
- id: string;
1061
1060
  sellability: "unavailable" | "sellable" | "on_request";
1062
- active: boolean;
1061
+ id: string;
1063
1062
  createdAt: string;
1063
+ priority: number;
1064
1064
  updatedAt: string;
1065
- marketId: string;
1066
1065
  notes: string | null;
1066
+ active: boolean;
1067
+ marketId: string;
1067
1068
  priceCatalogId: string | null;
1068
- priority: number;
1069
1069
  visibility: "public" | "private" | "hidden";
1070
1070
  channelId: string;
1071
1071
  };
@@ -579,7 +579,7 @@ export declare const fxRateSets: import("drizzle-orm/pg-core").PgTableWithColumn
579
579
  tableName: "fx_rate_sets";
580
580
  dataType: "string";
581
581
  columnType: "PgEnumColumn";
582
- data: "custom" | "other" | "supplier" | "manual" | "ecb" | "channel";
582
+ data: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
583
583
  driverParam: string;
584
584
  notNull: true;
585
585
  hasDefault: true;
@@ -43,11 +43,11 @@ export declare function createMarket(db: PostgresJsDatabase, data: CreateMarketI
43
43
  createdAt: Date;
44
44
  code: string;
45
45
  updatedAt: Date;
46
+ timezone: string | null;
46
47
  regionCode: string | null;
47
48
  countryCode: string | null;
48
49
  defaultLanguageTag: string;
49
50
  defaultCurrency: string;
50
- timezone: string | null;
51
51
  taxContext: string | null;
52
52
  } | null>;
53
53
  export declare function updateMarket(db: PostgresJsDatabase, id: string, data: UpdateMarketInput): Promise<{
@@ -153,7 +153,7 @@ export declare function deleteMarketCurrency(db: PostgresJsDatabase, id: string)
153
153
  export declare function listFxRateSets(db: PostgresJsDatabase, query: FxRateSetListQuery): Promise<{
154
154
  data: {
155
155
  id: string;
156
- source: "custom" | "other" | "supplier" | "manual" | "ecb" | "channel";
156
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
157
157
  baseCurrency: string;
158
158
  effectiveAt: Date;
159
159
  observedAt: Date | null;
@@ -168,7 +168,7 @@ export declare function listFxRateSets(db: PostgresJsDatabase, query: FxRateSetL
168
168
  }>;
169
169
  export declare function getFxRateSetById(db: PostgresJsDatabase, id: string): Promise<{
170
170
  id: string;
171
- source: "custom" | "other" | "supplier" | "manual" | "ecb" | "channel";
171
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
172
172
  baseCurrency: string;
173
173
  effectiveAt: Date;
174
174
  observedAt: Date | null;
@@ -178,7 +178,7 @@ export declare function getFxRateSetById(db: PostgresJsDatabase, id: string): Pr
178
178
  createdAt: Date;
179
179
  } | null>;
180
180
  export declare function createFxRateSet(db: PostgresJsDatabase, data: CreateFxRateSetInput): Promise<{
181
- source: "custom" | "other" | "supplier" | "manual" | "ecb" | "channel";
181
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
182
182
  metadata: Record<string, unknown> | null;
183
183
  id: string;
184
184
  createdAt: Date;
@@ -190,7 +190,7 @@ export declare function createFxRateSet(db: PostgresJsDatabase, data: CreateFxRa
190
190
  } | null>;
191
191
  export declare function updateFxRateSet(db: PostgresJsDatabase, id: string, data: UpdateFxRateSetInput): Promise<{
192
192
  id: string;
193
- source: "custom" | "other" | "supplier" | "manual" | "ecb" | "channel";
193
+ source: "supplier" | "custom" | "other" | "manual" | "ecb" | "channel";
194
194
  baseCurrency: string;
195
195
  effectiveAt: Date;
196
196
  observedAt: Date | null;
@@ -34,8 +34,8 @@ export declare function createMarketPriceCatalog(db: PostgresJsDatabase, data: C
34
34
  id: string;
35
35
  createdAt: Date;
36
36
  priority: number;
37
- notes: string | null;
38
37
  updatedAt: Date;
38
+ notes: string | null;
39
39
  active: boolean;
40
40
  marketId: string;
41
41
  isDefault: boolean;
@@ -94,17 +94,17 @@ export declare function getMarketProductRuleById(db: PostgresJsDatabase, id: str
94
94
  updatedAt: Date;
95
95
  } | null>;
96
96
  export declare function createMarketProductRule(db: PostgresJsDatabase, data: CreateMarketProductRuleInput): Promise<{
97
+ sellability: "unavailable" | "sellable" | "on_request";
97
98
  id: string;
98
99
  createdAt: Date;
99
- notes: string | null;
100
100
  updatedAt: Date;
101
+ notes: string | null;
101
102
  active: boolean;
102
103
  marketId: string;
103
104
  priceCatalogId: string | null;
104
105
  productId: string;
105
106
  optionId: string | null;
106
107
  visibility: "public" | "private" | "hidden";
107
- sellability: "unavailable" | "sellable" | "on_request";
108
108
  channelScope: "internal" | "all" | "b2c" | "b2b";
109
109
  availableFrom: string | null;
110
110
  availableTo: string | null;
@@ -160,16 +160,16 @@ export declare function getMarketChannelRuleById(db: PostgresJsDatabase, id: str
160
160
  updatedAt: Date;
161
161
  } | null>;
162
162
  export declare function createMarketChannelRule(db: PostgresJsDatabase, data: CreateMarketChannelRuleInput): Promise<{
163
+ sellability: "unavailable" | "sellable" | "on_request";
163
164
  id: string;
164
165
  createdAt: Date;
165
166
  priority: number;
166
- notes: string | null;
167
167
  updatedAt: Date;
168
+ notes: string | null;
168
169
  active: boolean;
169
170
  marketId: string;
170
171
  priceCatalogId: string | null;
171
172
  visibility: "public" | "private" | "hidden";
172
- sellability: "unavailable" | "sellable" | "on_request";
173
173
  channelId: string;
174
174
  } | null>;
175
175
  export declare function updateMarketChannelRule(db: PostgresJsDatabase, id: string, data: UpdateMarketChannelRuleInput): Promise<{
@@ -21,9 +21,9 @@ export declare const marketChannelScopeSchema: z.ZodEnum<{
21
21
  b2b: "b2b";
22
22
  }>;
23
23
  export declare const fxRateSourceSchema: z.ZodEnum<{
24
+ supplier: "supplier";
24
25
  custom: "custom";
25
26
  other: "other";
26
- supplier: "supplier";
27
27
  manual: "manual";
28
28
  ecb: "ecb";
29
29
  channel: "channel";
@@ -155,9 +155,9 @@ export declare const marketCurrencyListQuerySchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  export declare const fxRateSetCoreSchema: z.ZodObject<{
157
157
  source: z.ZodDefault<z.ZodEnum<{
158
+ supplier: "supplier";
158
159
  custom: "custom";
159
160
  other: "other";
160
- supplier: "supplier";
161
161
  manual: "manual";
162
162
  ecb: "ecb";
163
163
  channel: "channel";
@@ -171,9 +171,9 @@ export declare const fxRateSetCoreSchema: z.ZodObject<{
171
171
  }, z.core.$strip>;
172
172
  export declare const insertFxRateSetSchema: z.ZodObject<{
173
173
  source: z.ZodDefault<z.ZodEnum<{
174
+ supplier: "supplier";
174
175
  custom: "custom";
175
176
  other: "other";
176
- supplier: "supplier";
177
177
  manual: "manual";
178
178
  ecb: "ecb";
179
179
  channel: "channel";
@@ -187,9 +187,9 @@ export declare const insertFxRateSetSchema: z.ZodObject<{
187
187
  }, z.core.$strip>;
188
188
  export declare const updateFxRateSetSchema: z.ZodObject<{
189
189
  source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
190
+ supplier: "supplier";
190
191
  custom: "custom";
191
192
  other: "other";
192
- supplier: "supplier";
193
193
  manual: "manual";
194
194
  ecb: "ecb";
195
195
  channel: "channel";
@@ -205,9 +205,9 @@ export declare const fxRateSetListQuerySchema: z.ZodObject<{
205
205
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
206
206
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
207
207
  source: z.ZodOptional<z.ZodEnum<{
208
+ supplier: "supplier";
208
209
  custom: "custom";
209
210
  other: "other";
210
- supplier: "supplier";
211
211
  manual: "manual";
212
212
  ecb: "ecb";
213
213
  channel: "channel";
@@ -11,7 +11,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
11
11
  unitId: string | null;
12
12
  code: string | null;
13
13
  name: string;
14
- categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
14
+ categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
15
15
  seatOccupancy: number;
16
16
  groupSize: number | null;
17
17
  isAgeQualified: boolean;
@@ -40,20 +40,20 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
40
40
  input: {};
41
41
  output: {
42
42
  data: {
43
- id: string;
44
- code: string | null;
45
- active: boolean;
46
43
  metadata: {
47
44
  [x: string]: import("hono/utils/types").JSONValue;
48
45
  } | null;
46
+ id: string;
49
47
  name: string;
50
48
  createdAt: string;
49
+ code: string | null;
51
50
  updatedAt: string;
51
+ active: boolean;
52
52
  sortOrder: number;
53
53
  productId: string | null;
54
54
  optionId: string | null;
55
55
  unitId: string | null;
56
- categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
56
+ categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
57
57
  seatOccupancy: number;
58
58
  groupSize: number | null;
59
59
  isAgeQualified: boolean;
@@ -93,7 +93,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
93
93
  unitId: string | null;
94
94
  code: string | null;
95
95
  name: string;
96
- categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
96
+ categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
97
97
  seatOccupancy: number;
98
98
  groupSize: number | null;
99
99
  isAgeQualified: boolean;
@@ -140,7 +140,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
140
140
  unitId: string | null;
141
141
  code: string | null;
142
142
  name: string;
143
- categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
143
+ categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
144
144
  seatOccupancy: number;
145
145
  groupSize: number | null;
146
146
  isAgeQualified: boolean;
@@ -218,10 +218,10 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
218
218
  output: {
219
219
  data: {
220
220
  id: string;
221
- active: boolean;
222
221
  createdAt: string;
223
222
  updatedAt: string;
224
223
  notes: string | null;
224
+ active: boolean;
225
225
  pricingCategoryId: string;
226
226
  masterPricingCategoryId: string;
227
227
  dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
@@ -367,17 +367,17 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
367
367
  input: {};
368
368
  output: {
369
369
  data: {
370
- id: string;
371
- code: string | null;
372
- active: boolean;
373
370
  metadata: {
374
371
  [x: string]: import("hono/utils/types").JSONValue;
375
372
  } | null;
373
+ id: string;
376
374
  name: string;
377
375
  createdAt: string;
376
+ code: string | null;
378
377
  updatedAt: string;
379
- isDefault: boolean;
380
378
  notes: string | null;
379
+ active: boolean;
380
+ isDefault: boolean;
381
381
  policyType: "custom" | "simple" | "advanced" | "non_refundable";
382
382
  simpleCutoffHours: number | null;
383
383
  } | null;
@@ -525,11 +525,11 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
525
525
  output: {
526
526
  data: {
527
527
  id: string;
528
- active: boolean;
529
528
  createdAt: string;
530
529
  updatedAt: string;
531
- sortOrder: number;
532
530
  notes: string | null;
531
+ active: boolean;
532
+ sortOrder: number;
533
533
  cancellationPolicyId: string;
534
534
  cutoffMinutesBefore: number | null;
535
535
  chargeType: "none" | "amount" | "percentage";
@@ -653,7 +653,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
653
653
  code: string;
654
654
  name: string;
655
655
  currencyCode: string | null;
656
- catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
656
+ catalogType: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
657
657
  isDefault: boolean;
658
658
  active: boolean;
659
659
  notes: string | null;
@@ -677,19 +677,19 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
677
677
  input: {};
678
678
  output: {
679
679
  data: {
680
- id: string;
681
- code: string;
682
- active: boolean;
683
680
  metadata: {
684
681
  [x: string]: import("hono/utils/types").JSONValue;
685
682
  } | null;
683
+ id: string;
686
684
  name: string;
687
685
  createdAt: string;
686
+ code: string;
688
687
  updatedAt: string;
688
+ notes: string | null;
689
+ active: boolean;
689
690
  isDefault: boolean;
690
691
  currencyCode: string | null;
691
- notes: string | null;
692
- catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
692
+ catalogType: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
693
693
  } | null;
694
694
  };
695
695
  outputFormat: "json";
@@ -721,7 +721,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
721
721
  code: string;
722
722
  name: string;
723
723
  currencyCode: string | null;
724
- catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
724
+ catalogType: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
725
725
  isDefault: boolean;
726
726
  active: boolean;
727
727
  notes: string | null;
@@ -761,7 +761,7 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
761
761
  code: string;
762
762
  name: string;
763
763
  currencyCode: string | null;
764
- catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
764
+ catalogType: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
765
765
  isDefault: boolean;
766
766
  active: boolean;
767
767
  notes: string | null;
@@ -840,21 +840,21 @@ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
840
840
  input: {};
841
841
  output: {
842
842
  data: {
843
- id: string;
844
- code: string | null;
845
- validFrom: string | null;
846
- active: boolean;
847
843
  metadata: {
848
844
  [x: string]: import("hono/utils/types").JSONValue;
849
845
  } | null;
846
+ id: string;
850
847
  name: string;
851
- timezone: string | null;
852
848
  createdAt: string;
849
+ code: string | null;
850
+ priority: number;
853
851
  updatedAt: string;
854
852
  notes: string | null;
853
+ timezone: string | null;
854
+ active: boolean;
855
855
  priceCatalogId: string;
856
- priority: number;
857
856
  recurrenceRule: string;
857
+ validFrom: string | null;
858
858
  validTo: string | null;
859
859
  weekdays: string[] | null;
860
860
  } | null;