@voyantjs/products-react 0.9.0 → 0.11.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.
@@ -24,7 +24,7 @@ export declare function useProductMutation(): {
24
24
  create: import("@tanstack/react-query").UseMutationResult<{
25
25
  id: string;
26
26
  name: string;
27
- status: "draft" | "active" | "archived";
27
+ status: "active" | "draft" | "archived";
28
28
  description: string | null;
29
29
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
30
30
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -48,7 +48,7 @@ export declare function useProductMutation(): {
48
48
  update: import("@tanstack/react-query").UseMutationResult<{
49
49
  id: string;
50
50
  name: string;
51
- status: "draft" | "active" | "archived";
51
+ status: "active" | "draft" | "archived";
52
52
  description: string | null;
53
53
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
54
54
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -17,7 +17,7 @@ export declare function useProductOptionMutation(): {
17
17
  name: string;
18
18
  code: string | null;
19
19
  description: string | null;
20
- status: "draft" | "active" | "archived";
20
+ status: "active" | "draft" | "archived";
21
21
  isDefault: boolean;
22
22
  sortOrder: number;
23
23
  availableFrom: string | null;
@@ -31,7 +31,7 @@ export declare function useProductOptionMutation(): {
31
31
  name: string;
32
32
  code: string | null;
33
33
  description: string | null;
34
- status: "draft" | "active" | "archived";
34
+ status: "active" | "draft" | "archived";
35
35
  isDefault: boolean;
36
36
  sortOrder: number;
37
37
  availableFrom: string | null;
@@ -7,7 +7,7 @@ export declare function useProductOption(id: string | null | undefined, options?
7
7
  name: string;
8
8
  code: string | null;
9
9
  description: string | null;
10
- status: "draft" | "active" | "archived";
10
+ status: "active" | "draft" | "archived";
11
11
  isDefault: boolean;
12
12
  sortOrder: number;
13
13
  availableFrom: string | null;
@@ -9,7 +9,7 @@ export declare function useProductOptions(options?: UseProductOptionsListOptions
9
9
  name: string;
10
10
  code: string | null;
11
11
  description: string | null;
12
- status: "draft" | "active" | "archived";
12
+ status: "active" | "draft" | "archived";
13
13
  isDefault: boolean;
14
14
  sortOrder: number;
15
15
  availableFrom: string | null;
@@ -4,7 +4,7 @@ export interface UseProductOptions {
4
4
  export declare function useProduct(id: string | undefined, options?: UseProductOptions): import("@tanstack/react-query").UseQueryResult<{
5
5
  id: string;
6
6
  name: string;
7
- status: "draft" | "active" | "archived";
7
+ status: "active" | "draft" | "archived";
8
8
  description: string | null;
9
9
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
10
10
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -6,7 +6,7 @@ export declare function useProducts(options?: UseProductsOptions): import("@tans
6
6
  data: {
7
7
  id: string;
8
8
  name: string;
9
- status: "draft" | "active" | "archived";
9
+ status: "active" | "draft" | "archived";
10
10
  description: string | null;
11
11
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
12
12
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -18,7 +18,7 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
18
18
  data: {
19
19
  id: string;
20
20
  name: string;
21
- status: "draft" | "active" | "archived";
21
+ status: "active" | "draft" | "archived";
22
22
  description: string | null;
23
23
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
24
24
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -46,7 +46,7 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
46
46
  data: {
47
47
  id: string;
48
48
  name: string;
49
- status: "draft" | "active" | "archived";
49
+ status: "active" | "draft" | "archived";
50
50
  description: string | null;
51
51
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
52
52
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -75,7 +75,7 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
75
75
  data: {
76
76
  id: string;
77
77
  name: string;
78
- status: "draft" | "active" | "archived";
78
+ status: "active" | "draft" | "archived";
79
79
  description: string | null;
80
80
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
81
81
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -106,7 +106,7 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
106
106
  data: {
107
107
  id: string;
108
108
  name: string;
109
- status: "draft" | "active" | "archived";
109
+ status: "active" | "draft" | "archived";
110
110
  description: string | null;
111
111
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
112
112
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -137,7 +137,7 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
137
137
  export declare function getProductQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseProductOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
138
138
  id: string;
139
139
  name: string;
140
- status: "draft" | "active" | "archived";
140
+ status: "active" | "draft" | "archived";
141
141
  description: string | null;
142
142
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
143
143
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -160,7 +160,7 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
160
160
  }, Error, {
161
161
  id: string;
162
162
  name: string;
163
- status: "draft" | "active" | "archived";
163
+ status: "active" | "draft" | "archived";
164
164
  description: string | null;
165
165
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
166
166
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -184,7 +184,7 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
184
184
  queryFn?: import("@tanstack/react-query").QueryFunction<{
185
185
  id: string;
186
186
  name: string;
187
- status: "draft" | "active" | "archived";
187
+ status: "active" | "draft" | "archived";
188
188
  description: string | null;
189
189
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
190
190
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -210,7 +210,7 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
210
210
  [dataTagSymbol]: {
211
211
  id: string;
212
212
  name: string;
213
- status: "draft" | "active" | "archived";
213
+ status: "active" | "draft" | "archived";
214
214
  description: string | null;
215
215
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
216
216
  capacityMode: "free_sale" | "limited" | "on_request";
@@ -477,7 +477,7 @@ export declare function getProductOptionsQueryOptions(client: FetchWithValidatio
477
477
  name: string;
478
478
  code: string | null;
479
479
  description: string | null;
480
- status: "draft" | "active" | "archived";
480
+ status: "active" | "draft" | "archived";
481
481
  isDefault: boolean;
482
482
  sortOrder: number;
483
483
  availableFrom: string | null;
@@ -495,7 +495,7 @@ export declare function getProductOptionsQueryOptions(client: FetchWithValidatio
495
495
  name: string;
496
496
  code: string | null;
497
497
  description: string | null;
498
- status: "draft" | "active" | "archived";
498
+ status: "active" | "draft" | "archived";
499
499
  isDefault: boolean;
500
500
  sortOrder: number;
501
501
  availableFrom: string | null;
@@ -514,7 +514,7 @@ export declare function getProductOptionsQueryOptions(client: FetchWithValidatio
514
514
  name: string;
515
515
  code: string | null;
516
516
  description: string | null;
517
- status: "draft" | "active" | "archived";
517
+ status: "active" | "draft" | "archived";
518
518
  isDefault: boolean;
519
519
  sortOrder: number;
520
520
  availableFrom: string | null;
@@ -535,7 +535,7 @@ export declare function getProductOptionsQueryOptions(client: FetchWithValidatio
535
535
  name: string;
536
536
  code: string | null;
537
537
  description: string | null;
538
- status: "draft" | "active" | "archived";
538
+ status: "active" | "draft" | "archived";
539
539
  isDefault: boolean;
540
540
  sortOrder: number;
541
541
  availableFrom: string | null;
@@ -556,7 +556,7 @@ export declare function getProductOptionQueryOptions(client: FetchWithValidation
556
556
  name: string;
557
557
  code: string | null;
558
558
  description: string | null;
559
- status: "draft" | "active" | "archived";
559
+ status: "active" | "draft" | "archived";
560
560
  isDefault: boolean;
561
561
  sortOrder: number;
562
562
  availableFrom: string | null;
@@ -569,7 +569,7 @@ export declare function getProductOptionQueryOptions(client: FetchWithValidation
569
569
  name: string;
570
570
  code: string | null;
571
571
  description: string | null;
572
- status: "draft" | "active" | "archived";
572
+ status: "active" | "draft" | "archived";
573
573
  isDefault: boolean;
574
574
  sortOrder: number;
575
575
  availableFrom: string | null;
@@ -583,7 +583,7 @@ export declare function getProductOptionQueryOptions(client: FetchWithValidation
583
583
  name: string;
584
584
  code: string | null;
585
585
  description: string | null;
586
- status: "draft" | "active" | "archived";
586
+ status: "active" | "draft" | "archived";
587
587
  isDefault: boolean;
588
588
  sortOrder: number;
589
589
  availableFrom: string | null;
@@ -599,7 +599,7 @@ export declare function getProductOptionQueryOptions(client: FetchWithValidation
599
599
  name: string;
600
600
  code: string | null;
601
601
  description: string | null;
602
- status: "draft" | "active" | "archived";
602
+ status: "active" | "draft" | "archived";
603
603
  isDefault: boolean;
604
604
  sortOrder: number;
605
605
  availableFrom: string | null;
package/dist/schemas.d.ts CHANGED
@@ -19,8 +19,8 @@ export declare const productRecordSchema: z.ZodObject<{
19
19
  id: z.ZodString;
20
20
  name: z.ZodString;
21
21
  status: z.ZodEnum<{
22
- draft: "draft";
23
22
  active: "active";
23
+ draft: "draft";
24
24
  archived: "archived";
25
25
  }>;
26
26
  description: z.ZodNullable<z.ZodString>;
@@ -99,8 +99,8 @@ export declare const productOptionRecordSchema: z.ZodObject<{
99
99
  code: z.ZodNullable<z.ZodString>;
100
100
  description: z.ZodNullable<z.ZodString>;
101
101
  status: z.ZodEnum<{
102
- draft: "draft";
103
102
  active: "active";
103
+ draft: "draft";
104
104
  archived: "archived";
105
105
  }>;
106
106
  isDefault: z.ZodBoolean;
@@ -215,8 +215,8 @@ export declare const productListResponse: z.ZodObject<{
215
215
  id: z.ZodString;
216
216
  name: z.ZodString;
217
217
  status: z.ZodEnum<{
218
- draft: "draft";
219
218
  active: "active";
219
+ draft: "draft";
220
220
  archived: "archived";
221
221
  }>;
222
222
  description: z.ZodNullable<z.ZodString>;
@@ -264,8 +264,8 @@ export declare const productSingleResponse: z.ZodObject<{
264
264
  id: z.ZodString;
265
265
  name: z.ZodString;
266
266
  status: z.ZodEnum<{
267
- draft: "draft";
268
267
  active: "active";
268
+ draft: "draft";
269
269
  archived: "archived";
270
270
  }>;
271
271
  description: z.ZodNullable<z.ZodString>;
@@ -392,8 +392,8 @@ export declare const productOptionListResponse: z.ZodObject<{
392
392
  code: z.ZodNullable<z.ZodString>;
393
393
  description: z.ZodNullable<z.ZodString>;
394
394
  status: z.ZodEnum<{
395
- draft: "draft";
396
395
  active: "active";
396
+ draft: "draft";
397
397
  archived: "archived";
398
398
  }>;
399
399
  isDefault: z.ZodBoolean;
@@ -415,8 +415,8 @@ export declare const productOptionSingleResponse: z.ZodObject<{
415
415
  code: z.ZodNullable<z.ZodString>;
416
416
  description: z.ZodNullable<z.ZodString>;
417
417
  status: z.ZodEnum<{
418
- draft: "draft";
419
418
  active: "active";
419
+ draft: "draft";
420
420
  archived: "archived";
421
421
  }>;
422
422
  isDefault: z.ZodBoolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/products-react",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
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/products": "0.9.0"
38
+ "@voyantjs/products": "0.11.0"
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/products": "0.9.0",
50
- "@voyantjs/react": "0.9.0",
49
+ "@voyantjs/products": "0.11.0",
50
+ "@voyantjs/react": "0.11.0",
51
51
  "@voyantjs/voyant-typescript-config": "0.1.0"
52
52
  },
53
53
  "dependencies": {
54
- "@voyantjs/react": "0.9.0"
54
+ "@voyantjs/react": "0.11.0"
55
55
  },
56
56
  "files": [
57
57
  "dist"