@digiteers/uloba3-sdk 2.1.0 → 2.2.1
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/api/overview.d.ts +4 -0
- package/dist/api/overview.d.ts.map +1 -1
- package/dist/api/overview.js +7 -0
- package/dist/api/overview.js.map +1 -1
- package/dist/types.d.ts +177 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/api/overview.d.ts
CHANGED
|
@@ -14,5 +14,9 @@ export declare class OverviewApi {
|
|
|
14
14
|
* Get assistant overview statistics
|
|
15
15
|
*/
|
|
16
16
|
getAssistantOverview(): Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Get casehandler overview statistics
|
|
19
|
+
*/
|
|
20
|
+
getCasehandlerOverview(): Promise<any>;
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=overview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/api/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,aAAa;IAExC;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,GAAG,CAAC;IAKzC;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/api/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,aAAa;IAExC;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,GAAG,CAAC;IAKzC;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC;IAK1C;;OAEG;IACG,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC;CAI7C"}
|
package/dist/api/overview.js
CHANGED
|
@@ -24,6 +24,13 @@ class OverviewApi {
|
|
|
24
24
|
const response = await this.axios.get('/api/overview/assistant');
|
|
25
25
|
return response.data;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Get casehandler overview statistics
|
|
29
|
+
*/
|
|
30
|
+
async getCasehandlerOverview() {
|
|
31
|
+
const response = await this.axios.get('/api/overview/casehandler');
|
|
32
|
+
return response.data;
|
|
33
|
+
}
|
|
27
34
|
}
|
|
28
35
|
exports.OverviewApi = OverviewApi;
|
|
29
36
|
//# sourceMappingURL=overview.js.map
|
package/dist/api/overview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.js","sourceRoot":"","sources":["../../src/api/overview.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,WAAW;IACF;IAApB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,mBAAmB;QACvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAChE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB;QACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACjE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"overview.js","sourceRoot":"","sources":["../../src/api/overview.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,WAAW;IACF;IAApB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,mBAAmB;QACvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAChE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB;QACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACjE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB;QAC1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QACnE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF;AA1BD,kCA0BC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -33672,6 +33672,183 @@ export interface paths {
|
|
|
33672
33672
|
patch?: never;
|
|
33673
33673
|
trace?: never;
|
|
33674
33674
|
};
|
|
33675
|
+
'/api/overview/casehandler': {
|
|
33676
|
+
parameters: {
|
|
33677
|
+
query?: never;
|
|
33678
|
+
header?: never;
|
|
33679
|
+
path?: never;
|
|
33680
|
+
cookie?: never;
|
|
33681
|
+
};
|
|
33682
|
+
/**
|
|
33683
|
+
* Get casehandler overview
|
|
33684
|
+
* @description Get complete dashboard overview for case handler/saksbehandler including stats, activities, and alerts from contract cases
|
|
33685
|
+
*/
|
|
33686
|
+
get: {
|
|
33687
|
+
parameters: {
|
|
33688
|
+
query?: never;
|
|
33689
|
+
header?: never;
|
|
33690
|
+
path?: never;
|
|
33691
|
+
cookie?: never;
|
|
33692
|
+
};
|
|
33693
|
+
requestBody?: never;
|
|
33694
|
+
responses: {
|
|
33695
|
+
/** @description Complete overview response for case handler */
|
|
33696
|
+
200: {
|
|
33697
|
+
headers: {
|
|
33698
|
+
[name: string]: unknown;
|
|
33699
|
+
};
|
|
33700
|
+
content: {
|
|
33701
|
+
'application/json': {
|
|
33702
|
+
/** @description Complete overview data for case handler/saksbehandler */
|
|
33703
|
+
data: {
|
|
33704
|
+
/** @description High-level summary metrics across all entities */
|
|
33705
|
+
summary: {
|
|
33706
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33707
|
+
needsAction: number;
|
|
33708
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33709
|
+
active: number;
|
|
33710
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33711
|
+
total: number;
|
|
33712
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33713
|
+
inProgress: number;
|
|
33714
|
+
};
|
|
33715
|
+
/** @description Stats for contract cases managed by case handler */
|
|
33716
|
+
entities: {
|
|
33717
|
+
cases: {
|
|
33718
|
+
byStatus: {
|
|
33719
|
+
[key: string]: number;
|
|
33720
|
+
};
|
|
33721
|
+
totals: {
|
|
33722
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33723
|
+
all: number;
|
|
33724
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33725
|
+
active: number;
|
|
33726
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33727
|
+
needsAction?: number;
|
|
33728
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33729
|
+
inProgress?: number;
|
|
33730
|
+
};
|
|
33731
|
+
alerts?: {
|
|
33732
|
+
type: 'info' | 'warning' | 'error' | 'action_required';
|
|
33733
|
+
severity: 'low' | 'medium' | 'high';
|
|
33734
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33735
|
+
count: number;
|
|
33736
|
+
message: string;
|
|
33737
|
+
entityType: 'job' | 'application' | 'inquiry' | 'contract';
|
|
33738
|
+
status?: string;
|
|
33739
|
+
}[];
|
|
33740
|
+
};
|
|
33741
|
+
};
|
|
33742
|
+
/** @description Recent activities across all cases (last 10) */
|
|
33743
|
+
recentActivities: {
|
|
33744
|
+
id: string;
|
|
33745
|
+
entityType: 'job' | 'application' | 'inquiry' | 'contract';
|
|
33746
|
+
entityId: string;
|
|
33747
|
+
action: string;
|
|
33748
|
+
description: string;
|
|
33749
|
+
/**
|
|
33750
|
+
* Format: date-time
|
|
33751
|
+
* @description ISO 8601 datetime format (YYYY-MM-DDTHH:mm:ss.sssZ)
|
|
33752
|
+
*/
|
|
33753
|
+
timestamp: string;
|
|
33754
|
+
metadata?: {
|
|
33755
|
+
[key: string]: unknown;
|
|
33756
|
+
};
|
|
33757
|
+
}[];
|
|
33758
|
+
/** @description All alerts from all cases, sorted by priority */
|
|
33759
|
+
aggregatedAlerts: {
|
|
33760
|
+
type: 'info' | 'warning' | 'error' | 'action_required';
|
|
33761
|
+
severity: 'low' | 'medium' | 'high';
|
|
33762
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33763
|
+
count: number;
|
|
33764
|
+
message: string;
|
|
33765
|
+
entityType: 'job' | 'application' | 'inquiry' | 'contract';
|
|
33766
|
+
status?: string;
|
|
33767
|
+
}[];
|
|
33768
|
+
/** @description Suggested next actions for the case handler */
|
|
33769
|
+
quickActions: {
|
|
33770
|
+
type: string;
|
|
33771
|
+
label: string;
|
|
33772
|
+
description: string;
|
|
33773
|
+
/** @description Non-negative integer (0 or greater) */
|
|
33774
|
+
count: number;
|
|
33775
|
+
priority: 'low' | 'medium' | 'high';
|
|
33776
|
+
metadata: {
|
|
33777
|
+
entityType: 'job' | 'application' | 'inquiry' | 'contract';
|
|
33778
|
+
status?: string;
|
|
33779
|
+
filters?: {
|
|
33780
|
+
[key: string]: string;
|
|
33781
|
+
};
|
|
33782
|
+
};
|
|
33783
|
+
}[];
|
|
33784
|
+
};
|
|
33785
|
+
metadata: {
|
|
33786
|
+
/** @description Role context for the statistics query */
|
|
33787
|
+
role: 'coordinator' | 'teamlead' | 'assistant' | 'case_manager' | 'applicant';
|
|
33788
|
+
/**
|
|
33789
|
+
* Format: uuid
|
|
33790
|
+
* @description UUID version 4 identifier
|
|
33791
|
+
*/
|
|
33792
|
+
accountId?: string;
|
|
33793
|
+
/**
|
|
33794
|
+
* Format: uuid
|
|
33795
|
+
* @description UUID version 4 identifier
|
|
33796
|
+
*/
|
|
33797
|
+
userId?: string;
|
|
33798
|
+
/**
|
|
33799
|
+
* Format: date-time
|
|
33800
|
+
* @description ISO 8601 datetime format (YYYY-MM-DDTHH:mm:ss.sssZ)
|
|
33801
|
+
*/
|
|
33802
|
+
queriedAt: string;
|
|
33803
|
+
/** @description Whether the result was served from cache */
|
|
33804
|
+
cached?: boolean;
|
|
33805
|
+
/**
|
|
33806
|
+
* Format: date-time
|
|
33807
|
+
* @description ISO 8601 datetime format (YYYY-MM-DDTHH:mm:ss.sssZ)
|
|
33808
|
+
*/
|
|
33809
|
+
cacheExpiresAt?: string;
|
|
33810
|
+
/** @description List of entity types included in the overview */
|
|
33811
|
+
entitiesIncluded: string[];
|
|
33812
|
+
/** @description Total query time in milliseconds */
|
|
33813
|
+
queryTimeMs?: number;
|
|
33814
|
+
};
|
|
33815
|
+
};
|
|
33816
|
+
};
|
|
33817
|
+
};
|
|
33818
|
+
/** @description Default Response */
|
|
33819
|
+
403: {
|
|
33820
|
+
headers: {
|
|
33821
|
+
[name: string]: unknown;
|
|
33822
|
+
};
|
|
33823
|
+
content: {
|
|
33824
|
+
'application/json': {
|
|
33825
|
+
error: string;
|
|
33826
|
+
message: string;
|
|
33827
|
+
};
|
|
33828
|
+
};
|
|
33829
|
+
};
|
|
33830
|
+
/** @description Default Response */
|
|
33831
|
+
500: {
|
|
33832
|
+
headers: {
|
|
33833
|
+
[name: string]: unknown;
|
|
33834
|
+
};
|
|
33835
|
+
content: {
|
|
33836
|
+
'application/json': {
|
|
33837
|
+
error: string;
|
|
33838
|
+
message: string;
|
|
33839
|
+
};
|
|
33840
|
+
};
|
|
33841
|
+
};
|
|
33842
|
+
};
|
|
33843
|
+
};
|
|
33844
|
+
put?: never;
|
|
33845
|
+
post?: never;
|
|
33846
|
+
delete?: never;
|
|
33847
|
+
options?: never;
|
|
33848
|
+
head?: never;
|
|
33849
|
+
patch?: never;
|
|
33850
|
+
trace?: never;
|
|
33851
|
+
};
|
|
33675
33852
|
'/api/admin/salaries/': {
|
|
33676
33853
|
parameters: {
|
|
33677
33854
|
query?: never;
|