@voyantjs/transactions 0.83.0 → 0.84.1
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-offers.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
8
8
|
id: string;
|
|
9
9
|
offerNumber: string;
|
|
10
10
|
title: string;
|
|
11
|
-
status: "
|
|
11
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
12
12
|
personId: string | null;
|
|
13
13
|
organizationId: string | null;
|
|
14
14
|
opportunityId: string | null;
|
|
@@ -63,7 +63,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
63
63
|
createdAt: string;
|
|
64
64
|
updatedAt: string;
|
|
65
65
|
organizationId: string | null;
|
|
66
|
-
status: "
|
|
66
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
67
67
|
currency: string;
|
|
68
68
|
notes: string | null;
|
|
69
69
|
title: string;
|
|
@@ -126,7 +126,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
126
126
|
id: string;
|
|
127
127
|
offerNumber: string;
|
|
128
128
|
title: string;
|
|
129
|
-
status: "
|
|
129
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
130
130
|
personId: string | null;
|
|
131
131
|
organizationId: string | null;
|
|
132
132
|
opportunityId: string | null;
|
|
@@ -191,7 +191,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
191
191
|
id: string;
|
|
192
192
|
offerNumber: string;
|
|
193
193
|
title: string;
|
|
194
|
-
status: "
|
|
194
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
195
195
|
personId: string | null;
|
|
196
196
|
organizationId: string | null;
|
|
197
197
|
opportunityId: string | null;
|
package/dist/routes-orders.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
9
9
|
orderNumber: string;
|
|
10
10
|
offerId: string | null;
|
|
11
11
|
title: string;
|
|
12
|
-
status: "pending" | "cancelled" | "
|
|
12
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
13
13
|
personId: string | null;
|
|
14
14
|
organizationId: string | null;
|
|
15
15
|
opportunityId: string | null;
|
|
@@ -64,7 +64,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
64
64
|
updatedAt: string;
|
|
65
65
|
expiresAt: string | null;
|
|
66
66
|
organizationId: string | null;
|
|
67
|
-
status: "pending" | "cancelled" | "
|
|
67
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
68
68
|
currency: string;
|
|
69
69
|
notes: string | null;
|
|
70
70
|
offerId: string | null;
|
|
@@ -127,7 +127,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
127
127
|
orderNumber: string;
|
|
128
128
|
offerId: string | null;
|
|
129
129
|
title: string;
|
|
130
|
-
status: "pending" | "cancelled" | "
|
|
130
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
131
131
|
personId: string | null;
|
|
132
132
|
organizationId: string | null;
|
|
133
133
|
opportunityId: string | null;
|
|
@@ -192,7 +192,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
192
192
|
orderNumber: string;
|
|
193
193
|
offerId: string | null;
|
|
194
194
|
title: string;
|
|
195
|
-
status: "pending" | "cancelled" | "
|
|
195
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
196
196
|
personId: string | null;
|
|
197
197
|
organizationId: string | null;
|
|
198
198
|
opportunityId: string | null;
|
package/dist/schema-offers.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const offers: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
58
58
|
tableName: "offers";
|
|
59
59
|
dataType: "string";
|
|
60
60
|
columnType: "PgEnumColumn";
|
|
61
|
-
data: "
|
|
61
|
+
data: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
62
62
|
driverParam: string;
|
|
63
63
|
notNull: true;
|
|
64
64
|
hasDefault: true;
|
package/dist/schema-orders.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const orders: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
75
75
|
tableName: "orders";
|
|
76
76
|
dataType: "string";
|
|
77
77
|
columnType: "PgEnumColumn";
|
|
78
|
-
data: "pending" | "cancelled" | "
|
|
78
|
+
data: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
79
79
|
driverParam: string;
|
|
80
80
|
notNull: true;
|
|
81
81
|
hasDefault: true;
|
package/dist/service-offers.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare function listOffers(db: PostgresJsDatabase, query: OfferListQuery
|
|
|
5
5
|
id: string;
|
|
6
6
|
offerNumber: string;
|
|
7
7
|
title: string;
|
|
8
|
-
status: "
|
|
8
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
9
9
|
personId: string | null;
|
|
10
10
|
organizationId: string | null;
|
|
11
11
|
opportunityId: string | null;
|
|
@@ -49,7 +49,7 @@ export declare function getOfferById(db: PostgresJsDatabase, id: string): Promis
|
|
|
49
49
|
id: string;
|
|
50
50
|
offerNumber: string;
|
|
51
51
|
title: string;
|
|
52
|
-
status: "
|
|
52
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
53
53
|
personId: string | null;
|
|
54
54
|
organizationId: string | null;
|
|
55
55
|
opportunityId: string | null;
|
|
@@ -91,7 +91,7 @@ export declare function createOffer(db: PostgresJsDatabase, data: CreateOfferInp
|
|
|
91
91
|
createdAt: Date;
|
|
92
92
|
updatedAt: Date;
|
|
93
93
|
organizationId: string | null;
|
|
94
|
-
status: "
|
|
94
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
95
95
|
currency: string;
|
|
96
96
|
notes: string | null;
|
|
97
97
|
title: string;
|
|
@@ -132,7 +132,7 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
|
|
|
132
132
|
createdAt: Date;
|
|
133
133
|
updatedAt: Date;
|
|
134
134
|
organizationId: string | null;
|
|
135
|
-
status: "
|
|
135
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
136
136
|
currency: string;
|
|
137
137
|
notes: string | null;
|
|
138
138
|
title: string;
|
|
@@ -258,7 +258,7 @@ export declare function updateOffer(db: PostgresJsDatabase, id: string, data: Up
|
|
|
258
258
|
id: string;
|
|
259
259
|
offerNumber: string;
|
|
260
260
|
title: string;
|
|
261
|
-
status: "
|
|
261
|
+
status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
|
|
262
262
|
personId: string | null;
|
|
263
263
|
organizationId: string | null;
|
|
264
264
|
opportunityId: string | null;
|
package/dist/service-orders.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function listOrders(db: PostgresJsDatabase, query: OrderListQuery
|
|
|
6
6
|
orderNumber: string;
|
|
7
7
|
offerId: string | null;
|
|
8
8
|
title: string;
|
|
9
|
-
status: "pending" | "cancelled" | "
|
|
9
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
10
10
|
personId: string | null;
|
|
11
11
|
organizationId: string | null;
|
|
12
12
|
opportunityId: string | null;
|
|
@@ -50,7 +50,7 @@ export declare function getOrderById(db: PostgresJsDatabase, id: string): Promis
|
|
|
50
50
|
orderNumber: string;
|
|
51
51
|
offerId: string | null;
|
|
52
52
|
title: string;
|
|
53
|
-
status: "pending" | "cancelled" | "
|
|
53
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
54
54
|
personId: string | null;
|
|
55
55
|
organizationId: string | null;
|
|
56
56
|
opportunityId: string | null;
|
|
@@ -92,7 +92,7 @@ export declare function createOrder(db: PostgresJsDatabase, data: CreateOrderInp
|
|
|
92
92
|
updatedAt: Date;
|
|
93
93
|
expiresAt: Date | null;
|
|
94
94
|
organizationId: string | null;
|
|
95
|
-
status: "pending" | "cancelled" | "
|
|
95
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
96
96
|
currency: string;
|
|
97
97
|
notes: string | null;
|
|
98
98
|
offerId: string | null;
|
|
@@ -130,7 +130,7 @@ export declare function updateOrder(db: PostgresJsDatabase, id: string, data: Up
|
|
|
130
130
|
orderNumber: string;
|
|
131
131
|
offerId: string | null;
|
|
132
132
|
title: string;
|
|
133
|
-
status: "pending" | "cancelled" | "
|
|
133
|
+
status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
|
|
134
134
|
personId: string | null;
|
|
135
135
|
organizationId: string | null;
|
|
136
136
|
opportunityId: string | null;
|
package/dist/validation.d.ts
CHANGED
|
@@ -114,19 +114,19 @@ export declare const offerMetadataSchema: z.ZodObject<{
|
|
|
114
114
|
}>>>;
|
|
115
115
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
116
116
|
export declare const offerStatusSchema: z.ZodEnum<{
|
|
117
|
+
expired: "expired";
|
|
117
118
|
draft: "draft";
|
|
118
119
|
published: "published";
|
|
119
120
|
sent: "sent";
|
|
120
121
|
accepted: "accepted";
|
|
121
|
-
expired: "expired";
|
|
122
122
|
withdrawn: "withdrawn";
|
|
123
123
|
converted: "converted";
|
|
124
124
|
}>;
|
|
125
125
|
export declare const orderStatusSchema: z.ZodEnum<{
|
|
126
126
|
pending: "pending";
|
|
127
127
|
cancelled: "cancelled";
|
|
128
|
-
draft: "draft";
|
|
129
128
|
expired: "expired";
|
|
129
|
+
draft: "draft";
|
|
130
130
|
confirmed: "confirmed";
|
|
131
131
|
fulfilled: "fulfilled";
|
|
132
132
|
}>;
|
|
@@ -197,11 +197,11 @@ export declare const insertOfferSchema: z.ZodObject<{
|
|
|
197
197
|
offerNumber: z.ZodString;
|
|
198
198
|
title: z.ZodString;
|
|
199
199
|
status: z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
expired: "expired";
|
|
200
201
|
draft: "draft";
|
|
201
202
|
published: "published";
|
|
202
203
|
sent: "sent";
|
|
203
204
|
accepted: "accepted";
|
|
204
|
-
expired: "expired";
|
|
205
205
|
withdrawn: "withdrawn";
|
|
206
206
|
converted: "converted";
|
|
207
207
|
}>>;
|
|
@@ -297,11 +297,11 @@ export declare const updateOfferSchema: z.ZodObject<{
|
|
|
297
297
|
offerNumber: z.ZodOptional<z.ZodString>;
|
|
298
298
|
title: z.ZodOptional<z.ZodString>;
|
|
299
299
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
300
|
+
expired: "expired";
|
|
300
301
|
draft: "draft";
|
|
301
302
|
published: "published";
|
|
302
303
|
sent: "sent";
|
|
303
304
|
accepted: "accepted";
|
|
304
|
-
expired: "expired";
|
|
305
305
|
withdrawn: "withdrawn";
|
|
306
306
|
converted: "converted";
|
|
307
307
|
}>>>;
|
|
@@ -397,11 +397,11 @@ export declare const offerListQuerySchema: z.ZodObject<{
|
|
|
397
397
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
398
398
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
399
399
|
status: z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
expired: "expired";
|
|
400
401
|
draft: "draft";
|
|
401
402
|
published: "published";
|
|
402
403
|
sent: "sent";
|
|
403
404
|
accepted: "accepted";
|
|
404
|
-
expired: "expired";
|
|
405
405
|
withdrawn: "withdrawn";
|
|
406
406
|
converted: "converted";
|
|
407
407
|
}>>;
|
|
@@ -838,8 +838,8 @@ export declare const insertOrderSchema: z.ZodObject<{
|
|
|
838
838
|
status: z.ZodDefault<z.ZodEnum<{
|
|
839
839
|
pending: "pending";
|
|
840
840
|
cancelled: "cancelled";
|
|
841
|
-
draft: "draft";
|
|
842
841
|
expired: "expired";
|
|
842
|
+
draft: "draft";
|
|
843
843
|
confirmed: "confirmed";
|
|
844
844
|
fulfilled: "fulfilled";
|
|
845
845
|
}>>;
|
|
@@ -882,8 +882,8 @@ export declare const updateOrderSchema: z.ZodObject<{
|
|
|
882
882
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
883
883
|
pending: "pending";
|
|
884
884
|
cancelled: "cancelled";
|
|
885
|
-
draft: "draft";
|
|
886
885
|
expired: "expired";
|
|
886
|
+
draft: "draft";
|
|
887
887
|
confirmed: "confirmed";
|
|
888
888
|
fulfilled: "fulfilled";
|
|
889
889
|
}>>>;
|
|
@@ -925,8 +925,8 @@ export declare const orderListQuerySchema: z.ZodObject<{
|
|
|
925
925
|
status: z.ZodOptional<z.ZodEnum<{
|
|
926
926
|
pending: "pending";
|
|
927
927
|
cancelled: "cancelled";
|
|
928
|
-
draft: "draft";
|
|
929
928
|
expired: "expired";
|
|
929
|
+
draft: "draft";
|
|
930
930
|
confirmed: "confirmed";
|
|
931
931
|
fulfilled: "fulfilled";
|
|
932
932
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/transactions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"drizzle-orm": "^0.45.2",
|
|
35
35
|
"hono": "^4.12.10",
|
|
36
36
|
"zod": "^4.3.6",
|
|
37
|
-
"@voyantjs/core": "0.
|
|
38
|
-
"@voyantjs/db": "0.
|
|
39
|
-
"@voyantjs/hono": "0.
|
|
40
|
-
"@voyantjs/utils": "0.
|
|
37
|
+
"@voyantjs/core": "0.84.1",
|
|
38
|
+
"@voyantjs/db": "0.84.1",
|
|
39
|
+
"@voyantjs/hono": "0.84.1",
|
|
40
|
+
"@voyantjs/utils": "0.84.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^6.0.2",
|