@voyantjs/resources-react 0.1.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.
Files changed (74) hide show
  1. package/README.md +36 -0
  2. package/dist/client.d.ts +14 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +59 -0
  5. package/dist/constants.d.ts +44 -0
  6. package/dist/constants.d.ts.map +1 -0
  7. package/dist/constants.js +20 -0
  8. package/dist/hooks/index.d.ts +31 -0
  9. package/dist/hooks/index.d.ts.map +1 -0
  10. package/dist/hooks/index.js +15 -0
  11. package/dist/hooks/use-allocation.d.ts +16 -0
  12. package/dist/hooks/use-allocation.d.ts.map +1 -0
  13. package/dist/hooks/use-allocation.js +12 -0
  14. package/dist/hooks/use-allocations.d.ts +20 -0
  15. package/dist/hooks/use-allocations.d.ts.map +1 -0
  16. package/dist/hooks/use-allocations.js +12 -0
  17. package/dist/hooks/use-assignment.d.ts +17 -0
  18. package/dist/hooks/use-assignment.d.ts.map +1 -0
  19. package/dist/hooks/use-assignment.js +12 -0
  20. package/dist/hooks/use-assignments.d.ts +21 -0
  21. package/dist/hooks/use-assignments.d.ts.map +1 -0
  22. package/dist/hooks/use-assignments.js +12 -0
  23. package/dist/hooks/use-bookings.d.ts +14 -0
  24. package/dist/hooks/use-bookings.d.ts.map +1 -0
  25. package/dist/hooks/use-bookings.js +12 -0
  26. package/dist/hooks/use-closeouts.d.ts +19 -0
  27. package/dist/hooks/use-closeouts.d.ts.map +1 -0
  28. package/dist/hooks/use-closeouts.js +12 -0
  29. package/dist/hooks/use-pool.d.ts +15 -0
  30. package/dist/hooks/use-pool.d.ts.map +1 -0
  31. package/dist/hooks/use-pool.js +12 -0
  32. package/dist/hooks/use-pools.d.ts +19 -0
  33. package/dist/hooks/use-pools.d.ts.map +1 -0
  34. package/dist/hooks/use-pools.js +12 -0
  35. package/dist/hooks/use-products.d.ts +14 -0
  36. package/dist/hooks/use-products.d.ts.map +1 -0
  37. package/dist/hooks/use-products.js +12 -0
  38. package/dist/hooks/use-resource.d.ts +16 -0
  39. package/dist/hooks/use-resource.d.ts.map +1 -0
  40. package/dist/hooks/use-resource.js +12 -0
  41. package/dist/hooks/use-resources.d.ts +20 -0
  42. package/dist/hooks/use-resources.d.ts.map +1 -0
  43. package/dist/hooks/use-resources.js +12 -0
  44. package/dist/hooks/use-rules.d.ts +15 -0
  45. package/dist/hooks/use-rules.d.ts.map +1 -0
  46. package/dist/hooks/use-rules.js +12 -0
  47. package/dist/hooks/use-slots.d.ts +16 -0
  48. package/dist/hooks/use-slots.d.ts.map +1 -0
  49. package/dist/hooks/use-slots.js +12 -0
  50. package/dist/hooks/use-start-times.d.ts +16 -0
  51. package/dist/hooks/use-start-times.d.ts.map +1 -0
  52. package/dist/hooks/use-start-times.js +12 -0
  53. package/dist/hooks/use-suppliers.d.ts +14 -0
  54. package/dist/hooks/use-suppliers.d.ts.map +1 -0
  55. package/dist/hooks/use-suppliers.js +12 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +8 -0
  59. package/dist/provider.d.ts +2 -0
  60. package/dist/provider.d.ts.map +1 -0
  61. package/dist/provider.js +1 -0
  62. package/dist/query-keys.d.ts +73 -0
  63. package/dist/query-keys.d.ts.map +1 -0
  64. package/dist/query-keys.js +29 -0
  65. package/dist/query-options.d.ts +801 -0
  66. package/dist/query-options.d.ts.map +1 -0
  67. package/dist/query-options.js +237 -0
  68. package/dist/schemas.d.ts +452 -0
  69. package/dist/schemas.d.ts.map +1 -0
  70. package/dist/schemas.js +126 -0
  71. package/dist/utils.d.ts +14 -0
  72. package/dist/utils.d.ts.map +1 -0
  73. package/dist/utils.js +33 -0
  74. package/package.json +79 -0
