@authenty/authapi-types 1.0.32 → 1.0.34
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 +14 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +17 -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
|
};
|
|
@@ -767,6 +768,18 @@ export declare namespace AuthApi {
|
|
|
767
768
|
}>;
|
|
768
769
|
}
|
|
769
770
|
}
|
|
771
|
+
namespace marketing {
|
|
772
|
+
namespace campaigns {
|
|
773
|
+
type GET = Array<{
|
|
774
|
+
id: number;
|
|
775
|
+
title: string;
|
|
776
|
+
short: string;
|
|
777
|
+
totalAccesses: number;
|
|
778
|
+
totalUsers: number;
|
|
779
|
+
totalPurchases: number;
|
|
780
|
+
}>;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
770
783
|
}
|
|
771
784
|
namespace admin {
|
|
772
785
|
namespace purchases {
|
|
@@ -912,6 +925,7 @@ export declare namespace AuthApi {
|
|
|
912
925
|
usersTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.timeline.GET>>;
|
|
913
926
|
usersCumulativeTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.cumulativeTimeline.GET>>;
|
|
914
927
|
getLiveUsersCountByProduct: () => Promise<responses.ApiResponse<responses.report.live.activeUsersBySoftware.GET>>;
|
|
928
|
+
marketingCampaigns: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.marketing.campaigns.GET>>;
|
|
915
929
|
};
|
|
916
930
|
};
|
|
917
931
|
support: {
|
package/dist/index.js
CHANGED
|
@@ -269,6 +269,9 @@ var AuthApi;
|
|
|
269
269
|
},
|
|
270
270
|
getLiveUsersCountByProduct: async () => {
|
|
271
271
|
return await this.request('GET', 'report/live/active-users-by-software', {});
|
|
272
|
+
},
|
|
273
|
+
marketingCampaigns: async (iniDate, endDate) => {
|
|
274
|
+
return await this.request('GET', 'report/marketing/campaigns', { iniDate, endDate });
|
|
272
275
|
}
|
|
273
276
|
}
|
|
274
277
|
};
|
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
|
};
|
|
@@ -790,8 +791,21 @@ export namespace AuthApi {
|
|
|
790
791
|
}>
|
|
791
792
|
}
|
|
792
793
|
}
|
|
794
|
+
export namespace marketing {
|
|
795
|
+
export namespace campaigns {
|
|
796
|
+
export type GET = Array<{
|
|
797
|
+
id: number;
|
|
798
|
+
title: string;
|
|
799
|
+
short: string;
|
|
800
|
+
totalAccesses: number;
|
|
801
|
+
totalUsers: number;
|
|
802
|
+
totalPurchases: number;
|
|
803
|
+
}>;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
793
806
|
}
|
|
794
807
|
|
|
808
|
+
|
|
795
809
|
export namespace admin {
|
|
796
810
|
export namespace purchases {
|
|
797
811
|
export namespace search {
|
|
@@ -1225,6 +1239,9 @@ export namespace AuthApi {
|
|
|
1225
1239
|
},
|
|
1226
1240
|
getLiveUsersCountByProduct: async () => {
|
|
1227
1241
|
return await this.request<responses.report.live.activeUsersBySoftware.GET>('GET', 'report/live/active-users-by-software', {});
|
|
1242
|
+
},
|
|
1243
|
+
marketingCampaigns: async (iniDate?: string, endDate?: string) => {
|
|
1244
|
+
return await this.request<responses.report.marketing.campaigns.GET>('GET', 'report/marketing/campaigns', { iniDate, endDate });
|
|
1228
1245
|
}
|
|
1229
1246
|
}
|
|
1230
1247
|
}
|