@voyantjs/markets 0.6.7 → 0.6.9
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 +28 -19
- 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":"AAgBA,eAAO,MAAM,gBAAgB,0EAA8D,CAAA;AAC3F,eAAO,MAAM,oBAAoB,uEAA+D,CAAA;AAChG,eAAO,MAAM,qBAAqB,iFAIhC,CAAA;AACF,eAAO,MAAM,sBAAsB,yEAKjC,CAAA;AACF,eAAO,MAAM,gBAAgB,mGAO3B,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gBAAgB,0EAA8D,CAAA;AAC3F,eAAO,MAAM,oBAAoB,uEAA+D,CAAA;AAChG,eAAO,MAAM,qBAAqB,iFAIhC,CAAA;AACF,eAAO,MAAM,sBAAsB,yEAKjC,CAAA;AACF,eAAO,MAAM,gBAAgB,mGAO3B,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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M,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC/D,MAAM,MAAM,kBAAkB,GAAG,OAAO,mBAAmB,CAAC,YAAY,CAAA;AACxE,MAAM,MAAM,qBAAqB,GAAG,OAAO,mBAAmB,CAAC,YAAY,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACtE,MAAM,MAAM,oBAAoB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACzE,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACtE,MAAM,MAAM,oBAAoB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AAEzE,eAAO,MAAM,gBAAgB;;;;;;EAM1B,CAAA;AAEH,eAAO,MAAM,sBAAsB;;EAKhC,CAAA;AAEH,eAAO,MAAM,yBAAyB;;EAKnC,CAAA;AAEH,eAAO,MAAM,mBAAmB;;EAE7B,CAAA;AAEH,eAAO,MAAM,sBAAsB;;EAKhC,CAAA;AAEH,eAAO,MAAM,4BAA4B;;;;EAOtC,CAAA;AAEH,eAAO,MAAM,2BAA2B;;;EASrC,CAAA;AAEH,eAAO,MAAM,2BAA2B;;;EASrC,CAAA"}
|
package/dist/schema.js
CHANGED
|
@@ -38,8 +38,9 @@ export const markets = pgTable("markets", {
|
|
|
38
38
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
39
39
|
}, (table) => [
|
|
40
40
|
uniqueIndex("uidx_markets_code").on(table.code),
|
|
41
|
-
index("
|
|
42
|
-
index("
|
|
41
|
+
index("idx_markets_updated").on(table.updatedAt),
|
|
42
|
+
index("idx_markets_status_updated").on(table.status, table.updatedAt),
|
|
43
|
+
index("idx_markets_country_updated").on(table.countryCode, table.updatedAt),
|
|
43
44
|
]);
|
|
44
45
|
export const marketLocales = pgTable("market_locales", {
|
|
45
46
|
id: typeId("market_locales"),
|
|
@@ -53,8 +54,10 @@ export const marketLocales = pgTable("market_locales", {
|
|
|
53
54
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
54
55
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
55
56
|
}, (table) => [
|
|
56
|
-
index("
|
|
57
|
-
index("
|
|
57
|
+
index("idx_market_locales_sort_created").on(table.sortOrder, table.createdAt),
|
|
58
|
+
index("idx_market_locales_market_sort_created").on(table.marketId, table.sortOrder, table.createdAt),
|
|
59
|
+
index("idx_market_locales_language_sort_created").on(table.languageTag, table.sortOrder, table.createdAt),
|
|
60
|
+
index("idx_market_locales_active_sort_created").on(table.active, table.sortOrder, table.createdAt),
|
|
58
61
|
uniqueIndex("uidx_market_locales_market_language").on(table.marketId, table.languageTag),
|
|
59
62
|
]);
|
|
60
63
|
export const marketCurrencies = pgTable("market_currencies", {
|
|
@@ -71,8 +74,10 @@ export const marketCurrencies = pgTable("market_currencies", {
|
|
|
71
74
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
72
75
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
73
76
|
}, (table) => [
|
|
74
|
-
index("
|
|
75
|
-
index("
|
|
77
|
+
index("idx_market_currencies_sort_created").on(table.sortOrder, table.createdAt),
|
|
78
|
+
index("idx_market_currencies_market_sort_created").on(table.marketId, table.sortOrder, table.createdAt),
|
|
79
|
+
index("idx_market_currencies_code_sort_created").on(table.currencyCode, table.sortOrder, table.createdAt),
|
|
80
|
+
index("idx_market_currencies_active_sort_created").on(table.active, table.sortOrder, table.createdAt),
|
|
76
81
|
uniqueIndex("uidx_market_currencies_market_code").on(table.marketId, table.currencyCode),
|
|
77
82
|
]);
|
|
78
83
|
export const fxRateSets = pgTable("fx_rate_sets", {
|
|
@@ -86,9 +91,9 @@ export const fxRateSets = pgTable("fx_rate_sets", {
|
|
|
86
91
|
metadata: jsonb("metadata").$type(),
|
|
87
92
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
88
93
|
}, (table) => [
|
|
89
|
-
index("
|
|
94
|
+
index("idx_fx_rate_sets_base_currency_effective").on(table.baseCurrency, table.effectiveAt),
|
|
90
95
|
index("idx_fx_rate_sets_effective_at").on(table.effectiveAt),
|
|
91
|
-
index("
|
|
96
|
+
index("idx_fx_rate_sets_source_effective").on(table.source, table.effectiveAt),
|
|
92
97
|
]);
|
|
93
98
|
export const exchangeRates = pgTable("exchange_rates", {
|
|
94
99
|
id: typeId("exchange_rates"),
|
|
@@ -102,7 +107,9 @@ export const exchangeRates = pgTable("exchange_rates", {
|
|
|
102
107
|
observedAt: timestamp("observed_at", { withTimezone: true }),
|
|
103
108
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
104
109
|
}, (table) => [
|
|
105
|
-
index("
|
|
110
|
+
index("idx_exchange_rates_rate_set_created").on(table.fxRateSetId, table.createdAt),
|
|
111
|
+
index("idx_exchange_rates_base_currency_created").on(table.baseCurrency, table.createdAt),
|
|
112
|
+
index("idx_exchange_rates_quote_currency_created").on(table.quoteCurrency, table.createdAt),
|
|
106
113
|
index("idx_exchange_rates_pair").on(table.baseCurrency, table.quoteCurrency),
|
|
107
114
|
uniqueIndex("uidx_exchange_rates_set_pair").on(table.fxRateSetId, table.baseCurrency, table.quoteCurrency),
|
|
108
115
|
]);
|
|
@@ -120,9 +127,9 @@ export const marketPriceCatalogs = pgTable("market_price_catalogs", {
|
|
|
120
127
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
121
128
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
122
129
|
}, (table) => [
|
|
123
|
-
index("
|
|
124
|
-
index("
|
|
125
|
-
index("
|
|
130
|
+
index("idx_market_price_catalogs_market_created").on(table.marketId, table.createdAt),
|
|
131
|
+
index("idx_market_price_catalogs_catalog_created").on(table.priceCatalogId, table.createdAt),
|
|
132
|
+
index("idx_market_price_catalogs_active_created").on(table.active, table.createdAt),
|
|
126
133
|
uniqueIndex("uidx_market_price_catalogs_market_catalog").on(table.marketId, table.priceCatalogId),
|
|
127
134
|
]);
|
|
128
135
|
export const marketProductRules = pgTable("market_product_rules", {
|
|
@@ -145,11 +152,12 @@ export const marketProductRules = pgTable("market_product_rules", {
|
|
|
145
152
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
146
153
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
147
154
|
}, (table) => [
|
|
148
|
-
index("
|
|
149
|
-
index("
|
|
150
|
-
index("
|
|
155
|
+
index("idx_market_product_rules_market_created").on(table.marketId, table.createdAt),
|
|
156
|
+
index("idx_market_product_rules_product_created").on(table.productId, table.createdAt),
|
|
157
|
+
index("idx_market_product_rules_option_created").on(table.optionId, table.createdAt),
|
|
151
158
|
index("idx_market_product_rules_catalog").on(table.priceCatalogId),
|
|
152
|
-
index("
|
|
159
|
+
index("idx_market_product_rules_sellability_created").on(table.sellability, table.createdAt),
|
|
160
|
+
index("idx_market_product_rules_active_created").on(table.active, table.createdAt),
|
|
153
161
|
]);
|
|
154
162
|
export const marketChannelRules = pgTable("market_channel_rules", {
|
|
155
163
|
id: typeId("market_channel_rules"),
|
|
@@ -168,10 +176,11 @@ export const marketChannelRules = pgTable("market_channel_rules", {
|
|
|
168
176
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
169
177
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
170
178
|
}, (table) => [
|
|
171
|
-
index("
|
|
172
|
-
index("
|
|
179
|
+
index("idx_market_channel_rules_market_created").on(table.marketId, table.createdAt),
|
|
180
|
+
index("idx_market_channel_rules_channel_created").on(table.channelId, table.createdAt),
|
|
173
181
|
index("idx_market_channel_rules_catalog").on(table.priceCatalogId),
|
|
174
|
-
index("
|
|
182
|
+
index("idx_market_channel_rules_sellability_created").on(table.sellability, table.createdAt),
|
|
183
|
+
index("idx_market_channel_rules_active_created").on(table.active, table.createdAt),
|
|
175
184
|
]);
|
|
176
185
|
export const marketsRelations = relations(markets, ({ many }) => ({
|
|
177
186
|
locales: many(marketLocales),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/markets",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
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.9",
|
|
29
|
+
"@voyantjs/db": "0.6.9",
|
|
30
|
+
"@voyantjs/hono": "0.6.9"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "^6.0.2",
|
|
34
|
-
"@voyantjs/distribution": "0.6.
|
|
35
|
-
"@voyantjs/products": "0.6.
|
|
34
|
+
"@voyantjs/distribution": "0.6.9",
|
|
35
|
+
"@voyantjs/products": "0.6.9",
|
|
36
36
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|