@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.
Files changed (79) hide show
  1. package/dist/api/chat/chat-attachment-kind.enum.d.ts +6 -0
  2. package/dist/api/chat/chat-attachment-kind.enum.js +7 -0
  3. package/dist/api/chat/chat-attachment.type.d.ts +36 -0
  4. package/dist/api/chat/chat-attachment.type.js +1 -0
  5. package/dist/api/chat/chat-case-decision.enum.d.ts +8 -0
  6. package/dist/api/chat/chat-case-decision.enum.js +9 -0
  7. package/dist/api/chat/chat-case-status.enum.d.ts +5 -0
  8. package/dist/api/chat/chat-case-status.enum.js +6 -0
  9. package/dist/api/chat/chat-contact.type.d.ts +38 -0
  10. package/dist/api/chat/chat-contact.type.js +1 -0
  11. package/dist/api/chat/chat-conversation-kind.enum.d.ts +6 -0
  12. package/dist/api/chat/chat-conversation-kind.enum.js +7 -0
  13. package/dist/api/chat/chat-conversation.type.d.ts +120 -0
  14. package/dist/api/chat/chat-conversation.type.js +1 -0
  15. package/dist/api/chat/chat-device-platform.enum.d.ts +5 -0
  16. package/dist/api/chat/chat-device-platform.enum.js +6 -0
  17. package/dist/api/chat/chat-embed.type.d.ts +57 -0
  18. package/dist/api/chat/chat-embed.type.js +1 -0
  19. package/dist/api/chat/chat-limits.constant.d.ts +37 -0
  20. package/dist/api/chat/chat-limits.constant.js +37 -0
  21. package/dist/api/chat/chat-message-kind.enum.d.ts +8 -0
  22. package/dist/api/chat/chat-message-kind.enum.js +9 -0
  23. package/dist/api/chat/chat-message.type.d.ts +73 -0
  24. package/dist/api/chat/chat-message.type.js +1 -0
  25. package/dist/api/chat/chat-moderation.type.d.ts +107 -0
  26. package/dist/api/chat/chat-moderation.type.js +1 -0
  27. package/dist/api/chat/chat-participant-role.enum.d.ts +6 -0
  28. package/dist/api/chat/chat-participant-role.enum.js +7 -0
  29. package/dist/api/chat/chat-participant-status.enum.d.ts +7 -0
  30. package/dist/api/chat/chat-participant-status.enum.js +8 -0
  31. package/dist/api/chat/chat-person-status.enum.d.ts +6 -0
  32. package/dist/api/chat/chat-person-status.enum.js +7 -0
  33. package/dist/api/chat/chat-person.type.d.ts +52 -0
  34. package/dist/api/chat/chat-person.type.js +1 -0
  35. package/dist/api/chat/chat-realtime-event.enum.d.ts +6 -0
  36. package/dist/api/chat/chat-realtime-event.enum.js +7 -0
  37. package/dist/api/chat/chat-realtime.type.d.ts +20 -0
  38. package/dist/api/chat/chat-realtime.type.js +1 -0
  39. package/dist/api/chat/chat-refusal.enum.d.ts +19 -0
  40. package/dist/api/chat/chat-refusal.enum.js +20 -0
  41. package/dist/api/chat/chat-report-reason.enum.d.ts +12 -0
  42. package/dist/api/chat/chat-report-reason.enum.js +13 -0
  43. package/dist/api/chat/chat-report-target.enum.d.ts +5 -0
  44. package/dist/api/chat/chat-report-target.enum.js +6 -0
  45. package/dist/api/chat/index.d.ts +22 -0
  46. package/dist/api/chat/index.js +22 -0
  47. package/dist/api/hr/hr-application-stage.enum.d.ts +10 -0
  48. package/dist/api/hr/hr-application-stage.enum.js +11 -0
  49. package/dist/api/hr/hr-attendance-correction-status.enum.d.ts +6 -0
  50. package/dist/api/hr/hr-attendance-correction-status.enum.js +7 -0
  51. package/dist/api/hr/hr-attendance-source.enum.d.ts +6 -0
  52. package/dist/api/hr/hr-attendance-source.enum.js +7 -0
  53. package/dist/api/hr/hr-attendance-state.enum.d.ts +7 -0
  54. package/dist/api/hr/hr-attendance-state.enum.js +8 -0
  55. package/dist/api/hr/hr-checklist-kind.enum.d.ts +5 -0
  56. package/dist/api/hr/hr-checklist-kind.enum.js +6 -0
  57. package/dist/api/hr/hr-document-audience.enum.d.ts +5 -0
  58. package/dist/api/hr/hr-document-audience.enum.js +6 -0
  59. package/dist/api/hr/hr-goal-status.enum.d.ts +6 -0
  60. package/dist/api/hr/hr-goal-status.enum.js +7 -0
  61. package/dist/api/hr/hr-opening-status.enum.d.ts +6 -0
  62. package/dist/api/hr/hr-opening-status.enum.js +7 -0
  63. package/dist/api/hr/hr-pay-item-kind.enum.d.ts +5 -0
  64. package/dist/api/hr/hr-pay-item-kind.enum.js +6 -0
  65. package/dist/api/hr/hr-payroll-run-status.enum.d.ts +6 -0
  66. package/dist/api/hr/hr-payroll-run-status.enum.js +7 -0
  67. package/dist/api/hr/hr-review-cycle-status.enum.d.ts +6 -0
  68. package/dist/api/hr/hr-review-cycle-status.enum.js +7 -0
  69. package/dist/api/hr/hr-review-status.enum.d.ts +5 -0
  70. package/dist/api/hr/hr-review-status.enum.js +6 -0
  71. package/dist/api/hr/hr-task-assignee.enum.d.ts +6 -0
  72. package/dist/api/hr/hr-task-assignee.enum.js +7 -0
  73. package/dist/api/hr/hr-task-status.enum.d.ts +6 -0
  74. package/dist/api/hr/hr-task-status.enum.js +7 -0
  75. package/dist/api/hr/index.d.ts +14 -0
  76. package/dist/api/hr/index.js +14 -0
  77. package/dist/enum/user-permission.enum.d.ts +13 -1
  78. package/dist/enum/user-permission.enum.js +13 -0
  79. 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,6 @@