@@ -0,0 +1,15 @@
1
+ import type { RulesListFilters } from "../query-keys.js";
2
+ export interface UseRulesOptions extends RulesListFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useRules(options?: UseRulesOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ data: {
7
+ id: string;
8
+ productId: string;
9
+ recurrenceRule: string;
10
+ }[];
11
+ total: number;
12
+ limit: number;
13
+ offset: number;
14
+ }, Error>;
15
+ //# sourceMappingURL=use-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rules.d.ts","sourceRoot":"","sources":["../../src/hooks/use-rules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGxD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;UAQrD"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantResourcesContext } from "../provider.js";
4
+ import { getRulesQueryOptions } from "../query-options.js";
5
+ export function useRules(options = {}) {
6
+ const client = useVoyantResourcesContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getRulesQueryOptions(client, options),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,16 @@
1
+ import type { SlotsListFilters } from "../query-keys.js";
2
+ export interface UseSlotsOptions extends SlotsListFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ data: {
7
+ id: string;
8
+ productId: string;
9
+ dateLocal: string;
10
+ startsAt: string;
11
+ }[];
12
+ total: number;
13
+ limit: number;
14
+ offset: number;
15
+ }, Error>;
16
+ //# sourceMappingURL=use-slots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-slots.d.ts","sourceRoot":"","sources":["../../src/hooks/use-slots.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGxD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;UAQrD"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantResourcesContext } from "../provider.js";
4
+ import { getSlotsQueryOptions } from "../query-options.js";
5
+ export function useSlots(options = {}) {
6
+ const client = useVoyantResourcesContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getSlotsQueryOptions(client, options),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,16 @@
1
+ import type { StartTimesListFilters } from "../query-keys.js";
2
+ export interface UseStartTimesOptions extends StartTimesListFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useStartTimes(options?: UseStartTimesOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ data: {
7
+ id: string;
8
+ productId: string;
9
+ label: string | null;
10
+ startTimeLocal: string;
11
+ }[];
12
+ total: number;
13
+ limit: number;
14
+ offset: number;
15
+ }, Error>;
16
+ //# sourceMappingURL=use-start-times.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-start-times.d.ts","sourceRoot":"","sources":["../../src/hooks/use-start-times.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;UAQ/D"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantResourcesContext } from "../provider.js";
4
+ import { getStartTimesQueryOptions } from "../query-options.js";
5
+ export function useStartTimes(options = {}) {
6
+ const client = useVoyantResourcesContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getStartTimesQueryOptions(client, options),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,14 @@
1
+ import type { PaginationFilters } from "../query-keys.js";
2
+ export interface UseSuppliersOptions extends PaginationFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useSuppliers(options?: UseSuppliersOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ data: {
7
+ id: string;
8
+ name: string;
9
+ }[];
10
+ total: number;
11
+ limit: number;
12
+ offset: number;
13
+ }, Error>;
14
+ //# sourceMappingURL=use-suppliers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-suppliers.d.ts","sourceRoot":"","sources":["../../src/hooks/use-suppliers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGzD,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB;;;;;;;;UAQ7D"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantResourcesContext } from "../provider.js";
4
+ import { getSuppliersQueryOptions } from "../query-options.js";
5
+ export function useSuppliers(options = {}) {
6
+ const client = useVoyantResourcesContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getSuppliersQueryOptions(client, options),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,9 @@
1
+ export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
2
+ export * from "./constants.js";
3
+ export * from "./hooks/index.js";
4
+ export { useVoyantResourcesContext, type VoyantResourcesContextValue, VoyantResourcesProvider, type VoyantResourcesProviderProps, } from "./provider.js";
5
+ export { resourcesQueryKeys } from "./query-keys.js";
6
+ export { getAllocationQueryOptions, getAllocationsQueryOptions, getAssignmentQueryOptions, getAssignmentsQueryOptions, getBookingsQueryOptions, getCloseoutsQueryOptions, getPoolQueryOptions, getPoolsQueryOptions, getProductsQueryOptions, getResourceQueryOptions, getResourcesQueryOptions, getRulesQueryOptions, getSlotsQueryOptions, getStartTimesQueryOptions, getSuppliersQueryOptions, } from "./query-options.js";
7
+ export * from "./schemas.js";
8
+ export * from "./utils.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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,yBAAyB,EACzB,KAAK,2BAA2B,EAChC,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
2
+ export * from "./constants.js";
3
+ export * from "./hooks/index.js";
4
+ export { useVoyantResourcesContext, VoyantResourcesProvider, } from "./provider.js";
5
+ export { resourcesQueryKeys } from "./query-keys.js";
6
+ export { getAllocationQueryOptions, getAllocationsQueryOptions, getAssignmentQueryOptions, getAssignmentsQueryOptions, getBookingsQueryOptions, getCloseoutsQueryOptions, getPoolQueryOptions, getPoolsQueryOptions, getProductsQueryOptions, getResourceQueryOptions, getResourcesQueryOptions, getRulesQueryOptions, getSlotsQueryOptions, getStartTimesQueryOptions, getSuppliersQueryOptions, } from "./query-options.js";
7
+ export * from "./schemas.js";
8
+ export * from "./utils.js";
@@ -0,0 +1,2 @@
1
+ export { useVoyantReactContext as useVoyantResourcesContext, type VoyantReactContextValue as VoyantResourcesContextValue, VoyantReactProvider as VoyantResourcesProvider, type VoyantReactProviderProps as VoyantResourcesProviderProps, } from "@voyantjs/react";
2
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,yBAAyB,EAClD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,mBAAmB,IAAI,uBAAuB,EAC9C,KAAK,wBAAwB,IAAI,4BAA4B,GAC9D,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1 @@
1
+ export { useVoyantReactContext as useVoyantResourcesContext, VoyantReactProvider as VoyantResourcesProvider, } from "@voyantjs/react";
@@ -0,0 +1,73 @@
1
+ export interface PaginationFilters {
2
+ limit?: number | undefined;
3
+ offset?: number | undefined;
4
+ }
5
+ export interface ResourceEntityListFilters extends PaginationFilters {
6
+ search?: string | undefined;
7
+ active?: boolean | undefined;
8
+ }
9
+ export interface SlotsListFilters extends PaginationFilters {
10
+ productId?: string | undefined;
11
+ }
12
+ export interface RulesListFilters extends PaginationFilters {
13
+ productId?: string | undefined;
14
+ }
15
+ export interface StartTimesListFilters extends PaginationFilters {
16
+ productId?: string | undefined;
17
+ }
18
+ export interface ResourcesListFilters extends ResourceEntityListFilters {
19
+ supplierId?: string | undefined;
20
+ kind?: string | undefined;
21
+ }
22
+ export interface ResourcePoolsListFilters extends ResourceEntityListFilters {
23
+ productId?: string | undefined;
24
+ kind?: string | undefined;
25
+ }
26
+ export interface ResourceAllocationsListFilters extends PaginationFilters {
27
+ poolId?: string | undefined;
28
+ productId?: string | undefined;
29
+ availabilityRuleId?: string | undefined;
30
+ startTimeId?: string | undefined;
31
+ allocationMode?: string | undefined;
32
+ }
33
+ export interface ResourceAssignmentsListFilters extends PaginationFilters {
34
+ slotId?: string | undefined;
35
+ poolId?: string | undefined;
36
+ resourceId?: string | undefined;
37
+ bookingId?: string | undefined;
38
+ status?: string | undefined;
39
+ }
40
+ export interface ResourceCloseoutsListFilters extends PaginationFilters {
41
+ resourceId?: string | undefined;
42
+ dateLocal?: string | undefined;
43
+ }
44
+ export declare const resourcesQueryKeys: {
45
+ readonly all: readonly ["voyant", "resources"];
46
+ readonly suppliers: () => readonly ["voyant", "resources", "suppliers"];
47
+ readonly suppliersList: (filters: PaginationFilters) => readonly ["voyant", "resources", "suppliers", "list", PaginationFilters];
48
+ readonly products: () => readonly ["voyant", "resources", "products"];
49
+ readonly productsList: (filters: PaginationFilters) => readonly ["voyant", "resources", "products", "list", PaginationFilters];
50
+ readonly bookings: () => readonly ["voyant", "resources", "bookings"];
51
+ readonly bookingsList: (filters: PaginationFilters) => readonly ["voyant", "resources", "bookings", "list", PaginationFilters];
52
+ readonly slots: () => readonly ["voyant", "resources", "slots"];
53
+ readonly slotsList: (filters: SlotsListFilters) => readonly ["voyant", "resources", "slots", "list", SlotsListFilters];
54
+ readonly rules: () => readonly ["voyant", "resources", "rules"];
55
+ readonly rulesList: (filters: RulesListFilters) => readonly ["voyant", "resources", "rules", "list", RulesListFilters];
56
+ readonly startTimes: () => readonly ["voyant", "resources", "start-times"];
57
+ readonly startTimesList: (filters: StartTimesListFilters) => readonly ["voyant", "resources", "start-times", "list", StartTimesListFilters];
58
+ readonly resources: () => readonly ["voyant", "resources", "resources"];
59
+ readonly resourcesList: (filters: ResourcesListFilters) => readonly ["voyant", "resources", "resources", "list", ResourcesListFilters];
60
+ readonly resource: (id: string) => readonly ["voyant", "resources", "resources", "detail", string];
61
+ readonly pools: () => readonly ["voyant", "resources", "pools"];
62
+ readonly poolsList: (filters: ResourcePoolsListFilters) => readonly ["voyant", "resources", "pools", "list", ResourcePoolsListFilters];
63
+ readonly pool: (id: string) => readonly ["voyant", "resources", "pools", "detail", string];
64
+ readonly allocations: () => readonly ["voyant", "resources", "allocations"];
65
+ readonly allocationsList: (filters: ResourceAllocationsListFilters) => readonly ["voyant", "resources", "allocations", "list", ResourceAllocationsListFilters];
66
+ readonly allocation: (id: string) => readonly ["voyant", "resources", "allocations", "detail", string];
67
+ readonly assignments: () => readonly ["voyant", "resources", "assignments"];
68
+ readonly assignmentsList: (filters: ResourceAssignmentsListFilters) => readonly ["voyant", "resources", "assignments", "list", ResourceAssignmentsListFilters];
69
+ readonly assignment: (id: string) => readonly ["voyant", "resources", "assignments", "detail", string];
70
+ readonly closeouts: () => readonly ["voyant", "resources", "closeouts"];
71
+ readonly closeoutsList: (filters: ResourceCloseoutsListFilters) => readonly ["voyant", "resources", "closeouts", "list", ResourceCloseoutsListFilters];
72
+ };
73
+ //# sourceMappingURL=query-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC;AAED,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,eAAO,MAAM,kBAAkB;;;sCAIJ,iBAAiB;;qCAIlB,iBAAiB;;qCAIjB,iBAAiB;;kCAIpB,gBAAgB;;kCAIhB,gBAAgB;;uCAIX,qBAAqB;;sCAItB,oBAAoB;4BAE9B,MAAM;;kCAGA,wBAAwB;wBAElC,MAAM;;wCAGU,8BAA8B;8BAExC,MAAM;;wCAGI,8BAA8B;8BAExC,MAAM;;sCAGE,4BAA4B;CAE7C,CAAA"}
@@ -0,0 +1,29 @@
1
+ export const resourcesQueryKeys = {
2
+ all: ["voyant", "resources"],
3
+ suppliers: () => [...resourcesQueryKeys.all, "suppliers"],
4
+ suppliersList: (filters) => [...resourcesQueryKeys.suppliers(), "list", filters],
5
+ products: () => [...resourcesQueryKeys.all, "products"],
6
+ productsList: (filters) => [...resourcesQueryKeys.products(), "list", filters],
7
+ bookings: () => [...resourcesQueryKeys.all, "bookings"],
8
+ bookingsList: (filters) => [...resourcesQueryKeys.bookings(), "list", filters],
9
+ slots: () => [...resourcesQueryKeys.all, "slots"],
10
+ slotsList: (filters) => [...resourcesQueryKeys.slots(), "list", filters],
11
+ rules: () => [...resourcesQueryKeys.all, "rules"],
12
+ rulesList: (filters) => [...resourcesQueryKeys.rules(), "list", filters],
13
+ startTimes: () => [...resourcesQueryKeys.all, "start-times"],
14
+ startTimesList: (filters) => [...resourcesQueryKeys.startTimes(), "list", filters],
15
+ resources: () => [...resourcesQueryKeys.all, "resources"],
16
+ resourcesList: (filters) => [...resourcesQueryKeys.resources(), "list", filters],
17
+ resource: (id) => [...resourcesQueryKeys.resources(), "detail", id],
18
+ pools: () => [...resourcesQueryKeys.all, "pools"],
19
+ poolsList: (filters) => [...resourcesQueryKeys.pools(), "list", filters],
20
+ pool: (id) => [...resourcesQueryKeys.pools(), "detail", id],
21
+ allocations: () => [...resourcesQueryKeys.all, "allocations"],
22
+ allocationsList: (filters) => [...resourcesQueryKeys.allocations(), "list", filters],
23
+ allocation: (id) => [...resourcesQueryKeys.allocations(), "detail", id],
24
+ assignments: () => [...resourcesQueryKeys.all, "assignments"],
25
+ assignmentsList: (filters) => [...resourcesQueryKeys.assignments(), "list", filters],
26
+ assignment: (id) => [...resourcesQueryKeys.assignments(), "detail", id],
27
+ closeouts: () => [...resourcesQueryKeys.all, "closeouts"],
28
+ closeoutsList: (filters) => [...resourcesQueryKeys.closeouts(), "list", filters],
29
+ };