@factorialco/api-client 3.0.0-beta.2026100118 → 3.0.0-beta.2026100120
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/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/index.js +10 -8
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +15 -3
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +31 -9
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +112 -1
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +27 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +33 -4
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/sdk.gen.d.ts +15 -3
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +22 -2
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +112 -1
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +27 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +29 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -4405,6 +4405,12 @@ export type IntegrationsSyncRun = {
|
|
|
4405
4405
|
* Timestamp when the sync run finished
|
|
4406
4406
|
*/
|
|
4407
4407
|
finished_at?: string;
|
|
4408
|
+
/**
|
|
4409
|
+
* Scope of this sync run. Holds `from` and `to`, the inclusive ISO-8601 dates of the period it covers; either key is absent when unknown, and the object is empty when the run is not date-scoped.
|
|
4410
|
+
*/
|
|
4411
|
+
context: {
|
|
4412
|
+
[key: string]: unknown;
|
|
4413
|
+
};
|
|
4408
4414
|
/**
|
|
4409
4415
|
* Identifier of the company
|
|
4410
4416
|
*/
|
|
@@ -4448,6 +4454,44 @@ export type IntegrationsSyncableItem = {
|
|
|
4448
4454
|
*/
|
|
4449
4455
|
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
4450
4456
|
};
|
|
4457
|
+
export type IntegrationsSyncableState = {
|
|
4458
|
+
/**
|
|
4459
|
+
* Identifier of the syncable state
|
|
4460
|
+
*/
|
|
4461
|
+
id: string;
|
|
4462
|
+
/**
|
|
4463
|
+
* Identifier of the Factorial record this state is linked to
|
|
4464
|
+
*/
|
|
4465
|
+
syncable_id?: string;
|
|
4466
|
+
/**
|
|
4467
|
+
* The resource type of the linked record, in "namespace/resource" form
|
|
4468
|
+
*/
|
|
4469
|
+
resource_syncable_type: string;
|
|
4470
|
+
/**
|
|
4471
|
+
* UUID of the marketplace integration
|
|
4472
|
+
*/
|
|
4473
|
+
integration_uuid: string;
|
|
4474
|
+
/**
|
|
4475
|
+
* Synchronization status of the record
|
|
4476
|
+
*/
|
|
4477
|
+
status: 'synced' | 'syncing' | 'outdated' | 'invalid' | 'failed';
|
|
4478
|
+
/**
|
|
4479
|
+
* Error or validation messages of the syncable state
|
|
4480
|
+
*/
|
|
4481
|
+
error_messages: Array<unknown>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Timestamp of the last status change
|
|
4484
|
+
*/
|
|
4485
|
+
status_updated_at: string;
|
|
4486
|
+
/**
|
|
4487
|
+
* Identifier of the record in the external system
|
|
4488
|
+
*/
|
|
4489
|
+
external_identifier?: string;
|
|
4490
|
+
/**
|
|
4491
|
+
* Timestamp when the linked Factorial record was deleted, if any
|
|
4492
|
+
*/
|
|
4493
|
+
syncable_deleted_at?: string;
|
|
4494
|
+
};
|
|
4451
4495
|
export type IntegrationsSyncableSyncRun = {
|
|
4452
4496
|
/**
|
|
4453
4497
|
* Identifier of the syncable sync run
|
|
@@ -10723,7 +10767,7 @@ export type GetApi20261001ResourcesBookkeepersManagementIncidencesData = {
|
|
|
10723
10767
|
*/
|
|
10724
10768
|
ends_on?: string;
|
|
10725
10769
|
/**
|
|
10726
|
-
* A list of types. It can be any of the following address, bank, cost_center, contract, gender, hiring, id, irpf, legal_entity, manual_incidence, name, nationality, parental, phone_number, sick, tax_id, termination, workplace
|
|
10770
|
+
* A list of types. It can be any of the following address, bank, cost_center, contract, gender, health_insurance, hiring, id, irpf, legal_entity, manual_incidence, name, nationality, parental, permits_and_certificates, phone_number, sick, tax_id, taxes_and_deductions, termination, work_activity, workplace
|
|
10727
10771
|
*/
|
|
10728
10772
|
'type[]'?: Array<string>;
|
|
10729
10773
|
/**
|
|
@@ -15922,6 +15966,10 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsData = {
|
|
|
15922
15966
|
body?: never;
|
|
15923
15967
|
path?: never;
|
|
15924
15968
|
query: {
|
|
15969
|
+
/**
|
|
15970
|
+
* UUID of the marketplace integration to filter sync runs by.
|
|
15971
|
+
*/
|
|
15972
|
+
marketplace_integration_uuid: string;
|
|
15925
15973
|
/**
|
|
15926
15974
|
* Filter sync runs by their creation timestamp (`created_at`), on or after this timestamp (inclusive).
|
|
15927
15975
|
*/
|
|
@@ -15982,6 +16030,57 @@ export type GetApi20261001ResourcesIntegrationsSyncableItemsResponses = {
|
|
|
15982
16030
|
};
|
|
15983
16031
|
};
|
|
15984
16032
|
export type GetApi20261001ResourcesIntegrationsSyncableItemsResponse = GetApi20261001ResourcesIntegrationsSyncableItemsResponses[keyof GetApi20261001ResourcesIntegrationsSyncableItemsResponses];
|
|
16033
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesData = {
|
|
16034
|
+
body?: never;
|
|
16035
|
+
path?: never;
|
|
16036
|
+
query?: {
|
|
16037
|
+
/**
|
|
16038
|
+
* Filter syncable states by their identifiers
|
|
16039
|
+
*/
|
|
16040
|
+
'ids[]'?: Array<string>;
|
|
16041
|
+
/**
|
|
16042
|
+
* Filter syncable states by the identifiers of the linked API resource, identified by resource_syncable_type field
|
|
16043
|
+
*/
|
|
16044
|
+
'syncable_ids[]'?: Array<string>;
|
|
16045
|
+
/**
|
|
16046
|
+
* The resource type of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids.
|
|
16047
|
+
*/
|
|
16048
|
+
resource_syncable_type?: string;
|
|
16049
|
+
/**
|
|
16050
|
+
* Filter syncable states by the UUID of the marketplace integration
|
|
16051
|
+
*/
|
|
16052
|
+
integration_uuid?: string;
|
|
16053
|
+
};
|
|
16054
|
+
url: '/api/2026-10-01/resources/integrations/syncable_states';
|
|
16055
|
+
};
|
|
16056
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesResponses = {
|
|
16057
|
+
/**
|
|
16058
|
+
* OK
|
|
16059
|
+
*/
|
|
16060
|
+
200: {
|
|
16061
|
+
data?: Array<IntegrationsSyncableState>;
|
|
16062
|
+
meta?: PagedIndexMeta;
|
|
16063
|
+
};
|
|
16064
|
+
};
|
|
16065
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesResponse = GetApi20261001ResourcesIntegrationsSyncableStatesResponses[keyof GetApi20261001ResourcesIntegrationsSyncableStatesResponses];
|
|
16066
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesByIdData = {
|
|
16067
|
+
body?: never;
|
|
16068
|
+
path: {
|
|
16069
|
+
/**
|
|
16070
|
+
* Filter syncable states by their identifiers
|
|
16071
|
+
*/
|
|
16072
|
+
id: string;
|
|
16073
|
+
};
|
|
16074
|
+
query?: never;
|
|
16075
|
+
url: '/api/2026-10-01/resources/integrations/syncable_states/{id}';
|
|
16076
|
+
};
|
|
16077
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesByIdResponses = {
|
|
16078
|
+
/**
|
|
16079
|
+
* OK
|
|
16080
|
+
*/
|
|
16081
|
+
200: IntegrationsSyncableState;
|
|
16082
|
+
};
|
|
16083
|
+
export type GetApi20261001ResourcesIntegrationsSyncableStatesByIdResponse = GetApi20261001ResourcesIntegrationsSyncableStatesByIdResponses[keyof GetApi20261001ResourcesIntegrationsSyncableStatesByIdResponses];
|
|
15985
16084
|
export type GetApi20261001ResourcesIntegrationsSyncableSyncRunsData = {
|
|
15986
16085
|
body?: never;
|
|
15987
16086
|
path?: never;
|
|
@@ -20494,6 +20593,10 @@ export type PostApi20261001ResourcesProjectManagementProjectsData = {
|
|
|
20494
20593
|
* Array of employee IDs who are project managers
|
|
20495
20594
|
*/
|
|
20496
20595
|
project_managers?: Array<string>;
|
|
20596
|
+
/**
|
|
20597
|
+
* Array of employee IDs who are project viewers
|
|
20598
|
+
*/
|
|
20599
|
+
project_viewers?: Array<string>;
|
|
20497
20600
|
/**
|
|
20498
20601
|
* Whether the project is billable to clients
|
|
20499
20602
|
*/
|
|
@@ -21803,6 +21906,10 @@ export type PostApi20261001ResourcesTasksTasksData = {
|
|
|
21803
21906
|
* Employees assigned to the task, assignee_id references to access_id.
|
|
21804
21907
|
*/
|
|
21805
21908
|
assignee_ids?: Array<string>;
|
|
21909
|
+
/**
|
|
21910
|
+
* employee that will be set as the author of the task. Only taken into account when authenticating with an API key, requests performed on behalf of a user always use that user as the author. When omitted, the task is authored by the first active employee of the company.
|
|
21911
|
+
*/
|
|
21912
|
+
author_employee_id?: string;
|
|
21806
21913
|
/**
|
|
21807
21914
|
* status of the task (todo | in_progress | done | discarded).
|
|
21808
21915
|
*/
|
|
@@ -21916,6 +22023,10 @@ export type PostApi20261001ResourcesTasksTasksBulkCreateData = {
|
|
|
21916
22023
|
* Employees assigned to the task, assignee_id references to access_id.
|
|
21917
22024
|
*/
|
|
21918
22025
|
assignee_ids?: Array<string>;
|
|
22026
|
+
/**
|
|
22027
|
+
* employee that will be set as the author of the tasks. Only taken into account when authenticating with an API key, requests performed on behalf of a user always use that user as the author. When omitted, the tasks are authored by the first active employee of the company.
|
|
22028
|
+
*/
|
|
22029
|
+
author_employee_id?: string;
|
|
21919
22030
|
/**
|
|
21920
22031
|
* status of the task (todo | in_progress | done | discarded).
|
|
21921
22032
|
*/
|