@voyantjs/transactions 0.9.0 → 0.10.0
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/routes-orders.d.ts
CHANGED
|
@@ -1240,10 +1240,10 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
1240
1240
|
id: string;
|
|
1241
1241
|
createdAt: string;
|
|
1242
1242
|
updatedAt: string;
|
|
1243
|
+
body: string;
|
|
1243
1244
|
offerId: string | null;
|
|
1244
1245
|
orderId: string | null;
|
|
1245
1246
|
title: string;
|
|
1246
|
-
body: string;
|
|
1247
1247
|
acceptedAt: string | null;
|
|
1248
1248
|
termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
|
|
1249
1249
|
language: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-offers.d.ts","sourceRoot":"","sources":["../src/schema-offers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-offers.d.ts","sourceRoot":"","sources":["../src/schema-offers.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjC,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,aAAa,GAAG,gBAAgB,CAAA;AAC5C,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AAClD,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,iBAAiB,GAAG,oBAAoB,CAAA;AACpD,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAA"}
|
package/dist/schema-offers.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
|
-
import {
|
|
2
|
+
import { sql } from "drizzle-orm";
|
|
3
|
+
import { boolean, check, date, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
4
|
import { offerStatusEnum, transactionItemParticipantRoleEnum, transactionItemStatusEnum, transactionItemTypeEnum, transactionParticipantTypeEnum, transactionTravelerCategoryEnum, } from "./schema-shared";
|
|
4
5
|
export const offers = pgTable("offers", {
|
|
5
6
|
id: typeId("offers"),
|
|
@@ -112,6 +113,7 @@ export const offerItems = pgTable("offer_items", {
|
|
|
112
113
|
index("idx_offer_items_unit_created").on(table.unitId, table.createdAt),
|
|
113
114
|
index("idx_offer_items_slot_created").on(table.slotId, table.createdAt),
|
|
114
115
|
index("idx_offer_items_status_created").on(table.status, table.createdAt),
|
|
116
|
+
check("ck_offer_items_cost_currency_amounts", sql `(${table.unitCostAmountCents} IS NULL AND ${table.totalCostAmountCents} IS NULL) OR ${table.costCurrency} IS NOT NULL`),
|
|
115
117
|
]);
|
|
116
118
|
export const offerItemParticipants = pgTable("offer_item_participants", {
|
|
117
119
|
id: typeId("offer_item_participants"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-orders.d.ts","sourceRoot":"","sources":["../src/schema-orders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-orders.d.ts","sourceRoot":"","sources":["../src/schema-orders.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ders.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
|
-
import {
|
|
2
|
+
import { sql } from "drizzle-orm";
|
|
3
|
+
import { boolean, check, date, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
4
|
import { offerItems, offers } from "./schema-offers";
|
|
4
5
|
import { orderStatusEnum, orderTermAcceptanceStatusEnum, orderTermTypeEnum, transactionItemParticipantRoleEnum, transactionItemStatusEnum, transactionItemTypeEnum, transactionParticipantTypeEnum, transactionTravelerCategoryEnum, } from "./schema-shared";
|
|
5
6
|
export const orders = pgTable("orders", {
|
|
@@ -117,6 +118,7 @@ export const orderItems = pgTable("order_items", {
|
|
|
117
118
|
index("idx_order_items_unit_created").on(table.unitId, table.createdAt),
|
|
118
119
|
index("idx_order_items_slot_created").on(table.slotId, table.createdAt),
|
|
119
120
|
index("idx_order_items_status_created").on(table.status, table.createdAt),
|
|
121
|
+
check("ck_order_items_cost_currency_amounts", sql `(${table.unitCostAmountCents} IS NULL AND ${table.totalCostAmountCents} IS NULL) OR ${table.costCurrency} IS NOT NULL`),
|
|
120
122
|
]);
|
|
121
123
|
export const orderItemParticipants = pgTable("order_item_participants", {
|
|
122
124
|
id: typeId("order_item_participants"),
|
package/dist/service-orders.d.ts
CHANGED
|
@@ -610,10 +610,10 @@ export declare function createOrderTerm(db: PostgresJsDatabase, data: CreateOrde
|
|
|
610
610
|
id: string;
|
|
611
611
|
createdAt: Date;
|
|
612
612
|
updatedAt: Date;
|
|
613
|
+
body: string;
|
|
613
614
|
offerId: string | null;
|
|
614
615
|
orderId: string | null;
|
|
615
616
|
title: string;
|
|
616
|
-
body: string;
|
|
617
617
|
acceptedAt: Date | null;
|
|
618
618
|
termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
|
|
619
619
|
language: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/transactions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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/core": "0.
|
|
33
|
-
"@voyantjs/db": "0.
|
|
34
|
-
"@voyantjs/hono": "0.
|
|
35
|
-
"@voyantjs/utils": "0.
|
|
32
|
+
"@voyantjs/core": "0.10.0",
|
|
33
|
+
"@voyantjs/db": "0.10.0",
|
|
34
|
+
"@voyantjs/hono": "0.10.0",
|
|
35
|
+
"@voyantjs/utils": "0.10.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|