@digiteers/uloba3-sdk 1.3.7
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/.eslintrc.json +29 -0
- package/.github/workflows/generate-sdk.yml +126 -0
- package/.prettierrc +11 -0
- package/MIGRATION.md +118 -0
- package/README.md +256 -0
- package/dist/api/accounts.d.ts +31 -0
- package/dist/api/accounts.d.ts.map +1 -0
- package/dist/api/accounts.js +71 -0
- package/dist/api/accounts.js.map +1 -0
- package/dist/api/admin/arrangements.d.ts +41 -0
- package/dist/api/admin/arrangements.d.ts.map +1 -0
- package/dist/api/admin/arrangements.js +60 -0
- package/dist/api/admin/arrangements.js.map +1 -0
- package/dist/api/admin/assistance-types.d.ts +41 -0
- package/dist/api/admin/assistance-types.d.ts.map +1 -0
- package/dist/api/admin/assistance-types.js +60 -0
- package/dist/api/admin/assistance-types.js.map +1 -0
- package/dist/api/admin/contract-case-workflow-states.d.ts +69 -0
- package/dist/api/admin/contract-case-workflow-states.d.ts.map +1 -0
- package/dist/api/admin/contract-case-workflow-states.js +59 -0
- package/dist/api/admin/contract-case-workflow-states.js.map +1 -0
- package/dist/api/admin/contract-types.d.ts +41 -0
- package/dist/api/admin/contract-types.d.ts.map +1 -0
- package/dist/api/admin/contract-types.js +60 -0
- package/dist/api/admin/contract-types.js.map +1 -0
- package/dist/api/admin/expectation-templates.d.ts +39 -0
- package/dist/api/admin/expectation-templates.d.ts.map +1 -0
- package/dist/api/admin/expectation-templates.js +66 -0
- package/dist/api/admin/expectation-templates.js.map +1 -0
- package/dist/api/admin/index.d.ts +11 -0
- package/dist/api/admin/index.d.ts.map +1 -0
- package/dist/api/admin/index.js +24 -0
- package/dist/api/admin/index.js.map +1 -0
- package/dist/api/admin/interest-templates.d.ts +39 -0
- package/dist/api/admin/interest-templates.d.ts.map +1 -0
- package/dist/api/admin/interest-templates.js +66 -0
- package/dist/api/admin/interest-templates.js.map +1 -0
- package/dist/api/admin/organization.d.ts +15 -0
- package/dist/api/admin/organization.d.ts.map +1 -0
- package/dist/api/admin/organization.js +25 -0
- package/dist/api/admin/organization.js.map +1 -0
- package/dist/api/admin/responsibility-templates.d.ts +39 -0
- package/dist/api/admin/responsibility-templates.d.ts.map +1 -0
- package/dist/api/admin/responsibility-templates.js +66 -0
- package/dist/api/admin/responsibility-templates.js.map +1 -0
- package/dist/api/admin/salaries.d.ts +48 -0
- package/dist/api/admin/salaries.d.ts.map +1 -0
- package/dist/api/admin/salaries.js +60 -0
- package/dist/api/admin/salaries.js.map +1 -0
- package/dist/api/admin/work-schedules.d.ts +67 -0
- package/dist/api/admin/work-schedules.d.ts.map +1 -0
- package/dist/api/admin/work-schedules.js +59 -0
- package/dist/api/admin/work-schedules.js.map +1 -0
- package/dist/api/analytics.d.ts +37 -0
- package/dist/api/analytics.d.ts.map +1 -0
- package/dist/api/analytics.js +37 -0
- package/dist/api/analytics.js.map +1 -0
- package/dist/api/applications.d.ts +166 -0
- package/dist/api/applications.d.ts.map +1 -0
- package/dist/api/applications.js +156 -0
- package/dist/api/applications.js.map +1 -0
- package/dist/api/assistants.d.ts +413 -0
- package/dist/api/assistants.d.ts.map +1 -0
- package/dist/api/assistants.js +250 -0
- package/dist/api/assistants.js.map +1 -0
- package/dist/api/auth.d.ts +57 -0
- package/dist/api/auth.d.ts.map +1 -0
- package/dist/api/auth.js +46 -0
- package/dist/api/auth.js.map +1 -0
- package/dist/api/billing.d.ts +33 -0
- package/dist/api/billing.d.ts.map +1 -0
- package/dist/api/billing.js +49 -0
- package/dist/api/billing.js.map +1 -0
- package/dist/api/contract-cases.d.ts +38 -0
- package/dist/api/contract-cases.d.ts.map +1 -0
- package/dist/api/contract-cases.js +65 -0
- package/dist/api/contract-cases.js.map +1 -0
- package/dist/api/contracts.d.ts +903 -0
- package/dist/api/contracts.d.ts.map +1 -0
- package/dist/api/contracts.js +300 -0
- package/dist/api/contracts.js.map +1 -0
- package/dist/api/documents.d.ts +20 -0
- package/dist/api/documents.d.ts.map +1 -0
- package/dist/api/documents.js +27 -0
- package/dist/api/documents.js.map +1 -0
- package/dist/api/feeds.d.ts +23 -0
- package/dist/api/feeds.d.ts.map +1 -0
- package/dist/api/feeds.js +47 -0
- package/dist/api/feeds.js.map +1 -0
- package/dist/api/gdpr.d.ts +23 -0
- package/dist/api/gdpr.d.ts.map +1 -0
- package/dist/api/gdpr.js +50 -0
- package/dist/api/gdpr.js.map +1 -0
- package/dist/api/inquiries.d.ts +190 -0
- package/dist/api/inquiries.d.ts.map +1 -0
- package/dist/api/inquiries.js +173 -0
- package/dist/api/inquiries.js.map +1 -0
- package/dist/api/jobs.d.ts +169 -0
- package/dist/api/jobs.d.ts.map +1 -0
- package/dist/api/jobs.js +294 -0
- package/dist/api/jobs.js.map +1 -0
- package/dist/api/locations.d.ts +30 -0
- package/dist/api/locations.d.ts.map +1 -0
- package/dist/api/locations.js +25 -0
- package/dist/api/locations.js.map +1 -0
- package/dist/api/meetings.d.ts +109 -0
- package/dist/api/meetings.d.ts.map +1 -0
- package/dist/api/meetings.js +75 -0
- package/dist/api/meetings.js.map +1 -0
- package/dist/api/messaging.d.ts +32 -0
- package/dist/api/messaging.d.ts.map +1 -0
- package/dist/api/messaging.js +114 -0
- package/dist/api/messaging.js.map +1 -0
- package/dist/api/notes.d.ts +21 -0
- package/dist/api/notes.d.ts.map +1 -0
- package/dist/api/notes.js +38 -0
- package/dist/api/notes.js.map +1 -0
- package/dist/api/organization.d.ts +56 -0
- package/dist/api/organization.d.ts.map +1 -0
- package/dist/api/organization.js +39 -0
- package/dist/api/organization.js.map +1 -0
- package/dist/api/salaries.d.ts +24 -0
- package/dist/api/salaries.d.ts.map +1 -0
- package/dist/api/salaries.js +39 -0
- package/dist/api/salaries.js.map +1 -0
- package/dist/api/tasks.d.ts +19 -0
- package/dist/api/tasks.d.ts.map +1 -0
- package/dist/api/tasks.js +35 -0
- package/dist/api/tasks.js.map +1 -0
- package/dist/api/users.d.ts +62 -0
- package/dist/api/users.d.ts.map +1 -0
- package/dist/api/users.js +62 -0
- package/dist/api/users.js.map +1 -0
- package/dist/api-types.d.ts +1242 -0
- package/dist/api-types.d.ts.map +1 -0
- package/dist/api-types.js +5 -0
- package/dist/api-types.js.map +1 -0
- package/dist/client.d.ts +69 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +142 -0
- package/dist/client.js.map +1 -0
- package/dist/components/contracts/forms/DirectContractForm.d.ts +1 -0
- package/dist/components/contracts/forms/DirectContractForm.d.ts.map +1 -0
- package/dist/components/contracts/forms/DirectContractForm.js +2 -0
- package/dist/components/contracts/forms/DirectContractForm.js.map +1 -0
- package/dist/constants.d.ts +133 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +139 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +36489 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/view-types.d.ts +44 -0
- package/dist/view-types.d.ts.map +1 -0
- package/dist/view-types.js +7 -0
- package/dist/view-types.js.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import type { components, paths } from '../types';
|
|
3
|
+
export type ContractEnhancedResponse = paths['/api/contracts/{id}']['get']['responses']['200']['content']['application/json'];
|
|
4
|
+
export type ContractViewEnhancedResponse = paths['/api/contracts/{id}/view']['get']['responses']['200']['content']['application/json'];
|
|
5
|
+
type Contract = components['schemas']['def-0'];
|
|
6
|
+
interface CreateContractRequest {
|
|
7
|
+
contract_type: 'on_call' | 'regular' | 'temporary';
|
|
8
|
+
service_type: 'bpa' | 'function_assistance';
|
|
9
|
+
employer_id: string;
|
|
10
|
+
worker_id: string;
|
|
11
|
+
decision_maker_id?: string;
|
|
12
|
+
application_id?: string;
|
|
13
|
+
inquiry_id?: string;
|
|
14
|
+
direct_internal?: boolean;
|
|
15
|
+
direct_invite?: boolean;
|
|
16
|
+
hours_per_week?: number;
|
|
17
|
+
hourly_rate?: number;
|
|
18
|
+
start_date?: string;
|
|
19
|
+
end_date?: string;
|
|
20
|
+
metadata?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
interface UpdateContractRequest {
|
|
23
|
+
hours_per_week?: number;
|
|
24
|
+
hourly_rate?: number;
|
|
25
|
+
start_date?: string;
|
|
26
|
+
end_date?: string;
|
|
27
|
+
metadata?: Record<string, any>;
|
|
28
|
+
}
|
|
29
|
+
export declare class ContractsApi {
|
|
30
|
+
private axios;
|
|
31
|
+
constructor(axios: AxiosInstance);
|
|
32
|
+
list(params?: {
|
|
33
|
+
employer_id?: string;
|
|
34
|
+
worker_id?: string;
|
|
35
|
+
status?: string;
|
|
36
|
+
lifecycle_status?: string;
|
|
37
|
+
contract_type?: string;
|
|
38
|
+
service_type?: string;
|
|
39
|
+
archived?: boolean;
|
|
40
|
+
limit?: number;
|
|
41
|
+
offset?: number;
|
|
42
|
+
sort?: string;
|
|
43
|
+
order?: 'asc' | 'desc';
|
|
44
|
+
}): Promise<{
|
|
45
|
+
data: {
|
|
46
|
+
id: string;
|
|
47
|
+
contract_number?: string | null;
|
|
48
|
+
employer_id: string;
|
|
49
|
+
worker_id?: string | null;
|
|
50
|
+
application_id?: string | null;
|
|
51
|
+
inquiry_id?: string | null;
|
|
52
|
+
account_id?: string | null;
|
|
53
|
+
arrangement_id?: string | null;
|
|
54
|
+
arrangement_title?: string | null;
|
|
55
|
+
contract_type_id: string;
|
|
56
|
+
contract_type?: string | null;
|
|
57
|
+
contract_type_title?: string | null;
|
|
58
|
+
service_type?: string | null;
|
|
59
|
+
salary_type_name?: string | null;
|
|
60
|
+
current_salary_amount?: number | null;
|
|
61
|
+
salary_id?: string | null;
|
|
62
|
+
source_invite_id?: string | null;
|
|
63
|
+
is_employer_also_worker?: boolean | null;
|
|
64
|
+
is_salary_manually_overridden?: boolean | null;
|
|
65
|
+
requires_background_check?: boolean | null;
|
|
66
|
+
requires_health_certificate?: boolean | null;
|
|
67
|
+
title?: string | null;
|
|
68
|
+
contract_details?: string | null;
|
|
69
|
+
hours_per_week?: number | null;
|
|
70
|
+
hourly_rate?: number | null;
|
|
71
|
+
start_date?: string | null;
|
|
72
|
+
end_date?: string | null;
|
|
73
|
+
status: unknown;
|
|
74
|
+
lifecycle_changed_at?: string | null;
|
|
75
|
+
status_changed_at?: string | null;
|
|
76
|
+
employer_email?: string | null;
|
|
77
|
+
employer_first_name?: string | null;
|
|
78
|
+
employer_last_name?: string | null;
|
|
79
|
+
employer_phone?: string | null;
|
|
80
|
+
worker_personal_number?: string | null;
|
|
81
|
+
worker_bank_account?: string | null;
|
|
82
|
+
worker_email?: string | null;
|
|
83
|
+
worker_name?: string | null;
|
|
84
|
+
worker_first_name?: string | null;
|
|
85
|
+
worker_last_name?: string | null;
|
|
86
|
+
worker_phone?: string | null;
|
|
87
|
+
worker_phone_number?: string | null;
|
|
88
|
+
worker_has_previous_employment?: boolean | null;
|
|
89
|
+
worker_previous_employment_details?: string | null;
|
|
90
|
+
worker_has_prior_assistant_experience?: boolean | null;
|
|
91
|
+
worker_has_prior_uloba_employment?: boolean | null;
|
|
92
|
+
worker_is_related_to_employer?: boolean | null;
|
|
93
|
+
worker_has_uloba_as_primary_employer?: boolean | null;
|
|
94
|
+
worker_requires_health_certificate?: boolean | null;
|
|
95
|
+
worker_requires_tuberculosis_test?: boolean | null;
|
|
96
|
+
worker_citizenship?: string | null;
|
|
97
|
+
worker_substitute_for_name?: string | null;
|
|
98
|
+
worker_address_street?: string | null;
|
|
99
|
+
worker_address_postal_code?: string | null;
|
|
100
|
+
worker_address_city?: string | null;
|
|
101
|
+
worker_address_country?: string | null;
|
|
102
|
+
worker_emergency_contact_name?: string | null;
|
|
103
|
+
worker_emergency_contact_phone?: string | null;
|
|
104
|
+
worker_emergency_contact_relation?: string | null;
|
|
105
|
+
decision_owner_id?: string | null;
|
|
106
|
+
decision_owner_name?: string | null;
|
|
107
|
+
decision_owner_same_as_coordinator?: boolean | null;
|
|
108
|
+
contract_invite_email?: string | null;
|
|
109
|
+
contract_invite_status?: string | null;
|
|
110
|
+
phase_1_submission_completed_by?: string | null;
|
|
111
|
+
phase_2_submission_completed_by?: string | null;
|
|
112
|
+
direct_submitted_at?: string | null;
|
|
113
|
+
direct_submitted_by?: string | null;
|
|
114
|
+
submitted_by?: string | null;
|
|
115
|
+
submitted_at?: string | null;
|
|
116
|
+
coordinator_submitted_at?: string | null;
|
|
117
|
+
coordinator_submitted_by?: string | null;
|
|
118
|
+
worker_submitted_at?: string | null;
|
|
119
|
+
worker_submitted_by?: string | null;
|
|
120
|
+
ready_for_submission_at?: string | null;
|
|
121
|
+
ready_for_submission_by?: string | null;
|
|
122
|
+
submitted_to_uloba_at?: string | null;
|
|
123
|
+
draft_at?: string | null;
|
|
124
|
+
draft_by?: string | null;
|
|
125
|
+
validation_failed_at?: string | null;
|
|
126
|
+
validation_failed_by?: string | null;
|
|
127
|
+
in_review_at?: string | null;
|
|
128
|
+
in_review_by?: string | null;
|
|
129
|
+
ready_for_signing_at?: string | null;
|
|
130
|
+
ready_for_signing_by?: string | null;
|
|
131
|
+
pending_signing_at?: string | null;
|
|
132
|
+
pending_signing_by?: string | null;
|
|
133
|
+
signed_at?: string | null;
|
|
134
|
+
signed_by?: string | null;
|
|
135
|
+
activated_at?: string | null;
|
|
136
|
+
activated_by?: string | null;
|
|
137
|
+
completed_at?: string | null;
|
|
138
|
+
completed_by?: string | null;
|
|
139
|
+
terminated_at?: string | null;
|
|
140
|
+
terminated_by?: string | null;
|
|
141
|
+
terminated_reason?: string | null;
|
|
142
|
+
rejected_at?: string | null;
|
|
143
|
+
rejected_by?: string | null;
|
|
144
|
+
rejected_reason?: string | null;
|
|
145
|
+
cancelled_at?: string | null;
|
|
146
|
+
cancelled_by?: string | null;
|
|
147
|
+
cancelled_reason?: string | null;
|
|
148
|
+
disputed_at?: string | null;
|
|
149
|
+
disputed_by?: string | null;
|
|
150
|
+
disputed_reason?: string | null;
|
|
151
|
+
temporary_position_reason?: string | null;
|
|
152
|
+
archived_by_employer?: boolean | null;
|
|
153
|
+
archived_at_employer?: string | null;
|
|
154
|
+
archived_by_worker?: boolean | null;
|
|
155
|
+
archived_at_worker?: string | null;
|
|
156
|
+
validation_status?: string | null;
|
|
157
|
+
validation_errors?: unknown;
|
|
158
|
+
validation_report?: unknown;
|
|
159
|
+
last_validated_at?: string | null;
|
|
160
|
+
created_at?: string | null;
|
|
161
|
+
updated_at?: string | null;
|
|
162
|
+
}[];
|
|
163
|
+
pagination: {
|
|
164
|
+
total: number;
|
|
165
|
+
limit: number;
|
|
166
|
+
offset: number;
|
|
167
|
+
page?: number;
|
|
168
|
+
has_more?: boolean;
|
|
169
|
+
};
|
|
170
|
+
metadata: {
|
|
171
|
+
viewerContext: string;
|
|
172
|
+
timestamp: string;
|
|
173
|
+
filters?: unknown;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
/**
|
|
177
|
+
* List contracts for teamlead/coordinator role
|
|
178
|
+
*/
|
|
179
|
+
listAsTeamlead(params?: {
|
|
180
|
+
limit?: number;
|
|
181
|
+
offset?: number;
|
|
182
|
+
status?: string;
|
|
183
|
+
lifecycle_status?: string;
|
|
184
|
+
contract_type_id?: string;
|
|
185
|
+
archived?: boolean;
|
|
186
|
+
sort_by?: string;
|
|
187
|
+
sort_order?: 'asc' | 'desc';
|
|
188
|
+
}): Promise<{
|
|
189
|
+
data: {
|
|
190
|
+
id: string;
|
|
191
|
+
contract_number?: string | null;
|
|
192
|
+
employer_id: string;
|
|
193
|
+
worker_id?: string | null;
|
|
194
|
+
application_id?: string | null;
|
|
195
|
+
inquiry_id?: string | null;
|
|
196
|
+
account_id?: string | null;
|
|
197
|
+
arrangement_id?: string | null;
|
|
198
|
+
arrangement_title?: string | null;
|
|
199
|
+
contract_type_id: string;
|
|
200
|
+
contract_type?: string | null;
|
|
201
|
+
contract_type_title?: string | null;
|
|
202
|
+
service_type?: string | null;
|
|
203
|
+
salary_type_name?: string | null;
|
|
204
|
+
current_salary_amount?: number | null;
|
|
205
|
+
salary_id?: string | null;
|
|
206
|
+
source_invite_id?: string | null;
|
|
207
|
+
is_employer_also_worker?: boolean | null;
|
|
208
|
+
is_salary_manually_overridden?: boolean | null;
|
|
209
|
+
requires_background_check?: boolean | null;
|
|
210
|
+
requires_health_certificate?: boolean | null;
|
|
211
|
+
title?: string | null;
|
|
212
|
+
contract_details?: string | null;
|
|
213
|
+
hours_per_week?: number | null;
|
|
214
|
+
hourly_rate?: number | null;
|
|
215
|
+
start_date?: string | null;
|
|
216
|
+
end_date?: string | null;
|
|
217
|
+
status: unknown;
|
|
218
|
+
lifecycle_changed_at?: string | null;
|
|
219
|
+
status_changed_at?: string | null;
|
|
220
|
+
employer_email?: string | null;
|
|
221
|
+
employer_first_name?: string | null;
|
|
222
|
+
employer_last_name?: string | null;
|
|
223
|
+
employer_phone?: string | null;
|
|
224
|
+
worker_personal_number?: string | null;
|
|
225
|
+
worker_bank_account?: string | null;
|
|
226
|
+
worker_email?: string | null;
|
|
227
|
+
worker_name?: string | null;
|
|
228
|
+
worker_first_name?: string | null;
|
|
229
|
+
worker_last_name?: string | null;
|
|
230
|
+
worker_phone?: string | null;
|
|
231
|
+
worker_phone_number?: string | null;
|
|
232
|
+
worker_has_previous_employment?: boolean | null;
|
|
233
|
+
worker_previous_employment_details?: string | null;
|
|
234
|
+
worker_has_prior_assistant_experience?: boolean | null;
|
|
235
|
+
worker_has_prior_uloba_employment?: boolean | null;
|
|
236
|
+
worker_is_related_to_employer?: boolean | null;
|
|
237
|
+
worker_has_uloba_as_primary_employer?: boolean | null;
|
|
238
|
+
worker_requires_health_certificate?: boolean | null;
|
|
239
|
+
worker_requires_tuberculosis_test?: boolean | null;
|
|
240
|
+
worker_citizenship?: string | null;
|
|
241
|
+
worker_substitute_for_name?: string | null;
|
|
242
|
+
worker_address_street?: string | null;
|
|
243
|
+
worker_address_postal_code?: string | null;
|
|
244
|
+
worker_address_city?: string | null;
|
|
245
|
+
worker_address_country?: string | null;
|
|
246
|
+
worker_emergency_contact_name?: string | null;
|
|
247
|
+
worker_emergency_contact_phone?: string | null;
|
|
248
|
+
worker_emergency_contact_relation?: string | null;
|
|
249
|
+
decision_owner_id?: string | null;
|
|
250
|
+
decision_owner_name?: string | null;
|
|
251
|
+
decision_owner_same_as_coordinator?: boolean | null;
|
|
252
|
+
contract_invite_email?: string | null;
|
|
253
|
+
contract_invite_status?: string | null;
|
|
254
|
+
phase_1_submission_completed_by?: string | null;
|
|
255
|
+
phase_2_submission_completed_by?: string | null;
|
|
256
|
+
direct_submitted_at?: string | null;
|
|
257
|
+
direct_submitted_by?: string | null;
|
|
258
|
+
submitted_by?: string | null;
|
|
259
|
+
submitted_at?: string | null;
|
|
260
|
+
coordinator_submitted_at?: string | null;
|
|
261
|
+
coordinator_submitted_by?: string | null;
|
|
262
|
+
worker_submitted_at?: string | null;
|
|
263
|
+
worker_submitted_by?: string | null;
|
|
264
|
+
ready_for_submission_at?: string | null;
|
|
265
|
+
ready_for_submission_by?: string | null;
|
|
266
|
+
submitted_to_uloba_at?: string | null;
|
|
267
|
+
draft_at?: string | null;
|
|
268
|
+
draft_by?: string | null;
|
|
269
|
+
validation_failed_at?: string | null;
|
|
270
|
+
validation_failed_by?: string | null;
|
|
271
|
+
in_review_at?: string | null;
|
|
272
|
+
in_review_by?: string | null;
|
|
273
|
+
ready_for_signing_at?: string | null;
|
|
274
|
+
ready_for_signing_by?: string | null;
|
|
275
|
+
pending_signing_at?: string | null;
|
|
276
|
+
pending_signing_by?: string | null;
|
|
277
|
+
signed_at?: string | null;
|
|
278
|
+
signed_by?: string | null;
|
|
279
|
+
activated_at?: string | null;
|
|
280
|
+
activated_by?: string | null;
|
|
281
|
+
completed_at?: string | null;
|
|
282
|
+
completed_by?: string | null;
|
|
283
|
+
terminated_at?: string | null;
|
|
284
|
+
terminated_by?: string | null;
|
|
285
|
+
terminated_reason?: string | null;
|
|
286
|
+
rejected_at?: string | null;
|
|
287
|
+
rejected_by?: string | null;
|
|
288
|
+
rejected_reason?: string | null;
|
|
289
|
+
cancelled_at?: string | null;
|
|
290
|
+
cancelled_by?: string | null;
|
|
291
|
+
cancelled_reason?: string | null;
|
|
292
|
+
disputed_at?: string | null;
|
|
293
|
+
disputed_by?: string | null;
|
|
294
|
+
disputed_reason?: string | null;
|
|
295
|
+
temporary_position_reason?: string | null;
|
|
296
|
+
archived_by_employer?: boolean | null;
|
|
297
|
+
archived_at_employer?: string | null;
|
|
298
|
+
archived_by_worker?: boolean | null;
|
|
299
|
+
archived_at_worker?: string | null;
|
|
300
|
+
validation_status?: string | null;
|
|
301
|
+
validation_errors?: unknown;
|
|
302
|
+
validation_report?: unknown;
|
|
303
|
+
last_validated_at?: string | null;
|
|
304
|
+
created_at?: string | null;
|
|
305
|
+
updated_at?: string | null;
|
|
306
|
+
}[];
|
|
307
|
+
pagination: {
|
|
308
|
+
total: number;
|
|
309
|
+
limit: number;
|
|
310
|
+
offset: number;
|
|
311
|
+
page?: number;
|
|
312
|
+
has_more?: boolean;
|
|
313
|
+
};
|
|
314
|
+
metadata: {
|
|
315
|
+
viewerContext: string;
|
|
316
|
+
timestamp: string;
|
|
317
|
+
filters?: unknown;
|
|
318
|
+
};
|
|
319
|
+
}>;
|
|
320
|
+
/**
|
|
321
|
+
* List contracts for assistant/worker role
|
|
322
|
+
*/
|
|
323
|
+
listAsAssistant(params?: {
|
|
324
|
+
limit?: number;
|
|
325
|
+
offset?: number;
|
|
326
|
+
status?: string;
|
|
327
|
+
lifecycle_status?: string;
|
|
328
|
+
contract_type_id?: string;
|
|
329
|
+
archived?: boolean;
|
|
330
|
+
sort_by?: string;
|
|
331
|
+
sort_order?: 'asc' | 'desc';
|
|
332
|
+
}): Promise<{
|
|
333
|
+
data: {
|
|
334
|
+
id: string;
|
|
335
|
+
contract_number?: string | null;
|
|
336
|
+
employer_id: string;
|
|
337
|
+
worker_id?: string | null;
|
|
338
|
+
application_id?: string | null;
|
|
339
|
+
inquiry_id?: string | null;
|
|
340
|
+
account_id?: string | null;
|
|
341
|
+
arrangement_id?: string | null;
|
|
342
|
+
arrangement_title?: string | null;
|
|
343
|
+
contract_type_id: string;
|
|
344
|
+
contract_type?: string | null;
|
|
345
|
+
contract_type_title?: string | null;
|
|
346
|
+
service_type?: string | null;
|
|
347
|
+
salary_type_name?: string | null;
|
|
348
|
+
current_salary_amount?: number | null;
|
|
349
|
+
salary_id?: string | null;
|
|
350
|
+
source_invite_id?: string | null;
|
|
351
|
+
is_employer_also_worker?: boolean | null;
|
|
352
|
+
is_salary_manually_overridden?: boolean | null;
|
|
353
|
+
requires_background_check?: boolean | null;
|
|
354
|
+
requires_health_certificate?: boolean | null;
|
|
355
|
+
title?: string | null;
|
|
356
|
+
contract_details?: string | null;
|
|
357
|
+
hours_per_week?: number | null;
|
|
358
|
+
hourly_rate?: number | null;
|
|
359
|
+
start_date?: string | null;
|
|
360
|
+
end_date?: string | null;
|
|
361
|
+
status: unknown;
|
|
362
|
+
lifecycle_changed_at?: string | null;
|
|
363
|
+
status_changed_at?: string | null;
|
|
364
|
+
employer_email?: string | null;
|
|
365
|
+
employer_first_name?: string | null;
|
|
366
|
+
employer_last_name?: string | null;
|
|
367
|
+
employer_phone?: string | null;
|
|
368
|
+
worker_personal_number?: string | null;
|
|
369
|
+
worker_bank_account?: string | null;
|
|
370
|
+
worker_email?: string | null;
|
|
371
|
+
worker_name?: string | null;
|
|
372
|
+
worker_first_name?: string | null;
|
|
373
|
+
worker_last_name?: string | null;
|
|
374
|
+
worker_phone?: string | null;
|
|
375
|
+
worker_phone_number?: string | null;
|
|
376
|
+
worker_has_previous_employment?: boolean | null;
|
|
377
|
+
worker_previous_employment_details?: string | null;
|
|
378
|
+
worker_has_prior_assistant_experience?: boolean | null;
|
|
379
|
+
worker_has_prior_uloba_employment?: boolean | null;
|
|
380
|
+
worker_is_related_to_employer?: boolean | null;
|
|
381
|
+
worker_has_uloba_as_primary_employer?: boolean | null;
|
|
382
|
+
worker_requires_health_certificate?: boolean | null;
|
|
383
|
+
worker_requires_tuberculosis_test?: boolean | null;
|
|
384
|
+
worker_citizenship?: string | null;
|
|
385
|
+
worker_substitute_for_name?: string | null;
|
|
386
|
+
worker_address_street?: string | null;
|
|
387
|
+
worker_address_postal_code?: string | null;
|
|
388
|
+
worker_address_city?: string | null;
|
|
389
|
+
worker_address_country?: string | null;
|
|
390
|
+
worker_emergency_contact_name?: string | null;
|
|
391
|
+
worker_emergency_contact_phone?: string | null;
|
|
392
|
+
worker_emergency_contact_relation?: string | null;
|
|
393
|
+
decision_owner_id?: string | null;
|
|
394
|
+
decision_owner_name?: string | null;
|
|
395
|
+
decision_owner_same_as_coordinator?: boolean | null;
|
|
396
|
+
contract_invite_email?: string | null;
|
|
397
|
+
contract_invite_status?: string | null;
|
|
398
|
+
phase_1_submission_completed_by?: string | null;
|
|
399
|
+
phase_2_submission_completed_by?: string | null;
|
|
400
|
+
direct_submitted_at?: string | null;
|
|
401
|
+
direct_submitted_by?: string | null;
|
|
402
|
+
submitted_by?: string | null;
|
|
403
|
+
submitted_at?: string | null;
|
|
404
|
+
coordinator_submitted_at?: string | null;
|
|
405
|
+
coordinator_submitted_by?: string | null;
|
|
406
|
+
worker_submitted_at?: string | null;
|
|
407
|
+
worker_submitted_by?: string | null;
|
|
408
|
+
ready_for_submission_at?: string | null;
|
|
409
|
+
ready_for_submission_by?: string | null;
|
|
410
|
+
submitted_to_uloba_at?: string | null;
|
|
411
|
+
draft_at?: string | null;
|
|
412
|
+
draft_by?: string | null;
|
|
413
|
+
validation_failed_at?: string | null;
|
|
414
|
+
validation_failed_by?: string | null;
|
|
415
|
+
in_review_at?: string | null;
|
|
416
|
+
in_review_by?: string | null;
|
|
417
|
+
ready_for_signing_at?: string | null;
|
|
418
|
+
ready_for_signing_by?: string | null;
|
|
419
|
+
pending_signing_at?: string | null;
|
|
420
|
+
pending_signing_by?: string | null;
|
|
421
|
+
signed_at?: string | null;
|
|
422
|
+
signed_by?: string | null;
|
|
423
|
+
activated_at?: string | null;
|
|
424
|
+
activated_by?: string | null;
|
|
425
|
+
completed_at?: string | null;
|
|
426
|
+
completed_by?: string | null;
|
|
427
|
+
terminated_at?: string | null;
|
|
428
|
+
terminated_by?: string | null;
|
|
429
|
+
terminated_reason?: string | null;
|
|
430
|
+
rejected_at?: string | null;
|
|
431
|
+
rejected_by?: string | null;
|
|
432
|
+
rejected_reason?: string | null;
|
|
433
|
+
cancelled_at?: string | null;
|
|
434
|
+
cancelled_by?: string | null;
|
|
435
|
+
cancelled_reason?: string | null;
|
|
436
|
+
disputed_at?: string | null;
|
|
437
|
+
disputed_by?: string | null;
|
|
438
|
+
disputed_reason?: string | null;
|
|
439
|
+
temporary_position_reason?: string | null;
|
|
440
|
+
archived_by_employer?: boolean | null;
|
|
441
|
+
archived_at_employer?: string | null;
|
|
442
|
+
archived_by_worker?: boolean | null;
|
|
443
|
+
archived_at_worker?: string | null;
|
|
444
|
+
validation_status?: string | null;
|
|
445
|
+
validation_errors?: unknown;
|
|
446
|
+
validation_report?: unknown;
|
|
447
|
+
last_validated_at?: string | null;
|
|
448
|
+
created_at?: string | null;
|
|
449
|
+
updated_at?: string | null;
|
|
450
|
+
}[];
|
|
451
|
+
pagination: {
|
|
452
|
+
total: number;
|
|
453
|
+
limit: number;
|
|
454
|
+
offset: number;
|
|
455
|
+
page?: number;
|
|
456
|
+
has_more?: boolean;
|
|
457
|
+
};
|
|
458
|
+
metadata: {
|
|
459
|
+
viewerContext: string;
|
|
460
|
+
timestamp: string;
|
|
461
|
+
filters?: unknown;
|
|
462
|
+
};
|
|
463
|
+
}>;
|
|
464
|
+
/**
|
|
465
|
+
* Get contract statistics for teamlead role
|
|
466
|
+
*/
|
|
467
|
+
getTeamleadStats(): Promise<any>;
|
|
468
|
+
/**
|
|
469
|
+
* Get contract statistics for assistant role
|
|
470
|
+
*/
|
|
471
|
+
getAssistantStats(): Promise<any>;
|
|
472
|
+
get(id: string): Promise<ContractEnhancedResponse>;
|
|
473
|
+
/**
|
|
474
|
+
* Get just the contract data without metadata
|
|
475
|
+
* Convenience method for backward compatibility
|
|
476
|
+
*/
|
|
477
|
+
getData(id: string): Promise<Contract>;
|
|
478
|
+
getContractView(id: string): Promise<ContractViewEnhancedResponse>;
|
|
479
|
+
create(contract: CreateContractRequest): Promise<{
|
|
480
|
+
id: string;
|
|
481
|
+
name: string;
|
|
482
|
+
organization_number: string;
|
|
483
|
+
description?: string;
|
|
484
|
+
short_description?: string;
|
|
485
|
+
email?: string;
|
|
486
|
+
phone?: string;
|
|
487
|
+
website?: string;
|
|
488
|
+
street_address?: string;
|
|
489
|
+
postal_code?: string;
|
|
490
|
+
city?: string;
|
|
491
|
+
country?: string;
|
|
492
|
+
logo_url?: string;
|
|
493
|
+
logo_dark_url?: string;
|
|
494
|
+
favicon_url?: string;
|
|
495
|
+
cover_image_url?: string;
|
|
496
|
+
facebook_url?: string;
|
|
497
|
+
linkedin_url?: string;
|
|
498
|
+
twitter_url?: string;
|
|
499
|
+
instagram_url?: string;
|
|
500
|
+
default_og_title?: string;
|
|
501
|
+
default_og_description?: string;
|
|
502
|
+
default_og_image_url?: string;
|
|
503
|
+
keywords?: string[];
|
|
504
|
+
privacy_policy_url?: string;
|
|
505
|
+
terms_of_service_url?: string;
|
|
506
|
+
metadata?: {
|
|
507
|
+
[key: string]: unknown;
|
|
508
|
+
};
|
|
509
|
+
created_at: string;
|
|
510
|
+
updated_at: string;
|
|
511
|
+
}>;
|
|
512
|
+
update(id: string, updates: UpdateContractRequest): Promise<{
|
|
513
|
+
id: string;
|
|
514
|
+
name: string;
|
|
515
|
+
organization_number: string;
|
|
516
|
+
description?: string;
|
|
517
|
+
short_description?: string;
|
|
518
|
+
email?: string;
|
|
519
|
+
phone?: string;
|
|
520
|
+
website?: string;
|
|
521
|
+
street_address?: string;
|
|
522
|
+
postal_code?: string;
|
|
523
|
+
city?: string;
|
|
524
|
+
country?: string;
|
|
525
|
+
logo_url?: string;
|
|
526
|
+
logo_dark_url?: string;
|
|
527
|
+
favicon_url?: string;
|
|
528
|
+
cover_image_url?: string;
|
|
529
|
+
facebook_url?: string;
|
|
530
|
+
linkedin_url?: string;
|
|
531
|
+
twitter_url?: string;
|
|
532
|
+
instagram_url?: string;
|
|
533
|
+
default_og_title?: string;
|
|
534
|
+
default_og_description?: string;
|
|
535
|
+
default_og_image_url?: string;
|
|
536
|
+
keywords?: string[];
|
|
537
|
+
privacy_policy_url?: string;
|
|
538
|
+
terms_of_service_url?: string;
|
|
539
|
+
metadata?: {
|
|
540
|
+
[key: string]: unknown;
|
|
541
|
+
};
|
|
542
|
+
created_at: string;
|
|
543
|
+
updated_at: string;
|
|
544
|
+
}>;
|
|
545
|
+
delete(id: string): Promise<void>;
|
|
546
|
+
accept(id: string, acceptedBy: 'worker' | 'employer'): Promise<{
|
|
547
|
+
id: string;
|
|
548
|
+
name: string;
|
|
549
|
+
organization_number: string;
|
|
550
|
+
description?: string;
|
|
551
|
+
short_description?: string;
|
|
552
|
+
email?: string;
|
|
553
|
+
phone?: string;
|
|
554
|
+
website?: string;
|
|
555
|
+
street_address?: string;
|
|
556
|
+
postal_code?: string;
|
|
557
|
+
city?: string;
|
|
558
|
+
country?: string;
|
|
559
|
+
logo_url?: string;
|
|
560
|
+
logo_dark_url?: string;
|
|
561
|
+
favicon_url?: string;
|
|
562
|
+
cover_image_url?: string;
|
|
563
|
+
facebook_url?: string;
|
|
564
|
+
linkedin_url?: string;
|
|
565
|
+
twitter_url?: string;
|
|
566
|
+
instagram_url?: string;
|
|
567
|
+
default_og_title?: string;
|
|
568
|
+
default_og_description?: string;
|
|
569
|
+
default_og_image_url?: string;
|
|
570
|
+
keywords?: string[];
|
|
571
|
+
privacy_policy_url?: string;
|
|
572
|
+
terms_of_service_url?: string;
|
|
573
|
+
metadata?: {
|
|
574
|
+
[key: string]: unknown;
|
|
575
|
+
};
|
|
576
|
+
created_at: string;
|
|
577
|
+
updated_at: string;
|
|
578
|
+
}>;
|
|
579
|
+
reject(id: string, rejectedBy: 'worker' | 'employer', reason: string): Promise<{
|
|
580
|
+
id: string;
|
|
581
|
+
name: string;
|
|
582
|
+
organization_number: string;
|
|
583
|
+
description?: string;
|
|
584
|
+
short_description?: string;
|
|
585
|
+
email?: string;
|
|
586
|
+
phone?: string;
|
|
587
|
+
website?: string;
|
|
588
|
+
street_address?: string;
|
|
589
|
+
postal_code?: string;
|
|
590
|
+
city?: string;
|
|
591
|
+
country?: string;
|
|
592
|
+
logo_url?: string;
|
|
593
|
+
logo_dark_url?: string;
|
|
594
|
+
favicon_url?: string;
|
|
595
|
+
cover_image_url?: string;
|
|
596
|
+
facebook_url?: string;
|
|
597
|
+
linkedin_url?: string;
|
|
598
|
+
twitter_url?: string;
|
|
599
|
+
instagram_url?: string;
|
|
600
|
+
default_og_title?: string;
|
|
601
|
+
default_og_description?: string;
|
|
602
|
+
default_og_image_url?: string;
|
|
603
|
+
keywords?: string[];
|
|
604
|
+
privacy_policy_url?: string;
|
|
605
|
+
terms_of_service_url?: string;
|
|
606
|
+
metadata?: {
|
|
607
|
+
[key: string]: unknown;
|
|
608
|
+
};
|
|
609
|
+
created_at: string;
|
|
610
|
+
updated_at: string;
|
|
611
|
+
}>;
|
|
612
|
+
sign(id: string, signedBy: 'worker' | 'employer', signatureData: any): Promise<{
|
|
613
|
+
id: string;
|
|
614
|
+
name: string;
|
|
615
|
+
organization_number: string;
|
|
616
|
+
description?: string;
|
|
617
|
+
short_description?: string;
|
|
618
|
+
email?: string;
|
|
619
|
+
phone?: string;
|
|
620
|
+
website?: string;
|
|
621
|
+
street_address?: string;
|
|
622
|
+
postal_code?: string;
|
|
623
|
+
city?: string;
|
|
624
|
+
country?: string;
|
|
625
|
+
logo_url?: string;
|
|
626
|
+
logo_dark_url?: string;
|
|
627
|
+
favicon_url?: string;
|
|
628
|
+
cover_image_url?: string;
|
|
629
|
+
facebook_url?: string;
|
|
630
|
+
linkedin_url?: string;
|
|
631
|
+
twitter_url?: string;
|
|
632
|
+
instagram_url?: string;
|
|
633
|
+
default_og_title?: string;
|
|
634
|
+
default_og_description?: string;
|
|
635
|
+
default_og_image_url?: string;
|
|
636
|
+
keywords?: string[];
|
|
637
|
+
privacy_policy_url?: string;
|
|
638
|
+
terms_of_service_url?: string;
|
|
639
|
+
metadata?: {
|
|
640
|
+
[key: string]: unknown;
|
|
641
|
+
};
|
|
642
|
+
created_at: string;
|
|
643
|
+
updated_at: string;
|
|
644
|
+
}>;
|
|
645
|
+
activate(id: string): Promise<{
|
|
646
|
+
id: string;
|
|
647
|
+
name: string;
|
|
648
|
+
organization_number: string;
|
|
649
|
+
description?: string;
|
|
650
|
+
short_description?: string;
|
|
651
|
+
email?: string;
|
|
652
|
+
phone?: string;
|
|
653
|
+
website?: string;
|
|
654
|
+
street_address?: string;
|
|
655
|
+
postal_code?: string;
|
|
656
|
+
city?: string;
|
|
657
|
+
country?: string;
|
|
658
|
+
logo_url?: string;
|
|
659
|
+
logo_dark_url?: string;
|
|
660
|
+
favicon_url?: string;
|
|
661
|
+
cover_image_url?: string;
|
|
662
|
+
facebook_url?: string;
|
|
663
|
+
linkedin_url?: string;
|
|
664
|
+
twitter_url?: string;
|
|
665
|
+
instagram_url?: string;
|
|
666
|
+
default_og_title?: string;
|
|
667
|
+
default_og_description?: string;
|
|
668
|
+
default_og_image_url?: string;
|
|
669
|
+
keywords?: string[];
|
|
670
|
+
privacy_policy_url?: string;
|
|
671
|
+
terms_of_service_url?: string;
|
|
672
|
+
metadata?: {
|
|
673
|
+
[key: string]: unknown;
|
|
674
|
+
};
|
|
675
|
+
created_at: string;
|
|
676
|
+
updated_at: string;
|
|
677
|
+
}>;
|
|
678
|
+
archive(id: string): Promise<{
|
|
679
|
+
id: string;
|
|
680
|
+
name: string;
|
|
681
|
+
organization_number: string;
|
|
682
|
+
description?: string;
|
|
683
|
+
short_description?: string;
|
|
684
|
+
email?: string;
|
|
685
|
+
phone?: string;
|
|
686
|
+
website?: string;
|
|
687
|
+
street_address?: string;
|
|
688
|
+
postal_code?: string;
|
|
689
|
+
city?: string;
|
|
690
|
+
country?: string;
|
|
691
|
+
logo_url?: string;
|
|
692
|
+
logo_dark_url?: string;
|
|
693
|
+
favicon_url?: string;
|
|
694
|
+
cover_image_url?: string;
|
|
695
|
+
facebook_url?: string;
|
|
696
|
+
linkedin_url?: string;
|
|
697
|
+
twitter_url?: string;
|
|
698
|
+
instagram_url?: string;
|
|
699
|
+
default_og_title?: string;
|
|
700
|
+
default_og_description?: string;
|
|
701
|
+
default_og_image_url?: string;
|
|
702
|
+
keywords?: string[];
|
|
703
|
+
privacy_policy_url?: string;
|
|
704
|
+
terms_of_service_url?: string;
|
|
705
|
+
metadata?: {
|
|
706
|
+
[key: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
created_at: string;
|
|
709
|
+
updated_at: string;
|
|
710
|
+
}>;
|
|
711
|
+
unarchive(id: string): Promise<{
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
organization_number: string;
|
|
715
|
+
description?: string;
|
|
716
|
+
short_description?: string;
|
|
717
|
+
email?: string;
|
|
718
|
+
phone?: string;
|
|
719
|
+
website?: string;
|
|
720
|
+
street_address?: string;
|
|
721
|
+
postal_code?: string;
|
|
722
|
+
city?: string;
|
|
723
|
+
country?: string;
|
|
724
|
+
logo_url?: string;
|
|
725
|
+
logo_dark_url?: string;
|
|
726
|
+
favicon_url?: string;
|
|
727
|
+
cover_image_url?: string;
|
|
728
|
+
facebook_url?: string;
|
|
729
|
+
linkedin_url?: string;
|
|
730
|
+
twitter_url?: string;
|
|
731
|
+
instagram_url?: string;
|
|
732
|
+
default_og_title?: string;
|
|
733
|
+
default_og_description?: string;
|
|
734
|
+
default_og_image_url?: string;
|
|
735
|
+
keywords?: string[];
|
|
736
|
+
privacy_policy_url?: string;
|
|
737
|
+
terms_of_service_url?: string;
|
|
738
|
+
metadata?: {
|
|
739
|
+
[key: string]: unknown;
|
|
740
|
+
};
|
|
741
|
+
created_at: string;
|
|
742
|
+
updated_at: string;
|
|
743
|
+
}>;
|
|
744
|
+
getWorkerDetails(contractId: string): Promise<any>;
|
|
745
|
+
upsertWorkerDetails(contractId: string, details: any): Promise<any>;
|
|
746
|
+
updateWorkerDetails(contractId: string, updates: any): Promise<any>;
|
|
747
|
+
deleteWorkerDetails(contractId: string): Promise<void>;
|
|
748
|
+
listSchedules(contractId: string, params?: {
|
|
749
|
+
valid_at?: string;
|
|
750
|
+
day_of_week?: number;
|
|
751
|
+
}): Promise<any>;
|
|
752
|
+
getSchedule(contractId: string, scheduleId: string): Promise<any>;
|
|
753
|
+
createSchedule(contractId: string, schedule: any): Promise<any>;
|
|
754
|
+
updateSchedule(contractId: string, scheduleId: string, updates: any): Promise<any>;
|
|
755
|
+
deleteSchedule(contractId: string, scheduleId: string): Promise<void>;
|
|
756
|
+
listAmendments(contractId: string, params?: {
|
|
757
|
+
status?: string;
|
|
758
|
+
amendment_type?: string;
|
|
759
|
+
}): Promise<any>;
|
|
760
|
+
getAmendment(contractId: string, amendmentId: string): Promise<any>;
|
|
761
|
+
createAmendment(contractId: string, amendment: any): Promise<any>;
|
|
762
|
+
updateAmendment(contractId: string, amendmentId: string, updates: any): Promise<any>;
|
|
763
|
+
proposeAmendment(contractId: string, amendmentId: string): Promise<any>;
|
|
764
|
+
approveAmendment(contractId: string, amendmentId: string): Promise<any>;
|
|
765
|
+
rejectAmendment(contractId: string, amendmentId: string, reason: string): Promise<any>;
|
|
766
|
+
deleteAmendment(contractId: string, amendmentId: string): Promise<void>;
|
|
767
|
+
coordinatorSubmit(contractId: string, data: {
|
|
768
|
+
arrangement_id: string;
|
|
769
|
+
contract_type_id: string;
|
|
770
|
+
contract_details?: string;
|
|
771
|
+
title?: string;
|
|
772
|
+
job_description?: string;
|
|
773
|
+
hours_per_week?: number;
|
|
774
|
+
hourly_rate?: number;
|
|
775
|
+
start_date?: string;
|
|
776
|
+
end_date?: string;
|
|
777
|
+
decision_owner_same_as_coordinator?: boolean;
|
|
778
|
+
decision_owner_name?: string;
|
|
779
|
+
work_schedule?: any;
|
|
780
|
+
equipment_provided?: any;
|
|
781
|
+
requires_background_check?: boolean;
|
|
782
|
+
requires_health_certificate?: boolean;
|
|
783
|
+
temporary_position_reason?: string;
|
|
784
|
+
}): Promise<any>;
|
|
785
|
+
workerSubmit(contractId: string, data: {
|
|
786
|
+
worker_personal_number: string;
|
|
787
|
+
worker_phone?: string;
|
|
788
|
+
worker_email?: string;
|
|
789
|
+
worker_bank_account: string;
|
|
790
|
+
worker_tax_card_type: 'main_card' | 'secondary_card' | 'percentage_card';
|
|
791
|
+
worker_tax_percentage?: number;
|
|
792
|
+
worker_has_previous_employment: boolean;
|
|
793
|
+
worker_previous_employment_details?: string;
|
|
794
|
+
worker_has_prior_assistant_experience?: boolean;
|
|
795
|
+
worker_has_prior_uloba_employment?: boolean;
|
|
796
|
+
worker_is_related_to_employer?: boolean;
|
|
797
|
+
worker_has_uloba_as_primary_employer?: boolean;
|
|
798
|
+
worker_relationship_type?: 'spouse' | 'parent' | 'child' | 'sibling' | 'other';
|
|
799
|
+
worker_relationship_details?: string;
|
|
800
|
+
worker_emergency_contact_name?: string;
|
|
801
|
+
worker_emergency_contact_phone?: string;
|
|
802
|
+
worker_union_member?: boolean;
|
|
803
|
+
worker_union_name?: string;
|
|
804
|
+
worker_citizenship?: string;
|
|
805
|
+
worker_home_address?: any;
|
|
806
|
+
worker_substitute_for_name?: string;
|
|
807
|
+
decision_owner_name: string;
|
|
808
|
+
decision_owner_same_as_coordinator: boolean;
|
|
809
|
+
decision_owner_phone?: string;
|
|
810
|
+
worker_accepts_terms: boolean;
|
|
811
|
+
worker_accepts_privacy: boolean;
|
|
812
|
+
}): Promise<any>;
|
|
813
|
+
submitToUloba(contractId: string, data?: {
|
|
814
|
+
coordinator_message?: string;
|
|
815
|
+
}): Promise<any>;
|
|
816
|
+
getLocations(contractId: string): Promise<any>;
|
|
817
|
+
addLocation(contractId: string, location: {
|
|
818
|
+
city: string;
|
|
819
|
+
postal_code?: string;
|
|
820
|
+
address?: string;
|
|
821
|
+
country?: string;
|
|
822
|
+
place_id?: string;
|
|
823
|
+
display_name?: string;
|
|
824
|
+
lat?: string;
|
|
825
|
+
lng?: string;
|
|
826
|
+
radius_km?: number;
|
|
827
|
+
max_distance_km?: number;
|
|
828
|
+
is_primary?: boolean;
|
|
829
|
+
sort_order?: number;
|
|
830
|
+
}): Promise<any>;
|
|
831
|
+
updateLocation(contractId: string, locationId: string, updates: {
|
|
832
|
+
city?: string;
|
|
833
|
+
postal_code?: string;
|
|
834
|
+
address?: string;
|
|
835
|
+
country?: string;
|
|
836
|
+
place_id?: string;
|
|
837
|
+
display_name?: string;
|
|
838
|
+
lat?: string;
|
|
839
|
+
lng?: string;
|
|
840
|
+
radius_km?: number;
|
|
841
|
+
max_distance_km?: number;
|
|
842
|
+
is_primary?: boolean;
|
|
843
|
+
sort_order?: number;
|
|
844
|
+
description?: string;
|
|
845
|
+
}): Promise<any>;
|
|
846
|
+
deleteLocation(contractId: string, locationId: string): Promise<void>;
|
|
847
|
+
replaceLocations(contractId: string, locations: Array<{
|
|
848
|
+
city: string;
|
|
849
|
+
postal_code?: string;
|
|
850
|
+
address?: string;
|
|
851
|
+
country?: string;
|
|
852
|
+
place_id?: string;
|
|
853
|
+
display_name?: string;
|
|
854
|
+
lat?: string;
|
|
855
|
+
lng?: string;
|
|
856
|
+
radius_km?: number;
|
|
857
|
+
max_distance_km?: number;
|
|
858
|
+
is_primary?: boolean;
|
|
859
|
+
sort_order?: number;
|
|
860
|
+
}>): Promise<any>;
|
|
861
|
+
listAttachments(contractId: string): Promise<any>;
|
|
862
|
+
uploadAttachment(contractId: string, file: Blob | File, options?: {
|
|
863
|
+
fileType?: 'contract_document' | 'amendment' | 'signature_page' | 'tuberculosis_test' | 'health_certificate' | 'attachment' | 'other';
|
|
864
|
+
description?: string;
|
|
865
|
+
metadata?: {
|
|
866
|
+
test_date?: string;
|
|
867
|
+
expires_date?: string;
|
|
868
|
+
};
|
|
869
|
+
}): Promise<any>;
|
|
870
|
+
getAttachment(contractId: string, attachmentId: string): Promise<any>;
|
|
871
|
+
updateAttachment(contractId: string, attachmentId: string, updates: {
|
|
872
|
+
description?: string;
|
|
873
|
+
file_type?: string;
|
|
874
|
+
}): Promise<any>;
|
|
875
|
+
deleteAttachment(contractId: string, attachmentId: string): Promise<void>;
|
|
876
|
+
getAttachmentSignedUrl(contractId: string, attachmentId: string, expiresIn?: number): Promise<any>;
|
|
877
|
+
createInvite(contractId: string, invite: {
|
|
878
|
+
email: string;
|
|
879
|
+
first_name?: string;
|
|
880
|
+
last_name?: string;
|
|
881
|
+
phone?: string;
|
|
882
|
+
role: 'assistant' | 'substitute' | 'employer' | 'coordinator';
|
|
883
|
+
message?: string;
|
|
884
|
+
}): Promise<any>;
|
|
885
|
+
listInvites(contractId: string, params?: {
|
|
886
|
+
status?: 'pending' | 'accepted' | 'rejected' | 'cancelled' | 'expired';
|
|
887
|
+
role?: 'assistant' | 'substitute' | 'employer' | 'coordinator';
|
|
888
|
+
email?: string;
|
|
889
|
+
user_id?: string;
|
|
890
|
+
page?: number;
|
|
891
|
+
limit?: number;
|
|
892
|
+
}): Promise<any>;
|
|
893
|
+
getInvite(contractId: string, inviteId: string): Promise<any>;
|
|
894
|
+
resendInvite(contractId: string, inviteId: string): Promise<any>;
|
|
895
|
+
cancelInvite(contractId: string, inviteId: string): Promise<any>;
|
|
896
|
+
/**
|
|
897
|
+
* Create a new direct contract where employer is also worker
|
|
898
|
+
* @description Creates a new direct employment contract with minimal data. All defaults are set from authenticated user.
|
|
899
|
+
*/
|
|
900
|
+
createDirectContract(): Promise<any>;
|
|
901
|
+
}
|
|
902
|
+
export {};
|
|
903
|
+
//# sourceMappingURL=contracts.d.ts.map
|