@iveri/contracts 0.82.1 → 0.84.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 (69) hide show
  1. package/README.md +8 -0
  2. package/dist/api/conduit/connect-attempt-status.enum.d.ts +26 -0
  3. package/dist/api/conduit/connect-attempt-status.enum.js +27 -0
  4. package/dist/api/conduit/connect.type.d.ts +72 -0
  5. package/dist/api/conduit/connect.type.js +8 -0
  6. package/dist/api/conduit/connection.type.d.ts +32 -1
  7. package/dist/api/conduit/connector-auth-type.enum.d.ts +37 -1
  8. package/dist/api/conduit/connector-auth-type.enum.js +36 -0
  9. package/dist/api/conduit/connector.type.d.ts +85 -0
  10. package/dist/api/conduit/connector.type.js +12 -0
  11. package/dist/api/conduit/dispatch.type.d.ts +23 -1
  12. package/dist/api/conduit/index.d.ts +2 -0
  13. package/dist/api/conduit/index.js +2 -0
  14. package/dist/api/hr/hr-celebration.type.d.ts +22 -0
  15. package/dist/api/hr/hr-celebration.type.js +1 -0
  16. package/dist/api/hr/hr-course-assignment-state.enum.d.ts +11 -0
  17. package/dist/api/hr/hr-course-assignment-state.enum.js +12 -0
  18. package/dist/api/hr/hr-course-completion-source.enum.d.ts +5 -0
  19. package/dist/api/hr/hr-course-completion-source.enum.js +6 -0
  20. package/dist/api/hr/hr-employee.type.d.ts +2 -0
  21. package/dist/api/hr/hr-equipment-category.enum.d.ts +11 -0
  22. package/dist/api/hr/hr-equipment-category.enum.js +12 -0
  23. package/dist/api/hr/hr-equipment-state.enum.d.ts +10 -0
  24. package/dist/api/hr/hr-equipment-state.enum.js +11 -0
  25. package/dist/api/hr/hr-equipment.type.d.ts +71 -0
  26. package/dist/api/hr/hr-equipment.type.js +1 -0
  27. package/dist/api/hr/hr-expense-claim-status.enum.d.ts +8 -0
  28. package/dist/api/hr/hr-expense-claim-status.enum.js +9 -0
  29. package/dist/api/hr/hr-expense-paid-via.enum.d.ts +5 -0
  30. package/dist/api/hr/hr-expense-paid-via.enum.js +6 -0
  31. package/dist/api/hr/hr-expense.type.d.ts +75 -0
  32. package/dist/api/hr/hr-expense.type.js +1 -0
  33. package/dist/api/hr/hr-learning.type.d.ts +83 -0
  34. package/dist/api/hr/hr-learning.type.js +1 -0
  35. package/dist/api/hr/hr-leave-allowance-period.enum.d.ts +7 -0
  36. package/dist/api/hr/hr-leave-allowance-period.enum.js +8 -0
  37. package/dist/api/hr/hr-leave-eligibility-exception-kind.enum.d.ts +9 -0
  38. package/dist/api/hr/hr-leave-eligibility-exception-kind.enum.js +10 -0
  39. package/dist/api/hr/hr-letter-kind.enum.d.ts +7 -0
  40. package/dist/api/hr/hr-letter-kind.enum.js +8 -0
  41. package/dist/api/hr/hr-letter-request-status.enum.d.ts +7 -0
  42. package/dist/api/hr/hr-letter-request-status.enum.js +8 -0
  43. package/dist/api/hr/hr-letter.type.d.ts +38 -0
  44. package/dist/api/hr/hr-letter.type.js +1 -0
  45. package/dist/api/hr/hr-me.type.d.ts +1 -0
  46. package/dist/api/hr/hr-payroll.type.d.ts +2 -0
  47. package/dist/api/hr/hr-planning.type.d.ts +2 -0
  48. package/dist/api/hr/hr-probation-outcome.enum.d.ts +6 -0
  49. package/dist/api/hr/hr-probation-outcome.enum.js +7 -0
  50. package/dist/api/hr/hr-probation.type.d.ts +41 -0
  51. package/dist/api/hr/hr-probation.type.js +1 -0
  52. package/dist/api/hr/hr-report.type.d.ts +54 -0
  53. package/dist/api/hr/hr-report.type.js +1 -0
  54. package/dist/api/hr/hr-survey-audience.enum.d.ts +6 -0
  55. package/dist/api/hr/hr-survey-audience.enum.js +7 -0
  56. package/dist/api/hr/hr-survey-group-kind.enum.d.ts +5 -0
  57. package/dist/api/hr/hr-survey-group-kind.enum.js +6 -0
  58. package/dist/api/hr/hr-survey-question-kind.enum.d.ts +8 -0
  59. package/dist/api/hr/hr-survey-question-kind.enum.js +9 -0
  60. package/dist/api/hr/hr-survey-state.enum.d.ts +7 -0
  61. package/dist/api/hr/hr-survey-state.enum.js +8 -0
  62. package/dist/api/hr/hr-survey.type.d.ts +98 -0
  63. package/dist/api/hr/hr-survey.type.js +1 -0
  64. package/dist/api/hr/hr-thanks.type.d.ts +50 -0
  65. package/dist/api/hr/hr-thanks.type.js +1 -0
  66. package/dist/api/hr/hr-time-off.type.d.ts +42 -0
  67. package/dist/api/hr/index.d.ts +24 -0
  68. package/dist/api/hr/index.js +24 -0
  69. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ import type { Nullable } from '../../type/nil.type.js';
