@voyant-travel/operations-react 0.17.0 → 0.17.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.
- package/dist/availability/index.d.ts +1 -1
- package/dist/availability/index.d.ts.map +1 -1
- package/dist/availability/index.js +1 -1
- package/dist/availability/schemas.d.ts +1 -1
- package/dist/availability/schemas.d.ts.map +1 -1
- package/dist/availability/schemas.js +1 -1
- package/dist/ground/schemas.js +1 -1
- package/dist/places/hooks/use-property-group-member-mutation.d.ts +3 -3
- package/dist/places/hooks/use-property-group-members.d.ts +1 -1
- package/dist/places/hooks/use-property-group-mutation.d.ts +3 -3
- package/dist/places/hooks/use-property-group.d.ts +1 -1
- package/dist/places/hooks/use-property-groups.d.ts +1 -1
- package/dist/places/query-options.d.ts +16 -16
- package/dist/places/schemas.d.ts +6 -6
- package/dist/places/schemas.js +1 -1
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { instantToSlotLocal, type LocalToInstantInput, localToInstant, type SlotLocalDateTime, type SlotTimeRangeInput, slotEndDateLocal, slotLocalEnd, slotLocalStart, } from "@voyant-travel/operations";
|
|
1
|
+
export { instantToSlotLocal, type LocalToInstantInput, localToInstant, type SlotLocalDateTime, type SlotTimeRangeInput, slotEndDateLocal, slotLocalEnd, slotLocalStart, } from "@voyant-travel/operations/availability/slot-timezone";
|
|
2
2
|
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
3
3
|
export * from "./constants.js";
|
|
4
4
|
export * from "./hooks/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,4BAA4B,EAC5B,KAAK,8BAA8B,EACnC,0BAA0B,EAC1B,KAAK,+BAA+B,GACrC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,uCAAuC,EACvC,uBAAuB,EACvB,oBAAoB,EACpB,qCAAqC,EACrC,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,mBAAmB,EACnB,4BAA4B,EAC5B,oBAAoB,EACpB,mCAAmC,EACnC,yBAAyB,GAC1B,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { instantToSlotLocal, localToInstant, slotEndDateLocal, slotLocalEnd, slotLocalStart, } from "@voyant-travel/operations";
|
|
1
|
+
export { instantToSlotLocal, localToInstant, slotEndDateLocal, slotLocalEnd, slotLocalStart, } from "@voyant-travel/operations/availability/slot-timezone";
|
|
2
2
|
export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
|
|
3
3
|
export * from "./constants.js";
|
|
4
4
|
export * from "./hooks/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insertAllocationResourceSchema, insertAvailabilityCloseoutSchema, insertAvailabilityPickupPointSchema, insertAvailabilityRuleSchema, insertAvailabilitySlotSchema, insertAvailabilityStartTimeSchema, updateAllocationResourceSchema, updateAvailabilityCloseoutSchema, updateAvailabilityPickupPointSchema, updateAvailabilityRuleSchema, updateAvailabilitySlotSchema, updateAvailabilityStartTimeSchema, upsertResourceTemplateSchema } from "@voyant-travel/operations";
|
|
1
|
+
import { insertAllocationResourceSchema, insertAvailabilityCloseoutSchema, insertAvailabilityPickupPointSchema, insertAvailabilityRuleSchema, insertAvailabilitySlotSchema, insertAvailabilityStartTimeSchema, updateAllocationResourceSchema, updateAvailabilityCloseoutSchema, updateAvailabilityPickupPointSchema, updateAvailabilityRuleSchema, updateAvailabilitySlotSchema, updateAvailabilityStartTimeSchema, upsertResourceTemplateSchema } from "@voyant-travel/operations/validation";
|
|
2
2
|
import { listResponseSchema } from "@voyant-travel/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const paginatedEnvelope: typeof listResponseSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/availability/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,4BAA4B,EAC5B,4BAA4B,EAC5B,iCAAiC,EACjC,8BAA8B,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,4BAA4B,EAC5B,4BAA4B,EAC5B,iCAAiC,EACjC,4BAA4B,EAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/availability/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,4BAA4B,EAC5B,4BAA4B,EAC5B,iCAAiC,EACjC,8BAA8B,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,4BAA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AM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC1F,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC1F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACtF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AACpG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insertAllocationResourceSchema, insertAvailabilityCloseoutSchema, insertAvailabilityPickupPointSchema, insertAvailabilityRuleSchema, insertAvailabilitySlotSchema, insertAvailabilityStartTimeSchema, updateAllocationResourceSchema, updateAvailabilityCloseoutSchema, updateAvailabilityPickupPointSchema, updateAvailabilityRuleSchema, updateAvailabilitySlotSchema, updateAvailabilityStartTimeSchema, upsertResourceTemplateSchema, } from "@voyant-travel/operations";
|
|
1
|
+
import { insertAllocationResourceSchema, insertAvailabilityCloseoutSchema, insertAvailabilityPickupPointSchema, insertAvailabilityRuleSchema, insertAvailabilitySlotSchema, insertAvailabilityStartTimeSchema, updateAllocationResourceSchema, updateAvailabilityCloseoutSchema, updateAvailabilityPickupPointSchema, updateAvailabilityRuleSchema, updateAvailabilitySlotSchema, updateAvailabilityStartTimeSchema, upsertResourceTemplateSchema, } from "@voyant-travel/operations/validation";
|
|
2
2
|
import { listResponseSchema } from "@voyant-travel/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export const paginatedEnvelope = listResponseSchema;
|
package/dist/ground/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insertGroundDriverSchema, insertGroundOperatorSchema, insertGroundVehicleSchema, } from "@voyant-travel/operations";
|
|
1
|
+
import { insertGroundDriverSchema, insertGroundOperatorSchema, insertGroundVehicleSchema, } from "@voyant-travel/operations/validation";
|
|
2
2
|
import { listResponseSchema } from "@voyant-travel/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export const paginatedEnvelope = listResponseSchema;
|
|
@@ -6,7 +6,7 @@ export declare function usePropertyGroupMemberMutation(): {
|
|
|
6
6
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
7
|
groupId: string;
|
|
8
8
|
propertyId: string;
|
|
9
|
-
membershipRole: "other" | "member" | "
|
|
9
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
10
10
|
isPrimary: boolean;
|
|
11
11
|
id: string;
|
|
12
12
|
validFrom: string | null;
|
|
@@ -15,7 +15,7 @@ export declare function usePropertyGroupMemberMutation(): {
|
|
|
15
15
|
}, Error, {
|
|
16
16
|
groupId: string;
|
|
17
17
|
propertyId: string;
|
|
18
|
-
membershipRole?: "other" | "member" | "
|
|
18
|
+
membershipRole?: "other" | "member" | "flagship" | "managed" | "franchise" | undefined;
|
|
19
19
|
isPrimary?: boolean | undefined;
|
|
20
20
|
validFrom?: string | null | undefined;
|
|
21
21
|
validTo?: string | null | undefined;
|
|
@@ -24,7 +24,7 @@ export declare function usePropertyGroupMemberMutation(): {
|
|
|
24
24
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
25
25
|
groupId: string;
|
|
26
26
|
propertyId: string;
|
|
27
|
-
membershipRole: "other" | "member" | "
|
|
27
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
28
28
|
isPrimary: boolean;
|
|
29
29
|
id: string;
|
|
30
30
|
validFrom: string | null;
|
|
@@ -6,7 +6,7 @@ export declare function usePropertyGroupMembers(options: UsePropertyGroupMembers
|
|
|
6
6
|
data: {
|
|
7
7
|
groupId: string;
|
|
8
8
|
propertyId: string;
|
|
9
|
-
membershipRole: "other" | "member" | "
|
|
9
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
10
10
|
isPrimary: boolean;
|
|
11
11
|
id: string;
|
|
12
12
|
validFrom: string | null;
|
|
@@ -4,7 +4,7 @@ export type CreatePropertyGroupInput = z.input<typeof insertPropertyGroupSchema>
|
|
|
4
4
|
export type UpdatePropertyGroupInput = z.input<typeof updatePropertyGroupSchema>;
|
|
5
5
|
export declare function usePropertyGroupMutation(): {
|
|
6
6
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
|
-
groupType: "other" | "brand" | "
|
|
7
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
8
8
|
status: "active" | "inactive" | "archived";
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
@@ -18,7 +18,7 @@ export declare function usePropertyGroupMutation(): {
|
|
|
18
18
|
}, Error, {
|
|
19
19
|
name: string;
|
|
20
20
|
parentGroupId?: string | null | undefined;
|
|
21
|
-
groupType?: "other" | "brand" | "
|
|
21
|
+
groupType?: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster" | undefined;
|
|
22
22
|
status?: "active" | "inactive" | "archived" | undefined;
|
|
23
23
|
code?: string | null | undefined;
|
|
24
24
|
brandName?: string | null | undefined;
|
|
@@ -28,7 +28,7 @@ export declare function usePropertyGroupMutation(): {
|
|
|
28
28
|
metadata?: Record<string, unknown> | null | undefined;
|
|
29
29
|
}, unknown>;
|
|
30
30
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
31
|
-
groupType: "other" | "brand" | "
|
|
31
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
32
32
|
status: "active" | "inactive" | "archived";
|
|
33
33
|
name: string;
|
|
34
34
|
id: string;
|
|
@@ -2,7 +2,7 @@ export interface UsePropertyGroupOptions {
|
|
|
2
2
|
enabled?: boolean;
|
|
3
3
|
}
|
|
4
4
|
export declare function usePropertyGroup(id: string | null | undefined, options?: UsePropertyGroupOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
-
groupType: "other" | "brand" | "
|
|
5
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
6
6
|
status: "active" | "inactive" | "archived";
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
@@ -4,7 +4,7 @@ export interface UsePropertyGroupsOptions extends PropertyGroupsListFilters {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function usePropertyGroups(options?: UsePropertyGroupsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
6
|
data: {
|
|
7
|
-
groupType: "other" | "brand" | "
|
|
7
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
8
8
|
status: "active" | "inactive" | "archived";
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
@@ -567,7 +567,7 @@ export declare function getPropertyQueryOptions(client: FetchWithValidationOptio
|
|
|
567
567
|
};
|
|
568
568
|
export declare function getPropertyGroupsQueryOptions(client: FetchWithValidationOptions, options?: UsePropertyGroupsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
569
569
|
data: {
|
|
570
|
-
groupType: "other" | "brand" | "
|
|
570
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
571
571
|
status: "active" | "inactive" | "archived";
|
|
572
572
|
name: string;
|
|
573
573
|
id: string;
|
|
@@ -584,7 +584,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
584
584
|
offset: number;
|
|
585
585
|
}, Error, {
|
|
586
586
|
data: {
|
|
587
|
-
groupType: "other" | "brand" | "
|
|
587
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
588
588
|
status: "active" | "inactive" | "archived";
|
|
589
589
|
name: string;
|
|
590
590
|
id: string;
|
|
@@ -602,7 +602,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
602
602
|
}, readonly ["facilities", "property-groups", import("./query-keys.js").PropertyGroupsListFilters]>, "queryFn"> & {
|
|
603
603
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
604
604
|
data: {
|
|
605
|
-
groupType: "other" | "brand" | "
|
|
605
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
606
606
|
status: "active" | "inactive" | "archived";
|
|
607
607
|
name: string;
|
|
608
608
|
id: string;
|
|
@@ -622,7 +622,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
622
622
|
queryKey: readonly ["facilities", "property-groups", import("./query-keys.js").PropertyGroupsListFilters] & {
|
|
623
623
|
[dataTagSymbol]: {
|
|
624
624
|
data: {
|
|
625
|
-
groupType: "other" | "brand" | "
|
|
625
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
626
626
|
status: "active" | "inactive" | "archived";
|
|
627
627
|
name: string;
|
|
628
628
|
id: string;
|
|
@@ -642,7 +642,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
642
642
|
};
|
|
643
643
|
};
|
|
644
644
|
export declare function getPropertyGroupQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
645
|
-
groupType: "other" | "brand" | "
|
|
645
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
646
646
|
status: "active" | "inactive" | "archived";
|
|
647
647
|
name: string;
|
|
648
648
|
id: string;
|
|
@@ -654,7 +654,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
654
654
|
notes: string | null;
|
|
655
655
|
metadata?: Record<string, unknown> | null | undefined;
|
|
656
656
|
}, Error, {
|
|
657
|
-
groupType: "other" | "brand" | "
|
|
657
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
658
658
|
status: "active" | "inactive" | "archived";
|
|
659
659
|
name: string;
|
|
660
660
|
id: string;
|
|
@@ -667,7 +667,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
667
667
|
metadata?: Record<string, unknown> | null | undefined;
|
|
668
668
|
}, readonly ["facilities", "property-groups", string]>, "queryFn"> & {
|
|
669
669
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
670
|
-
groupType: "other" | "brand" | "
|
|
670
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
671
671
|
status: "active" | "inactive" | "archived";
|
|
672
672
|
name: string;
|
|
673
673
|
id: string;
|
|
@@ -682,7 +682,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
682
682
|
} & {
|
|
683
683
|
queryKey: readonly ["facilities", "property-groups", string] & {
|
|
684
684
|
[dataTagSymbol]: {
|
|
685
|
-
groupType: "other" | "brand" | "
|
|
685
|
+
groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
686
686
|
status: "active" | "inactive" | "archived";
|
|
687
687
|
name: string;
|
|
688
688
|
id: string;
|
|
@@ -701,7 +701,7 @@ export declare function getPropertyGroupMembersQueryOptions(client: FetchWithVal
|
|
|
701
701
|
data: {
|
|
702
702
|
groupId: string;
|
|
703
703
|
propertyId: string;
|
|
704
|
-
membershipRole: "other" | "member" | "
|
|
704
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
705
705
|
isPrimary: boolean;
|
|
706
706
|
id: string;
|
|
707
707
|
validFrom: string | null;
|
|
@@ -715,7 +715,7 @@ export declare function getPropertyGroupMembersQueryOptions(client: FetchWithVal
|
|
|
715
715
|
data: {
|
|
716
716
|
groupId: string;
|
|
717
717
|
propertyId: string;
|
|
718
|
-
membershipRole: "other" | "member" | "
|
|
718
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
719
719
|
isPrimary: boolean;
|
|
720
720
|
id: string;
|
|
721
721
|
validFrom: string | null;
|
|
@@ -730,7 +730,7 @@ export declare function getPropertyGroupMembersQueryOptions(client: FetchWithVal
|
|
|
730
730
|
data: {
|
|
731
731
|
groupId: string;
|
|
732
732
|
propertyId: string;
|
|
733
|
-
membershipRole: "other" | "member" | "
|
|
733
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
734
734
|
isPrimary: boolean;
|
|
735
735
|
id: string;
|
|
736
736
|
validFrom: string | null;
|
|
@@ -747,7 +747,7 @@ export declare function getPropertyGroupMembersQueryOptions(client: FetchWithVal
|
|
|
747
747
|
data: {
|
|
748
748
|
groupId: string;
|
|
749
749
|
propertyId: string;
|
|
750
|
-
membershipRole: "other" | "member" | "
|
|
750
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
751
751
|
isPrimary: boolean;
|
|
752
752
|
id: string;
|
|
753
753
|
validFrom: string | null;
|
|
@@ -764,7 +764,7 @@ export declare function getPropertyGroupMembersQueryOptions(client: FetchWithVal
|
|
|
764
764
|
export declare function getPropertyGroupMemberQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
765
765
|
groupId: string;
|
|
766
766
|
propertyId: string;
|
|
767
|
-
membershipRole: "other" | "member" | "
|
|
767
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
768
768
|
isPrimary: boolean;
|
|
769
769
|
id: string;
|
|
770
770
|
validFrom: string | null;
|
|
@@ -773,7 +773,7 @@ export declare function getPropertyGroupMemberQueryOptions(client: FetchWithVali
|
|
|
773
773
|
}, Error, {
|
|
774
774
|
groupId: string;
|
|
775
775
|
propertyId: string;
|
|
776
|
-
membershipRole: "other" | "member" | "
|
|
776
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
777
777
|
isPrimary: boolean;
|
|
778
778
|
id: string;
|
|
779
779
|
validFrom: string | null;
|
|
@@ -783,7 +783,7 @@ export declare function getPropertyGroupMemberQueryOptions(client: FetchWithVali
|
|
|
783
783
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
784
784
|
groupId: string;
|
|
785
785
|
propertyId: string;
|
|
786
|
-
membershipRole: "other" | "member" | "
|
|
786
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
787
787
|
isPrimary: boolean;
|
|
788
788
|
id: string;
|
|
789
789
|
validFrom: string | null;
|
|
@@ -795,7 +795,7 @@ export declare function getPropertyGroupMemberQueryOptions(client: FetchWithVali
|
|
|
795
795
|
[dataTagSymbol]: {
|
|
796
796
|
groupId: string;
|
|
797
797
|
propertyId: string;
|
|
798
|
-
membershipRole: "other" | "member" | "
|
|
798
|
+
membershipRole: "other" | "member" | "flagship" | "managed" | "franchise";
|
|
799
799
|
isPrimary: boolean;
|
|
800
800
|
id: string;
|
|
801
801
|
validFrom: string | null;
|
package/dist/places/schemas.d.ts
CHANGED
|
@@ -322,9 +322,9 @@ export declare const propertyGroupRecordSchema: z.ZodObject<{
|
|
|
322
322
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
323
323
|
other: "other";
|
|
324
324
|
brand: "brand";
|
|
325
|
-
collection: "collection";
|
|
326
325
|
chain: "chain";
|
|
327
326
|
management_company: "management_company";
|
|
327
|
+
collection: "collection";
|
|
328
328
|
portfolio: "portfolio";
|
|
329
329
|
cluster: "cluster";
|
|
330
330
|
}>>;
|
|
@@ -350,8 +350,8 @@ export declare const propertyGroupMemberRecordSchema: z.ZodObject<{
|
|
|
350
350
|
membershipRole: z.ZodDefault<z.ZodEnum<{
|
|
351
351
|
other: "other";
|
|
352
352
|
member: "member";
|
|
353
|
-
managed: "managed";
|
|
354
353
|
flagship: "flagship";
|
|
354
|
+
managed: "managed";
|
|
355
355
|
franchise: "franchise";
|
|
356
356
|
}>>;
|
|
357
357
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -366,9 +366,9 @@ export declare const propertyGroupListResponse: z.ZodObject<{
|
|
|
366
366
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
367
367
|
other: "other";
|
|
368
368
|
brand: "brand";
|
|
369
|
-
collection: "collection";
|
|
370
369
|
chain: "chain";
|
|
371
370
|
management_company: "management_company";
|
|
371
|
+
collection: "collection";
|
|
372
372
|
portfolio: "portfolio";
|
|
373
373
|
cluster: "cluster";
|
|
374
374
|
}>>;
|
|
@@ -396,9 +396,9 @@ export declare const propertyGroupSingleResponse: z.ZodObject<{
|
|
|
396
396
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
397
397
|
other: "other";
|
|
398
398
|
brand: "brand";
|
|
399
|
-
collection: "collection";
|
|
400
399
|
chain: "chain";
|
|
401
400
|
management_company: "management_company";
|
|
401
|
+
collection: "collection";
|
|
402
402
|
portfolio: "portfolio";
|
|
403
403
|
cluster: "cluster";
|
|
404
404
|
}>>;
|
|
@@ -425,8 +425,8 @@ export declare const propertyGroupMemberListResponse: z.ZodObject<{
|
|
|
425
425
|
membershipRole: z.ZodDefault<z.ZodEnum<{
|
|
426
426
|
other: "other";
|
|
427
427
|
member: "member";
|
|
428
|
-
managed: "managed";
|
|
429
428
|
flagship: "flagship";
|
|
429
|
+
managed: "managed";
|
|
430
430
|
franchise: "franchise";
|
|
431
431
|
}>>;
|
|
432
432
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -446,8 +446,8 @@ export declare const propertyGroupMemberSingleResponse: z.ZodObject<{
|
|
|
446
446
|
membershipRole: z.ZodDefault<z.ZodEnum<{
|
|
447
447
|
other: "other";
|
|
448
448
|
member: "member";
|
|
449
|
-
managed: "managed";
|
|
450
449
|
flagship: "flagship";
|
|
450
|
+
managed: "managed";
|
|
451
451
|
franchise: "franchise";
|
|
452
452
|
}>>;
|
|
453
453
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
package/dist/places/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insertFacilityFeatureSchema, insertFacilityOperationScheduleSchema, insertFacilitySchema, insertPropertyGroupMemberSchema, insertPropertyGroupSchema, insertPropertySchema, } from "@voyant-travel/operations";
|
|
1
|
+
import { insertFacilityFeatureSchema, insertFacilityOperationScheduleSchema, insertFacilitySchema, insertPropertyGroupMemberSchema, insertPropertyGroupSchema, insertPropertySchema, } from "@voyant-travel/operations/validation";
|
|
2
2
|
import { listResponseSchema } from "@voyant-travel/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export const paginatedEnvelope = listResponseSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/operations-react",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -247,11 +247,11 @@
|
|
|
247
247
|
"react-hook-form": "^7.72.1",
|
|
248
248
|
"sonner": "^2.0.7",
|
|
249
249
|
"zod": "^4.0.0",
|
|
250
|
-
"@voyant-travel/
|
|
251
|
-
"@voyant-travel/
|
|
252
|
-
"@voyant-travel/
|
|
253
|
-
"@voyant-travel/
|
|
254
|
-
"@voyant-travel/
|
|
250
|
+
"@voyant-travel/bookings-react": "^0.136.2",
|
|
251
|
+
"@voyant-travel/admin": "^0.115.2",
|
|
252
|
+
"@voyant-travel/ui": "^0.108.2",
|
|
253
|
+
"@voyant-travel/operations": "^0.5.1",
|
|
254
|
+
"@voyant-travel/inventory-react": "^0.18.2"
|
|
255
255
|
},
|
|
256
256
|
"peerDependenciesMeta": {
|
|
257
257
|
"@tanstack/react-table": {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
"dependencies": {
|
|
283
|
-
"@voyant-travel/i18n": "^0.
|
|
283
|
+
"@voyant-travel/i18n": "^0.109.0",
|
|
284
284
|
"@voyant-travel/react": "^0.104.1"
|
|
285
285
|
},
|
|
286
286
|
"devDependencies": {
|
|
@@ -296,14 +296,14 @@
|
|
|
296
296
|
"typescript": "^6.0.2",
|
|
297
297
|
"vitest": "^4.1.2",
|
|
298
298
|
"zod": "^4.3.6",
|
|
299
|
-
"@voyant-travel/
|
|
300
|
-
"@voyant-travel/
|
|
301
|
-
"@voyant-travel/
|
|
302
|
-
"@voyant-travel/operations": "^0.5.
|
|
303
|
-
"@voyant-travel/inventory-react": "^0.18.0",
|
|
304
|
-
"@voyant-travel/react": "^0.104.1",
|
|
299
|
+
"@voyant-travel/bookings-react": "^0.136.2",
|
|
300
|
+
"@voyant-travel/i18n": "^0.109.0",
|
|
301
|
+
"@voyant-travel/admin": "^0.115.2",
|
|
302
|
+
"@voyant-travel/operations": "^0.5.1",
|
|
305
303
|
"@voyant-travel/types": "^0.106.0",
|
|
306
|
-
"@voyant-travel/
|
|
304
|
+
"@voyant-travel/inventory-react": "^0.18.2",
|
|
305
|
+
"@voyant-travel/react": "^0.104.1",
|
|
306
|
+
"@voyant-travel/ui": "^0.108.2",
|
|
307
307
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
308
308
|
},
|
|
309
309
|
"files": [
|