@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.
@@ -1 +1 @@
1
- {"version":3,"file":"schema-offers.d.ts","sourceRoot":"","sources":["../src/schema-offers.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ClB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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"}
@@ -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("idx_offers_status").on(table.status),
34
- index("idx_offers_person").on(table.personId),
35
- index("idx_offers_organization").on(table.organizationId),
36
- index("idx_offers_opportunity").on(table.opportunityId),
37
- index("idx_offers_quote").on(table.quoteId),
38
- index("idx_offers_market").on(table.marketId),
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("idx_offer_participants_person").on(table.personId),
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("idx_offer_items_product").on(table.productId),
100
- index("idx_offer_items_option").on(table.optionId),
101
- index("idx_offer_items_unit").on(table.unitId),
102
- index("idx_offer_items_slot").on(table.slotId),
103
- index("idx_offer_items_status").on(table.status),
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("idx_offer_item_participants_participant").on(table.participantId),
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ClB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBjC,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,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;AAC/E,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA"}
@@ -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("idx_orders_offer").on(table.offerId),
35
- index("idx_orders_status").on(table.status),
36
- index("idx_orders_person").on(table.personId),
37
- index("idx_orders_organization").on(table.organizationId),
38
- index("idx_orders_opportunity").on(table.opportunityId),
39
- index("idx_orders_quote").on(table.quoteId),
40
- index("idx_orders_market").on(table.marketId),
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("idx_order_participants_person").on(table.personId),
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("idx_order_items_offer_item").on(table.offerItemId),
104
- index("idx_order_items_product").on(table.productId),
105
- index("idx_order_items_option").on(table.optionId),
106
- index("idx_order_items_unit").on(table.unitId),
107
- index("idx_order_items_slot").on(table.slotId),
108
- index("idx_order_items_status").on(table.status),
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("idx_order_item_participants_participant").on(table.participantId),
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("idx_order_terms_offer").on(table.offerId),
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("idx_order_terms_type").on(table.termType),
148
- index("idx_order_terms_acceptance").on(table.acceptanceStatus),
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.7",
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/db": "0.6.7",
33
- "@voyantjs/hono": "0.6.7",
34
- "@voyantjs/core": "0.6.7",
35
- "@voyantjs/utils": "0.6.7"
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",