@iveri/contracts 0.87.0 → 0.88.0
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/api/conduit/connector-auth-type.enum.d.ts +15 -1
- package/dist/api/conduit/connector-auth-type.enum.js +14 -0
- package/dist/api/conduit/connector-signature-format.enum.d.ts +18 -0
- package/dist/api/conduit/connector-signature-format.enum.js +19 -0
- package/dist/api/conduit/connector.type.d.ts +24 -0
- package/dist/api/conduit/connector.type.js +7 -0
- package/dist/api/conduit/index.d.ts +1 -0
- package/dist/api/conduit/index.js +1 -0
- package/dist/api/hr/hr-organization.type.d.ts +0 -4
- package/dist/api/hr/index.d.ts +0 -5
- package/dist/api/hr/index.js +0 -5
- package/package.json +1 -1
- package/dist/api/hr/hr-calendar-feed-kind.enum.d.ts +0 -9
- package/dist/api/hr/hr-calendar-feed-kind.enum.js +0 -10
- package/dist/api/hr/hr-calendar-feed.type.d.ts +0 -27
- package/dist/api/hr/hr-calendar-feed.type.js +0 -1
- package/dist/api/hr/hr-stand-in.type.d.ts +0 -27
- package/dist/api/hr/hr-stand-in.type.js +0 -1
- package/dist/api/hr/hr-work-day.type.d.ts +0 -60
- package/dist/api/hr/hr-work-day.type.js +0 -1
- package/dist/api/hr/hr-work-place.enum.d.ts +0 -5
- package/dist/api/hr/hr-work-place.enum.js +0 -6
|
@@ -73,5 +73,19 @@ export declare enum ConnectorAuthType {
|
|
|
73
73
|
* refresh token exists — the key signs a fresh assertion whenever one is needed — so, unlike
|
|
74
74
|
* {@link OAUTH2_REFRESH_TOKEN}, two replicas minting at once costs a token, not a connection.
|
|
75
75
|
*/
|
|
76
|
-
OAUTH2_JWT_BEARER = "oauth2-jwt-bearer"
|
|
76
|
+
OAUTH2_JWT_BEARER = "oauth2-jwt-bearer",
|
|
77
|
+
/**
|
|
78
|
+
* Every request is **signed** with a shared secret, and nothing is sent as a credential.
|
|
79
|
+
*
|
|
80
|
+
* The receiver holds the same secret and recomputes the signature over the bytes it received,
|
|
81
|
+
* so a request that was altered, or forged by somebody without the secret, fails its check.
|
|
82
|
+
* This is how a webhook is authenticated to whoever receives it: Baasi's webhooks to a
|
|
83
|
+
* customer's server are dispatches on a connector of this type.
|
|
84
|
+
*
|
|
85
|
+
* The connection's `secret` credential is the key ({@link CONNECTOR_CREDENTIAL_SECRET}), and
|
|
86
|
+
* the manifest's `signature` names the header and the format. **The signature covers the exact
|
|
87
|
+
* bytes sent and a timestamp of that attempt**, so a retried attempt carries a fresh signature,
|
|
88
|
+
* and a receiver that refuses old timestamps refuses a replayed request.
|
|
89
|
+
*/
|
|
90
|
+
HMAC_SIGNATURE = "hmac-signature"
|
|
77
91
|
}
|
|
@@ -75,4 +75,18 @@ export var ConnectorAuthType;
|
|
|
75
75
|
* {@link OAUTH2_REFRESH_TOKEN}, two replicas minting at once costs a token, not a connection.
|
|
76
76
|
*/
|
|
77
77
|
ConnectorAuthType["OAUTH2_JWT_BEARER"] = "oauth2-jwt-bearer";
|
|
78
|
+
/**
|
|
79
|
+
* Every request is **signed** with a shared secret, and nothing is sent as a credential.
|
|
80
|
+
*
|
|
81
|
+
* The receiver holds the same secret and recomputes the signature over the bytes it received,
|
|
82
|
+
* so a request that was altered, or forged by somebody without the secret, fails its check.
|
|
83
|
+
* This is how a webhook is authenticated to whoever receives it: Baasi's webhooks to a
|
|
84
|
+
* customer's server are dispatches on a connector of this type.
|
|
85
|
+
*
|
|
86
|
+
* The connection's `secret` credential is the key ({@link CONNECTOR_CREDENTIAL_SECRET}), and
|
|
87
|
+
* the manifest's `signature` names the header and the format. **The signature covers the exact
|
|
88
|
+
* bytes sent and a timestamp of that attempt**, so a retried attempt carries a fresh signature,
|
|
89
|
+
* and a receiver that refuses old timestamps refuses a replayed request.
|
|
90
|
+
*/
|
|
91
|
+
ConnectorAuthType["HMAC_SIGNATURE"] = "hmac-signature";
|
|
78
92
|
})(ConnectorAuthType || (ConnectorAuthType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How an `HMAC_SIGNATURE` connector writes the signature header.
|
|
3
|
+
*
|
|
4
|
+
* One format today. A receiver has to implement whichever format it is sent, so each member is a
|
|
5
|
+
* documented, stable wire format rather than a knob.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ConnectorSignatureFormat {
|
|
8
|
+
/**
|
|
9
|
+
* `t=<unix seconds>,v1=<signature>`, where the signature is the lowercase hex HMAC-SHA256 of
|
|
10
|
+
* `<t>.<raw body bytes>` keyed by the connection's secret.
|
|
11
|
+
*
|
|
12
|
+
* Stripe's webhook scheme, chosen because receivers already know how to verify it: split the
|
|
13
|
+
* header on commas, recompute over the timestamp, a dot and the body exactly as received,
|
|
14
|
+
* compare in constant time, and refuse a timestamp older than a few minutes. A request with no
|
|
15
|
+
* body is signed over `<t>.` alone.
|
|
16
|
+
*/
|
|
17
|
+
STRIPE_V1 = "stripe-v1"
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How an `HMAC_SIGNATURE` connector writes the signature header.
|
|
3
|
+
*
|
|
4
|
+
* One format today. A receiver has to implement whichever format it is sent, so each member is a
|
|
5
|
+
* documented, stable wire format rather than a knob.
|
|
6
|
+
*/
|
|
7
|
+
export var ConnectorSignatureFormat;
|
|
8
|
+
(function (ConnectorSignatureFormat) {
|
|
9
|
+
/**
|
|
10
|
+
* `t=<unix seconds>,v1=<signature>`, where the signature is the lowercase hex HMAC-SHA256 of
|
|
11
|
+
* `<t>.<raw body bytes>` keyed by the connection's secret.
|
|
12
|
+
*
|
|
13
|
+
* Stripe's webhook scheme, chosen because receivers already know how to verify it: split the
|
|
14
|
+
* header on commas, recompute over the timestamp, a dot and the body exactly as received,
|
|
15
|
+
* compare in constant time, and refuse a timestamp older than a few minutes. A request with no
|
|
16
|
+
* body is signed over `<t>.` alone.
|
|
17
|
+
*/
|
|
18
|
+
ConnectorSignatureFormat["STRIPE_V1"] = "stripe-v1";
|
|
19
|
+
})(ConnectorSignatureFormat || (ConnectorSignatureFormat = {}));
|
|
@@ -2,6 +2,7 @@ import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
|
2
2
|
import type { Nullable } from '../../type/nil.type.js';
|
|
3
3
|
import type { UUID } from '../../type/uuid.type.js';
|
|
4
4
|
import type { ConnectorAuthType } from './connector-auth-type.enum.js';
|
|
5
|
+
import type { ConnectorSignatureFormat } from './connector-signature-format.enum.js';
|
|
5
6
|
/**
|
|
6
7
|
* Credential names an OAuth manifest expects to find on a connection.
|
|
7
8
|
*
|
|
@@ -23,6 +24,24 @@ export declare const CONNECTOR_CREDENTIAL_REFRESH_TOKEN = "refreshToken";
|
|
|
23
24
|
export declare const CONNECTOR_CREDENTIAL_CLIENT_EMAIL = "clientEmail";
|
|
24
25
|
export declare const CONNECTOR_CREDENTIAL_PRIVATE_KEY = "privateKey";
|
|
25
26
|
export declare const CONNECTOR_CREDENTIAL_PRIVATE_KEY_ID = "privateKeyId";
|
|
27
|
+
/**
|
|
28
|
+
* Credential name an `HMAC_SIGNATURE` manifest signs with.
|
|
29
|
+
*
|
|
30
|
+
* Fixed for the same reason as the OAuth names: the scheme has exactly one secret, so a manifest
|
|
31
|
+
* that could rename it could only name it wrongly.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CONNECTOR_CREDENTIAL_SECRET = "secret";
|
|
34
|
+
/**
|
|
35
|
+
* How a request is signed. `HMAC_SIGNATURE` only.
|
|
36
|
+
*
|
|
37
|
+
* The header and the format are the manifest's; the secret is the connection's, under
|
|
38
|
+
* {@link CONNECTOR_CREDENTIAL_SECRET}.
|
|
39
|
+
*/
|
|
40
|
+
export interface ConnectorRequestSignature {
|
|
41
|
+
/** Lowercase header the signature is sent in, e.g. `baasi-signature`. */
|
|
42
|
+
header: string;
|
|
43
|
+
format: ConnectorSignatureFormat;
|
|
44
|
+
}
|
|
26
45
|
/**
|
|
27
46
|
* How a connector authenticates, as data.
|
|
28
47
|
*
|
|
@@ -108,6 +127,10 @@ export interface ConnectorAuthManifest {
|
|
|
108
127
|
* calendar shared with it directly. Null means it always acts as itself.
|
|
109
128
|
*/
|
|
110
129
|
subjectVariable: Nullable<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Where and how each request is signed. `HMAC_SIGNATURE` only, and required there.
|
|
132
|
+
*/
|
|
133
|
+
signature: Nullable<ConnectorRequestSignature>;
|
|
111
134
|
}
|
|
112
135
|
/** {@link ConnectorAuthManifest} as sent on create/update: nullable fields may simply be omitted. */
|
|
113
136
|
export interface ConnectorAuthManifestInput {
|
|
@@ -123,6 +146,7 @@ export interface ConnectorAuthManifestInput {
|
|
|
123
146
|
personAuthorizationParams?: Nullable<Record<string, string>>;
|
|
124
147
|
tokenObjectPaths?: Nullable<string[]>;
|
|
125
148
|
subjectVariable?: Nullable<string>;
|
|
149
|
+
signature?: Nullable<ConnectorRequestSignature>;
|
|
126
150
|
}
|
|
127
151
|
/**
|
|
128
152
|
* One thing a connector can be asked to do.
|
|
@@ -19,3 +19,10 @@ export const CONNECTOR_CREDENTIAL_REFRESH_TOKEN = 'refreshToken';
|
|
|
19
19
|
export const CONNECTOR_CREDENTIAL_CLIENT_EMAIL = 'clientEmail';
|
|
20
20
|
export const CONNECTOR_CREDENTIAL_PRIVATE_KEY = 'privateKey';
|
|
21
21
|
export const CONNECTOR_CREDENTIAL_PRIVATE_KEY_ID = 'privateKeyId';
|
|
22
|
+
/**
|
|
23
|
+
* Credential name an `HMAC_SIGNATURE` manifest signs with.
|
|
24
|
+
*
|
|
25
|
+
* Fixed for the same reason as the OAuth names: the scheme has exactly one secret, so a manifest
|
|
26
|
+
* that could rename it could only name it wrongly.
|
|
27
|
+
*/
|
|
28
|
+
export const CONNECTOR_CREDENTIAL_SECRET = 'secret';
|
|
@@ -4,6 +4,7 @@ export * from './connect.type.js';
|
|
|
4
4
|
export * from './connection-verification-verdict.enum.js';
|
|
5
5
|
export * from './connection.type.js';
|
|
6
6
|
export * from './connector-auth-type.enum.js';
|
|
7
|
+
export * from './connector-signature-format.enum.js';
|
|
7
8
|
export * from './connector.type.js';
|
|
8
9
|
export * from './delivery-status.enum.js';
|
|
9
10
|
export * from './delivery.type.js';
|
|
@@ -4,6 +4,7 @@ export * from './connect.type.js';
|
|
|
4
4
|
export * from './connection-verification-verdict.enum.js';
|
|
5
5
|
export * from './connection.type.js';
|
|
6
6
|
export * from './connector-auth-type.enum.js';
|
|
7
|
+
export * from './connector-signature-format.enum.js';
|
|
7
8
|
export * from './connector.type.js';
|
|
8
9
|
export * from './delivery-status.enum.js';
|
|
9
10
|
export * from './delivery.type.js';
|
|
@@ -15,8 +15,6 @@ export interface HrCompany {
|
|
|
15
15
|
pensionEmployerBasisPoints: number;
|
|
16
16
|
careersSlug: string | null;
|
|
17
17
|
applicantRetentionDays: number;
|
|
18
|
-
/** How many days in one Monday-to-Sunday week somebody may work from home, or null for no limit. */
|
|
19
|
-
homeDaysPerWeek: Nullable<number>;
|
|
20
18
|
}
|
|
21
19
|
export interface HrDepartment {
|
|
22
20
|
id: UUID;
|
|
@@ -73,8 +71,6 @@ export interface UpdateHrCompanyRequest {
|
|
|
73
71
|
pensionEmployerBasisPoints?: number;
|
|
74
72
|
careersSlug?: string;
|
|
75
73
|
applicantRetentionDays?: number;
|
|
76
|
-
/** Null lifts the limit. */
|
|
77
|
-
homeDaysPerWeek?: Nullable<number>;
|
|
78
74
|
}
|
|
79
75
|
export interface UpdateHrDepartmentRequest {
|
|
80
76
|
name?: string;
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export * from './hr-attendance-correction-status.enum.js';
|
|
|
6
6
|
export * from './hr-attendance-source.enum.js';
|
|
7
7
|
export * from './hr-attendance-state.enum.js';
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
|
-
export * from './hr-calendar-feed-kind.enum.js';
|
|
10
|
-
export * from './hr-calendar-feed.type.js';
|
|
11
9
|
export * from './hr-celebration.type.js';
|
|
12
10
|
export * from './hr-checklist-kind.enum.js';
|
|
13
11
|
export * from './hr-compensation.type.js';
|
|
@@ -56,7 +54,6 @@ export * from './hr-resource-status.enum.js';
|
|
|
56
54
|
export * from './hr-review-cycle-status.enum.js';
|
|
57
55
|
export * from './hr-review-question-kind.enum.js';
|
|
58
56
|
export * from './hr-review-status.enum.js';
|
|
59
|
-
export * from './hr-stand-in.type.js';
|
|
60
57
|
export * from './hr-survey-audience.enum.js';
|
|
61
58
|
export * from './hr-survey-group-kind.enum.js';
|
|
62
59
|
export * from './hr-survey-question-kind.enum.js';
|
|
@@ -68,6 +65,4 @@ export * from './hr-team-role.enum.js';
|
|
|
68
65
|
export * from './hr-team.type.js';
|
|
69
66
|
export * from './hr-thanks.type.js';
|
|
70
67
|
export * from './hr-time-off.type.js';
|
|
71
|
-
export * from './hr-work-day.type.js';
|
|
72
|
-
export * from './hr-work-place.enum.js';
|
|
73
68
|
export * from './localized-text.type.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -6,8 +6,6 @@ export * from './hr-attendance-correction-status.enum.js';
|
|
|
6
6
|
export * from './hr-attendance-source.enum.js';
|
|
7
7
|
export * from './hr-attendance-state.enum.js';
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
|
-
export * from './hr-calendar-feed-kind.enum.js';
|
|
10
|
-
export * from './hr-calendar-feed.type.js';
|
|
11
9
|
export * from './hr-celebration.type.js';
|
|
12
10
|
export * from './hr-checklist-kind.enum.js';
|
|
13
11
|
export * from './hr-compensation.type.js';
|
|
@@ -56,7 +54,6 @@ export * from './hr-resource-status.enum.js';
|
|
|
56
54
|
export * from './hr-review-cycle-status.enum.js';
|
|
57
55
|
export * from './hr-review-question-kind.enum.js';
|
|
58
56
|
export * from './hr-review-status.enum.js';
|
|
59
|
-
export * from './hr-stand-in.type.js';
|
|
60
57
|
export * from './hr-survey-audience.enum.js';
|
|
61
58
|
export * from './hr-survey-group-kind.enum.js';
|
|
62
59
|
export * from './hr-survey-question-kind.enum.js';
|
|
@@ -68,6 +65,4 @@ export * from './hr-team-role.enum.js';
|
|
|
68
65
|
export * from './hr-team.type.js';
|
|
69
66
|
export * from './hr-thanks.type.js';
|
|
70
67
|
export * from './hr-time-off.type.js';
|
|
71
|
-
export * from './hr-work-day.type.js';
|
|
72
|
-
export * from './hr-work-place.enum.js';
|
|
73
68
|
export * from './localized-text.type.js';
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a calendar subscription follows: a person's own time off, one of their teams, or the whole company.
|
|
3
|
-
* Colleagues' entries say who and when, never which kind of leave.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum HrCalendarFeedKind {
|
|
6
|
-
MINE = "mine",
|
|
7
|
-
TEAM = "team",
|
|
8
|
-
COMPANY = "company"
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a calendar subscription follows: a person's own time off, one of their teams, or the whole company.
|
|
3
|
-
* Colleagues' entries say who and when, never which kind of leave.
|
|
4
|
-
*/
|
|
5
|
-
export var HrCalendarFeedKind;
|
|
6
|
-
(function (HrCalendarFeedKind) {
|
|
7
|
-
HrCalendarFeedKind["MINE"] = "mine";
|
|
8
|
-
HrCalendarFeedKind["TEAM"] = "team";
|
|
9
|
-
HrCalendarFeedKind["COMPANY"] = "company";
|
|
10
|
-
})(HrCalendarFeedKind || (HrCalendarFeedKind = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
-
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
-
import type { UUID } from '../../type/uuid.type.js';
|
|
4
|
-
import type { HrCalendarFeedKind } from './hr-calendar-feed-kind.enum.js';
|
|
5
|
-
/** A private address a calendar app subscribes to. The address itself is shown once, when it is made. */
|
|
6
|
-
export interface HrCalendarFeed {
|
|
7
|
-
id: UUID;
|
|
8
|
-
kind: HrCalendarFeedKind;
|
|
9
|
-
teamId: Nullable<UUID>;
|
|
10
|
-
teamName: Nullable<string>;
|
|
11
|
-
/** The language leave types and public holidays are named in. */
|
|
12
|
-
locale: string;
|
|
13
|
-
createdAt: IsoDateTime;
|
|
14
|
-
/** When a calendar app last fetched it, so a person can tell whether their subscription works. */
|
|
15
|
-
lastReadAt: Nullable<IsoDateTime>;
|
|
16
|
-
}
|
|
17
|
-
/** A new address, which replaces any earlier one for the same calendar. */
|
|
18
|
-
export interface HrCalendarFeedCreated extends HrCalendarFeed {
|
|
19
|
-
/** Relative to the API's versioned root, such as `calendar-feeds/<secret>/calendar.ics`. */
|
|
20
|
-
path: string;
|
|
21
|
-
}
|
|
22
|
-
export interface HrCreateCalendarFeedRequest {
|
|
23
|
-
kind: HrCalendarFeedKind;
|
|
24
|
-
/** Required for a team's calendar, and refused for the others. */
|
|
25
|
-
teamId?: Nullable<UUID>;
|
|
26
|
-
locale: string;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { UUID } from '../../type/uuid.type.js';
|
|
2
|
-
/**
|
|
3
|
-
* A colleague who, while somebody is away, decides what that person would have: the time off and the expense claims of
|
|
4
|
-
* their reports and of the teams they lead. It covers whole days, both ends included.
|
|
5
|
-
*/
|
|
6
|
-
export interface HrStandIn {
|
|
7
|
-
id: UUID;
|
|
8
|
-
/** Who is away. */
|
|
9
|
-
employeeId: UUID;
|
|
10
|
-
employeeName: string;
|
|
11
|
-
standInEmployeeId: UUID;
|
|
12
|
-
standInName: string;
|
|
13
|
-
startDate: string;
|
|
14
|
-
endDate: string;
|
|
15
|
-
/** Today, in the company's time zone, falls inside the dates. */
|
|
16
|
-
isActive: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** Who stands in for me, and for whom I stand in, from today on. */
|
|
19
|
-
export interface HrMyStandIns {
|
|
20
|
-
mine: HrStandIn[];
|
|
21
|
-
forOthers: HrStandIn[];
|
|
22
|
-
}
|
|
23
|
-
export interface HrSaveStandInRequest {
|
|
24
|
-
standInEmployeeId: UUID;
|
|
25
|
-
startDate: string;
|
|
26
|
-
endDate: string;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from '../../type/nil.type.js';
|
|
2
|
-
import type { UUID } from '../../type/uuid.type.js';
|
|
3
|
-
import type { HrWorkPlace } from './hr-work-place.enum.js';
|
|
4
|
-
/** One day of somebody's own week, planned or not. */
|
|
5
|
-
export interface HrMyWorkDay {
|
|
6
|
-
date: string;
|
|
7
|
-
/** One of the company's working weekdays and not a public holiday. */
|
|
8
|
-
isWorkingDay: boolean;
|
|
9
|
-
holidayName: Nullable<string>;
|
|
10
|
-
/** Time off, agreed or waiting, covers it. */
|
|
11
|
-
isAway: boolean;
|
|
12
|
-
/** Null until the person says where they will work. */
|
|
13
|
-
place: Nullable<HrWorkPlace>;
|
|
14
|
-
/** The office, on an office day. */
|
|
15
|
-
locationId: Nullable<UUID>;
|
|
16
|
-
locationName: Nullable<string>;
|
|
17
|
-
}
|
|
18
|
-
/** An office somebody can say they will work at. */
|
|
19
|
-
export interface HrWorkOffice {
|
|
20
|
-
id: UUID;
|
|
21
|
-
name: string;
|
|
22
|
-
city: Nullable<string>;
|
|
23
|
-
}
|
|
24
|
-
/** Somebody's own plan for a stretch of days, with what they need to make it. */
|
|
25
|
-
export interface HrMyWorkDays {
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
|
-
/** How many days in one Monday-to-Sunday week the company lets somebody work from home, or null for no limit. */
|
|
29
|
-
homeDaysPerWeek: Nullable<number>;
|
|
30
|
-
/** The office a day is placed at when the person names none. */
|
|
31
|
-
defaultLocationId: Nullable<UUID>;
|
|
32
|
-
offices: HrWorkOffice[];
|
|
33
|
-
days: HrMyWorkDay[];
|
|
34
|
-
}
|
|
35
|
-
export interface HrSaveWorkDayRequest {
|
|
36
|
-
place: HrWorkPlace;
|
|
37
|
-
/** Which office, on an office day. Left out, it is the person's own office; a home day names none. */
|
|
38
|
-
locationId?: Nullable<UUID>;
|
|
39
|
-
}
|
|
40
|
-
/** Somebody who has said where they will work on a day. */
|
|
41
|
-
export interface HrWorkDayPerson {
|
|
42
|
-
employeeId: UUID;
|
|
43
|
-
name: string;
|
|
44
|
-
jobTitle: Nullable<string>;
|
|
45
|
-
}
|
|
46
|
-
/** Everybody who will be at one office on a day. An office day with no office named has a null location. */
|
|
47
|
-
export interface HrWorkDayOffice {
|
|
48
|
-
locationId: Nullable<UUID>;
|
|
49
|
-
locationName: Nullable<string>;
|
|
50
|
-
people: HrWorkDayPerson[];
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Who has said where they will work on a day, by office, and who will be at home. Nobody away that day is in it, and
|
|
54
|
-
* nobody who has not said.
|
|
55
|
-
*/
|
|
56
|
-
export interface HrWhoIsIn {
|
|
57
|
-
date: string;
|
|
58
|
-
offices: HrWorkDayOffice[];
|
|
59
|
-
home: HrWorkDayPerson[];
|
|
60
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|