@voyantjs/transactions-react 0.4.0 → 0.4.2

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 useOrderMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  orderNumber: string;
8
8
  title: string;
9
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
9
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
10
10
  currency: string;
11
11
  id: string;
12
12
  offerId: string | null;
@@ -36,7 +36,7 @@ export declare function useOrderMutation(): {
36
36
  title: string;
37
37
  currency: string;
38
38
  offerId?: string | null | undefined;
39
- status?: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled" | undefined;
39
+ status?: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled" | undefined;
40
40
  personId?: string | null | undefined;
41
41
  organizationId?: string | null | undefined;
42
42
  opportunityId?: string | null | undefined;
@@ -60,7 +60,7 @@ export declare function useOrderMutation(): {
60
60
  update: import("@tanstack/react-query").UseMutationResult<{
61
61
  orderNumber: string;
62
62
  title: string;
63
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
63
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
64
64
  currency: string;
65
65
  id: string;
66
66
  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: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
9
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
10
10
  currency: string;
11
11
  id: string;
12
12
  offerId: string | null;
@@ -417,7 +417,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
417
417
  data: {
418
418
  orderNumber: string;
419
419
  title: string;
420
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
420
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
421
421
  currency: string;
422
422
  id: string;
423
423
  offerId: string | null;
@@ -450,7 +450,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
450
450
  data: {
451
451
  orderNumber: string;
452
452
  title: string;
453
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
453
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
454
454
  currency: string;
455
455
  id: string;
456
456
  offerId: string | null;
@@ -484,7 +484,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
484
484
  data: {
485
485
  orderNumber: string;
486
486
  title: string;
487
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
487
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
488
488
  currency: string;
489
489
  id: string;
490
490
  offerId: string | null;
@@ -520,7 +520,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
520
520
  data: {
521
521
  orderNumber: string;
522
522
  title: string;
523
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
523
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
524
524
  currency: string;
525
525
  id: string;
526
526
  offerId: string | null;
@@ -556,7 +556,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
556
556
  export declare function getOrderQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
557
557
  orderNumber: string;
558
558
  title: string;
559
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
559
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
560
560
  currency: string;
561
561
  id: string;
562
562
  offerId: string | null;
@@ -584,7 +584,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
584
584
  }, Error, {
585
585
  orderNumber: string;
586
586
  title: string;
587
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
587
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
588
588
  currency: string;
589
589
  id: string;
590
590
  offerId: string | null;
@@ -613,7 +613,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
613
613
  queryFn?: import("@tanstack/react-query").QueryFunction<{
614
614
  orderNumber: string;
615
615
  title: string;
616
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
616
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
617
617
  currency: string;
618
618
  id: string;
619
619
  offerId: string | null;
@@ -644,7 +644,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
644
644
  [dataTagSymbol]: {
645
645
  orderNumber: string;
646
646
  title: string;
647
- status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
647
+ status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
648
648
  currency: string;
649
649
  id: string;
650
650
  offerId: string | null;
package/dist/schemas.d.ts CHANGED
@@ -76,9 +76,9 @@ export declare const orderRecordSchema: z.ZodObject<{
76
76
  orderNumber: z.ZodString;
77
77
  title: z.ZodString;
78
78
  status: z.ZodDefault<z.ZodEnum<{
79
+ pending: "pending";
79
80
  draft: "draft";
80
81
  expired: "expired";
81
- pending: "pending";
82
82
  confirmed: "confirmed";
83
83
  fulfilled: "fulfilled";
84
84
  cancelled: "cancelled";
@@ -237,9 +237,9 @@ export declare const orderListResponse: z.ZodObject<{
237
237
  orderNumber: z.ZodString;
238
238
  title: z.ZodString;
239
239
  status: z.ZodDefault<z.ZodEnum<{
240
+ pending: "pending";
240
241
  draft: "draft";
241
242
  expired: "expired";
242
- pending: "pending";
243
243
  confirmed: "confirmed";
244
244
  fulfilled: "fulfilled";
245
245
  cancelled: "cancelled";
@@ -278,9 +278,9 @@ export declare const orderSingleResponse: z.ZodObject<{
278
278
  orderNumber: z.ZodString;
279
279
  title: z.ZodString;
280
280
  status: z.ZodDefault<z.ZodEnum<{
281
+ pending: "pending";
281
282
  draft: "draft";
282
283
  expired: "expired";
283
- pending: "pending";
284
284
  confirmed: "confirmed";
285
285
  fulfilled: "fulfilled";
286
286
  cancelled: "cancelled";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/transactions-react",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "react": "^19.0.0",
36
36
  "react-dom": "^19.0.0",
37
37
  "zod": "^4.0.0",
38
- "@voyantjs/transactions": "0.4.0"
38
+ "@voyantjs/transactions": "0.4.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tanstack/react-query": "^5.96.2",
@@ -46,12 +46,12 @@
46
46
  "typescript": "^6.0.2",
47
47
  "vitest": "^4.1.2",
48
48
  "zod": "^4.3.6",
49
- "@voyantjs/react": "0.4.0",
50
- "@voyantjs/transactions": "0.4.0",
49
+ "@voyantjs/react": "0.4.2",
50
+ "@voyantjs/transactions": "0.4.2",
51
51
  "@voyantjs/voyant-typescript-config": "0.1.0"
52
52
  },
53
53
  "dependencies": {
54
- "@voyantjs/react": "0.4.0"
54
+ "@voyantjs/react": "0.4.2"
55
55
  },
56
56
  "files": [
57
57
  "dist"