@factorialco/api-client 3.0.0-beta.2026100111 → 3.0.0-beta.2026100113

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.
@@ -4478,6 +4478,30 @@ export type IntegrationsSyncableSyncRun = {
4478
4478
  */
4479
4479
  company_id: string;
4480
4480
  };
4481
+ export type ItManagementAssetCategory = {
4482
+ /**
4483
+ * Asset category identifier
4484
+ */
4485
+ id: string;
4486
+ /**
4487
+ * Parent category identifier. NULL for top-level groups.
4488
+ */
4489
+ parent_id?: string;
4490
+ /**
4491
+ * Unique catalog key (e.g. 'it', 'it.laptop')
4492
+ */
4493
+ key: string;
4494
+ /**
4495
+ * Human-readable name
4496
+ */
4497
+ name: string;
4498
+ /**
4499
+ * Display order within its parent
4500
+ */
4501
+ position?: number;
4502
+ created_at: string;
4503
+ updated_at: string;
4504
+ };
4481
4505
  export type ItManagementItAsset = {
4482
4506
  /**
4483
4507
  * IT Asset identifier
@@ -4565,7 +4589,7 @@ export type ItManagementItAssetModel = {
4565
4589
  */
4566
4590
  id: string;
4567
4591
  /**
4568
- * Type name of the IT asset model. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'
4592
+ * Deprecated: legacy IT-only type. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'. Use `subtype`/`asset_category_id` instead, which cover the full catalog (IT and beyond).
4569
4593
  */
4570
4594
  type_name: string;
4571
4595
  /**
@@ -4580,6 +4604,10 @@ export type ItManagementItAssetModel = {
4580
4604
  * Name/model of the IT asset
4581
4605
  */
4582
4606
  name: string;
4607
+ /**
4608
+ * FK to the leaf AssetCategory (Subtype). NULL if not yet categorised.
4609
+ */
4610
+ asset_category_id?: string;
4583
4611
  /**
4584
4612
  * Creation date of the IT asset model
4585
4613
  */
@@ -6516,6 +6544,14 @@ export type ProjectManagementTimeRecord = {
6516
6544
  * Id of the project worker
6517
6545
  */
6518
6546
  project_worker_id: string;
6547
+ /**
6548
+ * Id of the employee the time record belongs to
6549
+ */
6550
+ employee_id: string;
6551
+ /**
6552
+ * Id of the project the time record belongs to
6553
+ */
6554
+ project_id: string;
6519
6555
  /**
6520
6556
  * Id of the attendance shift
6521
6557
  */
@@ -10687,7 +10723,7 @@ export type GetApi20261001ResourcesBookkeepersManagementIncidencesData = {
10687
10723
  */
10688
10724
  'type[]'?: Array<string>;
10689
10725
  /**
10690
- * Field to sort by. It can be any of the following employee_first_name, employee_last_name, type, legal_entity_name, effective_date, status.
10726
+ * Field to sort by. It can be any of the following employee_first_name, employee_last_name, type, legal_entity_name, effective_date, status, created_at.
10691
10727
  */
10692
10728
  sort_by?: string;
10693
10729
  /**
@@ -15892,6 +15928,67 @@ export type PutApi20261001ResourcesIntegrationsSyncableSyncRunsByIdResponses = {
15892
15928
  200: IntegrationsSyncableSyncRun;
15893
15929
  };
15894
15930
  export type PutApi20261001ResourcesIntegrationsSyncableSyncRunsByIdResponse = PutApi20261001ResourcesIntegrationsSyncableSyncRunsByIdResponses[keyof PutApi20261001ResourcesIntegrationsSyncableSyncRunsByIdResponses];
15931
+ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData = {
15932
+ body?: {
15933
+ /**
15934
+ * Identifier of the sync run the reported items belong to
15935
+ */
15936
+ sync_run_id: string;
15937
+ /**
15938
+ * Outcome of each item the external system discovered/processed for this run. Rows are matched by (sync_run_id, external_identifier, syncable_type).
15939
+ */
15940
+ items: Array<unknown>;
15941
+ };
15942
+ path?: never;
15943
+ query?: never;
15944
+ url: '/api/2026-10-01/resources/integrations/syncable_sync_runs/bulk_upsert';
15945
+ };
15946
+ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertResponses = {
15947
+ /**
15948
+ * OK
15949
+ */
15950
+ 200: Array<IntegrationsSyncableSyncRun>;
15951
+ };
15952
+ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertResponse = PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertResponses[keyof PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertResponses];
15953
+ export type GetApi20261001ResourcesItManagementAssetCategoriesData = {
15954
+ body?: never;
15955
+ path?: never;
15956
+ query?: {
15957
+ /**
15958
+ * Asset category identifiers to retrieve
15959
+ */
15960
+ 'ids[]'?: Array<string>;
15961
+ };
15962
+ url: '/api/2026-10-01/resources/it_management/asset_categories';
15963
+ };
15964
+ export type GetApi20261001ResourcesItManagementAssetCategoriesResponses = {
15965
+ /**
15966
+ * OK
15967
+ */
15968
+ 200: {
15969
+ data?: Array<ItManagementAssetCategory>;
15970
+ meta?: PagedIndexMeta;
15971
+ };
15972
+ };
15973
+ export type GetApi20261001ResourcesItManagementAssetCategoriesResponse = GetApi20261001ResourcesItManagementAssetCategoriesResponses[keyof GetApi20261001ResourcesItManagementAssetCategoriesResponses];
15974
+ export type GetApi20261001ResourcesItManagementAssetCategoriesByIdData = {
15975
+ body?: never;
15976
+ path: {
15977
+ /**
15978
+ * Asset category identifiers to retrieve
15979
+ */
15980
+ id: string;
15981
+ };
15982
+ query?: never;
15983
+ url: '/api/2026-10-01/resources/it_management/asset_categories/{id}';
15984
+ };
15985
+ export type GetApi20261001ResourcesItManagementAssetCategoriesByIdResponses = {
15986
+ /**
15987
+ * OK
15988
+ */
15989
+ 200: ItManagementAssetCategory;
15990
+ };
15991
+ export type GetApi20261001ResourcesItManagementAssetCategoriesByIdResponse = GetApi20261001ResourcesItManagementAssetCategoriesByIdResponses[keyof GetApi20261001ResourcesItManagementAssetCategoriesByIdResponses];
15895
15992
  export type GetApi20261001ResourcesItManagementItAssetsData = {
15896
15993
  body?: never;
15897
15994
  path?: never;
@@ -15908,6 +16005,10 @@ export type GetApi20261001ResourcesItManagementItAssetsData = {
15908
16005
  * Type names of IT assets to filter
15909
16006
  */
15910
16007
  'type_names[]'?: Array<string>;
16008
+ /**
16009
+ * Asset category IDs to filter assets by group
16010
+ */
16011
+ 'asset_category_ids[]'?: Array<string>;
15911
16012
  /**
15912
16013
  * Owner (employee) identifiers to filter assets
15913
16014
  */
@@ -16149,9 +16250,13 @@ export type GetApi20261001ResourcesItManagementItAssetModelsResponse = GetApi202
16149
16250
  export type PostApi20261001ResourcesItManagementItAssetModelsData = {
16150
16251
  body?: {
16151
16252
  /**
16152
- * Type name of the IT asset model. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'
16253
+ * Deprecated: legacy IT-only type. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'. Prefer `asset_category_id`, which covers the full catalog (IT and beyond). Ignored when `asset_category_id` is also given.
16153
16254
  */
16154
- type_name: string;
16255
+ type_name?: string;
16256
+ /**
16257
+ * ID of the asset subtype from the `it_management.asset_category` catalog (e.g. the id of 'vehicles.car'). Takes precedence over `type_name` when both are given.
16258
+ */
16259
+ asset_category_id?: string;
16155
16260
  /**
16156
16261
  * Brand of the IT asset model
16157
16262
  */
@@ -16201,9 +16306,13 @@ export type PutApi20261001ResourcesItManagementItAssetModelsByIdData = {
16201
16306
  */
16202
16307
  id: string;
16203
16308
  /**
16204
- * Type name of the IT asset model. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'
16309
+ * Deprecated: legacy IT-only type. Possible values are 'laptop', 'desktop', 'tablet', 'phone', 'screen', 'mouse', 'keyboard', 'headset', 'other'. Prefer `asset_category_id`, which covers the full catalog (IT and beyond). Ignored when `asset_category_id` is also given.
16310
+ */
16311
+ type_name?: string;
16312
+ /**
16313
+ * ID of the asset subtype from the `it_management.asset_category` catalog (e.g. the id of 'vehicles.car'). Takes precedence over `type_name` when both are given.
16205
16314
  */
16206
- type_name: string;
16315
+ asset_category_id?: string;
16207
16316
  /**
16208
16317
  * Brand of the IT asset model
16209
16318
  */