@voyantjs/sellability 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 +29 -27
- package/package.json +10 -10
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,6BAA6B,oFAIxC,CAAA;AAEF,eAAO,MAAM,oCAAoC,2FAK/C,CAAA;AAEF,eAAO,MAAM,0BAA0B,4FAMrC,CAAA;AAEF,eAAO,MAAM,yBAAyB,mJASpC,CAAA;AAEF,eAAO,MAAM,iCAAiC,oFAK5C,CAAA;AAEF,eAAO,MAAM,yBAAyB,gGAMpC,CAAA;AAEF,eAAO,MAAM,8BAA8B,2FAKzC,CAAA;AAEF,eAAO,MAAM,8BAA8B,sHAQzC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,6BAA6B,oFAIxC,CAAA;AAEF,eAAO,MAAM,oCAAoC,2FAK/C,CAAA;AAEF,eAAO,MAAM,0BAA0B,4FAMrC,CAAA;AAEF,eAAO,MAAM,yBAAyB,mJASpC,CAAA;AAEF,eAAO,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_snapshots", {
|
|
|
75
75
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
76
76
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
77
77
|
}, (table) => [
|
|
78
|
-
index("
|
|
79
|
-
index("
|
|
80
|
-
index("
|
|
81
|
-
index("
|
|
82
|
-
index("
|
|
83
|
-
index("
|
|
84
|
-
index("
|
|
78
|
+
index("idx_sellability_snapshots_updated").on(table.updatedAt),
|
|
79
|
+
index("idx_sellability_snapshots_offer_updated").on(table.offerId, table.updatedAt),
|
|
80
|
+
index("idx_sellability_snapshots_market_updated").on(table.marketId, table.updatedAt),
|
|
81
|
+
index("idx_sellability_snapshots_channel_updated").on(table.channelId, table.updatedAt),
|
|
82
|
+
index("idx_sellability_snapshots_product_updated").on(table.productId, table.updatedAt),
|
|
83
|
+
index("idx_sellability_snapshots_option_updated").on(table.optionId, table.updatedAt),
|
|
84
|
+
index("idx_sellability_snapshots_slot_updated").on(table.slotId, table.updatedAt),
|
|
85
|
+
index("idx_sellability_snapshots_status_updated").on(table.status, table.updatedAt),
|
|
85
86
|
]);
|
|
86
87
|
export const sellabilitySnapshotItems = pgTable("sellability_snapshot_items", {
|
|
87
88
|
id: typeId("sellability_snapshot_items"),
|
|
@@ -112,12 +113,12 @@ export const sellabilitySnapshotItems = pgTable("sellability_snapshot_items", {
|
|
|
112
113
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
113
114
|
}, (table) => [
|
|
114
115
|
index("idx_sellability_snapshot_items_snapshot_order").on(table.snapshotId, table.candidateIndex, table.componentIndex),
|
|
116
|
+
index("idx_sellability_snapshot_items_product_order").on(table.productId, table.candidateIndex, table.componentIndex),
|
|
117
|
+
index("idx_sellability_snapshot_items_option_order").on(table.optionId, table.candidateIndex, table.componentIndex),
|
|
118
|
+
index("idx_sellability_snapshot_items_slot_order").on(table.slotId, table.candidateIndex, table.componentIndex),
|
|
119
|
+
index("idx_sellability_snapshot_items_unit_order").on(table.unitId, table.candidateIndex, table.componentIndex),
|
|
115
120
|
index("idx_sellability_snapshot_items_candidate").on(table.candidateIndex),
|
|
116
121
|
index("idx_sellability_snapshot_items_component").on(table.componentKind),
|
|
117
|
-
index("idx_sellability_snapshot_items_product").on(table.productId),
|
|
118
|
-
index("idx_sellability_snapshot_items_option").on(table.optionId),
|
|
119
|
-
index("idx_sellability_snapshot_items_slot").on(table.slotId),
|
|
120
|
-
index("idx_sellability_snapshot_items_unit").on(table.unitId),
|
|
121
122
|
]);
|
|
122
123
|
export const sellabilityPolicies = pgTable("sellability_policies", {
|
|
123
124
|
id: typeId("sellability_policies"),
|
|
@@ -137,13 +138,14 @@ export const sellabilityPolicies = pgTable("sellability_policies", {
|
|
|
137
138
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
138
139
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
139
140
|
}, (table) => [
|
|
140
|
-
index("
|
|
141
|
-
index("
|
|
142
|
-
index("
|
|
143
|
-
index("
|
|
144
|
-
index("
|
|
145
|
-
index("
|
|
146
|
-
index("
|
|
141
|
+
index("idx_sellability_policies_priority_name").on(table.priority, table.name),
|
|
142
|
+
index("idx_sellability_policies_scope_priority_name").on(table.scope, table.priority, table.name),
|
|
143
|
+
index("idx_sellability_policies_type_priority_name").on(table.policyType, table.priority, table.name),
|
|
144
|
+
index("idx_sellability_policies_product_priority_name").on(table.productId, table.priority, table.name),
|
|
145
|
+
index("idx_sellability_policies_option_priority_name").on(table.optionId, table.priority, table.name),
|
|
146
|
+
index("idx_sellability_policies_market_priority_name").on(table.marketId, table.priority, table.name),
|
|
147
|
+
index("idx_sellability_policies_channel_priority_name").on(table.channelId, table.priority, table.name),
|
|
148
|
+
index("idx_sellability_policies_active_priority_name").on(table.active, table.priority, table.name),
|
|
147
149
|
]);
|
|
148
150
|
export const sellabilityPolicyResults = pgTable("sellability_policy_results", {
|
|
149
151
|
id: typeId("sellability_policy_results"),
|
|
@@ -163,9 +165,9 @@ export const sellabilityPolicyResults = pgTable("sellability_policy_results", {
|
|
|
163
165
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
164
166
|
}, (table) => [
|
|
165
167
|
index("idx_sellability_policy_results_snapshot_created").on(table.snapshotId, table.createdAt),
|
|
166
|
-
index("
|
|
167
|
-
index("
|
|
168
|
-
index("
|
|
168
|
+
index("idx_sellability_policy_results_snapshot_item_created").on(table.snapshotItemId, table.createdAt),
|
|
169
|
+
index("idx_sellability_policy_results_policy_created").on(table.policyId, table.createdAt),
|
|
170
|
+
index("idx_sellability_policy_results_status_created").on(table.status, table.createdAt),
|
|
169
171
|
]);
|
|
170
172
|
export const offerRefreshRuns = pgTable("offer_refresh_runs", {
|
|
171
173
|
id: typeId("offer_refresh_runs"),
|
|
@@ -182,8 +184,8 @@ export const offerRefreshRuns = pgTable("offer_refresh_runs", {
|
|
|
182
184
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
183
185
|
}, (table) => [
|
|
184
186
|
index("idx_offer_refresh_runs_offer_started").on(table.offerId, table.startedAt),
|
|
185
|
-
index("
|
|
186
|
-
index("
|
|
187
|
+
index("idx_offer_refresh_runs_snapshot_started").on(table.snapshotId, table.startedAt),
|
|
188
|
+
index("idx_offer_refresh_runs_status_started").on(table.status, table.startedAt),
|
|
187
189
|
]);
|
|
188
190
|
export const offerExpirationEvents = pgTable("offer_expiration_events", {
|
|
189
191
|
id: typeId("offer_expiration_events"),
|
|
@@ -200,8 +202,8 @@ export const offerExpirationEvents = pgTable("offer_expiration_events", {
|
|
|
200
202
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
201
203
|
}, (table) => [
|
|
202
204
|
index("idx_offer_expiration_events_offer_expires").on(table.offerId, table.expiresAt),
|
|
203
|
-
index("
|
|
204
|
-
index("
|
|
205
|
+
index("idx_offer_expiration_events_snapshot_expires").on(table.snapshotId, table.expiresAt),
|
|
206
|
+
index("idx_offer_expiration_events_status_expires").on(table.status, table.expiresAt),
|
|
205
207
|
]);
|
|
206
208
|
export const sellabilityExplanations = pgTable("sellability_explanations", {
|
|
207
209
|
id: typeId("sellability_explanations"),
|
|
@@ -219,8 +221,8 @@ export const sellabilityExplanations = pgTable("sellability_explanations", {
|
|
|
219
221
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
220
222
|
}, (table) => [
|
|
221
223
|
index("idx_sellability_explanations_snapshot_created").on(table.snapshotId, table.createdAt),
|
|
222
|
-
index("
|
|
223
|
-
index("
|
|
224
|
+
index("idx_sellability_explanations_snapshot_item_created").on(table.snapshotItemId, table.createdAt),
|
|
225
|
+
index("idx_sellability_explanations_type_created").on(table.explanationType, table.createdAt),
|
|
224
226
|
]);
|
|
225
227
|
export const sellabilitySnapshotsRelations = relations(sellabilitySnapshots, ({ many }) => ({
|
|
226
228
|
items: many(sellabilitySnapshotItems),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/sellability",
|
|
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,15 +25,15 @@
|
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"hono": "^4.12.10",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@voyantjs/availability": "0.6.
|
|
29
|
-
"@voyantjs/core": "0.6.
|
|
30
|
-
"@voyantjs/db": "0.6.
|
|
31
|
-
"@voyantjs/distribution": "0.6.
|
|
32
|
-
"@voyantjs/hono": "0.6.
|
|
33
|
-
"@voyantjs/markets": "0.6.
|
|
34
|
-
"@voyantjs/pricing": "0.6.
|
|
35
|
-
"@voyantjs/products": "0.6.
|
|
36
|
-
"@voyantjs/transactions": "0.6.
|
|
28
|
+
"@voyantjs/availability": "0.6.8",
|
|
29
|
+
"@voyantjs/core": "0.6.8",
|
|
30
|
+
"@voyantjs/db": "0.6.8",
|
|
31
|
+
"@voyantjs/distribution": "0.6.8",
|
|
32
|
+
"@voyantjs/hono": "0.6.8",
|
|
33
|
+
"@voyantjs/markets": "0.6.8",
|
|
34
|
+
"@voyantjs/pricing": "0.6.8",
|
|
35
|
+
"@voyantjs/products": "0.6.8",
|
|
36
|
+
"@voyantjs/transactions": "0.6.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "^6.0.2",
|