@djangocfg/api 1.2.5 → 1.2.7

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 (113) hide show
  1. package/dist/index.cjs +4630 -1605
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +5103 -1773
  4. package/dist/index.d.ts +5103 -1773
  5. package/dist/index.mjs +4481 -1486
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/contexts/TasksContext.tsx +242 -0
  9. package/src/cfg/contexts/index.ts +3 -0
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -3
  11. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -2
  12. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -7
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +61 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +12 -13
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +25 -26
  16. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +8 -9
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +61 -0
  18. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +62 -0
  19. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +90 -0
  20. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +62 -0
  21. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +48 -0
  22. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +76 -0
  23. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +63 -0
  24. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +30 -2
  25. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -3
  26. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -58
  27. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -7
  28. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -2
  29. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -4
  30. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -2
  31. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -7
  32. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -2
  33. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -3
  34. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -4
  35. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -2
  36. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -9
  37. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -13
  38. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -11
  39. package/src/cfg/generated/_utils/fetchers/index.ts +8 -0
  40. package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +49 -0
  41. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +20 -20
  42. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_activity.ts +49 -0
  43. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_api_zones.ts +50 -0
  44. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_charts.ts +78 -0
  45. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_commands.ts +50 -0
  46. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_overview.ts +36 -0
  47. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_statistics.ts +64 -0
  48. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_system.ts +51 -0
  49. package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +29 -0
  50. package/src/cfg/generated/_utils/hooks/index.ts +8 -0
  51. package/src/cfg/generated/_utils/schemas/APIZone.schema.ts +27 -0
  52. package/src/cfg/generated/_utils/schemas/APIZonesSummary.schema.ts +21 -0
  53. package/src/cfg/generated/_utils/schemas/ActivityEntry.schema.ts +25 -0
  54. package/src/cfg/generated/_utils/schemas/ActivityTrackerDay.schema.ts +23 -0
  55. package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +20 -0
  56. package/src/cfg/generated/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +1 -1
  57. package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
  58. package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
  59. package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
  60. package/src/cfg/generated/_utils/schemas/ChannelStatsSerializer.schema.ts +1 -0
  61. package/src/cfg/generated/_utils/schemas/ChartData.schema.ts +21 -0
  62. package/src/cfg/generated/_utils/schemas/ChartDataset.schema.ts +24 -0
  63. package/src/cfg/generated/_utils/schemas/Command.schema.ts +23 -0
  64. package/src/cfg/generated/_utils/schemas/CommandsSummary.schema.ts +25 -0
  65. package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +27 -0
  66. package/src/cfg/generated/_utils/schemas/ManualAckResponse.schema.ts +1 -1
  67. package/src/cfg/generated/_utils/schemas/PublishTestResponse.schema.ts +1 -1
  68. package/src/cfg/generated/_utils/schemas/QuickAction.schema.ts +29 -0
  69. package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +2 -0
  70. package/src/cfg/generated/_utils/schemas/RecentUser.schema.ts +26 -0
  71. package/src/cfg/generated/_utils/schemas/StatCard.schema.ts +30 -0
  72. package/src/cfg/generated/_utils/schemas/SystemHealth.schema.ts +24 -0
  73. package/src/cfg/generated/_utils/schemas/SystemHealthItem.schema.ts +28 -0
  74. package/src/cfg/generated/_utils/schemas/SystemMetrics.schema.ts +25 -0
  75. package/src/cfg/generated/_utils/schemas/URLPattern.schema.ts +26 -0
  76. package/src/cfg/generated/_utils/schemas/URLsList.schema.ts +25 -0
  77. package/src/cfg/generated/_utils/schemas/UserStatistics.schema.ts +22 -0
  78. package/src/cfg/generated/_utils/schemas/index.ts +19 -0
  79. package/src/cfg/generated/cfg__centrifugo/client.ts +30 -0
  80. package/src/cfg/generated/cfg__centrifugo/index.ts +2 -0
  81. package/src/cfg/generated/cfg__centrifugo/models.ts +0 -0
  82. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +6 -6
  83. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +32 -32
  84. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +18 -12
  85. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +2 -2
  86. package/src/cfg/generated/cfg__dashboard__dashboard_activity/client.ts +45 -0
  87. package/src/cfg/generated/cfg__dashboard__dashboard_activity/index.ts +2 -0
  88. package/src/cfg/generated/cfg__dashboard__dashboard_activity/models.ts +0 -0
  89. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/client.ts +34 -0
  90. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/index.ts +2 -0
  91. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +27 -0
  92. package/src/cfg/generated/cfg__dashboard__dashboard_charts/client.ts +98 -0
  93. package/src/cfg/generated/cfg__dashboard__dashboard_charts/index.ts +2 -0
  94. package/src/cfg/generated/cfg__dashboard__dashboard_charts/models.ts +24 -0
  95. package/src/cfg/generated/cfg__dashboard__dashboard_commands/client.ts +34 -0
  96. package/src/cfg/generated/cfg__dashboard__dashboard_commands/index.ts +2 -0
  97. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +27 -0
  98. package/src/cfg/generated/cfg__dashboard__dashboard_overview/client.ts +25 -0
  99. package/src/cfg/generated/cfg__dashboard__dashboard_overview/index.ts +2 -0
  100. package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +23 -0
  101. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/client.ts +44 -0
  102. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/index.ts +2 -0
  103. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/models.ts +16 -0
  104. package/src/cfg/generated/cfg__dashboard__dashboard_system/client.ts +34 -0
  105. package/src/cfg/generated/cfg__dashboard__dashboard_system/index.ts +2 -0
  106. package/src/cfg/generated/cfg__dashboard__dashboard_system/models.ts +69 -0
  107. package/src/cfg/generated/cfg__endpoints/client.ts +16 -0
  108. package/src/cfg/generated/cfg__endpoints/models.ts +44 -0
  109. package/src/cfg/generated/client.ts +35 -9
  110. package/src/cfg/generated/enums.ts +56 -0
  111. package/src/cfg/generated/http.ts +8 -3
  112. package/src/cfg/generated/index.ts +47 -10
  113. package/src/cfg/generated/schema.ts +2120 -135
