@voyant-travel/inventory 0.4.3 → 0.4.5

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.
package/dist/service.d.ts CHANGED
@@ -1016,6 +1016,141 @@ export declare const productsService: {
1016
1016
  costAmountCents: number;
1017
1017
  marginPercent: number;
1018
1018
  } | null>;
1019
+ listProductItineraryTranslations(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: {
1020
+ limit: number;
1021
+ offset: number;
1022
+ itineraryId?: string | undefined;
1023
+ languageTag?: string | undefined;
1024
+ }): Promise<{
1025
+ data: {
1026
+ id: string;
1027
+ itineraryId: string;
1028
+ languageTag: string;
1029
+ name: string;
1030
+ createdAt: Date;
1031
+ updatedAt: Date;
1032
+ }[];
1033
+ total: number;
1034
+ limit: number;
1035
+ offset: number;
1036
+ }>;
1037
+ getProductItineraryTranslationById(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1038
+ id: string;
1039
+ itineraryId: string;
1040
+ languageTag: string;
1041
+ name: string;
1042
+ createdAt: Date;
1043
+ updatedAt: Date;
1044
+ } | null>;
1045
+ getItineraryTranslationForProductMutation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1046
+ productId: string;
1047
+ id: string;
1048
+ itineraryId: string;
1049
+ languageTag: string;
1050
+ name: string;
1051
+ createdAt: Date;
1052
+ updatedAt: Date;
1053
+ } | null>;
1054
+ createProductItineraryTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, itineraryId: string, data: {
1055
+ languageTag: string;
1056
+ name: string;
1057
+ }): Promise<{
1058
+ id: string;
1059
+ name: string;
1060
+ createdAt: Date;
1061
+ updatedAt: Date;
1062
+ itineraryId: string;
1063
+ languageTag: string;
1064
+ } | null>;
1065
+ updateProductItineraryTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
1066
+ languageTag?: string | undefined;
1067
+ name?: string | undefined;
1068
+ }): Promise<{
1069
+ id: string;
1070
+ itineraryId: string;
1071
+ languageTag: string;
1072
+ name: string;
1073
+ createdAt: Date;
1074
+ updatedAt: Date;
1075
+ } | null>;
1076
+ deleteProductItineraryTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1077
+ id: string;
1078
+ } | null>;
1079
+ listDayServiceTranslations(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: {
1080
+ limit: number;
1081
+ offset: number;
1082
+ serviceId?: string | undefined;
1083
+ languageTag?: string | undefined;
1084
+ }): Promise<{
1085
+ data: {
1086
+ id: string;
1087
+ serviceId: string;
1088
+ languageTag: string;
1089
+ name: string;
1090
+ description: string | null;
1091
+ notes: string | null;
1092
+ createdAt: Date;
1093
+ updatedAt: Date;
1094
+ }[];
1095
+ total: number;
1096
+ limit: number;
1097
+ offset: number;
1098
+ }>;
1099
+ getDayServiceTranslationById(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1100
+ id: string;
1101
+ serviceId: string;
1102
+ languageTag: string;
1103
+ name: string;
1104
+ description: string | null;
1105
+ notes: string | null;
1106
+ createdAt: Date;
1107
+ updatedAt: Date;
1108
+ } | null>;
1109
+ getDayServiceTranslationForProductMutation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1110
+ dayId: string;
1111
+ productId: string;
1112
+ id: string;
1113
+ serviceId: string;
1114
+ languageTag: string;
1115
+ name: string;
1116
+ description: string | null;
1117
+ notes: string | null;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ } | null>;
1121
+ createDayServiceTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, dayId: string, serviceId: string, data: {
1122
+ languageTag: string;
1123
+ name: string;
1124
+ description?: string | null | undefined;
1125
+ notes?: string | null | undefined;
1126
+ }): Promise<{
1127
+ id: string;
1128
+ name: string;
1129
+ createdAt: Date;
1130
+ description: string | null;
1131
+ updatedAt: Date;
1132
+ languageTag: string;
1133
+ notes: string | null;
1134
+ serviceId: string;
1135
+ } | null>;
1136
+ updateDayServiceTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
1137
+ languageTag?: string | undefined;
1138
+ name?: string | undefined;
1139
+ description?: string | null | undefined;
1140
+ notes?: string | null | undefined;
1141
+ }): Promise<{
1142
+ id: string;
1143
+ serviceId: string;
1144
+ languageTag: string;
1145
+ name: string;
1146
+ description: string | null;
1147
+ notes: string | null;
1148
+ createdAt: Date;
1149
+ updatedAt: Date;
1150
+ } | null>;
1151
+ deleteDayServiceTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1152
+ id: string;
1153
+ } | null>;
1019
1154
  listItineraries(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"product_itineraries", {
1020
1155
  id: import("drizzle-orm/pg-core").PgColumn<{
1021
1156
  name: string;
@@ -2347,10 +2482,10 @@ export declare const productsService: {
2347
2482
  createdAt: Date;
2348
2483
  description: string | null;
2349
2484
  updatedAt: Date;
2485
+ languageTag: string;
2350
2486
  title: string | null;
2351
2487
  location: string | null;
2352
2488
  dayId: string;
2353
- languageTag: string;
2354
2489
  } | null>;
2355
2490
  updateProductDayTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
2356
2491
  languageTag?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAc9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADjvB,CAAA"}
package/dist/service.js CHANGED
@@ -5,6 +5,7 @@ import { deliveryFormatProductsService } from "./service-delivery-formats.js";
5
5
  import { destinationProductsService } from "./service-destinations.js";
6
6
  import { itineraryProductsService } from "./service-itinerary.js";
7
7
  import { itineraryHistoryProductsService } from "./service-itinerary-history.js";
8
+ import { itineraryTranslationProductsService } from "./service-itinerary-translations.js";
8
9
  import { mediaProductsService } from "./service-media.js";
9
10
  import { merchandisingProductsService } from "./service-merchandising.js";
10
11
  import { optionTranslationProductsService } from "./service-option-translations.js";
@@ -22,6 +23,7 @@ export const productsService = {
22
23
  ...optionProductsService,
23
24
  ...optionTranslationProductsService,
24
25
  ...itineraryProductsService,
26
+ ...itineraryTranslationProductsService,
25
27
  ...itineraryHistoryProductsService,
26
28
  ...taxonomyProductsService,
27
29
  ...mediaProductsService,
@@ -0,0 +1,28 @@
1
+ CREATE TABLE "product_day_service_translations" (
2
+ "id" text PRIMARY KEY NOT NULL,
3
+ "service_id" text NOT NULL,
4
+ "language_tag" text NOT NULL,
5
+ "name" text NOT NULL,
6
+ "description" text,
7
+ "notes" text,
8
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
9
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE TABLE "product_itinerary_translations" (
13
+ "id" text PRIMARY KEY NOT NULL,
14
+ "itinerary_id" text NOT NULL,
15
+ "language_tag" text NOT NULL,
16
+ "name" text NOT NULL,
17
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
18
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
19
+ );
20
+ --> statement-breakpoint
21
+ ALTER TABLE "product_day_service_translations" ADD CONSTRAINT "product_day_service_translations_service_id_product_day_services_id_fk" FOREIGN KEY ("service_id") REFERENCES "public"."product_day_services"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
22
+ ALTER TABLE "product_itinerary_translations" ADD CONSTRAINT "product_itinerary_translations_itinerary_id_product_itineraries_id_fk" FOREIGN KEY ("itinerary_id") REFERENCES "public"."product_itineraries"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
23
+ CREATE INDEX "idx_product_day_service_translations_service" ON "product_day_service_translations" USING btree ("service_id");--> statement-breakpoint
24
+ CREATE INDEX "idx_product_day_service_translations_language" ON "product_day_service_translations" USING btree ("language_tag");--> statement-breakpoint
25
+ CREATE UNIQUE INDEX "uidx_product_day_service_translations_service_language" ON "product_day_service_translations" USING btree ("service_id","language_tag");--> statement-breakpoint
26
+ CREATE INDEX "idx_product_itinerary_translations_itinerary" ON "product_itinerary_translations" USING btree ("itinerary_id");--> statement-breakpoint
27
+ CREATE INDEX "idx_product_itinerary_translations_language" ON "product_itinerary_translations" USING btree ("language_tag");--> statement-breakpoint
28
+ CREATE UNIQUE INDEX "uidx_product_itinerary_translations_itinerary_language" ON "product_itinerary_translations" USING btree ("itinerary_id","language_tag");
@@ -8,6 +8,13 @@
8
8
  "when": 1781947487847,
9
9
  "tag": "0000_inventory_baseline",
10
10
  "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "7",
15
+ "when": 1782045482478,
16
+ "tag": "0001_inventory_baseline",
17
+ "breakpoints": true
11
18
  }
12
19
  ]
13
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/inventory",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -162,17 +162,17 @@
162
162
  "pdf-lib": "^1.17.1",
163
163
  "sanitize-html": "^2.17.4",
164
164
  "zod": "^4.3.6",
165
- "@voyant-travel/action-ledger": "^0.105.3",
166
- "@voyant-travel/catalog": "^0.129.0",
167
- "@voyant-travel/core": "^0.110.0",
168
- "@voyant-travel/db": "^0.108.4",
165
+ "@voyant-travel/action-ledger": "^0.105.4",
166
+ "@voyant-travel/catalog": "^0.129.1",
167
+ "@voyant-travel/core": "^0.111.0",
168
+ "@voyant-travel/db": "^0.108.5",
169
169
  "@voyant-travel/extras-contracts": "^0.104.2",
170
- "@voyant-travel/hono": "^0.112.2",
171
- "@voyant-travel/commerce": "^0.13.0",
172
- "@voyant-travel/products-contracts": "^0.105.7",
170
+ "@voyant-travel/hono": "^0.113.0",
171
+ "@voyant-travel/commerce": "^0.13.1",
172
+ "@voyant-travel/products-contracts": "^0.105.8",
173
173
  "@voyant-travel/storage": "^0.105.0",
174
174
  "@voyant-travel/utils": "^0.105.2",
175
- "@voyant-travel/operations": "^0.2.4"
175
+ "@voyant-travel/operations": "^0.2.6"
176
176
  },
177
177
  "devDependencies": {
178
178
  "@types/sanitize-html": "^2.16.1",