@voyantjs/products 0.6.5 → 0.6.8
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/schema-core.d.ts.map +1 -1
- package/dist/schema-core.js +10 -0
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +16 -3
- package/dist/schema-settings.d.ts.map +1 -1
- package/dist/schema-settings.js +40 -3
- package/dist/schema-taxonomy.d.ts.map +1 -1
- package/dist/schema-taxonomy.js +14 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-core.d.ts","sourceRoot":"","sources":["../src/schema-core.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-core.d.ts","sourceRoot":"","sources":["../src/schema-core.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO,WAAW,CAAC,YAAY,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,WAAW,CAAC,YAAY,CAAA"}
|
package/dist/schema-core.js
CHANGED
|
@@ -28,6 +28,14 @@ export const products = pgTable("products", {
|
|
|
28
28
|
index("idx_products_status").on(table.status),
|
|
29
29
|
index("idx_products_facility").on(table.facilityId),
|
|
30
30
|
index("idx_products_product_type").on(table.productTypeId),
|
|
31
|
+
index("idx_products_status_created").on(table.status, table.createdAt),
|
|
32
|
+
index("idx_products_booking_mode_created").on(table.bookingMode, table.createdAt),
|
|
33
|
+
index("idx_products_capacity_mode_created").on(table.capacityMode, table.createdAt),
|
|
34
|
+
index("idx_products_visibility_created").on(table.visibility, table.createdAt),
|
|
35
|
+
index("idx_products_activated_created").on(table.activated, table.createdAt),
|
|
36
|
+
index("idx_products_facility_created").on(table.facilityId, table.createdAt),
|
|
37
|
+
index("idx_products_product_type_created").on(table.productTypeId, table.createdAt),
|
|
38
|
+
index("idx_products_public_created").on(table.status, table.activated, table.visibility, table.createdAt),
|
|
31
39
|
]);
|
|
32
40
|
export const productOptions = pgTable("product_options", {
|
|
33
41
|
id: typeId("product_options"),
|
|
@@ -46,6 +54,7 @@ export const productOptions = pgTable("product_options", {
|
|
|
46
54
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
47
55
|
}, (table) => [
|
|
48
56
|
index("idx_product_options_product").on(table.productId),
|
|
57
|
+
index("idx_product_options_product_sort").on(table.productId, table.sortOrder, table.createdAt),
|
|
49
58
|
index("idx_product_options_status").on(table.status),
|
|
50
59
|
index("idx_product_options_default").on(table.isDefault),
|
|
51
60
|
uniqueIndex("uidx_product_options_product_code").on(table.productId, table.code),
|
|
@@ -72,6 +81,7 @@ export const optionUnits = pgTable("option_units", {
|
|
|
72
81
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
73
82
|
}, (table) => [
|
|
74
83
|
index("idx_option_units_option").on(table.optionId),
|
|
84
|
+
index("idx_option_units_option_sort").on(table.optionId, table.sortOrder, table.createdAt),
|
|
75
85
|
index("idx_option_units_type").on(table.unitType),
|
|
76
86
|
uniqueIndex("uidx_option_units_option_code").on(table.optionId, table.code),
|
|
77
87
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-itinerary.d.ts","sourceRoot":"","sources":["../src/schema-itinerary.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-itinerary.d.ts","sourceRoot":"","sources":["../src/schema-itinerary.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,YAAY,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,WAAW,CAAC,YAAY,CAAA;AAE3D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB9B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAA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|
|
13
13
|
location: text("location"),
|
|
14
14
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
15
15
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
16
|
-
}, (table) => [
|
|
16
|
+
}, (table) => [
|
|
17
|
+
index("idx_product_days_product").on(table.productId),
|
|
18
|
+
index("idx_product_days_product_day_number").on(table.productId, table.dayNumber),
|
|
19
|
+
]);
|
|
17
20
|
export const productDayServices = pgTable("product_day_services", {
|
|
18
21
|
id: typeId("product_day_services"),
|
|
19
22
|
dayId: typeIdRef("day_id")
|
|
@@ -31,6 +34,7 @@ export const productDayServices = pgTable("product_day_services", {
|
|
|
31
34
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
32
35
|
}, (table) => [
|
|
33
36
|
index("idx_product_day_services_day").on(table.dayId),
|
|
37
|
+
index("idx_product_day_services_day_sort").on(table.dayId, table.sortOrder),
|
|
34
38
|
index("idx_product_day_services_supplier_service").on(table.supplierServiceId),
|
|
35
39
|
]);
|
|
36
40
|
export const productVersions = pgTable("product_versions", {
|
|
@@ -43,7 +47,10 @@ export const productVersions = pgTable("product_versions", {
|
|
|
43
47
|
authorId: text("author_id").notNull(),
|
|
44
48
|
notes: text("notes"),
|
|
45
49
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
46
|
-
}, (table) => [
|
|
50
|
+
}, (table) => [
|
|
51
|
+
index("idx_product_versions_product").on(table.productId),
|
|
52
|
+
index("idx_product_versions_product_version").on(table.productId, table.versionNumber),
|
|
53
|
+
]);
|
|
47
54
|
export const productNotes = pgTable("product_notes", {
|
|
48
55
|
id: typeId("product_notes"),
|
|
49
56
|
productId: typeIdRef("product_id")
|
|
@@ -52,7 +59,10 @@ export const productNotes = pgTable("product_notes", {
|
|
|
52
59
|
authorId: text("author_id").notNull(),
|
|
53
60
|
content: text("content").notNull(),
|
|
54
61
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
55
|
-
}, (table) => [
|
|
62
|
+
}, (table) => [
|
|
63
|
+
index("idx_product_notes_product").on(table.productId),
|
|
64
|
+
index("idx_product_notes_product_created").on(table.productId, table.createdAt),
|
|
65
|
+
]);
|
|
56
66
|
export const productMedia = pgTable("product_media", {
|
|
57
67
|
id: typeId("product_media"),
|
|
58
68
|
productId: typeIdRef("product_id")
|
|
@@ -77,4 +87,7 @@ export const productMedia = pgTable("product_media", {
|
|
|
77
87
|
index("idx_product_media_product").on(table.productId),
|
|
78
88
|
index("idx_product_media_day").on(table.dayId),
|
|
79
89
|
index("idx_product_media_product_day").on(table.productId, table.dayId),
|
|
90
|
+
index("idx_product_media_product_cover_sort").on(table.productId, table.isCover, table.sortOrder, table.createdAt),
|
|
91
|
+
index("idx_product_media_product_day_cover_sort").on(table.productId, table.dayId, table.isCover, table.sortOrder, table.createdAt),
|
|
92
|
+
index("idx_product_media_product_brochure_current_version").on(table.productId, table.isBrochure, table.dayId, table.isBrochureCurrent, table.brochureVersion, table.updatedAt, table.createdAt),
|
|
80
93
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-settings.d.ts","sourceRoot":"","sources":["../src/schema-settings.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-settings.d.ts","sourceRoot":"","sources":["../src/schema-settings.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,MAAM,wBAAwB,GAAG,OAAO,sBAAsB,CAAC,YAAY,CAAA"}
|
package/dist/schema-settings.js
CHANGED
|
@@ -16,7 +16,9 @@ export const productActivationSettings = pgTable("product_activation_settings",
|
|
|
16
16
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
17
17
|
}, (table) => [
|
|
18
18
|
uniqueIndex("uidx_product_activation_settings_product").on(table.productId),
|
|
19
|
+
index("idx_product_activation_settings_created").on(table.createdAt),
|
|
19
20
|
index("idx_product_activation_settings_mode").on(table.activationMode),
|
|
21
|
+
index("idx_product_activation_settings_mode_created").on(table.activationMode, table.createdAt),
|
|
20
22
|
]);
|
|
21
23
|
export const productTicketSettings = pgTable("product_ticket_settings", {
|
|
22
24
|
id: typeId("product_ticket_settings"),
|
|
@@ -33,7 +35,11 @@ export const productTicketSettings = pgTable("product_ticket_settings", {
|
|
|
33
35
|
ticketMessage: text("ticket_message"),
|
|
34
36
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
35
37
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
36
|
-
}, (table) => [
|
|
38
|
+
}, (table) => [
|
|
39
|
+
uniqueIndex("uidx_product_ticket_settings_product").on(table.productId),
|
|
40
|
+
index("idx_product_ticket_settings_created").on(table.createdAt),
|
|
41
|
+
index("idx_product_ticket_settings_fulfillment_created").on(table.fulfillmentMode, table.createdAt),
|
|
42
|
+
]);
|
|
37
43
|
export const productVisibilitySettings = pgTable("product_visibility_settings", {
|
|
38
44
|
id: typeId("product_visibility_settings"),
|
|
39
45
|
productId: typeIdRef("product_id")
|
|
@@ -45,7 +51,13 @@ export const productVisibilitySettings = pgTable("product_visibility_settings",
|
|
|
45
51
|
requiresAuthentication: boolean("requires_authentication").notNull().default(false),
|
|
46
52
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
47
53
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
48
|
-
}, (table) => [
|
|
54
|
+
}, (table) => [
|
|
55
|
+
uniqueIndex("uidx_product_visibility_settings_product").on(table.productId),
|
|
56
|
+
index("idx_product_visibility_settings_created").on(table.createdAt),
|
|
57
|
+
index("idx_product_visibility_settings_searchable_created").on(table.isSearchable, table.createdAt),
|
|
58
|
+
index("idx_product_visibility_settings_bookable_created").on(table.isBookable, table.createdAt),
|
|
59
|
+
index("idx_product_visibility_settings_featured_product").on(table.isFeatured, table.productId),
|
|
60
|
+
]);
|
|
49
61
|
export const productCapabilities = pgTable("product_capabilities", {
|
|
50
62
|
id: typeId("product_capabilities"),
|
|
51
63
|
productId: typeIdRef("product_id")
|
|
@@ -59,6 +71,8 @@ export const productCapabilities = pgTable("product_capabilities", {
|
|
|
59
71
|
}, (table) => [
|
|
60
72
|
index("idx_product_capabilities_product").on(table.productId),
|
|
61
73
|
index("idx_product_capabilities_capability").on(table.capability),
|
|
74
|
+
index("idx_product_capabilities_capability_created").on(table.capability, table.createdAt),
|
|
75
|
+
index("idx_product_capabilities_enabled_capability_created").on(table.enabled, table.capability, table.createdAt),
|
|
62
76
|
uniqueIndex("uidx_product_capabilities_product_capability").on(table.productId, table.capability),
|
|
63
77
|
]);
|
|
64
78
|
export const productDeliveryFormats = pgTable("product_delivery_formats", {
|
|
@@ -72,6 +86,9 @@ export const productDeliveryFormats = pgTable("product_delivery_formats", {
|
|
|
72
86
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
73
87
|
}, (table) => [
|
|
74
88
|
index("idx_product_delivery_formats_product").on(table.productId),
|
|
89
|
+
index("idx_product_delivery_formats_default_created").on(table.isDefault, table.createdAt),
|
|
90
|
+
index("idx_product_delivery_formats_product_default_created").on(table.productId, table.isDefault, table.createdAt),
|
|
91
|
+
index("idx_product_delivery_formats_format_default_created").on(table.format, table.isDefault, table.createdAt),
|
|
75
92
|
uniqueIndex("uidx_product_delivery_formats_product_format").on(table.productId, table.format),
|
|
76
93
|
]);
|
|
77
94
|
export const productFeatures = pgTable("product_features", {
|
|
@@ -87,7 +104,11 @@ export const productFeatures = pgTable("product_features", {
|
|
|
87
104
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
88
105
|
}, (table) => [
|
|
89
106
|
index("idx_product_features_product").on(table.productId),
|
|
107
|
+
index("idx_product_features_sort").on(table.sortOrder, table.createdAt),
|
|
108
|
+
index("idx_product_features_product_sort").on(table.productId, table.sortOrder, table.createdAt),
|
|
90
109
|
index("idx_product_features_type").on(table.featureType),
|
|
110
|
+
index("idx_product_features_type_sort").on(table.featureType, table.sortOrder, table.createdAt),
|
|
111
|
+
index("idx_product_features_product_type_sort").on(table.productId, table.featureType, table.sortOrder, table.createdAt),
|
|
91
112
|
]);
|
|
92
113
|
export const productFaqs = pgTable("product_faqs", {
|
|
93
114
|
id: typeId("product_faqs"),
|
|
@@ -99,7 +120,11 @@ export const productFaqs = pgTable("product_faqs", {
|
|
|
99
120
|
sortOrder: integer("sort_order").notNull().default(0),
|
|
100
121
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
122
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
102
|
-
}, (table) => [
|
|
123
|
+
}, (table) => [
|
|
124
|
+
index("idx_product_faqs_product").on(table.productId),
|
|
125
|
+
index("idx_product_faqs_sort").on(table.sortOrder, table.createdAt),
|
|
126
|
+
index("idx_product_faqs_product_sort").on(table.productId, table.sortOrder, table.createdAt),
|
|
127
|
+
]);
|
|
103
128
|
export const productLocations = pgTable("product_locations", {
|
|
104
129
|
id: typeId("product_locations"),
|
|
105
130
|
productId: typeIdRef("product_id")
|
|
@@ -120,7 +145,13 @@ export const productLocations = pgTable("product_locations", {
|
|
|
120
145
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
121
146
|
}, (table) => [
|
|
122
147
|
index("idx_product_locations_product").on(table.productId),
|
|
148
|
+
index("idx_product_locations_sort").on(table.sortOrder, table.createdAt),
|
|
149
|
+
index("idx_product_locations_product_sort").on(table.productId, table.sortOrder, table.createdAt),
|
|
123
150
|
index("idx_product_locations_type").on(table.locationType),
|
|
151
|
+
index("idx_product_locations_type_product").on(table.locationType, table.productId),
|
|
152
|
+
index("idx_product_locations_type_sort").on(table.locationType, table.sortOrder, table.createdAt),
|
|
153
|
+
index("idx_product_locations_product_type_sort").on(table.productId, table.locationType, table.sortOrder, table.createdAt),
|
|
154
|
+
index("idx_product_locations_country_product").on(table.countryCode, table.productId),
|
|
124
155
|
]);
|
|
125
156
|
export const productTranslations = pgTable("product_translations", {
|
|
126
157
|
id: typeId("product_translations"),
|
|
@@ -139,6 +170,8 @@ export const productTranslations = pgTable("product_translations", {
|
|
|
139
170
|
}, (table) => [
|
|
140
171
|
index("idx_product_translations_product").on(table.productId),
|
|
141
172
|
index("idx_product_translations_language").on(table.languageTag),
|
|
173
|
+
index("idx_product_translations_product_language_created").on(table.productId, table.languageTag, table.createdAt),
|
|
174
|
+
index("idx_product_translations_language_created").on(table.languageTag, table.createdAt),
|
|
142
175
|
uniqueIndex("uidx_product_translations_product_language").on(table.productId, table.languageTag),
|
|
143
176
|
]);
|
|
144
177
|
export const productOptionTranslations = pgTable("product_option_translations", {
|
|
@@ -155,6 +188,8 @@ export const productOptionTranslations = pgTable("product_option_translations",
|
|
|
155
188
|
}, (table) => [
|
|
156
189
|
index("idx_product_option_translations_option").on(table.optionId),
|
|
157
190
|
index("idx_product_option_translations_language").on(table.languageTag),
|
|
191
|
+
index("idx_product_option_translations_option_language_created").on(table.optionId, table.languageTag, table.createdAt),
|
|
192
|
+
index("idx_product_option_translations_language_created").on(table.languageTag, table.createdAt),
|
|
158
193
|
uniqueIndex("uidx_product_option_translations_option_language").on(table.optionId, table.languageTag),
|
|
159
194
|
]);
|
|
160
195
|
export const optionUnitTranslations = pgTable("option_unit_translations", {
|
|
@@ -171,5 +206,7 @@ export const optionUnitTranslations = pgTable("option_unit_translations", {
|
|
|
171
206
|
}, (table) => [
|
|
172
207
|
index("idx_option_unit_translations_unit").on(table.unitId),
|
|
173
208
|
index("idx_option_unit_translations_language").on(table.languageTag),
|
|
209
|
+
index("idx_option_unit_translations_unit_language_created").on(table.unitId, table.languageTag, table.createdAt),
|
|
210
|
+
index("idx_option_unit_translations_language_created").on(table.languageTag, table.createdAt),
|
|
174
211
|
uniqueIndex("uidx_option_unit_translations_unit_language").on(table.unitId, table.languageTag),
|
|
175
212
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-taxonomy.d.ts","sourceRoot":"","sources":["../src/schema-taxonomy.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-taxonomy.d.ts","sourceRoot":"","sources":["../src/schema-taxonomy.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBxB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA;AAE7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe9B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB/B,CAAA"}
|
package/dist/schema-taxonomy.js
CHANGED
|
@@ -14,6 +14,8 @@ export const productTypes = pgTable("product_types", {
|
|
|
14
14
|
}, (table) => [
|
|
15
15
|
uniqueIndex("uidx_product_types_code").on(table.code),
|
|
16
16
|
index("idx_product_types_active").on(table.active),
|
|
17
|
+
index("idx_product_types_sort_name").on(table.sortOrder, table.name),
|
|
18
|
+
index("idx_product_types_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
17
19
|
]);
|
|
18
20
|
export const productCategories = pgTable("product_categories", {
|
|
19
21
|
id: typeId("product_categories"),
|
|
@@ -30,6 +32,9 @@ export const productCategories = pgTable("product_categories", {
|
|
|
30
32
|
uniqueIndex("uidx_product_categories_slug").on(table.slug),
|
|
31
33
|
index("idx_product_categories_parent").on(table.parentId),
|
|
32
34
|
index("idx_product_categories_active").on(table.active),
|
|
35
|
+
index("idx_product_categories_sort_name").on(table.sortOrder, table.name),
|
|
36
|
+
index("idx_product_categories_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
37
|
+
index("idx_product_categories_parent_sort_name").on(table.parentId, table.sortOrder, table.name),
|
|
33
38
|
]);
|
|
34
39
|
export const productTags = pgTable("product_tags", {
|
|
35
40
|
id: typeId("product_tags"),
|
|
@@ -53,6 +58,10 @@ export const destinations = pgTable("destinations", {
|
|
|
53
58
|
uniqueIndex("uidx_destinations_code").on(table.code),
|
|
54
59
|
index("idx_destinations_parent").on(table.parentId),
|
|
55
60
|
index("idx_destinations_active").on(table.active),
|
|
61
|
+
index("idx_destinations_sort_slug").on(table.sortOrder, table.slug),
|
|
62
|
+
index("idx_destinations_active_sort_slug").on(table.active, table.sortOrder, table.slug),
|
|
63
|
+
index("idx_destinations_type_sort_slug").on(table.destinationType, table.sortOrder, table.slug),
|
|
64
|
+
index("idx_destinations_parent_sort_slug").on(table.parentId, table.sortOrder, table.slug),
|
|
56
65
|
]);
|
|
57
66
|
export const destinationTranslations = pgTable("destination_translations", {
|
|
58
67
|
id: typeId("destination_translations"),
|
|
@@ -69,6 +78,8 @@ export const destinationTranslations = pgTable("destination_translations", {
|
|
|
69
78
|
}, (table) => [
|
|
70
79
|
uniqueIndex("uidx_destination_translations_locale").on(table.destinationId, table.languageTag),
|
|
71
80
|
index("idx_destination_translations_language").on(table.languageTag),
|
|
81
|
+
index("idx_destination_translations_destination_language_created").on(table.destinationId, table.languageTag, table.createdAt),
|
|
82
|
+
index("idx_destination_translations_language_created").on(table.languageTag, table.createdAt),
|
|
72
83
|
]);
|
|
73
84
|
export const productCategoryProducts = pgTable("product_category_products", {
|
|
74
85
|
productId: typeIdRef("product_id")
|
|
@@ -82,6 +93,7 @@ export const productCategoryProducts = pgTable("product_category_products", {
|
|
|
82
93
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
83
94
|
}, (table) => [
|
|
84
95
|
primaryKey({ columns: [table.productId, table.categoryId] }),
|
|
96
|
+
index("idx_pcp_product_sort").on(table.productId, table.sortOrder),
|
|
85
97
|
index("idx_pcp_category").on(table.categoryId),
|
|
86
98
|
]);
|
|
87
99
|
export const productTagProducts = pgTable("product_tag_products", {
|
|
@@ -108,5 +120,6 @@ export const productDestinations = pgTable("product_destinations", {
|
|
|
108
120
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
109
121
|
}, (table) => [
|
|
110
122
|
primaryKey({ columns: [table.productId, table.destinationId] }),
|
|
111
|
-
index("
|
|
123
|
+
index("idx_product_destinations_product_sort").on(table.productId, table.sortOrder),
|
|
124
|
+
index("idx_product_destinations_destination_sort").on(table.destinationId, table.sortOrder),
|
|
112
125
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/products",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"hono": "^4.12.10",
|
|
43
43
|
"pdf-lib": "^1.17.1",
|
|
44
44
|
"zod": "^4.3.6",
|
|
45
|
-
"@voyantjs/core": "0.6.
|
|
46
|
-
"@voyantjs/db": "0.6.
|
|
47
|
-
"@voyantjs/hono": "0.6.
|
|
48
|
-
"@voyantjs/utils": "0.6.
|
|
49
|
-
"@voyantjs/voyant-storage": "0.6.
|
|
45
|
+
"@voyantjs/core": "0.6.8",
|
|
46
|
+
"@voyantjs/db": "0.6.8",
|
|
47
|
+
"@voyantjs/hono": "0.6.8",
|
|
48
|
+
"@voyantjs/utils": "0.6.8",
|
|
49
|
+
"@voyantjs/voyant-storage": "0.6.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^6.0.2",
|