@factorialco/api-client 4.0.0-beta.2027010102 → 4.0.0-beta.2027010103
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 +8 -3
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +647 -617
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +78 -3
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +32785 -972
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +11 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +10 -0
- 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 +647 -617
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +70 -0
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +32785 -972
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +11 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +11 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -6391,6 +6391,48 @@ export const putApi20270101ResourcesTimeoffAllowanceIncidencesById = (options) =
|
|
|
6391
6391
|
...options.headers
|
|
6392
6392
|
}
|
|
6393
6393
|
});
|
|
6394
|
+
/**
|
|
6395
|
+
* Bulk creates an Allowance incidence
|
|
6396
|
+
*
|
|
6397
|
+
* Creates several allowance adjustments in one call, each exactly as `create` does. All or nothing — if any cannot be created, none are, and the error names it as `allowance_incidences[N]`.
|
|
6398
|
+
*/
|
|
6399
|
+
export const postApi20270101ResourcesTimeoffAllowanceIncidencesBulkCreate = (options) => (options?.client ?? client).post({
|
|
6400
|
+
security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
|
|
6401
|
+
url: '/api/2027-01-01/resources/timeoff/allowance_incidences/bulk_create',
|
|
6402
|
+
...options,
|
|
6403
|
+
headers: {
|
|
6404
|
+
'Content-Type': 'application/json',
|
|
6405
|
+
...options?.headers
|
|
6406
|
+
}
|
|
6407
|
+
});
|
|
6408
|
+
/**
|
|
6409
|
+
* Bulk deletes an Allowance incidence
|
|
6410
|
+
*
|
|
6411
|
+
* Deletes several allowance adjustments in one call. All or nothing — if any cannot be deleted, none are, and the error names it as `ids[N]`.
|
|
6412
|
+
*/
|
|
6413
|
+
export const postApi20270101ResourcesTimeoffAllowanceIncidencesBulkDelete = (options) => (options?.client ?? client).post({
|
|
6414
|
+
security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
|
|
6415
|
+
url: '/api/2027-01-01/resources/timeoff/allowance_incidences/bulk_delete',
|
|
6416
|
+
...options,
|
|
6417
|
+
headers: {
|
|
6418
|
+
'Content-Type': 'application/json',
|
|
6419
|
+
...options?.headers
|
|
6420
|
+
}
|
|
6421
|
+
});
|
|
6422
|
+
/**
|
|
6423
|
+
* Bulk updates an Allowance incidence
|
|
6424
|
+
*
|
|
6425
|
+
* Updates several allowance adjustments in one call, each exactly as `update` does. All or nothing; each adjustment at most once.
|
|
6426
|
+
*/
|
|
6427
|
+
export const postApi20270101ResourcesTimeoffAllowanceIncidencesBulkUpdate = (options) => (options?.client ?? client).post({
|
|
6428
|
+
security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
|
|
6429
|
+
url: '/api/2027-01-01/resources/timeoff/allowance_incidences/bulk_update',
|
|
6430
|
+
...options,
|
|
6431
|
+
headers: {
|
|
6432
|
+
'Content-Type': 'application/json',
|
|
6433
|
+
...options?.headers
|
|
6434
|
+
}
|
|
6435
|
+
});
|
|
6394
6436
|
/**
|
|
6395
6437
|
* Reads all Allowance stats
|
|
6396
6438
|
*
|
|
@@ -6565,6 +6607,20 @@ export const postApi20270101ResourcesTimeoffLeavesApproveAll = (options) => (opt
|
|
|
6565
6607
|
...options?.headers
|
|
6566
6608
|
}
|
|
6567
6609
|
});
|
|
6610
|
+
/**
|
|
6611
|
+
* Bulk creates a Leave
|
|
6612
|
+
*
|
|
6613
|
+
* Creates several time-off leaves in one call, each for its own employee and leave type, with the same validations as creating one. All or nothing — if any leave cannot be created, none are, and the error names it as `leaves[N]`.
|
|
6614
|
+
*/
|
|
6615
|
+
export const postApi20270101ResourcesTimeoffLeavesBulkCreate = (options) => (options?.client ?? client).post({
|
|
6616
|
+
security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
|
|
6617
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_create',
|
|
6618
|
+
...options,
|
|
6619
|
+
headers: {
|
|
6620
|
+
'Content-Type': 'application/json',
|
|
6621
|
+
...options?.headers
|
|
6622
|
+
}
|
|
6623
|
+
});
|
|
6568
6624
|
/**
|
|
6569
6625
|
* Bulk deletes a Leave
|
|
6570
6626
|
*
|
|
@@ -6579,6 +6635,20 @@ export const postApi20270101ResourcesTimeoffLeavesBulkDelete = (options) => (opt
|
|
|
6579
6635
|
...options?.headers
|
|
6580
6636
|
}
|
|
6581
6637
|
});
|
|
6638
|
+
/**
|
|
6639
|
+
* Bulk updates a Leave
|
|
6640
|
+
*
|
|
6641
|
+
* Edits several time-off leaves in one call with the same validations as editing one. It cannot approve a leave nor skip validations. All or nothing — if any edit is refused, none are applied, and the error names it as `leaves[N]`.
|
|
6642
|
+
*/
|
|
6643
|
+
export const postApi20270101ResourcesTimeoffLeavesBulkUpdate = (options) => (options?.client ?? client).post({
|
|
6644
|
+
security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
|
|
6645
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_update',
|
|
6646
|
+
...options,
|
|
6647
|
+
headers: {
|
|
6648
|
+
'Content-Type': 'application/json',
|
|
6649
|
+
...options?.headers
|
|
6650
|
+
}
|
|
6651
|
+
});
|
|
6582
6652
|
/**
|
|
6583
6653
|
* Rejects a Leave
|
|
6584
6654
|
*
|