@voyantjs/transactions-react 0.28.1 → 0.29.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 useOrderMutation(): {
|
|
|
6
6
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
7
|
orderNumber: string;
|
|
8
8
|
title: string;
|
|
9
|
-
status: "pending" | "
|
|
9
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
10
10
|
currency: string;
|
|
11
11
|
id: string;
|
|
12
12
|
offerId: string | null;
|
|
@@ -46,7 +46,7 @@ export declare function useOrderMutation(): {
|
|
|
46
46
|
title: string;
|
|
47
47
|
currency: string;
|
|
48
48
|
offerId?: string | null | undefined;
|
|
49
|
-
status?: "pending" | "
|
|
49
|
+
status?: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled" | undefined;
|
|
50
50
|
personId?: string | null | undefined;
|
|
51
51
|
organizationId?: string | null | undefined;
|
|
52
52
|
opportunityId?: string | null | undefined;
|
|
@@ -80,7 +80,7 @@ export declare function useOrderMutation(): {
|
|
|
80
80
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
81
81
|
orderNumber: string;
|
|
82
82
|
title: string;
|
|
83
|
-
status: "pending" | "
|
|
83
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
84
84
|
currency: string;
|
|
85
85
|
id: string;
|
|
86
86
|
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" | "
|
|
9
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
10
10
|
currency: string;
|
|
11
11
|
id: string;
|
|
12
12
|
offerId: string | null;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -497,7 +497,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
|
|
|
497
497
|
data: {
|
|
498
498
|
orderNumber: string;
|
|
499
499
|
title: string;
|
|
500
|
-
status: "pending" | "
|
|
500
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
501
501
|
currency: string;
|
|
502
502
|
id: string;
|
|
503
503
|
offerId: string | null;
|
|
@@ -540,7 +540,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
|
|
|
540
540
|
data: {
|
|
541
541
|
orderNumber: string;
|
|
542
542
|
title: string;
|
|
543
|
-
status: "pending" | "
|
|
543
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
544
544
|
currency: string;
|
|
545
545
|
id: string;
|
|
546
546
|
offerId: string | null;
|
|
@@ -584,7 +584,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
|
|
|
584
584
|
data: {
|
|
585
585
|
orderNumber: string;
|
|
586
586
|
title: string;
|
|
587
|
-
status: "pending" | "
|
|
587
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
588
588
|
currency: string;
|
|
589
589
|
id: string;
|
|
590
590
|
offerId: string | null;
|
|
@@ -630,7 +630,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
|
|
|
630
630
|
data: {
|
|
631
631
|
orderNumber: string;
|
|
632
632
|
title: string;
|
|
633
|
-
status: "pending" | "
|
|
633
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
634
634
|
currency: string;
|
|
635
635
|
id: string;
|
|
636
636
|
offerId: string | null;
|
|
@@ -676,7 +676,7 @@ export declare function getOrdersQueryOptions(client: FetchWithValidationOptions
|
|
|
676
676
|
export declare function getOrderQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
677
677
|
orderNumber: string;
|
|
678
678
|
title: string;
|
|
679
|
-
status: "pending" | "
|
|
679
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
680
680
|
currency: string;
|
|
681
681
|
id: string;
|
|
682
682
|
offerId: string | null;
|
|
@@ -714,7 +714,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
|
|
|
714
714
|
}, Error, {
|
|
715
715
|
orderNumber: string;
|
|
716
716
|
title: string;
|
|
717
|
-
status: "pending" | "
|
|
717
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
718
718
|
currency: string;
|
|
719
719
|
id: string;
|
|
720
720
|
offerId: string | null;
|
|
@@ -753,7 +753,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
|
|
|
753
753
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
754
754
|
orderNumber: string;
|
|
755
755
|
title: string;
|
|
756
|
-
status: "pending" | "
|
|
756
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
757
757
|
currency: string;
|
|
758
758
|
id: string;
|
|
759
759
|
offerId: string | null;
|
|
@@ -794,7 +794,7 @@ export declare function getOrderQueryOptions(client: FetchWithValidationOptions,
|
|
|
794
794
|
[dataTagSymbol]: {
|
|
795
795
|
orderNumber: string;
|
|
796
796
|
title: string;
|
|
797
|
-
status: "pending" | "
|
|
797
|
+
status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
|
|
798
798
|
currency: string;
|
|
799
799
|
id: string;
|
|
800
800
|
offerId: string | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -121,11 +121,11 @@ export declare const orderRecordSchema: z.ZodObject<{
|
|
|
121
121
|
title: z.ZodString;
|
|
122
122
|
status: z.ZodDefault<z.ZodEnum<{
|
|
123
123
|
pending: "pending";
|
|
124
|
+
cancelled: "cancelled";
|
|
124
125
|
draft: "draft";
|
|
125
126
|
expired: "expired";
|
|
126
127
|
confirmed: "confirmed";
|
|
127
128
|
fulfilled: "fulfilled";
|
|
128
|
-
cancelled: "cancelled";
|
|
129
129
|
}>>;
|
|
130
130
|
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -380,11 +380,11 @@ export declare const orderListResponse: z.ZodObject<{
|
|
|
380
380
|
title: z.ZodString;
|
|
381
381
|
status: z.ZodDefault<z.ZodEnum<{
|
|
382
382
|
pending: "pending";
|
|
383
|
+
cancelled: "cancelled";
|
|
383
384
|
draft: "draft";
|
|
384
385
|
expired: "expired";
|
|
385
386
|
confirmed: "confirmed";
|
|
386
387
|
fulfilled: "fulfilled";
|
|
387
|
-
cancelled: "cancelled";
|
|
388
388
|
}>>;
|
|
389
389
|
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
390
|
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -431,11 +431,11 @@ export declare const orderSingleResponse: z.ZodObject<{
|
|
|
431
431
|
title: z.ZodString;
|
|
432
432
|
status: z.ZodDefault<z.ZodEnum<{
|
|
433
433
|
pending: "pending";
|
|
434
|
+
cancelled: "cancelled";
|
|
434
435
|
draft: "draft";
|
|
435
436
|
expired: "expired";
|
|
436
437
|
confirmed: "confirmed";
|
|
437
438
|
fulfilled: "fulfilled";
|
|
438
|
-
cancelled: "cancelled";
|
|
439
439
|
}>>;
|
|
440
440
|
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
441
|
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/transactions-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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.
|
|
44
|
+
"@voyantjs/transactions": "0.29.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -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.
|
|
56
|
-
"@voyantjs/transactions": "0.
|
|
55
|
+
"@voyantjs/react": "0.29.0",
|
|
56
|
+
"@voyantjs/transactions": "0.29.0",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.29.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|