@actschurch/ccms-sdk 0.0.4 → 0.0.5
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/README.md +55 -1
- package/dist/core/Config.d.ts +21 -2
- package/dist/core/Config.d.ts.map +1 -1
- package/dist/core/Config.js.map +1 -1
- package/dist/core/HttpClient.d.ts +5 -0
- package/dist/core/HttpClient.d.ts.map +1 -1
- package/dist/core/HttpClient.js +75 -0
- package/dist/core/HttpClient.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/file/Folder.d.ts +179 -0
- package/dist/models/file/Folder.d.ts.map +1 -0
- package/dist/models/file/Folder.js +6 -0
- package/dist/models/file/Folder.js.map +1 -0
- package/dist/models/file/ModelView/FileRecordModelView.d.ts +3 -0
- package/dist/models/file/ModelView/FileRecordModelView.d.ts.map +1 -1
- package/dist/models/file/PresignUploadRequest.d.ts +4 -0
- package/dist/models/file/PresignUploadRequest.d.ts.map +1 -1
- package/dist/models/file/index.d.ts +1 -0
- package/dist/models/file/index.d.ts.map +1 -1
- package/dist/models/file/index.js +1 -0
- package/dist/models/file/index.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +2 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/socialmedia/index.d.ts +322 -0
- package/dist/models/socialmedia/index.d.ts.map +1 -0
- package/dist/models/socialmedia/index.js +6 -0
- package/dist/models/socialmedia/index.js.map +1 -0
- package/dist/models/system/ModelView/Health.d.ts +14 -11
- package/dist/models/system/ModelView/Health.d.ts.map +1 -1
- package/dist/models/system/ModelView/Health.js +1 -0
- package/dist/models/system/ModelView/Health.js.map +1 -1
- package/dist/models/system/ModelView/RabbitMQManagement.d.ts +93 -92
- package/dist/models/system/ModelView/RabbitMQManagement.d.ts.map +1 -1
- package/dist/models/system/ModelView/RedisManagement.d.ts +94 -42
- package/dist/models/system/ModelView/RedisManagement.d.ts.map +1 -1
- package/dist/models/task/ModelView/CreateTask.d.ts +14 -17
- package/dist/models/task/ModelView/CreateTask.d.ts.map +1 -1
- package/dist/models/task/ModelView/UpdateTaskPriorityRequest.d.ts +10 -0
- package/dist/models/task/ModelView/UpdateTaskPriorityRequest.d.ts.map +1 -0
- package/dist/models/task/ModelView/UpdateTaskPriorityRequest.js +2 -0
- package/dist/models/task/ModelView/UpdateTaskPriorityRequest.js.map +1 -0
- package/dist/models/task/ModelView/UpdateTaskProjectRequest.d.ts +10 -0
- package/dist/models/task/ModelView/UpdateTaskProjectRequest.d.ts.map +1 -0
- package/dist/models/task/ModelView/UpdateTaskProjectRequest.js +2 -0
- package/dist/models/task/ModelView/UpdateTaskProjectRequest.js.map +1 -0
- package/dist/models/task/ModelView/index.d.ts +2 -0
- package/dist/models/task/ModelView/index.d.ts.map +1 -1
- package/dist/models/task/ModelView/index.js +2 -0
- package/dist/models/task/ModelView/index.js.map +1 -1
- package/dist/react/CCMSProvider.d.ts +1 -19
- package/dist/react/CCMSProvider.d.ts.map +1 -1
- package/dist/react/CCMSProvider.js +71 -56
- package/dist/react/CCMSProvider.js.map +1 -1
- package/dist/react/hooks/index.d.ts +0 -1
- package/dist/react/hooks/index.d.ts.map +1 -1
- package/dist/react/hooks/index.js +1 -3
- package/dist/react/hooks/index.js.map +1 -1
- package/dist/react/hooks/services/index.d.ts +1 -0
- package/dist/react/hooks/services/index.d.ts.map +1 -1
- package/dist/react/hooks/services/index.js +2 -0
- package/dist/react/hooks/services/index.js.map +1 -1
- package/dist/react/hooks/services/useSocialMediaServices.d.ts +43 -0
- package/dist/react/hooks/services/useSocialMediaServices.d.ts.map +1 -0
- package/dist/react/hooks/services/useSocialMediaServices.js +65 -0
- package/dist/react/hooks/services/useSocialMediaServices.js.map +1 -0
- package/dist/react/hooks/services/useUsersServices.d.ts +5 -1
- package/dist/react/hooks/services/useUsersServices.d.ts.map +1 -1
- package/dist/react/hooks/services/useUsersServices.js +6 -0
- package/dist/react/hooks/services/useUsersServices.js.map +1 -1
- package/dist/react/hooks/useCCMS.d.ts +7 -4
- package/dist/react/hooks/useCCMS.d.ts.map +1 -1
- package/dist/react/hooks/useCCMS.js +8 -4
- package/dist/react/hooks/useCCMS.js.map +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/index.js +2 -5
- package/dist/realtime/index.js.map +1 -1
- package/dist/realtime/presence/ActivityTracker.d.ts +141 -0
- package/dist/realtime/presence/ActivityTracker.d.ts.map +1 -0
- package/dist/realtime/presence/ActivityTracker.js +342 -0
- package/dist/realtime/presence/ActivityTracker.js.map +1 -0
- package/dist/realtime/presence/AutoHeartbeatManager.d.ts +68 -0
- package/dist/realtime/presence/AutoHeartbeatManager.d.ts.map +1 -0
- package/dist/realtime/presence/AutoHeartbeatManager.js +160 -0
- package/dist/realtime/presence/AutoHeartbeatManager.js.map +1 -0
- package/dist/realtime/presence/IdleDetector.d.ts +107 -0
- package/dist/realtime/presence/IdleDetector.d.ts.map +1 -0
- package/dist/realtime/presence/IdleDetector.js +270 -0
- package/dist/realtime/presence/IdleDetector.js.map +1 -0
- package/dist/realtime/presence/PresenceClient.d.ts +18 -2
- package/dist/realtime/presence/PresenceClient.d.ts.map +1 -1
- package/dist/realtime/presence/PresenceClient.js +54 -1
- package/dist/realtime/presence/PresenceClient.js.map +1 -1
- package/dist/realtime/presence/PresenceManager.d.ts +191 -0
- package/dist/realtime/presence/PresenceManager.d.ts.map +1 -0
- package/dist/realtime/presence/PresenceManager.js +314 -0
- package/dist/realtime/presence/PresenceManager.js.map +1 -0
- package/dist/realtime/presence/PresenceProvider.d.ts +16 -0
- package/dist/realtime/presence/PresenceProvider.d.ts.map +1 -1
- package/dist/realtime/presence/PresenceProvider.js +16 -0
- package/dist/realtime/presence/PresenceProvider.js.map +1 -1
- package/dist/realtime/presence/index.d.ts +5 -0
- package/dist/realtime/presence/index.d.ts.map +1 -1
- package/dist/realtime/presence/index.js +10 -0
- package/dist/realtime/presence/index.js.map +1 -1
- package/dist/realtime/presence/types.d.ts +23 -5
- package/dist/realtime/presence/types.d.ts.map +1 -1
- package/dist/realtime/presence/types.js +5 -5
- package/dist/realtime/presence/types.js.map +1 -1
- package/dist/realtime/presence/utils.d.ts +87 -0
- package/dist/realtime/presence/utils.d.ts.map +1 -0
- package/dist/realtime/presence/utils.js +191 -0
- package/dist/realtime/presence/utils.js.map +1 -0
- package/dist/realtime/shared/BaseSignalRClient.d.ts.map +1 -1
- package/dist/realtime/shared/BaseSignalRClient.js +38 -4
- package/dist/realtime/shared/BaseSignalRClient.js.map +1 -1
- package/dist/services/file/FileService.d.ts +55 -1
- package/dist/services/file/FileService.d.ts.map +1 -1
- package/dist/services/file/FileService.js +114 -0
- package/dist/services/file/FileService.js.map +1 -1
- package/dist/services/file/FolderService.d.ts +99 -0
- package/dist/services/file/FolderService.d.ts.map +1 -0
- package/dist/services/file/FolderService.js +147 -0
- package/dist/services/file/FolderService.js.map +1 -0
- package/dist/services/file/index.d.ts +3 -0
- package/dist/services/file/index.d.ts.map +1 -1
- package/dist/services/file/index.js +3 -0
- package/dist/services/file/index.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/socialmedia/SocialMediaAccountService.d.ts +38 -0
- package/dist/services/socialmedia/SocialMediaAccountService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaAccountService.js +59 -0
- package/dist/services/socialmedia/SocialMediaAccountService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaAdsService.d.ts +74 -0
- package/dist/services/socialmedia/SocialMediaAdsService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaAdsService.js +130 -0
- package/dist/services/socialmedia/SocialMediaAdsService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaDashboardService.d.ts +137 -0
- package/dist/services/socialmedia/SocialMediaDashboardService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaDashboardService.js +179 -0
- package/dist/services/socialmedia/SocialMediaDashboardService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaMetricsService.d.ts +56 -0
- package/dist/services/socialmedia/SocialMediaMetricsService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaMetricsService.js +105 -0
- package/dist/services/socialmedia/SocialMediaMetricsService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaPostService.d.ts +56 -0
- package/dist/services/socialmedia/SocialMediaPostService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaPostService.js +94 -0
- package/dist/services/socialmedia/SocialMediaPostService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaStoryService.d.ts +47 -0
- package/dist/services/socialmedia/SocialMediaStoryService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaStoryService.js +77 -0
- package/dist/services/socialmedia/SocialMediaStoryService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaThresholdService.d.ts +47 -0
- package/dist/services/socialmedia/SocialMediaThresholdService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaThresholdService.js +75 -0
- package/dist/services/socialmedia/SocialMediaThresholdService.js.map +1 -0
- package/dist/services/socialmedia/SocialMediaVideoService.d.ts +47 -0
- package/dist/services/socialmedia/SocialMediaVideoService.d.ts.map +1 -0
- package/dist/services/socialmedia/SocialMediaVideoService.js +77 -0
- package/dist/services/socialmedia/SocialMediaVideoService.js.map +1 -0
- package/dist/services/socialmedia/index.d.ts +43 -0
- package/dist/services/socialmedia/index.d.ts.map +1 -0
- package/dist/services/socialmedia/index.js +41 -0
- package/dist/services/socialmedia/index.js.map +1 -0
- package/dist/services/system/HealthService.d.ts +15 -0
- package/dist/services/system/HealthService.d.ts.map +1 -1
- package/dist/services/system/HealthService.js +21 -15
- package/dist/services/system/HealthService.js.map +1 -1
- package/dist/services/system/RabbitMQManagementService.d.ts +13 -9
- package/dist/services/system/RabbitMQManagementService.d.ts.map +1 -1
- package/dist/services/system/RabbitMQManagementService.js +23 -40
- package/dist/services/system/RabbitMQManagementService.js.map +1 -1
- package/dist/services/system/RedisManagementService.d.ts +13 -6
- package/dist/services/system/RedisManagementService.d.ts.map +1 -1
- package/dist/services/system/RedisManagementService.js +42 -20
- package/dist/services/system/RedisManagementService.js.map +1 -1
- package/dist/services/task/TaskService.d.ts +100 -1
- package/dist/services/task/TaskService.d.ts.map +1 -1
- package/dist/services/task/TaskService.js +167 -0
- package/dist/services/task/TaskService.js.map +1 -1
- package/dist/services/types.d.ts +2 -0
- package/dist/services/types.d.ts.map +1 -1
- package/dist/services/users/PresenceAnalyticsService.d.ts +179 -0
- package/dist/services/users/PresenceAnalyticsService.d.ts.map +1 -0
- package/dist/services/users/PresenceAnalyticsService.js +232 -0
- package/dist/services/users/PresenceAnalyticsService.js.map +1 -0
- package/dist/services/users/RightService.d.ts +16 -20
- package/dist/services/users/RightService.d.ts.map +1 -1
- package/dist/services/users/RightService.js +3 -37
- package/dist/services/users/RightService.js.map +1 -1
- package/dist/services/users/RoleService.d.ts +27 -0
- package/dist/services/users/RoleService.d.ts.map +1 -1
- package/dist/services/users/RoleService.js +54 -0
- package/dist/services/users/RoleService.js.map +1 -1
- package/dist/services/users/SystemService.d.ts +9 -0
- package/dist/services/users/SystemService.d.ts.map +1 -1
- package/dist/services/users/SystemService.js +20 -0
- package/dist/services/users/SystemService.js.map +1 -1
- package/dist/services/users/UserPreferencesService.d.ts +27 -0
- package/dist/services/users/UserPreferencesService.d.ts.map +1 -1
- package/dist/services/users/UserPreferencesService.js +54 -0
- package/dist/services/users/UserPreferencesService.js.map +1 -1
- package/dist/services/users/UserPushDeviceService.d.ts +18 -0
- package/dist/services/users/UserPushDeviceService.d.ts.map +1 -1
- package/dist/services/users/UserPushDeviceService.js +35 -0
- package/dist/services/users/UserPushDeviceService.js.map +1 -1
- package/dist/services/users/UserService.d.ts +142 -1
- package/dist/services/users/UserService.d.ts.map +1 -1
- package/dist/services/users/UserService.js +265 -0
- package/dist/services/users/UserService.js.map +1 -1
- package/dist/services/users/index.d.ts +5 -2
- package/dist/services/users/index.d.ts.map +1 -1
- package/dist/services/users/index.js +3 -0
- package/dist/services/users/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/react/hooks/useRealtime.d.ts +0 -63
- package/dist/react/hooks/useRealtime.d.ts.map +0 -1
- package/dist/react/hooks/useRealtime.js +0 -146
- package/dist/react/hooks/useRealtime.js.map +0 -1
- package/dist/realtime/RealtimeClient.d.ts +0 -99
- package/dist/realtime/RealtimeClient.d.ts.map +0 -1
- package/dist/realtime/RealtimeClient.js +0 -278
- package/dist/realtime/RealtimeClient.js.map +0 -1
- package/dist/realtime/types.d.ts +0 -76
- package/dist/realtime/types.d.ts.map +0 -1
- package/dist/realtime/types.js +0 -55
- package/dist/realtime/types.js.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaMetricsService
|
|
3
|
+
* Service for social media metrics operations
|
|
4
|
+
* Route: api/socialmedia/metrics
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from '../base/BaseService';
|
|
7
|
+
/**
|
|
8
|
+
* SocialMediaMetricsService
|
|
9
|
+
* Handles social media metrics queries
|
|
10
|
+
*/
|
|
11
|
+
export class SocialMediaMetricsService extends BaseService {
|
|
12
|
+
constructor(http, config) {
|
|
13
|
+
super(http, {
|
|
14
|
+
servicePath: config?.servicePath ?? SocialMediaMetricsService.DEFAULT_SERVICE_PATH,
|
|
15
|
+
basePath: SocialMediaMetricsService.BASE_PATH,
|
|
16
|
+
endpoints: config?.endpoints,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// ==================== GET DAILY METRICS ====================
|
|
20
|
+
/**
|
|
21
|
+
* Get daily metrics for an account
|
|
22
|
+
* GET api/socialmedia/metrics/daily?accountId={accountId}&startDate={startDate}&endDate={endDate}
|
|
23
|
+
*/
|
|
24
|
+
async getDailyMetrics(accountId, startDate, endDate) {
|
|
25
|
+
const response = await this.getDailyMetricsRaw(accountId, startDate, endDate);
|
|
26
|
+
return response.data ?? [];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get daily metrics with full response
|
|
30
|
+
*/
|
|
31
|
+
getDailyMetricsRaw(accountId, startDate, endDate) {
|
|
32
|
+
const endpoint = this.getEndpoint('daily', 'daily');
|
|
33
|
+
const url = this.buildUrl(endpoint);
|
|
34
|
+
const params = new URLSearchParams({ accountId });
|
|
35
|
+
if (startDate)
|
|
36
|
+
params.append('startDate', startDate);
|
|
37
|
+
if (endDate)
|
|
38
|
+
params.append('endDate', endDate);
|
|
39
|
+
return this.http.get(`${url}?${params.toString()}`);
|
|
40
|
+
}
|
|
41
|
+
// ==================== GET HOURLY METRICS ====================
|
|
42
|
+
/**
|
|
43
|
+
* Get hourly metrics for an account
|
|
44
|
+
* GET api/socialmedia/metrics/hourly?accountId={accountId}&startDate={startDate}&endDate={endDate}
|
|
45
|
+
*/
|
|
46
|
+
async getHourlyMetrics(accountId, startDate, endDate) {
|
|
47
|
+
const response = await this.getHourlyMetricsRaw(accountId, startDate, endDate);
|
|
48
|
+
return response.data ?? [];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get hourly metrics with full response
|
|
52
|
+
*/
|
|
53
|
+
getHourlyMetricsRaw(accountId, startDate, endDate) {
|
|
54
|
+
const endpoint = this.getEndpoint('hourly', 'hourly');
|
|
55
|
+
const url = this.buildUrl(endpoint);
|
|
56
|
+
const params = new URLSearchParams({ accountId });
|
|
57
|
+
if (startDate)
|
|
58
|
+
params.append('startDate', startDate);
|
|
59
|
+
if (endDate)
|
|
60
|
+
params.append('endDate', endDate);
|
|
61
|
+
return this.http.get(`${url}?${params.toString()}`);
|
|
62
|
+
}
|
|
63
|
+
// ==================== GET LATEST METRICS ====================
|
|
64
|
+
/**
|
|
65
|
+
* Get latest daily metrics for an account
|
|
66
|
+
* GET api/socialmedia/metrics/latest?accountId={accountId}
|
|
67
|
+
*/
|
|
68
|
+
async getLatestMetrics(accountId) {
|
|
69
|
+
const response = await this.getLatestMetricsRaw(accountId);
|
|
70
|
+
return response.data ?? null;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get latest daily metrics with full response
|
|
74
|
+
*/
|
|
75
|
+
getLatestMetricsRaw(accountId) {
|
|
76
|
+
const endpoint = this.getEndpoint('latest', 'latest');
|
|
77
|
+
const url = this.buildUrl(endpoint);
|
|
78
|
+
return this.http.get(`${url}?accountId=${accountId}`);
|
|
79
|
+
}
|
|
80
|
+
// ==================== GET AUDIENCE INSIGHTS ====================
|
|
81
|
+
/**
|
|
82
|
+
* Get audience insights for an account
|
|
83
|
+
* GET api/socialmedia/metrics/audience?accountId={accountId}&startDate={startDate}&endDate={endDate}
|
|
84
|
+
*/
|
|
85
|
+
async getAudienceInsights(accountId, startDate, endDate) {
|
|
86
|
+
const response = await this.getAudienceInsightsRaw(accountId, startDate, endDate);
|
|
87
|
+
return response.data ?? [];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get audience insights with full response
|
|
91
|
+
*/
|
|
92
|
+
getAudienceInsightsRaw(accountId, startDate, endDate) {
|
|
93
|
+
const endpoint = this.getEndpoint('audience', 'audience');
|
|
94
|
+
const url = this.buildUrl(endpoint);
|
|
95
|
+
const params = new URLSearchParams({ accountId });
|
|
96
|
+
if (startDate)
|
|
97
|
+
params.append('startDate', startDate);
|
|
98
|
+
if (endDate)
|
|
99
|
+
params.append('endDate', endDate);
|
|
100
|
+
return this.http.get(`${url}?${params.toString()}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
SocialMediaMetricsService.DEFAULT_SERVICE_PATH = 'socialmedia';
|
|
104
|
+
SocialMediaMetricsService.BASE_PATH = 'api/socialmedia/metrics';
|
|
105
|
+
//# sourceMappingURL=SocialMediaMetricsService.js.map
|
|
@@ -0,0 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,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA0B,GAAG,GAAG,cAAc,SAAS,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,kEAAkE;IAElE;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CACvB,SAAiB,EACjB,SAAkB,EAClB,OAAgB;QAEhB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAClF,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,sBAAsB,CACpB,SAAiB,EACjB,SAAkB,EAClB,OAAgB;QAEhB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAClD,IAAI,SAAS;YAAE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACrD,IAAI,OAAO;YAAE,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA+B,GAAG,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACpF,CAAC;;AA1HuB,8CAAoB,GAAG,aAAa,CAAC;AACrC,mCAAS,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaPostService
|
|
3
|
+
* Service for SocialMediaPost entity operations
|
|
4
|
+
* Route: api/socialmedia/posts
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import { ResponseData } from '../../models/common/ResponseData';
|
|
8
|
+
import { BaseService } from '../base/BaseService';
|
|
9
|
+
import { ServiceConfig } from '../types';
|
|
10
|
+
import { SocialMediaPost } from '../../models/socialmedia';
|
|
11
|
+
/**
|
|
12
|
+
* SocialMediaPostService
|
|
13
|
+
* Handles social media post queries and metrics
|
|
14
|
+
*/
|
|
15
|
+
export declare class SocialMediaPostService extends BaseService {
|
|
16
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
17
|
+
private static readonly BASE_PATH;
|
|
18
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Get post by ID
|
|
21
|
+
* GET api/socialmedia/posts/{id}
|
|
22
|
+
*/
|
|
23
|
+
getById(id: string): Promise<SocialMediaPost>;
|
|
24
|
+
/**
|
|
25
|
+
* Get post by ID with full response
|
|
26
|
+
*/
|
|
27
|
+
getByIdRaw(id: string): Promise<ResponseData<SocialMediaPost>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get posts by account ID
|
|
30
|
+
* GET api/socialmedia/posts/account/{accountId}
|
|
31
|
+
*/
|
|
32
|
+
getByAccount(accountId: string): Promise<SocialMediaPost[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Get posts by account ID with full response
|
|
35
|
+
*/
|
|
36
|
+
getByAccountRaw(accountId: string): Promise<ResponseData<SocialMediaPost[]>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get top performing posts for an account
|
|
39
|
+
* GET api/socialmedia/posts/account/{accountId}/top-performing?metricType={metricType}&limit={limit}
|
|
40
|
+
*/
|
|
41
|
+
getTopPerforming(accountId: string, metricType?: string, limit?: number): Promise<SocialMediaPost[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Get top performing posts with full response
|
|
44
|
+
*/
|
|
45
|
+
getTopPerformingRaw(accountId: string, metricType?: string, limit?: number): Promise<ResponseData<SocialMediaPost[]>>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete a post
|
|
48
|
+
* DELETE api/socialmedia/posts/{id}
|
|
49
|
+
*/
|
|
50
|
+
delete(id: string): Promise<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete a post with full response
|
|
53
|
+
*/
|
|
54
|
+
deleteRaw(id: string): Promise<ResponseData<void>>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=SocialMediaPostService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaPostService.d.ts","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaPostService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAiB;IAC7D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA2B;gBAEhD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;OAGG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAQnD;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAQ9D;;;OAGG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAKjE;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC,CAAC;IAQ5E;;;OAGG;IACG,gBAAgB,CACpB,SAAS,EAAE,MAAM,EACjB,UAAU,GAAE,MAAqB,EACjC,KAAK,GAAE,MAAW,GACjB,OAAO,CAAC,eAAe,EAAE,CAAC;IAK7B;;OAEG;IACH,mBAAmB,CACjB,SAAS,EAAE,MAAM,EACjB,UAAU,GAAE,MAAqB,EACjC,KAAK,GAAE,MAAW,GACjB,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC,CAAC;IAY3C;;;OAGG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK1C;;OAEG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAKnD"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaPostService
|
|
3
|
+
* Service for SocialMediaPost entity operations
|
|
4
|
+
* Route: api/socialmedia/posts
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from '../base/BaseService';
|
|
7
|
+
/**
|
|
8
|
+
* SocialMediaPostService
|
|
9
|
+
* Handles social media post queries and metrics
|
|
10
|
+
*/
|
|
11
|
+
export class SocialMediaPostService extends BaseService {
|
|
12
|
+
constructor(http, config) {
|
|
13
|
+
super(http, {
|
|
14
|
+
servicePath: config?.servicePath ?? SocialMediaPostService.DEFAULT_SERVICE_PATH,
|
|
15
|
+
basePath: SocialMediaPostService.BASE_PATH,
|
|
16
|
+
endpoints: config?.endpoints,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// ==================== GET BY ID ====================
|
|
20
|
+
/**
|
|
21
|
+
* Get post by ID
|
|
22
|
+
* GET api/socialmedia/posts/{id}
|
|
23
|
+
*/
|
|
24
|
+
async getById(id) {
|
|
25
|
+
const response = await this.getByIdRaw(id);
|
|
26
|
+
if (!response.data) {
|
|
27
|
+
throw new Error(`Post ${id} not found`);
|
|
28
|
+
}
|
|
29
|
+
return response.data;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get post by ID with full response
|
|
33
|
+
*/
|
|
34
|
+
getByIdRaw(id) {
|
|
35
|
+
const endpoint = this.getEndpoint('get', id);
|
|
36
|
+
const url = this.buildUrl(endpoint);
|
|
37
|
+
return this.http.get(url);
|
|
38
|
+
}
|
|
39
|
+
// ==================== GET BY ACCOUNT ====================
|
|
40
|
+
/**
|
|
41
|
+
* Get posts by account ID
|
|
42
|
+
* GET api/socialmedia/posts/account/{accountId}
|
|
43
|
+
*/
|
|
44
|
+
async getByAccount(accountId) {
|
|
45
|
+
const response = await this.getByAccountRaw(accountId);
|
|
46
|
+
return response.data ?? [];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get posts by account ID with full response
|
|
50
|
+
*/
|
|
51
|
+
getByAccountRaw(accountId) {
|
|
52
|
+
const endpoint = this.getEndpoint('by-account', `account/${accountId}`);
|
|
53
|
+
const url = this.buildUrl(endpoint);
|
|
54
|
+
return this.http.get(url);
|
|
55
|
+
}
|
|
56
|
+
// ==================== GET TOP PERFORMING ====================
|
|
57
|
+
/**
|
|
58
|
+
* Get top performing posts for an account
|
|
59
|
+
* GET api/socialmedia/posts/account/{accountId}/top-performing?metricType={metricType}&limit={limit}
|
|
60
|
+
*/
|
|
61
|
+
async getTopPerforming(accountId, metricType = 'Engagement', limit = 10) {
|
|
62
|
+
const response = await this.getTopPerformingRaw(accountId, metricType, limit);
|
|
63
|
+
return response.data ?? [];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get top performing posts with full response
|
|
67
|
+
*/
|
|
68
|
+
getTopPerformingRaw(accountId, metricType = 'Engagement', limit = 10) {
|
|
69
|
+
const endpoint = this.getEndpoint('top-performing', `account/${accountId}/top-performing`);
|
|
70
|
+
const url = this.buildUrl(endpoint);
|
|
71
|
+
const urlWithParams = `${url}?metricType=${encodeURIComponent(metricType)}&limit=${limit}`;
|
|
72
|
+
return this.http.get(urlWithParams);
|
|
73
|
+
}
|
|
74
|
+
// ==================== DELETE ====================
|
|
75
|
+
/**
|
|
76
|
+
* Delete a post
|
|
77
|
+
* DELETE api/socialmedia/posts/{id}
|
|
78
|
+
*/
|
|
79
|
+
async delete(id) {
|
|
80
|
+
const response = await this.deleteRaw(id);
|
|
81
|
+
return response.success ?? false;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Delete a post with full response
|
|
85
|
+
*/
|
|
86
|
+
deleteRaw(id) {
|
|
87
|
+
const endpoint = this.getEndpoint('delete', id);
|
|
88
|
+
const url = this.buildUrl(endpoint);
|
|
89
|
+
return this.http.delete(url);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
SocialMediaPostService.DEFAULT_SERVICE_PATH = 'socialmedia';
|
|
93
|
+
SocialMediaPostService.BASE_PATH = 'api/socialmedia/posts';
|
|
94
|
+
//# sourceMappingURL=SocialMediaPostService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaPostService.js","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaPostService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IAIrD,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,sBAAsB,CAAC,oBAAoB;YAC/E,QAAQ,EAAE,sBAAsB,CAAC,SAAS;YAC1C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,sDAAsD;IAEtD;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,CAAC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QAElB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAC/B,gBAAgB,EAChB,WAAW,SAAS,iBAAiB,CACtC,CAAC;QACF,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,MAAM,aAAa,GAAG,GAAG,GAAG,eAAe,kBAAkB,CAAC,UAAU,CAAC,UAAU,KAAK,EAAE,CAAC;QAC3F,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAoB,aAAa,CAAC,CAAC;IACzD,CAAC;IAED,mDAAmD;IAEnD;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAC1C,OAAO,QAAQ,CAAC,OAAO,IAAI,KAAK,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,EAAU;QAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAO,GAAG,CAAC,CAAC;IACrC,CAAC;;AAxGuB,2CAAoB,GAAG,aAAa,CAAC;AACrC,gCAAS,GAAG,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaStoryService
|
|
3
|
+
* Service for SocialMediaStory entity operations
|
|
4
|
+
* Route: api/socialmedia/stories
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import { ResponseData } from '../../models/common/ResponseData';
|
|
8
|
+
import { BaseService } from '../base/BaseService';
|
|
9
|
+
import { ServiceConfig } from '../types';
|
|
10
|
+
import { SocialMediaStory } from '../../models/socialmedia';
|
|
11
|
+
/**
|
|
12
|
+
* SocialMediaStoryService
|
|
13
|
+
* Handles social media story queries and metrics
|
|
14
|
+
*/
|
|
15
|
+
export declare class SocialMediaStoryService extends BaseService {
|
|
16
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
17
|
+
private static readonly BASE_PATH;
|
|
18
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Get story by ID
|
|
21
|
+
* GET api/socialmedia/stories/{id}
|
|
22
|
+
*/
|
|
23
|
+
getById(id: string): Promise<SocialMediaStory>;
|
|
24
|
+
/**
|
|
25
|
+
* Get story by ID with full response
|
|
26
|
+
*/
|
|
27
|
+
getByIdRaw(id: string): Promise<ResponseData<SocialMediaStory>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get stories by account ID
|
|
30
|
+
* GET api/socialmedia/stories/account/{accountId}?includeExpired={includeExpired}
|
|
31
|
+
*/
|
|
32
|
+
getByAccount(accountId: string, includeExpired?: boolean): Promise<SocialMediaStory[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Get stories by account ID with full response
|
|
35
|
+
*/
|
|
36
|
+
getByAccountRaw(accountId: string, includeExpired?: boolean): Promise<ResponseData<SocialMediaStory[]>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get active stories for an account
|
|
39
|
+
* GET api/socialmedia/stories/account/{accountId}/active
|
|
40
|
+
*/
|
|
41
|
+
getActiveStories(accountId: string): Promise<SocialMediaStory[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Get active stories with full response
|
|
44
|
+
*/
|
|
45
|
+
getActiveStoriesRaw(accountId: string): Promise<ResponseData<SocialMediaStory[]>>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=SocialMediaStoryService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaStoryService.d.ts","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaStoryService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU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*/
|
|
6
|
+
import { BaseService } from '../base/BaseService';
|
|
7
|
+
/**
|
|
8
|
+
* SocialMediaStoryService
|
|
9
|
+
* Handles social media story queries and metrics
|
|
10
|
+
*/
|
|
11
|
+
export class SocialMediaStoryService extends BaseService {
|
|
12
|
+
constructor(http, config) {
|
|
13
|
+
super(http, {
|
|
14
|
+
servicePath: config?.servicePath ?? SocialMediaStoryService.DEFAULT_SERVICE_PATH,
|
|
15
|
+
basePath: SocialMediaStoryService.BASE_PATH,
|
|
16
|
+
endpoints: config?.endpoints,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// ==================== GET BY ID ====================
|
|
20
|
+
/**
|
|
21
|
+
* Get story by ID
|
|
22
|
+
* GET api/socialmedia/stories/{id}
|
|
23
|
+
*/
|
|
24
|
+
async getById(id) {
|
|
25
|
+
const response = await this.getByIdRaw(id);
|
|
26
|
+
if (!response.data) {
|
|
27
|
+
throw new Error(`Story ${id} not found`);
|
|
28
|
+
}
|
|
29
|
+
return response.data;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get story by ID with full response
|
|
33
|
+
*/
|
|
34
|
+
getByIdRaw(id) {
|
|
35
|
+
const endpoint = this.getEndpoint('get', id);
|
|
36
|
+
const url = this.buildUrl(endpoint);
|
|
37
|
+
return this.http.get(url);
|
|
38
|
+
}
|
|
39
|
+
// ==================== GET BY ACCOUNT ====================
|
|
40
|
+
/**
|
|
41
|
+
* Get stories by account ID
|
|
42
|
+
* GET api/socialmedia/stories/account/{accountId}?includeExpired={includeExpired}
|
|
43
|
+
*/
|
|
44
|
+
async getByAccount(accountId, includeExpired = false) {
|
|
45
|
+
const response = await this.getByAccountRaw(accountId, includeExpired);
|
|
46
|
+
return response.data ?? [];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get stories by account ID with full response
|
|
50
|
+
*/
|
|
51
|
+
getByAccountRaw(accountId, includeExpired = false) {
|
|
52
|
+
const endpoint = this.getEndpoint('by-account', `account/${accountId}`);
|
|
53
|
+
const url = this.buildUrl(endpoint);
|
|
54
|
+
const urlWithParams = `${url}?includeExpired=${includeExpired}`;
|
|
55
|
+
return this.http.get(urlWithParams);
|
|
56
|
+
}
|
|
57
|
+
// ==================== GET ACTIVE STORIES ====================
|
|
58
|
+
/**
|
|
59
|
+
* Get active stories for an account
|
|
60
|
+
* GET api/socialmedia/stories/account/{accountId}/active
|
|
61
|
+
*/
|
|
62
|
+
async getActiveStories(accountId) {
|
|
63
|
+
const response = await this.getActiveStoriesRaw(accountId);
|
|
64
|
+
return response.data ?? [];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get active stories with full response
|
|
68
|
+
*/
|
|
69
|
+
getActiveStoriesRaw(accountId) {
|
|
70
|
+
const endpoint = this.getEndpoint('active', `account/${accountId}/active`);
|
|
71
|
+
const url = this.buildUrl(endpoint);
|
|
72
|
+
return this.http.get(url);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
SocialMediaStoryService.DEFAULT_SERVICE_PATH = 'socialmedia';
|
|
76
|
+
SocialMediaStoryService.BASE_PATH = 'api/socialmedia/stories';
|
|
77
|
+
//# sourceMappingURL=SocialMediaStoryService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaStoryService.js","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaStoryService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IAItD,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,uBAAuB,CAAC,oBAAoB;YAChF,QAAQ,EAAE,uBAAuB,CAAC,SAAS;YAC3C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;I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B;QACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;QAC3D,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,SAAiB;QACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,WAAW,SAAS,SAAS,CAAC,CAAC;QAC3E,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAqB,GAAG,CAAC,CAAC;IAChD,CAAC;;AA/EuB,4CAAoB,GAAG,aAAa,CAAC;AACrC,iCAAS,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaThresholdService
|
|
3
|
+
* Service for SocialMediaThreshold entity operations
|
|
4
|
+
* Route: api/socialmedia/thresholds
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import { ResponseData } from '../../models/common/ResponseData';
|
|
8
|
+
import { CrudService } from '../base/CrudService';
|
|
9
|
+
import { ServiceConfig } from '../types';
|
|
10
|
+
import { SocialMediaThreshold } from '../../models/socialmedia';
|
|
11
|
+
/**
|
|
12
|
+
* SocialMediaThresholdService
|
|
13
|
+
* Handles social media threshold CRUD operations
|
|
14
|
+
*/
|
|
15
|
+
export declare class SocialMediaThresholdService extends CrudService<SocialMediaThreshold, SocialMediaThreshold, Partial<SocialMediaThreshold>> {
|
|
16
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
17
|
+
private static readonly BASE_PATH;
|
|
18
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Get all active thresholds
|
|
21
|
+
* GET api/socialmedia/thresholds
|
|
22
|
+
*/
|
|
23
|
+
getAllActive(): Promise<SocialMediaThreshold[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Get all active thresholds with full response
|
|
26
|
+
*/
|
|
27
|
+
getAllActiveRaw(): Promise<ResponseData<SocialMediaThreshold[]>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get thresholds by account ID
|
|
30
|
+
* GET api/socialmedia/thresholds/account/{accountId}
|
|
31
|
+
*/
|
|
32
|
+
getByAccount(accountId: string): Promise<SocialMediaThreshold[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Get thresholds by account ID with full response
|
|
35
|
+
*/
|
|
36
|
+
getByAccountRaw(accountId: string): Promise<ResponseData<SocialMediaThreshold[]>>;
|
|
37
|
+
/**
|
|
38
|
+
* Check threshold against current value
|
|
39
|
+
* POST api/socialmedia/thresholds/{id}/check?currentValue={currentValue}
|
|
40
|
+
*/
|
|
41
|
+
checkThreshold(id: string, currentValue: number): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Check threshold with full response
|
|
44
|
+
*/
|
|
45
|
+
checkThresholdRaw(id: string, currentValue: number): Promise<ResponseData<void>>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=SocialMediaThresholdService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaThresholdService.d.ts","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaThresholdService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;;GAGG;AACH,qBAAa,2BAA4B,SAAQ,WAAW,CAC1D,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,CAAC,oBAAoB,CAAC,CAC9B;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAiB;IAC7D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAgC;gBAErD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAKrD;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAQhE;;;OAGG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAKtE;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAQjF;;;OAGG;IACG,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrE;;OAEG;IACH,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAKjF"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaThresholdService
|
|
3
|
+
* Service for SocialMediaThreshold entity operations
|
|
4
|
+
* Route: api/socialmedia/thresholds
|
|
5
|
+
*/
|
|
6
|
+
import { CrudService } from '../base/CrudService';
|
|
7
|
+
/**
|
|
8
|
+
* SocialMediaThresholdService
|
|
9
|
+
* Handles social media threshold CRUD operations
|
|
10
|
+
*/
|
|
11
|
+
export class SocialMediaThresholdService extends CrudService {
|
|
12
|
+
constructor(http, config) {
|
|
13
|
+
super(http, {
|
|
14
|
+
servicePath: config?.servicePath ?? SocialMediaThresholdService.DEFAULT_SERVICE_PATH,
|
|
15
|
+
basePath: SocialMediaThresholdService.BASE_PATH,
|
|
16
|
+
endpoints: config?.endpoints,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// ==================== GET ALL ACTIVE ====================
|
|
20
|
+
/**
|
|
21
|
+
* Get all active thresholds
|
|
22
|
+
* GET api/socialmedia/thresholds
|
|
23
|
+
*/
|
|
24
|
+
async getAllActive() {
|
|
25
|
+
const response = await this.getAllActiveRaw();
|
|
26
|
+
return response.data ?? [];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get all active thresholds with full response
|
|
30
|
+
*/
|
|
31
|
+
getAllActiveRaw() {
|
|
32
|
+
const endpoint = this.getEndpoint('list', '');
|
|
33
|
+
const url = this.buildUrl(endpoint);
|
|
34
|
+
return this.http.get(url);
|
|
35
|
+
}
|
|
36
|
+
// ==================== GET BY ACCOUNT ====================
|
|
37
|
+
/**
|
|
38
|
+
* Get thresholds by account ID
|
|
39
|
+
* GET api/socialmedia/thresholds/account/{accountId}
|
|
40
|
+
*/
|
|
41
|
+
async getByAccount(accountId) {
|
|
42
|
+
const response = await this.getByAccountRaw(accountId);
|
|
43
|
+
return response.data ?? [];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get thresholds by account ID with full response
|
|
47
|
+
*/
|
|
48
|
+
getByAccountRaw(accountId) {
|
|
49
|
+
const endpoint = this.getEndpoint('by-account', `account/${accountId}`);
|
|
50
|
+
const url = this.buildUrl(endpoint);
|
|
51
|
+
return this.http.get(url);
|
|
52
|
+
}
|
|
53
|
+
// ==================== CHECK THRESHOLD ====================
|
|
54
|
+
/**
|
|
55
|
+
* Check threshold against current value
|
|
56
|
+
* POST api/socialmedia/thresholds/{id}/check?currentValue={currentValue}
|
|
57
|
+
*/
|
|
58
|
+
async checkThreshold(id, currentValue) {
|
|
59
|
+
const response = await this.checkThresholdRaw(id, currentValue);
|
|
60
|
+
if (!response.success) {
|
|
61
|
+
throw new Error(response.message || 'Failed to check threshold');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Check threshold with full response
|
|
66
|
+
*/
|
|
67
|
+
checkThresholdRaw(id, currentValue) {
|
|
68
|
+
const endpoint = this.getEndpoint('check', `${id}/check`);
|
|
69
|
+
const url = this.buildUrl(endpoint);
|
|
70
|
+
return this.http.post(`${url}?currentValue=${currentValue}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
SocialMediaThresholdService.DEFAULT_SERVICE_PATH = 'socialmedia';
|
|
74
|
+
SocialMediaThresholdService.BASE_PATH = 'api/socialmedia/thresholds';
|
|
75
|
+
//# sourceMappingURL=SocialMediaThresholdService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaThresholdService.js","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaThresholdService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD;;;GAGG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAIhD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,2BAA2B,CAAC,oBAAoB;YACpF,QAAQ,EAAE,2BAA2B,CAAC,SAAS;YAC/C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,2DAA2D;IAE3D;;;OAGG;IACH,KAAK,CAAC,YAAY;QAChB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC9C,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,eAAe;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI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B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SocialMediaVideoService
|
|
3
|
+
* Service for SocialMediaVideoAnalytics entity operations
|
|
4
|
+
* Route: api/socialmedia/videos
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import { ResponseData } from '../../models/common/ResponseData';
|
|
8
|
+
import { BaseService } from '../base/BaseService';
|
|
9
|
+
import { ServiceConfig } from '../types';
|
|
10
|
+
import { SocialMediaVideoAnalytics } from '../../models/socialmedia';
|
|
11
|
+
/**
|
|
12
|
+
* SocialMediaVideoService
|
|
13
|
+
* Handles social media video analytics queries
|
|
14
|
+
*/
|
|
15
|
+
export declare class SocialMediaVideoService extends BaseService {
|
|
16
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
17
|
+
private static readonly BASE_PATH;
|
|
18
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Get video analytics by ID
|
|
21
|
+
* GET api/socialmedia/videos/{id}
|
|
22
|
+
*/
|
|
23
|
+
getById(id: string): Promise<SocialMediaVideoAnalytics>;
|
|
24
|
+
/**
|
|
25
|
+
* Get video analytics by ID with full response
|
|
26
|
+
*/
|
|
27
|
+
getByIdRaw(id: string): Promise<ResponseData<SocialMediaVideoAnalytics>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get videos by account ID
|
|
30
|
+
* GET api/socialmedia/videos/account/{accountId}
|
|
31
|
+
*/
|
|
32
|
+
getByAccount(accountId: string): Promise<SocialMediaVideoAnalytics[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Get videos by account ID with full response
|
|
35
|
+
*/
|
|
36
|
+
getByAccountRaw(accountId: string): Promise<ResponseData<SocialMediaVideoAnalytics[]>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get top performing videos for an account
|
|
39
|
+
* GET api/socialmedia/videos/account/{accountId}/top-performing?metricType={metricType}&limit={limit}
|
|
40
|
+
*/
|
|
41
|
+
getTopPerforming(accountId: string, metricType?: string, limit?: number): Promise<SocialMediaVideoAnalytics[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Get top performing videos with full response
|
|
44
|
+
*/
|
|
45
|
+
getTopPerformingRaw(accountId: string, metricType?: string, limit?: number): Promise<ResponseData<SocialMediaVideoAnalytics[]>>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=SocialMediaVideoService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMediaVideoService.d.ts","sourceRoot":"","sources":["../../../src/services/socialmedia/SocialMediaVideoService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,WAAW;IACtD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAiB;IAC7D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA4B;gBAEjD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;OAGG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAQ7D;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAQxE;;;OAGG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAK3E;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,O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