@djangocfg/api 1.2.6 → 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.
- package/dist/index.cjs +2577 -1573
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2141 -820
- package/dist/index.d.ts +2141 -820
- package/dist/index.mjs +2487 -1497
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -3
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -7
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +2 -3
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +12 -13
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +8 -9
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +8 -9
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +61 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +62 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +90 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +62 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +48 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +76 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +63 -0
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +3 -4
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -3
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -58
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -7
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -4
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -7
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -4
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -2
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -9
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -13
- package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -11
- package/src/cfg/generated/_utils/fetchers/index.ts +7 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_activity.ts +49 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_api_zones.ts +50 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_charts.ts +78 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_commands.ts +50 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_overview.ts +36 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_statistics.ts +64 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_system.ts +51 -0
- package/src/cfg/generated/_utils/hooks/index.ts +7 -1
- package/src/cfg/generated/_utils/schemas/APIZone.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/APIZonesSummary.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ActivityTrackerDay.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ChartData.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ChartDataset.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/Command.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CommandsSummary.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RecentUser.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/index.ts +8 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_activity/client.ts +45 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_activity/models.ts +0 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/client.ts +34 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +27 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_charts/client.ts +98 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_charts/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_charts/models.ts +24 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/client.ts +34 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +27 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_overview/client.ts +25 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_overview/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +23 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_statistics/client.ts +44 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_statistics/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_statistics/models.ts +16 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_system/client.ts +34 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_system/index.ts +2 -0
- package/src/cfg/generated/{cfg__dashboard → cfg__dashboard__dashboard_system}/models.ts +0 -39
- package/src/cfg/generated/client.ts +32 -12
- package/src/cfg/generated/http.ts +8 -3
- package/src/cfg/generated/index.ts +35 -5
- package/src/cfg/generated/schema.ts +574 -8
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard.ts +0 -150
- package/src/cfg/generated/_utils/hooks/cfg__dashboard.ts +0 -137
- package/src/cfg/generated/cfg__dashboard/client.ts +0 -106
- /package/src/cfg/generated/{cfg__dashboard → cfg__dashboard__dashboard_activity}/index.ts +0 -0
|
@@ -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?: API
|
|
|
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?: A
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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?: API
|
|
|
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)
|
|
@@ -32,7 +32,13 @@ export * from './cfg__centrifugo'
|
|
|
32
32
|
export * from './cfg__centrifugo__centrifugo_admin_api'
|
|
33
33
|
export * from './cfg__centrifugo__centrifugo_monitoring'
|
|
34
34
|
export * from './cfg__centrifugo__centrifugo_testing'
|
|
35
|
-
export * from './
|
|
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'
|
|
36
42
|
export * from './cfg__endpoints'
|
|
37
43
|
export * from './cfg__health'
|
|
38
44
|
export * from './cfg__knowbase'
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SWR Hooks for Dashboard - API Zones
|
|
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_api_zones'
|
|
20
|
+
import type { API } from '../../index'
|
|
21
|
+
import type { APIZonesSummary } from '../schemas/APIZonesSummary.schema'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get all API zones
|
|
25
|
+
*
|
|
26
|
+
* @method GET
|
|
27
|
+
* @path /cfg/dashboard/api/zones/
|
|
28
|
+
*/
|
|
29
|
+
export function useDashboardApiZonesList(client?: API): ReturnType<typeof useSWR<any>> {
|
|
30
|
+
return useSWR<any>(
|
|
31
|
+
'cfg-dashboard-api-zones',
|
|
32
|
+
() => Fetchers.getDashboardApiZonesList(client)
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get zones summary
|
|
39
|
+
*
|
|
40
|
+
* @method GET
|
|
41
|
+
* @path /cfg/dashboard/api/zones/summary/
|
|
42
|
+
*/
|
|
43
|
+
export function useDashboardApiZonesSummaryRetrieve(client?: API): ReturnType<typeof useSWR<APIZonesSummary>> {
|
|
44
|
+
return useSWR<APIZonesSummary>(
|
|
45
|
+
'cfg-dashboard-api-zones-summary',
|
|
46
|
+
() => Fetchers.getDashboardApiZonesSummaryRetrieve(client)
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SWR Hooks for Dashboard - Charts
|
|
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_charts'
|
|
20
|
+
import type { API } from '../../index'
|
|
21
|
+
import type { ChartData } from '../schemas/ChartData.schema'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get user activity chart
|
|
25
|
+
*
|
|
26
|
+
* @method GET
|
|
27
|
+
* @path /cfg/dashboard/api/charts/activity/
|
|
28
|
+
*/
|
|
29
|
+
export function useDashboardApiChartsActivityRetrieve(params?: { days?: number }, client?: API): ReturnType<typeof useSWR<ChartData>> {
|
|
30
|
+
return useSWR<ChartData>(
|
|
31
|
+
params ? ['cfg-dashboard-api-charts-activity', params] : 'cfg-dashboard-api-charts-activity',
|
|
32
|
+
() => Fetchers.getDashboardApiChartsActivityRetrieve(params, client)
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get recent users
|
|
39
|
+
*
|
|
40
|
+
* @method GET
|
|
41
|
+
* @path /cfg/dashboard/api/charts/recent-users/
|
|
42
|
+
*/
|
|
43
|
+
export function useDashboardApiChartsRecentUsersList(params?: { limit?: number }, client?: API): ReturnType<typeof useSWR<any>> {
|
|
44
|
+
return useSWR<any>(
|
|
45
|
+
params ? ['cfg-dashboard-api-charts-recent-users', params] : 'cfg-dashboard-api-charts-recent-users',
|
|
46
|
+
() => Fetchers.getDashboardApiChartsRecentUsersList(params, client)
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Get user registration chart
|
|
53
|
+
*
|
|
54
|
+
* @method GET
|
|
55
|
+
* @path /cfg/dashboard/api/charts/registrations/
|
|
56
|
+
*/
|
|
57
|
+
export function useDashboardApiChartsRegistrationsRetrieve(params?: { days?: number }, client?: API): ReturnType<typeof useSWR<ChartData>> {
|
|
58
|
+
return useSWR<ChartData>(
|
|
59
|
+
params ? ['cfg-dashboard-api-charts-registration', params] : 'cfg-dashboard-api-charts-registration',
|
|
60
|
+
() => Fetchers.getDashboardApiChartsRegistrationsRetrieve(params, client)
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Get activity tracker
|
|
67
|
+
*
|
|
68
|
+
* @method GET
|
|
69
|
+
* @path /cfg/dashboard/api/charts/tracker/
|
|
70
|
+
*/
|
|
71
|
+
export function useDashboardApiChartsTrackerList(params?: { weeks?: number }, client?: API): ReturnType<typeof useSWR<any>> {
|
|
72
|
+
return useSWR<any>(
|
|
73
|
+
params ? ['cfg-dashboard-api-charts-tracker', params] : 'cfg-dashboard-api-charts-tracker',
|
|
74
|
+
() => Fetchers.getDashboardApiChartsTrackerList(params, client)
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|