2
+ import type { UUID } from '../../type/uuid.type.js';
3
+ import type { HrSurveyAudience } from './hr-survey-audience.enum.js';
4
+ import type { HrSurveyGroupKind } from './hr-survey-group-kind.enum.js';
5
+ import type { HrSurveyQuestionKind } from './hr-survey-question-kind.enum.js';
6
+ import type { HrSurveyState } from './hr-survey-state.enum.js';
7
+ export interface HrMySurvey {
8
+ id: UUID;
9
+ title: string;
10
+ description: Nullable<string>;
11
+ opensOn: string;
12
+ closesOn: string;
13
+ state: HrSurveyState;
14
+ hasAnswered: boolean;
15
+ questions: HrSurveyQuestion[];
16
+ }
17
+ export interface HrSurveyGroupResult {
18
+ kind: HrSurveyGroupKind;
19
+ id: UUID;
20
+ name: string;
21
+ /** False for a group too small to report, which then shows no count and no results. */
22
+ isReportable: boolean;
23
+ responseCount: Nullable<number>;
24
+ questions: HrSurveyQuestionResult[];
25
+ }
26
+ export interface HrSurveyQuestion {
27
+ id: UUID;
28
+ position: number;
29
+ kind: HrSurveyQuestionKind;
30
+ prompt: string;
31
+ }
32
+ export interface HrSurveyQuestionResult {
33
+ questionId: UUID;
34
+ position: number;
35
+ kind: HrSurveyQuestionKind;
36
+ prompt: string;
37
+ answerCount: number;
38
+ /** Promoters' share minus detractors', -100 to 100, for an eNPS question. */
39
+ enps: Nullable<number>;
40
+ promoters: Nullable<number>;
41
+ passives: Nullable<number>;
42
+ detractors: Nullable<number>;
43
+ /** A scale question's average, to one decimal place. */
44
+ average: Nullable<number>;
45
+ /** How many gave each score, from 0 for eNPS and from 1 for a scale. */
46
+ distribution: Nullable<number[]>;
47
+ /** Written answers in a random order. */
48
+ texts: Nullable<string[]>;
49
+ }
50
+ export interface HrSurvey {
51
+ id: UUID;
52
+ title: string;
53
+ description: Nullable<string>;
54
+ audience: HrSurveyAudience;
55
+ audienceId: Nullable<UUID>;
56
+ audienceName: Nullable<string>;
57
+ opensOn: string;
58
+ closesOn: string;
59
+ state: HrSurveyState;
60
+ /** How many have answered. Who has is never shown. */
61
+ responseCount: number;
62
+ questions: HrSurveyQuestion[];
63
+ }
64
+ export interface HrSurveyResults {
65
+ survey: HrSurvey;
66
+ /** The smallest group reported on. */
67
+ minimumGroup: number;
68
+ responseCount: number;
69
+ /** Who the survey asks, as the staff list stands today. */
70
+ eligibleCount: number;
71
+ /** False below the minimum, when nothing at all is shown. */
72
+ isReportable: boolean;
73
+ questions: HrSurveyQuestionResult[];
74
+ /** Each department and team among the answers, reported only when big enough. */
75
+ groups: HrSurveyGroupResult[];
76
+ }
77
+ export interface HrAnswerSurveyRequest {
78
+ answers: HrSurveyAnswerRequest[];
79
+ }
80
+ export interface HrSaveSurveyRequest {
81
+ title: string;
82
+ description?: Nullable<string>;
83
+ audience: HrSurveyAudience;
84
+ /** The department or team, unless the survey asks everybody. */
85
+ audienceId?: Nullable<UUID>;
86
+ opensOn: string;
87
+ closesOn: string;
88
+ questions: HrSurveyQuestionRequest[];
89
+ }
90
+ export interface HrSurveyAnswerRequest {
91
+ questionId: UUID;
92
+ score?: Nullable<number>;
93
+ text?: Nullable<string>;
94
+ }
95
+ export interface HrSurveyQuestionRequest {
96
+ kind: HrSurveyQuestionKind;
97
+ prompt: string;
98
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,50 @@
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 { HrResourceStatus } from './hr-resource-status.enum.js';
5
+ export interface HrCompanyValue {
6
+ id: UUID;
7
+ name: string;
8
+ description: Nullable<string>;
9
+ sortOrder: number;
10
+ status: HrResourceStatus;
11
+ }
12
+ export interface HrThanksPage {
13
+ items: HrThanks[];
14
+ total: number;
15
+ limit: number;
16
+ offset: number;
17
+ }
18
+ export interface HrThanks {
19
+ id: UUID;
20
+ fromEmployeeId: UUID;
21
+ fromName: string;
22
+ toEmployeeId: UUID;
23
+ toName: string;
24
+ message: string;
25
+ valueId: Nullable<UUID>;
26
+ valueName: Nullable<string>;
27
+ createdAt: IsoDateTime;
28
+ /** Only HR's list carries hidden ones. */
29
+ hiddenAt: Nullable<IsoDateTime>;
30
+ hiddenReason: Nullable<string>;
31
+ }
32
+ export interface HrHideThanksRequest {
33
+ reason?: Nullable<string>;
34
+ }
35
+ export interface HrSaveCompanyValueRequest {
36
+ name: string;
37
+ description?: Nullable<string>;
38
+ sortOrder?: number;
39
+ }
40
+ export interface HrSendThanksRequest {
41
+ toEmployeeId: UUID;
42
+ message: string;
43
+ valueId?: Nullable<UUID>;
44
+ }
45
+ export interface UpdateHrCompanyValueRequest {
46
+ name?: string;
47
+ description?: Nullable<string>;
48
+ sortOrder?: number;
49
+ status?: HrResourceStatus;
50
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -2,6 +2,8 @@ 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 { HrLeaveAccrual } from './hr-leave-accrual.enum.js';
5
+ import type { HrLeaveAllowancePeriod } from './hr-leave-allowance-period.enum.js';
6
+ import type { HrLeaveEligibilityExceptionKind } from './hr-leave-eligibility-exception-kind.enum.js';
5
7
  import type { HrLeaveLedgerKind } from './hr-leave-ledger-kind.enum.js';
6
8
  import type { HrLeaveRequestStatus } from './hr-leave-request-status.enum.js';
7
9
  import type { HrResourceStatus } from './hr-resource-status.enum.js';
@@ -32,11 +34,38 @@ export interface HrLeaveBalance {
32
34
  takenHalfDays: number;
33
35
  pendingHalfDays: number;
34
36
  availableHalfDays: number;
37
+ allowancePeriod: HrLeaveAllowancePeriod;
38
+ /** The year, or for a quarterly type the quarter these figures are for. */
39
+ periodStart: string;
40
+ periodEnd: string;
41
+ /** While somebody is still waiting to be allowed this kind of leave, the first day they may take it. */
42
+ availableFrom: Nullable<string>;
43
+ }
44
+ export interface HrLeaveEligibilityException {
45
+ id: UUID;
46
+ leaveTypeId: UUID;
47
+ kind: HrLeaveEligibilityExceptionKind;
48
+ availableFrom: Nullable<string>;
49
+ reason: string;
50
+ decidedByName: Nullable<string>;
51
+ createdAt: IsoDateTime;
52
+ }
53
+ export interface HrLeaveEligibility {
54
+ leaveTypeId: UUID;
55
+ leaveTypeName: LocalizedText;
56
+ availableAfterMonths: number;
57
+ /** What the type's waiting period alone gives, or null when there is none. */
58
+ ruleAvailableFrom: Nullable<string>;
59
+ /** What counts, after any exception. Null means from the first day. */
60
+ availableFrom: Nullable<string>;
61
+ exceptions: HrLeaveEligibilityException[];
35
62
  }
36
63
  export interface HrLeavePreview {
37
64
  halfDays: number;
38
65
  availableHalfDays: Nullable<number>;
39
66
  isEnough: boolean;
67
+ /** When these days start before the person may take this kind of leave, the first day they may. */
68
+ availableFrom: Nullable<string>;
40
69
  }
41
70
  export interface HrLeaveRequest {
42
71
  id: UUID;
@@ -73,6 +102,9 @@ export interface HrLeaveType {
73
102
  tracksBalance: boolean;
74
103
  annualAllowanceHalfDays: number;
75
104
  accrual: HrLeaveAccrual;
105
+ allowancePeriod: HrLeaveAllowancePeriod;
106
+ /** Months of service before it can be taken. */
107
+ availableAfterMonths: number;
76
108
  carryOverMaxHalfDays: number;
77
109
  requiresApproval: boolean;
78
110
  requiresDocument: boolean;
@@ -103,6 +135,12 @@ export interface HrTimeOffSummary {
103
135
  pendingCount: number;
104
136
  awayToday: HrAbsence[];
105
137
  }
138
+ export interface AddHrLeaveEligibilityExceptionRequest {
139
+ leaveTypeId: UUID;
140
+ kind: HrLeaveEligibilityExceptionKind;
141
+ availableFrom?: Nullable<string>;
142
+ reason: string;
143
+ }
106
144
  export interface AdjustHrBalanceRequest {
107
145
  leaveTypeId: UUID;
108
146
  year: number;
@@ -124,6 +162,10 @@ export interface CreateHrLeaveTypeRequest {
124
162
  tracksBalance?: boolean;
125
163
  annualAllowanceHalfDays?: number;
126
164
  accrual?: HrLeaveAccrual;
165
+ /** Per year, or a quarter of `annualAllowanceHalfDays` at the start of each quarter with nothing carried over. */
166
+ allowancePeriod?: HrLeaveAllowancePeriod;
167
+ /** Months of service before it can be taken. The balance grows meanwhile. */
168
+ availableAfterMonths?: number;
127
169
  carryOverMaxHalfDays?: number;
128
170
  requiresApproval?: boolean;
129
171
  requiresDocument?: boolean;
@@ -6,20 +6,35 @@ 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-celebration.type.js';
9
10
  export * from './hr-checklist-kind.enum.js';
10
11
  export * from './hr-compensation.type.js';
11
12
  export * from './hr-conversation.type.js';
13
+ export * from './hr-course-assignment-state.enum.js';
14
+ export * from './hr-course-completion-source.enum.js';
12
15
  export * from './hr-document-audience.enum.js';
13
16
  export * from './hr-document.type.js';
14
17
  export * from './hr-employee.type.js';
15
18
  export * from './hr-employment-event-kind.enum.js';
16
19
  export * from './hr-employment-status.enum.js';
17
20
  export * from './hr-employment-type.enum.js';
21
+ export * from './hr-equipment-category.enum.js';
22
+ export * from './hr-equipment-state.enum.js';
23
+ export * from './hr-equipment.type.js';
24
+ export * from './hr-expense-claim-status.enum.js';
25
+ export * from './hr-expense-paid-via.enum.js';
26
+ export * from './hr-expense.type.js';
18
27
  export * from './hr-goal-status.enum.js';
19
28
  export * from './hr-hiring.type.js';
29
+ export * from './hr-learning.type.js';
20
30
  export * from './hr-leave-accrual.enum.js';
31
+ export * from './hr-leave-allowance-period.enum.js';
32
+ export * from './hr-leave-eligibility-exception-kind.enum.js';
21
33
  export * from './hr-leave-ledger-kind.enum.js';
22
34
  export * from './hr-leave-request-status.enum.js';
35
+ export * from './hr-letter-kind.enum.js';
36
+ export * from './hr-letter-request-status.enum.js';
37
+ export * from './hr-letter.type.js';
23
38
  export * from './hr-me.type.js';
24
39
  export * from './hr-onboarding.type.js';
25
40
  export * from './hr-one-to-one-role.enum.js';
@@ -32,13 +47,22 @@ export * from './hr-payroll.type.js';
32
47
  export * from './hr-performance.type.js';
33
48
  export * from './hr-planning-entry-kind.enum.js';
34
49
  export * from './hr-planning.type.js';
50
+ export * from './hr-probation-outcome.enum.js';
51
+ export * from './hr-probation.type.js';
52
+ export * from './hr-report.type.js';
35
53
  export * from './hr-resource-status.enum.js';
36
54
  export * from './hr-review-cycle-status.enum.js';
37
55
  export * from './hr-review-question-kind.enum.js';
38
56
  export * from './hr-review-status.enum.js';
57
+ export * from './hr-survey-audience.enum.js';
58
+ export * from './hr-survey-group-kind.enum.js';
59
+ export * from './hr-survey-question-kind.enum.js';
60
+ export * from './hr-survey-state.enum.js';
61
+ export * from './hr-survey.type.js';
39
62
  export * from './hr-task-assignee.enum.js';
40
63
  export * from './hr-task-status.enum.js';
41
64
  export * from './hr-team-role.enum.js';
42
65
  export * from './hr-team.type.js';
66
+ export * from './hr-thanks.type.js';
43
67
  export * from './hr-time-off.type.js';
44
68
  export * from './localized-text.type.js';
@@ -6,20 +6,35 @@ 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-celebration.type.js';
9
10
  export * from './hr-checklist-kind.enum.js';
10
11
  export * from './hr-compensation.type.js';
11
12
  export * from './hr-conversation.type.js';
13
+ export * from './hr-course-assignment-state.enum.js';
14
+ export * from './hr-course-completion-source.enum.js';
12
15
  export * from './hr-document-audience.enum.js';
13
16
  export * from './hr-document.type.js';
14
17
  export * from './hr-employee.type.js';
15
18
  export * from './hr-employment-event-kind.enum.js';
16
19
  export * from './hr-employment-status.enum.js';
17
20
  export * from './hr-employment-type.enum.js';
21
+ export * from './hr-equipment-category.enum.js';
22
+ export * from './hr-equipment-state.enum.js';
23
+ export * from './hr-equipment.type.js';
24
+ export * from './hr-expense-claim-status.enum.js';
25
+ export * from './hr-expense-paid-via.enum.js';
26
+ export * from './hr-expense.type.js';
18
27
  export * from './hr-goal-status.enum.js';
19
28
  export * from './hr-hiring.type.js';
29
+ export * from './hr-learning.type.js';
20
30
  export * from './hr-leave-accrual.enum.js';
31
+ export * from './hr-leave-allowance-period.enum.js';
32
+ export * from './hr-leave-eligibility-exception-kind.enum.js';
21
33
  export * from './hr-leave-ledger-kind.enum.js';
22
34
  export * from './hr-leave-request-status.enum.js';
35
+ export * from './hr-letter-kind.enum.js';
36
+ export * from './hr-letter-request-status.enum.js';
37
+ export * from './hr-letter.type.js';
23
38
  export * from './hr-me.type.js';
24
39
  export * from './hr-onboarding.type.js';
25
40
  export * from './hr-one-to-one-role.enum.js';
@@ -32,13 +47,22 @@ export * from './hr-payroll.type.js';
32
47
  export * from './hr-performance.type.js';
33
48
  export * from './hr-planning-entry-kind.enum.js';
34
49
  export * from './hr-planning.type.js';
50
+ export * from './hr-probation-outcome.enum.js';
51
+ export * from './hr-probation.type.js';
52
+ export * from './hr-report.type.js';
35
53
  export * from './hr-resource-status.enum.js';
36
54
  export * from './hr-review-cycle-status.enum.js';
37
55
  export * from './hr-review-question-kind.enum.js';
38
56
  export * from './hr-review-status.enum.js';
57
+ export * from './hr-survey-audience.enum.js';
58
+ export * from './hr-survey-group-kind.enum.js';
59
+ export * from './hr-survey-question-kind.enum.js';
60
+ export * from './hr-survey-state.enum.js';
61
+ export * from './hr-survey.type.js';
39
62
  export * from './hr-task-assignee.enum.js';
40
63
  export * from './hr-task-status.enum.js';
41
64
  export * from './hr-team-role.enum.js';
42
65
  export * from './hr-team.type.js';
66
+ export * from './hr-thanks.type.js';
43
67
  export * from './hr-time-off.type.js';
44
68
  export * from './localized-text.type.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.82.1",
3
+ "version": "0.84.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {