@voyant-travel/distribution 0.112.2 → 0.114.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.
@@ -42,6 +42,7 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
42
42
  input: {};
43
43
  output: {
44
44
  data: {
45
+ namespace: string;
45
46
  metadata: {
46
47
  [x: string]: import("hono/utils/types").JSONValue;
47
48
  } | null;
@@ -55,7 +56,6 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
55
56
  lastSyncedAt: string | null;
56
57
  sourceSystem: string;
57
58
  objectType: string;
58
- namespace: string;
59
59
  externalId: string;
60
60
  externalParentId: string | null;
61
61
  } | null;
@@ -225,6 +225,7 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
225
225
  };
226
226
  output: {
227
227
  data: {
228
+ namespace: string;
228
229
  metadata: {
229
230
  [x: string]: import("hono/utils/types").JSONValue;
230
231
  } | null;
@@ -238,7 +239,6 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
238
239
  lastSyncedAt: string | null;
239
240
  sourceSystem: string;
240
241
  objectType: string;
241
- namespace: string;
242
242
  externalId: string;
243
243
  externalParentId: string | null;
244
244
  } | null;
@@ -43,6 +43,7 @@ export declare const externalRefsService: {
43
43
  updatedAt: Date;
44
44
  } | null>;
45
45
  createExternalRef(db: PostgresJsDatabase, data: CreateExternalRefInput): Promise<{
46
+ namespace: string;
46
47
  metadata: Record<string, unknown> | null;
47
48
  id: string;
48
49
  status: "active" | "inactive" | "archived";
@@ -54,7 +55,6 @@ export declare const externalRefsService: {
54
55
  lastSyncedAt: Date | null;
55
56
  sourceSystem: string;
56
57
  objectType: string;
57
- namespace: string;
58
58
  externalId: string;
59
59
  externalParentId: string | null;
60
60
  } | null>;
@@ -39,6 +39,7 @@ export declare const updateExternalRefSchema: z.ZodObject<{
39
39
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
40
40
  }, z.core.$strip>;
41
41
  export declare const insertExternalRefForEntitySchema: z.ZodObject<{
42
+ namespace: z.ZodDefault<z.ZodString>;
42
43
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
43
44
  status: z.ZodDefault<z.ZodEnum<{
44
45
  active: "active";
@@ -49,7 +50,6 @@ export declare const insertExternalRefForEntitySchema: z.ZodObject<{
49
50
  lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
51
  sourceSystem: z.ZodString;
51
52
  objectType: z.ZodString;
52
- namespace: z.ZodDefault<z.ZodString>;
53
53
  externalId: z.ZodString;
54
54
  externalParentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  }, z.core.$strip>;
package/dist/routes.d.ts CHANGED
@@ -808,6 +808,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Distr
808
808
  input: {};
809
809
  output: {
810
810
  data: {
811
+ amountCents: number | null;
811
812
  id: string;
812
813
  createdAt: string;
813
814
  updatedAt: string;
@@ -817,7 +818,6 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Distr
817
818
  productId: string | null;
818
819
  externalRateId: string | null;
819
820
  externalCategoryId: string | null;
820
- amountCents: number | null;
821
821
  percentBasisPoints: number | null;
822
822
  validFrom: string | null;
823
823
  validTo: string | null;
@@ -117,6 +117,7 @@ export declare const commercialServiceOperations: {
117
117
  updatedAt: Date;
118
118
  } | null>;
119
119
  createCommissionRule(db: PostgresJsDatabase, data: CreateChannelCommissionRuleInput): Promise<{
120
+ amountCents: number | null;
120
121
  id: string;
121
122
  createdAt: Date;
122
123
  updatedAt: Date;
@@ -126,7 +127,6 @@ export declare const commercialServiceOperations: {
126
127
  productId: string | null;
127
128
  externalRateId: string | null;
128
129
  externalCategoryId: string | null;
129
- amountCents: number | null;
130
130
  percentBasisPoints: number | null;
131
131
  validFrom: string | null;
132
132
  validTo: string | null;
package/dist/service.d.ts CHANGED
@@ -977,6 +977,7 @@ export declare const distributionService: {
977
977
  updatedAt: Date;
978
978
  } | null>;
979
979
  createCommissionRule(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./service/types.js").CreateChannelCommissionRuleInput): Promise<{
980
+ amountCents: number | null;
980
981
  id: string;
981
982
  createdAt: Date;
982
983
  updatedAt: Date;
@@ -986,7 +987,6 @@ export declare const distributionService: {
986
987
  productId: string | null;
987
988
  externalRateId: string | null;
988
989
  externalCategoryId: string | null;
989
- amountCents: number | null;
990
990
  percentBasisPoints: number | null;
991
991
  validFrom: string | null;
992
992
  validTo: string | null;
@@ -855,12 +855,12 @@ export declare const supplierRoutes: import("hono/hono-base").HonoBase<Env, {
855
855
  };
856
856
  output: {
857
857
  data: {
858
+ amountCents: number;
859
+ currency: string;
858
860
  id: string;
859
861
  name: string;
860
862
  createdAt: string;
861
- currency: string;
862
863
  notes: string | null;
863
- amountCents: number;
864
864
  validFrom: string | null;
865
865
  validTo: string | null;
866
866
  serviceId: string;
@@ -1050,8 +1050,8 @@ export declare const supplierRoutes: import("hono/hono-base").HonoBase<Env, {
1050
1050
  };
1051
1051
  output: {
1052
1052
  data: {
1053
- id: string;
1054
1053
  date: string;
1054
+ id: string;
1055
1055
  createdAt: string;
1056
1056
  notes: string | null;
1057
1057
  available: boolean;
@@ -884,12 +884,12 @@ export declare function listRates(db: PostgresJsDatabase, serviceId: string): Om
884
884
  }, {}, {}>;
885
885
  }>, "where" | "orderBy">;
886
886
  export declare function createRate(db: PostgresJsDatabase, serviceId: string, data: CreateRateInput): Promise<{
887
+ amountCents: number;
888
+ currency: string;
887
889
  id: string;
888
890
  name: string;
889
891
  createdAt: Date;
890
- currency: string;
891
892
  notes: string | null;
892
- amountCents: number;
893
893
  validFrom: string | null;
894
894
  validTo: string | null;
895
895
  serviceId: string;
@@ -1109,8 +1109,8 @@ export declare function listAvailability(db: PostgresJsDatabase, supplierId: str
1109
1109
  createdAt: Date;
1110
1110
  }[]>;
1111
1111
  export declare function createAvailability(db: PostgresJsDatabase, supplierId: string, entries: CreateAvailabilityInput[]): Promise<{
1112
- id: string;
1113
1112
  date: string;
1113
+ id: string;
1114
1114
  createdAt: Date;
1115
1115
  notes: string | null;
1116
1116
  available: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/distribution",
3
- "version": "0.112.2",
3
+ "version": "0.114.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,13 +34,13 @@
34
34
  "drizzle-orm": "^0.45.2",
35
35
  "hono": "^4.12.10",
36
36
  "zod": "^4.3.6",
37
- "@voyant-travel/bookings": "^0.122.1",
38
- "@voyant-travel/catalog": "^0.120.2",
39
- "@voyant-travel/core": "^0.109.0",
40
- "@voyant-travel/hono": "^0.111.0",
41
- "@voyant-travel/db": "^0.108.1",
42
- "@voyant-travel/identity": "^0.122.0",
43
- "@voyant-travel/workflows": "^0.109.3",
37
+ "@voyant-travel/bookings": "^0.124.0",
38
+ "@voyant-travel/catalog": "^0.122.0",
39
+ "@voyant-travel/core": "^0.110.0",
40
+ "@voyant-travel/db": "^0.108.2",
41
+ "@voyant-travel/hono": "^0.112.1",
42
+ "@voyant-travel/identity": "^0.124.0",
43
+ "@voyant-travel/workflows": "^0.110.0",
44
44
  "@voyant-travel/suppliers-contracts": "^0.104.3"
45
45
  },
46
46
  "devDependencies": {