andoncloud-dashboard-toolkit 1.5.37 → 1.5.39

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.
@@ -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: ProductionInsightsAggregation;
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,11 @@ export type StatusInsightsEntry = {
2343
2340
  occurrenceCount: Scalars['Int']['output'];
2344
2341
  };
2345
2342
  export type StatusInsightsInput = {
2346
- aggregation: StatusInsightsAggregation;
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?: InputMaybe<Array<Scalars['ID']['input']>>;
2352
2348
  };
2353
2349
  export type StatusInsightsResult = {
2354
2350
  __typename?: 'StatusInsightsResult';
@@ -3412,7 +3408,6 @@ export type WorkplacePerformanceInsightsInput = {
3412
3408
  availabilityStatuses?: InputMaybe<Array<AvailabilityStatus>>;
3413
3409
  dayType?: InputMaybe<DayType>;
3414
3410
  endDate: Scalars['ISO8601DateTime']['input'];
3415
- shiftIds?: InputMaybe<Array<Scalars['ID']['input']>>;
3416
3411
  sortOrder?: InputMaybe<Scalars['String']['input']>;
3417
3412
  startDate: Scalars['ISO8601DateTime']['input'];
3418
3413
  userIds?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -3441,6 +3436,8 @@ export type WorkplacePerformanceInsightsResult = {
3441
3436
  mtbfSeconds?: Maybe<Scalars['Float']['output']>;
3442
3437
  mttr: Scalars['String']['output'];
3443
3438
  mttrSeconds?: Maybe<Scalars['Float']['output']>;
3439
+ offScheduleDuration: Scalars['String']['output'];
3440
+ offScheduleSeconds: Scalars['Float']['output'];
3444
3441
  reasons: Array<WorkplacePerformanceInsightsReason>;
3445
3442
  startDate: Scalars['ISO8601DateTime']['output'];
3446
3443
  totalDowntime: Scalars['String']['output'];
@@ -7128,6 +7125,8 @@ export type WorkplacePerformanceInsightsQuery = {
7128
7125
  mttr: string;
7129
7126
  mttrSeconds?: number | null;
7130
7127
  startDate: any;
7128
+ offScheduleDuration: string;
7129
+ offScheduleSeconds: number;
7131
7130
  totalDowntime: string;
7132
7131
  totalDowntimePercentage: number;
7133
7132
  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 };
@@ -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
@@ -1,6 +1,7 @@
1
1
  export * from './components';
2
2
  export * from './graphql-request';
3
3
  export * from './graphql-ws';
4
+ export * from './helpers/aggregation';
4
5
  export * from './helpers/sdk';
5
6
  export * from './helpers/shifts';
6
7
  export * from './helpers/periods';