@teja-app/react-query 0.0.1-dev.20260110175150.531d373
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/hooks/index.d.ts +22 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +22 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/queryKeys.d.ts +114 -0
- package/dist/queryKeys.d.ts.map +1 -0
- package/dist/queryKeys.js +129 -0
- package/dist/queryKeys.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Query hooks for @teja-app/api-client.
|
|
3
|
+
*
|
|
4
|
+
* Note: These hooks will be populated once the SDK is generated.
|
|
5
|
+
* The actual hook implementations depend on the generated service classes.
|
|
6
|
+
*
|
|
7
|
+
* Example usage pattern:
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
10
|
+
* import { ClientsService } from '@teja-app/api-client';
|
|
11
|
+
* import { queryKeys } from '../queryKeys';
|
|
12
|
+
*
|
|
13
|
+
* export function useClients(params?: { limit?: number; offset?: number }) {
|
|
14
|
+
* return useQuery({
|
|
15
|
+
* queryKey: queryKeys.clients.list(params),
|
|
16
|
+
* queryFn: () => ClientsService.getClients(params),
|
|
17
|
+
* });
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Query hooks for @teja-app/api-client.
|
|
3
|
+
*
|
|
4
|
+
* Note: These hooks will be populated once the SDK is generated.
|
|
5
|
+
* The actual hook implementations depend on the generated service classes.
|
|
6
|
+
*
|
|
7
|
+
* Example usage pattern:
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
10
|
+
* import { ClientsService } from '@teja-app/api-client';
|
|
11
|
+
* import { queryKeys } from '../queryKeys';
|
|
12
|
+
*
|
|
13
|
+
* export function useClients(params?: { limit?: number; offset?: number }) {
|
|
14
|
+
* return useQuery({
|
|
15
|
+
* queryKey: queryKeys.clients.list(params),
|
|
16
|
+
* queryFn: () => ClientsService.getClients(params),
|
|
17
|
+
* });
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @teja-app/react-query
|
|
3
|
+
*
|
|
4
|
+
* React Query hooks and utilities for the Teja API client.
|
|
5
|
+
* Provides pre-built hooks for common API operations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { queryKeys } from '@teja-app/react-query';
|
|
10
|
+
* import { useQuery } from '@tanstack/react-query';
|
|
11
|
+
* import { ClientsService } from '@teja-app/api-client';
|
|
12
|
+
*
|
|
13
|
+
* function ClientList() {
|
|
14
|
+
* const { data, isLoading } = useQuery({
|
|
15
|
+
* queryKey: queryKeys.clients.list({ limit: 10 }),
|
|
16
|
+
* queryFn: () => ClientsService.getClients({ limit: 10 }),
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* if (isLoading) return <div>Loading...</div>;
|
|
20
|
+
* return <div>{data?.length} clients</div>;
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export { queryKeys } from "./queryKeys";
|
|
25
|
+
export * from "./hooks";
|
|
26
|
+
export { ApiError } from "@teja-app/api-client";
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @teja-app/react-query
|
|
3
|
+
*
|
|
4
|
+
* React Query hooks and utilities for the Teja API client.
|
|
5
|
+
* Provides pre-built hooks for common API operations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { queryKeys } from '@teja-app/react-query';
|
|
10
|
+
* import { useQuery } from '@tanstack/react-query';
|
|
11
|
+
* import { ClientsService } from '@teja-app/api-client';
|
|
12
|
+
*
|
|
13
|
+
* function ClientList() {
|
|
14
|
+
* const { data, isLoading } = useQuery({
|
|
15
|
+
* queryKey: queryKeys.clients.list({ limit: 10 }),
|
|
16
|
+
* queryFn: () => ClientsService.getClients({ limit: 10 }),
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* if (isLoading) return <div>Loading...</div>;
|
|
20
|
+
* return <div>{data?.length} clients</div>;
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
// Query keys for cache management
|
|
25
|
+
export { queryKeys } from "./queryKeys";
|
|
26
|
+
// Hooks (to be expanded after SDK generation)
|
|
27
|
+
export * from "./hooks";
|
|
28
|
+
// Re-export useful types from api-client
|
|
29
|
+
export { ApiError } from "@teja-app/api-client";
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,kCAAkC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,8CAA8C;AAC9C,cAAc,SAAS,CAAC;AAExB,yCAAyC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-safe query key factory for React Query.
|
|
3
|
+
*
|
|
4
|
+
* Provides centralized, type-safe query keys for cache management.
|
|
5
|
+
* All query keys follow the pattern: [entity, scope, ...params]
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Invalidate all client queries
|
|
10
|
+
* queryClient.invalidateQueries({ queryKey: queryKeys.clients.all });
|
|
11
|
+
*
|
|
12
|
+
* // Invalidate a specific client
|
|
13
|
+
* queryClient.invalidateQueries({ queryKey: queryKeys.clients.detail(clientId) });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const queryKeys: {
|
|
17
|
+
auth: {
|
|
18
|
+
all: readonly ["auth"];
|
|
19
|
+
session: () => readonly ["auth", "session"];
|
|
20
|
+
profile: () => readonly ["auth", "profile"];
|
|
21
|
+
};
|
|
22
|
+
clients: {
|
|
23
|
+
all: readonly ["clients"];
|
|
24
|
+
lists: () => readonly ["clients", "list"];
|
|
25
|
+
list: (params?: Record<string, unknown>) => readonly ["clients", "list", Record<string, unknown> | undefined];
|
|
26
|
+
details: () => readonly ["clients", "detail"];
|
|
27
|
+
detail: (id: string) => readonly ["clients", "detail", string];
|
|
28
|
+
};
|
|
29
|
+
appointments: {
|
|
30
|
+
all: readonly ["appointments"];
|
|
31
|
+
lists: () => readonly ["appointments", "list"];
|
|
32
|
+
list: (params?: Record<string, unknown>) => readonly ["appointments", "list", Record<string, unknown> | undefined];
|
|
33
|
+
details: () => readonly ["appointments", "detail"];
|
|
34
|
+
detail: (id: string) => readonly ["appointments", "detail", string];
|
|
35
|
+
};
|
|
36
|
+
availability: {
|
|
37
|
+
all: readonly ["availability"];
|
|
38
|
+
slots: (params?: Record<string, unknown>) => readonly ["availability", "slots", Record<string, unknown> | undefined];
|
|
39
|
+
schedule: () => readonly ["availability", "schedule"];
|
|
40
|
+
};
|
|
41
|
+
eventTypes: {
|
|
42
|
+
all: readonly ["eventTypes"];
|
|
43
|
+
lists: () => readonly ["eventTypes", "list"];
|
|
44
|
+
list: (params?: Record<string, unknown>) => readonly ["eventTypes", "list", Record<string, unknown> | undefined];
|
|
45
|
+
details: () => readonly ["eventTypes", "detail"];
|
|
46
|
+
detail: (id: string) => readonly ["eventTypes", "detail", string];
|
|
47
|
+
};
|
|
48
|
+
progressNotes: {
|
|
49
|
+
all: readonly ["progressNotes"];
|
|
50
|
+
lists: () => readonly ["progressNotes", "list"];
|
|
51
|
+
list: (params?: Record<string, unknown>) => readonly ["progressNotes", "list", Record<string, unknown> | undefined];
|
|
52
|
+
details: () => readonly ["progressNotes", "detail"];
|
|
53
|
+
detail: (id: string) => readonly ["progressNotes", "detail", string];
|
|
54
|
+
byClient: (clientId: string) => readonly ["progressNotes", "byClient", string];
|
|
55
|
+
};
|
|
56
|
+
treatmentPlans: {
|
|
57
|
+
all: readonly ["treatmentPlans"];
|
|
58
|
+
lists: () => readonly ["treatmentPlans", "list"];
|
|
59
|
+
list: (params?: Record<string, unknown>) => readonly ["treatmentPlans", "list", Record<string, unknown> | undefined];
|
|
60
|
+
details: () => readonly ["treatmentPlans", "detail"];
|
|
61
|
+
detail: (id: string) => readonly ["treatmentPlans", "detail", string];
|
|
62
|
+
byClient: (clientId: string) => readonly ["treatmentPlans", "byClient", string];
|
|
63
|
+
};
|
|
64
|
+
diagnoses: {
|
|
65
|
+
all: readonly ["diagnoses"];
|
|
66
|
+
lists: () => readonly ["diagnoses", "list"];
|
|
67
|
+
byClient: (clientId: string) => readonly ["diagnoses", "byClient", string];
|
|
68
|
+
};
|
|
69
|
+
superbills: {
|
|
70
|
+
all: readonly ["superbills"];
|
|
71
|
+
lists: () => readonly ["superbills", "list"];
|
|
72
|
+
list: (params?: Record<string, unknown>) => readonly ["superbills", "list", Record<string, unknown> | undefined];
|
|
73
|
+
details: () => readonly ["superbills", "detail"];
|
|
74
|
+
detail: (id: string) => readonly ["superbills", "detail", string];
|
|
75
|
+
codes: () => readonly ["superbills", "codes"];
|
|
76
|
+
};
|
|
77
|
+
settings: {
|
|
78
|
+
all: readonly ["settings"];
|
|
79
|
+
profile: () => readonly ["settings", "profile"];
|
|
80
|
+
practice: () => readonly ["settings", "practice"];
|
|
81
|
+
notifications: () => readonly ["settings", "notifications"];
|
|
82
|
+
availability: () => readonly ["settings", "availability"];
|
|
83
|
+
};
|
|
84
|
+
recordings: {
|
|
85
|
+
all: readonly ["recordings"];
|
|
86
|
+
lists: () => readonly ["recordings", "list"];
|
|
87
|
+
list: (params?: Record<string, unknown>) => readonly ["recordings", "list", Record<string, unknown> | undefined];
|
|
88
|
+
details: () => readonly ["recordings", "detail"];
|
|
89
|
+
detail: (id: string) => readonly ["recordings", "detail", string];
|
|
90
|
+
};
|
|
91
|
+
intakeForms: {
|
|
92
|
+
all: readonly ["intakeForms"];
|
|
93
|
+
templates: () => readonly ["intakeForms", "templates"];
|
|
94
|
+
submissions: (clientId?: string) => readonly ["intakeForms", "submissions", string | undefined];
|
|
95
|
+
};
|
|
96
|
+
referenceData: {
|
|
97
|
+
all: readonly ["referenceData"];
|
|
98
|
+
cptCodes: () => readonly ["referenceData", "cptCodes"];
|
|
99
|
+
icd10Codes: (search?: string) => readonly ["referenceData", "icd10Codes", string | undefined];
|
|
100
|
+
};
|
|
101
|
+
users: {
|
|
102
|
+
all: readonly ["users"];
|
|
103
|
+
lists: () => readonly ["users", "list"];
|
|
104
|
+
list: (params?: Record<string, unknown>) => readonly ["users", "list", Record<string, unknown> | undefined];
|
|
105
|
+
details: () => readonly ["users", "detail"];
|
|
106
|
+
detail: (id: string) => readonly ["users", "detail", string];
|
|
107
|
+
};
|
|
108
|
+
auditLogs: {
|
|
109
|
+
all: readonly ["auditLogs"];
|
|
110
|
+
lists: () => readonly ["auditLogs", "list"];
|
|
111
|
+
list: (params?: Record<string, unknown>) => readonly ["auditLogs", "list", Record<string, unknown> | undefined];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=queryKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryKeys.d.ts","sourceRoot":"","sources":["../src/queryKeys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS;;;;;;;;;wBAYF,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;;wBAOH,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;yBAMF,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;wBASxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;;wBAOH,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;6BACE,MAAM;;;;;wBAQX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;6BAEE,MAAM;;;;;6BAQN,MAAM;;;;;wBAQX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;;;;;;;;;;wBAiBH,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;;iCAOM,MAAM;;;;;8BAQT,MAAM;;;;;wBAQZ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAG1B,MAAM;;;;;wBAOH,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;CAG1C,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-safe query key factory for React Query.
|
|
3
|
+
*
|
|
4
|
+
* Provides centralized, type-safe query keys for cache management.
|
|
5
|
+
* All query keys follow the pattern: [entity, scope, ...params]
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Invalidate all client queries
|
|
10
|
+
* queryClient.invalidateQueries({ queryKey: queryKeys.clients.all });
|
|
11
|
+
*
|
|
12
|
+
* // Invalidate a specific client
|
|
13
|
+
* queryClient.invalidateQueries({ queryKey: queryKeys.clients.detail(clientId) });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const queryKeys = {
|
|
17
|
+
// Auth
|
|
18
|
+
auth: {
|
|
19
|
+
all: ["auth"],
|
|
20
|
+
session: () => [...queryKeys.auth.all, "session"],
|
|
21
|
+
profile: () => [...queryKeys.auth.all, "profile"],
|
|
22
|
+
},
|
|
23
|
+
// Clients
|
|
24
|
+
clients: {
|
|
25
|
+
all: ["clients"],
|
|
26
|
+
lists: () => [...queryKeys.clients.all, "list"],
|
|
27
|
+
list: (params) => [...queryKeys.clients.lists(), params],
|
|
28
|
+
details: () => [...queryKeys.clients.all, "detail"],
|
|
29
|
+
detail: (id) => [...queryKeys.clients.details(), id],
|
|
30
|
+
},
|
|
31
|
+
// Appointments
|
|
32
|
+
appointments: {
|
|
33
|
+
all: ["appointments"],
|
|
34
|
+
lists: () => [...queryKeys.appointments.all, "list"],
|
|
35
|
+
list: (params) => [...queryKeys.appointments.lists(), params],
|
|
36
|
+
details: () => [...queryKeys.appointments.all, "detail"],
|
|
37
|
+
detail: (id) => [...queryKeys.appointments.details(), id],
|
|
38
|
+
},
|
|
39
|
+
// Availability
|
|
40
|
+
availability: {
|
|
41
|
+
all: ["availability"],
|
|
42
|
+
slots: (params) => [...queryKeys.availability.all, "slots", params],
|
|
43
|
+
schedule: () => [...queryKeys.availability.all, "schedule"],
|
|
44
|
+
},
|
|
45
|
+
// Event Types
|
|
46
|
+
eventTypes: {
|
|
47
|
+
all: ["eventTypes"],
|
|
48
|
+
lists: () => [...queryKeys.eventTypes.all, "list"],
|
|
49
|
+
list: (params) => [...queryKeys.eventTypes.lists(), params],
|
|
50
|
+
details: () => [...queryKeys.eventTypes.all, "detail"],
|
|
51
|
+
detail: (id) => [...queryKeys.eventTypes.details(), id],
|
|
52
|
+
},
|
|
53
|
+
// Progress Notes
|
|
54
|
+
progressNotes: {
|
|
55
|
+
all: ["progressNotes"],
|
|
56
|
+
lists: () => [...queryKeys.progressNotes.all, "list"],
|
|
57
|
+
list: (params) => [...queryKeys.progressNotes.lists(), params],
|
|
58
|
+
details: () => [...queryKeys.progressNotes.all, "detail"],
|
|
59
|
+
detail: (id) => [...queryKeys.progressNotes.details(), id],
|
|
60
|
+
byClient: (clientId) => [...queryKeys.progressNotes.all, "byClient", clientId],
|
|
61
|
+
},
|
|
62
|
+
// Treatment Plans
|
|
63
|
+
treatmentPlans: {
|
|
64
|
+
all: ["treatmentPlans"],
|
|
65
|
+
lists: () => [...queryKeys.treatmentPlans.all, "list"],
|
|
66
|
+
list: (params) => [...queryKeys.treatmentPlans.lists(), params],
|
|
67
|
+
details: () => [...queryKeys.treatmentPlans.all, "detail"],
|
|
68
|
+
detail: (id) => [...queryKeys.treatmentPlans.details(), id],
|
|
69
|
+
byClient: (clientId) => [...queryKeys.treatmentPlans.all, "byClient", clientId],
|
|
70
|
+
},
|
|
71
|
+
// Diagnoses
|
|
72
|
+
diagnoses: {
|
|
73
|
+
all: ["diagnoses"],
|
|
74
|
+
lists: () => [...queryKeys.diagnoses.all, "list"],
|
|
75
|
+
byClient: (clientId) => [...queryKeys.diagnoses.all, "byClient", clientId],
|
|
76
|
+
},
|
|
77
|
+
// Superbills
|
|
78
|
+
superbills: {
|
|
79
|
+
all: ["superbills"],
|
|
80
|
+
lists: () => [...queryKeys.superbills.all, "list"],
|
|
81
|
+
list: (params) => [...queryKeys.superbills.lists(), params],
|
|
82
|
+
details: () => [...queryKeys.superbills.all, "detail"],
|
|
83
|
+
detail: (id) => [...queryKeys.superbills.details(), id],
|
|
84
|
+
codes: () => [...queryKeys.superbills.all, "codes"],
|
|
85
|
+
},
|
|
86
|
+
// Settings
|
|
87
|
+
settings: {
|
|
88
|
+
all: ["settings"],
|
|
89
|
+
profile: () => [...queryKeys.settings.all, "profile"],
|
|
90
|
+
practice: () => [...queryKeys.settings.all, "practice"],
|
|
91
|
+
notifications: () => [...queryKeys.settings.all, "notifications"],
|
|
92
|
+
availability: () => [...queryKeys.settings.all, "availability"],
|
|
93
|
+
},
|
|
94
|
+
// Recordings
|
|
95
|
+
recordings: {
|
|
96
|
+
all: ["recordings"],
|
|
97
|
+
lists: () => [...queryKeys.recordings.all, "list"],
|
|
98
|
+
list: (params) => [...queryKeys.recordings.lists(), params],
|
|
99
|
+
details: () => [...queryKeys.recordings.all, "detail"],
|
|
100
|
+
detail: (id) => [...queryKeys.recordings.details(), id],
|
|
101
|
+
},
|
|
102
|
+
// Intake Forms
|
|
103
|
+
intakeForms: {
|
|
104
|
+
all: ["intakeForms"],
|
|
105
|
+
templates: () => [...queryKeys.intakeForms.all, "templates"],
|
|
106
|
+
submissions: (clientId) => [...queryKeys.intakeForms.all, "submissions", clientId],
|
|
107
|
+
},
|
|
108
|
+
// Reference Data
|
|
109
|
+
referenceData: {
|
|
110
|
+
all: ["referenceData"],
|
|
111
|
+
cptCodes: () => [...queryKeys.referenceData.all, "cptCodes"],
|
|
112
|
+
icd10Codes: (search) => [...queryKeys.referenceData.all, "icd10Codes", search],
|
|
113
|
+
},
|
|
114
|
+
// Users
|
|
115
|
+
users: {
|
|
116
|
+
all: ["users"],
|
|
117
|
+
lists: () => [...queryKeys.users.all, "list"],
|
|
118
|
+
list: (params) => [...queryKeys.users.lists(), params],
|
|
119
|
+
details: () => [...queryKeys.users.all, "detail"],
|
|
120
|
+
detail: (id) => [...queryKeys.users.details(), id],
|
|
121
|
+
},
|
|
122
|
+
// Audit Logs
|
|
123
|
+
auditLogs: {
|
|
124
|
+
all: ["auditLogs"],
|
|
125
|
+
lists: () => [...queryKeys.auditLogs.all, "list"],
|
|
126
|
+
list: (params) => [...queryKeys.auditLogs.lists(), params],
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=queryKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryKeys.js","sourceRoot":"","sources":["../src/queryKeys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO;IACP,IAAI,EAAE;QACJ,GAAG,EAAE,CAAC,MAAM,CAAU;QACtB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAU;QAC1D,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAU;KAC3D;IAED,UAAU;IACV,OAAO,EAAE;QACP,GAAG,EAAE,CAAC,SAAS,CAAU;QACzB,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAU;QACxD,IAAI,EAAE,CAAC,MAAgC,EAAE,EAAE,CACzC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,CAAU;QACjD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAU;QAC5D,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAA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CAC9B,CAAC,GAAG,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,CAAU;KAClE;IAED,QAAQ;IACR,KAAK,EAAE;QACL,GAAG,EAAE,CAAC,OAAO,CAAU;QACvB,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAU;QACtD,IAAI,EAAE,CAAC,MAAgC,EAAE,EAAE,CACzC,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,MAAM,CAAU;QAC/C,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAU;QAC1D,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAU;KACpE;IAED,aAAa;IACb,SAAS,EAAE;QACT,GAAG,EAAE,CAAC,WAAW,CAAU;QAC3B,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAU;QAC1D,IAAI,EAAE,CAAC,MAAgC,EAAE,EAAE,CACzC,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,MAAM,CAAU;KACpD;CACF,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teja-app/react-query",
|
|
3
|
+
"version": "0.0.1-dev.20260110175150.531d373",
|
|
4
|
+
"description": "React Query hooks for the Teja API",
|
|
5
|
+
"author": "Teja App",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/jate-app/backend.git",
|
|
10
|
+
"directory": "packages/react-query"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./hooks": {
|
|
25
|
+
"types": "./dist/hooks/index.d.ts",
|
|
26
|
+
"import": "./dist/hooks/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"clean": "rm -rf dist",
|
|
35
|
+
"prepublishOnly": "bun run build"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@teja-app/api-client": "0.0.1-dev.20260110175150.531d373"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@tanstack/react-query": "^5.0.0",
|
|
42
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@tanstack/react-query": "^5.90.10",
|
|
46
|
+
"@types/react": "^19.2.7",
|
|
47
|
+
"react": "^19.0.0",
|
|
48
|
+
"typescript": "^5.9.3"
|
|
49
|
+
},
|
|
50
|
+
"sideEffects": false
|
|
51
|
+
}
|