@factorialco/api-client 3.0.0-beta.2026100119 → 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 +13 -1
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +29 -7
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +95 -0
- 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 +13 -1
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +20 -0
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +95 -0
- 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
|
|
@@ -15986,6 +16030,57 @@ export type GetApi20261001ResourcesIntegrationsSyncableItemsResponses = {
|
|
|
15986
16030
|
};
|
|
15987
16031
|
};
|
|
15988
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];
|
|
15989
16084
|
export type GetApi20261001ResourcesIntegrationsSyncableSyncRunsData = {
|
|
15990
16085
|
body?: never;
|
|
15991
16086
|
path?: never;
|