andoncloud-dashboard-toolkit 1.5.37 → 1.5.40
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/graphql-request.d.ts +15 -14
- package/dist/helpers/aggregation.cy.d.ts +1 -0
- package/dist/helpers/aggregation.d.ts +8 -0
- package/dist/helpers/sdk.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -129,6 +129,7 @@ export type AvailabilityInsightsResult = {
|
|
|
129
129
|
entries: Array<AvailabilityInsightsEntry>;
|
|
130
130
|
};
|
|
131
131
|
export declare enum AvailabilityStatus {
|
|
132
|
+
OffSchedule = "OFF_SCHEDULE",
|
|
132
133
|
PlannedStop = "PLANNED_STOP",
|
|
133
134
|
Stopped = "STOPPED",
|
|
134
135
|
Working = "WORKING"
|
|
@@ -759,6 +760,12 @@ export type FloorPlanFilter = {
|
|
|
759
760
|
updated_at_not_null?: InputMaybe<Scalars['String']['input']>;
|
|
760
761
|
updated_at_null?: InputMaybe<Scalars['String']['input']>;
|
|
761
762
|
};
|
|
763
|
+
export declare enum InsightsAggregation {
|
|
764
|
+
Daily = "DAILY",
|
|
765
|
+
Hourly = "HOURLY",
|
|
766
|
+
Monthly = "MONTHLY",
|
|
767
|
+
Weekly = "WEEKLY"
|
|
768
|
+
}
|
|
762
769
|
export type Item = {
|
|
763
770
|
__typename?: 'Item';
|
|
764
771
|
count: Scalars['Float']['output'];
|
|
@@ -1623,18 +1630,13 @@ export type ProductInput = {
|
|
|
1623
1630
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1624
1631
|
number?: InputMaybe<Scalars['String']['input']>;
|
|
1625
1632
|
};
|
|
1626
|
-
export declare enum ProductionInsightsAggregation {
|
|
1627
|
-
Daily = "DAILY",
|
|
1628
|
-
Hourly = "HOURLY",
|
|
1629
|
-
Monthly = "MONTHLY"
|
|
1630
|
-
}
|
|
1631
1633
|
export type ProductionInsightsEntry = {
|
|
1632
1634
|
__typename?: 'ProductionInsightsEntry';
|
|
1633
1635
|
count: Scalars['Int']['output'];
|
|
1634
1636
|
label: Scalars['String']['output'];
|
|
1635
1637
|
};
|
|
1636
1638
|
export type ProductionInsightsInput = {
|
|
1637
|
-
aggregation:
|
|
1639
|
+
aggregation: InsightsAggregation;
|
|
1638
1640
|
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
1639
1641
|
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
1640
1642
|
dayType: DayType;
|
|
@@ -2331,11 +2333,6 @@ export type StatusChangeTransitionPermissionFilter = {
|
|
|
2331
2333
|
workplace_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
2332
2334
|
workplace_id_start?: InputMaybe<Scalars['String']['input']>;
|
|
2333
2335
|
};
|
|
2334
|
-
export declare enum StatusInsightsAggregation {
|
|
2335
|
-
Daily = "DAILY",
|
|
2336
|
-
Hourly = "HOURLY",
|
|
2337
|
-
Monthly = "MONTHLY"
|
|
2338
|
-
}
|
|
2339
2336
|
export type StatusInsightsEntry = {
|
|
2340
2337
|
__typename?: 'StatusInsightsEntry';
|
|
2341
2338
|
averageDurationMinutes: Scalars['Float']['output'];
|
|
@@ -2343,12 +2340,12 @@ export type StatusInsightsEntry = {
|
|
|
2343
2340
|
occurrenceCount: Scalars['Int']['output'];
|
|
2344
2341
|
};
|
|
2345
2342
|
export type StatusInsightsInput = {
|
|
2346
|
-
aggregation:
|
|
2343
|
+
aggregation: InsightsAggregation;
|
|
2347
2344
|
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
2348
2345
|
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
2349
2346
|
dayType: DayType;
|
|
2350
2347
|
reasonId: Scalars['ID']['input'];
|
|
2351
|
-
shiftIds
|
|
2348
|
+
shiftIds: Array<Scalars['ID']['input']>;
|
|
2352
2349
|
};
|
|
2353
2350
|
export type StatusInsightsResult = {
|
|
2354
2351
|
__typename?: 'StatusInsightsResult';
|
|
@@ -3412,7 +3409,7 @@ export type WorkplacePerformanceInsightsInput = {
|
|
|
3412
3409
|
availabilityStatuses?: InputMaybe<Array<AvailabilityStatus>>;
|
|
3413
3410
|
dayType?: InputMaybe<DayType>;
|
|
3414
3411
|
endDate: Scalars['ISO8601DateTime']['input'];
|
|
3415
|
-
shiftIds
|
|
3412
|
+
shiftIds: Array<Scalars['ID']['input']>;
|
|
3416
3413
|
sortOrder?: InputMaybe<Scalars['String']['input']>;
|
|
3417
3414
|
startDate: Scalars['ISO8601DateTime']['input'];
|
|
3418
3415
|
userIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
@@ -3441,6 +3438,8 @@ export type WorkplacePerformanceInsightsResult = {
|
|
|
3441
3438
|
mtbfSeconds?: Maybe<Scalars['Float']['output']>;
|
|
3442
3439
|
mttr: Scalars['String']['output'];
|
|
3443
3440
|
mttrSeconds?: Maybe<Scalars['Float']['output']>;
|
|
3441
|
+
offScheduleDuration: Scalars['String']['output'];
|
|
3442
|
+
offScheduleSeconds: Scalars['Float']['output'];
|
|
3444
3443
|
reasons: Array<WorkplacePerformanceInsightsReason>;
|
|
3445
3444
|
startDate: Scalars['ISO8601DateTime']['output'];
|
|
3446
3445
|
totalDowntime: Scalars['String']['output'];
|
|
@@ -7128,6 +7127,8 @@ export type WorkplacePerformanceInsightsQuery = {
|
|
|
7128
7127
|
mttr: string;
|
|
7129
7128
|
mttrSeconds?: number | null;
|
|
7130
7129
|
startDate: any;
|
|
7130
|
+
offScheduleDuration: string;
|
|
7131
|
+
offScheduleSeconds: number;
|
|
7131
7132
|
totalDowntime: string;
|
|
7132
7133
|
totalDowntimePercentage: number;
|
|
7133
7134
|
totalDowntimeSeconds: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InsightsAggregation } from '../graphql-request';
|
|
2
|
+
type DateRange = {
|
|
3
|
+
dateFrom: string;
|
|
4
|
+
dateTo: string;
|
|
5
|
+
};
|
|
6
|
+
declare const getValidAggregations: (dateRange: DateRange) => InsightsAggregation[];
|
|
7
|
+
declare const resolveAggregation: (dateRange: DateRange, savedAggregation?: InsightsAggregation) => InsightsAggregation;
|
|
8
|
+
export { getValidAggregations, resolveAggregation };
|
package/dist/helpers/sdk.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare const getGraphqlSdk: (url: string, fetch: typeof global.fetch) =>
|
|
|
52
52
|
standardRates(variables: import("../graphql-request").StandardRatesQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").StandardRatesQuery>;
|
|
53
53
|
statusChangeTransitionPermissions(variables?: import("../graphql-request").StatusChangeTransitionPermissionsQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").StatusChangeTransitionPermissionsQuery>;
|
|
54
54
|
statusChanges(variables?: import("../graphql-request").StatusChangesQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").StatusChangesQuery>;
|
|
55
|
+
statusInsights(variables: import("../graphql-request").StatusInsightsQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").StatusInsightsQuery>;
|
|
55
56
|
users(variables?: import("../graphql-request").UsersQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").UsersQuery>;
|
|
56
57
|
usersPresences(variables?: import("../graphql-request").UsersPresencesQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").UsersPresencesQuery>;
|
|
57
58
|
widget(variables: import("../graphql-request").WidgetQueryVariables, requestHeaders?: (import("graphql-request/dist/types.dom").Headers | string[][] | Record<string, string>) | undefined, signal?: RequestInit["signal"]): Promise<import("../graphql-request").WidgetQuery>;
|
package/dist/index.d.ts
CHANGED