andoncloud-dashboard-toolkit 1.5.12 → 1.5.14
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 +8 -0
- package/dist/helpers/periods.d.ts +6 -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 +1 -1
|
@@ -506,6 +506,7 @@ export type CreateWidgetPayload = {
|
|
|
506
506
|
};
|
|
507
507
|
export type Dashboard = {
|
|
508
508
|
__typename?: 'Dashboard';
|
|
509
|
+
filters?: Maybe<Scalars['String']['output']>;
|
|
509
510
|
gridLayout?: Maybe<Scalars['String']['output']>;
|
|
510
511
|
id: Scalars['ID']['output'];
|
|
511
512
|
name: Scalars['String']['output'];
|
|
@@ -806,6 +807,7 @@ export type MutationBulkUpsertStaffingPlansArgs = {
|
|
|
806
807
|
input: BulkStaffingPlanInput;
|
|
807
808
|
};
|
|
808
809
|
export type MutationCreateDashboardArgs = {
|
|
810
|
+
filters?: InputMaybe<Scalars['String']['input']>;
|
|
809
811
|
gridLayout?: InputMaybe<Scalars['String']['input']>;
|
|
810
812
|
id: Scalars['ID']['input'];
|
|
811
813
|
name: Scalars['String']['input'];
|
|
@@ -887,6 +889,7 @@ export type MutationUnassignOperatorFromWorkplaceArgs = {
|
|
|
887
889
|
input: UnassignOperatorInput;
|
|
888
890
|
};
|
|
889
891
|
export type MutationUpdateDashboardArgs = {
|
|
892
|
+
filters?: InputMaybe<Scalars['String']['input']>;
|
|
890
893
|
gridLayout: Scalars['String']['input'];
|
|
891
894
|
id: Scalars['ID']['input'];
|
|
892
895
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3674,6 +3677,7 @@ export type BulkUpsertStaffingPlansMutation = {
|
|
|
3674
3677
|
};
|
|
3675
3678
|
};
|
|
3676
3679
|
export type CreateDashboardMutationVariables = Exact<{
|
|
3680
|
+
filters?: InputMaybe<Scalars['String']['input']>;
|
|
3677
3681
|
gridLayout?: InputMaybe<Scalars['String']['input']>;
|
|
3678
3682
|
id: Scalars['ID']['input'];
|
|
3679
3683
|
name: Scalars['String']['input'];
|
|
@@ -3684,6 +3688,7 @@ export type CreateDashboardMutation = {
|
|
|
3684
3688
|
__typename?: 'CreateDashboardPayload';
|
|
3685
3689
|
dashboard?: {
|
|
3686
3690
|
__typename?: 'Dashboard';
|
|
3691
|
+
filters?: string | null;
|
|
3687
3692
|
gridLayout?: string | null;
|
|
3688
3693
|
id: string;
|
|
3689
3694
|
name: string;
|
|
@@ -4890,6 +4895,7 @@ export type UnassignOperatorFromWorkplaceMutation = {
|
|
|
4890
4895
|
};
|
|
4891
4896
|
};
|
|
4892
4897
|
export type UpdateDashboardMutationVariables = Exact<{
|
|
4898
|
+
filters?: InputMaybe<Scalars['String']['input']>;
|
|
4893
4899
|
gridLayout: Scalars['String']['input'];
|
|
4894
4900
|
id: Scalars['ID']['input'];
|
|
4895
4901
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4900,6 +4906,7 @@ export type UpdateDashboardMutation = {
|
|
|
4900
4906
|
__typename?: 'UpdateDashboardPayload';
|
|
4901
4907
|
dashboard?: {
|
|
4902
4908
|
__typename?: 'Dashboard';
|
|
4909
|
+
filters?: string | null;
|
|
4903
4910
|
gridLayout?: string | null;
|
|
4904
4911
|
id: string;
|
|
4905
4912
|
name: string;
|
|
@@ -5901,6 +5908,7 @@ export type DashboardsQuery = {
|
|
|
5901
5908
|
__typename?: 'Query';
|
|
5902
5909
|
dashboards: Array<{
|
|
5903
5910
|
__typename?: 'Dashboard';
|
|
5911
|
+
filters?: string | null;
|
|
5904
5912
|
gridLayout?: string | null;
|
|
5905
5913
|
id: string;
|
|
5906
5914
|
name: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Shift } from '../graphql-request';
|
|
2
|
+
import type { PeriodDefinition } from '../components/DashboardFilters/types';
|
|
3
|
+
export declare const periods: PeriodDefinition[];
|
|
4
|
+
export declare const findPeriodById: (id: string) => PeriodDefinition | undefined;
|
|
5
|
+
export declare const getTimeRangeLabel: (shifts: Shift[], selectedShiftIds: string[]) => string | null;
|
|
6
|
+
export declare const getShiftTimeRange: (shift: Shift) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './graphql-request';
|
|
|
3
3
|
export * from './graphql-ws';
|
|
4
4
|
export * from './helpers/sdk';
|
|
5
5
|
export * from './helpers/shifts';
|
|
6
|
+
export * from './helpers/periods';
|
|
6
7
|
export * from './helpers/time';
|
|
7
8
|
export * from './types';
|
|
8
9
|
export { default as GraphqlWsClient } from './utils/graphql-ws-client';
|