@authenty/authapi-types 1.0.44 → 1.0.45
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 +11 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
- package/src/index.ts +14 -0
package/dist/index.d.ts
CHANGED
|
@@ -944,6 +944,17 @@ export declare namespace AuthApi {
|
|
|
944
944
|
status: () => Promise<responses.ApiResponse<responses.cronJobs.GET>>;
|
|
945
945
|
run: (id: number) => Promise<responses.ApiResponse<responses.cronJobs.$conId.run.POST>>;
|
|
946
946
|
};
|
|
947
|
+
purchases: {
|
|
948
|
+
search: (filters?: {
|
|
949
|
+
userId?: number;
|
|
950
|
+
date_gte?: string;
|
|
951
|
+
date_lte?: string;
|
|
952
|
+
page?: number;
|
|
953
|
+
pageSize?: number;
|
|
954
|
+
paymentStatus?: objects.PaymentSystem.PG_PurchasePaymentStatus;
|
|
955
|
+
licenseStatus?: objects.PaymentSystem.PG_PurchaseLicenseStatus;
|
|
956
|
+
}) => Promise<responses.ApiResponse<responses.admin.purchases.search.POST>>;
|
|
957
|
+
};
|
|
947
958
|
reports: {
|
|
948
959
|
users: () => Promise<responses.ApiResponse<responses.report.users.GET>>;
|
|
949
960
|
usersMonthlyUsage: (iniDate?: string, endDate?: string, userId?: number) => Promise<responses.ApiResponse<responses.report.users.usage.monthly.GET>>;
|
package/dist/index.js
CHANGED
|
@@ -265,6 +265,11 @@ var AuthApi;
|
|
|
265
265
|
return await this.request('POST', `admin/cronjobs/${id}/run`, {});
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
|
+
purchases: {
|
|
269
|
+
search: async (filters = {}) => {
|
|
270
|
+
return await this.request('POST', 'admin/purchases/search', filters);
|
|
271
|
+
}
|
|
272
|
+
},
|
|
268
273
|
reports: {
|
|
269
274
|
users: async () => {
|
|
270
275
|
return await this.request('GET', 'report/users', {});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1262,6 +1262,20 @@ export namespace AuthApi {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
},
|
|
1264
1264
|
|
|
1265
|
+
purchases: {
|
|
1266
|
+
search: async (filters: {
|
|
1267
|
+
userId?: number,
|
|
1268
|
+
date_gte?: string,
|
|
1269
|
+
date_lte?: string,
|
|
1270
|
+
page?: number,
|
|
1271
|
+
pageSize?: number,
|
|
1272
|
+
paymentStatus?: objects.PaymentSystem.PG_PurchasePaymentStatus,
|
|
1273
|
+
licenseStatus?: objects.PaymentSystem.PG_PurchaseLicenseStatus
|
|
1274
|
+
} = {}) => {
|
|
1275
|
+
return await this.request<responses.admin.purchases.search.POST>('POST', 'admin/purchases/search', filters);
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
|
|
1265
1279
|
reports: {
|
|
1266
1280
|
users: async () => {
|
|
1267
1281
|
return await this.request<responses.report.users.GET>('GET', 'report/users', {});
|