@iveri/contracts 0.68.0 → 0.70.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/chat/chat-attachment-kind.enum.d.ts +6 -0
- package/dist/api/chat/chat-attachment-kind.enum.js +7 -0
- package/dist/api/chat/chat-attachment.type.d.ts +36 -0
- package/dist/api/chat/chat-attachment.type.js +1 -0
- package/dist/api/chat/chat-case-decision.enum.d.ts +8 -0
- package/dist/api/chat/chat-case-decision.enum.js +9 -0
- package/dist/api/chat/chat-case-status.enum.d.ts +5 -0
- package/dist/api/chat/chat-case-status.enum.js +6 -0
- package/dist/api/chat/chat-contact.type.d.ts +38 -0
- package/dist/api/chat/chat-contact.type.js +1 -0
- package/dist/api/chat/chat-conversation-kind.enum.d.ts +6 -0
- package/dist/api/chat/chat-conversation-kind.enum.js +7 -0
- package/dist/api/chat/chat-conversation.type.d.ts +120 -0
- package/dist/api/chat/chat-conversation.type.js +1 -0
- package/dist/api/chat/chat-device-platform.enum.d.ts +5 -0
- package/dist/api/chat/chat-device-platform.enum.js +6 -0
- package/dist/api/chat/chat-embed.type.d.ts +57 -0
- package/dist/api/chat/chat-embed.type.js +1 -0
- package/dist/api/chat/chat-limits.constant.d.ts +37 -0
- package/dist/api/chat/chat-limits.constant.js +37 -0
- package/dist/api/chat/chat-message-kind.enum.d.ts +8 -0
- package/dist/api/chat/chat-message-kind.enum.js +9 -0
- package/dist/api/chat/chat-message.type.d.ts +73 -0
- package/dist/api/chat/chat-message.type.js +1 -0
- package/dist/api/chat/chat-moderation.type.d.ts +107 -0
- package/dist/api/chat/chat-moderation.type.js +1 -0
- package/dist/api/chat/chat-participant-role.enum.d.ts +6 -0
- package/dist/api/chat/chat-participant-role.enum.js +7 -0
- package/dist/api/chat/chat-participant-status.enum.d.ts +7 -0
- package/dist/api/chat/chat-participant-status.enum.js +8 -0
- package/dist/api/chat/chat-person-status.enum.d.ts +6 -0
- package/dist/api/chat/chat-person-status.enum.js +7 -0
- package/dist/api/chat/chat-person.type.d.ts +52 -0
- package/dist/api/chat/chat-person.type.js +1 -0
- package/dist/api/chat/chat-realtime-event.enum.d.ts +6 -0
- package/dist/api/chat/chat-realtime-event.enum.js +7 -0
- package/dist/api/chat/chat-realtime.type.d.ts +20 -0
- package/dist/api/chat/chat-realtime.type.js +1 -0
- package/dist/api/chat/chat-refusal.enum.d.ts +19 -0
- package/dist/api/chat/chat-refusal.enum.js +20 -0
- package/dist/api/chat/chat-report-reason.enum.d.ts +12 -0
- package/dist/api/chat/chat-report-reason.enum.js +13 -0
- package/dist/api/chat/chat-report-target.enum.d.ts +5 -0
- package/dist/api/chat/chat-report-target.enum.js +6 -0
- package/dist/api/chat/index.d.ts +22 -0
- package/dist/api/chat/index.js +22 -0
- package/dist/api/hr/hr-application-stage.enum.d.ts +10 -0
- package/dist/api/hr/hr-application-stage.enum.js +11 -0
- package/dist/api/hr/hr-attendance-correction-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-attendance-correction-status.enum.js +7 -0
- package/dist/api/hr/hr-attendance-source.enum.d.ts +6 -0
- package/dist/api/hr/hr-attendance-source.enum.js +7 -0
- package/dist/api/hr/hr-attendance-state.enum.d.ts +7 -0
- package/dist/api/hr/hr-attendance-state.enum.js +8 -0
- package/dist/api/hr/hr-checklist-kind.enum.d.ts +5 -0
- package/dist/api/hr/hr-checklist-kind.enum.js +6 -0
- package/dist/api/hr/hr-document-audience.enum.d.ts +5 -0
- package/dist/api/hr/hr-document-audience.enum.js +6 -0
- package/dist/api/hr/hr-goal-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-goal-status.enum.js +7 -0
- package/dist/api/hr/hr-opening-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-opening-status.enum.js +7 -0
- package/dist/api/hr/hr-pay-item-kind.enum.d.ts +5 -0
- package/dist/api/hr/hr-pay-item-kind.enum.js +6 -0
- package/dist/api/hr/hr-payroll-run-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-payroll-run-status.enum.js +7 -0
- package/dist/api/hr/hr-review-cycle-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-review-cycle-status.enum.js +7 -0
- package/dist/api/hr/hr-review-status.enum.d.ts +5 -0
- package/dist/api/hr/hr-review-status.enum.js +6 -0
- package/dist/api/hr/hr-task-assignee.enum.d.ts +6 -0
- package/dist/api/hr/hr-task-assignee.enum.js +7 -0
- package/dist/api/hr/hr-task-status.enum.d.ts +6 -0
- package/dist/api/hr/hr-task-status.enum.js +7 -0
- package/dist/api/hr/index.d.ts +14 -0
- package/dist/api/hr/index.js +14 -0
- package/dist/enum/user-permission.enum.d.ts +13 -1
- package/dist/enum/user-permission.enum.js +13 -0
- package/package.json +5 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Where somebody stands in a conversation. `request` waits for them to accept it, and the sender cannot see whether it was read until they do. */
|
|
2
|
+
export var ChatParticipantStatus;
|
|
3
|
+
(function (ChatParticipantStatus) {
|
|
4
|
+
ChatParticipantStatus["ACTIVE"] = "active";
|
|
5
|
+
ChatParticipantStatus["REQUEST"] = "request";
|
|
6
|
+
ChatParticipantStatus["LEFT"] = "left";
|
|
7
|
+
ChatParticipantStatus["REMOVED"] = "removed";
|
|
8
|
+
})(ChatParticipantStatus || (ChatParticipantStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Whether somebody may use Baasi. A suspended or banned person can still sign in and read why. */
|
|
2
|
+
export var ChatPersonStatus;
|
|
3
|
+
(function (ChatPersonStatus) {
|
|
4
|
+
ChatPersonStatus["ACTIVE"] = "active";
|
|
5
|
+
ChatPersonStatus["SUSPENDED"] = "suspended";
|
|
6
|
+
ChatPersonStatus["BANNED"] = "banned";
|
|
7
|
+
})(ChatPersonStatus || (ChatPersonStatus = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ChatImage } from './chat-attachment.type.js';
|
|
5
|
+
import type { ChatPersonStatus } from './chat-person-status.enum.js';
|
|
6
|
+
/** Somebody as another person sees them. Nothing here is an email address or a phone number. */
|
|
7
|
+
export interface ChatPersonCard {
|
|
8
|
+
userId: UUID;
|
|
9
|
+
displayName: string;
|
|
10
|
+
/** Only in the Baasi network. A person inside a product has none. */
|
|
11
|
+
handle: Nullable<string>;
|
|
12
|
+
avatar: Nullable<ChatImage>;
|
|
13
|
+
/** Null when they hide it, or when the reader shares no conversation with them. */
|
|
14
|
+
lastActiveAt: Nullable<IsoDateTime>;
|
|
15
|
+
}
|
|
16
|
+
export interface ChatSettings {
|
|
17
|
+
/** Whether people who share a conversation with me can see when I was last active. */
|
|
18
|
+
showLastActive: boolean;
|
|
19
|
+
/** Whether my read state is shown in one-to-one conversations. */
|
|
20
|
+
sendReadReceipts: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** The signed-in person's own profile. */
|
|
23
|
+
export interface ChatProfile {
|
|
24
|
+
userId: UUID;
|
|
25
|
+
/** True in the Baasi tenant. Elsewhere a person only uses conversations their product opened. */
|
|
26
|
+
isNetwork: boolean;
|
|
27
|
+
/** False until a Baasi person has chosen a handle and a name. */
|
|
28
|
+
hasProfile: boolean;
|
|
29
|
+
handle: Nullable<string>;
|
|
30
|
+
displayName: Nullable<string>;
|
|
31
|
+
bio: Nullable<string>;
|
|
32
|
+
avatar: Nullable<ChatImage>;
|
|
33
|
+
status: ChatPersonStatus;
|
|
34
|
+
/** Set while suspended or banned, translated by the client. */
|
|
35
|
+
sanctionReasonKey: Nullable<string>;
|
|
36
|
+
suspendedUntil: Nullable<IsoDateTime>;
|
|
37
|
+
settings: ChatSettings;
|
|
38
|
+
/** The personal invitation code, which anybody can use to start a conversation with me. */
|
|
39
|
+
inviteCode: Nullable<string>;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateChatProfileRequest {
|
|
42
|
+
handle: string;
|
|
43
|
+
displayName: string;
|
|
44
|
+
}
|
|
45
|
+
export interface UpdateChatProfileRequest {
|
|
46
|
+
handle?: string;
|
|
47
|
+
displayName?: string;
|
|
48
|
+
bio?: Nullable<string>;
|
|
49
|
+
/** An uploaded photo attachment. `null` removes the photograph. */
|
|
50
|
+
avatarAttachmentId?: Nullable<UUID>;
|
|
51
|
+
settings?: Partial<ChatSettings>;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** What a socket frame says. Identifiers only: a client refetches from `chat-api`, the one thing that knows what that reader may see. */
|
|
2
|
+
export declare enum ChatRealtimeEvent {
|
|
3
|
+
CONVERSATION_UPDATED = "chat.conversation.updated",
|
|
4
|
+
CONVERSATION_TYPING = "chat.conversation.typing",
|
|
5
|
+
INBOX_UPDATED = "chat.inbox.updated"
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** What a socket frame says. Identifiers only: a client refetches from `chat-api`, the one thing that knows what that reader may see. */
|
|
2
|
+
export var ChatRealtimeEvent;
|
|
3
|
+
(function (ChatRealtimeEvent) {
|
|
4
|
+
ChatRealtimeEvent["CONVERSATION_UPDATED"] = "chat.conversation.updated";
|
|
5
|
+
ChatRealtimeEvent["CONVERSATION_TYPING"] = "chat.conversation.typing";
|
|
6
|
+
ChatRealtimeEvent["INBOX_UPDATED"] = "chat.inbox.updated";
|
|
7
|
+
})(ChatRealtimeEvent || (ChatRealtimeEvent = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
2
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
3
|
+
import type { ChatDevicePlatform } from './chat-device-platform.enum.js';
|
|
4
|
+
import type { ChatRealtimeEvent } from './chat-realtime-event.enum.js';
|
|
5
|
+
/** What a socket receives. Identifiers only, and never a tenant id. */
|
|
6
|
+
export interface ChatRealtimeFrame {
|
|
7
|
+
event: ChatRealtimeEvent;
|
|
8
|
+
conversationId: Nullable<UUID>;
|
|
9
|
+
/** The conversation's newest sequence number, so a client can tell whether it is behind. */
|
|
10
|
+
seq: Nullable<number>;
|
|
11
|
+
/** Who is typing. */
|
|
12
|
+
userId: Nullable<UUID>;
|
|
13
|
+
}
|
|
14
|
+
/** `PUT /me/devices`. One row per installation; signing out removes it. */
|
|
15
|
+
export interface RegisterChatDeviceRequest {
|
|
16
|
+
installationId: string;
|
|
17
|
+
platform: ChatDevicePlatform;
|
|
18
|
+
pushToken: string;
|
|
19
|
+
locale?: Nullable<string>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** A refusal a person can act on, sent as `details.reason` so a client translates it rather than showing this API's English. */
|
|
2
|
+
export declare enum ChatRefusal {
|
|
3
|
+
BLOCKED = "blocked",
|
|
4
|
+
NOT_WRITABLE = "not-writable",
|
|
5
|
+
CLOSED = "closed",
|
|
6
|
+
EDIT_WINDOW_PASSED = "edit-window-passed",
|
|
7
|
+
DELETE_WINDOW_PASSED = "delete-window-passed",
|
|
8
|
+
NOT_A_PARTICIPANT = "not-a-participant",
|
|
9
|
+
GROUP_FULL = "group-full",
|
|
10
|
+
HANDLE_TAKEN = "handle-taken",
|
|
11
|
+
NETWORK_ONLY = "network-only",
|
|
12
|
+
NO_PROFILE = "no-profile",
|
|
13
|
+
PIN_LIMIT = "pin-limit",
|
|
14
|
+
LAST_OWNER = "last-owner",
|
|
15
|
+
INVITATION_EXPIRED = "invitation-expired",
|
|
16
|
+
SUSPENDED = "suspended",
|
|
17
|
+
ATTACHMENT_REFUSED = "attachment-refused",
|
|
18
|
+
REQUEST_PENDING = "request-pending"
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** A refusal a person can act on, sent as `details.reason` so a client translates it rather than showing this API's English. */
|
|
2
|
+
export var ChatRefusal;
|
|
3
|
+
(function (ChatRefusal) {
|
|
4
|
+
ChatRefusal["BLOCKED"] = "blocked";
|
|
5
|
+
ChatRefusal["NOT_WRITABLE"] = "not-writable";
|
|
6
|
+
ChatRefusal["CLOSED"] = "closed";
|
|
7
|
+
ChatRefusal["EDIT_WINDOW_PASSED"] = "edit-window-passed";
|
|
8
|
+
ChatRefusal["DELETE_WINDOW_PASSED"] = "delete-window-passed";
|
|
9
|
+
ChatRefusal["NOT_A_PARTICIPANT"] = "not-a-participant";
|
|
10
|
+
ChatRefusal["GROUP_FULL"] = "group-full";
|
|
11
|
+
ChatRefusal["HANDLE_TAKEN"] = "handle-taken";
|
|
12
|
+
ChatRefusal["NETWORK_ONLY"] = "network-only";
|
|
13
|
+
ChatRefusal["NO_PROFILE"] = "no-profile";
|
|
14
|
+
ChatRefusal["PIN_LIMIT"] = "pin-limit";
|
|
15
|
+
ChatRefusal["LAST_OWNER"] = "last-owner";
|
|
16
|
+
ChatRefusal["INVITATION_EXPIRED"] = "invitation-expired";
|
|
17
|
+
ChatRefusal["SUSPENDED"] = "suspended";
|
|
18
|
+
ChatRefusal["ATTACHMENT_REFUSED"] = "attachment-refused";
|
|
19
|
+
ChatRefusal["REQUEST_PENDING"] = "request-pending";
|
|
20
|
+
})(ChatRefusal || (ChatRefusal = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Why somebody reported a message or a person. */
|
|
2
|
+
export declare enum ChatReportReason {
|
|
3
|
+
SPAM = "spam",
|
|
4
|
+
HARASSMENT = "harassment",
|
|
5
|
+
HATE = "hate",
|
|
6
|
+
VIOLENCE = "violence",
|
|
7
|
+
SEXUAL_CONTENT = "sexual-content",
|
|
8
|
+
CHILD_SAFETY = "child-safety",
|
|
9
|
+
SCAM = "scam",
|
|
10
|
+
IMPERSONATION = "impersonation",
|
|
11
|
+
OTHER = "other"
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Why somebody reported a message or a person. */
|
|
2
|
+
export var ChatReportReason;
|
|
3
|
+
(function (ChatReportReason) {
|
|
4
|
+
ChatReportReason["SPAM"] = "spam";
|
|
5
|
+
ChatReportReason["HARASSMENT"] = "harassment";
|
|
6
|
+
ChatReportReason["HATE"] = "hate";
|
|
7
|
+
ChatReportReason["VIOLENCE"] = "violence";
|
|
8
|
+
ChatReportReason["SEXUAL_CONTENT"] = "sexual-content";
|
|
9
|
+
ChatReportReason["CHILD_SAFETY"] = "child-safety";
|
|
10
|
+
ChatReportReason["SCAM"] = "scam";
|
|
11
|
+
ChatReportReason["IMPERSONATION"] = "impersonation";
|
|
12
|
+
ChatReportReason["OTHER"] = "other";
|
|
13
|
+
})(ChatReportReason || (ChatReportReason = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './chat-attachment-kind.enum.js';
|
|
2
|
+
export * from './chat-attachment.type.js';
|
|
3
|
+
export * from './chat-case-decision.enum.js';
|
|
4
|
+
export * from './chat-case-status.enum.js';
|
|
5
|
+
export * from './chat-contact.type.js';
|
|
6
|
+
export * from './chat-conversation-kind.enum.js';
|
|
7
|
+
export * from './chat-conversation.type.js';
|
|
8
|
+
export * from './chat-device-platform.enum.js';
|
|
9
|
+
export * from './chat-embed.type.js';
|
|
10
|
+
export * from './chat-limits.constant.js';
|
|
11
|
+
export * from './chat-message-kind.enum.js';
|
|
12
|
+
export * from './chat-message.type.js';
|
|
13
|
+
export * from './chat-moderation.type.js';
|
|
14
|
+
export * from './chat-participant-role.enum.js';
|
|
15
|
+
export * from './chat-participant-status.enum.js';
|
|
16
|
+
export * from './chat-person-status.enum.js';
|
|
17
|
+
export * from './chat-person.type.js';
|
|
18
|
+
export * from './chat-realtime-event.enum.js';
|
|
19
|
+
export * from './chat-realtime.type.js';
|
|
20
|
+
export * from './chat-refusal.enum.js';
|
|
21
|
+
export * from './chat-report-reason.enum.js';
|
|
22
|
+
export * from './chat-report-target.enum.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './chat-attachment-kind.enum.js';
|
|
2
|
+
export * from './chat-attachment.type.js';
|
|
3
|
+
export * from './chat-case-decision.enum.js';
|
|
4
|
+
export * from './chat-case-status.enum.js';
|
|
5
|
+
export * from './chat-contact.type.js';
|
|
6
|
+
export * from './chat-conversation-kind.enum.js';
|
|
7
|
+
export * from './chat-conversation.type.js';
|
|
8
|
+
export * from './chat-device-platform.enum.js';
|
|
9
|
+
export * from './chat-embed.type.js';
|
|
10
|
+
export * from './chat-limits.constant.js';
|
|
11
|
+
export * from './chat-message-kind.enum.js';
|
|
12
|
+
export * from './chat-message.type.js';
|
|
13
|
+
export * from './chat-moderation.type.js';
|
|
14
|
+
export * from './chat-participant-role.enum.js';
|
|
15
|
+
export * from './chat-participant-status.enum.js';
|
|
16
|
+
export * from './chat-person-status.enum.js';
|
|
17
|
+
export * from './chat-person.type.js';
|
|
18
|
+
export * from './chat-realtime-event.enum.js';
|
|
19
|
+
export * from './chat-realtime.type.js';
|
|
20
|
+
export * from './chat-refusal.enum.js';
|
|
21
|
+
export * from './chat-report-reason.enum.js';
|
|
22
|
+
export * from './chat-report-target.enum.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Where somebody is in a hiring pipeline. */
|
|
2
|
+
export var HrApplicationStage;
|
|
3
|
+
(function (HrApplicationStage) {
|
|
4
|
+
HrApplicationStage["NEW"] = "new";
|
|
5
|
+
HrApplicationStage["SCREENING"] = "screening";
|
|
6
|
+
HrApplicationStage["INTERVIEW"] = "interview";
|
|
7
|
+
HrApplicationStage["OFFER"] = "offer";
|
|
8
|
+
HrApplicationStage["HIRED"] = "hired";
|
|
9
|
+
HrApplicationStage["REJECTED"] = "rejected";
|
|
10
|
+
HrApplicationStage["WITHDRAWN"] = "withdrawn";
|
|
11
|
+
})(HrApplicationStage || (HrApplicationStage = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Where a request to change an attendance entry stands. */
|
|
2
|
+
export var HrAttendanceCorrectionStatus;
|
|
3
|
+
(function (HrAttendanceCorrectionStatus) {
|
|
4
|
+
HrAttendanceCorrectionStatus["PENDING"] = "pending";
|
|
5
|
+
HrAttendanceCorrectionStatus["APPROVED"] = "approved";
|
|
6
|
+
HrAttendanceCorrectionStatus["REJECTED"] = "rejected";
|
|
7
|
+
})(HrAttendanceCorrectionStatus || (HrAttendanceCorrectionStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** How an attendance entry came to exist. */
|
|
2
|
+
export var HrAttendanceSource;
|
|
3
|
+
(function (HrAttendanceSource) {
|
|
4
|
+
HrAttendanceSource["SELF"] = "self";
|
|
5
|
+
HrAttendanceSource["HR"] = "hr";
|
|
6
|
+
HrAttendanceSource["CORRECTION"] = "correction";
|
|
7
|
+
})(HrAttendanceSource || (HrAttendanceSource = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Where somebody is today, worked out from their entries and approved leave. */
|
|
2
|
+
export var HrAttendanceState;
|
|
3
|
+
(function (HrAttendanceState) {
|
|
4
|
+
HrAttendanceState["IN"] = "in";
|
|
5
|
+
HrAttendanceState["OUT"] = "out";
|
|
6
|
+
HrAttendanceState["AWAY"] = "away";
|
|
7
|
+
HrAttendanceState["NOT_IN"] = "not-in";
|
|
8
|
+
})(HrAttendanceState || (HrAttendanceState = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Whether a checklist is for somebody arriving or leaving. */
|
|
2
|
+
export var HrChecklistKind;
|
|
3
|
+
(function (HrChecklistKind) {
|
|
4
|
+
HrChecklistKind["ONBOARDING"] = "onboarding";
|
|
5
|
+
HrChecklistKind["OFFBOARDING"] = "offboarding";
|
|
6
|
+
})(HrChecklistKind || (HrChecklistKind = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Where a monthly pay run stands. Approval freezes it. */
|
|
2
|
+
export var HrPayrollRunStatus;
|
|
3
|
+
(function (HrPayrollRunStatus) {
|
|
4
|
+
HrPayrollRunStatus["DRAFT"] = "draft";
|
|
5
|
+
HrPayrollRunStatus["CALCULATED"] = "calculated";
|
|
6
|
+
HrPayrollRunStatus["APPROVED"] = "approved";
|
|
7
|
+
})(HrPayrollRunStatus || (HrPayrollRunStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Where a review round stands. */
|
|
2
|
+
export var HrReviewCycleStatus;
|
|
3
|
+
(function (HrReviewCycleStatus) {
|
|
4
|
+
HrReviewCycleStatus["DRAFT"] = "draft";
|
|
5
|
+
HrReviewCycleStatus["OPEN"] = "open";
|
|
6
|
+
HrReviewCycleStatus["CLOSED"] = "closed";
|
|
7
|
+
})(HrReviewCycleStatus || (HrReviewCycleStatus = {}));
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
export * from './hr-access-action.enum.js';
|
|
2
|
+
export * from './hr-application-stage.enum.js';
|
|
3
|
+
export * from './hr-attendance-correction-status.enum.js';
|
|
4
|
+
export * from './hr-attendance-source.enum.js';
|
|
5
|
+
export * from './hr-attendance-state.enum.js';
|
|
6
|
+
export * from './hr-checklist-kind.enum.js';
|
|
2
7
|
export * from './hr-compensation.type.js';
|
|
8
|
+
export * from './hr-document-audience.enum.js';
|
|
3
9
|
export * from './hr-employee.type.js';
|
|
4
10
|
export * from './hr-employment-event-kind.enum.js';
|
|
5
11
|
export * from './hr-employment-status.enum.js';
|
|
6
12
|
export * from './hr-employment-type.enum.js';
|
|
13
|
+
export * from './hr-goal-status.enum.js';
|
|
7
14
|
export * from './hr-leave-accrual.enum.js';
|
|
8
15
|
export * from './hr-leave-ledger-kind.enum.js';
|
|
9
16
|
export * from './hr-leave-request-status.enum.js';
|
|
10
17
|
export * from './hr-me.type.js';
|
|
18
|
+
export * from './hr-opening-status.enum.js';
|
|
11
19
|
export * from './hr-organization.type.js';
|
|
20
|
+
export * from './hr-pay-item-kind.enum.js';
|
|
12
21
|
export * from './hr-pay-period.enum.js';
|
|
22
|
+
export * from './hr-payroll-run-status.enum.js';
|
|
13
23
|
export * from './hr-resource-status.enum.js';
|
|
24
|
+
export * from './hr-review-cycle-status.enum.js';
|
|
25
|
+
export * from './hr-review-status.enum.js';
|
|
26
|
+
export * from './hr-task-assignee.enum.js';
|
|
27
|
+
export * from './hr-task-status.enum.js';
|
|
14
28
|
export * from './hr-time-off.type.js';
|
|
15
29
|
export * from './localized-text.type.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
export * from './hr-access-action.enum.js';
|
|
2
|
+
export * from './hr-application-stage.enum.js';
|
|
3
|
+
export * from './hr-attendance-correction-status.enum.js';
|
|
4
|
+
export * from './hr-attendance-source.enum.js';
|
|
5
|
+
export * from './hr-attendance-state.enum.js';
|
|
6
|
+
export * from './hr-checklist-kind.enum.js';
|
|
2
7
|
export * from './hr-compensation.type.js';
|
|
8
|
+
export * from './hr-document-audience.enum.js';
|
|
3
9
|
export * from './hr-employee.type.js';
|
|
4
10
|
export * from './hr-employment-event-kind.enum.js';
|
|
5
11
|
export * from './hr-employment-status.enum.js';
|
|
6
12
|
export * from './hr-employment-type.enum.js';
|
|
13
|
+
export * from './hr-goal-status.enum.js';
|
|
7
14
|
export * from './hr-leave-accrual.enum.js';
|
|
8
15
|
export * from './hr-leave-ledger-kind.enum.js';
|
|
9
16
|
export * from './hr-leave-request-status.enum.js';
|
|
10
17
|
export * from './hr-me.type.js';
|
|
18
|
+
export * from './hr-opening-status.enum.js';
|
|
11
19
|
export * from './hr-organization.type.js';
|
|
20
|
+
export * from './hr-pay-item-kind.enum.js';
|
|
12
21
|
export * from './hr-pay-period.enum.js';
|
|
22
|
+
export * from './hr-payroll-run-status.enum.js';
|
|
13
23
|
export * from './hr-resource-status.enum.js';
|
|
24
|
+
export * from './hr-review-cycle-status.enum.js';
|
|
25
|
+
export * from './hr-review-status.enum.js';
|
|
26
|
+
export * from './hr-task-assignee.enum.js';
|
|
27
|
+
export * from './hr-task-status.enum.js';
|
|
14
28
|
export * from './hr-time-off.type.js';
|
|
15
29
|
export * from './localized-text.type.js';
|
|
@@ -596,7 +596,19 @@ export declare enum UserPermission {
|
|
|
596
596
|
/** Change promo codes and the gallery. */
|
|
597
597
|
GYM_MARKETING_MANAGE = "gym:marketing:manage",
|
|
598
598
|
/** See the owner's reports. */
|
|
599
|
-
GYM_REPORT_READ = "gym:report:read"
|
|
599
|
+
GYM_REPORT_READ = "gym:report:read",
|
|
600
|
+
/** Open, reconcile and close conversations about something in a product. Held by that product's service key. */
|
|
601
|
+
CHAT_EMBED_MANAGE = "chat:embed:manage",
|
|
602
|
+
/** See the moderation queue and what a report copied. Every read of a conversation is logged. */
|
|
603
|
+
CHAT_MODERATION_READ = "chat:moderation:read",
|
|
604
|
+
/** Decide a case: dismiss it, remove the message, warn, suspend or ban. */
|
|
605
|
+
CHAT_MODERATION_DECIDE = "chat:moderation:decide",
|
|
606
|
+
/** Look people up, with their record. Never their conversations. */
|
|
607
|
+
CHAT_PERSON_READ = "chat:person:read",
|
|
608
|
+
/** Suspend, ban or reinstate somebody without a report behind it. */
|
|
609
|
+
CHAT_PERSON_SANCTION = "chat:person:sanction",
|
|
610
|
+
/** Read the record of what staff looked at and did. */
|
|
611
|
+
CHAT_AUDIT_READ = "chat:audit:read"
|
|
600
612
|
}
|
|
601
613
|
/**
|
|
602
614
|
* Every member, for seeding the owner role and validating custom-role input.
|
|
@@ -661,6 +661,19 @@ export var UserPermission;
|
|
|
661
661
|
UserPermission["GYM_MARKETING_MANAGE"] = "gym:marketing:manage";
|
|
662
662
|
/** See the owner's reports. */
|
|
663
663
|
UserPermission["GYM_REPORT_READ"] = "gym:report:read";
|
|
664
|
+
// Chat
|
|
665
|
+
/** Open, reconcile and close conversations about something in a product. Held by that product's service key. */
|
|
666
|
+
UserPermission["CHAT_EMBED_MANAGE"] = "chat:embed:manage";
|
|
667
|
+
/** See the moderation queue and what a report copied. Every read of a conversation is logged. */
|
|
668
|
+
UserPermission["CHAT_MODERATION_READ"] = "chat:moderation:read";
|
|
669
|
+
/** Decide a case: dismiss it, remove the message, warn, suspend or ban. */
|
|
670
|
+
UserPermission["CHAT_MODERATION_DECIDE"] = "chat:moderation:decide";
|
|
671
|
+
/** Look people up, with their record. Never their conversations. */
|
|
672
|
+
UserPermission["CHAT_PERSON_READ"] = "chat:person:read";
|
|
673
|
+
/** Suspend, ban or reinstate somebody without a report behind it. */
|
|
674
|
+
UserPermission["CHAT_PERSON_SANCTION"] = "chat:person:sanction";
|
|
675
|
+
/** Read the record of what staff looked at and did. */
|
|
676
|
+
UserPermission["CHAT_AUDIT_READ"] = "chat:audit:read";
|
|
664
677
|
})(UserPermission || (UserPermission = {}));
|
|
665
678
|
/**
|
|
666
679
|
* Every member, for seeding the owner role and validating custom-role input.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iveri/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"types": "./dist/api/clinic/index.d.ts",
|
|
53
53
|
"default": "./dist/api/clinic/index.js"
|
|
54
54
|
},
|
|
55
|
+
"./chat": {
|
|
56
|
+
"types": "./dist/api/chat/index.d.ts",
|
|
57
|
+
"default": "./dist/api/chat/index.js"
|
|
58
|
+
},
|
|
55
59
|
"./social": {
|
|
56
60
|
"types": "./dist/api/social/index.d.ts",
|
|
57
61
|
"default": "./dist/api/social/index.js"
|