1
+ /** Whether somebody may use Baasi. A suspended or banned person can still sign in and read why. */
2
+ export declare enum ChatPersonStatus {
3
+ ACTIVE = "active",
4
+ SUSPENDED = "suspended",
5
+ BANNED = "banned"
6
+ }
@@ -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,5 @@
1
+ /** What a report is about. */
2
+ export declare enum ChatReportTarget {
3
+ MESSAGE = "message",
4
+ PERSON = "person"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** What a report is about. */
2
+ export var ChatReportTarget;
3
+ (function (ChatReportTarget) {
4
+ ChatReportTarget["MESSAGE"] = "message";
5
+ ChatReportTarget["PERSON"] = "person";
6
+ })(ChatReportTarget || (ChatReportTarget = {}));
@@ -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,10 @@
1
+ /** Where somebody is in a hiring pipeline. */
2
+ export declare enum HrApplicationStage {
3
+ NEW = "new",
4
+ SCREENING = "screening",
5
+ INTERVIEW = "interview",
6
+ OFFER = "offer",
7
+ HIRED = "hired",
8
+ REJECTED = "rejected",
9
+ WITHDRAWN = "withdrawn"
10
+ }
@@ -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,6 @@
1
+ /** Where a request to change an attendance entry stands. */
2
+ export declare enum HrAttendanceCorrectionStatus {
3
+ PENDING = "pending",
4
+ APPROVED = "approved",
5
+ REJECTED = "rejected"
6
+ }
@@ -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,6 @@
1
+ /** How an attendance entry came to exist. */
2
+ export declare enum HrAttendanceSource {
3
+ SELF = "self",
4
+ HR = "hr",
5
+ CORRECTION = "correction"
6
+ }
@@ -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,7 @@
1
+ /** Where somebody is today, worked out from their entries and approved leave. */
2
+ export declare enum HrAttendanceState {
3
+ IN = "in",
4
+ OUT = "out",
5
+ AWAY = "away",
6
+ NOT_IN = "not-in"
7
+ }
@@ -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,5 @@
1
+ /** Whether a checklist is for somebody arriving or leaving. */
2
+ export declare enum HrChecklistKind {
3
+ ONBOARDING = "onboarding",
4
+ OFFBOARDING = "offboarding"
5
+ }
@@ -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,5 @@
1
+ /** Who can read a document besides HR. */
2
+ export declare enum HrDocumentAudience {
3
+ HR_ONLY = "hr-only",
4
+ EMPLOYEE = "employee"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Who can read a document besides HR. */
2
+ export var HrDocumentAudience;
3
+ (function (HrDocumentAudience) {
4
+ HrDocumentAudience["HR_ONLY"] = "hr-only";
5
+ HrDocumentAudience["EMPLOYEE"] = "employee";
6
+ })(HrDocumentAudience || (HrDocumentAudience = {}));
@@ -0,0 +1,6 @@
1
+ /** Where a goal stands. */
2
+ export declare enum HrGoalStatus {
3
+ ACTIVE = "active",
4
+ DONE = "done",
5
+ DROPPED = "dropped"
6
+ }
@@ -0,0 +1,7 @@
1
+ /** Where a goal stands. */
2
+ export var HrGoalStatus;
3
+ (function (HrGoalStatus) {
4
+ HrGoalStatus["ACTIVE"] = "active";
5
+ HrGoalStatus["DONE"] = "done";
6
+ HrGoalStatus["DROPPED"] = "dropped";
7
+ })(HrGoalStatus || (HrGoalStatus = {}));
@@ -0,0 +1,6 @@
1
+ /** Whether a job is being advertised. */
2
+ export declare enum HrOpeningStatus {
3
+ DRAFT = "draft",
4
+ OPEN = "open",
5
+ CLOSED = "closed"
6
+ }
@@ -0,0 +1,7 @@
1
+ /** Whether a job is being advertised. */
2
+ export var HrOpeningStatus;
3
+ (function (HrOpeningStatus) {
4
+ HrOpeningStatus["DRAFT"] = "draft";
5
+ HrOpeningStatus["OPEN"] = "open";
6
+ HrOpeningStatus["CLOSED"] = "closed";
7
+ })(HrOpeningStatus || (HrOpeningStatus = {}));
@@ -0,0 +1,5 @@
1
+ /** Whether an item adds to or takes from somebody's pay. */
2
+ export declare enum HrPayItemKind {
3
+ ADDITION = "addition",
4
+ DEDUCTION = "deduction"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Whether an item adds to or takes from somebody's pay. */
2
+ export var HrPayItemKind;
3
+ (function (HrPayItemKind) {
4
+ HrPayItemKind["ADDITION"] = "addition";
5
+ HrPayItemKind["DEDUCTION"] = "deduction";
6
+ })(HrPayItemKind || (HrPayItemKind = {}));
@@ -0,0 +1,6 @@
1
+ /** Where a monthly pay run stands. Approval freezes it. */
2
+ export declare enum HrPayrollRunStatus {
3
+ DRAFT = "draft",
4
+ CALCULATED = "calculated",
5
+ APPROVED = "approved"
6
+ }
@@ -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,6 @@
1
+ /** Where a review round stands. */
2
+ export declare enum HrReviewCycleStatus {
3
+ DRAFT = "draft",
4
+ OPEN = "open",
5
+ CLOSED = "closed"
6
+ }
@@ -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 = {}));
@@ -0,0 +1,5 @@
1
+ /** Where one person's review stands. */
2
+ export declare enum HrReviewStatus {
3
+ PENDING = "pending",
4
+ SUBMITTED = "submitted"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Where one person's review stands. */
2
+ export var HrReviewStatus;
3
+ (function (HrReviewStatus) {
4
+ HrReviewStatus["PENDING"] = "pending";
5
+ HrReviewStatus["SUBMITTED"] = "submitted";
6
+ })(HrReviewStatus || (HrReviewStatus = {}));
@@ -0,0 +1,6 @@
1
+ /** Who a checklist task falls to. */
2
+ export declare enum HrTaskAssignee {
3
+ EMPLOYEE = "employee",
4
+ MANAGER = "manager",
5
+ HR = "hr"
6
+ }
@@ -0,0 +1,7 @@
1
+ /** Who a checklist task falls to. */
2
+ export var HrTaskAssignee;
3
+ (function (HrTaskAssignee) {
4
+ HrTaskAssignee["EMPLOYEE"] = "employee";
5
+ HrTaskAssignee["MANAGER"] = "manager";
6
+ HrTaskAssignee["HR"] = "hr";
7
+ })(HrTaskAssignee || (HrTaskAssignee = {}));
@@ -0,0 +1,6 @@
1
+ /** Where a checklist task stands. */
2
+ export declare enum HrTaskStatus {
3
+ OPEN = "open",
4
+ DONE = "done",
5
+ SKIPPED = "skipped"
6
+ }
@@ -0,0 +1,7 @@
1
+ /** Where a checklist task stands. */
2
+ export var HrTaskStatus;
3
+ (function (HrTaskStatus) {
4
+ HrTaskStatus["OPEN"] = "open";
5
+ HrTaskStatus["DONE"] = "done";
6
+ HrTaskStatus["SKIPPED"] = "skipped";
7
+ })(HrTaskStatus || (HrTaskStatus = {}));
@@ -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';
@@ -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.68.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"