@frontegg/client
Advanced tools
Comparing version
@@ -5,30 +5,30 @@ export declare class AuditsClient { | ||
sendAudit(audits: any): Promise<void>; | ||
getAudits(params?: { | ||
tenantId: null; | ||
filter: null; | ||
sortBy: null; | ||
sortDirection: null; | ||
getAudits(params: { | ||
tenantId: string; | ||
filter?: string; | ||
sortBy?: string; | ||
sortDirection?: string; | ||
offset: number; | ||
count: number; | ||
filters: {}; | ||
filters: any; | ||
}): Promise<any>; | ||
getAuditsStats(params?: { | ||
tenantId: null; | ||
getAuditsStats(params: { | ||
tenantId: string; | ||
}): Promise<any>; | ||
getAuditsMetadata(): Promise<any>; | ||
setAuditsMetadata(metadata: any): Promise<any>; | ||
exportPdf(params?: { | ||
tenantId: null; | ||
filter: null; | ||
sortBy: null; | ||
sortDirection: null; | ||
filters: {}; | ||
}, properties?: never[]): Promise<any>; | ||
exportCsv(params?: { | ||
tenantId: null; | ||
filter: null; | ||
sortBy: null; | ||
sortDirection: null; | ||
filters: {}; | ||
}, properties?: never[]): Promise<any>; | ||
exportPdf(params: { | ||
tenantId: string; | ||
filter?: string; | ||
sortBy?: string; | ||
sortDirection?: string; | ||
filters: any; | ||
}, properties: any[]): Promise<any>; | ||
exportCsv(params: { | ||
tenantId: string; | ||
filter?: string; | ||
sortBy?: string; | ||
sortDirection?: string; | ||
filters: any; | ||
}, properties: any[]): Promise<any>; | ||
} |
@@ -100,4 +100,4 @@ "use strict"; | ||
}; | ||
// tslint:disable-next-line:max-line-length | ||
AuditsClient.prototype.getAudits = function (params) { | ||
if (params === void 0) { params = { tenantId: null, filter: null, sortBy: null, sortDirection: null, offset: 0, count: 50, filters: {} }; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -127,3 +127,2 @@ var paramsToSend, response, data; | ||
AuditsClient.prototype.getAuditsStats = function (params) { | ||
if (params === void 0) { params = { tenantId: null }; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -195,4 +194,2 @@ var paramsToSend, response, data; | ||
AuditsClient.prototype.exportPdf = function (params, properties) { | ||
if (params === void 0) { params = { tenantId: null, filter: null, sortBy: null, sortDirection: null, filters: {} }; } | ||
if (properties === void 0) { properties = []; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -223,4 +220,2 @@ var paramsToSend, response, data; | ||
AuditsClient.prototype.exportCsv = function (params, properties) { | ||
if (params === void 0) { params = { tenantId: null, filter: null, sortBy: null, sortDirection: null, filters: {} }; } | ||
if (properties === void 0) { properties = []; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -227,0 +222,0 @@ var paramsToSend, response, data; |
{ | ||
"name": "@frontegg/client", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
39403
-1.25%780
-0.64%