@voyant-travel/inventory 0.4.3 → 0.4.4
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/authoring/clone-content.d.ts +1 -0
- package/dist/authoring/clone-content.d.ts.map +1 -1
- package/dist/authoring/clone-content.js +35 -3
- package/dist/authoring/clone.d.ts.map +1 -1
- package/dist/authoring/clone.js +1 -0
- package/dist/interface.d.ts +299 -1
- package/dist/interface.d.ts.map +1 -1
- package/dist/routes-itinerary-translations.d.ts +301 -0
- package/dist/routes-itinerary-translations.d.ts.map +1 -0
- package/dist/routes-itinerary-translations.js +168 -0
- package/dist/routes-itinerary.d.ts +1 -1
- package/dist/routes.d.ts +299 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/schema-itinerary.d.ts +256 -0
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +30 -0
- package/dist/schema-relations.d.ts +12 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +20 -2
- package/dist/service-content-owned.d.ts +2 -6
- package/dist/service-content-owned.d.ts.map +1 -1
- package/dist/service-content-owned.js +80 -20
- package/dist/service-itinerary-translations.d.ts +122 -0
- package/dist/service-itinerary-translations.d.ts.map +1 -0
- package/dist/service-itinerary-translations.js +176 -0
- package/dist/service-option-translations.d.ts +1 -1
- package/dist/service.d.ts +136 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +2 -0
- package/migrations/0001_inventory_baseline.sql +28 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +2 -2
package/dist/routes.d.ts
CHANGED
|
@@ -4377,10 +4377,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
|
|
|
4377
4377
|
createdAt: string;
|
|
4378
4378
|
description: string | null;
|
|
4379
4379
|
updatedAt: string;
|
|
4380
|
+
languageTag: string;
|
|
4380
4381
|
title: string | null;
|
|
4381
4382
|
location: string | null;
|
|
4382
4383
|
dayId: string;
|
|
4383
|
-
languageTag: string;
|
|
4384
4384
|
};
|
|
4385
4385
|
};
|
|
4386
4386
|
outputFormat: "json";
|
|
@@ -4574,6 +4574,304 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
|
|
|
4574
4574
|
status: 201;
|
|
4575
4575
|
};
|
|
4576
4576
|
};
|
|
4577
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
4578
|
+
"/:id/itineraries/:itineraryId/translations": {
|
|
4579
|
+
$get: {
|
|
4580
|
+
input: {
|
|
4581
|
+
param: {
|
|
4582
|
+
id: string;
|
|
4583
|
+
} & {
|
|
4584
|
+
itineraryId: string;
|
|
4585
|
+
};
|
|
4586
|
+
};
|
|
4587
|
+
output: {
|
|
4588
|
+
data: {
|
|
4589
|
+
id: string;
|
|
4590
|
+
itineraryId: string;
|
|
4591
|
+
languageTag: string;
|
|
4592
|
+
name: string;
|
|
4593
|
+
createdAt: string;
|
|
4594
|
+
updatedAt: string;
|
|
4595
|
+
}[];
|
|
4596
|
+
total: number;
|
|
4597
|
+
limit: number;
|
|
4598
|
+
offset: number;
|
|
4599
|
+
};
|
|
4600
|
+
outputFormat: "json";
|
|
4601
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4602
|
+
};
|
|
4603
|
+
};
|
|
4604
|
+
} & {
|
|
4605
|
+
"/:id/itineraries/:itineraryId/translations": {
|
|
4606
|
+
$post: {
|
|
4607
|
+
input: {
|
|
4608
|
+
param: {
|
|
4609
|
+
id: string;
|
|
4610
|
+
} & {
|
|
4611
|
+
itineraryId: string;
|
|
4612
|
+
};
|
|
4613
|
+
};
|
|
4614
|
+
output: {
|
|
4615
|
+
error: string;
|
|
4616
|
+
};
|
|
4617
|
+
outputFormat: "json";
|
|
4618
|
+
status: 404;
|
|
4619
|
+
} | {
|
|
4620
|
+
input: {
|
|
4621
|
+
param: {
|
|
4622
|
+
id: string;
|
|
4623
|
+
} & {
|
|
4624
|
+
itineraryId: string;
|
|
4625
|
+
};
|
|
4626
|
+
};
|
|
4627
|
+
output: {
|
|
4628
|
+
data: {
|
|
4629
|
+
id: string;
|
|
4630
|
+
name: string;
|
|
4631
|
+
createdAt: string;
|
|
4632
|
+
updatedAt: string;
|
|
4633
|
+
itineraryId: string;
|
|
4634
|
+
languageTag: string;
|
|
4635
|
+
};
|
|
4636
|
+
};
|
|
4637
|
+
outputFormat: "json";
|
|
4638
|
+
status: 201;
|
|
4639
|
+
};
|
|
4640
|
+
};
|
|
4641
|
+
} & {
|
|
4642
|
+
"/:id/itineraries/:itineraryId/translations/:translationId": {
|
|
4643
|
+
$patch: {
|
|
4644
|
+
input: {
|
|
4645
|
+
param: {
|
|
4646
|
+
id: string;
|
|
4647
|
+
} & {
|
|
4648
|
+
itineraryId: string;
|
|
4649
|
+
} & {
|
|
4650
|
+
translationId: string;
|
|
4651
|
+
};
|
|
4652
|
+
};
|
|
4653
|
+
output: {
|
|
4654
|
+
error: string;
|
|
4655
|
+
};
|
|
4656
|
+
outputFormat: "json";
|
|
4657
|
+
status: 404;
|
|
4658
|
+
} | {
|
|
4659
|
+
input: {
|
|
4660
|
+
param: {
|
|
4661
|
+
id: string;
|
|
4662
|
+
} & {
|
|
4663
|
+
itineraryId: string;
|
|
4664
|
+
} & {
|
|
4665
|
+
translationId: string;
|
|
4666
|
+
};
|
|
4667
|
+
};
|
|
4668
|
+
output: {
|
|
4669
|
+
data: {
|
|
4670
|
+
id: string;
|
|
4671
|
+
itineraryId: string;
|
|
4672
|
+
languageTag: string;
|
|
4673
|
+
name: string;
|
|
4674
|
+
createdAt: string;
|
|
4675
|
+
updatedAt: string;
|
|
4676
|
+
};
|
|
4677
|
+
};
|
|
4678
|
+
outputFormat: "json";
|
|
4679
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4680
|
+
};
|
|
4681
|
+
};
|
|
4682
|
+
} & {
|
|
4683
|
+
"/:id/itineraries/:itineraryId/translations/:translationId": {
|
|
4684
|
+
$delete: {
|
|
4685
|
+
input: {
|
|
4686
|
+
param: {
|
|
4687
|
+
id: string;
|
|
4688
|
+
} & {
|
|
4689
|
+
itineraryId: string;
|
|
4690
|
+
} & {
|
|
4691
|
+
translationId: string;
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
output: {
|
|
4695
|
+
error: string;
|
|
4696
|
+
};
|
|
4697
|
+
outputFormat: "json";
|
|
4698
|
+
status: 404;
|
|
4699
|
+
} | {
|
|
4700
|
+
input: {
|
|
4701
|
+
param: {
|
|
4702
|
+
id: string;
|
|
4703
|
+
} & {
|
|
4704
|
+
itineraryId: string;
|
|
4705
|
+
} & {
|
|
4706
|
+
translationId: string;
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
output: {
|
|
4710
|
+
success: true;
|
|
4711
|
+
};
|
|
4712
|
+
outputFormat: "json";
|
|
4713
|
+
status: 200;
|
|
4714
|
+
};
|
|
4715
|
+
};
|
|
4716
|
+
} & {
|
|
4717
|
+
"/:id/days/:dayId/services/:serviceId/translations": {
|
|
4718
|
+
$get: {
|
|
4719
|
+
input: {
|
|
4720
|
+
param: {
|
|
4721
|
+
id: string;
|
|
4722
|
+
} & {
|
|
4723
|
+
dayId: string;
|
|
4724
|
+
} & {
|
|
4725
|
+
serviceId: string;
|
|
4726
|
+
};
|
|
4727
|
+
};
|
|
4728
|
+
output: {
|
|
4729
|
+
data: {
|
|
4730
|
+
id: string;
|
|
4731
|
+
serviceId: string;
|
|
4732
|
+
languageTag: string;
|
|
4733
|
+
name: string;
|
|
4734
|
+
description: string | null;
|
|
4735
|
+
notes: string | null;
|
|
4736
|
+
createdAt: string;
|
|
4737
|
+
updatedAt: string;
|
|
4738
|
+
}[];
|
|
4739
|
+
total: number;
|
|
4740
|
+
limit: number;
|
|
4741
|
+
offset: number;
|
|
4742
|
+
};
|
|
4743
|
+
outputFormat: "json";
|
|
4744
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4745
|
+
};
|
|
4746
|
+
};
|
|
4747
|
+
} & {
|
|
4748
|
+
"/:id/days/:dayId/services/:serviceId/translations": {
|
|
4749
|
+
$post: {
|
|
4750
|
+
input: {
|
|
4751
|
+
param: {
|
|
4752
|
+
id: string;
|
|
4753
|
+
} & {
|
|
4754
|
+
dayId: string;
|
|
4755
|
+
} & {
|
|
4756
|
+
serviceId: string;
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
output: {
|
|
4760
|
+
error: string;
|
|
4761
|
+
};
|
|
4762
|
+
outputFormat: "json";
|
|
4763
|
+
status: 404;
|
|
4764
|
+
} | {
|
|
4765
|
+
input: {
|
|
4766
|
+
param: {
|
|
4767
|
+
id: string;
|
|
4768
|
+
} & {
|
|
4769
|
+
dayId: string;
|
|
4770
|
+
} & {
|
|
4771
|
+
serviceId: string;
|
|
4772
|
+
};
|
|
4773
|
+
};
|
|
4774
|
+
output: {
|
|
4775
|
+
data: {
|
|
4776
|
+
id: string;
|
|
4777
|
+
name: string;
|
|
4778
|
+
createdAt: string;
|
|
4779
|
+
description: string | null;
|
|
4780
|
+
updatedAt: string;
|
|
4781
|
+
languageTag: string;
|
|
4782
|
+
notes: string | null;
|
|
4783
|
+
serviceId: string;
|
|
4784
|
+
};
|
|
4785
|
+
};
|
|
4786
|
+
outputFormat: "json";
|
|
4787
|
+
status: 201;
|
|
4788
|
+
};
|
|
4789
|
+
};
|
|
4790
|
+
} & {
|
|
4791
|
+
"/:id/days/:dayId/services/:serviceId/translations/:translationId": {
|
|
4792
|
+
$patch: {
|
|
4793
|
+
input: {
|
|
4794
|
+
param: {
|
|
4795
|
+
id: string;
|
|
4796
|
+
} & {
|
|
4797
|
+
dayId: string;
|
|
4798
|
+
} & {
|
|
4799
|
+
serviceId: string;
|
|
4800
|
+
} & {
|
|
4801
|
+
translationId: string;
|
|
4802
|
+
};
|
|
4803
|
+
};
|
|
4804
|
+
output: {
|
|
4805
|
+
error: string;
|
|
4806
|
+
};
|
|
4807
|
+
outputFormat: "json";
|
|
4808
|
+
status: 404;
|
|
4809
|
+
} | {
|
|
4810
|
+
input: {
|
|
4811
|
+
param: {
|
|
4812
|
+
id: string;
|
|
4813
|
+
} & {
|
|
4814
|
+
dayId: string;
|
|
4815
|
+
} & {
|
|
4816
|
+
serviceId: string;
|
|
4817
|
+
} & {
|
|
4818
|
+
translationId: string;
|
|
4819
|
+
};
|
|
4820
|
+
};
|
|
4821
|
+
output: {
|
|
4822
|
+
data: {
|
|
4823
|
+
id: string;
|
|
4824
|
+
serviceId: string;
|
|
4825
|
+
languageTag: string;
|
|
4826
|
+
name: string;
|
|
4827
|
+
description: string | null;
|
|
4828
|
+
notes: string | null;
|
|
4829
|
+
createdAt: string;
|
|
4830
|
+
updatedAt: string;
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
outputFormat: "json";
|
|
4834
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4835
|
+
};
|
|
4836
|
+
};
|
|
4837
|
+
} & {
|
|
4838
|
+
"/:id/days/:dayId/services/:serviceId/translations/:translationId": {
|
|
4839
|
+
$delete: {
|
|
4840
|
+
input: {
|
|
4841
|
+
param: {
|
|
4842
|
+
id: string;
|
|
4843
|
+
} & {
|
|
4844
|
+
dayId: string;
|
|
4845
|
+
} & {
|
|
4846
|
+
serviceId: string;
|
|
4847
|
+
} & {
|
|
4848
|
+
translationId: string;
|
|
4849
|
+
};
|
|
4850
|
+
};
|
|
4851
|
+
output: {
|
|
4852
|
+
error: string;
|
|
4853
|
+
};
|
|
4854
|
+
outputFormat: "json";
|
|
4855
|
+
status: 404;
|
|
4856
|
+
} | {
|
|
4857
|
+
input: {
|
|
4858
|
+
param: {
|
|
4859
|
+
id: string;
|
|
4860
|
+
} & {
|
|
4861
|
+
dayId: string;
|
|
4862
|
+
} & {
|
|
4863
|
+
serviceId: string;
|
|
4864
|
+
} & {
|
|
4865
|
+
translationId: string;
|
|
4866
|
+
};
|
|
4867
|
+
};
|
|
4868
|
+
output: {
|
|
4869
|
+
success: true;
|
|
4870
|
+
};
|
|
4871
|
+
outputFormat: "json";
|
|
4872
|
+
status: 200;
|
|
4873
|
+
};
|
|
4874
|
+
};
|
|
4577
4875
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
4578
4876
|
"/:id/categories": {
|
|
4579
4877
|
$get: {
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAazC,YAAY,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAKzC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,KAEjC,GAAG;IACD,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACrC,GAAG,CAAC,EAAE,QAAQ,CAAA;IACd,GAAG,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,EACD,MAAM,MAAM,OAAO,CAAC,IAAI,CAAC,mBAqB5B;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAaM,CAAA;AAEhC,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
package/dist/routes.js
CHANGED
|
@@ -5,6 +5,7 @@ import { productCatalogRoutes } from "./routes-catalog.js";
|
|
|
5
5
|
import { productConfigurationRoutes } from "./routes-configuration.js";
|
|
6
6
|
import { productCoreRoutes } from "./routes-core.js";
|
|
7
7
|
import { productItineraryRoutes } from "./routes-itinerary.js";
|
|
8
|
+
import { productItineraryTranslationRoutes } from "./routes-itinerary-translations.js";
|
|
8
9
|
import { productMaintenanceRoutes } from "./routes-maintenance.js";
|
|
9
10
|
import { productMediaRoutes } from "./routes-media.js";
|
|
10
11
|
import { productMerchandisingRoutes } from "./routes-merchandising.js";
|
|
@@ -59,6 +60,7 @@ export const productRoutes = new Hono()
|
|
|
59
60
|
.route("/", productCatalogRoutes)
|
|
60
61
|
.route("/", productMediaRoutes)
|
|
61
62
|
.route("/", productItineraryRoutes)
|
|
63
|
+
.route("/", productItineraryTranslationRoutes)
|
|
62
64
|
.route("/", productAssociationRoutes)
|
|
63
65
|
.route("/", productMaintenanceRoutes)
|
|
64
66
|
.route("/", productCoreRoutes);
|
|
@@ -126,6 +126,117 @@ export declare const productItineraries: import("drizzle-orm/pg-core").PgTableWi
|
|
|
126
126
|
}>;
|
|
127
127
|
export type ProductItinerary = typeof productItineraries.$inferSelect;
|
|
128
128
|
export type NewProductItinerary = typeof productItineraries.$inferInsert;
|
|
129
|
+
export declare const productItineraryTranslations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
130
|
+
name: "product_itinerary_translations";
|
|
131
|
+
schema: undefined;
|
|
132
|
+
columns: {
|
|
133
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
134
|
+
name: string;
|
|
135
|
+
tableName: "product_itinerary_translations";
|
|
136
|
+
dataType: "string";
|
|
137
|
+
columnType: "PgText";
|
|
138
|
+
data: string;
|
|
139
|
+
driverParam: string;
|
|
140
|
+
notNull: true;
|
|
141
|
+
hasDefault: true;
|
|
142
|
+
isPrimaryKey: true;
|
|
143
|
+
isAutoincrement: false;
|
|
144
|
+
hasRuntimeDefault: true;
|
|
145
|
+
enumValues: [string, ...string[]];
|
|
146
|
+
baseColumn: never;
|
|
147
|
+
identity: undefined;
|
|
148
|
+
generated: undefined;
|
|
149
|
+
}, {}, {}>;
|
|
150
|
+
itineraryId: import("drizzle-orm/pg-core").PgColumn<{
|
|
151
|
+
name: string;
|
|
152
|
+
tableName: "product_itinerary_translations";
|
|
153
|
+
dataType: "string";
|
|
154
|
+
columnType: "PgText";
|
|
155
|
+
data: string;
|
|
156
|
+
driverParam: string;
|
|
157
|
+
notNull: true;
|
|
158
|
+
hasDefault: false;
|
|
159
|
+
isPrimaryKey: false;
|
|
160
|
+
isAutoincrement: false;
|
|
161
|
+
hasRuntimeDefault: false;
|
|
162
|
+
enumValues: [string, ...string[]];
|
|
163
|
+
baseColumn: never;
|
|
164
|
+
identity: undefined;
|
|
165
|
+
generated: undefined;
|
|
166
|
+
}, {}, {}>;
|
|
167
|
+
languageTag: import("drizzle-orm/pg-core").PgColumn<{
|
|
168
|
+
name: "language_tag";
|
|
169
|
+
tableName: "product_itinerary_translations";
|
|
170
|
+
dataType: "string";
|
|
171
|
+
columnType: "PgText";
|
|
172
|
+
data: string;
|
|
173
|
+
driverParam: string;
|
|
174
|
+
notNull: true;
|
|
175
|
+
hasDefault: false;
|
|
176
|
+
isPrimaryKey: false;
|
|
177
|
+
isAutoincrement: false;
|
|
178
|
+
hasRuntimeDefault: false;
|
|
179
|
+
enumValues: [string, ...string[]];
|
|
180
|
+
baseColumn: never;
|
|
181
|
+
identity: undefined;
|
|
182
|
+
generated: undefined;
|
|
183
|
+
}, {}, {}>;
|
|
184
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
185
|
+
name: "name";
|
|
186
|
+
tableName: "product_itinerary_translations";
|
|
187
|
+
dataType: "string";
|
|
188
|
+
columnType: "PgText";
|
|
189
|
+
data: string;
|
|
190
|
+
driverParam: string;
|
|
191
|
+
notNull: true;
|
|
192
|
+
hasDefault: false;
|
|
193
|
+
isPrimaryKey: false;
|
|
194
|
+
isAutoincrement: false;
|
|
195
|
+
hasRuntimeDefault: false;
|
|
196
|
+
enumValues: [string, ...string[]];
|
|
197
|
+
baseColumn: never;
|
|
198
|
+
identity: undefined;
|
|
199
|
+
generated: undefined;
|
|
200
|
+
}, {}, {}>;
|
|
201
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
202
|
+
name: "created_at";
|
|
203
|
+
tableName: "product_itinerary_translations";
|
|
204
|
+
dataType: "date";
|
|
205
|
+
columnType: "PgTimestamp";
|
|
206
|
+
data: Date;
|
|
207
|
+
driverParam: string;
|
|
208
|
+
notNull: true;
|
|
209
|
+
hasDefault: true;
|
|
210
|
+
isPrimaryKey: false;
|
|
211
|
+
isAutoincrement: false;
|
|
212
|
+
hasRuntimeDefault: false;
|
|
213
|
+
enumValues: undefined;
|
|
214
|
+
baseColumn: never;
|
|
215
|
+
identity: undefined;
|
|
216
|
+
generated: undefined;
|
|
217
|
+
}, {}, {}>;
|
|
218
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
219
|
+
name: "updated_at";
|
|
220
|
+
tableName: "product_itinerary_translations";
|
|
221
|
+
dataType: "date";
|
|
222
|
+
columnType: "PgTimestamp";
|
|
223
|
+
data: Date;
|
|
224
|
+
driverParam: string;
|
|
225
|
+
notNull: true;
|
|
226
|
+
hasDefault: true;
|
|
227
|
+
isPrimaryKey: false;
|
|
228
|
+
isAutoincrement: false;
|
|
229
|
+
hasRuntimeDefault: false;
|
|
230
|
+
enumValues: undefined;
|
|
231
|
+
baseColumn: never;
|
|
232
|
+
identity: undefined;
|
|
233
|
+
generated: undefined;
|
|
234
|
+
}, {}, {}>;
|
|
235
|
+
};
|
|
236
|
+
dialect: "pg";
|
|
237
|
+
}>;
|
|
238
|
+
export type ProductItineraryTranslation = typeof productItineraryTranslations.$inferSelect;
|
|
239
|
+
export type NewProductItineraryTranslation = typeof productItineraryTranslations.$inferInsert;
|
|
129
240
|
export declare const productDays: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
130
241
|
name: "product_days";
|
|
131
242
|
schema: undefined;
|
|
@@ -646,6 +757,151 @@ export declare const productDayServices: import("drizzle-orm/pg-core").PgTableWi
|
|
|
646
757
|
}>;
|
|
647
758
|
export type ProductDayService = typeof productDayServices.$inferSelect;
|
|
648
759
|
export type NewProductDayService = typeof productDayServices.$inferInsert;
|
|
760
|
+
export declare const productDayServiceTranslations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
761
|
+
name: "product_day_service_translations";
|
|
762
|
+
schema: undefined;
|
|
763
|
+
columns: {
|
|
764
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
765
|
+
name: string;
|
|
766
|
+
tableName: "product_day_service_translations";
|
|
767
|
+
dataType: "string";
|
|
768
|
+
columnType: "PgText";
|
|
769
|
+
data: string;
|
|
770
|
+
driverParam: string;
|
|
771
|
+
notNull: true;
|
|
772
|
+
hasDefault: true;
|
|
773
|
+
isPrimaryKey: true;
|
|
774
|
+
isAutoincrement: false;
|
|
775
|
+
hasRuntimeDefault: true;
|
|
776
|
+
enumValues: [string, ...string[]];
|
|
777
|
+
baseColumn: never;
|
|
778
|
+
identity: undefined;
|
|
779
|
+
generated: undefined;
|
|
780
|
+
}, {}, {}>;
|
|
781
|
+
serviceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
782
|
+
name: string;
|
|
783
|
+
tableName: "product_day_service_translations";
|
|
784
|
+
dataType: "string";
|
|
785
|
+
columnType: "PgText";
|
|
786
|
+
data: string;
|
|
787
|
+
driverParam: string;
|
|
788
|
+
notNull: true;
|
|
789
|
+
hasDefault: false;
|
|
790
|
+
isPrimaryKey: false;
|
|
791
|
+
isAutoincrement: false;
|
|
792
|
+
hasRuntimeDefault: false;
|
|
793
|
+
enumValues: [string, ...string[]];
|
|
794
|
+
baseColumn: never;
|
|
795
|
+
identity: undefined;
|
|
796
|
+
generated: undefined;
|
|
797
|
+
}, {}, {}>;
|
|
798
|
+
languageTag: import("drizzle-orm/pg-core").PgColumn<{
|
|
799
|
+
name: "language_tag";
|
|
800
|
+
tableName: "product_day_service_translations";
|
|
801
|
+
dataType: "string";
|
|
802
|
+
columnType: "PgText";
|
|
803
|
+
data: string;
|
|
804
|
+
driverParam: string;
|
|
805
|
+
notNull: true;
|
|
806
|
+
hasDefault: false;
|
|
807
|
+
isPrimaryKey: false;
|
|
808
|
+
isAutoincrement: false;
|
|
809
|
+
hasRuntimeDefault: false;
|
|
810
|
+
enumValues: [string, ...string[]];
|
|
811
|
+
baseColumn: never;
|
|
812
|
+
identity: undefined;
|
|
813
|
+
generated: undefined;
|
|
814
|
+
}, {}, {}>;
|
|
815
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
816
|
+
name: "name";
|
|
817
|
+
tableName: "product_day_service_translations";
|
|
818
|
+
dataType: "string";
|
|
819
|
+
columnType: "PgText";
|
|
820
|
+
data: string;
|
|
821
|
+
driverParam: string;
|
|
822
|
+
notNull: true;
|
|
823
|
+
hasDefault: false;
|
|
824
|
+
isPrimaryKey: false;
|
|
825
|
+
isAutoincrement: false;
|
|
826
|
+
hasRuntimeDefault: false;
|
|
827
|
+
enumValues: [string, ...string[]];
|
|
828
|
+
baseColumn: never;
|
|
829
|
+
identity: undefined;
|
|
830
|
+
generated: undefined;
|
|
831
|
+
}, {}, {}>;
|
|
832
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
833
|
+
name: "description";
|
|
834
|
+
tableName: "product_day_service_translations";
|
|
835
|
+
dataType: "string";
|
|
836
|
+
columnType: "PgText";
|
|
837
|
+
data: string;
|
|
838
|
+
driverParam: string;
|
|
839
|
+
notNull: false;
|
|
840
|
+
hasDefault: false;
|
|
841
|
+
isPrimaryKey: false;
|
|
842
|
+
isAutoincrement: false;
|
|
843
|
+
hasRuntimeDefault: false;
|
|
844
|
+
enumValues: [string, ...string[]];
|
|
845
|
+
baseColumn: never;
|
|
846
|
+
identity: undefined;
|
|
847
|
+
generated: undefined;
|
|
848
|
+
}, {}, {}>;
|
|
849
|
+
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
850
|
+
name: "notes";
|
|
851
|
+
tableName: "product_day_service_translations";
|
|
852
|
+
dataType: "string";
|
|
853
|
+
columnType: "PgText";
|
|
854
|
+
data: string;
|
|
855
|
+
driverParam: string;
|
|
856
|
+
notNull: false;
|
|
857
|
+
hasDefault: false;
|
|
858
|
+
isPrimaryKey: false;
|
|
859
|
+
isAutoincrement: false;
|
|
860
|
+
hasRuntimeDefault: false;
|
|
861
|
+
enumValues: [string, ...string[]];
|
|
862
|
+
baseColumn: never;
|
|
863
|
+
identity: undefined;
|
|
864
|
+
generated: undefined;
|
|
865
|
+
}, {}, {}>;
|
|
866
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
867
|
+
name: "created_at";
|
|
868
|
+
tableName: "product_day_service_translations";
|
|
869
|
+
dataType: "date";
|
|
870
|
+
columnType: "PgTimestamp";
|
|
871
|
+
data: Date;
|
|
872
|
+
driverParam: string;
|
|
873
|
+
notNull: true;
|
|
874
|
+
hasDefault: true;
|
|
875
|
+
isPrimaryKey: false;
|
|
876
|
+
isAutoincrement: false;
|
|
877
|
+
hasRuntimeDefault: false;
|
|
878
|
+
enumValues: undefined;
|
|
879
|
+
baseColumn: never;
|
|
880
|
+
identity: undefined;
|
|
881
|
+
generated: undefined;
|
|
882
|
+
}, {}, {}>;
|
|
883
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
884
|
+
name: "updated_at";
|
|
885
|
+
tableName: "product_day_service_translations";
|
|
886
|
+
dataType: "date";
|
|
887
|
+
columnType: "PgTimestamp";
|
|
888
|
+
data: Date;
|
|
889
|
+
driverParam: string;
|
|
890
|
+
notNull: true;
|
|
891
|
+
hasDefault: true;
|
|
892
|
+
isPrimaryKey: false;
|
|
893
|
+
isAutoincrement: false;
|
|
894
|
+
hasRuntimeDefault: false;
|
|
895
|
+
enumValues: undefined;
|
|
896
|
+
baseColumn: never;
|
|
897
|
+
identity: undefined;
|
|
898
|
+
generated: undefined;
|
|
899
|
+
}, {}, {}>;
|
|
900
|
+
};
|
|
901
|
+
dialect: "pg";
|
|
902
|
+
}>;
|
|
903
|
+
export type ProductDayServiceTranslation = typeof productDayServiceTranslations.$inferSelect;
|
|
904
|
+
export type NewProductDayServiceTranslation = typeof productDayServiceTranslations.$inferInsert;
|
|
649
905
|
export declare const productVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
650
906
|
name: "product_versions";
|
|
651
907
|
schema: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-itinerary.d.ts","sourceRoot":"","sources":["../src/schema-itinerary.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AAExE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,YAAY,CAAA;AACxD,MAAM,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDxB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA;AAC3D,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA"}
|
package/dist/schema-itinerary.js
CHANGED
|
@@ -22,6 +22,20 @@ export const productItineraries = pgTable("product_itineraries", {
|
|
|
22
22
|
// agent-quality: raw-sql reviewed -- owner: inventory; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
|
|
23
23
|
.where(sql `${table.isDefault} = true`),
|
|
24
24
|
]);
|
|
25
|
+
export const productItineraryTranslations = pgTable("product_itinerary_translations", {
|
|
26
|
+
id: typeId("product_itinerary_translations"),
|
|
27
|
+
itineraryId: typeIdRef("itinerary_id")
|
|
28
|
+
.notNull()
|
|
29
|
+
.references(() => productItineraries.id, { onDelete: "cascade" }),
|
|
30
|
+
languageTag: text("language_tag").notNull(),
|
|
31
|
+
name: text("name").notNull(),
|
|
32
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
33
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
34
|
+
}, (table) => [
|
|
35
|
+
index("idx_product_itinerary_translations_itinerary").on(table.itineraryId),
|
|
36
|
+
index("idx_product_itinerary_translations_language").on(table.languageTag),
|
|
37
|
+
uniqueIndex("uidx_product_itinerary_translations_itinerary_language").on(table.itineraryId, table.languageTag),
|
|
38
|
+
]);
|
|
25
39
|
export const productDays = pgTable("product_days", {
|
|
26
40
|
id: typeId("product_days"),
|
|
27
41
|
itineraryId: typeIdRef("itinerary_id")
|
|
@@ -74,6 +88,22 @@ export const productDayServices = pgTable("product_day_services", {
|
|
|
74
88
|
index("idx_product_day_services_day_sort").on(table.dayId, table.sortOrder),
|
|
75
89
|
index("idx_product_day_services_supplier_service").on(table.supplierServiceId),
|
|
76
90
|
]);
|
|
91
|
+
export const productDayServiceTranslations = pgTable("product_day_service_translations", {
|
|
92
|
+
id: typeId("product_day_service_translations"),
|
|
93
|
+
serviceId: typeIdRef("service_id")
|
|
94
|
+
.notNull()
|
|
95
|
+
.references(() => productDayServices.id, { onDelete: "cascade" }),
|
|
96
|
+
languageTag: text("language_tag").notNull(),
|
|
97
|
+
name: text("name").notNull(),
|
|
98
|
+
description: text("description"),
|
|
99
|
+
notes: text("notes"),
|
|
100
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
102
|
+
}, (table) => [
|
|
103
|
+
index("idx_product_day_service_translations_service").on(table.serviceId),
|
|
104
|
+
index("idx_product_day_service_translations_language").on(table.languageTag),
|
|
105
|
+
uniqueIndex("uidx_product_day_service_translations_service_language").on(table.serviceId, table.languageTag),
|
|
106
|
+
]);
|
|
77
107
|
export const productVersions = pgTable("product_versions", {
|
|
78
108
|
id: typeId("product_versions"),
|
|
79
109
|
productId: typeIdRef("product_id")
|