@voyantjs/extras 0.6.7 → 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.d.ts.map +1 -1
- package/dist/schema.js +12 -9
- package/package.json +6 -6
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,sBAAsB,mGAKjC,CAAA;AAEF,eAAO,MAAM,oBAAoB,yHAO/B,CAAA;AAEF,eAAO,MAAM,sBAAsB,oGAMjC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,sBAAsB,mGAKjC,CAAA;AAEF,eAAO,MAAM,oBAAoB,yHAO/B,CAAA;AAEF,eAAO,MAAM,sBAAsB,oGAMjC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAa,CAAC,YAAY,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAE/D,eAAO,MAAM,sBAAsB;;;EAGhC,CAAA;AAEH,eAAO,MAAM,2BAA2B;;;EAMrC,CAAA;AAEH,eAAO,MAAM,sBAAsB;;;EAShC,CAAA"}
|
package/dist/schema.js
CHANGED
|
@@ -40,8 +40,9 @@ export const productExtras = pgTable("product_extras", {
|
|
|
40
40
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
41
41
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
42
42
|
}, (table) => [
|
|
43
|
-
index("
|
|
44
|
-
index("
|
|
43
|
+
index("idx_product_extras_sort_name").on(table.sortOrder, table.name),
|
|
44
|
+
index("idx_product_extras_product_sort_name").on(table.productId, table.sortOrder, table.name),
|
|
45
|
+
index("idx_product_extras_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
45
46
|
uniqueIndex("uidx_product_extras_product_code").on(table.productId, table.code),
|
|
46
47
|
]);
|
|
47
48
|
export const optionExtraConfigs = pgTable("option_extra_configs", {
|
|
@@ -64,9 +65,10 @@ export const optionExtraConfigs = pgTable("option_extra_configs", {
|
|
|
64
65
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
65
66
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
66
67
|
}, (table) => [
|
|
67
|
-
index("
|
|
68
|
-
index("
|
|
69
|
-
index("
|
|
68
|
+
index("idx_option_extra_configs_sort_default").on(table.sortOrder, table.isDefault),
|
|
69
|
+
index("idx_option_extra_configs_option_sort_default").on(table.optionId, table.sortOrder, table.isDefault),
|
|
70
|
+
index("idx_option_extra_configs_extra_sort_default").on(table.productExtraId, table.sortOrder, table.isDefault),
|
|
71
|
+
index("idx_option_extra_configs_active_sort_default").on(table.active, table.sortOrder, table.isDefault),
|
|
70
72
|
uniqueIndex("uidx_option_extra_configs_option_extra").on(table.optionId, table.productExtraId),
|
|
71
73
|
]);
|
|
72
74
|
export const bookingExtras = pgTable("booking_extras", {
|
|
@@ -95,10 +97,11 @@ export const bookingExtras = pgTable("booking_extras", {
|
|
|
95
97
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
96
98
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
97
99
|
}, (table) => [
|
|
98
|
-
index("
|
|
99
|
-
index("
|
|
100
|
-
index("
|
|
101
|
-
index("
|
|
100
|
+
index("idx_booking_extras_updated").on(table.updatedAt),
|
|
101
|
+
index("idx_booking_extras_booking_updated").on(table.bookingId, table.updatedAt),
|
|
102
|
+
index("idx_booking_extras_product_extra_updated").on(table.productExtraId, table.updatedAt),
|
|
103
|
+
index("idx_booking_extras_option_extra_config_updated").on(table.optionExtraConfigId, table.updatedAt),
|
|
104
|
+
index("idx_booking_extras_status_updated").on(table.status, table.updatedAt),
|
|
102
105
|
]);
|
|
103
106
|
export const productExtrasRelations = relations(productExtras, ({ many }) => ({
|
|
104
107
|
optionConfigs: many(optionExtraConfigs),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/extras",
|
|
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": {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"hono": "^4.12.10",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@voyantjs/core": "0.6.
|
|
29
|
-
"@voyantjs/db": "0.6.
|
|
30
|
-
"@voyantjs/hono": "0.6.
|
|
28
|
+
"@voyantjs/core": "0.6.8",
|
|
29
|
+
"@voyantjs/db": "0.6.8",
|
|
30
|
+
"@voyantjs/hono": "0.6.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "^6.0.2",
|
|
34
|
-
"@voyantjs/bookings": "0.6.
|
|
35
|
-
"@voyantjs/products": "0.6.
|
|
34
|
+
"@voyantjs/bookings": "0.6.8",
|
|
35
|
+
"@voyantjs/products": "0.6.8",
|
|
36
36
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|