@voyantjs/transactions-react 0.82.1 → 0.84.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.
@@ -6,7 +6,7 @@ export declare function useOfferMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  offerNumber: string;
8
8
  title: string;
9
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
9
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
10
10
  currency: string;
11
11
  id: string;
12
12
  personId: string | null;
@@ -65,7 +65,7 @@ export declare function useOfferMutation(): {
65
65
  offerNumber: string;
66
66
  title: string;
67
67
  currency: string;
68
- status?: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted" | undefined;
68
+ status?: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted" | undefined;
69
69
  personId?: string | null | undefined;
70
70
  organizationId?: string | null | undefined;
71
71
  opportunityId?: string | null | undefined;
@@ -121,7 +121,7 @@ export declare function useOfferMutation(): {
121
121
  update: import("@tanstack/react-query").UseMutationResult<{
122
122
  offerNumber: string;
123
123
  title: string;
124
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
124
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
125
125
  currency: string;
126
126
  id: string;
127
127
  personId: string | null;
@@ -6,7 +6,7 @@ export declare function useOffers(options?: UseOffersOptions): import("@tanstack
6
6
  data: {
7
7
  offerNumber: string;
8
8
  title: string;
9
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
9
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
10
10
  currency: string;
11
11
  id: string;
12
12
  personId: string | null;
@@ -6,7 +6,7 @@ export declare function useOrderMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  orderNumber: string;
8
8
  title: string;
9
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
9
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
10
10
  currency: string;
11
11
  id: string;
12
12
  offerId: string | null;
@@ -47,7 +47,7 @@ export declare function useOrderMutation(): {
47
47
  title: string;
48
48
  currency: string;
49
49
  offerId?: string | null | undefined;
50
- status?: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled" | undefined;
50
+ status?: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | undefined;
51
51
  personId?: string | null | undefined;
52
52
  organizationId?: string | null | undefined;
53
53
  opportunityId?: string | null | undefined;
@@ -82,7 +82,7 @@ export declare function useOrderMutation(): {
82
82
  update: import("@tanstack/react-query").UseMutationResult<{
83
83
  orderNumber: string;
84
84
  title: string;
85
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
85
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
86
86
  currency: string;
87
87
  id: string;
88
88
  offerId: string | null;
@@ -6,7 +6,7 @@ export declare function useOrders(options?: UseOrdersOptions): import("@tanstack
6
6
  data: {
7
7
  orderNumber: string;
8
8
  title: string;
9
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
9
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
10
10
  currency: string;
11
11
  id: string;
12
12
  offerId: string | null;
@@ -5,7 +5,7 @@ export declare function getOffersQueryOptions(client: FetchWithValidationOptions
5
5
  data: {
6
6
  offerNumber: string;
7
7
  title: string;
8
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
8
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
9
9
  currency: string;
10
10
  id: string;
11
11
  personId: string | null;
@@ -68,7 +68,7 @@ export declare function getOffersQueryOptions(client: FetchWithValidationOptions
68
68
  data: {
69
69
  offerNumber: string;
70
70
  title: string;
71
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
71
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
72
72
  currency: string;
73
73
  id: string;
74
74
  personId: string | null;
@@ -132,7 +132,7 @@ export declare function getOffersQueryOptions(client: FetchWithValidationOptions
132
132
  data: {
133
133
  offerNumber: string;
134
134
  title: string;
135
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
135
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
136
136
  currency: string;
137
137
  id: string;
138
138
  personId: string | null;
@@ -198,7 +198,7 @@ export declare function getOffersQueryOptions(client: FetchWithValidationOptions
198
198
  data: {
199
199
  offerNumber: string;
200
200
  title: string;
201
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
201
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
202
202
  currency: string;
203
203
  id: string;
204
204
  personId: string | null;
@@ -264,7 +264,7 @@ export declare function getOffersQueryOptions(client: FetchWithValidationOptions
264
264
  export declare function getOfferQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
265
265
  offerNumber: string;
266
266
  title: string;
267
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
267
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
268
268
  currency: string;
269
269
  id: string;
270
270
  personId: string | null;
@@ -322,7 +322,7 @@ export declare function getOfferQueryOptions(client: FetchWithValidationOptions,
322
322
  }, Error, {
323
323
  offerNumber: string;
324
324
  title: string;
325
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
325
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
326
326
  currency: string;
327
327
  id: string;
328
328
  personId: string | null;
@@ -381,7 +381,7 @@ export declare function getOfferQueryOptions(client: FetchWithValidationOptions,
381
381
  queryFn?: import("@tanstack/react-query").QueryFunction<{
382
382
  offerNumber: string;
383
383
  title: string;
384
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
384
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
385
385
  currency: string;
386
386
  id: string;
387
387
  personId: string | null;
@@ -442,7 +442,7 @@ export declare function getOfferQueryOptions(client: FetchWithValidationOptions,
442
442
  [dataTagSymbol]: {
443
443
  offerNumber: string;
444
444
  title: string;
445
- status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
445
+ status: "expired" | "draft" | "published" | "sent" | "accepted" | "withdrawn" | "converted";
446
446
  currency: string;
447
447
  id: string;
448
448
  personId: string | null;
@@ -505,7 +505,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
505
505
  data: {
506
506
  orderNumber: string;
507
507
  title: string;
508
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
508
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
509
509
  currency: string;
510
510
  id: string;
511
511
  offerId: string | null;
@@ -549,7 +549,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
549
549
  data: {
550
550
  orderNumber: string;
551
551
  title: string;
552
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
552
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
553
553
  currency: string;
554
554
  id: string;
555
555
  offerId: string | null;
@@ -594,7 +594,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
594
594
  data: {
595
595
  orderNumber: string;
596
596
  title: string;
597
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
597
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
598
598
  currency: string;
599
599
  id: string;
600
600
  offerId: string | null;
@@ -641,7 +641,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
641
641
  data: {
642
642
  orderNumber: string;
643
643
  title: string;
644
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
644
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
645
645
  currency: string;
646
646
  id: string;
647
647
  offerId: string | null;
@@ -688,7 +688,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
688
688
  export declare function getOrderQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
689
689
  orderNumber: string;
690
690
  title: string;
691
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
691
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
692
692
  currency: string;
693
693
  id: string;
694
694
  offerId: string | null;
@@ -727,7 +727,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
727
727
  }, Error, {
728
728
  orderNumber: string;
729
729
  title: string;
730
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
730
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
731
731
  currency: string;
732
732
  id: string;
733
733
  offerId: string | null;
@@ -767,7 +767,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
767
767
  queryFn?: import("@tanstack/react-query").QueryFunction<{
768
768
  orderNumber: string;
769
769
  title: string;
770
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
770
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
771
771
  currency: string;
772
772
  id: string;
773
773
  offerId: string | null;
@@ -809,7 +809,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
809
809
  [dataTagSymbol]: {
810
810
  orderNumber: string;
811
811
  title: string;
812
- status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
812
+ status: "pending" | "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled";
813
813
  currency: string;
814
814
  id: string;
815
815
  offerId: string | null;
package/dist/schemas.d.ts CHANGED
@@ -16,11 +16,11 @@ export declare const offerRecordSchema: z.ZodObject<{
16
16
  offerNumber: z.ZodString;
17
17
  title: z.ZodString;
18
18
  status: z.ZodDefault<z.ZodEnum<{
19
+ expired: "expired";
19
20
  draft: "draft";
20
21
  published: "published";
21
22
  sent: "sent";
22
23
  accepted: "accepted";
23
- expired: "expired";
24
24
  withdrawn: "withdrawn";
25
25
  converted: "converted";
26
26
  }>>;
@@ -123,8 +123,8 @@ export declare const orderRecordSchema: z.ZodObject<{
123
123
  status: z.ZodDefault<z.ZodEnum<{
124
124
  pending: "pending";
125
125
  cancelled: "cancelled";
126
- draft: "draft";
127
126
  expired: "expired";
127
+ draft: "draft";
128
128
  confirmed: "confirmed";
129
129
  fulfilled: "fulfilled";
130
130
  }>>;
@@ -170,11 +170,11 @@ export declare const offerListResponse: z.ZodObject<{
170
170
  offerNumber: z.ZodString;
171
171
  title: z.ZodString;
172
172
  status: z.ZodDefault<z.ZodEnum<{
173
+ expired: "expired";
173
174
  draft: "draft";
174
175
  published: "published";
175
176
  sent: "sent";
176
177
  accepted: "accepted";
177
- expired: "expired";
178
178
  withdrawn: "withdrawn";
179
179
  converted: "converted";
180
180
  }>>;
@@ -278,11 +278,11 @@ export declare const offerSingleResponse: z.ZodObject<{
278
278
  offerNumber: z.ZodString;
279
279
  title: z.ZodString;
280
280
  status: z.ZodDefault<z.ZodEnum<{
281
+ expired: "expired";
281
282
  draft: "draft";
282
283
  published: "published";
283
284
  sent: "sent";
284
285
  accepted: "accepted";
285
- expired: "expired";
286
286
  withdrawn: "withdrawn";
287
287
  converted: "converted";
288
288
  }>>;
@@ -385,8 +385,8 @@ export declare const orderListResponse: z.ZodObject<{
385
385
  status: z.ZodDefault<z.ZodEnum<{
386
386
  pending: "pending";
387
387
  cancelled: "cancelled";
388
- draft: "draft";
389
388
  expired: "expired";
389
+ draft: "draft";
390
390
  confirmed: "confirmed";
391
391
  fulfilled: "fulfilled";
392
392
  }>>;
@@ -437,8 +437,8 @@ export declare const orderSingleResponse: z.ZodObject<{
437
437
  status: z.ZodDefault<z.ZodEnum<{
438
438
  pending: "pending";
439
439
  cancelled: "cancelled";
440
- draft: "draft";
441
440
  expired: "expired";
441
+ draft: "draft";
442
442
  confirmed: "confirmed";
443
443
  fulfilled: "fulfilled";
444
444
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/transactions-react",
3
- "version": "0.82.1",
3
+ "version": "0.84.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "zod": "^4.0.0",
44
- "@voyantjs/transactions": "0.82.1"
44
+ "@voyantjs/transactions": "0.84.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@tanstack/react-query": "^5.100.11",
@@ -52,12 +52,12 @@
52
52
  "typescript": "^6.0.2",
53
53
  "vitest": "^4.1.2",
54
54
  "zod": "^4.3.6",
55
- "@voyantjs/react": "0.82.1",
56
- "@voyantjs/transactions": "0.82.1",
55
+ "@voyantjs/react": "0.84.0",
56
+ "@voyantjs/transactions": "0.84.0",
57
57
  "@voyantjs/voyant-typescript-config": "0.1.0"
58
58
  },
59
59
  "dependencies": {
60
- "@voyantjs/react": "0.82.1"
60
+ "@voyantjs/react": "0.84.0"
61
61
  },
62
62
  "files": [
63
63
  "dist"