andoncloud-dashboard-toolkit 1.3.19 → 1.3.20

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.
@@ -43,12 +43,31 @@ export type Scalars = {
43
43
  input: number;
44
44
  output: number;
45
45
  };
46
+ /** An ISO 8601-encoded date */
47
+ ISO8601Date: {
48
+ input: any;
49
+ output: any;
50
+ };
51
+ /** An ISO 8601-encoded datetime */
52
+ ISO8601DateTime: {
53
+ input: any;
54
+ output: any;
55
+ };
46
56
  /** Represents untyped JSON */
47
57
  JSON: {
48
58
  input: any;
49
59
  output: any;
50
60
  };
51
61
  };
62
+ export type ActualStaffingCount = {
63
+ __typename?: 'ActualStaffingCount';
64
+ actualOperators: Scalars['Int']['output'];
65
+ date: Scalars['ISO8601Date']['output'];
66
+ hasDeviation: Scalars['Boolean']['output'];
67
+ plannedOperators?: Maybe<Scalars['Int']['output']>;
68
+ shift: Shift;
69
+ workplace: Workplace;
70
+ };
52
71
  export declare enum AndonLightColor {
53
72
  Gray = "gray",
54
73
  Green = "green",
@@ -59,6 +78,9 @@ export type ApplicationInfo = {
59
78
  __typename?: 'ApplicationInfo';
60
79
  apiVersion: Scalars['String']['output'];
61
80
  };
81
+ export type BulkStaffingPlanInput = {
82
+ plans: Array<StaffingPlanInput>;
83
+ };
62
84
  export type CompanyConfig = {
63
85
  __typename?: 'CompanyConfig';
64
86
  devicesConfigs: Array<DeviceConfig>;
@@ -692,9 +714,11 @@ export type MetricValue = {
692
714
  };
693
715
  export type Mutation = {
694
716
  __typename?: 'Mutation';
717
+ bulkUpdateStaffingPlans: Array<StaffingPlan>;
695
718
  createDashboard: CreateDashboardPayload;
696
719
  createOrder: CreateOrderPayload;
697
720
  createProduct: CreateProductPayload;
721
+ createStaffingPlan: StaffingPlan;
698
722
  createStatusChange: CreateStatusChangePayload;
699
723
  createUserPresence: CreateUserPresencePayload;
700
724
  createWidget: CreateWidgetPayload;
@@ -710,10 +734,14 @@ export type Mutation = {
710
734
  updateNotification: UpdateNotificationPayload;
711
735
  updateOrder: UpdateOrderPayload;
712
736
  updateOrderExecution: UpdateOrderExecutionPayload;
737
+ updateStaffingPlan: StaffingPlan;
713
738
  updateStatusChange: UpdateStatusChangePayload;
714
739
  updateWidget: UpdateWidgetPayload;
715
740
  updateWorkOrder: UpdateWorkOrderPayload;
716
741
  };
742
+ export type MutationBulkUpdateStaffingPlansArgs = {
743
+ input: BulkStaffingPlanInput;
744
+ };
717
745
  export type MutationCreateDashboardArgs = {
718
746
  gridLayout?: InputMaybe<Scalars['String']['input']>;
719
747
  id: Scalars['ID']['input'];
@@ -728,6 +756,9 @@ export type MutationCreateProductArgs = {
728
756
  name?: InputMaybe<Scalars['String']['input']>;
729
757
  number: Scalars['String']['input'];
730
758
  };
759
+ export type MutationCreateStaffingPlanArgs = {
760
+ input: StaffingPlanInput;
761
+ };
731
762
  export type MutationCreateStatusChangeArgs = {
732
763
  id: Scalars['ID']['input'];
733
764
  note?: InputMaybe<Scalars['String']['input']>;
@@ -796,6 +827,10 @@ export type MutationUpdateOrderExecutionArgs = {
796
827
  id: Scalars['ID']['input'];
797
828
  standardRateId: Scalars['ID']['input'];
798
829
  };
830
+ export type MutationUpdateStaffingPlanArgs = {
831
+ id: Scalars['ID']['input'];
832
+ recommendedOperators: Scalars['Int']['input'];
833
+ };
799
834
  export type MutationUpdateStatusChangeArgs = {
800
835
  input: UpdateStatusChangeInput;
801
836
  };
@@ -1485,6 +1520,7 @@ export declare enum ProductionMode {
1485
1520
  }
1486
1521
  export type Query = {
1487
1522
  __typename?: 'Query';
1523
+ actualStaffingCounts: Array<ActualStaffingCount>;
1488
1524
  /** Returns application information, including the current API version. */
1489
1525
  applicationInfo: ApplicationInfo;
1490
1526
  /**
@@ -1590,6 +1626,7 @@ export type Query = {
1590
1626
  * used for scheduling, reporting, and tracking production activities.
1591
1627
  */
1592
1628
  shifts: Array<Shift>;
1629
+ staffingPlans: Array<StaffingPlan>;
1593
1630
  /**
1594
1631
  * Returns standard production rates defined for an order execution.
1595
1632
  * Standard rates specify expected output (e.g. good or bad pieces per hour,
@@ -1648,6 +1685,11 @@ export type Query = {
1648
1685
  */
1649
1686
  workplaces: Array<Workplace>;
1650
1687
  };
1688
+ export type QueryActualStaffingCountsArgs = {
1689
+ date: Scalars['ISO8601Date']['input'];
1690
+ shiftIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1691
+ workplaceIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1692
+ };
1651
1693
  export type QueryCounterDirectoriesArgs = {
1652
1694
  filter?: InputMaybe<CounterDirectoryFilter>;
1653
1695
  };
@@ -1685,6 +1727,12 @@ export type QueryReasonsArgs = {
1685
1727
  export type QueryReasonsRecommendationArgs = {
1686
1728
  workplaceId: Scalars['String']['input'];
1687
1729
  };
1730
+ export type QueryStaffingPlansArgs = {
1731
+ dateFrom: Scalars['ISO8601Date']['input'];
1732
+ dateTo: Scalars['ISO8601Date']['input'];
1733
+ shiftIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1734
+ workplaceIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1735
+ };
1688
1736
  export type QueryStandardRatesArgs = {
1689
1737
  orderExecutionId: Scalars['ID']['input'];
1690
1738
  };
@@ -1945,6 +1993,23 @@ export type Shift = {
1945
1993
  name: Scalars['String']['output'];
1946
1994
  startedAt: Scalars['String']['output'];
1947
1995
  };
1996
+ export type StaffingPlan = {
1997
+ __typename?: 'StaffingPlan';
1998
+ author: User;
1999
+ createdAt: Scalars['ISO8601DateTime']['output'];
2000
+ date: Scalars['ISO8601Date']['output'];
2001
+ id: Scalars['ID']['output'];
2002
+ recommendedOperators: Scalars['Int']['output'];
2003
+ shift: Shift;
2004
+ updatedAt: Scalars['ISO8601DateTime']['output'];
2005
+ workplace: Workplace;
2006
+ };
2007
+ export type StaffingPlanInput = {
2008
+ date: Scalars['ISO8601Date']['input'];
2009
+ recommendedOperators: Scalars['Int']['input'];
2010
+ shiftId: Scalars['ID']['input'];
2011
+ workplaceId: Scalars['ID']['input'];
2012
+ };
1948
2013
  export type StandardRate = {
1949
2014
  __typename?: 'StandardRate';
1950
2015
  id: Scalars['ID']['output'];
@@ -2767,6 +2832,7 @@ export declare enum WorkOrderStatusEnum {
2767
2832
  }
2768
2833
  export type Workplace = {
2769
2834
  __typename?: 'Workplace';
2835
+ colorHex?: Maybe<Scalars['String']['output']>;
2770
2836
  currentStatusChange?: Maybe<StatusChange>;
2771
2837
  deactivated: Scalars['Boolean']['output'];
2772
2838
  departmentId?: Maybe<Scalars['String']['output']>;
@@ -3077,6 +3143,137 @@ export type WorkplaceFilter = {
3077
3143
  verify_existence_of_standard_rate_for_order_eq?: InputMaybe<Scalars['String']['input']>;
3078
3144
  verify_existence_of_standard_rate_for_order_equals?: InputMaybe<Scalars['String']['input']>;
3079
3145
  };
3146
+ export type BulkUpdateStaffingPlansMutationVariables = Exact<{
3147
+ input: BulkStaffingPlanInput;
3148
+ }>;
3149
+ export type BulkUpdateStaffingPlansMutation = {
3150
+ __typename?: 'Mutation';
3151
+ bulkUpdateStaffingPlans: Array<{
3152
+ __typename?: 'StaffingPlan';
3153
+ id: string;
3154
+ date: any;
3155
+ recommendedOperators: number;
3156
+ createdAt: any;
3157
+ updatedAt: any;
3158
+ workplace: {
3159
+ __typename?: 'Workplace';
3160
+ colorHex?: string | null;
3161
+ deactivated: boolean;
3162
+ departmentId?: string | null;
3163
+ dtrUrl?: string | null;
3164
+ id: string;
3165
+ minOperators: number;
3166
+ name: string;
3167
+ reasonGroupId: string;
3168
+ reasonsRecommendationsEnabled: boolean;
3169
+ currentStatusChange?: {
3170
+ __typename?: 'StatusChange';
3171
+ finishedAt?: string | null;
3172
+ id: string;
3173
+ note?: string | null;
3174
+ reasonHasBeenRecommended: boolean;
3175
+ startedAt: string;
3176
+ workplaceId: string;
3177
+ author: {
3178
+ __typename?: 'User';
3179
+ id: string;
3180
+ login: string;
3181
+ name: string;
3182
+ };
3183
+ order?: {
3184
+ __typename?: 'Order';
3185
+ executedCount: number;
3186
+ finishedAt?: string | null;
3187
+ id: string;
3188
+ note?: string | null;
3189
+ number: string;
3190
+ plannedCount: number;
3191
+ position?: number | null;
3192
+ startedAt?: string | null;
3193
+ items: Array<{
3194
+ __typename?: 'Item';
3195
+ count: number;
3196
+ id: string;
3197
+ order: {
3198
+ __typename?: 'Order';
3199
+ executedCount: number;
3200
+ finishedAt?: string | null;
3201
+ id: string;
3202
+ note?: string | null;
3203
+ number: string;
3204
+ plannedCount: number;
3205
+ position?: number | null;
3206
+ startedAt?: string | null;
3207
+ workplaces: Array<{
3208
+ __typename?: 'Workplace';
3209
+ colorHex?: string | null;
3210
+ deactivated: boolean;
3211
+ departmentId?: string | null;
3212
+ dtrUrl?: string | null;
3213
+ id: string;
3214
+ minOperators: number;
3215
+ name: string;
3216
+ reasonGroupId: string;
3217
+ reasonsRecommendationsEnabled: boolean;
3218
+ currentStatusChange?: {
3219
+ __typename?: 'StatusChange';
3220
+ finishedAt?: string | null;
3221
+ id: string;
3222
+ note?: string | null;
3223
+ reasonHasBeenRecommended: boolean;
3224
+ startedAt: string;
3225
+ workplaceId: string;
3226
+ product?: {
3227
+ __typename?: 'Product';
3228
+ assemblyManual?: string | null;
3229
+ id: string;
3230
+ name?: string | null;
3231
+ number?: string | null;
3232
+ } | null;
3233
+ reason: {
3234
+ __typename?: 'Reason';
3235
+ acceptanceMonit: boolean;
3236
+ canBeRecommended: boolean;
3237
+ hasNote: boolean;
3238
+ id: string;
3239
+ isNoteRequired: boolean;
3240
+ leaf: boolean;
3241
+ name: string;
3242
+ parentId?: string | null;
3243
+ position: number;
3244
+ reasonGroupId: string;
3245
+ statusColor: AndonLightColor;
3246
+ temporary: boolean;
3247
+ };
3248
+ } | null;
3249
+ }>;
3250
+ };
3251
+ product?: {
3252
+ __typename?: 'Product';
3253
+ assemblyManual?: string | null;
3254
+ id: string;
3255
+ name?: string | null;
3256
+ number?: string | null;
3257
+ } | null;
3258
+ }>;
3259
+ } | null;
3260
+ } | null;
3261
+ };
3262
+ shift: {
3263
+ __typename?: 'Shift';
3264
+ finishedAt: string;
3265
+ id: string;
3266
+ name: string;
3267
+ startedAt: string;
3268
+ };
3269
+ author: {
3270
+ __typename?: 'User';
3271
+ id: string;
3272
+ login: string;
3273
+ name: string;
3274
+ };
3275
+ }>;
3276
+ };
3080
3277
  export type CreateDashboardMutationVariables = Exact<{
3081
3278
  gridLayout?: InputMaybe<Scalars['String']['input']>;
3082
3279
  id: Scalars['ID']['input'];
@@ -3138,6 +3335,7 @@ export type CreateOrderMutation = {
3138
3335
  startedAt?: string | null;
3139
3336
  workplaces: Array<{
3140
3337
  __typename?: 'Workplace';
3338
+ colorHex?: string | null;
3141
3339
  deactivated: boolean;
3142
3340
  departmentId?: string | null;
3143
3341
  dtrUrl?: string | null;
@@ -3230,6 +3428,137 @@ export type CreateProductMutation = {
3230
3428
  } | null;
3231
3429
  };
3232
3430
  };
3431
+ export type CreateStaffingPlanMutationVariables = Exact<{
3432
+ input: StaffingPlanInput;
3433
+ }>;
3434
+ export type CreateStaffingPlanMutation = {
3435
+ __typename?: 'Mutation';
3436
+ createStaffingPlan: {
3437
+ __typename?: 'StaffingPlan';
3438
+ id: string;
3439
+ date: any;
3440
+ recommendedOperators: number;
3441
+ createdAt: any;
3442
+ updatedAt: any;
3443
+ workplace: {
3444
+ __typename?: 'Workplace';
3445
+ colorHex?: string | null;
3446
+ deactivated: boolean;
3447
+ departmentId?: string | null;
3448
+ dtrUrl?: string | null;
3449
+ id: string;
3450
+ minOperators: number;
3451
+ name: string;
3452
+ reasonGroupId: string;
3453
+ reasonsRecommendationsEnabled: boolean;
3454
+ currentStatusChange?: {
3455
+ __typename?: 'StatusChange';
3456
+ finishedAt?: string | null;
3457
+ id: string;
3458
+ note?: string | null;
3459
+ reasonHasBeenRecommended: boolean;
3460
+ startedAt: string;
3461
+ workplaceId: string;
3462
+ author: {
3463
+ __typename?: 'User';
3464
+ id: string;
3465
+ login: string;
3466
+ name: string;
3467
+ };
3468
+ order?: {
3469
+ __typename?: 'Order';
3470
+ executedCount: number;
3471
+ finishedAt?: string | null;
3472
+ id: string;
3473
+ note?: string | null;
3474
+ number: string;
3475
+ plannedCount: number;
3476
+ position?: number | null;
3477
+ startedAt?: string | null;
3478
+ items: Array<{
3479
+ __typename?: 'Item';
3480
+ count: number;
3481
+ id: string;
3482
+ order: {
3483
+ __typename?: 'Order';
3484
+ executedCount: number;
3485
+ finishedAt?: string | null;
3486
+ id: string;
3487
+ note?: string | null;
3488
+ number: string;
3489
+ plannedCount: number;
3490
+ position?: number | null;
3491
+ startedAt?: string | null;
3492
+ workplaces: Array<{
3493
+ __typename?: 'Workplace';
3494
+ colorHex?: string | null;
3495
+ deactivated: boolean;
3496
+ departmentId?: string | null;
3497
+ dtrUrl?: string | null;
3498
+ id: string;
3499
+ minOperators: number;
3500
+ name: string;
3501
+ reasonGroupId: string;
3502
+ reasonsRecommendationsEnabled: boolean;
3503
+ currentStatusChange?: {
3504
+ __typename?: 'StatusChange';
3505
+ finishedAt?: string | null;
3506
+ id: string;
3507
+ note?: string | null;
3508
+ reasonHasBeenRecommended: boolean;
3509
+ startedAt: string;
3510
+ workplaceId: string;
3511
+ product?: {
3512
+ __typename?: 'Product';
3513
+ assemblyManual?: string | null;
3514
+ id: string;
3515
+ name?: string | null;
3516
+ number?: string | null;
3517
+ } | null;
3518
+ reason: {
3519
+ __typename?: 'Reason';
3520
+ acceptanceMonit: boolean;
3521
+ canBeRecommended: boolean;
3522
+ hasNote: boolean;
3523
+ id: string;
3524
+ isNoteRequired: boolean;
3525
+ leaf: boolean;
3526
+ name: string;
3527
+ parentId?: string | null;
3528
+ position: number;
3529
+ reasonGroupId: string;
3530
+ statusColor: AndonLightColor;
3531
+ temporary: boolean;
3532
+ };
3533
+ } | null;
3534
+ }>;
3535
+ };
3536
+ product?: {
3537
+ __typename?: 'Product';
3538
+ assemblyManual?: string | null;
3539
+ id: string;
3540
+ name?: string | null;
3541
+ number?: string | null;
3542
+ } | null;
3543
+ }>;
3544
+ } | null;
3545
+ } | null;
3546
+ };
3547
+ shift: {
3548
+ __typename?: 'Shift';
3549
+ finishedAt: string;
3550
+ id: string;
3551
+ name: string;
3552
+ startedAt: string;
3553
+ };
3554
+ author: {
3555
+ __typename?: 'User';
3556
+ id: string;
3557
+ login: string;
3558
+ name: string;
3559
+ };
3560
+ };
3561
+ };
3233
3562
  export type CreateStatusChangeMutationVariables = Exact<{
3234
3563
  id: Scalars['ID']['input'];
3235
3564
  note?: InputMaybe<Scalars['String']['input']>;
@@ -3288,6 +3617,7 @@ export type CreateStatusChangeMutation = {
3288
3617
  startedAt?: string | null;
3289
3618
  workplaces: Array<{
3290
3619
  __typename?: 'Workplace';
3620
+ colorHex?: string | null;
3291
3621
  deactivated: boolean;
3292
3622
  departmentId?: string | null;
3293
3623
  dtrUrl?: string | null;
@@ -3487,6 +3817,7 @@ export type PauseOrderExecutionMutation = {
3487
3817
  startedAt?: string | null;
3488
3818
  workplaces: Array<{
3489
3819
  __typename?: 'Workplace';
3820
+ colorHex?: string | null;
3490
3821
  deactivated: boolean;
3491
3822
  departmentId?: string | null;
3492
3823
  dtrUrl?: string | null;
@@ -3724,6 +4055,7 @@ export type StartOrderExecutionMutation = {
3724
4055
  startedAt?: string | null;
3725
4056
  workplaces: Array<{
3726
4057
  __typename?: 'Workplace';
4058
+ colorHex?: string | null;
3727
4059
  deactivated: boolean;
3728
4060
  departmentId?: string | null;
3729
4061
  dtrUrl?: string | null;
@@ -3872,6 +4204,7 @@ export type StopOrderExecutionMutation = {
3872
4204
  startedAt?: string | null;
3873
4205
  workplaces: Array<{
3874
4206
  __typename?: 'Workplace';
4207
+ colorHex?: string | null;
3875
4208
  deactivated: boolean;
3876
4209
  departmentId?: string | null;
3877
4210
  dtrUrl?: string | null;
@@ -4055,6 +4388,7 @@ export type UpdateOrderMutation = {
4055
4388
  startedAt?: string | null;
4056
4389
  workplaces: Array<{
4057
4390
  __typename?: 'Workplace';
4391
+ colorHex?: string | null;
4058
4392
  deactivated: boolean;
4059
4393
  departmentId?: string | null;
4060
4394
  dtrUrl?: string | null;
@@ -4176,6 +4510,7 @@ export type UpdateOrderExecutionMutation = {
4176
4510
  startedAt?: string | null;
4177
4511
  workplaces: Array<{
4178
4512
  __typename?: 'Workplace';
4513
+ colorHex?: string | null;
4179
4514
  deactivated: boolean;
4180
4515
  departmentId?: string | null;
4181
4516
  dtrUrl?: string | null;
@@ -4272,10 +4607,142 @@ export type UpdateOrderExecutionMutation = {
4272
4607
  } | null;
4273
4608
  };
4274
4609
  };
4275
- export type UpdateStatusChangeMutationVariables = Exact<{
4276
- input: UpdateStatusChangeInput;
4610
+ export type UpdateStaffingPlanMutationVariables = Exact<{
4611
+ id: Scalars['ID']['input'];
4612
+ recommendedOperators: Scalars['Int']['input'];
4277
4613
  }>;
4278
- export type UpdateStatusChangeMutation = {
4614
+ export type UpdateStaffingPlanMutation = {
4615
+ __typename?: 'Mutation';
4616
+ updateStaffingPlan: {
4617
+ __typename?: 'StaffingPlan';
4618
+ id: string;
4619
+ date: any;
4620
+ recommendedOperators: number;
4621
+ createdAt: any;
4622
+ updatedAt: any;
4623
+ workplace: {
4624
+ __typename?: 'Workplace';
4625
+ colorHex?: string | null;
4626
+ deactivated: boolean;
4627
+ departmentId?: string | null;
4628
+ dtrUrl?: string | null;
4629
+ id: string;
4630
+ minOperators: number;
4631
+ name: string;
4632
+ reasonGroupId: string;
4633
+ reasonsRecommendationsEnabled: boolean;
4634
+ currentStatusChange?: {
4635
+ __typename?: 'StatusChange';
4636
+ finishedAt?: string | null;
4637
+ id: string;
4638
+ note?: string | null;
4639
+ reasonHasBeenRecommended: boolean;
4640
+ startedAt: string;
4641
+ workplaceId: string;
4642
+ author: {
4643
+ __typename?: 'User';
4644
+ id: string;
4645
+ login: string;
4646
+ name: string;
4647
+ };
4648
+ order?: {
4649
+ __typename?: 'Order';
4650
+ executedCount: number;
4651
+ finishedAt?: string | null;
4652
+ id: string;
4653
+ note?: string | null;
4654
+ number: string;
4655
+ plannedCount: number;
4656
+ position?: number | null;
4657
+ startedAt?: string | null;
4658
+ items: Array<{
4659
+ __typename?: 'Item';
4660
+ count: number;
4661
+ id: string;
4662
+ order: {
4663
+ __typename?: 'Order';
4664
+ executedCount: number;
4665
+ finishedAt?: string | null;
4666
+ id: string;
4667
+ note?: string | null;
4668
+ number: string;
4669
+ plannedCount: number;
4670
+ position?: number | null;
4671
+ startedAt?: string | null;
4672
+ workplaces: Array<{
4673
+ __typename?: 'Workplace';
4674
+ colorHex?: string | null;
4675
+ deactivated: boolean;
4676
+ departmentId?: string | null;
4677
+ dtrUrl?: string | null;
4678
+ id: string;
4679
+ minOperators: number;
4680
+ name: string;
4681
+ reasonGroupId: string;
4682
+ reasonsRecommendationsEnabled: boolean;
4683
+ currentStatusChange?: {
4684
+ __typename?: 'StatusChange';
4685
+ finishedAt?: string | null;
4686
+ id: string;
4687
+ note?: string | null;
4688
+ reasonHasBeenRecommended: boolean;
4689
+ startedAt: string;
4690
+ workplaceId: string;
4691
+ product?: {
4692
+ __typename?: 'Product';
4693
+ assemblyManual?: string | null;
4694
+ id: string;
4695
+ name?: string | null;
4696
+ number?: string | null;
4697
+ } | null;
4698
+ reason: {
4699
+ __typename?: 'Reason';
4700
+ acceptanceMonit: boolean;
4701
+ canBeRecommended: boolean;
4702
+ hasNote: boolean;
4703
+ id: string;
4704
+ isNoteRequired: boolean;
4705
+ leaf: boolean;
4706
+ name: string;
4707
+ parentId?: string | null;
4708
+ position: number;
4709
+ reasonGroupId: string;
4710
+ statusColor: AndonLightColor;
4711
+ temporary: boolean;
4712
+ };
4713
+ } | null;
4714
+ }>;
4715
+ };
4716
+ product?: {
4717
+ __typename?: 'Product';
4718
+ assemblyManual?: string | null;
4719
+ id: string;
4720
+ name?: string | null;
4721
+ number?: string | null;
4722
+ } | null;
4723
+ }>;
4724
+ } | null;
4725
+ } | null;
4726
+ };
4727
+ shift: {
4728
+ __typename?: 'Shift';
4729
+ finishedAt: string;
4730
+ id: string;
4731
+ name: string;
4732
+ startedAt: string;
4733
+ };
4734
+ author: {
4735
+ __typename?: 'User';
4736
+ id: string;
4737
+ login: string;
4738
+ name: string;
4739
+ };
4740
+ };
4741
+ };
4742
+ export type UpdateStatusChangeMutationVariables = Exact<{
4743
+ input: UpdateStatusChangeInput;
4744
+ }>;
4745
+ export type UpdateStatusChangeMutation = {
4279
4746
  __typename?: 'Mutation';
4280
4747
  updateStatusChange: {
4281
4748
  __typename?: 'UpdateStatusChangePayload';
@@ -4324,6 +4791,7 @@ export type UpdateStatusChangeMutation = {
4324
4791
  startedAt?: string | null;
4325
4792
  workplaces: Array<{
4326
4793
  __typename?: 'Workplace';
4794
+ colorHex?: string | null;
4327
4795
  deactivated: boolean;
4328
4796
  departmentId?: string | null;
4329
4797
  dtrUrl?: string | null;
@@ -4485,6 +4953,7 @@ export type UpdateWorkOrderMutation = {
4485
4953
  } | null;
4486
4954
  workplaces: Array<{
4487
4955
  __typename?: 'Workplace';
4956
+ colorHex?: string | null;
4488
4957
  deactivated: boolean;
4489
4958
  departmentId?: string | null;
4490
4959
  dtrUrl?: string | null;
@@ -4533,6 +5002,7 @@ export type UpdateWorkOrderMutation = {
4533
5002
  startedAt?: string | null;
4534
5003
  workplaces: Array<{
4535
5004
  __typename?: 'Workplace';
5005
+ colorHex?: string | null;
4536
5006
  deactivated: boolean;
4537
5007
  departmentId?: string | null;
4538
5008
  dtrUrl?: string | null;
@@ -4579,6 +5049,132 @@ export type UpdateWorkOrderMutation = {
4579
5049
  } | null;
4580
5050
  };
4581
5051
  };
5052
+ export type ActualStaffingCountsQueryVariables = Exact<{
5053
+ workplaceIds?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
5054
+ date: Scalars['ISO8601Date']['input'];
5055
+ shiftIds?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
5056
+ }>;
5057
+ export type ActualStaffingCountsQuery = {
5058
+ __typename?: 'Query';
5059
+ actualStaffingCounts: Array<{
5060
+ __typename?: 'ActualStaffingCount';
5061
+ date: any;
5062
+ actualOperators: number;
5063
+ plannedOperators?: number | null;
5064
+ hasDeviation: boolean;
5065
+ workplace: {
5066
+ __typename?: 'Workplace';
5067
+ colorHex?: string | null;
5068
+ deactivated: boolean;
5069
+ departmentId?: string | null;
5070
+ dtrUrl?: string | null;
5071
+ id: string;
5072
+ minOperators: number;
5073
+ name: string;
5074
+ reasonGroupId: string;
5075
+ reasonsRecommendationsEnabled: boolean;
5076
+ currentStatusChange?: {
5077
+ __typename?: 'StatusChange';
5078
+ finishedAt?: string | null;
5079
+ id: string;
5080
+ note?: string | null;
5081
+ reasonHasBeenRecommended: boolean;
5082
+ startedAt: string;
5083
+ workplaceId: string;
5084
+ author: {
5085
+ __typename?: 'User';
5086
+ id: string;
5087
+ login: string;
5088
+ name: string;
5089
+ };
5090
+ order?: {
5091
+ __typename?: 'Order';
5092
+ executedCount: number;
5093
+ finishedAt?: string | null;
5094
+ id: string;
5095
+ note?: string | null;
5096
+ number: string;
5097
+ plannedCount: number;
5098
+ position?: number | null;
5099
+ startedAt?: string | null;
5100
+ items: Array<{
5101
+ __typename?: 'Item';
5102
+ count: number;
5103
+ id: string;
5104
+ order: {
5105
+ __typename?: 'Order';
5106
+ executedCount: number;
5107
+ finishedAt?: string | null;
5108
+ id: string;
5109
+ note?: string | null;
5110
+ number: string;
5111
+ plannedCount: number;
5112
+ position?: number | null;
5113
+ startedAt?: string | null;
5114
+ workplaces: Array<{
5115
+ __typename?: 'Workplace';
5116
+ colorHex?: string | null;
5117
+ deactivated: boolean;
5118
+ departmentId?: string | null;
5119
+ dtrUrl?: string | null;
5120
+ id: string;
5121
+ minOperators: number;
5122
+ name: string;
5123
+ reasonGroupId: string;
5124
+ reasonsRecommendationsEnabled: boolean;
5125
+ currentStatusChange?: {
5126
+ __typename?: 'StatusChange';
5127
+ finishedAt?: string | null;
5128
+ id: string;
5129
+ note?: string | null;
5130
+ reasonHasBeenRecommended: boolean;
5131
+ startedAt: string;
5132
+ workplaceId: string;
5133
+ product?: {
5134
+ __typename?: 'Product';
5135
+ assemblyManual?: string | null;
5136
+ id: string;
5137
+ name?: string | null;
5138
+ number?: string | null;
5139
+ } | null;
5140
+ reason: {
5141
+ __typename?: 'Reason';
5142
+ acceptanceMonit: boolean;
5143
+ canBeRecommended: boolean;
5144
+ hasNote: boolean;
5145
+ id: string;
5146
+ isNoteRequired: boolean;
5147
+ leaf: boolean;
5148
+ name: string;
5149
+ parentId?: string | null;
5150
+ position: number;
5151
+ reasonGroupId: string;
5152
+ statusColor: AndonLightColor;
5153
+ temporary: boolean;
5154
+ };
5155
+ } | null;
5156
+ }>;
5157
+ };
5158
+ product?: {
5159
+ __typename?: 'Product';
5160
+ assemblyManual?: string | null;
5161
+ id: string;
5162
+ name?: string | null;
5163
+ number?: string | null;
5164
+ } | null;
5165
+ }>;
5166
+ } | null;
5167
+ } | null;
5168
+ };
5169
+ shift: {
5170
+ __typename?: 'Shift';
5171
+ finishedAt: string;
5172
+ id: string;
5173
+ name: string;
5174
+ startedAt: string;
5175
+ };
5176
+ }>;
5177
+ };
4582
5178
  export type ApplicationInfoQueryVariables = Exact<{
4583
5179
  [key: string]: never;
4584
5180
  }>;
@@ -4831,6 +5427,7 @@ export type OrdersQuery = {
4831
5427
  }>;
4832
5428
  workplaces: Array<{
4833
5429
  __typename?: 'Workplace';
5430
+ colorHex?: string | null;
4834
5431
  deactivated: boolean;
4835
5432
  departmentId?: string | null;
4836
5433
  dtrUrl?: string | null;
@@ -4892,6 +5489,7 @@ export type OrdersQuery = {
4892
5489
  }>;
4893
5490
  workplaces: Array<{
4894
5491
  __typename?: 'Workplace';
5492
+ colorHex?: string | null;
4895
5493
  deactivated: boolean;
4896
5494
  departmentId?: string | null;
4897
5495
  dtrUrl?: string | null;
@@ -4947,6 +5545,7 @@ export type OrdersExecutionsQuery = {
4947
5545
  startedAt?: string | null;
4948
5546
  workplaces: Array<{
4949
5547
  __typename?: 'Workplace';
5548
+ colorHex?: string | null;
4950
5549
  deactivated: boolean;
4951
5550
  departmentId?: string | null;
4952
5551
  dtrUrl?: string | null;
@@ -5114,6 +5713,140 @@ export type ShiftsQuery = {
5114
5713
  startedAt: string;
5115
5714
  }>;
5116
5715
  };
5716
+ export type StaffingPlansQueryVariables = Exact<{
5717
+ workplaceIds?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
5718
+ dateFrom: Scalars['ISO8601Date']['input'];
5719
+ dateTo: Scalars['ISO8601Date']['input'];
5720
+ shiftIds?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
5721
+ }>;
5722
+ export type StaffingPlansQuery = {
5723
+ __typename?: 'Query';
5724
+ staffingPlans: Array<{
5725
+ __typename?: 'StaffingPlan';
5726
+ id: string;
5727
+ date: any;
5728
+ recommendedOperators: number;
5729
+ createdAt: any;
5730
+ updatedAt: any;
5731
+ workplace: {
5732
+ __typename?: 'Workplace';
5733
+ colorHex?: string | null;
5734
+ deactivated: boolean;
5735
+ departmentId?: string | null;
5736
+ dtrUrl?: string | null;
5737
+ id: string;
5738
+ minOperators: number;
5739
+ name: string;
5740
+ reasonGroupId: string;
5741
+ reasonsRecommendationsEnabled: boolean;
5742
+ currentStatusChange?: {
5743
+ __typename?: 'StatusChange';
5744
+ finishedAt?: string | null;
5745
+ id: string;
5746
+ note?: string | null;
5747
+ reasonHasBeenRecommended: boolean;
5748
+ startedAt: string;
5749
+ workplaceId: string;
5750
+ author: {
5751
+ __typename?: 'User';
5752
+ id: string;
5753
+ login: string;
5754
+ name: string;
5755
+ };
5756
+ order?: {
5757
+ __typename?: 'Order';
5758
+ executedCount: number;
5759
+ finishedAt?: string | null;
5760
+ id: string;
5761
+ note?: string | null;
5762
+ number: string;
5763
+ plannedCount: number;
5764
+ position?: number | null;
5765
+ startedAt?: string | null;
5766
+ items: Array<{
5767
+ __typename?: 'Item';
5768
+ count: number;
5769
+ id: string;
5770
+ order: {
5771
+ __typename?: 'Order';
5772
+ executedCount: number;
5773
+ finishedAt?: string | null;
5774
+ id: string;
5775
+ note?: string | null;
5776
+ number: string;
5777
+ plannedCount: number;
5778
+ position?: number | null;
5779
+ startedAt?: string | null;
5780
+ workplaces: Array<{
5781
+ __typename?: 'Workplace';
5782
+ colorHex?: string | null;
5783
+ deactivated: boolean;
5784
+ departmentId?: string | null;
5785
+ dtrUrl?: string | null;
5786
+ id: string;
5787
+ minOperators: number;
5788
+ name: string;
5789
+ reasonGroupId: string;
5790
+ reasonsRecommendationsEnabled: boolean;
5791
+ currentStatusChange?: {
5792
+ __typename?: 'StatusChange';
5793
+ finishedAt?: string | null;
5794
+ id: string;
5795
+ note?: string | null;
5796
+ reasonHasBeenRecommended: boolean;
5797
+ startedAt: string;
5798
+ workplaceId: string;
5799
+ product?: {
5800
+ __typename?: 'Product';
5801
+ assemblyManual?: string | null;
5802
+ id: string;
5803
+ name?: string | null;
5804
+ number?: string | null;
5805
+ } | null;
5806
+ reason: {
5807
+ __typename?: 'Reason';
5808
+ acceptanceMonit: boolean;
5809
+ canBeRecommended: boolean;
5810
+ hasNote: boolean;
5811
+ id: string;
5812
+ isNoteRequired: boolean;
5813
+ leaf: boolean;
5814
+ name: string;
5815
+ parentId?: string | null;
5816
+ position: number;
5817
+ reasonGroupId: string;
5818
+ statusColor: AndonLightColor;
5819
+ temporary: boolean;
5820
+ };
5821
+ } | null;
5822
+ }>;
5823
+ };
5824
+ product?: {
5825
+ __typename?: 'Product';
5826
+ assemblyManual?: string | null;
5827
+ id: string;
5828
+ name?: string | null;
5829
+ number?: string | null;
5830
+ } | null;
5831
+ }>;
5832
+ } | null;
5833
+ } | null;
5834
+ };
5835
+ shift: {
5836
+ __typename?: 'Shift';
5837
+ finishedAt: string;
5838
+ id: string;
5839
+ name: string;
5840
+ startedAt: string;
5841
+ };
5842
+ author: {
5843
+ __typename?: 'User';
5844
+ id: string;
5845
+ login: string;
5846
+ name: string;
5847
+ };
5848
+ }>;
5849
+ };
5117
5850
  export type StandardRatesQueryVariables = Exact<{
5118
5851
  orderExecutionId: Scalars['ID']['input'];
5119
5852
  }>;
@@ -5183,6 +5916,7 @@ export type StatusChangesQuery = {
5183
5916
  startedAt?: string | null;
5184
5917
  workplaces: Array<{
5185
5918
  __typename?: 'Workplace';
5919
+ colorHex?: string | null;
5186
5920
  deactivated: boolean;
5187
5921
  departmentId?: string | null;
5188
5922
  dtrUrl?: string | null;
@@ -5374,6 +6108,7 @@ export type WorkOrdersQuery = {
5374
6108
  } | null;
5375
6109
  workplaces: Array<{
5376
6110
  __typename?: 'Workplace';
6111
+ colorHex?: string | null;
5377
6112
  deactivated: boolean;
5378
6113
  departmentId?: string | null;
5379
6114
  dtrUrl?: string | null;
@@ -5422,6 +6157,7 @@ export type WorkOrdersQuery = {
5422
6157
  startedAt?: string | null;
5423
6158
  workplaces: Array<{
5424
6159
  __typename?: 'Workplace';
6160
+ colorHex?: string | null;
5425
6161
  deactivated: boolean;
5426
6162
  departmentId?: string | null;
5427
6163
  dtrUrl?: string | null;
@@ -5474,6 +6210,7 @@ export type WorkplacesQuery = {
5474
6210
  __typename?: 'Query';
5475
6211
  workplaces: Array<{
5476
6212
  __typename?: 'Workplace';
6213
+ colorHex?: string | null;
5477
6214
  deactivated: boolean;
5478
6215
  departmentId?: string | null;
5479
6216
  dtrUrl?: string | null;
@@ -5522,6 +6259,7 @@ export type WorkplacesQuery = {
5522
6259
  startedAt?: string | null;
5523
6260
  workplaces: Array<{
5524
6261
  __typename?: 'Workplace';
6262
+ colorHex?: string | null;
5525
6263
  deactivated: boolean;
5526
6264
  departmentId?: string | null;
5527
6265
  dtrUrl?: string | null;
@@ -5852,9 +6590,11 @@ export type WorkplaceEventSubscription = {
5852
6590
  } | null;
5853
6591
  };
5854
6592
  };
6593
+ export declare const BulkUpdateStaffingPlansDocument: import("graphql/language/ast").DocumentNode;
5855
6594
  export declare const CreateDashboardDocument: import("graphql/language/ast").DocumentNode;
5856
6595
  export declare const CreateOrderDocument: import("graphql/language/ast").DocumentNode;
5857
6596
  export declare const CreateProductDocument: import("graphql/language/ast").DocumentNode;
6597
+ export declare const CreateStaffingPlanDocument: import("graphql/language/ast").DocumentNode;
5858
6598
  export declare const CreateStatusChangeDocument: import("graphql/language/ast").DocumentNode;
5859
6599
  export declare const CreateUserPresenceDocument: import("graphql/language/ast").DocumentNode;
5860
6600
  export declare const CreateWidgetDocument: import("graphql/language/ast").DocumentNode;
@@ -5870,9 +6610,11 @@ export declare const UpdateDashboardDocument: import("graphql/language/ast").Doc
5870
6610
  export declare const UpdateNotificationDocument: import("graphql/language/ast").DocumentNode;
5871
6611
  export declare const UpdateOrderDocument: import("graphql/language/ast").DocumentNode;
5872
6612
  export declare const UpdateOrderExecutionDocument: import("graphql/language/ast").DocumentNode;
6613
+ export declare const UpdateStaffingPlanDocument: import("graphql/language/ast").DocumentNode;
5873
6614
  export declare const UpdateStatusChangeDocument: import("graphql/language/ast").DocumentNode;
5874
6615
  export declare const UpdateWidgetDocument: import("graphql/language/ast").DocumentNode;
5875
6616
  export declare const UpdateWorkOrderDocument: import("graphql/language/ast").DocumentNode;
6617
+ export declare const ActualStaffingCountsDocument: import("graphql/language/ast").DocumentNode;
5876
6618
  export declare const ApplicationInfoDocument: import("graphql/language/ast").DocumentNode;
5877
6619
  export declare const CompanyConfigDocument: import("graphql/language/ast").DocumentNode;
5878
6620
  export declare const CounterDirectoriesDocument: import("graphql/language/ast").DocumentNode;
@@ -5890,6 +6632,7 @@ export declare const ProductsDocument: import("graphql/language/ast").DocumentNo
5890
6632
  export declare const ReasonsDocument: import("graphql/language/ast").DocumentNode;
5891
6633
  export declare const ReasonsRecommendationDocument: import("graphql/language/ast").DocumentNode;
5892
6634
  export declare const ShiftsDocument: import("graphql/language/ast").DocumentNode;
6635
+ export declare const StaffingPlansDocument: import("graphql/language/ast").DocumentNode;
5893
6636
  export declare const StandardRatesDocument: import("graphql/language/ast").DocumentNode;
5894
6637
  export declare const StatusChangeTransitionPermissionsDocument: import("graphql/language/ast").DocumentNode;
5895
6638
  export declare const StatusChangesDocument: import("graphql/language/ast").DocumentNode;
@@ -5905,9 +6648,11 @@ export declare const ListWorkplacesDocument: import("graphql/language/ast").Docu
5905
6648
  export declare const WorkplaceEventDocument: import("graphql/language/ast").DocumentNode;
5906
6649
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
5907
6650
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
6651
+ bulkUpdateStaffingPlans(variables: BulkUpdateStaffingPlansMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<BulkUpdateStaffingPlansMutation>;
5908
6652
  createDashboard(variables: CreateDashboardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateDashboardMutation>;
5909
6653
  createOrder(variables: CreateOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateOrderMutation>;
5910
6654
  createProduct(variables: CreateProductMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateProductMutation>;
6655
+ createStaffingPlan(variables: CreateStaffingPlanMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateStaffingPlanMutation>;
5911
6656
  createStatusChange(variables: CreateStatusChangeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateStatusChangeMutation>;
5912
6657
  createUserPresence(variables: CreateUserPresenceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateUserPresenceMutation>;
5913
6658
  createWidget(variables: CreateWidgetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateWidgetMutation>;
@@ -5923,9 +6668,11 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
5923
6668
  updateNotification(variables: UpdateNotificationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateNotificationMutation>;
5924
6669
  updateOrder(variables: UpdateOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateOrderMutation>;
5925
6670
  updateOrderExecution(variables: UpdateOrderExecutionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateOrderExecutionMutation>;
6671
+ updateStaffingPlan(variables: UpdateStaffingPlanMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateStaffingPlanMutation>;
5926
6672
  updateStatusChange(variables: UpdateStatusChangeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateStatusChangeMutation>;
5927
6673
  updateWidget(variables: UpdateWidgetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateWidgetMutation>;
5928
6674
  updateWorkOrder(variables: UpdateWorkOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateWorkOrderMutation>;
6675
+ actualStaffingCounts(variables: ActualStaffingCountsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ActualStaffingCountsQuery>;
5929
6676
  applicationInfo(variables?: ApplicationInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ApplicationInfoQuery>;
5930
6677
  companyConfig(variables?: CompanyConfigQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CompanyConfigQuery>;
5931
6678
  counterDirectories(variables?: CounterDirectoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CounterDirectoriesQuery>;
@@ -5943,6 +6690,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
5943
6690
  reasons(variables?: ReasonsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ReasonsQuery>;
5944
6691
  reasonsRecommendation(variables: ReasonsRecommendationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ReasonsRecommendationQuery>;
5945
6692
  shifts(variables?: ShiftsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ShiftsQuery>;
6693
+ staffingPlans(variables: StaffingPlansQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StaffingPlansQuery>;
5946
6694
  standardRates(variables: StandardRatesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StandardRatesQuery>;
5947
6695
  statusChangeTransitionPermissions(variables?: StatusChangeTransitionPermissionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StatusChangeTransitionPermissionsQuery>;
5948
6696
  statusChanges(variables?: StatusChangesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StatusChangesQuery>;