@iveri/contracts 0.69.0 → 0.71.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-announcement.type.d.ts +14 -0
- package/dist/api/hr/hr-announcement.type.js +1 -0
- package/dist/api/hr/hr-attendance.type.d.ts +111 -0
- package/dist/api/hr/hr-attendance.type.js +1 -0
- package/dist/api/hr/hr-document.type.d.ts +60 -0
- package/dist/api/hr/hr-document.type.js +1 -0
- package/dist/api/hr/hr-hiring.type.d.ts +99 -0
- package/dist/api/hr/hr-hiring.type.js +1 -0
- package/dist/api/hr/hr-onboarding.type.d.ts +53 -0
- package/dist/api/hr/hr-onboarding.type.js +1 -0
- package/dist/api/hr/hr-one-to-one-role.enum.d.ts +5 -0
- package/dist/api/hr/hr-one-to-one-role.enum.js +6 -0
- package/dist/api/hr/hr-organization.type.d.ts +10 -0
- package/dist/api/hr/hr-payroll.type.d.ts +66 -0
- package/dist/api/hr/hr-payroll.type.js +1 -0
- package/dist/api/hr/hr-performance.type.d.ts +148 -0
- package/dist/api/hr/hr-performance.type.js +1 -0
- package/dist/api/hr/hr-review-question-kind.enum.d.ts +5 -0
- package/dist/api/hr/hr-review-question-kind.enum.js +6 -0
- package/dist/api/hr/index.d.ts +9 -0
- package/dist/api/hr/index.js +9 -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,66 @@
|
|
|
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 { HrPayItemKind } from './hr-pay-item-kind.enum.js';
|
|
5
|
+
import type { HrPayrollRunStatus } from './hr-payroll-run-status.enum.js';
|
|
6
|
+
export interface HrPayItem {
|
|
7
|
+
id: UUID;
|
|
8
|
+
employeeId: UUID;
|
|
9
|
+
kind: HrPayItemKind;
|
|
10
|
+
name: string;
|
|
11
|
+
amountMinor: number;
|
|
12
|
+
period: Nullable<string>;
|
|
13
|
+
isTaxable: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface HrPayrollRunDetail {
|
|
16
|
+
run: HrPayrollRun;
|
|
17
|
+
payslips: HrPayslip[];
|
|
18
|
+
skippedNames: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface HrPayrollRun {
|
|
21
|
+
id: UUID;
|
|
22
|
+
period: string;
|
|
23
|
+
status: HrPayrollRunStatus;
|
|
24
|
+
currency: string;
|
|
25
|
+
employeeCount: number;
|
|
26
|
+
grossTotalMinor: number;
|
|
27
|
+
netTotalMinor: number;
|
|
28
|
+
employerCostMinor: number;
|
|
29
|
+
calculatedAt: Nullable<IsoDateTime>;
|
|
30
|
+
approvedAt: Nullable<IsoDateTime>;
|
|
31
|
+
approvedByName: Nullable<string>;
|
|
32
|
+
}
|
|
33
|
+
export interface HrPayslipLine {
|
|
34
|
+
label: string;
|
|
35
|
+
amountMinor: number;
|
|
36
|
+
}
|
|
37
|
+
export interface HrPayslip {
|
|
38
|
+
id: UUID;
|
|
39
|
+
runId: UUID;
|
|
40
|
+
period: string;
|
|
41
|
+
employeeId: UUID;
|
|
42
|
+
employeeName: string;
|
|
43
|
+
jobTitleName: Nullable<string>;
|
|
44
|
+
departmentName: Nullable<string>;
|
|
45
|
+
currency: string;
|
|
46
|
+
baseMinor: number;
|
|
47
|
+
additionsMinor: number;
|
|
48
|
+
deductionsMinor: number;
|
|
49
|
+
grossMinor: number;
|
|
50
|
+
pensionEmployeeMinor: number;
|
|
51
|
+
pensionEmployerMinor: number;
|
|
52
|
+
incomeTaxMinor: number;
|
|
53
|
+
netMinor: number;
|
|
54
|
+
additions: HrPayslipLine[];
|
|
55
|
+
deductions: HrPayslipLine[];
|
|
56
|
+
}
|
|
57
|
+
export interface CreateHrPayItemRequest {
|
|
58
|
+
kind: HrPayItemKind;
|
|
59
|
+
name: string;
|
|
60
|
+
amountMinor: number;
|
|
61
|
+
period?: string;
|
|
62
|
+
isTaxable?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface CreateHrPayrollRunRequest {
|
|
65
|
+
period: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
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 { HrGoalStatus } from './hr-goal-status.enum.js';
|
|
5
|
+
import type { HrOneToOneRole } from './hr-one-to-one-role.enum.js';
|
|
6
|
+
import type { HrReviewCycleStatus } from './hr-review-cycle-status.enum.js';
|
|
7
|
+
import type { HrReviewQuestionKind } from './hr-review-question-kind.enum.js';
|
|
8
|
+
import type { HrReviewStatus } from './hr-review-status.enum.js';
|
|
9
|
+
export interface HrGoalCheckIn {
|
|
10
|
+
id: UUID;
|
|
11
|
+
progress: number;
|
|
12
|
+
status: HrGoalStatus;
|
|
13
|
+
note: Nullable<string>;
|
|
14
|
+
authorName: Nullable<string>;
|
|
15
|
+
createdAt: IsoDateTime;
|
|
16
|
+
}
|
|
17
|
+
export interface HrGoalDetail {
|
|
18
|
+
goal: HrGoal;
|
|
19
|
+
checkIns: HrGoalCheckIn[];
|
|
20
|
+
}
|
|
21
|
+
export interface HrGoal {
|
|
22
|
+
id: UUID;
|
|
23
|
+
employeeId: UUID;
|
|
24
|
+
employeeName: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: Nullable<string>;
|
|
27
|
+
dueOn: Nullable<string>;
|
|
28
|
+
progress: number;
|
|
29
|
+
status: HrGoalStatus;
|
|
30
|
+
completedAt: Nullable<IsoDateTime>;
|
|
31
|
+
createdByName: Nullable<string>;
|
|
32
|
+
createdAt: IsoDateTime;
|
|
33
|
+
updatedAt: IsoDateTime;
|
|
34
|
+
}
|
|
35
|
+
export interface HrOneToOne {
|
|
36
|
+
id: UUID;
|
|
37
|
+
managerEmployeeId: UUID;
|
|
38
|
+
managerName: string;
|
|
39
|
+
reportEmployeeId: UUID;
|
|
40
|
+
reportName: string;
|
|
41
|
+
scheduledFor: IsoDateTime;
|
|
42
|
+
agenda: Nullable<string>;
|
|
43
|
+
sharedNotes: Nullable<string>;
|
|
44
|
+
managerNotes: Nullable<string>;
|
|
45
|
+
completedAt: Nullable<IsoDateTime>;
|
|
46
|
+
myRole: HrOneToOneRole;
|
|
47
|
+
}
|
|
48
|
+
export interface HrReviewCycle {
|
|
49
|
+
id: UUID;
|
|
50
|
+
name: string;
|
|
51
|
+
periodStart: string;
|
|
52
|
+
periodEnd: string;
|
|
53
|
+
selfDueOn: string;
|
|
54
|
+
managerDueOn: string;
|
|
55
|
+
questions: HrReviewQuestion[];
|
|
56
|
+
status: HrReviewCycleStatus;
|
|
57
|
+
openedAt: Nullable<IsoDateTime>;
|
|
58
|
+
closedAt: Nullable<IsoDateTime>;
|
|
59
|
+
reviewCount: number;
|
|
60
|
+
selfSubmittedCount: number;
|
|
61
|
+
managerSubmittedCount: number;
|
|
62
|
+
createdAt: IsoDateTime;
|
|
63
|
+
}
|
|
64
|
+
export interface HrReviewQuestion {
|
|
65
|
+
id: string;
|
|
66
|
+
text: string;
|
|
67
|
+
kind: HrReviewQuestionKind;
|
|
68
|
+
}
|
|
69
|
+
export interface HrReview {
|
|
70
|
+
id: UUID;
|
|
71
|
+
cycleId: UUID;
|
|
72
|
+
cycleName: string;
|
|
73
|
+
cycleStatus: HrReviewCycleStatus;
|
|
74
|
+
periodStart: string;
|
|
75
|
+
periodEnd: string;
|
|
76
|
+
selfDueOn: string;
|
|
77
|
+
managerDueOn: string;
|
|
78
|
+
questions: HrReviewQuestion[];
|
|
79
|
+
employeeId: UUID;
|
|
80
|
+
employeeName: string;
|
|
81
|
+
reviewerEmployeeId: Nullable<UUID>;
|
|
82
|
+
reviewerName: Nullable<string>;
|
|
83
|
+
selfStatus: HrReviewStatus;
|
|
84
|
+
selfAnswers: Nullable<Record<string, number | string>>;
|
|
85
|
+
selfSubmittedAt: Nullable<IsoDateTime>;
|
|
86
|
+
managerStatus: HrReviewStatus;
|
|
87
|
+
managerAnswers: Nullable<Record<string, number | string>>;
|
|
88
|
+
overallRating: Nullable<number>;
|
|
89
|
+
managerSubmittedAt: Nullable<IsoDateTime>;
|
|
90
|
+
managerSubmittedByName: Nullable<string>;
|
|
91
|
+
}
|
|
92
|
+
export interface HrAssignReviewerRequest {
|
|
93
|
+
reviewerEmployeeId: UUID;
|
|
94
|
+
}
|
|
95
|
+
export interface HrCheckInGoalRequest {
|
|
96
|
+
progress: number;
|
|
97
|
+
status?: HrGoalStatus;
|
|
98
|
+
note?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface CreateHrGoalRequest {
|
|
101
|
+
title: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
dueOn?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface HrReviewQuestionRequest {
|
|
106
|
+
text: string;
|
|
107
|
+
kind: HrReviewQuestionKind;
|
|
108
|
+
}
|
|
109
|
+
export interface HrSaveAssessmentRequest {
|
|
110
|
+
answers: Record<string, number | string>;
|
|
111
|
+
overallRating?: number;
|
|
112
|
+
submit: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface HrSaveReviewCycleRequest {
|
|
115
|
+
name: string;
|
|
116
|
+
periodStart: string;
|
|
117
|
+
periodEnd: string;
|
|
118
|
+
selfDueOn: string;
|
|
119
|
+
managerDueOn: string;
|
|
120
|
+
questions: HrReviewQuestionRequest[];
|
|
121
|
+
}
|
|
122
|
+
export interface HrSaveSelfReviewRequest {
|
|
123
|
+
answers: Record<string, number | string>;
|
|
124
|
+
submit: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface HrScheduleOneToOneRequest {
|
|
127
|
+
scheduledFor: string;
|
|
128
|
+
agenda?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface UpdateHrGoalRequest {
|
|
131
|
+
title?: string;
|
|
132
|
+
description?: string | null;
|
|
133
|
+
dueOn?: string | null;
|
|
134
|
+
}
|
|
135
|
+
export interface UpdateHrOneToOneRequest {
|
|
136
|
+
scheduledFor?: string;
|
|
137
|
+
agenda?: string | null;
|
|
138
|
+
sharedNotes?: string | null;
|
|
139
|
+
managerNotes?: string | null;
|
|
140
|
+
}
|
|
141
|
+
export interface UpdateHrReviewCycleRequest {
|
|
142
|
+
name?: string;
|
|
143
|
+
periodStart?: string;
|
|
144
|
+
periodEnd?: string;
|
|
145
|
+
selfDueOn?: string;
|
|
146
|
+
managerDueOn?: string;
|
|
147
|
+
questions?: HrReviewQuestionRequest[];
|
|
148
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** What a review question asks for: a rating from one to five, or words. */
|
|
2
|
+
export var HrReviewQuestionKind;
|
|
3
|
+
(function (HrReviewQuestionKind) {
|
|
4
|
+
HrReviewQuestionKind["RATING"] = "rating";
|
|
5
|
+
HrReviewQuestionKind["TEXT"] = "text";
|
|
6
|
+
})(HrReviewQuestionKind || (HrReviewQuestionKind = {}));
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
export * from './hr-access-action.enum.js';
|
|
2
|
+
export * from './hr-announcement.type.js';
|
|
2
3
|
export * from './hr-application-stage.enum.js';
|
|
3
4
|
export * from './hr-attendance-correction-status.enum.js';
|
|
4
5
|
export * from './hr-attendance-source.enum.js';
|
|
5
6
|
export * from './hr-attendance-state.enum.js';
|
|
7
|
+
export * from './hr-attendance.type.js';
|
|
6
8
|
export * from './hr-checklist-kind.enum.js';
|
|
7
9
|
export * from './hr-compensation.type.js';
|
|
8
10
|
export * from './hr-document-audience.enum.js';
|
|
11
|
+
export * from './hr-document.type.js';
|
|
9
12
|
export * from './hr-employee.type.js';
|
|
10
13
|
export * from './hr-employment-event-kind.enum.js';
|
|
11
14
|
export * from './hr-employment-status.enum.js';
|
|
12
15
|
export * from './hr-employment-type.enum.js';
|
|
13
16
|
export * from './hr-goal-status.enum.js';
|
|
17
|
+
export * from './hr-hiring.type.js';
|
|
14
18
|
export * from './hr-leave-accrual.enum.js';
|
|
15
19
|
export * from './hr-leave-ledger-kind.enum.js';
|
|
16
20
|
export * from './hr-leave-request-status.enum.js';
|
|
17
21
|
export * from './hr-me.type.js';
|
|
22
|
+
export * from './hr-onboarding.type.js';
|
|
23
|
+
export * from './hr-one-to-one-role.enum.js';
|
|
18
24
|
export * from './hr-opening-status.enum.js';
|
|
19
25
|
export * from './hr-organization.type.js';
|
|
20
26
|
export * from './hr-pay-item-kind.enum.js';
|
|
21
27
|
export * from './hr-pay-period.enum.js';
|
|
22
28
|
export * from './hr-payroll-run-status.enum.js';
|
|
29
|
+
export * from './hr-payroll.type.js';
|
|
30
|
+
export * from './hr-performance.type.js';
|
|
23
31
|
export * from './hr-resource-status.enum.js';
|
|
24
32
|
export * from './hr-review-cycle-status.enum.js';
|
|
33
|
+
export * from './hr-review-question-kind.enum.js';
|
|
25
34
|
export * from './hr-review-status.enum.js';
|
|
26
35
|
export * from './hr-task-assignee.enum.js';
|
|
27
36
|
export * from './hr-task-status.enum.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
export * from './hr-access-action.enum.js';
|
|
2
|
+
export * from './hr-announcement.type.js';
|
|
2
3
|
export * from './hr-application-stage.enum.js';
|
|
3
4
|
export * from './hr-attendance-correction-status.enum.js';
|
|
4
5
|
export * from './hr-attendance-source.enum.js';
|
|
5
6
|
export * from './hr-attendance-state.enum.js';
|
|
7
|
+
export * from './hr-attendance.type.js';
|
|
6
8
|
export * from './hr-checklist-kind.enum.js';
|
|
7
9
|
export * from './hr-compensation.type.js';
|
|
8
10
|
export * from './hr-document-audience.enum.js';
|
|
11
|
+
export * from './hr-document.type.js';
|
|
9
12
|
export * from './hr-employee.type.js';
|
|
10
13
|
export * from './hr-employment-event-kind.enum.js';
|
|
11
14
|
export * from './hr-employment-status.enum.js';
|
|
12
15
|
export * from './hr-employment-type.enum.js';
|
|
13
16
|
export * from './hr-goal-status.enum.js';
|
|
17
|
+
export * from './hr-hiring.type.js';
|
|
14
18
|
export * from './hr-leave-accrual.enum.js';
|
|
15
19
|
export * from './hr-leave-ledger-kind.enum.js';
|
|
16
20
|
export * from './hr-leave-request-status.enum.js';
|
|
17
21
|
export * from './hr-me.type.js';
|
|
22
|
+
export * from './hr-onboarding.type.js';
|
|
23
|
+
export * from './hr-one-to-one-role.enum.js';
|
|
18
24
|
export * from './hr-opening-status.enum.js';
|
|
19
25
|
export * from './hr-organization.type.js';
|
|
20
26
|
export * from './hr-pay-item-kind.enum.js';
|
|
21
27
|
export * from './hr-pay-period.enum.js';
|
|
22
28
|
export * from './hr-payroll-run-status.enum.js';
|
|
29
|
+
export * from './hr-payroll.type.js';
|
|
30
|
+
export * from './hr-performance.type.js';
|
|
23
31
|
export * from './hr-resource-status.enum.js';
|
|
24
32
|
export * from './hr-review-cycle-status.enum.js';
|
|
33
|
+
export * from './hr-review-question-kind.enum.js';
|
|
25
34
|
export * from './hr-review-status.enum.js';
|
|
26
35
|
export * from './hr-task-assignee.enum.js';
|
|
27
36
|
export * from './hr-task-status.enum.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.71.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"
|