@@ -36,7 +36,6 @@ import { ManualAckResponseSchema, type ManualAckResponse } from '../schemas/Manu
36
36
  import { PublishTestRequestRequestSchema, type PublishTestRequestRequest } from '../schemas/PublishTestRequestRequest.schema'
37
37
  import { PublishTestResponseSchema, type PublishTestResponse } from '../schemas/PublishTestResponse.schema'
38
38
  import { getAPIInstance } from '../../api-instance'
39
- import type { API } from '../../index'
40
39
 
41
40
  /**
42
41
  * Generate connection token
@@ -44,7 +43,7 @@ import type { API } from '../../index'
44
43
  * @method POST
45
44
  * @path /cfg/centrifugo/admin/api/testing/connection-token/
46
45
  */
47
- export async function createCentrifugoAdminApiTestingConnectionTokenCreate( data: ConnectionTokenRequestRequest, client?
46
+ export async function createCentrifugoAdminApiTestingConnectionTokenCreate( data: ConnectionTokenRequestRequest, client?: any
48
47
  ): Promise<ConnectionTokenResponse> {
49
48
  const api = client || getAPIInstance()
50
49
  const response = await api.cfg_centrifugo_testing.centrifugoAdminApiTestingConnectionTokenCreate(data)
@@ -58,7 +57,7 @@ export async function createCentrifugoAdminApiTestingConnectionTokenCreate( dat
58
57
  * @method POST
59
58
  * @path /cfg/centrifugo/admin/api/testing/publish-test/
60
59
  */
61
- export async function createCentrifugoAdminApiTestingPublishTestCreate( data: PublishTestRequestRequest, client?
60
+ export async function createCentrifugoAdminApiTestingPublishTestCreate( data: PublishTestRequestRequest, client?: any
62
61
  ): Promise<PublishTestResponse> {
63
62
  const api = client || getAPIInstance()
64
63
  const response = await api.cfg_centrifugo_testing.centrifugoAdminApiTestingPublishTestCreate(data)
@@ -72,7 +71,7 @@ export async function createCentrifugoAdminApiTestingPublishTestCreate( data: P
72
71
  * @method POST
73
72
  * @path /cfg/centrifugo/admin/api/testing/publish-with-logging/
74
73
  */
75
- export async function createCentrifugoAdminApiTestingPublishWithLoggingCreate( data: PublishTestRequestRequest, client?
74
+ export async function createCentrifugoAdminApiTestingPublishWithLoggingCreate( data: PublishTestRequestRequest, client?: any
76
75
  ): Promise<PublishTestResponse> {
77
76
  const api = client || getAPIInstance()
78
77
  const response = await api.cfg_centrifugo_testing.centrifugoAdminApiTestingPublishWithLoggingCreate(data)
@@ -86,7 +85,7 @@ export async function createCentrifugoAdminApiTestingPublishWithLoggingCreate(
86
85
  * @method POST
87
86
  * @path /cfg/centrifugo/admin/api/testing/send-ack/
88
87
  */
89
- export async function createCentrifugoAdminApiTestingSendAckCreate( data: ManualAckRequestRequest, client?
88
+ export async function createCentrifugoAdminApiTestingSendAckCreate( data: ManualAckRequestRequest, client?: any
90
89
  ): Promise<ManualAckResponse> {
91
90
  const api = client || getAPIInstance()
92
91
  const response = await api.cfg_centrifugo_testing.centrifugoAdminApiTestingSendAckCreate(data)
@@ -100,7 +99,7 @@ export async function createCentrifugoAdminApiTestingSendAckCreate( data: Manua
100
99
  * @method POST
101
100
  * @path /cfg/centrifugo/testing/connection-token/
102
101
  */
103
- export async function createCentrifugoTestingConnectionTokenCreate( data: ConnectionTokenRequestRequest, client?
102
+ export async function createCentrifugoTestingConnectionTokenCreate( data: ConnectionTokenRequestRequest, client?: any
104
103
  ): Promise<ConnectionTokenResponse> {
105
104
  const api = client || getAPIInstance()
106
105
  const response = await api.cfg_centrifugo_testing.connectionTokenCreate(data)
@@ -114,7 +113,7 @@ export async function createCentrifugoTestingConnectionTokenCreate( data: Conne
114
113
  * @method POST
115
114
  * @path /cfg/centrifugo/testing/publish-test/
116
115
  */
117
- export async function createCentrifugoTestingPublishTestCreate( data: PublishTestRequestRequest, client?
116
+ export async function createCentrifugoTestingPublishTestCreate( data: PublishTestRequestRequest, client?: any
118
117
  ): Promise<PublishTestResponse> {
119
118
  const api = client || getAPIInstance()
120
119
  const response = await api.cfg_centrifugo_testing.publishTestCreate(data)
@@ -128,7 +127,7 @@ export async function createCentrifugoTestingPublishTestCreate( data: PublishTe
128
127
  * @method POST
129
128
  * @path /cfg/centrifugo/testing/publish-with-logging/
130
129
  */
131
- export async function createCentrifugoTestingPublishWithLoggingCreate( data: PublishTestRequestRequest, client?
130
+ export async function createCentrifugoTestingPublishWithLoggingCreate( data: PublishTestRequestRequest, client?: any
132
131
  ): Promise<PublishTestResponse> {
133
132
  const api = client || getAPIInstance()
134
133
  const response = await api.cfg_centrifugo_testing.publishWithLoggingCreate(data)
@@ -142,7 +141,7 @@ export async function createCentrifugoTestingPublishWithLoggingCreate( data: Pu
142
141
  * @method POST
143
142
  * @path /cfg/centrifugo/testing/send-ack/
144
143
  */
145
- export async function createCentrifugoTestingSendAckCreate( data: ManualAckRequestRequest, client?
144
+ export async function createCentrifugoTestingSendAckCreate( data: ManualAckRequestRequest, client?: any
146
145
  ): Promise<ManualAckResponse> {
147
146
  const api = client || getAPIInstance()
148
147
  const response = await api.cfg_centrifugo_testing.sendAckCreate(data)
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - Activity
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { getAPIInstance } from '../../api-instance'
33
+
34
+ /**
35
+ * Get quick actions
36
+ *
37
+ * @method GET
38
+ * @path /cfg/dashboard/api/activity/actions/
39
+ */
40
+ export async function getDashboardApiActivityActionsList( client?: any
41
+ ): Promise<any> {
42
+ const api = client || getAPIInstance()
43
+ const response = await api.cfg_dashboard_activity.dashboardApiActivityActionsList()
44
+ return response
45
+ }
46
+
47
+
48
+ /**
49
+ * Get recent activity
50
+ *
51
+ * @method GET
52
+ * @path /cfg/dashboard/api/activity/recent/
53
+ */
54
+ export async function getDashboardApiActivityRecentList( params?: { limit?: number }, client?: any
55
+ ): Promise<any> {
56
+ const api = client || getAPIInstance()
57
+ const response = await api.cfg_dashboard_activity.dashboardApiActivityRecentList(params?.limit)
58
+ return response
59
+ }
60
+
61
+
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - API Zones
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { APIZonesSummarySchema, type APIZonesSummary } from '../schemas/APIZonesSummary.schema'
33
+ import { getAPIInstance } from '../../api-instance'
34
+
35
+ /**
36
+ * Get all API zones
37
+ *
38
+ * @method GET
39
+ * @path /cfg/dashboard/api/zones/
40
+ */
41
+ export async function getDashboardApiZonesList( client?: any
42
+ ): Promise<any> {
43
+ const api = client || getAPIInstance()
44
+ const response = await api.cfg_dashboard_api_zones.list()
45
+ return response
46
+ }
47
+
48
+
49
+ /**
50
+ * Get zones summary
51
+ *
52
+ * @method GET
53
+ * @path /cfg/dashboard/api/zones/summary/
54
+ */
55
+ export async function getDashboardApiZonesSummaryRetrieve( client?: any
56
+ ): Promise<APIZonesSummary> {
57
+ const api = client || getAPIInstance()
58
+ const response = await api.cfg_dashboard_api_zones.summaryRetrieve()
59
+ return APIZonesSummarySchema.parse(response)
60
+ }
61
+
62
+
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - Charts
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { ChartDataSchema, type ChartData } from '../schemas/ChartData.schema'
33
+ import { getAPIInstance } from '../../api-instance'
34
+
35
+ /**
36
+ * Get user activity chart
37
+ *
38
+ * @method GET
39
+ * @path /cfg/dashboard/api/charts/activity/
40
+ */
41
+ export async function getDashboardApiChartsActivityRetrieve( params?: { days?: number }, client?: any
42
+ ): Promise<ChartData> {
43
+ const api = client || getAPIInstance()
44
+ const response = await api.cfg_dashboard_charts.dashboardApiChartsActivityRetrieve(params?.days)
45
+ return ChartDataSchema.parse(response)
46
+ }
47
+
48
+
49
+ /**
50
+ * Get recent users
51
+ *
52
+ * @method GET
53
+ * @path /cfg/dashboard/api/charts/recent-users/
54
+ */
55
+ export async function getDashboardApiChartsRecentUsersList( params?: { limit?: number }, client?: any
56
+ ): Promise<any> {
57
+ const api = client || getAPIInstance()
58
+ const response = await api.cfg_dashboard_charts.dashboardApiChartsRecentUsersList(params?.limit)
59
+ return response
60
+ }
61
+
62
+
63
+ /**
64
+ * Get user registration chart
65
+ *
66
+ * @method GET
67
+ * @path /cfg/dashboard/api/charts/registrations/
68
+ */
69
+ export async function getDashboardApiChartsRegistrationsRetrieve( params?: { days?: number }, client?: any
70
+ ): Promise<ChartData> {
71
+ const api = client || getAPIInstance()
72
+ const response = await api.cfg_dashboard_charts.dashboardApiChartsRegistrationsRetrieve(params?.days)
73
+ return ChartDataSchema.parse(response)
74
+ }
75
+
76
+
77
+ /**
78
+ * Get activity tracker
79
+ *
80
+ * @method GET
81
+ * @path /cfg/dashboard/api/charts/tracker/
82
+ */
83
+ export async function getDashboardApiChartsTrackerList( params?: { weeks?: number }, client?: any
84
+ ): Promise<any> {
85
+ const api = client || getAPIInstance()
86
+ const response = await api.cfg_dashboard_charts.dashboardApiChartsTrackerList(params?.weeks)
87
+ return response
88
+ }
89
+
90
+
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - Commands
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { CommandsSummarySchema, type CommandsSummary } from '../schemas/CommandsSummary.schema'
33
+ import { getAPIInstance } from '../../api-instance'
34
+
35
+ /**
36
+ * Get all commands
37
+ *
38
+ * @method GET
39
+ * @path /cfg/dashboard/api/commands/
40
+ */
41
+ export async function getDashboardApiCommandsList( client?: any
42
+ ): Promise<any> {
43
+ const api = client || getAPIInstance()
44
+ const response = await api.cfg_dashboard_commands.dashboardApiCommandsList()
45
+ return response
46
+ }
47
+
48
+
49
+ /**
50
+ * Get commands summary
51
+ *
52
+ * @method GET
53
+ * @path /cfg/dashboard/api/commands/summary/
54
+ */
55
+ export async function getDashboardApiCommandsSummaryRetrieve( client?: any
56
+ ): Promise<CommandsSummary> {
57
+ const api = client || getAPIInstance()
58
+ const response = await api.cfg_dashboard_commands.dashboardApiCommandsSummaryRetrieve()
59
+ return CommandsSummarySchema.parse(response)
60
+ }
61
+
62
+
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - Overview
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { DashboardOverviewSchema, type DashboardOverview } from '../schemas/DashboardOverview.schema'
33
+ import { getAPIInstance } from '../../api-instance'
34
+
35
+ /**
36
+ * Get dashboard overview
37
+ *
38
+ * @method GET
39
+ * @path /cfg/dashboard/api/overview/overview/
40
+ */
41
+ export async function getDashboardApiOverviewOverviewRetrieve( client?: any
42
+ ): Promise<DashboardOverview> {
43
+ const api = client || getAPIInstance()
44
+ const response = await api.cfg_dashboard_overview.dashboardApiOverviewOverviewRetrieve()
45
+ return DashboardOverviewSchema.parse(response)
46
+ }
47
+
48
+
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - Statistics
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { UserStatisticsSchema, type UserStatistics } from '../schemas/UserStatistics.schema'
33
+ import { getAPIInstance } from '../../api-instance'
34
+
35
+ /**
36
+ * Get application statistics
37
+ *
38
+ * @method GET
39
+ * @path /cfg/dashboard/api/statistics/apps/
40
+ */
41
+ export async function getDashboardApiStatisticsAppsList( client?: any
42
+ ): Promise<any> {
43
+ const api = client || getAPIInstance()
44
+ const response = await api.cfg_dashboard_statistics.dashboardApiStatisticsAppsList()
45
+ return response
46
+ }
47
+
48
+
49
+ /**
50
+ * Get statistics cards
51
+ *
52
+ * @method GET
53
+ * @path /cfg/dashboard/api/statistics/cards/
54
+ */
55
+ export async function getDashboardApiStatisticsCardsList( client?: any
56
+ ): Promise<any> {
57
+ const api = client || getAPIInstance()
58
+ const response = await api.cfg_dashboard_statistics.dashboardApiStatisticsCardsList()
59
+ return response
60
+ }
61
+
62
+
63
+ /**
64
+ * Get user statistics
65
+ *
66
+ * @method GET
67
+ * @path /cfg/dashboard/api/statistics/users/
68
+ */
69
+ export async function getDashboardApiStatisticsUsersRetrieve( client?: any
70
+ ): Promise<UserStatistics> {
71
+ const api = client || getAPIInstance()
72
+ const response = await api.cfg_dashboard_statistics.dashboardApiStatisticsUsersRetrieve()
73
+ return UserStatisticsSchema.parse(response)
74
+ }
75
+
76
+
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Typed fetchers for Dashboard - System
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { SystemHealthSchema, type SystemHealth } from '../schemas/SystemHealth.schema'
33
+ import { SystemMetricsSchema, type SystemMetrics } from '../schemas/SystemMetrics.schema'
34
+ import { getAPIInstance } from '../../api-instance'
35
+
36
+ /**
37
+ * Get system health status
38
+ *
39
+ * @method GET
40
+ * @path /cfg/dashboard/api/system/health/
41
+ */
42
+ export async function getDashboardApiSystemHealthRetrieve( client?: any
43
+ ): Promise<SystemHealth> {
44
+ const api = client || getAPIInstance()
45
+ const response = await api.cfg_dashboard_system.dashboardApiSystemHealthRetrieve()
46
+ return SystemHealthSchema.parse(response)
47
+ }
48
+
49
+
50
+ /**
51
+ * Get system metrics
52
+ *
53
+ * @method GET
54
+ * @path /cfg/dashboard/api/system/metrics/
55
+ */
56
+ export async function getDashboardApiSystemMetricsRetrieve( client?: any
57
+ ): Promise<SystemMetrics> {
58
+ const api = client || getAPIInstance()
59
+ const response = await api.cfg_dashboard_system.dashboardApiSystemMetricsRetrieve()
60
+ return SystemMetricsSchema.parse(response)
61
+ }
62
+
63
+
@@ -30,8 +30,8 @@
30
30
  * ```
31
31
  */
32
32
  import { EndpointsStatusSchema, type EndpointsStatus } from '../schemas/EndpointsStatus.schema'
33
+ import { URLsListSchema, type URLsList } from '../schemas/URLsList.schema'
33
34
  import { getAPIInstance } from '../../api-instance'
34
- import type { API } from '../../index'
35
35
 
36
36
  /**
37
37
  * API operation
@@ -39,7 +39,7 @@ import type { API } from '../../index'
39
39
  * @method GET
40
40
  * @path /cfg/endpoints/drf/
41
41
  */
42
- export async function getEndpointsDrfRetrieve( client?
42
+ export async function getEndpointsDrfRetrieve( client?: any
43
43
  ): Promise<EndpointsStatus> {
44
44
  const api = client || getAPIInstance()
45
45
  const response = await api.cfg_endpoints.drfRetrieve()
@@ -47,3 +47,31 @@ export async function getEndpointsDrfRetrieve( client?
47
47
  }
48
48
 
49
49
 
50
+ /**
51
+ * API operation
52
+ *
53
+ * @method GET
54
+ * @path /cfg/endpoints/urls/
55
+ */
56
+ export async function getEndpointsUrlsRetrieve( client?: any
57
+ ): Promise<URLsList> {
58
+ const api = client || getAPIInstance()
59
+ const response = await api.cfg_endpoints.urlsRetrieve()
60
+ return URLsListSchema.parse(response)
61
+ }
62
+
63
+
64
+ /**
65
+ * API operation
66
+ *
67
+ * @method GET
68
+ * @path /cfg/endpoints/urls/compact/
69
+ */
70
+ export async function getEndpointsUrlsCompactRetrieve( client?: any
71
+ ): Promise<any> {
72
+ const api = client || getAPIInstance()
73
+ const response = await api.cfg_endpoints.urlsCompactRetrieve()
74
+ return response
75
+ }
76
+
77
+
@@ -32,7 +32,6 @@
32
32
  import { HealthCheckSchema, type HealthCheck } from '../schemas/HealthCheck.schema'
33
33
  import { QuickHealthSchema, type QuickHealth } from '../schemas/QuickHealth.schema'
34
34
  import { getAPIInstance } from '../../api-instance'
35
- import type { API } from '../../index'
36
35
 
37
36
  /**
38
37
  * API operation
@@ -40,7 +39,7 @@ import type { API } from '../../index'
40
39
  * @method GET
41
40
  * @path /cfg/health/drf/
42
41
  */
43
- export async function getHealthDrfRetrieve( client?
42
+ export async function getHealthDrfRetrieve( client?: any
44
43
  ): Promise<HealthCheck> {
45
44
  const api = client || getAPIInstance()
46
45
  const response = await api.cfg_health.drfRetrieve()
@@ -54,7 +53,7 @@ export async function getHealthDrfRetrieve( client?
54
53
  * @method GET
55
54
  * @path /cfg/health/drf/quick/
56
55
  */
57
- export async function getHealthDrfQuickRetrieve( client?
56
+ export async function getHealthDrfQuickRetrieve( client?: any
58
57
  ): Promise<QuickHealth> {
59
58
  const api = client || getAPIInstance()
60
59
  const response = await api.cfg_health.drfQuickRetrieve()