andoncloud-dashboard-toolkit 1.5.14 → 1.5.15
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/components/DashboardFilters/DateRangePicker/index.d.ts +2 -2
- package/dist/components/DashboardFilters/PeriodList/index.d.ts +2 -2
- package/dist/components/DashboardFilters/types.d.ts +6 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/graphql-request.d.ts +153 -47
- package/dist/helpers/periods.d.ts +2 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/operations/generated/queries/index.d.ts +3 -0
- package/dist/version.d.ts +1 -1
- package/package.json +15 -15
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import 'dayjs/locale/pl';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DayType, Shift } from '../../../graphql-request';
|
|
4
|
-
import type { DateRange, PeriodDefinition } from '../types';
|
|
4
|
+
import type { DateRange, PeriodDefinition, PeriodId } from '../types';
|
|
5
5
|
export type DateRangePickerProps = {
|
|
6
6
|
dateRange: DateRange;
|
|
7
7
|
dayType: DayType;
|
|
8
8
|
shifts: Shift[];
|
|
9
9
|
selectedShiftIds: string[];
|
|
10
10
|
hasAccess: boolean;
|
|
11
|
-
selectedPeriodId?:
|
|
11
|
+
selectedPeriodId?: PeriodId;
|
|
12
12
|
onDayTypeChange: (dayType: DayType) => void;
|
|
13
13
|
onDateRangeChange: (dateRange: DateRange) => void;
|
|
14
14
|
onPeriodSelect: (period: PeriodDefinition, dateRange: DateRange) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DayType, Shift } from '../../../graphql-request';
|
|
3
|
-
import type { DateRange, PeriodDefinition } from '../types';
|
|
3
|
+
import type { DateRange, PeriodDefinition, PeriodId } from '../types';
|
|
4
4
|
export type PeriodListProps = {
|
|
5
5
|
dayType: DayType;
|
|
6
6
|
shifts: Shift[];
|
|
7
7
|
selectedShiftIds: string[];
|
|
8
|
-
selectedPeriodId?:
|
|
8
|
+
selectedPeriodId?: PeriodId;
|
|
9
9
|
hasAccess: boolean;
|
|
10
10
|
onPeriodSelect: (period: PeriodDefinition, dateRange: DateRange) => void;
|
|
11
11
|
};
|
|
@@ -4,10 +4,15 @@ export type DateRange = {
|
|
|
4
4
|
from: string;
|
|
5
5
|
to: string;
|
|
6
6
|
};
|
|
7
|
+
export type CalendarPeriodId = 'today' | 'yesterday' | 'last_7_days' | 'last_14_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_365_days' | 'current_week' | 'current_month' | 'current_quarter' | 'current_year' | 'previous_week' | 'previous_month' | 'previous_quarter' | 'previous_year' | 'last_2_weeks' | 'last_4_weeks' | 'last_8_weeks' | 'last_12_weeks' | 'last_3_months' | 'last_6_months' | 'last_12_months';
|
|
8
|
+
export type ShiftPeriodId = 'current_shift' | 'last_shift';
|
|
9
|
+
export type WeekPeriodId = `week_${number}`;
|
|
10
|
+
export type PeriodId = CalendarPeriodId | ShiftPeriodId | WeekPeriodId;
|
|
7
11
|
export type FilterValues = {
|
|
8
12
|
dayType: DayType;
|
|
9
13
|
dateRange: DateRange;
|
|
10
14
|
shiftIds: string[];
|
|
15
|
+
selectedPeriodId?: PeriodId;
|
|
11
16
|
};
|
|
12
17
|
export type DashboardFiltersProps = {
|
|
13
18
|
initialValues?: FilterValues;
|
|
@@ -22,7 +27,7 @@ export type CalculateContext = {
|
|
|
22
27
|
selectedShiftIds: string[];
|
|
23
28
|
};
|
|
24
29
|
export type PeriodDefinition = {
|
|
25
|
-
id:
|
|
30
|
+
id: PeriodId;
|
|
26
31
|
labelKey: string;
|
|
27
32
|
labelParams?: Record<string, string | number>;
|
|
28
33
|
needAccess: boolean;
|
|
@@ -3,4 +3,4 @@ export { default as DashboardFilters } from './DashboardFilters';
|
|
|
3
3
|
export { default as MetricCard } from './MetricCard';
|
|
4
4
|
export { default as SortableSelect } from './SortableSelect';
|
|
5
5
|
export { default as WidgetCard } from './WidgetCard';
|
|
6
|
-
export type { DateRange, FilterValues, DashboardFiltersProps, PeriodDefinition, PeriodCategory, CalculateContext, } from './DashboardFilters/types';
|
|
6
|
+
export type { DateRange, FilterValues, DashboardFiltersProps, PeriodDefinition, PeriodCategory, PeriodId, CalendarPeriodId, ShiftPeriodId, WeekPeriodId, CalculateContext, } from './DashboardFilters/types';
|
|
@@ -112,6 +112,22 @@ export type AssignmentSummary = {
|
|
|
112
112
|
totalCheckedIn: Scalars['Int']['output'];
|
|
113
113
|
totalMissing: Scalars['Int']['output'];
|
|
114
114
|
};
|
|
115
|
+
export type AvailabilityInsightsEntry = {
|
|
116
|
+
__typename?: 'AvailabilityInsightsEntry';
|
|
117
|
+
availability: Scalars['Float']['output'];
|
|
118
|
+
label: Scalars['String']['output'];
|
|
119
|
+
noData: Scalars['Boolean']['output'];
|
|
120
|
+
};
|
|
121
|
+
export type AvailabilityInsightsInput = {
|
|
122
|
+
comparedPeriods: Scalars['Int']['input'];
|
|
123
|
+
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
124
|
+
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
125
|
+
dayType: DayType;
|
|
126
|
+
};
|
|
127
|
+
export type AvailabilityInsightsResult = {
|
|
128
|
+
__typename?: 'AvailabilityInsightsResult';
|
|
129
|
+
entries: Array<AvailabilityInsightsEntry>;
|
|
130
|
+
};
|
|
115
131
|
export declare enum AvailabilityStatus {
|
|
116
132
|
PlannedStop = "PLANNED_STOP",
|
|
117
133
|
Stopped = "STOPPED",
|
|
@@ -535,6 +551,17 @@ export type DashboardFilter = {
|
|
|
535
551
|
deleted_at_lteq_datetime?: InputMaybe<Scalars['String']['input']>;
|
|
536
552
|
deleted_at_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
537
553
|
deleted_at_null?: InputMaybe<Scalars['String']['input']>;
|
|
554
|
+
filters_cont?: InputMaybe<Scalars['String']['input']>;
|
|
555
|
+
filters_contains?: InputMaybe<Scalars['String']['input']>;
|
|
556
|
+
filters_end?: InputMaybe<Scalars['String']['input']>;
|
|
557
|
+
filters_eq?: InputMaybe<Scalars['String']['input']>;
|
|
558
|
+
filters_equals?: InputMaybe<Scalars['String']['input']>;
|
|
559
|
+
filters_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
560
|
+
filters_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
561
|
+
filters_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
562
|
+
filters_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
563
|
+
filters_null?: InputMaybe<Scalars['String']['input']>;
|
|
564
|
+
filters_start?: InputMaybe<Scalars['String']['input']>;
|
|
538
565
|
grid_layout_contains?: InputMaybe<Scalars['String']['input']>;
|
|
539
566
|
id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
540
567
|
id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1253,6 +1280,17 @@ export type OrderExecutionFilter = {
|
|
|
1253
1280
|
workplace_id_start?: InputMaybe<Scalars['String']['input']>;
|
|
1254
1281
|
};
|
|
1255
1282
|
export type OrderFilter = {
|
|
1283
|
+
closure_reason_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1284
|
+
closure_reason_equals?: InputMaybe<Scalars['String']['input']>;
|
|
1285
|
+
closure_reason_gt?: InputMaybe<Scalars['String']['input']>;
|
|
1286
|
+
closure_reason_gteq?: InputMaybe<Scalars['String']['input']>;
|
|
1287
|
+
closure_reason_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1288
|
+
closure_reason_lt?: InputMaybe<Scalars['String']['input']>;
|
|
1289
|
+
closure_reason_lteq?: InputMaybe<Scalars['String']['input']>;
|
|
1290
|
+
closure_reason_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1291
|
+
closure_reason_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1292
|
+
closure_reason_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
1293
|
+
closure_reason_null?: InputMaybe<Scalars['String']['input']>;
|
|
1256
1294
|
company_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1257
1295
|
company_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
1258
1296
|
company_id_gt?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1321,17 +1359,6 @@ export type OrderFilter = {
|
|
|
1321
1359
|
last_production_activity_at_lteq_datetime?: InputMaybe<Scalars['String']['input']>;
|
|
1322
1360
|
last_production_activity_at_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
1323
1361
|
last_production_activity_at_null?: InputMaybe<Scalars['String']['input']>;
|
|
1324
|
-
machine_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1325
|
-
machine_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
1326
|
-
machine_id_gt?: InputMaybe<Scalars['String']['input']>;
|
|
1327
|
-
machine_id_gteq?: InputMaybe<Scalars['String']['input']>;
|
|
1328
|
-
machine_id_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1329
|
-
machine_id_lt?: InputMaybe<Scalars['String']['input']>;
|
|
1330
|
-
machine_id_lteq?: InputMaybe<Scalars['String']['input']>;
|
|
1331
|
-
machine_id_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1332
|
-
machine_id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1333
|
-
machine_id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
1334
|
-
machine_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
1335
1362
|
note_cont?: InputMaybe<Scalars['String']['input']>;
|
|
1336
1363
|
note_contains?: InputMaybe<Scalars['String']['input']>;
|
|
1337
1364
|
note_end?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1596,6 +1623,26 @@ export type ProductInput = {
|
|
|
1596
1623
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1597
1624
|
number?: InputMaybe<Scalars['String']['input']>;
|
|
1598
1625
|
};
|
|
1626
|
+
export declare enum ProductionInsightsAggregation {
|
|
1627
|
+
Daily = "DAILY",
|
|
1628
|
+
Hourly = "HOURLY",
|
|
1629
|
+
Monthly = "MONTHLY"
|
|
1630
|
+
}
|
|
1631
|
+
export type ProductionInsightsEntry = {
|
|
1632
|
+
__typename?: 'ProductionInsightsEntry';
|
|
1633
|
+
count: Scalars['Int']['output'];
|
|
1634
|
+
label: Scalars['String']['output'];
|
|
1635
|
+
};
|
|
1636
|
+
export type ProductionInsightsInput = {
|
|
1637
|
+
aggregation: ProductionInsightsAggregation;
|
|
1638
|
+
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
1639
|
+
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
1640
|
+
dayType: DayType;
|
|
1641
|
+
};
|
|
1642
|
+
export type ProductionInsightsResult = {
|
|
1643
|
+
__typename?: 'ProductionInsightsResult';
|
|
1644
|
+
entries: Array<ProductionInsightsEntry>;
|
|
1645
|
+
};
|
|
1599
1646
|
export declare enum ProductionMode {
|
|
1600
1647
|
Manual = "MANUAL",
|
|
1601
1648
|
Planned = "PLANNED"
|
|
@@ -1609,6 +1656,7 @@ export type Query = {
|
|
|
1609
1656
|
actualStaffingCounts: Array<ActualStaffingCount>;
|
|
1610
1657
|
/** Returns application information, including the current API version. */
|
|
1611
1658
|
applicationInfo: ApplicationInfo;
|
|
1659
|
+
availabilityInsights: AvailabilityInsightsResult;
|
|
1612
1660
|
/**
|
|
1613
1661
|
* Returns the company configuration for the currently logged-in user,
|
|
1614
1662
|
* including managed devices, displayed KPIs, role permissions,
|
|
@@ -1683,6 +1731,7 @@ export type Query = {
|
|
|
1683
1731
|
* An order may have multiple executions, as it can be paused and resumed at different stages.
|
|
1684
1732
|
*/
|
|
1685
1733
|
ordersExecutions: Array<OrderExecution>;
|
|
1734
|
+
productionInsights: ProductionInsightsResult;
|
|
1686
1735
|
/**
|
|
1687
1736
|
* Returns products from the system, which are used in production orders.
|
|
1688
1737
|
* Supports search by product number and returns up to 10 matching results,
|
|
@@ -1768,6 +1817,7 @@ export type Query = {
|
|
|
1768
1817
|
* such as inspections, repairs, and other maintenance tasks.
|
|
1769
1818
|
*/
|
|
1770
1819
|
workOrders: Array<WorkOrder>;
|
|
1820
|
+
workOrdersInsights: WorkOrdersInsightsResult;
|
|
1771
1821
|
/**
|
|
1772
1822
|
* Returns workplace staffing overview for a specific shift and date.
|
|
1773
1823
|
* Shows workplaces with assigned operators, their check-in status,
|
|
@@ -1786,6 +1836,9 @@ export type Query = {
|
|
|
1786
1836
|
export type QueryActualStaffingCountsArgs = {
|
|
1787
1837
|
filter?: InputMaybe<ActualStaffingCountFilter>;
|
|
1788
1838
|
};
|
|
1839
|
+
export type QueryAvailabilityInsightsArgs = {
|
|
1840
|
+
input: AvailabilityInsightsInput;
|
|
1841
|
+
};
|
|
1789
1842
|
export type QueryCounterDirectoriesArgs = {
|
|
1790
1843
|
filter?: InputMaybe<CounterDirectoryFilter>;
|
|
1791
1844
|
};
|
|
@@ -1814,6 +1867,9 @@ export type QueryOrdersArgs = {
|
|
|
1814
1867
|
export type QueryOrdersExecutionsArgs = {
|
|
1815
1868
|
filter?: InputMaybe<OrderExecutionFilter>;
|
|
1816
1869
|
};
|
|
1870
|
+
export type QueryProductionInsightsArgs = {
|
|
1871
|
+
input: ProductionInsightsInput;
|
|
1872
|
+
};
|
|
1817
1873
|
export type QueryProductsArgs = {
|
|
1818
1874
|
filter?: InputMaybe<ProductFilter>;
|
|
1819
1875
|
};
|
|
@@ -1850,6 +1906,9 @@ export type QueryWidgetsArgs = {
|
|
|
1850
1906
|
export type QueryWorkOrdersArgs = {
|
|
1851
1907
|
filter?: InputMaybe<WorkOrderFilter>;
|
|
1852
1908
|
};
|
|
1909
|
+
export type QueryWorkOrdersInsightsArgs = {
|
|
1910
|
+
input: WorkOrdersInsightsInput;
|
|
1911
|
+
};
|
|
1853
1912
|
export type QueryWorkplaceAssignmentsArgs = {
|
|
1854
1913
|
input: WorkplaceAssignmentsInput;
|
|
1855
1914
|
};
|
|
@@ -2383,17 +2442,6 @@ export type User = {
|
|
|
2383
2442
|
name: Scalars['String']['output'];
|
|
2384
2443
|
};
|
|
2385
2444
|
export type UserFilter = {
|
|
2386
|
-
assigned_machine_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
2387
|
-
assigned_machine_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
2388
|
-
assigned_machine_id_gt?: InputMaybe<Scalars['String']['input']>;
|
|
2389
|
-
assigned_machine_id_gteq?: InputMaybe<Scalars['String']['input']>;
|
|
2390
|
-
assigned_machine_id_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2391
|
-
assigned_machine_id_lt?: InputMaybe<Scalars['String']['input']>;
|
|
2392
|
-
assigned_machine_id_lteq?: InputMaybe<Scalars['String']['input']>;
|
|
2393
|
-
assigned_machine_id_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
2394
|
-
assigned_machine_id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2395
|
-
assigned_machine_id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
2396
|
-
assigned_machine_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
2397
2445
|
bot_name_cont?: InputMaybe<Scalars['String']['input']>;
|
|
2398
2446
|
bot_name_contains?: InputMaybe<Scalars['String']['input']>;
|
|
2399
2447
|
bot_name_end?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2801,17 +2849,6 @@ export type UserPresenceFilter = {
|
|
|
2801
2849
|
id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2802
2850
|
id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
2803
2851
|
id_null?: InputMaybe<Scalars['String']['input']>;
|
|
2804
|
-
machine_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
2805
|
-
machine_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
2806
|
-
machine_id_gt?: InputMaybe<Scalars['String']['input']>;
|
|
2807
|
-
machine_id_gteq?: InputMaybe<Scalars['String']['input']>;
|
|
2808
|
-
machine_id_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2809
|
-
machine_id_lt?: InputMaybe<Scalars['String']['input']>;
|
|
2810
|
-
machine_id_lteq?: InputMaybe<Scalars['String']['input']>;
|
|
2811
|
-
machine_id_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
2812
|
-
machine_id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2813
|
-
machine_id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
2814
|
-
machine_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
2815
2852
|
period?: InputMaybe<Period>;
|
|
2816
2853
|
shift_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
2817
2854
|
shift_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2987,6 +3024,30 @@ export declare enum WorkOrderStatusEnum {
|
|
|
2987
3024
|
OnHold = "ON_HOLD",
|
|
2988
3025
|
Open = "OPEN"
|
|
2989
3026
|
}
|
|
3027
|
+
export type WorkOrdersInsightsCategoryEntry = {
|
|
3028
|
+
__typename?: 'WorkOrdersInsightsCategoryEntry';
|
|
3029
|
+
categoryId: Scalars['ID']['output'];
|
|
3030
|
+
categoryName: Scalars['String']['output'];
|
|
3031
|
+
durations: Array<WorkOrdersInsightsDurationEntry>;
|
|
3032
|
+
totalCount: Scalars['Int']['output'];
|
|
3033
|
+
};
|
|
3034
|
+
export type WorkOrdersInsightsDurationEntry = {
|
|
3035
|
+
__typename?: 'WorkOrdersInsightsDurationEntry';
|
|
3036
|
+
count: Scalars['Int']['output'];
|
|
3037
|
+
lowerBoundMinutes?: Maybe<Scalars['Int']['output']>;
|
|
3038
|
+
upperBoundMinutes?: Maybe<Scalars['Int']['output']>;
|
|
3039
|
+
};
|
|
3040
|
+
export type WorkOrdersInsightsInput = {
|
|
3041
|
+
categoryIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
3042
|
+
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
3043
|
+
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
3044
|
+
dayType: DayType;
|
|
3045
|
+
durationBoundaries: Array<Scalars['Int']['input']>;
|
|
3046
|
+
};
|
|
3047
|
+
export type WorkOrdersInsightsResult = {
|
|
3048
|
+
__typename?: 'WorkOrdersInsightsResult';
|
|
3049
|
+
categories: Array<WorkOrdersInsightsCategoryEntry>;
|
|
3050
|
+
};
|
|
2990
3051
|
export type Workplace = {
|
|
2991
3052
|
__typename?: 'Workplace';
|
|
2992
3053
|
colorHex?: Maybe<Scalars['String']['output']>;
|
|
@@ -3144,17 +3205,6 @@ export type WorkplaceFilter = {
|
|
|
3144
3205
|
id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3145
3206
|
id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
3146
3207
|
id_null?: InputMaybe<Scalars['String']['input']>;
|
|
3147
|
-
machine_id_eq?: InputMaybe<Scalars['String']['input']>;
|
|
3148
|
-
machine_id_equals?: InputMaybe<Scalars['String']['input']>;
|
|
3149
|
-
machine_id_gt?: InputMaybe<Scalars['String']['input']>;
|
|
3150
|
-
machine_id_gteq?: InputMaybe<Scalars['String']['input']>;
|
|
3151
|
-
machine_id_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3152
|
-
machine_id_lt?: InputMaybe<Scalars['String']['input']>;
|
|
3153
|
-
machine_id_lteq?: InputMaybe<Scalars['String']['input']>;
|
|
3154
|
-
machine_id_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
3155
|
-
machine_id_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3156
|
-
machine_id_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
3157
|
-
machine_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
3158
3208
|
meta_contains?: InputMaybe<Scalars['String']['input']>;
|
|
3159
3209
|
min_operators_eq?: InputMaybe<Scalars['String']['input']>;
|
|
3160
3210
|
min_operators_equals?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3350,7 +3400,7 @@ export type WorkplacePerformanceInsightsReason = {
|
|
|
3350
3400
|
maxDurationSeconds: Scalars['Float']['output'];
|
|
3351
3401
|
occurrences: Scalars['Int']['output'];
|
|
3352
3402
|
percentage: Scalars['Float']['output'];
|
|
3353
|
-
reasonColor:
|
|
3403
|
+
reasonColor: AndonLightColor;
|
|
3354
3404
|
reasonId: Scalars['ID']['output'];
|
|
3355
3405
|
reasonName: Scalars['String']['output'];
|
|
3356
3406
|
statusChanges: Array<WorkplacePerformanceInsightsStatusChange>;
|
|
@@ -5785,6 +5835,21 @@ export type ApplicationInfoQuery = {
|
|
|
5785
5835
|
apiVersion: string;
|
|
5786
5836
|
};
|
|
5787
5837
|
};
|
|
5838
|
+
export type AvailabilityInsightsQueryVariables = Exact<{
|
|
5839
|
+
input: AvailabilityInsightsInput;
|
|
5840
|
+
}>;
|
|
5841
|
+
export type AvailabilityInsightsQuery = {
|
|
5842
|
+
__typename?: 'Query';
|
|
5843
|
+
availabilityInsights: {
|
|
5844
|
+
__typename?: 'AvailabilityInsightsResult';
|
|
5845
|
+
entries: Array<{
|
|
5846
|
+
__typename?: 'AvailabilityInsightsEntry';
|
|
5847
|
+
availability: number;
|
|
5848
|
+
label: string;
|
|
5849
|
+
noData: boolean;
|
|
5850
|
+
}>;
|
|
5851
|
+
};
|
|
5852
|
+
};
|
|
5788
5853
|
export type CompanyConfigQueryVariables = Exact<{
|
|
5789
5854
|
[key: string]: never;
|
|
5790
5855
|
}>;
|
|
@@ -6242,6 +6307,20 @@ export type OrdersExecutionsQuery = {
|
|
|
6242
6307
|
} | null;
|
|
6243
6308
|
}>;
|
|
6244
6309
|
};
|
|
6310
|
+
export type ProductionInsightsQueryVariables = Exact<{
|
|
6311
|
+
input: ProductionInsightsInput;
|
|
6312
|
+
}>;
|
|
6313
|
+
export type ProductionInsightsQuery = {
|
|
6314
|
+
__typename?: 'Query';
|
|
6315
|
+
productionInsights: {
|
|
6316
|
+
__typename?: 'ProductionInsightsResult';
|
|
6317
|
+
entries: Array<{
|
|
6318
|
+
__typename?: 'ProductionInsightsEntry';
|
|
6319
|
+
count: number;
|
|
6320
|
+
label: string;
|
|
6321
|
+
}>;
|
|
6322
|
+
};
|
|
6323
|
+
};
|
|
6245
6324
|
export type ProductsQueryVariables = Exact<{
|
|
6246
6325
|
filter?: InputMaybe<ProductFilter>;
|
|
6247
6326
|
}>;
|
|
@@ -6801,6 +6880,27 @@ export type WorkOrdersQuery = {
|
|
|
6801
6880
|
}>;
|
|
6802
6881
|
}>;
|
|
6803
6882
|
};
|
|
6883
|
+
export type WorkOrdersInsightsQueryVariables = Exact<{
|
|
6884
|
+
input: WorkOrdersInsightsInput;
|
|
6885
|
+
}>;
|
|
6886
|
+
export type WorkOrdersInsightsQuery = {
|
|
6887
|
+
__typename?: 'Query';
|
|
6888
|
+
workOrdersInsights: {
|
|
6889
|
+
__typename?: 'WorkOrdersInsightsResult';
|
|
6890
|
+
categories: Array<{
|
|
6891
|
+
__typename?: 'WorkOrdersInsightsCategoryEntry';
|
|
6892
|
+
categoryId: string;
|
|
6893
|
+
categoryName: string;
|
|
6894
|
+
totalCount: number;
|
|
6895
|
+
durations: Array<{
|
|
6896
|
+
__typename?: 'WorkOrdersInsightsDurationEntry';
|
|
6897
|
+
count: number;
|
|
6898
|
+
lowerBoundMinutes?: number | null;
|
|
6899
|
+
upperBoundMinutes?: number | null;
|
|
6900
|
+
}>;
|
|
6901
|
+
}>;
|
|
6902
|
+
};
|
|
6903
|
+
};
|
|
6804
6904
|
export type WorkplaceAssignmentsQueryVariables = Exact<{
|
|
6805
6905
|
input: WorkplaceAssignmentsInput;
|
|
6806
6906
|
}>;
|
|
@@ -7005,7 +7105,7 @@ export type WorkplacePerformanceInsightsQuery = {
|
|
|
7005
7105
|
maxDurationSeconds: number;
|
|
7006
7106
|
occurrences: number;
|
|
7007
7107
|
percentage: number;
|
|
7008
|
-
reasonColor:
|
|
7108
|
+
reasonColor: AndonLightColor;
|
|
7009
7109
|
reasonId: string;
|
|
7010
7110
|
reasonName: string;
|
|
7011
7111
|
totalDuration: string;
|
|
@@ -7208,7 +7308,7 @@ export type GetWorkplacePerformanceInsightsQuery = {
|
|
|
7208
7308
|
__typename?: 'WorkplacePerformanceInsightsReason';
|
|
7209
7309
|
reasonId: string;
|
|
7210
7310
|
reasonName: string;
|
|
7211
|
-
reasonColor:
|
|
7311
|
+
reasonColor: AndonLightColor;
|
|
7212
7312
|
availabilityStatus: AvailabilityStatus;
|
|
7213
7313
|
totalDuration: string;
|
|
7214
7314
|
totalSeconds: number;
|
|
@@ -7636,6 +7736,7 @@ export declare const UpdateWidgetDocument: import("graphql/language/ast").Docume
|
|
|
7636
7736
|
export declare const UpdateWorkOrderDocument: import("graphql/language/ast").DocumentNode;
|
|
7637
7737
|
export declare const ActualStaffingCountsDocument: import("graphql/language/ast").DocumentNode;
|
|
7638
7738
|
export declare const ApplicationInfoDocument: import("graphql/language/ast").DocumentNode;
|
|
7739
|
+
export declare const AvailabilityInsightsDocument: import("graphql/language/ast").DocumentNode;
|
|
7639
7740
|
export declare const CompanyConfigDocument: import("graphql/language/ast").DocumentNode;
|
|
7640
7741
|
export declare const CounterDirectoriesDocument: import("graphql/language/ast").DocumentNode;
|
|
7641
7742
|
export declare const CountersDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -7648,6 +7749,7 @@ export declare const MetricsDocument: import("graphql/language/ast").DocumentNod
|
|
|
7648
7749
|
export declare const NotificationsDocument: import("graphql/language/ast").DocumentNode;
|
|
7649
7750
|
export declare const OrdersDocument: import("graphql/language/ast").DocumentNode;
|
|
7650
7751
|
export declare const OrdersExecutionsDocument: import("graphql/language/ast").DocumentNode;
|
|
7752
|
+
export declare const ProductionInsightsDocument: import("graphql/language/ast").DocumentNode;
|
|
7651
7753
|
export declare const ProductsDocument: import("graphql/language/ast").DocumentNode;
|
|
7652
7754
|
export declare const ReasonsDocument: import("graphql/language/ast").DocumentNode;
|
|
7653
7755
|
export declare const ReasonsRecommendationDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -7661,6 +7763,7 @@ export declare const UsersPresencesDocument: import("graphql/language/ast").Docu
|
|
|
7661
7763
|
export declare const WidgetDocument: import("graphql/language/ast").DocumentNode;
|
|
7662
7764
|
export declare const WidgetsDocument: import("graphql/language/ast").DocumentNode;
|
|
7663
7765
|
export declare const WorkOrdersDocument: import("graphql/language/ast").DocumentNode;
|
|
7766
|
+
export declare const WorkOrdersInsightsDocument: import("graphql/language/ast").DocumentNode;
|
|
7664
7767
|
export declare const WorkplaceAssignmentsDocument: import("graphql/language/ast").DocumentNode;
|
|
7665
7768
|
export declare const WorkplacePerformanceInsightsDocument: import("graphql/language/ast").DocumentNode;
|
|
7666
7769
|
export declare const WorkplacesDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -7707,6 +7810,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7707
7810
|
updateWorkOrder(variables: UpdateWorkOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateWorkOrderMutation>;
|
|
7708
7811
|
actualStaffingCounts(variables?: ActualStaffingCountsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ActualStaffingCountsQuery>;
|
|
7709
7812
|
applicationInfo(variables?: ApplicationInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ApplicationInfoQuery>;
|
|
7813
|
+
availabilityInsights(variables: AvailabilityInsightsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AvailabilityInsightsQuery>;
|
|
7710
7814
|
companyConfig(variables?: CompanyConfigQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CompanyConfigQuery>;
|
|
7711
7815
|
counterDirectories(variables?: CounterDirectoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CounterDirectoriesQuery>;
|
|
7712
7816
|
counters(variables?: CountersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CountersQuery>;
|
|
@@ -7719,6 +7823,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7719
7823
|
notifications(variables?: NotificationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<NotificationsQuery>;
|
|
7720
7824
|
orders(variables?: OrdersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrdersQuery>;
|
|
7721
7825
|
ordersExecutions(variables?: OrdersExecutionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrdersExecutionsQuery>;
|
|
7826
|
+
productionInsights(variables: ProductionInsightsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ProductionInsightsQuery>;
|
|
7722
7827
|
products(variables?: ProductsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ProductsQuery>;
|
|
7723
7828
|
reasons(variables?: ReasonsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ReasonsQuery>;
|
|
7724
7829
|
reasonsRecommendation(variables: ReasonsRecommendationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ReasonsRecommendationQuery>;
|
|
@@ -7732,6 +7837,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7732
7837
|
widget(variables: WidgetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WidgetQuery>;
|
|
7733
7838
|
widgets(variables?: WidgetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WidgetsQuery>;
|
|
7734
7839
|
workOrders(variables?: WorkOrdersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WorkOrdersQuery>;
|
|
7840
|
+
workOrdersInsights(variables: WorkOrdersInsightsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WorkOrdersInsightsQuery>;
|
|
7735
7841
|
workplaceAssignments(variables: WorkplaceAssignmentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WorkplaceAssignmentsQuery>;
|
|
7736
7842
|
workplacePerformanceInsights(variables: WorkplacePerformanceInsightsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WorkplacePerformanceInsightsQuery>;
|
|
7737
7843
|
workplaces(variables?: WorkplacesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WorkplacesQuery>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { CalculateContext, PeriodDefinition, PeriodId } from '../components/DashboardFilters/types';
|
|
1
2
|
import { Shift } from '../graphql-request';
|
|
2
|
-
import type { PeriodDefinition } from '../components/DashboardFilters/types';
|
|
3
3
|
export declare const periods: PeriodDefinition[];
|
|
4
4
|
export declare const findPeriodById: (id: string) => PeriodDefinition | undefined;
|
|
5
5
|
export declare const getTimeRangeLabel: (shifts: Shift[], selectedShiftIds: string[]) => string | null;
|
|
6
6
|
export declare const getShiftTimeRange: (shift: Shift) => string;
|
|
7
|
+
export declare const getNextBoundary: (periodId: PeriodId, ctx: CalculateContext) => Date | null;
|