@voyant-travel/operations-react 0.9.0 → 0.10.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.
|
@@ -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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "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" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
686
686
|
status: "active" | "inactive" | "archived";
|
|
687
687
|
name: string;
|
|
688
688
|
id: string;
|
package/dist/places/schemas.d.ts
CHANGED
|
@@ -326,9 +326,9 @@ export declare const propertyGroupRecordSchema: z.ZodObject<{
|
|
|
326
326
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
327
327
|
other: "other";
|
|
328
328
|
brand: "brand";
|
|
329
|
+
collection: "collection";
|
|
329
330
|
chain: "chain";
|
|
330
331
|
management_company: "management_company";
|
|
331
|
-
collection: "collection";
|
|
332
332
|
portfolio: "portfolio";
|
|
333
333
|
cluster: "cluster";
|
|
334
334
|
}>>;
|
|
@@ -370,9 +370,9 @@ export declare const propertyGroupListResponse: z.ZodObject<{
|
|
|
370
370
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
371
371
|
other: "other";
|
|
372
372
|
brand: "brand";
|
|
373
|
+
collection: "collection";
|
|
373
374
|
chain: "chain";
|
|
374
375
|
management_company: "management_company";
|
|
375
|
-
collection: "collection";
|
|
376
376
|
portfolio: "portfolio";
|
|
377
377
|
cluster: "cluster";
|
|
378
378
|
}>>;
|
|
@@ -400,9 +400,9 @@ export declare const propertyGroupSingleResponse: z.ZodObject<{
|
|
|
400
400
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
401
401
|
other: "other";
|
|
402
402
|
brand: "brand";
|
|
403
|
+
collection: "collection";
|
|
403
404
|
chain: "chain";
|
|
404
405
|
management_company: "management_company";
|
|
405
|
-
collection: "collection";
|
|
406
406
|
portfolio: "portfolio";
|
|
407
407
|
cluster: "cluster";
|
|
408
408
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/operations-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -248,9 +248,9 @@
|
|
|
248
248
|
"sonner": "^2.0.7",
|
|
249
249
|
"zod": "^4.0.0",
|
|
250
250
|
"@voyant-travel/admin": "^0.114.0",
|
|
251
|
-
"@voyant-travel/bookings-react": "^0.
|
|
252
|
-
"@voyant-travel/operations": "^0.2.
|
|
253
|
-
"@voyant-travel/inventory-react": "^0.
|
|
251
|
+
"@voyant-travel/bookings-react": "^0.129.0",
|
|
252
|
+
"@voyant-travel/operations": "^0.2.2",
|
|
253
|
+
"@voyant-travel/inventory-react": "^0.11.0",
|
|
254
254
|
"@voyant-travel/ui": "^0.108.0"
|
|
255
255
|
},
|
|
256
256
|
"peerDependenciesMeta": {
|
|
@@ -297,10 +297,10 @@
|
|
|
297
297
|
"vitest": "^4.1.2",
|
|
298
298
|
"zod": "^4.3.6",
|
|
299
299
|
"@voyant-travel/admin": "^0.114.0",
|
|
300
|
-
"@voyant-travel/bookings-react": "^0.
|
|
300
|
+
"@voyant-travel/bookings-react": "^0.129.0",
|
|
301
301
|
"@voyant-travel/i18n": "^0.107.1",
|
|
302
|
-
"@voyant-travel/operations": "^0.2.
|
|
303
|
-
"@voyant-travel/inventory-react": "^0.
|
|
302
|
+
"@voyant-travel/operations": "^0.2.2",
|
|
303
|
+
"@voyant-travel/inventory-react": "^0.11.0",
|
|
304
304
|
"@voyant-travel/react": "^0.104.1",
|
|
305
305
|
"@voyant-travel/ui": "^0.108.0",
|
|
306
306
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|