andoncloud-dashboard-toolkit 1.5.36 → 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.
- package/dist/graphql-request.d.ts +50 -7
- 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/operations/generated/queries/index.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -1789,6 +1791,7 @@ export type Query = {
|
|
|
1789
1791
|
* (e.g. at order start/stop, shift change, operator log in/out).
|
|
1790
1792
|
*/
|
|
1791
1793
|
statusChanges: Array<StatusChange>;
|
|
1794
|
+
statusInsights: StatusInsightsResult;
|
|
1792
1795
|
/** Returns all users belonging to the company of the currently logged-in user. */
|
|
1793
1796
|
users: Array<User>;
|
|
1794
1797
|
/**
|
|
@@ -1891,6 +1894,9 @@ export type QueryStatusChangeTransitionPermissionsArgs = {
|
|
|
1891
1894
|
export type QueryStatusChangesArgs = {
|
|
1892
1895
|
filter?: InputMaybe<StatusChangeFilter>;
|
|
1893
1896
|
};
|
|
1897
|
+
export type QueryStatusInsightsArgs = {
|
|
1898
|
+
input: StatusInsightsInput;
|
|
1899
|
+
};
|
|
1894
1900
|
export type QueryUsersArgs = {
|
|
1895
1901
|
filter?: InputMaybe<UserFilter>;
|
|
1896
1902
|
};
|
|
@@ -2327,6 +2333,23 @@ export type StatusChangeTransitionPermissionFilter = {
|
|
|
2327
2333
|
workplace_id_null?: InputMaybe<Scalars['String']['input']>;
|
|
2328
2334
|
workplace_id_start?: InputMaybe<Scalars['String']['input']>;
|
|
2329
2335
|
};
|
|
2336
|
+
export type StatusInsightsEntry = {
|
|
2337
|
+
__typename?: 'StatusInsightsEntry';
|
|
2338
|
+
averageDurationMinutes: Scalars['Float']['output'];
|
|
2339
|
+
label: Scalars['String']['output'];
|
|
2340
|
+
occurrenceCount: Scalars['Int']['output'];
|
|
2341
|
+
};
|
|
2342
|
+
export type StatusInsightsInput = {
|
|
2343
|
+
aggregation: InsightsAggregation;
|
|
2344
|
+
dateFrom: Scalars['ISO8601DateTime']['input'];
|
|
2345
|
+
dateTo: Scalars['ISO8601DateTime']['input'];
|
|
2346
|
+
dayType: DayType;
|
|
2347
|
+
reasonId: Scalars['ID']['input'];
|
|
2348
|
+
};
|
|
2349
|
+
export type StatusInsightsResult = {
|
|
2350
|
+
__typename?: 'StatusInsightsResult';
|
|
2351
|
+
entries: Array<StatusInsightsEntry>;
|
|
2352
|
+
};
|
|
2330
2353
|
export declare enum StatusScreenDisplayBlocksEnum {
|
|
2331
2354
|
Kpi = "KPI",
|
|
2332
2355
|
Livetime = "LIVETIME",
|
|
@@ -3385,7 +3408,6 @@ export type WorkplacePerformanceInsightsInput = {
|
|
|
3385
3408
|
availabilityStatuses?: InputMaybe<Array<AvailabilityStatus>>;
|
|
3386
3409
|
dayType?: InputMaybe<DayType>;
|
|
3387
3410
|
endDate: Scalars['ISO8601DateTime']['input'];
|
|
3388
|
-
shiftIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
3389
3411
|
sortOrder?: InputMaybe<Scalars['String']['input']>;
|
|
3390
3412
|
startDate: Scalars['ISO8601DateTime']['input'];
|
|
3391
3413
|
userIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
@@ -3414,6 +3436,8 @@ export type WorkplacePerformanceInsightsResult = {
|
|
|
3414
3436
|
mtbfSeconds?: Maybe<Scalars['Float']['output']>;
|
|
3415
3437
|
mttr: Scalars['String']['output'];
|
|
3416
3438
|
mttrSeconds?: Maybe<Scalars['Float']['output']>;
|
|
3439
|
+
offScheduleDuration: Scalars['String']['output'];
|
|
3440
|
+
offScheduleSeconds: Scalars['Float']['output'];
|
|
3417
3441
|
reasons: Array<WorkplacePerformanceInsightsReason>;
|
|
3418
3442
|
startDate: Scalars['ISO8601DateTime']['output'];
|
|
3419
3443
|
totalDowntime: Scalars['String']['output'];
|
|
@@ -6685,6 +6709,21 @@ export type StatusChangesQuery = {
|
|
|
6685
6709
|
};
|
|
6686
6710
|
}>;
|
|
6687
6711
|
};
|
|
6712
|
+
export type StatusInsightsQueryVariables = Exact<{
|
|
6713
|
+
input: StatusInsightsInput;
|
|
6714
|
+
}>;
|
|
6715
|
+
export type StatusInsightsQuery = {
|
|
6716
|
+
__typename?: 'Query';
|
|
6717
|
+
statusInsights: {
|
|
6718
|
+
__typename?: 'StatusInsightsResult';
|
|
6719
|
+
entries: Array<{
|
|
6720
|
+
__typename?: 'StatusInsightsEntry';
|
|
6721
|
+
averageDurationMinutes: number;
|
|
6722
|
+
label: string;
|
|
6723
|
+
occurrenceCount: number;
|
|
6724
|
+
}>;
|
|
6725
|
+
};
|
|
6726
|
+
};
|
|
6688
6727
|
export type UsersQueryVariables = Exact<{
|
|
6689
6728
|
filter?: InputMaybe<UserFilter>;
|
|
6690
6729
|
}>;
|
|
@@ -7086,6 +7125,8 @@ export type WorkplacePerformanceInsightsQuery = {
|
|
|
7086
7125
|
mttr: string;
|
|
7087
7126
|
mttrSeconds?: number | null;
|
|
7088
7127
|
startDate: any;
|
|
7128
|
+
offScheduleDuration: string;
|
|
7129
|
+
offScheduleSeconds: number;
|
|
7089
7130
|
totalDowntime: string;
|
|
7090
7131
|
totalDowntimePercentage: number;
|
|
7091
7132
|
totalDowntimeSeconds: number;
|
|
@@ -7758,6 +7799,7 @@ export declare const StaffingPlansDocument: import("graphql/language/ast").Docum
|
|
|
7758
7799
|
export declare const StandardRatesDocument: import("graphql/language/ast").DocumentNode;
|
|
7759
7800
|
export declare const StatusChangeTransitionPermissionsDocument: import("graphql/language/ast").DocumentNode;
|
|
7760
7801
|
export declare const StatusChangesDocument: import("graphql/language/ast").DocumentNode;
|
|
7802
|
+
export declare const StatusInsightsDocument: import("graphql/language/ast").DocumentNode;
|
|
7761
7803
|
export declare const UsersDocument: import("graphql/language/ast").DocumentNode;
|
|
7762
7804
|
export declare const UsersPresencesDocument: import("graphql/language/ast").DocumentNode;
|
|
7763
7805
|
export declare const WidgetDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -7832,6 +7874,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7832
7874
|
standardRates(variables: StandardRatesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StandardRatesQuery>;
|
|
7833
7875
|
statusChangeTransitionPermissions(variables?: StatusChangeTransitionPermissionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StatusChangeTransitionPermissionsQuery>;
|
|
7834
7876
|
statusChanges(variables?: StatusChangesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StatusChangesQuery>;
|
|
7877
|
+
statusInsights(variables: StatusInsightsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StatusInsightsQuery>;
|
|
7835
7878
|
users(variables?: UsersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UsersQuery>;
|
|
7836
7879
|
usersPresences(variables?: UsersPresencesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UsersPresencesQuery>;
|
|
7837
7880
|
widget(variables: WidgetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<WidgetQuery>;
|
|
@@ -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