@authenty/authapi-types 1.0.31 → 1.0.32
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.d.ts +16 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +19 -0
package/dist/index.d.ts
CHANGED
|
@@ -752,6 +752,21 @@ export declare namespace AuthApi {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
+
namespace live {
|
|
756
|
+
namespace activeUsersBySoftware {
|
|
757
|
+
type GET = Array<{
|
|
758
|
+
productId: number;
|
|
759
|
+
productTitle: string;
|
|
760
|
+
productLogo: string;
|
|
761
|
+
activeUserCount: number;
|
|
762
|
+
activeUsers: Array<{
|
|
763
|
+
id: number;
|
|
764
|
+
fullname: string;
|
|
765
|
+
email: string;
|
|
766
|
+
}>;
|
|
767
|
+
}>;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
755
770
|
}
|
|
756
771
|
namespace admin {
|
|
757
772
|
namespace purchases {
|
|
@@ -896,6 +911,7 @@ export declare namespace AuthApi {
|
|
|
896
911
|
usersMonthlyUsage: (iniDate?: string, endDate?: string, userId?: number) => Promise<responses.ApiResponse<responses.report.users.usage.monthly.GET>>;
|
|
897
912
|
usersTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.timeline.GET>>;
|
|
898
913
|
usersCumulativeTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.cumulativeTimeline.GET>>;
|
|
914
|
+
getLiveUsersCountByProduct: () => Promise<responses.ApiResponse<responses.report.live.activeUsersBySoftware.GET>>;
|
|
899
915
|
};
|
|
900
916
|
};
|
|
901
917
|
support: {
|
package/dist/index.js
CHANGED
|
@@ -267,6 +267,9 @@ var AuthApi;
|
|
|
267
267
|
usersCumulativeTimeline: async (iniDate, endDate) => {
|
|
268
268
|
return await this.request('GET', 'report/users/cumulative-timeline', { iniDate, endDate });
|
|
269
269
|
},
|
|
270
|
+
getLiveUsersCountByProduct: async () => {
|
|
271
|
+
return await this.request('GET', 'report/live/active-users-by-software', {});
|
|
272
|
+
}
|
|
270
273
|
}
|
|
271
274
|
};
|
|
272
275
|
this.support = {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -774,6 +774,22 @@ export namespace AuthApi {
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
}
|
|
777
|
+
|
|
778
|
+
export namespace live {
|
|
779
|
+
export namespace activeUsersBySoftware {
|
|
780
|
+
export type GET = Array<{
|
|
781
|
+
productId: number;
|
|
782
|
+
productTitle: string;
|
|
783
|
+
productLogo: string;
|
|
784
|
+
activeUserCount: number;
|
|
785
|
+
activeUsers: Array<{
|
|
786
|
+
id: number;
|
|
787
|
+
fullname: string;
|
|
788
|
+
email: string;
|
|
789
|
+
}>;
|
|
790
|
+
}>
|
|
791
|
+
}
|
|
792
|
+
}
|
|
777
793
|
}
|
|
778
794
|
|
|
779
795
|
export namespace admin {
|
|
@@ -1207,6 +1223,9 @@ export namespace AuthApi {
|
|
|
1207
1223
|
usersCumulativeTimeline: async (iniDate?: string, endDate?: string) => {
|
|
1208
1224
|
return await this.request<responses.report.users.cumulativeTimeline.GET>('GET', 'report/users/cumulative-timeline', { iniDate, endDate });
|
|
1209
1225
|
},
|
|
1226
|
+
getLiveUsersCountByProduct: async () => {
|
|
1227
|
+
return await this.request<responses.report.live.activeUsersBySoftware.GET>('GET', 'report/live/active-users-by-software', {});
|
|
1228
|
+
}
|
|
1210
1229
|
}
|
|
1211
1230
|
}
|
|
1212
1231
|
|