@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
@@ -35,7 +35,6 @@ import { PaginatedNewsletterCampaignListSchema, type PaginatedNewsletterCampaign
35
35
  import { SendCampaignRequestSchema, type SendCampaignRequest } from '../schemas/SendCampaignRequest.schema'
36
36
  import { SendCampaignResponseSchema, type SendCampaignResponse } from '../schemas/SendCampaignResponse.schema'
37
37
  import { getAPIInstance } from '../../api-instance'
38
- import type { API } from '../../index'
39
38
 
40
39
  /**
41
40
  * List Newsletter Campaigns
@@ -43,7 +42,7 @@ import type { API } from '../../index'
43
42
  * @method GET
44
43
  * @path /cfg/newsletter/campaigns/
45
44
  */
46
- export async function getNewsletterCampaignsList( params?: { page?: number; page_size?: number }, client?
45
+ export async function getNewsletterCampaignsList( params?: { page?: number; page_size?: number }, client?: any
47
46
  ): Promise<PaginatedNewsletterCampaignList> {
48
47
  const api = client || getAPIInstance()
49
48
  const response = await api.cfg_campaigns.newsletterCampaignsList(params?.page, params?.page_size)
@@ -57,7 +56,7 @@ export async function getNewsletterCampaignsList( params?: { page?: number; pag
57
56
  * @method POST
58
57
  * @path /cfg/newsletter/campaigns/
59
58
  */
60
- export async function createNewsletterCampaignsCreate( data: NewsletterCampaignRequest, client?
59
+ export async function createNewsletterCampaignsCreate( data: NewsletterCampaignRequest, client?: any
61
60
  ): Promise<NewsletterCampaign> {
62
61
  const api = client || getAPIInstance()
63
62
  const response = await api.cfg_campaigns.newsletterCampaignsCreate(data)
@@ -71,7 +70,7 @@ export async function createNewsletterCampaignsCreate( data: NewsletterCampaign
71
70
  * @method GET
72
71
  * @path /cfg/newsletter/campaigns/{id}/
73
72
  */
74
- export async function getNewsletterCampaignsRetrieve( id: number, client?
73
+ export async function getNewsletterCampaignsRetrieve( id: number, client?: any
75
74
  ): Promise<NewsletterCampaign> {
76
75
  const api = client || getAPIInstance()
77
76
  const response = await api.cfg_campaigns.newsletterCampaignsRetrieve(id)
@@ -85,7 +84,7 @@ export async function getNewsletterCampaignsRetrieve( id: number, client?
85
84
  * @method PUT
86
85
  * @path /cfg/newsletter/campaigns/{id}/
87
86
  */
88
- export async function updateNewsletterCampaignsUpdate( id: number, data: NewsletterCampaignRequest, client?
87
+ export async function updateNewsletterCampaignsUpdate( id: number, data: NewsletterCampaignRequest, client?: any
89
88
  ): Promise<NewsletterCampaign> {
90
89
  const api = client || getAPIInstance()
91
90
  const response = await api.cfg_campaigns.newsletterCampaignsUpdate(id, data)
@@ -99,7 +98,7 @@ export async function updateNewsletterCampaignsUpdate( id: number, data: Newsle
99
98
  * @method DELETE
100
99
  * @path /cfg/newsletter/campaigns/{id}/
101
100
  */
102
- export async function deleteNewsletterCampaignsDestroy( id: number, client?
101
+ export async function deleteNewsletterCampaignsDestroy( id: number, client?: any
103
102
  ): Promise<void> {
104
103
  const api = client || getAPIInstance()
105
104
  const response = await api.cfg_campaigns.newsletterCampaignsDestroy(id)
@@ -113,7 +112,7 @@ export async function deleteNewsletterCampaignsDestroy( id: number, client?
113
112
  * @method POST
114
113
  * @path /cfg/newsletter/campaigns/send/
115
114
  */
116
- export async function createNewsletterCampaignsSendCreate( data: SendCampaignRequest, client?
115
+ export async function createNewsletterCampaignsSendCreate( data: SendCampaignRequest, client?: any
117
116
  ): Promise<SendCampaignResponse> {
118
117
  const api = client || getAPIInstance()
119
118
  const response = await api.cfg_campaigns.newsletterCampaignsSendCreate(data)
@@ -31,7 +31,6 @@
31
31
  */
32
32
  import { PaginatedEmailLogListSchema, type PaginatedEmailLogList } from '../schemas/PaginatedEmailLogList.schema'
33
33
  import { getAPIInstance } from '../../api-instance'
34
- import type { API } from '../../index'
35
34
 
36
35
  /**
37
36
  * List Email Logs
@@ -39,7 +38,7 @@ import type { API } from '../../index'
39
38
  * @method GET
40
39
  * @path /cfg/newsletter/logs/
41
40
  */
42
- export async function getNewsletterLogsList( params?: { page?: number; page_size?: number }, client?
41
+ export async function getNewsletterLogsList( params?: { page?: number; page_size?: number }, client?: any
43
42
  ): Promise<PaginatedEmailLogList> {
44
43
  const api = client || getAPIInstance()
45
44
  const response = await api.cfg_logs.newsletterLogsList(params?.page, params?.page_size)
@@ -32,7 +32,6 @@
32
32
  import { NewsletterSchema, type Newsletter } from '../schemas/Newsletter.schema'
33
33
  import { PaginatedNewsletterListSchema, type PaginatedNewsletterList } from '../schemas/PaginatedNewsletterList.schema'
34
34
  import { getAPIInstance } from '../../api-instance'
35
- import type { API } from '../../index'
36
35
 
37
36
  /**
38
37
  * List Active Newsletters
@@ -40,7 +39,7 @@ import type { API } from '../../index'
40
39
  * @method GET
41
40
  * @path /cfg/newsletter/newsletters/
42
41
  */
43
- export async function getNewsletterNewslettersList( params?: { page?: number; page_size?: number }, client?
42
+ export async function getNewsletterNewslettersList( params?: { page?: number; page_size?: number }, client?: any
44
43
  ): Promise<PaginatedNewsletterList> {
45
44
  const api = client || getAPIInstance()
46
45
  const response = await api.cfg_newsletters.newsletterNewslettersList(params?.page, params?.page_size)
@@ -54,7 +53,7 @@ export async function getNewsletterNewslettersList( params?: { page?: number; p
54
53
  * @method GET
55
54
  * @path /cfg/newsletter/newsletters/{id}/
56
55
  */
57
- export async function getNewsletterNewslettersRetrieve( id: number, client?
56
+ export async function getNewsletterNewslettersRetrieve( id: number, client?: any
58
57
  ): Promise<Newsletter> {
59
58
  const api = client || getAPIInstance()
60
59
  const response = await api.cfg_newsletters.newsletterNewslettersRetrieve(id)
@@ -35,7 +35,6 @@ import { SubscribeResponseSchema, type SubscribeResponse } from '../schemas/Subs
35
35
  import { SuccessResponseSchema, type SuccessResponse } from '../schemas/SuccessResponse.schema'
36
36
  import { UnsubscribeRequestSchema, type UnsubscribeRequest } from '../schemas/UnsubscribeRequest.schema'
37
37
  import { getAPIInstance } from '../../api-instance'
38
- import type { API } from '../../index'
39
38
 
40
39
  /**
41
40
  * Subscribe to Newsletter
@@ -43,7 +42,7 @@ import type { API } from '../../index'
43
42
  * @method POST
44
43
  * @path /cfg/newsletter/subscribe/
45
44
  */
46
- export async function createNewsletterSubscribeCreate( data: SubscribeRequest, client?
45
+ export async function createNewsletterSubscribeCreate( data: SubscribeRequest, client?: any
47
46
  ): Promise<SubscribeResponse> {
48
47
  const api = client || getAPIInstance()
49
48
  const response = await api.cfg_subscriptions.newsletterSubscribeCreate(data)
@@ -57,7 +56,7 @@ export async function createNewsletterSubscribeCreate( data: SubscribeRequest,
57
56
  * @method GET
58
57
  * @path /cfg/newsletter/subscriptions/
59
58
  */
60
- export async function getNewsletterSubscriptionsList( params?: { page?: number; page_size?: number }, client?
59
+ export async function getNewsletterSubscriptionsList( params?: { page?: number; page_size?: number }, client?: any
61
60
  ): Promise<PaginatedNewsletterSubscriptionList> {
62
61
  const api = client || getAPIInstance()
63
62
  const response = await api.cfg_subscriptions.newsletterSubscriptionsList(params?.page, params?.page_size)
@@ -71,7 +70,7 @@ export async function getNewsletterSubscriptionsList( params?: { page?: number;
71
70
  * @method POST
72
71
  * @path /cfg/newsletter/unsubscribe/
73
72
  */
74
- export async function createNewsletterUnsubscribeCreate( data: UnsubscribeRequest, client?
73
+ export async function createNewsletterUnsubscribeCreate( data: UnsubscribeRequest, client?: any
75
74
  ): Promise<SuccessResponse> {
76
75
  const api = client || getAPIInstance()
77
76
  const response = await api.cfg_subscriptions.newsletterUnsubscribeCreate(data)
@@ -32,7 +32,6 @@
32
32
  import { BulkEmailResponseSchema, type BulkEmailResponse } from '../schemas/BulkEmailResponse.schema'
33
33
  import { TestEmailRequestSchema, type TestEmailRequest } from '../schemas/TestEmailRequest.schema'
34
34
  import { getAPIInstance } from '../../api-instance'
35
- import type { API } from '../../index'
36
35
 
37
36
  /**
38
37
  * Test Email Sending
@@ -40,7 +39,7 @@ import type { API } from '../../index'
40
39
  * @method POST
41
40
  * @path /cfg/newsletter/test/
42
41
  */
43
- export async function createNewsletterTestCreate( data: TestEmailRequest, client?
42
+ export async function createNewsletterTestCreate( data: TestEmailRequest, client?: any
44
43
  ): Promise<BulkEmailResponse> {
45
44
  const api = client || getAPIInstance()
46
45
  const response = await api.cfg_testing.newsletterTestCreate(data)
@@ -34,7 +34,6 @@ import { PaginatedPaymentListListSchema, type PaginatedPaymentListList } from '.
34
34
  import { PaymentDetailSchema, type PaymentDetail } from '../schemas/PaymentDetail.schema'
35
35
  import { PaymentListSchema, type PaymentList } from '../schemas/PaymentList.schema'
36
36
  import { getAPIInstance } from '../../api-instance'
37
- import type { API } from '../../index'
38
37
 
39
38
  /**
40
39
  * Get user balance
@@ -42,7 +41,7 @@ import type { API } from '../../index'
42
41
  * @method GET
43
42
  * @path /cfg/payments/balance/
44
43
  */
45
- export async function getPaymentsBalanceRetrieve( client?
44
+ export async function getPaymentsBalanceRetrieve( client?: any
46
45
  ): Promise<Balance> {
47
46
  const api = client || getAPIInstance()
48
47
  const response = await api.cfg_payments.balanceRetrieve()
@@ -56,7 +55,7 @@ export async function getPaymentsBalanceRetrieve( client?
56
55
  * @method GET
57
56
  * @path /cfg/payments/currencies/
58
57
  */
59
- export async function getPaymentsCurrenciesList( client?
58
+ export async function getPaymentsCurrenciesList( client?: any
60
59
  ): Promise<any> {
61
60
  const api = client || getAPIInstance()
62
61
  const response = await api.cfg_payments.currenciesList()
@@ -70,7 +69,7 @@ export async function getPaymentsCurrenciesList( client?
70
69
  * @method GET
71
70
  * @path /cfg/payments/payments/
72
71
  */
73
- export async function getPaymentsPaymentsList( params?: { page?: number; page_size?: number }, client?
72
+ export async function getPaymentsPaymentsList( params?: { page?: number; page_size?: number }, client?: any
74
73
  ): Promise<PaginatedPaymentListList> {
75
74
  const api = client || getAPIInstance()
76
75
  const response = await api.cfg_payments.paymentsList(params?.page, params?.page_size)
@@ -84,7 +83,7 @@ export async function getPaymentsPaymentsList( params?: { page?: number; page_s
84
83
  * @method GET
85
84
  * @path /cfg/payments/payments/{id}/
86
85
  */
87
- export async function getPaymentsPaymentsRetrieve( id: string, client?
86
+ export async function getPaymentsPaymentsRetrieve( id: string, client?: any
88
87
  ): Promise<PaymentDetail> {
89
88
  const api = client || getAPIInstance()
90
89
  const response = await api.cfg_payments.paymentsRetrieve(id)
@@ -98,7 +97,7 @@ export async function getPaymentsPaymentsRetrieve( id: string, client?
98
97
  * @method POST
99
98
  * @path /cfg/payments/payments/{id}/confirm/
100
99
  */
101
- export async function createPaymentsPaymentsConfirmCreate( id: string, client?
100
+ export async function createPaymentsPaymentsConfirmCreate( id: string, client?: any
102
101
  ): Promise<PaymentList> {
103
102
  const api = client || getAPIInstance()
104
103
  const response = await api.cfg_payments.paymentsConfirmCreate(id)
@@ -112,7 +111,7 @@ export async function createPaymentsPaymentsConfirmCreate( id: string, client?
112
111
  * @method GET
113
112
  * @path /cfg/payments/payments/{id}/status/
114
113
  */
115
- export async function getPaymentsPaymentsStatusRetrieve( id: string, client?
114
+ export async function getPaymentsPaymentsStatusRetrieve( id: string, client?: any
116
115
  ): Promise<PaymentList> {
117
116
  const api = client || getAPIInstance()
118
117
  const response = await api.cfg_payments.paymentsStatusRetrieve(id)
@@ -126,7 +125,7 @@ export async function getPaymentsPaymentsStatusRetrieve( id: string, client?
126
125
  * @method POST
127
126
  * @path /cfg/payments/payments/create/
128
127
  */
129
- export async function createPaymentsPaymentsCreateCreate( client?
128
+ export async function createPaymentsPaymentsCreateCreate( client?: any
130
129
  ): Promise<PaymentList> {
131
130
  const api = client || getAPIInstance()
132
131
  const response = await api.cfg_payments.paymentsCreateCreate()
@@ -140,7 +139,7 @@ export async function createPaymentsPaymentsCreateCreate( client?
140
139
  * @method GET
141
140
  * @path /cfg/payments/transactions/
142
141
  */
143
- export async function getPaymentsTransactionsList( params?: { limit?: number; offset?: number; type?: string }, client?
142
+ export async function getPaymentsTransactionsList( params?: { limit?: number; offset?: number; type?: string }, client?: any
144
143
  ): Promise<any> {
145
144
  const api = client || getAPIInstance()
146
145
  const response = await api.cfg_payments.transactionsList(params?.limit, params?.offset, params?.type)
@@ -40,7 +40,6 @@ import { PatchedTicketRequestSchema, type PatchedTicketRequest } from '../schema
40
40
  import { TicketSchema, type Ticket } from '../schemas/Ticket.schema'
41
41
  import { TicketRequestSchema, type TicketRequest } from '../schemas/TicketRequest.schema'
42
42
  import { getAPIInstance } from '../../api-instance'
43
- import type { API } from '../../index'
44
43
 
45
44
  /**
46
45
  * API operation
@@ -48,7 +47,7 @@ import type { API } from '../../index'
48
47
  * @method GET
49
48
  * @path /cfg/support/tickets/
50
49
  */
51
- export async function getSupportTicketsList( params?: { page?: number; page_size?: number }, client?
50
+ export async function getSupportTicketsList( params?: { page?: number; page_size?: number }, client?: any
52
51
  ): Promise<PaginatedTicketList> {
53
52
  const api = client || getAPIInstance()
54
53
  const response = await api.cfg_support.ticketsList(params?.page, params?.page_size)
@@ -62,7 +61,7 @@ export async function getSupportTicketsList( params?: { page?: number; page_siz
62
61
  * @method POST
63
62
  * @path /cfg/support/tickets/
64
63
  */
65
- export async function createSupportTicketsCreate( data: TicketRequest, client?
64
+ export async function createSupportTicketsCreate( data: TicketRequest, client?: any
66
65
  ): Promise<Ticket> {
67
66
  const api = client || getAPIInstance()
68
67
  const response = await api.cfg_support.ticketsCreate(data)
@@ -76,7 +75,7 @@ export async function createSupportTicketsCreate( data: TicketRequest, client?
76
75
  * @method GET
77
76
  * @path /cfg/support/tickets/{ticket_uuid}/messages/
78
77
  */
79
- export async function getSupportTicketsMessagesList( ticket_uuid: string, params?: { page?: number; page_size?: number }, client?
78
+ export async function getSupportTicketsMessagesList( ticket_uuid: string, params?: { page?: number; page_size?: number }, client?: any
80
79
  ): Promise<PaginatedMessageList> {
81
80
  const api = client || getAPIInstance()
82
81
  const response = await api.cfg_support.ticketsMessagesList(ticket_uuid, params?.page, params?.page_size)
@@ -90,7 +89,7 @@ export async function getSupportTicketsMessagesList( ticket_uuid: string, param
90
89
  * @method POST
91
90
  * @path /cfg/support/tickets/{ticket_uuid}/messages/
92
91
  */
93
- export async function createSupportTicketsMessagesCreate( ticket_uuid: string, data: MessageCreateRequest, client?
92
+ export async function createSupportTicketsMessagesCreate( ticket_uuid: string, data: MessageCreateRequest, client?: any
94
93
  ): Promise<MessageCreate> {
95
94
  const api = client || getAPIInstance()
96
95
  const response = await api.cfg_support.ticketsMessagesCreate(ticket_uuid, data)
@@ -104,7 +103,7 @@ export async function createSupportTicketsMessagesCreate( ticket_uuid: string,
104
103
  * @method GET
105
104
  * @path /cfg/support/tickets/{ticket_uuid}/messages/{uuid}/
106
105
  */
107
- export async function getSupportTicketsMessagesRetrieve( ticket_uuid: string, uuid: string, client?
106
+ export async function getSupportTicketsMessagesRetrieve( ticket_uuid: string, uuid: string, client?: any
108
107
  ): Promise<Message> {
109
108
  const api = client || getAPIInstance()
110
109
  const response = await api.cfg_support.ticketsMessagesRetrieve(ticket_uuid, uuid)
@@ -118,7 +117,7 @@ export async function getSupportTicketsMessagesRetrieve( ticket_uuid: string, u
118
117
  * @method PUT
119
118
  * @path /cfg/support/tickets/{ticket_uuid}/messages/{uuid}/
120
119
  */
121
- export async function updateSupportTicketsMessagesUpdate( ticket_uuid: string, uuid: string, data: MessageRequest, client?
120
+ export async function updateSupportTicketsMessagesUpdate( ticket_uuid: string, uuid: string, data: MessageRequest, client?: any
122
121
  ): Promise<Message> {
123
122
  const api = client || getAPIInstance()
124
123
  const response = await api.cfg_support.ticketsMessagesUpdate(ticket_uuid, uuid, data)
@@ -132,7 +131,7 @@ export async function updateSupportTicketsMessagesUpdate( ticket_uuid: string,
132
131
  * @method PATCH
133
132
  * @path /cfg/support/tickets/{ticket_uuid}/messages/{uuid}/
134
133
  */
135
- export async function partialUpdateSupportTicketsMessagesPartialUpdate( ticket_uuid: string, uuid: string, data?: PatchedMessageRequest, client?
134
+ export async function partialUpdateSupportTicketsMessagesPartialUpdate( ticket_uuid: string, uuid: string, data?: PatchedMessageRequest, client?: any
136
135
  ): Promise<Message> {
137
136
  const api = client || getAPIInstance()
138
137
  const response = await api.cfg_support.ticketsMessagesPartialUpdate(ticket_uuid, uuid, data)
@@ -146,7 +145,7 @@ export async function partialUpdateSupportTicketsMessagesPartialUpdate( ticket_
146
145
  * @method DELETE
147
146
  * @path /cfg/support/tickets/{ticket_uuid}/messages/{uuid}/
148
147
  */
149
- export async function deleteSupportTicketsMessagesDestroy( ticket_uuid: string, uuid: string, client?
148
+ export async function deleteSupportTicketsMessagesDestroy( ticket_uuid: string, uuid: string, client?: any
150
149
  ): Promise<void> {
151
150
  const api = client || getAPIInstance()
152
151
  const response = await api.cfg_support.ticketsMessagesDestroy(ticket_uuid, uuid)
@@ -160,7 +159,7 @@ export async function deleteSupportTicketsMessagesDestroy( ticket_uuid: string,
160
159
  * @method GET
161
160
  * @path /cfg/support/tickets/{uuid}/
162
161
  */
163
- export async function getSupportTicketsRetrieve( uuid: string, client?
162
+ export async function getSupportTicketsRetrieve( uuid: string, client?: any
164
163
  ): Promise<Ticket> {
165
164
  const api = client || getAPIInstance()
166
165
  const response = await api.cfg_support.ticketsRetrieve(uuid)
@@ -174,7 +173,7 @@ export async function getSupportTicketsRetrieve( uuid: string, client?
174
173
  * @method PUT
175
174
  * @path /cfg/support/tickets/{uuid}/
176
175
  */
177
- export async function updateSupportTicketsUpdate( uuid: string, data: TicketRequest, client?
176
+ export async function updateSupportTicketsUpdate( uuid: string, data: TicketRequest, client?: any
178
177
  ): Promise<Ticket> {
179
178
  const api = client || getAPIInstance()
180
179
  const response = await api.cfg_support.ticketsUpdate(uuid, data)
@@ -188,7 +187,7 @@ export async function updateSupportTicketsUpdate( uuid: string, data: TicketReq
188
187
  * @method PATCH
189
188
  * @path /cfg/support/tickets/{uuid}/
190
189
  */
191
- export async function partialUpdateSupportTicketsPartialUpdate( uuid: string, data?: PatchedTicketRequest, client?
190
+ export async function partialUpdateSupportTicketsPartialUpdate( uuid: string, data?: PatchedTicketRequest, client?: any
192
191
  ): Promise<Ticket> {
193
192
  const api = client || getAPIInstance()
194
193
  const response = await api.cfg_support.ticketsPartialUpdate(uuid, data)
@@ -202,7 +201,7 @@ export async function partialUpdateSupportTicketsPartialUpdate( uuid: string, d
202
201
  * @method DELETE
203
202
  * @path /cfg/support/tickets/{uuid}/
204
203
  */
205
- export async function deleteSupportTicketsDestroy( uuid: string, client?
204
+ export async function deleteSupportTicketsDestroy( uuid: string, client?: any
206
205
  ): Promise<void> {
207
206
  const api = client || getAPIInstance()
208
207
  const response = await api.cfg_support.ticketsDestroy(uuid)
@@ -38,7 +38,6 @@ import { TaskStatisticsSchema, type TaskStatistics } from '../schemas/TaskStatis
38
38
  import { WorkerActionSchema, type WorkerAction } from '../schemas/WorkerAction.schema'
39
39
  import { WorkerActionRequestSchema, type WorkerActionRequest } from '../schemas/WorkerActionRequest.schema'
40
40
  import { getAPIInstance } from '../../api-instance'
41
- import type { API } from '../../index'
42
41
 
43
42
  /**
44
43
  * API operation
@@ -46,7 +45,7 @@ import type { API } from '../../index'
46
45
  * @method POST
47
46
  * @path /cfg/tasks/api/clear/
48
47
  */
49
- export async function createTasksApiClearCreate( data: APIResponseRequest, client?
48
+ export async function createTasksApiClearCreate( data: APIResponseRequest, client?: any
50
49
  ): Promise<APIResponse> {
51
50
  const api = client || getAPIInstance()
52
51
  const response = await api.cfg_tasks.apiClearCreate(data)
@@ -60,7 +59,7 @@ export async function createTasksApiClearCreate( data: APIResponseRequest, cli
60
59
  * @method POST
61
60
  * @path /cfg/tasks/api/clear-queues/
62
61
  */
63
- export async function createTasksApiClearQueuesCreate( data: APIResponseRequest, client?
62
+ export async function createTasksApiClearQueuesCreate( data: APIResponseRequest, client?: any
64
63
  ): Promise<APIResponse> {
65
64
  const api = client || getAPIInstance()
66
65
  const response = await api.cfg_tasks.apiClearQueuesCreate(data)
@@ -74,7 +73,7 @@ export async function createTasksApiClearQueuesCreate( data: APIResponseRequest
74
73
  * @method POST
75
74
  * @path /cfg/tasks/api/purge-failed/
76
75
  */
77
- export async function createTasksApiPurgeFailedCreate( data: APIResponseRequest, client?
76
+ export async function createTasksApiPurgeFailedCreate( data: APIResponseRequest, client?: any
78
77
  ): Promise<APIResponse> {
79
78
  const api = client || getAPIInstance()
80
79
  const response = await api.cfg_tasks.apiPurgeFailedCreate(data)
@@ -88,7 +87,7 @@ export async function createTasksApiPurgeFailedCreate( data: APIResponseRequest
88
87
  * @method POST
89
88
  * @path /cfg/tasks/api/queues/manage/
90
89
  */
91
- export async function createTasksApiQueuesManageCreate( data: QueueActionRequest, client?
90
+ export async function createTasksApiQueuesManageCreate( data: QueueActionRequest, client?: any
92
91
  ): Promise<QueueAction> {
93
92
  const api = client || getAPIInstance()
94
93
  const response = await api.cfg_tasks.apiQueuesManageCreate(data)
@@ -102,7 +101,7 @@ export async function createTasksApiQueuesManageCreate( data: QueueActionReques
102
101
  * @method GET
103
102
  * @path /cfg/tasks/api/queues/status/
104
103
  */
105
- export async function getTasksApiQueuesStatusRetrieve( client?
104
+ export async function getTasksApiQueuesStatusRetrieve( client?: any
106
105
  ): Promise<QueueStatus> {
107
106
  const api = client || getAPIInstance()
108
107
  const response = await api.cfg_tasks.apiQueuesStatusRetrieve()
@@ -116,7 +115,7 @@ export async function getTasksApiQueuesStatusRetrieve( client?
116
115
  * @method POST
117
116
  * @path /cfg/tasks/api/simulate/
118
117
  */
119
- export async function createTasksApiSimulateCreate( data: APIResponseRequest, client?
118
+ export async function createTasksApiSimulateCreate( data: APIResponseRequest, client?: any
120
119
  ): Promise<APIResponse> {
121
120
  const api = client || getAPIInstance()
122
121
  const response = await api.cfg_tasks.apiSimulateCreate(data)
@@ -130,7 +129,7 @@ export async function createTasksApiSimulateCreate( data: APIResponseRequest,
130
129
  * @method GET
131
130
  * @path /cfg/tasks/api/tasks/list/
132
131
  */
133
- export async function getTasksApiTasksListRetrieve( client?
132
+ export async function getTasksApiTasksListRetrieve( client?: any
134
133
  ): Promise<APIResponse> {
135
134
  const api = client || getAPIInstance()
136
135
  const response = await api.cfg_tasks.apiTasksListRetrieve()
@@ -144,7 +143,7 @@ export async function getTasksApiTasksListRetrieve( client?
144
143
  * @method GET
145
144
  * @path /cfg/tasks/api/tasks/stats/
146
145
  */
147
- export async function getTasksApiTasksStatsRetrieve( client?
146
+ export async function getTasksApiTasksStatsRetrieve( client?: any
148
147
  ): Promise<TaskStatistics> {
149
148
  const api = client || getAPIInstance()
150
149
  const response = await api.cfg_tasks.apiTasksStatsRetrieve()
@@ -158,7 +157,7 @@ export async function getTasksApiTasksStatsRetrieve( client?
158
157
  * @method GET
159
158
  * @path /cfg/tasks/api/workers/list/
160
159
  */
161
- export async function getTasksApiWorkersListRetrieve( client?
160
+ export async function getTasksApiWorkersListRetrieve( client?: any
162
161
  ): Promise<APIResponse> {
163
162
  const api = client || getAPIInstance()
164
163
  const response = await api.cfg_tasks.apiWorkersListRetrieve()
@@ -172,7 +171,7 @@ export async function getTasksApiWorkersListRetrieve( client?
172
171
  * @method POST
173
172
  * @path /cfg/tasks/api/workers/manage/
174
173
  */
175
- export async function createTasksApiWorkersManageCreate( data: WorkerActionRequest, client?
174
+ export async function createTasksApiWorkersManageCreate( data: WorkerActionRequest, client?: any
176
175
  ): Promise<WorkerAction> {
177
176
  const api = client || getAPIInstance()
178
177
  const response = await api.cfg_tasks.apiWorkersManageCreate(data)
@@ -28,9 +28,17 @@
28
28
  export * from './cfg__accounts'
29
29
  export * from './cfg__accounts__auth'
30
30
  export * from './cfg__accounts__user_profile'
31
+ export * from './cfg__centrifugo'
31
32
  export * from './cfg__centrifugo__centrifugo_admin_api'
32
33
  export * from './cfg__centrifugo__centrifugo_monitoring'
33
34
  export * from './cfg__centrifugo__centrifugo_testing'
35
+ export * from './cfg__dashboard__dashboard_activity'
36
+ export * from './cfg__dashboard__dashboard_api_zones'
37
+ export * from './cfg__dashboard__dashboard_charts'
38
+ export * from './cfg__dashboard__dashboard_commands'
39
+ export * from './cfg__dashboard__dashboard_overview'
40
+ export * from './cfg__dashboard__dashboard_statistics'
41
+ export * from './cfg__dashboard__dashboard_system'
34
42
  export * from './cfg__endpoints'
35
43
  export * from './cfg__health'
36
44
  export * from './cfg__knowbase'
@@ -0,0 +1,49 @@
1
+ /**
2
+ * SWR Hooks for Centrifugo
3
+ *
4
+ * React hooks powered by SWR for data fetching with automatic caching,
5
+ * revalidation, and optimistic updates.
6
+ *
7
+ * Usage:
8
+ * ```typescript
9
+ * // Query hooks (GET)
10
+ * const { data, error, isLoading } = useUsers({ page: 1 })
11
+ *
12
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
13
+ * const createUser = useCreateUser()
14
+ * await createUser({ name: 'John', email: 'john@example.com' })
15
+ * ```
16
+ */
17
+ import useSWR from 'swr'
18
+ import { useSWRConfig } from 'swr'
19
+ import * as Fetchers from '../fetchers/cfg__centrifugo'
20
+ import type { API } from '../../index'
21
+
22
+ /**
23
+ * API operation
24
+ *
25
+ * @method GET
26
+ * @path /cfg/centrifugo/admin/api/monitor/channels/
27
+ */
28
+ export function useCentrifugoAdminApiMonitorChannelsRetrieve(client?: API): ReturnType<typeof useSWR<any>> {
29
+ return useSWR<any>(
30
+ 'cfg-centrifugo-admin-api-monitor-channel',
31
+ () => Fetchers.getCentrifugoAdminApiMonitorChannelsRetrieve(client)
32
+ )
33
+ }
34
+
35
+
36
+ /**
37
+ * API operation
38
+ *
39
+ * @method GET
40
+ * @path /cfg/centrifugo/monitor/channels/
41
+ */
42
+ export function useCentrifugoMonitorChannelsRetrieve(client?: API): ReturnType<typeof useSWR<any>> {
43
+ return useSWR<any>(
44
+ 'cfg-centrifugo-monitor-channel',
45
+ () => Fetchers.getCentrifugoMonitorChannelsRetrieve(client)
46
+ )
47
+ }
48
+
49
+
@@ -23,20 +23,6 @@ import type { HealthCheck } from '../schemas/HealthCheck.schema'
23
23
  import type { OverviewStats } from '../schemas/OverviewStats.schema'
24
24
  import type { RecentPublishes } from '../schemas/RecentPublishes.schema'
25
25
 
26
- /**
27
- * Get channel statistics
28
- *
29
- * @method GET
30
- * @path /cfg/centrifugo/admin/api/monitor/channels/
31
- */
32
- export function useCentrifugoAdminApiMonitorChannelsRetrieve(params?: { hours?: number }, client?: API): ReturnType<typeof useSWR<ChannelList>> {
33
- return useSWR<ChannelList>(
34
- params ? ['cfg-centrifugo-admin-api-monitor-channel', params] : 'cfg-centrifugo-admin-api-monitor-channel',
35
- () => Fetchers.getCentrifugoAdminApiMonitorChannelsRetrieve(params, client)
36
- )
37
- }
38
-
39
-
40
26
  /**
41
27
  * Get Centrifugo health status
42
28
  *
@@ -71,7 +57,7 @@ export function useCentrifugoAdminApiMonitorOverviewRetrieve(params?: { hours?:
71
57
  * @method GET
72
58
  * @path /cfg/centrifugo/admin/api/monitor/publishes/
73
59
  */
74
- export function useCentrifugoAdminApiMonitorPublishesRetrieve(params?: { channel?: string; count?: number }, client?: API): ReturnType<typeof useSWR<RecentPublishes>> {
60
+ export function useCentrifugoAdminApiMonitorPublishesRetrieve(params?: { channel?: string; count?: number; offset?: number; status?: string }, client?: API): ReturnType<typeof useSWR<RecentPublishes>> {
75
61
  return useSWR<RecentPublishes>(
76
62
  params ? ['cfg-centrifugo-admin-api-monitor-publishe', params] : 'cfg-centrifugo-admin-api-monitor-publishe',
77
63
  () => Fetchers.getCentrifugoAdminApiMonitorPublishesRetrieve(params, client)
@@ -83,12 +69,12 @@ export function useCentrifugoAdminApiMonitorPublishesRetrieve(params?: { channel
83
69
  * Get channel statistics
84
70
  *
85
71
  * @method GET
86
- * @path /cfg/centrifugo/monitor/channels/
72
+ * @path /cfg/centrifugo/admin/api/monitor/timeline/
87
73
  */
88
- export function useCentrifugoMonitorChannelsRetrieve(params?: { hours?: number }, client?: API): ReturnType<typeof useSWR<ChannelList>> {
74
+ export function useCentrifugoAdminApiMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }, client?: API): ReturnType<typeof useSWR<ChannelList>> {
89
75
  return useSWR<ChannelList>(
90
- params ? ['cfg-centrifugo-monitor-channel', params] : 'cfg-centrifugo-monitor-channel',
91
- () => Fetchers.getCentrifugoMonitorChannelsRetrieve(params, client)
76
+ params ? ['cfg-centrifugo-admin-api-monitor-timeline', params] : 'cfg-centrifugo-admin-api-monitor-timeline',
77
+ () => Fetchers.getCentrifugoAdminApiMonitorTimelineRetrieve(params, client)
92
78
  )
93
79
  }
94
80
 
@@ -127,7 +113,7 @@ export function useCentrifugoMonitorOverviewRetrieve(params?: { hours?: number }
127
113
  * @method GET
128
114
  * @path /cfg/centrifugo/monitor/publishes/
129
115
  */
130
- export function useCentrifugoMonitorPublishesRetrieve(params?: { channel?: string; count?: number }, client?: API): ReturnType<typeof useSWR<RecentPublishes>> {
116
+ export function useCentrifugoMonitorPublishesRetrieve(params?: { channel?: string; count?: number; offset?: number; status?: string }, client?: API): ReturnType<typeof useSWR<RecentPublishes>> {
131
117
  return useSWR<RecentPublishes>(
132
118
  params ? ['cfg-centrifugo-monitor-publishe', params] : 'cfg-centrifugo-monitor-publishe',
133
119
  () => Fetchers.getCentrifugoMonitorPublishesRetrieve(params, client)
@@ -135,3 +121,17 @@ export function useCentrifugoMonitorPublishesRetrieve(params?: { channel?: strin
135
121
  }
136
122
 
137
123
 
124
+ /**
125
+ * Get channel statistics
126
+ *
127
+ * @method GET
128
+ * @path /cfg/centrifugo/monitor/timeline/
129
+ */
130
+ export function useCentrifugoMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }, client?: API): ReturnType<typeof useSWR<ChannelList>> {
131
+ return useSWR<ChannelList>(
132
+ params ? ['cfg-centrifugo-monitor-timeline', params] : 'cfg-centrifugo-monitor-timeline',
133
+ () => Fetchers.getCentrifugoMonitorTimelineRetrieve(params, client)
134
+ )
135
+ }
136
+
137
+
@@ -0,0 +1,49 @@
1
+ /**
2
+ * SWR Hooks for Dashboard - Activity
3
+ *
4
+ * React hooks powered by SWR for data fetching with automatic caching,
5
+ * revalidation, and optimistic updates.
6
+ *
7
+ * Usage:
8
+ * ```typescript
9
+ * // Query hooks (GET)
10
+ * const { data, error, isLoading } = useUsers({ page: 1 })
11
+ *
12
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
13
+ * const createUser = useCreateUser()
14
+ * await createUser({ name: 'John', email: 'john@example.com' })
15
+ * ```
16
+ */
17
+ import useSWR from 'swr'
18
+ import { useSWRConfig } from 'swr'
19
+ import * as Fetchers from '../fetchers/cfg__dashboard__dashboard_activity'
20
+ import type { API } from '../../index'
21
+
22
+ /**
23
+ * Get quick actions
24
+ *
25
+ * @method GET
26
+ * @path /cfg/dashboard/api/activity/actions/
27
+ */
28
+ export function useDashboardApiActivityActionsList(client?: API): ReturnType<typeof useSWR<any>> {
29
+ return useSWR<any>(
30
+ 'cfg-dashboard-api-activity-actions',
31
+ () => Fetchers.getDashboardApiActivityActionsList(client)
32
+ )
33
+ }
34
+
35
+
36
+ /**
37
+ * Get recent activity
38
+ *
39
+ * @method GET
40
+ * @path /cfg/dashboard/api/activity/recent/
41
+ */
42
+ export function useDashboardApiActivityRecentList(params?: { limit?: number }, client?: API): ReturnType<typeof useSWR<any>> {
43
+ return useSWR<any>(
44
+ params ? ['cfg-dashboard-api-activity-recent', params] : 'cfg-dashboard-api-activity-recent',
45
+ () => Fetchers.getDashboardApiActivityRecentList(params, client)
46
+ )
47
+ }
48
+
49
+