@authenty/authapi-types 1.0.33 → 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 +13 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +16 -0
package/dist/index.d.ts
CHANGED
|
@@ -768,6 +768,18 @@ export declare namespace AuthApi {
|
|
|
768
768
|
}>;
|
|
769
769
|
}
|
|
770
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
|
+
}
|
|
771
783
|
}
|
|
772
784
|
namespace admin {
|
|
773
785
|
namespace purchases {
|
|
@@ -913,6 +925,7 @@ export declare namespace AuthApi {
|
|
|
913
925
|
usersTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.timeline.GET>>;
|
|
914
926
|
usersCumulativeTimeline: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.users.cumulativeTimeline.GET>>;
|
|
915
927
|
getLiveUsersCountByProduct: () => Promise<responses.ApiResponse<responses.report.live.activeUsersBySoftware.GET>>;
|
|
928
|
+
marketingCampaigns: (iniDate?: string, endDate?: string) => Promise<responses.ApiResponse<responses.report.marketing.campaigns.GET>>;
|
|
916
929
|
};
|
|
917
930
|
};
|
|
918
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
|
@@ -791,8 +791,21 @@ export namespace AuthApi {
|
|
|
791
791
|
}>
|
|
792
792
|
}
|
|
793
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
|
+
}
|
|
794
806
|
}
|
|
795
807
|
|
|
808
|
+
|
|
796
809
|
export namespace admin {
|
|
797
810
|
export namespace purchases {
|
|
798
811
|
export namespace search {
|
|
@@ -1226,6 +1239,9 @@ export namespace AuthApi {
|
|
|
1226
1239
|
},
|
|
1227
1240
|
getLiveUsersCountByProduct: async () => {
|
|
1228
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 });
|
|
1229
1245
|
}
|
|
1230
1246
|
}
|
|
1231
1247
|
}
|