@voyant-travel/inventory-react 0.1.0 → 0.2.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.
@@ -9,10 +9,10 @@ export declare function useProductExtraMutation(): {
9
9
  code: string | null;
10
10
  name: string;
11
11
  description: string | null;
12
- selectionType: "optional" | "required" | "default_selected" | "unavailable";
13
- pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
12
+ selectionType: "optional" | "required" | "unavailable" | "default_selected";
13
+ pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
14
14
  pricedPerPerson: boolean;
15
- collectionMode: "included" | "booking_total" | "cash_on_trip" | "external" | "none";
15
+ collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
16
16
  showOnSlotManifest: boolean;
17
17
  minQuantity: number | null;
18
18
  maxQuantity: number | null;
@@ -28,10 +28,10 @@ export declare function useProductExtraMutation(): {
28
28
  supplierId?: string | null | undefined;
29
29
  code?: string | null | undefined;
30
30
  description?: string | null | undefined;
31
- selectionType?: "optional" | "required" | "default_selected" | "unavailable" | undefined;
32
- pricingMode?: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | undefined;
31
+ selectionType?: "optional" | "required" | "unavailable" | "default_selected" | undefined;
32
+ pricingMode?: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | undefined;
33
33
  pricedPerPerson?: boolean | undefined;
34
- collectionMode?: "included" | "booking_total" | "cash_on_trip" | "external" | "none" | undefined;
34
+ collectionMode?: "none" | "external" | "cash_on_trip" | "included" | "booking_total" | undefined;
35
35
  showOnSlotManifest?: boolean | undefined;
36
36
  minQuantity?: number | null | undefined;
37
37
  maxQuantity?: number | null | undefined;
@@ -46,10 +46,10 @@ export declare function useProductExtraMutation(): {
46
46
  code: string | null;
47
47
  name: string;
48
48
  description: string | null;
49
- selectionType: "optional" | "required" | "default_selected" | "unavailable";
50
- pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
49
+ selectionType: "optional" | "required" | "unavailable" | "default_selected";
50
+ pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
51
51
  pricedPerPerson: boolean;
52
- collectionMode: "included" | "booking_total" | "cash_on_trip" | "external" | "none";
52
+ collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
53
53
  showOnSlotManifest: boolean;
54
54
  minQuantity: number | null;
55
55
  maxQuantity: number | null;
@@ -250,7 +250,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
250
250
  collectedBy: string | null;
251
251
  notes: string | null;
252
252
  metadata: Record<string, unknown> | null;
253
- source: "selection" | "empty" | "booking_item";
253
+ source: "empty" | "selection" | "booking_item";
254
254
  }[];
255
255
  }, Error, {
256
256
  slot: {
@@ -314,7 +314,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
314
314
  collectedBy: string | null;
315
315
  notes: string | null;
316
316
  metadata: Record<string, unknown> | null;
317
- source: "selection" | "empty" | "booking_item";
317
+ source: "empty" | "selection" | "booking_item";
318
318
  }[];
319
319
  }, readonly ["voyant", "extras", "slot-manifests", string]>, "queryFn"> & {
320
320
  queryFn?: import("@tanstack/react-query").QueryFunction<{
@@ -379,7 +379,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
379
379
  collectedBy: string | null;
380
380
  notes: string | null;
381
381
  metadata: Record<string, unknown> | null;
382
- source: "selection" | "empty" | "booking_item";
382
+ source: "empty" | "selection" | "booking_item";
383
383
  }[];
384
384
  }, readonly ["voyant", "extras", "slot-manifests", string], never> | undefined;
385
385
  } & {
@@ -446,7 +446,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
446
446
  collectedBy: string | null;
447
447
  notes: string | null;
448
448
  metadata: Record<string, unknown> | null;
449
- source: "selection" | "empty" | "booking_item";
449
+ source: "empty" | "selection" | "booking_item";
450
450
  }[];
451
451
  };
452
452
  [dataTagErrorSymbol]: Error;
