@voyantjs/transactions 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-offers.d.ts.map +1 -1
- package/dist/schema-offers.js +14 -13
- package/dist/schema-orders.d.ts.map +1 -1
- package/dist/schema-orders.js +19 -18
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-offers.d.ts","sourceRoot":"","sources":["../src/schema-offers.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-offers.d.ts","sourceRoot":"","sources":["../src/schema-offers.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCtB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBjC,CAAA;AAED,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,YAAY,CAAA;AAC9C,MAAM,MAAM,QAAQ,GAAG,OAAO,MAAM,CAAC,YAAY,CAAA;AACjD,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACpE,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACvE,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACzD,MAAM,MAAM,oBAAoB,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAA;AAC5E,MAAM,MAAM,uBAAuB,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAA"}
|
package/dist/schema-offers.js
CHANGED
|
@@ -30,12 +30,13 @@ export const offers = pgTable("offers", {
|
|
|
30
30
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
31
31
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
32
32
|
}, (table) => [
|
|
33
|
-
index("
|
|
34
|
-
index("
|
|
35
|
-
index("
|
|
36
|
-
index("
|
|
37
|
-
index("
|
|
38
|
-
index("
|
|
33
|
+
index("idx_offers_created").on(table.createdAt),
|
|
34
|
+
index("idx_offers_status_created").on(table.status, table.createdAt),
|
|
35
|
+
index("idx_offers_person_created").on(table.personId, table.createdAt),
|
|
36
|
+
index("idx_offers_organization_created").on(table.organizationId, table.createdAt),
|
|
37
|
+
index("idx_offers_opportunity_created").on(table.opportunityId, table.createdAt),
|
|
38
|
+
index("idx_offers_quote_created").on(table.quoteId, table.createdAt),
|
|
39
|
+
index("idx_offers_market_created").on(table.marketId, table.createdAt),
|
|
39
40
|
index("idx_offers_channel").on(table.sourceChannelId),
|
|
40
41
|
index("idx_offers_fx_rate_set").on(table.fxRateSetId),
|
|
41
42
|
index("idx_offers_valid_until").on(table.validUntil),
|
|
@@ -62,7 +63,7 @@ export const offerParticipants = pgTable("offer_participants", {
|
|
|
62
63
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
63
64
|
}, (table) => [
|
|
64
65
|
index("idx_offer_participants_offer_created").on(table.offerId, table.createdAt),
|
|
65
|
-
index("
|
|
66
|
+
index("idx_offer_participants_person_created").on(table.personId, table.createdAt),
|
|
66
67
|
index("idx_offer_participants_type").on(table.participantType),
|
|
67
68
|
]);
|
|
68
69
|
export const offerItems = pgTable("offer_items", {
|
|
@@ -96,11 +97,11 @@ export const offerItems = pgTable("offer_items", {
|
|
|
96
97
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
97
98
|
}, (table) => [
|
|
98
99
|
index("idx_offer_items_offer_created").on(table.offerId, table.createdAt),
|
|
99
|
-
index("
|
|
100
|
-
index("
|
|
101
|
-
index("
|
|
102
|
-
index("
|
|
103
|
-
index("
|
|
100
|
+
index("idx_offer_items_product_created").on(table.productId, table.createdAt),
|
|
101
|
+
index("idx_offer_items_option_created").on(table.optionId, table.createdAt),
|
|
102
|
+
index("idx_offer_items_unit_created").on(table.unitId, table.createdAt),
|
|
103
|
+
index("idx_offer_items_slot_created").on(table.slotId, table.createdAt),
|
|
104
|
+
index("idx_offer_items_status_created").on(table.status, table.createdAt),
|
|
104
105
|
]);
|
|
105
106
|
export const offerItemParticipants = pgTable("offer_item_participants", {
|
|
106
107
|
id: typeId("offer_item_participants"),
|
|
@@ -115,6 +116,6 @@ export const offerItemParticipants = pgTable("offer_item_participants", {
|
|
|
115
116
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
116
117
|
}, (table) => [
|
|
117
118
|
index("idx_offer_item_participants_item_created").on(table.offerItemId, table.createdAt),
|
|
118
|
-
index("
|
|
119
|
+
index("idx_offer_item_participants_participant_created").on(table.participantId, table.createdAt),
|
|
119
120
|
uniqueIndex("uidx_offer_item_participants").on(table.offerItemId, table.participantId),
|
|
120
121
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-orders.d.ts","sourceRoot":"","sources":["../src/schema-orders.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-orders.d.ts","sourceRoot":"","sources":["../src/schema-orders.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA"}
|
package/dist/schema-orders.js
CHANGED
|
@@ -31,13 +31,14 @@ export const orders = pgTable("orders", {
|
|
|
31
31
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
32
32
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
33
33
|
}, (table) => [
|
|
34
|
-
index("
|
|
35
|
-
index("
|
|
36
|
-
index("
|
|
37
|
-
index("
|
|
38
|
-
index("
|
|
39
|
-
index("
|
|
40
|
-
index("
|
|
34
|
+
index("idx_orders_created").on(table.createdAt),
|
|
35
|
+
index("idx_orders_offer_created").on(table.offerId, table.createdAt),
|
|
36
|
+
index("idx_orders_status_created").on(table.status, table.createdAt),
|
|
37
|
+
index("idx_orders_person_created").on(table.personId, table.createdAt),
|
|
38
|
+
index("idx_orders_organization_created").on(table.organizationId, table.createdAt),
|
|
39
|
+
index("idx_orders_opportunity_created").on(table.opportunityId, table.createdAt),
|
|
40
|
+
index("idx_orders_quote_created").on(table.quoteId, table.createdAt),
|
|
41
|
+
index("idx_orders_market_created").on(table.marketId, table.createdAt),
|
|
41
42
|
index("idx_orders_channel").on(table.sourceChannelId),
|
|
42
43
|
index("idx_orders_fx_rate_set").on(table.fxRateSetId),
|
|
43
44
|
]);
|
|
@@ -63,7 +64,7 @@ export const orderParticipants = pgTable("order_participants", {
|
|
|
63
64
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
64
65
|
}, (table) => [
|
|
65
66
|
index("idx_order_participants_order_created").on(table.orderId, table.createdAt),
|
|
66
|
-
index("
|
|
67
|
+
index("idx_order_participants_person_created").on(table.personId, table.createdAt),
|
|
67
68
|
index("idx_order_participants_type").on(table.participantType),
|
|
68
69
|
]);
|
|
69
70
|
export const orderItems = pgTable("order_items", {
|
|
@@ -100,12 +101,12 @@ export const orderItems = pgTable("order_items", {
|
|
|
100
101
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
102
|
}, (table) => [
|
|
102
103
|
index("idx_order_items_order_created").on(table.orderId, table.createdAt),
|
|
103
|
-
index("
|
|
104
|
-
index("
|
|
105
|
-
index("
|
|
106
|
-
index("
|
|
107
|
-
index("
|
|
108
|
-
index("
|
|
104
|
+
index("idx_order_items_offer_item_created").on(table.offerItemId, table.createdAt),
|
|
105
|
+
index("idx_order_items_product_created").on(table.productId, table.createdAt),
|
|
106
|
+
index("idx_order_items_option_created").on(table.optionId, table.createdAt),
|
|
107
|
+
index("idx_order_items_unit_created").on(table.unitId, table.createdAt),
|
|
108
|
+
index("idx_order_items_slot_created").on(table.slotId, table.createdAt),
|
|
109
|
+
index("idx_order_items_status_created").on(table.status, table.createdAt),
|
|
109
110
|
]);
|
|
110
111
|
export const orderItemParticipants = pgTable("order_item_participants", {
|
|
111
112
|
id: typeId("order_item_participants"),
|
|
@@ -120,7 +121,7 @@ export const orderItemParticipants = pgTable("order_item_participants", {
|
|
|
120
121
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
121
122
|
}, (table) => [
|
|
122
123
|
index("idx_order_item_participants_item_created").on(table.orderItemId, table.createdAt),
|
|
123
|
-
index("
|
|
124
|
+
index("idx_order_item_participants_participant_created").on(table.participantId, table.createdAt),
|
|
124
125
|
uniqueIndex("uidx_order_item_participants").on(table.orderItemId, table.participantId),
|
|
125
126
|
]);
|
|
126
127
|
export const orderTerms = pgTable("order_terms", {
|
|
@@ -142,8 +143,8 @@ export const orderTerms = pgTable("order_terms", {
|
|
|
142
143
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
143
144
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
144
145
|
}, (table) => [
|
|
145
|
-
index("
|
|
146
|
+
index("idx_order_terms_offer_sort").on(table.offerId, table.sortOrder, table.createdAt),
|
|
146
147
|
index("idx_order_terms_order_sort").on(table.orderId, table.sortOrder, table.createdAt),
|
|
147
|
-
index("
|
|
148
|
-
index("
|
|
148
|
+
index("idx_order_terms_type_sort").on(table.termType, table.sortOrder, table.createdAt),
|
|
149
|
+
index("idx_order_terms_acceptance_sort").on(table.acceptanceStatus, table.sortOrder, table.createdAt),
|
|
149
150
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/transactions",
|
|
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": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/
|
|
33
|
-
"@voyantjs/
|
|
34
|
-
"@voyantjs/
|
|
35
|
-
"@voyantjs/utils": "0.6.
|
|
32
|
+
"@voyantjs/core": "0.6.8",
|
|
33
|
+
"@voyantjs/db": "0.6.8",
|
|
34
|
+
"@voyantjs/hono": "0.6.8",
|
|
35
|
+
"@voyantjs/utils": "0.6.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|