@digigov-oss/emdd-api-client
Advanced tools
Comparing version 0.9.3 to 1.0.0
@@ -287,9 +287,10 @@ export interface Api { | ||
export interface ProcessGlance { | ||
service_points?: { | ||
cost?: { | ||
title: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
value: string; | ||
}; | ||
description?: { | ||
title: string; | ||
value: string; | ||
}; | ||
digital_service_points?: { | ||
@@ -299,20 +300,32 @@ title: string; | ||
title: string; | ||
description?: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
evidences?: { | ||
duration_steps_digital?: { | ||
title: string; | ||
value: string; | ||
}; | ||
cost?: { | ||
estimated_time?: { | ||
title: string; | ||
value: string; | ||
}; | ||
estimated_time?: { | ||
evidences?: { | ||
title: string; | ||
value: string; | ||
}; | ||
description?: { | ||
remote_service_points?: { | ||
title: string; | ||
value: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
service_points?: { | ||
title: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
} | ||
@@ -319,0 +332,0 @@ export interface EmddProcessInfo { |
@@ -135,3 +135,6 @@ "use strict"; | ||
const total = r.total; | ||
const pages = total / limit + 1; | ||
let pages = Math.floor(total / limit); | ||
if (total % limit !== 0) { | ||
pages = pages + 1; | ||
} | ||
const promises = Array(); | ||
@@ -156,5 +159,3 @@ allPages[1] = r.data; | ||
}); | ||
// for (let i = 1; i <= pages; i++) { | ||
res = res.concat(...dataArray); | ||
// } | ||
resolve(res); | ||
@@ -161,0 +162,0 @@ }) |
@@ -287,9 +287,10 @@ export interface Api { | ||
export interface ProcessGlance { | ||
service_points?: { | ||
cost?: { | ||
title: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
value: string; | ||
}; | ||
description?: { | ||
title: string; | ||
value: string; | ||
}; | ||
digital_service_points?: { | ||
@@ -299,20 +300,32 @@ title: string; | ||
title: string; | ||
description?: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
evidences?: { | ||
duration_steps_digital?: { | ||
title: string; | ||
value: string; | ||
}; | ||
cost?: { | ||
estimated_time?: { | ||
title: string; | ||
value: string; | ||
}; | ||
estimated_time?: { | ||
evidences?: { | ||
title: string; | ||
value: string; | ||
}; | ||
description?: { | ||
remote_service_points?: { | ||
title: string; | ||
value: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
service_points?: { | ||
title: string; | ||
value: { | ||
title: string; | ||
url?: string; | ||
}[]; | ||
}; | ||
} | ||
@@ -319,0 +332,0 @@ export interface EmddProcessInfo { |
@@ -188,3 +188,6 @@ import { executeOnCondition } from './utils'; | ||
const total = r.total; | ||
const pages = total / limit + 1; | ||
let pages = Math.floor(total / limit); | ||
if (total % limit !== 0) { | ||
pages = pages + 1; | ||
} | ||
const promises = Array(); | ||
@@ -209,5 +212,3 @@ allPages[1] = r.data; | ||
}); | ||
// for (let i = 1; i <= pages; i++) { | ||
res = res.concat(...dataArray); | ||
// } | ||
resolve(res); | ||
@@ -214,0 +215,0 @@ }) |
{ | ||
"name": "@digigov-oss/emdd-api-client", | ||
"version": "0.9.3", | ||
"version": "1.0.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "EMDD API Client", |
@@ -337,3 +337,3 @@ export interface Api { | ||
value: string; | ||
} | ||
}; | ||
estimated_time?: { | ||
@@ -340,0 +340,0 @@ title: string; |
@@ -256,3 +256,6 @@ import { | ||
const total = r.total; | ||
const pages = total / limit + 1; | ||
let pages = Math.floor(total / limit); | ||
if (total % limit !== 0) { | ||
pages = pages + 1; | ||
} | ||
const promises = Array<Promise<void>>(); | ||
@@ -280,5 +283,3 @@ allPages[1] = r.data; | ||
}); | ||
// for (let i = 1; i <= pages; i++) { | ||
res = res.concat(...dataArray); | ||
// } | ||
resolve(res); | ||
@@ -285,0 +286,0 @@ }) |
@@ -26,6 +26,6 @@ import inspect from 'object-inspect'; | ||
it( | ||
'should return all processes', | ||
'should return all processes with params', | ||
async () => { | ||
console.time('get processes'); | ||
await client.getRegistries(); | ||
await client.getProcesses({ limit: 5000 }); | ||
console.timeEnd('processes'); | ||
@@ -35,2 +35,12 @@ }, | ||
); | ||
it( | ||
'should return all processes without params', | ||
async () => { | ||
console.time('get processes'); | ||
await client.getProcesses(); | ||
console.timeEnd('processes'); | ||
}, | ||
2.5 * 60 * 1000, | ||
); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
91524
2591
0