@@ -5,9 +5,9 @@ export declare function useProductActionLedger(productId: string | null | undefi
5
5
  occurredAt: string;
6
6
  actionName: string;
7
7
  actionVersion: string;
8
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
8
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
9
9
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
10
- evaluatedRisk: "low" | "medium" | "high" | "critical";
10
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
11
11
  actorType: string | null;
12
12
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
13
13
  principalId: string;
@@ -10,9 +10,9 @@ export declare function listProductActionLedger(client: FetchWithValidationOptio
10
10
  occurredAt: string;
11
11
  actionName: string;
12
12
  actionVersion: string;
13
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
13
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
14
14
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
15
- evaluatedRisk: "low" | "medium" | "high" | "critical";
15
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
16
16
  actorType: string | null;
17
17
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
18
18
  principalId: string;
@@ -9,9 +9,9 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
9
9
  occurredAt: string;
10
10
  actionName: string;
11
11
  actionVersion: string;
12
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
12
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
13
13
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
14
- evaluatedRisk: "low" | "medium" | "high" | "critical";
14
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
15
15
  actorType: string | null;
16
16
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
17
17
  principalId: string;
@@ -54,9 +54,9 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
54
54
  occurredAt: string;
55
55
  actionName: string;
56
56
  actionVersion: string;
57
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
57
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
58
58
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
59
- evaluatedRisk: "low" | "medium" | "high" | "critical";
59
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
60
60
  actorType: string | null;
61
61
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
62
62
  principalId: string;
@@ -100,9 +100,9 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
100
100
  occurredAt: string;
101
101
  actionName: string;
102
102
  actionVersion: string;
103
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
103
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
104
104
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
105
- evaluatedRisk: "low" | "medium" | "high" | "critical";
105
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
106
106
  actorType: string | null;
107
107
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
108
108
  principalId: string;
@@ -148,9 +148,9 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
148
148
  occurredAt: string;
149
149
  actionName: string;
150
150
  actionVersion: string;
151
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
151
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
152
152
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
153
- evaluatedRisk: "low" | "medium" | "high" | "critical";
153
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
154
154
  actorType: string | null;
155
155
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
156
156
  principalId: string;
package/dist/schemas.d.ts CHANGED
@@ -876,6 +876,7 @@ export declare const productMediaResponse: z.ZodObject<{
876
876
  }, z.core.$strip>;
877
877
  }, z.core.$strip>;
878
878
  export declare const productActionLedgerActionKindSchema: z.ZodEnum<{
879
+ reverse: "reverse";
879
880
  read: "read";
880
881
  create: "create";
881
882
  update: "update";
@@ -883,7 +884,6 @@ export declare const productActionLedgerActionKindSchema: z.ZodEnum<{
883
884
  execute: "execute";
884
885
  approve: "approve";
885
886
  reject: "reject";
886
- reverse: "reverse";
887
887
  compensate: "compensate";
888
888
  duplicate: "duplicate";
889
889
  }>;
@@ -901,9 +901,9 @@ export declare const productActionLedgerStatusSchema: z.ZodEnum<{
901
901
  superseded: "superseded";
902
902
  }>;
903
903
  export declare const productActionLedgerRiskSchema: z.ZodEnum<{
904
+ high: "high";
904
905
  low: "low";
905
906
  medium: "medium";
906
- high: "high";
907
907
  critical: "critical";
908
908
  }>;
909
909
  export declare const productActionLedgerPrincipalTypeSchema: z.ZodEnum<{
@@ -919,6 +919,7 @@ export declare const productActionLedgerEntrySchema: z.ZodObject<{
919
919
  actionName: z.ZodString;
920
920
  actionVersion: z.ZodString;
921
921
  actionKind: z.ZodEnum<{
922
+ reverse: "reverse";
922
923
  read: "read";
923
924
  create: "create";
924
925
  update: "update";
@@ -926,7 +927,6 @@ export declare const productActionLedgerEntrySchema: z.ZodObject<{
926
927
  execute: "execute";
927
928
  approve: "approve";
928
929
  reject: "reject";
929
- reverse: "reverse";
930
930
  compensate: "compensate";
931
931
  duplicate: "duplicate";
932
932
  }>;
@@ -944,9 +944,9 @@ export declare const productActionLedgerEntrySchema: z.ZodObject<{
944
944
  superseded: "superseded";
945
945
  }>;
946
946
  evaluatedRisk: z.ZodEnum<{
947
+ high: "high";
947
948
  low: "low";
948
949
  medium: "medium";
949
- high: "high";
950
950
  critical: "critical";
951
951
  }>;
952
952
  actorType: z.ZodNullable<z.ZodString>;
@@ -999,6 +999,7 @@ export declare const productActionLedgerListResponse: z.ZodObject<{
999
999
  actionName: z.ZodString;
1000
1000
  actionVersion: z.ZodString;
1001
1001
  actionKind: z.ZodEnum<{
1002
+ reverse: "reverse";
1002
1003
  read: "read";
1003
1004
  create: "create";
1004
1005
  update: "update";
@@ -1006,7 +1007,6 @@ export declare const productActionLedgerListResponse: z.ZodObject<{
1006
1007
  execute: "execute";
1007
1008
  approve: "approve";
1008
1009
  reject: "reject";
1009
- reverse: "reverse";
1010
1010
  compensate: "compensate";
1011
1011
  duplicate: "duplicate";
1012
1012
  }>;
@@ -1024,9 +1024,9 @@ export declare const productActionLedgerListResponse: z.ZodObject<{
1024
1024
  superseded: "superseded";
1025
1025
  }>;
1026
1026
  evaluatedRisk: z.ZodEnum<{
1027
+ high: "high";
1027
1028
  low: "low";
1028
1029
  medium: "medium";
1029
- high: "high";
1030
1030
  critical: "critical";
1031
1031
  }>;
1032
1032
  actorType: z.ZodNullable<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/inventory-react",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -85,12 +85,12 @@
85
85
  "react-dom": "^19.0.0",
86
86
  "react-hook-form": "^7.60.0",
87
87
  "zod": "^4.0.0",
88
- "@voyant-travel/admin": "^0.111.0",
89
- "@voyant-travel/catalog-react": "^0.117.2",
90
- "@voyant-travel/finance": "^0.119.5",
91
- "@voyant-travel/finance-react": "^0.119.5",
88
+ "@voyant-travel/admin": "^0.111.1",
89
+ "@voyant-travel/catalog-react": "^0.118.0",
90
+ "@voyant-travel/finance": "^0.120.0",
91
+ "@voyant-travel/finance-react": "^0.120.0",
92
+ "@voyant-travel/inventory": "^0.2.0",
92
93
  "@voyant-travel/ui": "^0.106.1",
93
- "@voyant-travel/inventory": "^0.1.0",
94
94
  "@voyant-travel/utils": "^0.105.1"
95
95
  },
96
96
  "peerDependenciesMeta": {
@@ -129,16 +129,16 @@
129
129
  "typescript": "^6.0.2",
130
130
  "vitest": "^4.1.2",
131
131
  "zod": "^4.3.6",
132
- "@voyant-travel/admin": "^0.111.0",
133
- "@voyant-travel/finance": "^0.119.5",
134
- "@voyant-travel/catalog-react": "^0.117.2",
135
- "@voyant-travel/finance-react": "^0.119.5",
136
- "@voyant-travel/react": "^0.104.1",
137
- "@voyant-travel/inventory": "^0.1.0",
132
+ "@voyant-travel/admin": "^0.111.1",
133
+ "@voyant-travel/catalog-react": "^0.118.0",
134
+ "@voyant-travel/finance": "^0.120.0",
135
+ "@voyant-travel/finance-react": "^0.120.0",
138
136
  "@voyant-travel/i18n": "^0.106.1",
139
- "@voyant-travel/voyant-typescript-config": "^0.1.0",
137
+ "@voyant-travel/inventory": "^0.2.0",
138
+ "@voyant-travel/react": "^0.104.1",
139
+ "@voyant-travel/ui": "^0.106.1",
140
140
  "@voyant-travel/utils": "^0.105.1",
141
- "@voyant-travel/ui": "^0.106.1"
141
+ "@voyant-travel/voyant-typescript-config": "^0.1.0"
142
142
  },
143
143
  "files": [
144
144
  "dist",