@authenty/authapi-types 1.0.31 → 1.0.33
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 +17 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +20 -0
package/dist/index.d.ts
CHANGED
|
@@ -692,6 +692,7 @@ export declare namespace AuthApi {
|
|
|
692
692
|
stateName: string;
|
|
693
693
|
stateUf: string | null;
|
|
694
694
|
count: number;
|
|
695
|
+
subscriptionsCount: number;
|
|
695
696
|
}>;
|
|
696
697
|
usersWithActiveSubscription: number;
|
|
697
698
|
};
|
|
@@ -752,6 +753,21 @@ export declare namespace AuthApi {
|
|
|
752
753
|
}
|
|
753
754
|
}
|
|
754
755
|
}
|
|
756
|
+
namespace live {
|
|
757
|
+
namespace activeUsersBySoftware {
|
|
758
|
+
type GET = Array<{
|
|
759
|
+
productId: number;
|
|
760
|
+
productTitle: string;
|
|
761
|
+
productLogo: string;
|
|
762
|
+
activeUserCount: number;
|
|
763
|
+
activeUsers: Array<{
|
|
764
|
+
id: number;
|
|
765
|
+
fullname: string;
|
|
766
|
+
email: string;
|
|
767
|
+
}>;
|
|
768
|
+
}>;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
755
771
|
}
|
|
756
772
|
namespace admin {
|
|
757
773
|
namespace purchases {
|
|
@@ -896,6 +912,7 @@ export declare namespace AuthApi {
|
|
|
896
912
|
usersMonthlyUsage: (iniDate?: string, endDate?: string, userId?: number) => Promise<responses.ApiResponse<responses.report.users.usage.monthly.GET>>;
|
|
897
913
|
usersTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.timeline.GET>>;
|
|
898
914
|
usersCumulativeTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.cumulativeTimeline.GET>>;
|
|
915
|
+
getLiveUsersCountByProduct: () => Promise<responses.ApiResponse<responses.report.live.activeUsersBySoftware.GET>>;
|
|
899
916
|
};
|
|
900
917
|
};
|
|
901
918
|
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
|
@@ -710,6 +710,7 @@ export namespace AuthApi {
|
|
|
710
710
|
stateName: string;
|
|
711
711
|
stateUf: string | null;
|
|
712
712
|
count: number;
|
|
713
|
+
subscriptionsCount: number;
|
|
713
714
|
}>;
|
|
714
715
|
usersWithActiveSubscription: number;
|
|
715
716
|
};
|
|
@@ -774,6 +775,22 @@ export namespace AuthApi {
|
|
|
774
775
|
}
|
|
775
776
|
|
|
776
777
|
}
|
|
778
|
+
|
|
779
|
+
export namespace live {
|
|
780
|
+
export namespace activeUsersBySoftware {
|
|
781
|
+
export type GET = Array<{
|
|
782
|
+
productId: number;
|
|
783
|
+
productTitle: string;
|
|
784
|
+
productLogo: string;
|
|
785
|
+
activeUserCount: number;
|
|
786
|
+
activeUsers: Array<{
|
|
787
|
+
id: number;
|
|
788
|
+
fullname: string;
|
|
789
|
+
email: string;
|
|
790
|
+
}>;
|
|
791
|
+
}>
|
|
792
|
+
}
|
|
793
|
+
}
|
|
777
794
|
}
|
|
778
795
|
|
|
779
796
|
export namespace admin {
|
|
@@ -1207,6 +1224,9 @@ export namespace AuthApi {
|
|
|
1207
1224
|
usersCumulativeTimeline: async (iniDate?: string, endDate?: string) => {
|
|
1208
1225
|
return await this.request<responses.report.users.cumulativeTimeline.GET>('GET', 'report/users/cumulative-timeline', { iniDate, endDate });
|
|
1209
1226
|
},
|
|
1227
|
+
getLiveUsersCountByProduct: async () => {
|
|
1228
|
+
return await this.request<responses.report.live.activeUsersBySoftware.GET>('GET', 'report/live/active-users-by-software', {});
|
|
1229
|
+
}
|
|
1210
1230
|
}
|
|
1211
1231
|
}
|
|
1212
1232
|
|