Created
August 2, 2024 11:14
-
-
Save isaacviannadev/f263e557e401d2fb76aff8f2bbc04d63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const evaluationsMock: EvaluationType[] = [ | |
| { | |
| id: '9b871ff2-81ef-431b-a406-e8ca14b7f84f', | |
| date: '2024-05-17', | |
| channel: 'WRT_PT_ONLINE', | |
| grade: 0.8, | |
| criterias: [ | |
| { | |
| name: 'PROCESSED_ORDERS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'TOTAL_PROCESSED_ORDERS', | |
| currentValue: 121, | |
| targetValue: 60, | |
| achieved: true, | |
| }, | |
| { | |
| name: 'D-90_PROCESSED_ORDERS', | |
| currentValue: 42, | |
| targetValue: 20, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_ACCEPTANCE_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_ACCEPTANCE_RATE', | |
| currentValue: 0.99, | |
| targetValue: 0.98, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-90_AVG_RATING', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-90_AVG_RATING', | |
| currentValue: 3.49, | |
| targetValue: 4.0, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_INCIDENT_RATE', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-30_INCIDENT_RATE', | |
| currentValue: 0.2, | |
| targetValue: 0.02, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_LATE_SHIPMENT_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_LATE_SHIPMENT_RATE', | |
| currentValue: 0.02, | |
| targetValue: 0.025, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_ACCEPTANCE_TIME_HOURS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_ACCEPTANCE_TIME_HOURS', | |
| currentValue: 4.83, | |
| targetValue: 6, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS_REPLIES', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS_REPLIES', | |
| currentValue: 9, | |
| targetValue: 8, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS_REPLY_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS_REPLY_RATE', | |
| currentValue: 0.09, | |
| targetValue: 0.05, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS', | |
| currentValue: -44.5, | |
| targetValue: 42, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'ACTIVITY_TIME_DAYS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'ACTIVITY_TIME_DAYS', | |
| currentValue: 100, | |
| targetValue: 90, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| ], | |
| }, | |
| { | |
| id: '9b871ff2-81ef-431b-a406-e8ca14b7f84f', | |
| date: '2024-05-17', | |
| channel: 'WRT_ES_ONLINE', | |
| grade: 0.75, | |
| criterias: [ | |
| { | |
| name: 'PROCESSED_ORDERS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'TOTAL_PROCESSED_ORDERS', | |
| currentValue: 121, | |
| targetValue: 60, | |
| achieved: true, | |
| }, | |
| { | |
| name: 'D-90_PROCESSED_ORDERS', | |
| currentValue: 42, | |
| targetValue: 20, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_ACCEPTANCE_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_ACCEPTANCE_RATE', | |
| currentValue: 0.99, | |
| targetValue: 0.98, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-90_AVG_RATING', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-90_AVG_RATING', | |
| currentValue: 3.49, | |
| targetValue: 4.0, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_INCIDENT_RATE', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-30_INCIDENT_RATE', | |
| currentValue: 0.2, | |
| targetValue: 0.02, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_LATE_SHIPMENT_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_LATE_SHIPMENT_RATE', | |
| currentValue: 0.02, | |
| targetValue: 0.025, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-30_ACCEPTANCE_TIME_HOURS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-30_ACCEPTANCE_TIME_HOURS', | |
| currentValue: 4.83, | |
| targetValue: 6, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS_REPLIES', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS_REPLIES', | |
| currentValue: 9, | |
| targetValue: 8, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS_REPLY_RATE', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS_REPLY_RATE', | |
| currentValue: 0.09, | |
| targetValue: 0.05, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'D-60_NSS', | |
| achieved: false, | |
| metrics: [ | |
| { | |
| name: 'D-60_NSS', | |
| currentValue: -44.5, | |
| targetValue: 42, | |
| achieved: false, | |
| }, | |
| ], | |
| }, | |
| { | |
| name: 'ACTIVITY_TIME_DAYS', | |
| achieved: true, | |
| metrics: [ | |
| { | |
| name: 'ACTIVITY_TIME_DAYS', | |
| currentValue: 100, | |
| targetValue: 90, | |
| achieved: true, | |
| }, | |
| ], | |
| }, | |
| ], | |
| }, | |
| ]; | |
| export type EvaluationType = { | |
| id: string; | |
| date: string; | |
| channel: string; | |
| grade: number; | |
| criterias: CriteriaType[]; | |
| }; | |
| export type CriteriaType = { | |
| name: string; | |
| achieved: boolean; | |
| metrics: MetricType[]; | |
| }; | |
| export type MetricType = { | |
| name: string; | |
| currentValue: number; | |
| targetValue: number; | |
| achieved: boolean; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment