@factorialco/api-client 4.0.0-beta.2027010121 → 4.0.0-beta.2027010122

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.
@@ -1023,6 +1023,14 @@ export type AttendanceShift = {
1023
1023
  * Identifier for the location
1024
1024
  */
1025
1025
  workplace_id?: string;
1026
+ /**
1027
+ * Identifier of the work area where the employee clocked in
1028
+ */
1029
+ clock_in_work_area_id?: string;
1030
+ /**
1031
+ * Identifier of the work area where the employee clocked out
1032
+ */
1033
+ clock_out_work_area_id?: string;
1026
1034
  /**
1027
1035
  * Identifier for the break configuration
1028
1036
  */
@@ -5130,6 +5138,58 @@ export type FinanceTaxType = {
5130
5138
  */
5131
5139
  updated_at: string;
5132
5140
  };
5141
+ export type GoalsGoal = {
5142
+ id: string;
5143
+ title: string;
5144
+ author_id: string;
5145
+ start_on: string;
5146
+ end_on: string;
5147
+ /**
5148
+ * how often the goal's attainment is measured (yearly, half_yearly, quarterly or monthly)
5149
+ */
5150
+ frequency?: 'yearly' | 'half_yearly' | 'quarterly' | 'monthly';
5151
+ /**
5152
+ * how the goal's progress is tracked, either by hand (manual) or derived from its sub-goals (sub_goals)
5153
+ */
5154
+ tracking: 'manual' | 'sub_goals';
5155
+ /**
5156
+ * what the goal measures (currency, numeric, percentage, qualitative or sub_goal); for a goal tracked by sub-goals, the type its sub-goals share
5157
+ */
5158
+ measure_type?: 'currency' | 'numeric' | 'percentage' | 'qualitative' | 'sub_goal';
5159
+ /**
5160
+ * how far the goal is towards its target, from 0 upwards (100 means achieved)
5161
+ */
5162
+ progress_percentage: number;
5163
+ /**
5164
+ * where the goal stands today, worked out from its progress and end date (not_started, on_track, achieved or missed)
5165
+ */
5166
+ status: 'not_started' | 'on_track' | 'achieved' | 'missed';
5167
+ /**
5168
+ * id of the goal this goal is a sub-goal of. Null for top-level goals
5169
+ */
5170
+ parent_id?: string;
5171
+ descendant_ids: Array<string>;
5172
+ /**
5173
+ * free text explaining the goal
5174
+ */
5175
+ description?: string;
5176
+ performance_agreement_id?: string;
5177
+ performance_agreement_action_item_uuid?: string;
5178
+ updated_at: string;
5179
+ };
5180
+ export type GoalsTargetPeriod = {
5181
+ id: string;
5182
+ goal_id: string;
5183
+ starts_on: string;
5184
+ ends_on: string;
5185
+ target_value?: number;
5186
+ start_value: number;
5187
+ current_value: number;
5188
+ current_status: 'not_started' | 'on_track' | 'achieved' | 'missed';
5189
+ current_value_id?: string;
5190
+ progress_percentage?: number;
5191
+ derived: boolean;
5192
+ };
5133
5193
  export type HolidaysCompanyHoliday = {
5134
5194
  /**
5135
5195
  * Company holiday id
@@ -15583,11 +15643,19 @@ export type PostApi20270101ResourcesAttendanceShiftsData = {
15583
15643
  /**
15584
15644
  * Source of the shift creation
15585
15645
  */
15586
- source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system' | 'desktop_via_one_assistant' | 'mobile_via_one_assistant' | 'mobile_geolocation_via_one_assistant' | 'one_assistant';
15646
+ source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system' | 'desktop_via_one_assistant' | 'mobile_via_one_assistant' | 'mobile_geolocation_via_one_assistant' | 'whatsapp_via_one_assistant' | 'one_assistant';
15587
15647
  /**
15588
15648
  * Id of the break configuration
15589
15649
  */
15590
15650
  time_settings_break_configuration_id?: string;
15651
+ /**
15652
+ * Id of the work area where the employee clocked in. It must belong to the workplace sent in `workplace_id`
15653
+ */
15654
+ clock_in_work_area_id?: string;
15655
+ /**
15656
+ * Id of the work area where the employee clocked out. It must belong to the workplace sent in `workplace_id`
15657
+ */
15658
+ clock_out_work_area_id?: string;
15591
15659
  /**
15592
15660
  * Id of the location related
15593
15661
  */
@@ -15832,6 +15900,14 @@ export type PutApi20270101ResourcesAttendanceShiftsByIdData = {
15832
15900
  * Id of the break configuration
15833
15901
  */
15834
15902
  time_settings_break_configuration_id?: string;
15903
+ /**
15904
+ * Identifier of the work area where the employee clocked in. It must belong to the shift's workplace
15905
+ */
15906
+ clock_in_work_area_id?: string;
15907
+ /**
15908
+ * Identifier of the work area where the employee clocked out. It must belong to the shift's workplace
15909
+ */
15910
+ clock_out_work_area_id?: string;
15835
15911
  };
15836
15912
  path: {
15837
15913
  /**
@@ -16175,6 +16251,10 @@ export type PostApi20270101ResourcesAttendanceShiftsClockInData = {
16175
16251
  * Location identifier
16176
16252
  */
16177
16253
  workplace_id?: string;
16254
+ /**
16255
+ * Identifier of the work area where the employee clocked in. It must belong to the workplace sent in `workplace_id`
16256
+ */
16257
+ clock_in_work_area_id?: string;
16178
16258
  /**
16179
16259
  * Break configuration identifier
16180
16260
  */
@@ -16276,6 +16356,10 @@ export type PostApi20270101ResourcesAttendanceShiftsClockOutData = {
16276
16356
  * Notes on the shift record
16277
16357
  */
16278
16358
  observations?: string;
16359
+ /**
16360
+ * Identifier of the work area where the employee clocked out. It must belong to the workplace of the open shift
16361
+ */
16362
+ clock_out_work_area_id?: string;
16279
16363
  };
16280
16364
  path?: never;
16281
16365
  query?: never;
@@ -32464,6 +32548,377 @@ export type PutApi20270101ResourcesFinanceTaxTypesByIdResponses = {
32464
32548
  200: FinanceTaxType;
32465
32549
  };
32466
32550
  export type PutApi20270101ResourcesFinanceTaxTypesByIdResponse = PutApi20270101ResourcesFinanceTaxTypesByIdResponses[keyof PutApi20270101ResourcesFinanceTaxTypesByIdResponses];
32551
+ export type GetApi20270101ResourcesGoalsGoalsData = {
32552
+ body?: never;
32553
+ path?: never;
32554
+ query?: {
32555
+ /**
32556
+ * Goal ids
32557
+ */
32558
+ 'ids[]'?: Array<string>;
32559
+ /**
32560
+ * Goals assigned to any of these employees
32561
+ */
32562
+ 'assignee_ids[]'?: Array<string>;
32563
+ /**
32564
+ * Goals assigned to the active direct reports of any of these employees
32565
+ */
32566
+ 'manager_ids[]'?: Array<string>;
32567
+ /**
32568
+ * Goals assigned to active employees two or more levels below any of these employees in the reporting line
32569
+ */
32570
+ 'indirect_manager_ids[]'?: Array<string>;
32571
+ /**
32572
+ * Goals assigned to an employee whose name matches this text
32573
+ */
32574
+ assignee_search?: string;
32575
+ /**
32576
+ * Goals assigned to any of these people groups
32577
+ */
32578
+ 'people_group_ids[]'?: Array<string>;
32579
+ /**
32580
+ * Goals whose audience matches these people group criteria, sent as nested query keys such as people_group_criteria[team_ids][]=1 or people_group_criteria[any_team]=true
32581
+ */
32582
+ people_group_criteria?: {
32583
+ [key: string]: unknown;
32584
+ };
32585
+ /**
32586
+ * When true, only goals assigned to a single employee; when false, only goals assigned to a group
32587
+ */
32588
+ individual?: boolean;
32589
+ /**
32590
+ * When true, only individual goals without a parent goal, ordered by assignee name
32591
+ */
32592
+ individual_top_level?: boolean;
32593
+ /**
32594
+ * Goals linked to any of these performance agreements
32595
+ */
32596
+ 'performance_agreement_ids[]'?: Array<string>;
32597
+ /**
32598
+ * Sub-goals of any of these goals
32599
+ */
32600
+ 'parent_ids[]'?: Array<string>;
32601
+ /**
32602
+ * When true, only goals without a parent goal
32603
+ */
32604
+ only_root?: boolean;
32605
+ /**
32606
+ * Goals that can become the parent of this goal
32607
+ */
32608
+ eligible_parent_for_id?: string;
32609
+ /**
32610
+ * Goals that can become a sub-goal of this goal
32611
+ */
32612
+ eligible_child_for_id?: string;
32613
+ /**
32614
+ * Goals that start on this date
32615
+ */
32616
+ start_on?: string;
32617
+ /**
32618
+ * Goals that end on this date
32619
+ */
32620
+ end_on?: string;
32621
+ /**
32622
+ * Goals whose dates overlap this period
32623
+ */
32624
+ overlaps_period?: {
32625
+ from: string;
32626
+ to: string;
32627
+ };
32628
+ /**
32629
+ * Orders the goals by how close their end date is to this date
32630
+ */
32631
+ ends_closest_to?: string;
32632
+ /**
32633
+ * Goals measured with this frequency (yearly, half_yearly, quarterly or monthly)
32634
+ */
32635
+ frequency?: 'yearly' | 'half_yearly' | 'quarterly' | 'monthly';
32636
+ };
32637
+ url: '/api/2027-01-01/resources/goals/goals';
32638
+ };
32639
+ export type GetApi20270101ResourcesGoalsGoalsErrors = {
32640
+ /**
32641
+ * Bad Request (malformed_request)
32642
+ */
32643
+ 400: ErrorResponse;
32644
+ /**
32645
+ * Unauthorized (unauthorized)
32646
+ */
32647
+ 401: ErrorResponse;
32648
+ /**
32649
+ * Payment Required (payment_required)
32650
+ */
32651
+ 402: ErrorResponse;
32652
+ /**
32653
+ * Forbidden (forbidden)
32654
+ */
32655
+ 403: ErrorResponse;
32656
+ /**
32657
+ * Not Found (missing_resource)
32658
+ */
32659
+ 404: ErrorResponse;
32660
+ /**
32661
+ * Conflict (invalid_state)
32662
+ */
32663
+ 409: ErrorResponse;
32664
+ /**
32665
+ * Gone
32666
+ */
32667
+ 410: ErrorResponse;
32668
+ /**
32669
+ * Unprocessable Entity (default, validation_failed)
32670
+ */
32671
+ 422: ErrorResponse;
32672
+ /**
32673
+ * Precondition Required
32674
+ */
32675
+ 428: ErrorResponse;
32676
+ /**
32677
+ * Internal Server Error
32678
+ */
32679
+ 500: ErrorResponse;
32680
+ /**
32681
+ * Bad Gateway (malformed_resource)
32682
+ */
32683
+ 502: ErrorResponse;
32684
+ /**
32685
+ * Gateway Timeout (service_unreachable)
32686
+ */
32687
+ 504: ErrorResponse;
32688
+ };
32689
+ export type GetApi20270101ResourcesGoalsGoalsError = GetApi20270101ResourcesGoalsGoalsErrors[keyof GetApi20270101ResourcesGoalsGoalsErrors];
32690
+ export type GetApi20270101ResourcesGoalsGoalsResponses = {
32691
+ /**
32692
+ * OK
32693
+ */
32694
+ 200: {
32695
+ data?: Array<GoalsGoal>;
32696
+ meta?: PagedIndexMeta;
32697
+ };
32698
+ };
32699
+ export type GetApi20270101ResourcesGoalsGoalsResponse = GetApi20270101ResourcesGoalsGoalsResponses[keyof GetApi20270101ResourcesGoalsGoalsResponses];
32700
+ export type GetApi20270101ResourcesGoalsGoalsByIdData = {
32701
+ body?: never;
32702
+ path: {
32703
+ /**
32704
+ * Goal ids
32705
+ */
32706
+ id: string;
32707
+ };
32708
+ query?: never;
32709
+ url: '/api/2027-01-01/resources/goals/goals/{id}';
32710
+ };
32711
+ export type GetApi20270101ResourcesGoalsGoalsByIdErrors = {
32712
+ /**
32713
+ * Bad Request (malformed_request)
32714
+ */
32715
+ 400: ErrorResponse;
32716
+ /**
32717
+ * Unauthorized (unauthorized)
32718
+ */
32719
+ 401: ErrorResponse;
32720
+ /**
32721
+ * Payment Required (payment_required)
32722
+ */
32723
+ 402: ErrorResponse;
32724
+ /**
32725
+ * Forbidden (forbidden)
32726
+ */
32727
+ 403: ErrorResponse;
32728
+ /**
32729
+ * Not Found (missing_resource)
32730
+ */
32731
+ 404: ErrorResponse;
32732
+ /**
32733
+ * Conflict (invalid_state)
32734
+ */
32735
+ 409: ErrorResponse;
32736
+ /**
32737
+ * Gone
32738
+ */
32739
+ 410: ErrorResponse;
32740
+ /**
32741
+ * Unprocessable Entity (default, validation_failed)
32742
+ */
32743
+ 422: ErrorResponse;
32744
+ /**
32745
+ * Precondition Required
32746
+ */
32747
+ 428: ErrorResponse;
32748
+ /**
32749
+ * Internal Server Error
32750
+ */
32751
+ 500: ErrorResponse;
32752
+ /**
32753
+ * Bad Gateway (malformed_resource)
32754
+ */
32755
+ 502: ErrorResponse;
32756
+ /**
32757
+ * Gateway Timeout (service_unreachable)
32758
+ */
32759
+ 504: ErrorResponse;
32760
+ };
32761
+ export type GetApi20270101ResourcesGoalsGoalsByIdError = GetApi20270101ResourcesGoalsGoalsByIdErrors[keyof GetApi20270101ResourcesGoalsGoalsByIdErrors];
32762
+ export type GetApi20270101ResourcesGoalsGoalsByIdResponses = {
32763
+ /**
32764
+ * OK
32765
+ */
32766
+ 200: GoalsGoal;
32767
+ };
32768
+ export type GetApi20270101ResourcesGoalsGoalsByIdResponse = GetApi20270101ResourcesGoalsGoalsByIdResponses[keyof GetApi20270101ResourcesGoalsGoalsByIdResponses];
32769
+ export type GetApi20270101ResourcesGoalsTargetPeriodsData = {
32770
+ body?: never;
32771
+ path?: never;
32772
+ query?: {
32773
+ /**
32774
+ * Target period ids
32775
+ */
32776
+ 'ids[]'?: Array<string>;
32777
+ /**
32778
+ * Target periods of any of these goals
32779
+ */
32780
+ 'goal_ids[]'?: Array<string>;
32781
+ /**
32782
+ * Target periods that start on this date
32783
+ */
32784
+ starts_on?: string;
32785
+ /**
32786
+ * Target periods that end on this date
32787
+ */
32788
+ ends_on?: string;
32789
+ };
32790
+ url: '/api/2027-01-01/resources/goals/target_periods';
32791
+ };
32792
+ export type GetApi20270101ResourcesGoalsTargetPeriodsErrors = {
32793
+ /**
32794
+ * Bad Request (malformed_request)
32795
+ */
32796
+ 400: ErrorResponse;
32797
+ /**
32798
+ * Unauthorized (unauthorized)
32799
+ */
32800
+ 401: ErrorResponse;
32801
+ /**
32802
+ * Payment Required (payment_required)
32803
+ */
32804
+ 402: ErrorResponse;
32805
+ /**
32806
+ * Forbidden (forbidden)
32807
+ */
32808
+ 403: ErrorResponse;
32809
+ /**
32810
+ * Not Found (missing_resource)
32811
+ */
32812
+ 404: ErrorResponse;
32813
+ /**
32814
+ * Conflict (invalid_state)
32815
+ */
32816
+ 409: ErrorResponse;
32817
+ /**
32818
+ * Gone
32819
+ */
32820
+ 410: ErrorResponse;
32821
+ /**
32822
+ * Unprocessable Entity (default, validation_failed)
32823
+ */
32824
+ 422: ErrorResponse;
32825
+ /**
32826
+ * Precondition Required
32827
+ */
32828
+ 428: ErrorResponse;
32829
+ /**
32830
+ * Internal Server Error
32831
+ */
32832
+ 500: ErrorResponse;
32833
+ /**
32834
+ * Bad Gateway (malformed_resource)
32835
+ */
32836
+ 502: ErrorResponse;
32837
+ /**
32838
+ * Gateway Timeout (service_unreachable)
32839
+ */
32840
+ 504: ErrorResponse;
32841
+ };
32842
+ export type GetApi20270101ResourcesGoalsTargetPeriodsError = GetApi20270101ResourcesGoalsTargetPeriodsErrors[keyof GetApi20270101ResourcesGoalsTargetPeriodsErrors];
32843
+ export type GetApi20270101ResourcesGoalsTargetPeriodsResponses = {
32844
+ /**
32845
+ * OK
32846
+ */
32847
+ 200: {
32848
+ data?: Array<GoalsTargetPeriod>;
32849
+ meta?: PagedIndexMeta;
32850
+ };
32851
+ };
32852
+ export type GetApi20270101ResourcesGoalsTargetPeriodsResponse = GetApi20270101ResourcesGoalsTargetPeriodsResponses[keyof GetApi20270101ResourcesGoalsTargetPeriodsResponses];
32853
+ export type GetApi20270101ResourcesGoalsTargetPeriodsByIdData = {
32854
+ body?: never;
32855
+ path: {
32856
+ /**
32857
+ * Target period ids
32858
+ */
32859
+ id: string;
32860
+ };
32861
+ query?: never;
32862
+ url: '/api/2027-01-01/resources/goals/target_periods/{id}';
32863
+ };
32864
+ export type GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors = {
32865
+ /**
32866
+ * Bad Request (malformed_request)
32867
+ */
32868
+ 400: ErrorResponse;
32869
+ /**
32870
+ * Unauthorized (unauthorized)
32871
+ */
32872
+ 401: ErrorResponse;
32873
+ /**
32874
+ * Payment Required (payment_required)
32875
+ */
32876
+ 402: ErrorResponse;
32877
+ /**
32878
+ * Forbidden (forbidden)
32879
+ */
32880
+ 403: ErrorResponse;
32881
+ /**
32882
+ * Not Found (missing_resource)
32883
+ */
32884
+ 404: ErrorResponse;
32885
+ /**
32886
+ * Conflict (invalid_state)
32887
+ */
32888
+ 409: ErrorResponse;
32889
+ /**
32890
+ * Gone
32891
+ */
32892
+ 410: ErrorResponse;
32893
+ /**
32894
+ * Unprocessable Entity (default, validation_failed)
32895
+ */
32896
+ 422: ErrorResponse;
32897
+ /**
32898
+ * Precondition Required
32899
+ */
32900
+ 428: ErrorResponse;
32901
+ /**
32902
+ * Internal Server Error
32903
+ */
32904
+ 500: ErrorResponse;
32905
+ /**
32906
+ * Bad Gateway (malformed_resource)
32907
+ */
32908
+ 502: ErrorResponse;
32909
+ /**
32910
+ * Gateway Timeout (service_unreachable)
32911
+ */
32912
+ 504: ErrorResponse;
32913
+ };
32914
+ export type GetApi20270101ResourcesGoalsTargetPeriodsByIdError = GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors[keyof GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors];
32915
+ export type GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses = {
32916
+ /**
32917
+ * OK
32918
+ */
32919
+ 200: GoalsTargetPeriod;
32920
+ };
32921
+ export type GetApi20270101ResourcesGoalsTargetPeriodsByIdResponse = GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses[keyof GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses];
32467
32922
  export type GetApi20270101ResourcesHolidaysCompanyHolidaysData = {
32468
32923
  body?: never;
32469
32924
  path?: never;