@epilot/sdk 2.16.1 → 2.16.2
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/definitions/calendar-runtime.json +1 -1
- package/definitions/calendar.json +373 -4
- package/definitions/entity.json +22 -1
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +8 -8
- package/dist/apis/calendar.d.cts +2 -2
- package/dist/apis/calendar.d.ts +2 -2
- package/dist/apis/calendar.js +2 -2
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/calendar-GJ7UX6PX.cjs +7 -0
- package/dist/calendar-W42TSLFV.js +7 -0
- package/dist/{calendar-runtime-25OCRSQL.js → calendar-runtime-KZPDEYT7.js} +1 -1
- package/dist/{calendar-runtime-IOURSAQT.cjs → calendar-runtime-WMR6GL6I.cjs} +2 -2
- package/dist/{calendar.d-DQaUSVGa.d.cts → calendar.d-Cinz1Vzo.d.cts} +315 -5
- package/dist/{calendar.d-DQaUSVGa.d.ts → calendar.d-Cinz1Vzo.d.ts} +315 -5
- package/dist/chunk-HBJJOW2M.cjs +14 -0
- package/dist/{chunk-KFR23DXN.js → chunk-MK6ZFMSY.js} +3 -3
- package/dist/{chunk-K7MOYBJB.cjs → chunk-NBEPUBSZ.cjs} +3 -3
- package/dist/chunk-QEAIJQTE.js +14 -0
- package/dist/entity-IZHQB3JX.js +7 -0
- package/dist/entity-MYDUQBEE.cjs +7 -0
- package/dist/{entity.d-CmQvgvyi.d.cts → entity.d-CaFNmDfj.d.cts} +33 -3
- package/dist/{entity.d-CmQvgvyi.d.ts → entity.d-CaFNmDfj.d.ts} +33 -3
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/calendar.md +322 -14
- package/docs/entity.md +35 -0
- package/package.json +1 -1
- package/dist/calendar-QAOHESA6.cjs +0 -7
- package/dist/calendar-ZKM3KI45.js +0 -7
- package/dist/chunk-EWGYF4WD.js +0 -14
- package/dist/chunk-IFELBEXN.cjs +0 -14
- package/dist/entity-K5HYURU7.js +0 -7
- package/dist/entity-V5375UNT.cjs +0 -7
package/docs/calendar.md
CHANGED
|
@@ -35,6 +35,11 @@ const { data } = await calendarClient.listUsersAbsence(...)
|
|
|
35
35
|
- [`deleteAbsenceAdjustment`](#deleteabsenceadjustment)
|
|
36
36
|
- [`getUserAbsence`](#getuserabsence)
|
|
37
37
|
|
|
38
|
+
**Working Hours**
|
|
39
|
+
- [`getWorkingHours`](#getworkinghours)
|
|
40
|
+
- [`putWorkingHours`](#putworkinghours)
|
|
41
|
+
- [`deleteWorkingHours`](#deleteworkinghours)
|
|
42
|
+
|
|
38
43
|
**Calendars**
|
|
39
44
|
- [`listCalendars`](#listcalendars)
|
|
40
45
|
- [`createCalendar`](#createcalendar)
|
|
@@ -67,6 +72,9 @@ const { data } = await calendarClient.listUsersAbsence(...)
|
|
|
67
72
|
- [`CreateAbsenceAdjustmentBody`](#createabsenceadjustmentbody)
|
|
68
73
|
- [`PatchAbsenceAdjustmentBody`](#patchabsenceadjustmentbody)
|
|
69
74
|
- [`ExternalCalendar`](#externalcalendar)
|
|
75
|
+
- [`WorkingHours`](#workinghours)
|
|
76
|
+
- [`UpsertWorkingHoursBody`](#upsertworkinghoursbody)
|
|
77
|
+
- [`TimeWindow`](#timewindow)
|
|
70
78
|
- [`Calendar`](#calendar)
|
|
71
79
|
- [`CalendarSource`](#calendarsource)
|
|
72
80
|
- [`Provider`](#provider)
|
|
@@ -97,6 +105,7 @@ const { data } = await client.listUsersAbsence({
|
|
|
97
105
|
from: 'example',
|
|
98
106
|
to: 'example',
|
|
99
107
|
include_busy: true,
|
|
108
|
+
working_hours_granularity: 'example',
|
|
100
109
|
query: 'example',
|
|
101
110
|
limit: 1,
|
|
102
111
|
offset: 1,
|
|
@@ -153,7 +162,8 @@ const { data } = await client.searchAbsence(
|
|
|
153
162
|
from: '1970-01-01T00:00:00.000Z',
|
|
154
163
|
to: '1970-01-01T00:00:00.000Z',
|
|
155
164
|
user_ids: ['string'],
|
|
156
|
-
include_busy: false
|
|
165
|
+
include_busy: false,
|
|
166
|
+
working_hours_granularity: 'time'
|
|
157
167
|
},
|
|
158
168
|
)
|
|
159
169
|
```
|
|
@@ -184,7 +194,8 @@ const { data } = await client.searchNowAbsence(
|
|
|
184
194
|
null,
|
|
185
195
|
{
|
|
186
196
|
user_ids: ['string'],
|
|
187
|
-
include_busy: false
|
|
197
|
+
include_busy: false,
|
|
198
|
+
working_hours_granularity: 'time'
|
|
188
199
|
},
|
|
189
200
|
)
|
|
190
201
|
```
|
|
@@ -230,7 +241,7 @@ const { data } = await client.listAbsenceAdjustments({
|
|
|
230
241
|
"from": "1970-01-01T00:00:00.000Z",
|
|
231
242
|
"to": "1970-01-01T00:00:00.000Z",
|
|
232
243
|
"absent": true,
|
|
233
|
-
"status": "
|
|
244
|
+
"status": "oof",
|
|
234
245
|
"type": "string",
|
|
235
246
|
"reason": "string",
|
|
236
247
|
"adjustment_id": "string",
|
|
@@ -262,7 +273,7 @@ const { data } = await client.createAbsenceAdjustment(
|
|
|
262
273
|
from: '1970-01-01T00:00:00.000Z',
|
|
263
274
|
to: '1970-01-01T00:00:00.000Z',
|
|
264
275
|
absent: true,
|
|
265
|
-
status: '
|
|
276
|
+
status: 'oof',
|
|
266
277
|
type: 'string',
|
|
267
278
|
reason: 'string'
|
|
268
279
|
},
|
|
@@ -277,7 +288,7 @@ const { data } = await client.createAbsenceAdjustment(
|
|
|
277
288
|
"from": "1970-01-01T00:00:00.000Z",
|
|
278
289
|
"to": "1970-01-01T00:00:00.000Z",
|
|
279
290
|
"absent": true,
|
|
280
|
-
"status": "
|
|
291
|
+
"status": "oof",
|
|
281
292
|
"type": "string",
|
|
282
293
|
"reason": "string",
|
|
283
294
|
"adjustment_id": "string",
|
|
@@ -313,7 +324,7 @@ const { data } = await client.getAbsenceAdjustment({
|
|
|
313
324
|
"from": "1970-01-01T00:00:00.000Z",
|
|
314
325
|
"to": "1970-01-01T00:00:00.000Z",
|
|
315
326
|
"absent": true,
|
|
316
|
-
"status": "
|
|
327
|
+
"status": "oof",
|
|
317
328
|
"type": "string",
|
|
318
329
|
"reason": "string",
|
|
319
330
|
"adjustment_id": "string",
|
|
@@ -344,7 +355,7 @@ const { data } = await client.patchAbsenceAdjustment(
|
|
|
344
355
|
from: '1970-01-01T00:00:00.000Z',
|
|
345
356
|
to: '1970-01-01T00:00:00.000Z',
|
|
346
357
|
absent: true,
|
|
347
|
-
status: '
|
|
358
|
+
status: 'oof',
|
|
348
359
|
type: 'string',
|
|
349
360
|
reason: 'string'
|
|
350
361
|
},
|
|
@@ -359,7 +370,7 @@ const { data } = await client.patchAbsenceAdjustment(
|
|
|
359
370
|
"from": "1970-01-01T00:00:00.000Z",
|
|
360
371
|
"to": "1970-01-01T00:00:00.000Z",
|
|
361
372
|
"absent": true,
|
|
362
|
-
"status": "
|
|
373
|
+
"status": "oof",
|
|
363
374
|
"type": "string",
|
|
364
375
|
"reason": "string",
|
|
365
376
|
"adjustment_id": "string",
|
|
@@ -401,6 +412,7 @@ const { data } = await client.getUserAbsence({
|
|
|
401
412
|
from: 'example',
|
|
402
413
|
to: 'example',
|
|
403
414
|
include_busy: true,
|
|
415
|
+
working_hours_granularity: 'example',
|
|
404
416
|
})
|
|
405
417
|
```
|
|
406
418
|
|
|
@@ -439,6 +451,209 @@ const { data } = await client.getUserAbsence({
|
|
|
439
451
|
|
|
440
452
|
---
|
|
441
453
|
|
|
454
|
+
### `getWorkingHours`
|
|
455
|
+
|
|
456
|
+
Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
|
|
457
|
+
|
|
458
|
+
`GET /v1/calendar/working-hours/users/{user_id}`
|
|
459
|
+
|
|
460
|
+
```ts
|
|
461
|
+
const { data } = await client.getWorkingHours({
|
|
462
|
+
user_id: 'example',
|
|
463
|
+
})
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
<details>
|
|
467
|
+
<summary>Response</summary>
|
|
468
|
+
|
|
469
|
+
```json
|
|
470
|
+
{
|
|
471
|
+
"monday": [
|
|
472
|
+
{
|
|
473
|
+
"start": "string",
|
|
474
|
+
"end": "string"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"tuesday": [
|
|
478
|
+
{
|
|
479
|
+
"start": "string",
|
|
480
|
+
"end": "string"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"wednesday": [
|
|
484
|
+
{
|
|
485
|
+
"start": "string",
|
|
486
|
+
"end": "string"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"thursday": [
|
|
490
|
+
{
|
|
491
|
+
"start": "string",
|
|
492
|
+
"end": "string"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"friday": [
|
|
496
|
+
{
|
|
497
|
+
"start": "string",
|
|
498
|
+
"end": "string"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"saturday": [
|
|
502
|
+
{
|
|
503
|
+
"start": "string",
|
|
504
|
+
"end": "string"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"sunday": [
|
|
508
|
+
{
|
|
509
|
+
"start": "string",
|
|
510
|
+
"end": "string"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"timezone": "string",
|
|
514
|
+
"user_id": "string",
|
|
515
|
+
"updated_by": "string",
|
|
516
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
517
|
+
"updated_at": "1970-01-01T00:00:00.000Z"
|
|
518
|
+
}
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
</details>
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
### `putWorkingHours`
|
|
526
|
+
|
|
527
|
+
Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
|
|
528
|
+
|
|
529
|
+
`PUT /v1/calendar/working-hours/users/{user_id}`
|
|
530
|
+
|
|
531
|
+
```ts
|
|
532
|
+
const { data } = await client.putWorkingHours(
|
|
533
|
+
{
|
|
534
|
+
user_id: 'example',
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
monday: [
|
|
538
|
+
{
|
|
539
|
+
start: 'string',
|
|
540
|
+
end: 'string'
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
tuesday: [
|
|
544
|
+
{
|
|
545
|
+
start: 'string',
|
|
546
|
+
end: 'string'
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
wednesday: [
|
|
550
|
+
{
|
|
551
|
+
start: 'string',
|
|
552
|
+
end: 'string'
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
thursday: [
|
|
556
|
+
{
|
|
557
|
+
start: 'string',
|
|
558
|
+
end: 'string'
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
friday: [
|
|
562
|
+
{
|
|
563
|
+
start: 'string',
|
|
564
|
+
end: 'string'
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
saturday: [
|
|
568
|
+
{
|
|
569
|
+
start: 'string',
|
|
570
|
+
end: 'string'
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
sunday: [
|
|
574
|
+
{
|
|
575
|
+
start: 'string',
|
|
576
|
+
end: 'string'
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
timezone: 'Europe/Berlin'
|
|
580
|
+
},
|
|
581
|
+
)
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
<details>
|
|
585
|
+
<summary>Response</summary>
|
|
586
|
+
|
|
587
|
+
```json
|
|
588
|
+
{
|
|
589
|
+
"monday": [
|
|
590
|
+
{
|
|
591
|
+
"start": "string",
|
|
592
|
+
"end": "string"
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"tuesday": [
|
|
596
|
+
{
|
|
597
|
+
"start": "string",
|
|
598
|
+
"end": "string"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"wednesday": [
|
|
602
|
+
{
|
|
603
|
+
"start": "string",
|
|
604
|
+
"end": "string"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
"thursday": [
|
|
608
|
+
{
|
|
609
|
+
"start": "string",
|
|
610
|
+
"end": "string"
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"friday": [
|
|
614
|
+
{
|
|
615
|
+
"start": "string",
|
|
616
|
+
"end": "string"
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
"saturday": [
|
|
620
|
+
{
|
|
621
|
+
"start": "string",
|
|
622
|
+
"end": "string"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"sunday": [
|
|
626
|
+
{
|
|
627
|
+
"start": "string",
|
|
628
|
+
"end": "string"
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"timezone": "string",
|
|
632
|
+
"user_id": "string",
|
|
633
|
+
"updated_by": "string",
|
|
634
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
635
|
+
"updated_at": "1970-01-01T00:00:00.000Z"
|
|
636
|
+
}
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
</details>
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
### `deleteWorkingHours`
|
|
644
|
+
|
|
645
|
+
Delete the working hours of a user. The user is then treated as always available again.
|
|
646
|
+
|
|
647
|
+
`DELETE /v1/calendar/working-hours/users/{user_id}`
|
|
648
|
+
|
|
649
|
+
```ts
|
|
650
|
+
const { data } = await client.deleteWorkingHours({
|
|
651
|
+
user_id: 'example',
|
|
652
|
+
})
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
---
|
|
656
|
+
|
|
442
657
|
### `listCalendars`
|
|
443
658
|
|
|
444
659
|
List calendars visible to the caller.
|
|
@@ -1108,7 +1323,7 @@ type AbsenceInterval = {
|
|
|
1108
1323
|
original_from: string // date-time
|
|
1109
1324
|
original_to: string // date-time
|
|
1110
1325
|
absent: boolean
|
|
1111
|
-
source: "calendar_event" | "absence_adjustment"
|
|
1326
|
+
source: "calendar_event" | "absence_adjustment" | "working_hours"
|
|
1112
1327
|
calendar_event_id?: string
|
|
1113
1328
|
absence_adjustment_id?: string
|
|
1114
1329
|
reason?: string
|
|
@@ -1118,7 +1333,7 @@ type AbsenceInterval = {
|
|
|
1118
1333
|
### `AbsenceIntervalSource`
|
|
1119
1334
|
|
|
1120
1335
|
```ts
|
|
1121
|
-
type AbsenceIntervalSource = "calendar_event" | "absence_adjustment"
|
|
1336
|
+
type AbsenceIntervalSource = "calendar_event" | "absence_adjustment" | "working_hours"
|
|
1122
1337
|
```
|
|
1123
1338
|
|
|
1124
1339
|
### `Error`
|
|
@@ -1138,6 +1353,7 @@ type SearchAbsenceBody = {
|
|
|
1138
1353
|
to: string // date-time
|
|
1139
1354
|
user_ids: string[]
|
|
1140
1355
|
include_busy?: boolean
|
|
1356
|
+
working_hours_granularity?: "time" | "day"
|
|
1141
1357
|
}
|
|
1142
1358
|
```
|
|
1143
1359
|
|
|
@@ -1147,6 +1363,7 @@ type SearchAbsenceBody = {
|
|
|
1147
1363
|
type SearchNowAbsenceBody = {
|
|
1148
1364
|
user_ids: string[]
|
|
1149
1365
|
include_busy?: boolean
|
|
1366
|
+
working_hours_granularity?: "time" | "day"
|
|
1150
1367
|
}
|
|
1151
1368
|
```
|
|
1152
1369
|
|
|
@@ -1157,7 +1374,7 @@ type AbsenceAdjustment = {
|
|
|
1157
1374
|
from: string // date-time
|
|
1158
1375
|
to: string // date-time
|
|
1159
1376
|
absent: boolean
|
|
1160
|
-
status: "
|
|
1377
|
+
status: "oof" | "busy"
|
|
1161
1378
|
type?: string
|
|
1162
1379
|
reason?: string
|
|
1163
1380
|
adjustment_id: string
|
|
@@ -1173,7 +1390,7 @@ type AbsenceAdjustment = {
|
|
|
1173
1390
|
Calendar status targeted by the absence adjustment.
|
|
1174
1391
|
|
|
1175
1392
|
```ts
|
|
1176
|
-
type AbsenceStatus = "
|
|
1393
|
+
type AbsenceStatus = "oof" | "busy"
|
|
1177
1394
|
```
|
|
1178
1395
|
|
|
1179
1396
|
### `AbsenceType`
|
|
@@ -1191,7 +1408,7 @@ type CreateAbsenceAdjustmentBody = {
|
|
|
1191
1408
|
from: string // date-time
|
|
1192
1409
|
to: string // date-time
|
|
1193
1410
|
absent: boolean
|
|
1194
|
-
status: "
|
|
1411
|
+
status: "oof" | "busy"
|
|
1195
1412
|
type?: string
|
|
1196
1413
|
reason?: string
|
|
1197
1414
|
}
|
|
@@ -1204,7 +1421,7 @@ type PatchAbsenceAdjustmentBody = {
|
|
|
1204
1421
|
from?: string // date-time
|
|
1205
1422
|
to?: string // date-time
|
|
1206
1423
|
absent?: boolean
|
|
1207
|
-
status?: "
|
|
1424
|
+
status?: "oof" | "busy"
|
|
1208
1425
|
type?: string
|
|
1209
1426
|
reason?: string
|
|
1210
1427
|
}
|
|
@@ -1219,6 +1436,97 @@ type ExternalCalendar = {
|
|
|
1219
1436
|
}
|
|
1220
1437
|
```
|
|
1221
1438
|
|
|
1439
|
+
### `WorkingHours`
|
|
1440
|
+
|
|
1441
|
+
Recurring weekly working hours of a user. The absence of a record means the user is treated as always available.
|
|
1442
|
+
|
|
1443
|
+
```ts
|
|
1444
|
+
type WorkingHours = {
|
|
1445
|
+
monday: Array<{
|
|
1446
|
+
start: string
|
|
1447
|
+
end: string
|
|
1448
|
+
}>
|
|
1449
|
+
tuesday: Array<{
|
|
1450
|
+
start: string
|
|
1451
|
+
end: string
|
|
1452
|
+
}>
|
|
1453
|
+
wednesday: Array<{
|
|
1454
|
+
start: string
|
|
1455
|
+
end: string
|
|
1456
|
+
}>
|
|
1457
|
+
thursday: Array<{
|
|
1458
|
+
start: string
|
|
1459
|
+
end: string
|
|
1460
|
+
}>
|
|
1461
|
+
friday: Array<{
|
|
1462
|
+
start: string
|
|
1463
|
+
end: string
|
|
1464
|
+
}>
|
|
1465
|
+
saturday: Array<{
|
|
1466
|
+
start: string
|
|
1467
|
+
end: string
|
|
1468
|
+
}>
|
|
1469
|
+
sunday: Array<{
|
|
1470
|
+
start: string
|
|
1471
|
+
end: string
|
|
1472
|
+
}>
|
|
1473
|
+
timezone: string
|
|
1474
|
+
user_id: string
|
|
1475
|
+
updated_by: string
|
|
1476
|
+
created_at: string // date-time
|
|
1477
|
+
updated_at: string // date-time
|
|
1478
|
+
}
|
|
1479
|
+
```
|
|
1480
|
+
|
|
1481
|
+
### `UpsertWorkingHoursBody`
|
|
1482
|
+
|
|
1483
|
+
Full replacement of the working-hours record. All weekdays are required; an empty array means a day off. Users without a working-hours record are treated as always available.
|
|
1484
|
+
|
|
1485
|
+
```ts
|
|
1486
|
+
type UpsertWorkingHoursBody = {
|
|
1487
|
+
monday: Array<{
|
|
1488
|
+
start: string
|
|
1489
|
+
end: string
|
|
1490
|
+
}>
|
|
1491
|
+
tuesday: Array<{
|
|
1492
|
+
start: string
|
|
1493
|
+
end: string
|
|
1494
|
+
}>
|
|
1495
|
+
wednesday: Array<{
|
|
1496
|
+
start: string
|
|
1497
|
+
end: string
|
|
1498
|
+
}>
|
|
1499
|
+
thursday: Array<{
|
|
1500
|
+
start: string
|
|
1501
|
+
end: string
|
|
1502
|
+
}>
|
|
1503
|
+
friday: Array<{
|
|
1504
|
+
start: string
|
|
1505
|
+
end: string
|
|
1506
|
+
}>
|
|
1507
|
+
saturday: Array<{
|
|
1508
|
+
start: string
|
|
1509
|
+
end: string
|
|
1510
|
+
}>
|
|
1511
|
+
sunday: Array<{
|
|
1512
|
+
start: string
|
|
1513
|
+
end: string
|
|
1514
|
+
}>
|
|
1515
|
+
timezone?: string
|
|
1516
|
+
}
|
|
1517
|
+
```
|
|
1518
|
+
|
|
1519
|
+
### `TimeWindow`
|
|
1520
|
+
|
|
1521
|
+
A wall-clock working window within a single day.
|
|
1522
|
+
|
|
1523
|
+
```ts
|
|
1524
|
+
type TimeWindow = {
|
|
1525
|
+
start: string
|
|
1526
|
+
end: string
|
|
1527
|
+
}
|
|
1528
|
+
```
|
|
1529
|
+
|
|
1222
1530
|
### `Calendar`
|
|
1223
1531
|
|
|
1224
1532
|
```ts
|
package/docs/entity.md
CHANGED
|
@@ -190,6 +190,7 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
190
190
|
- [`LocationConditionDefinition`](#locationconditiondefinition)
|
|
191
191
|
- [`ConditionDefinition`](#conditiondefinition)
|
|
192
192
|
- [`EntitySlug`](#entityslug)
|
|
193
|
+
- [`AdjustInstallmentCapabilityConfig`](#adjustinstallmentcapabilityconfig)
|
|
193
194
|
- [`EntityCapability`](#entitycapability)
|
|
194
195
|
- [`EntityCapabilityWithCompositeID`](#entitycapabilitywithcompositeid)
|
|
195
196
|
- [`EntityViewDisabled`](#entityviewdisabled)
|
|
@@ -497,6 +498,7 @@ const { data } = await client.getSchema({
|
|
|
497
498
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
498
499
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
499
500
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
501
|
+
"adjust_installment": {},
|
|
500
502
|
"ui_config": {},
|
|
501
503
|
"ui_hooks": [],
|
|
502
504
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -649,6 +651,7 @@ const { data } = await client.putSchema(
|
|
|
649
651
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
650
652
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
651
653
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
654
|
+
adjust_installment: { /* ... */ },
|
|
652
655
|
ui_config: { /* ... */ },
|
|
653
656
|
ui_hooks: [ /* ... */ ],
|
|
654
657
|
feature_flag: 'FF_MY_FEATURE_FLAG',
|
|
@@ -801,6 +804,7 @@ const { data } = await client.putSchema(
|
|
|
801
804
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
802
805
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
803
806
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
807
|
+
"adjust_installment": {},
|
|
804
808
|
"ui_config": {},
|
|
805
809
|
"ui_hooks": [],
|
|
806
810
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -1245,6 +1249,7 @@ const { data } = await client.freezeSchema(
|
|
|
1245
1249
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1246
1250
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1247
1251
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
1252
|
+
"adjust_installment": {},
|
|
1248
1253
|
"ui_config": {},
|
|
1249
1254
|
"ui_hooks": [],
|
|
1250
1255
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -1411,6 +1416,7 @@ const { data } = await client.unfreezeSchema({
|
|
|
1411
1416
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1412
1417
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1413
1418
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
1419
|
+
"adjust_installment": {},
|
|
1414
1420
|
"ui_config": {},
|
|
1415
1421
|
"ui_hooks": [],
|
|
1416
1422
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -1515,6 +1521,7 @@ const { data } = await client.listAvailableCapabilities({
|
|
|
1515
1521
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1516
1522
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1517
1523
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
1524
|
+
"adjust_installment": {},
|
|
1518
1525
|
"ui_config": {},
|
|
1519
1526
|
"ui_hooks": [],
|
|
1520
1527
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -5160,6 +5167,9 @@ const { data } = await client.createSchemaCapability(
|
|
|
5160
5167
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
5161
5168
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
5162
5169
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
5170
|
+
adjust_installment: {
|
|
5171
|
+
journey_id: 'adjust-installment-flow'
|
|
5172
|
+
},
|
|
5163
5173
|
ui_config: {
|
|
5164
5174
|
is_filterable: true
|
|
5165
5175
|
},
|
|
@@ -5289,6 +5299,9 @@ const { data } = await client.createSchemaCapability(
|
|
|
5289
5299
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5290
5300
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5291
5301
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
5302
|
+
"adjust_installment": {
|
|
5303
|
+
"journey_id": "adjust-installment-flow"
|
|
5304
|
+
},
|
|
5292
5305
|
"ui_config": {
|
|
5293
5306
|
"is_filterable": true
|
|
5294
5307
|
},
|
|
@@ -5433,6 +5446,9 @@ const { data } = await client.getSchemaCapability({
|
|
|
5433
5446
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5434
5447
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5435
5448
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
5449
|
+
"adjust_installment": {
|
|
5450
|
+
"journey_id": "adjust-installment-flow"
|
|
5451
|
+
},
|
|
5436
5452
|
"ui_config": {
|
|
5437
5453
|
"is_filterable": true
|
|
5438
5454
|
},
|
|
@@ -5573,6 +5589,9 @@ const { data } = await client.putSchemaCapability(
|
|
|
5573
5589
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
5574
5590
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
5575
5591
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
5592
|
+
adjust_installment: {
|
|
5593
|
+
journey_id: 'adjust-installment-flow'
|
|
5594
|
+
},
|
|
5576
5595
|
ui_config: {
|
|
5577
5596
|
is_filterable: true
|
|
5578
5597
|
},
|
|
@@ -5702,6 +5721,9 @@ const { data } = await client.putSchemaCapability(
|
|
|
5702
5721
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5703
5722
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5704
5723
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
5724
|
+
"adjust_installment": {
|
|
5725
|
+
"journey_id": "adjust-installment-flow"
|
|
5726
|
+
},
|
|
5705
5727
|
"ui_config": {
|
|
5706
5728
|
"is_filterable": true
|
|
5707
5729
|
},
|
|
@@ -5846,6 +5868,9 @@ const { data } = await client.deleteSchemaCapability({
|
|
|
5846
5868
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5847
5869
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5848
5870
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
5871
|
+
"adjust_installment": {
|
|
5872
|
+
"journey_id": "adjust-installment-flow"
|
|
5873
|
+
},
|
|
5849
5874
|
"ui_config": {
|
|
5850
5875
|
"is_filterable": true
|
|
5851
5876
|
},
|
|
@@ -9511,6 +9536,16 @@ URL-friendly identifier for the entity schema
|
|
|
9511
9536
|
type EntitySlug = string
|
|
9512
9537
|
```
|
|
9513
9538
|
|
|
9539
|
+
### `AdjustInstallmentCapabilityConfig`
|
|
9540
|
+
|
|
9541
|
+
Configuration for adjusting a contract installment through a Journey.
|
|
9542
|
+
|
|
9543
|
+
```ts
|
|
9544
|
+
type AdjustInstallmentCapabilityConfig = {
|
|
9545
|
+
journey_id: string
|
|
9546
|
+
}
|
|
9547
|
+
```
|
|
9548
|
+
|
|
9514
9549
|
### `EntityCapability`
|
|
9515
9550
|
|
|
9516
9551
|
Capabilities the Entity has. Turn features on/off for entities.
|