@digiteers/uloba3-sdk 1.10.0 → 2.0.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/types.d.ts CHANGED
@@ -12689,6 +12689,7 @@ export interface paths {
12689
12689
  account_id?: string | null;
12690
12690
  arrangement_id?: string | null;
12691
12691
  arrangement_title?: string | null;
12692
+ conversation_id?: string | null;
12692
12693
  /** Format: uuid */
12693
12694
  contract_type_id: string;
12694
12695
  contract_type?: string | null;
@@ -12783,9 +12784,6 @@ export interface paths {
12783
12784
  cancelled_at?: string | null;
12784
12785
  cancelled_by?: string | null;
12785
12786
  cancelled_reason?: string | null;
12786
- disputed_at?: string | null;
12787
- disputed_by?: string | null;
12788
- disputed_reason?: string | null;
12789
12787
  temporary_position_reason?: string | null;
12790
12788
  archived_by_employer?: boolean | null;
12791
12789
  archived_at_employer?: string | null;
@@ -16921,6 +16919,7 @@ export interface paths {
16921
16919
  account_id?: string | null;
16922
16920
  arrangement_id?: string | null;
16923
16921
  arrangement_title?: string | null;
16922
+ conversation_id?: string | null;
16924
16923
  /** Format: uuid */
16925
16924
  contract_type_id: string;
16926
16925
  contract_type?: string | null;
@@ -17015,9 +17014,6 @@ export interface paths {
17015
17014
  cancelled_at?: string | null;
17016
17015
  cancelled_by?: string | null;
17017
17016
  cancelled_reason?: string | null;
17018
- disputed_at?: string | null;
17019
- disputed_by?: string | null;
17020
- disputed_reason?: string | null;
17021
17017
  temporary_position_reason?: string | null;
17022
17018
  archived_by_employer?: boolean | null;
17023
17019
  archived_at_employer?: string | null;
@@ -17215,6 +17211,7 @@ export interface paths {
17215
17211
  account_id?: string | null;
17216
17212
  arrangement_id?: string | null;
17217
17213
  arrangement_title?: string | null;
17214
+ conversation_id?: string | null;
17218
17215
  /** Format: uuid */
17219
17216
  contract_type_id: string;
17220
17217
  contract_type?: string | null;
@@ -17309,9 +17306,6 @@ export interface paths {
17309
17306
  cancelled_at?: string | null;
17310
17307
  cancelled_by?: string | null;
17311
17308
  cancelled_reason?: string | null;
17312
- disputed_at?: string | null;
17313
- disputed_by?: string | null;
17314
- disputed_reason?: string | null;
17315
17309
  temporary_position_reason?: string | null;
17316
17310
  archived_by_employer?: boolean | null;
17317
17311
  archived_at_employer?: string | null;
@@ -17489,6 +17483,7 @@ export interface paths {
17489
17483
  account_id?: string | null;
17490
17484
  arrangement_id?: string | null;
17491
17485
  arrangement_title?: string | null;
17486
+ conversation_id?: string | null;
17492
17487
  /** Format: uuid */
17493
17488
  contract_type_id: string;
17494
17489
  contract_type?: string | null;
@@ -17583,9 +17578,6 @@ export interface paths {
17583
17578
  cancelled_at?: string | null;
17584
17579
  cancelled_by?: string | null;
17585
17580
  cancelled_reason?: string | null;
17586
- disputed_at?: string | null;
17587
- disputed_by?: string | null;
17588
- disputed_reason?: string | null;
17589
17581
  temporary_position_reason?: string | null;
17590
17582
  archived_by_employer?: boolean | null;
17591
17583
  archived_at_employer?: string | null;
@@ -17759,6 +17751,7 @@ export interface paths {
17759
17751
  account_id?: string | null;
17760
17752
  arrangement_id?: string | null;
17761
17753
  arrangement_title?: string | null;
17754
+ conversation_id?: string | null;
17762
17755
  /** Format: uuid */
17763
17756
  contract_type_id: string;
17764
17757
  contract_type?: string | null;
@@ -17853,9 +17846,6 @@ export interface paths {
17853
17846
  cancelled_at?: string | null;
17854
17847
  cancelled_by?: string | null;
17855
17848
  cancelled_reason?: string | null;
17856
- disputed_at?: string | null;
17857
- disputed_by?: string | null;
17858
- disputed_reason?: string | null;
17859
17849
  temporary_position_reason?: string | null;
17860
17850
  archived_by_employer?: boolean | null;
17861
17851
  archived_at_employer?: string | null;
@@ -17959,6 +17949,7 @@ export interface paths {
17959
17949
  account_id?: string | null;
17960
17950
  arrangement_id?: string | null;
17961
17951
  arrangement_title?: string | null;
17952
+ conversation_id?: string | null;
17962
17953
  /** Format: uuid */
17963
17954
  contract_type_id: string;
17964
17955
  contract_type?: string | null;
@@ -18053,9 +18044,6 @@ export interface paths {
18053
18044
  cancelled_at?: string | null;
18054
18045
  cancelled_by?: string | null;
18055
18046
  cancelled_reason?: string | null;
18056
- disputed_at?: string | null;
18057
- disputed_by?: string | null;
18058
- disputed_reason?: string | null;
18059
18047
  temporary_position_reason?: string | null;
18060
18048
  archived_by_employer?: boolean | null;
18061
18049
  archived_at_employer?: string | null;
@@ -18225,6 +18213,7 @@ export interface paths {
18225
18213
  account_id?: string | null;
18226
18214
  arrangement_id?: string | null;
18227
18215
  arrangement_title?: string | null;
18216
+ conversation_id?: string | null;
18228
18217
  /** Format: uuid */
18229
18218
  contract_type_id: string;
18230
18219
  contract_type?: string | null;
@@ -18319,9 +18308,6 @@ export interface paths {
18319
18308
  cancelled_at?: string | null;
18320
18309
  cancelled_by?: string | null;
18321
18310
  cancelled_reason?: string | null;
18322
- disputed_at?: string | null;
18323
- disputed_by?: string | null;
18324
- disputed_reason?: string | null;
18325
18311
  temporary_position_reason?: string | null;
18326
18312
  archived_by_employer?: boolean | null;
18327
18313
  archived_at_employer?: string | null;
@@ -18412,6 +18398,7 @@ export interface paths {
18412
18398
  account_id?: string | null;
18413
18399
  arrangement_id?: string | null;
18414
18400
  arrangement_title?: string | null;
18401
+ conversation_id?: string | null;
18415
18402
  /** Format: uuid */
18416
18403
  contract_type_id: string;
18417
18404
  contract_type?: string | null;
@@ -18506,9 +18493,6 @@ export interface paths {
18506
18493
  cancelled_at?: string | null;
18507
18494
  cancelled_by?: string | null;
18508
18495
  cancelled_reason?: string | null;
18509
- disputed_at?: string | null;
18510
- disputed_by?: string | null;
18511
- disputed_reason?: string | null;
18512
18496
  temporary_position_reason?: string | null;
18513
18497
  archived_by_employer?: boolean | null;
18514
18498
  archived_at_employer?: string | null;
@@ -18702,6 +18686,7 @@ export interface paths {
18702
18686
  account_id?: string | null;
18703
18687
  arrangement_id?: string | null;
18704
18688
  arrangement_title?: string | null;
18689
+ conversation_id?: string | null;
18705
18690
  /** Format: uuid */
18706
18691
  contract_type_id: string;
18707
18692
  contract_type?: string | null;
@@ -18796,9 +18781,6 @@ export interface paths {
18796
18781
  cancelled_at?: string | null;
18797
18782
  cancelled_by?: string | null;
18798
18783
  cancelled_reason?: string | null;
18799
- disputed_at?: string | null;
18800
- disputed_by?: string | null;
18801
- disputed_reason?: string | null;
18802
18784
  temporary_position_reason?: string | null;
18803
18785
  archived_by_employer?: boolean | null;
18804
18786
  archived_at_employer?: string | null;
@@ -19134,43 +19116,51 @@ export interface paths {
19134
19116
  patch?: never;
19135
19117
  trace?: never;
19136
19118
  };
19137
- '/api/contracts/employer': {
19119
+ '/api/contracts/{id}/coordinator-submit': {
19138
19120
  parameters: {
19139
19121
  query?: never;
19140
19122
  header?: never;
19141
19123
  path?: never;
19142
19124
  cookie?: never;
19143
19125
  };
19126
+ get?: never;
19127
+ put?: never;
19144
19128
  /**
19145
- * [DEPRECATED] Use /teamlead instead
19146
- * @deprecated
19147
- * @description DEPRECATED: List contracts where user is the employer/coordinator. Use /teamlead endpoint instead.
19129
+ * Submit coordinator data (Phase 1)
19130
+ * @description Coordinator submits contract details in phase 1 of two-phase submission
19148
19131
  */
19149
- get: {
19132
+ post: {
19150
19133
  parameters: {
19151
- query?: {
19152
- limit?: number;
19153
- offset?: number;
19154
- sort_by?: string;
19155
- sort_order?: 'asc' | 'desc';
19156
- archived?: boolean;
19157
- search?: string;
19158
- created_after?: string;
19159
- created_before?: string;
19160
- updated_after?: string;
19161
- updated_before?: string;
19162
- viewType?: 'employer' | 'worker';
19163
- status?: string;
19164
- lifecycle_status?: 'operational' | 'archived' | 'anonymized';
19165
- contract_type_id?: string;
19166
- sort?: 'created_at' | 'updated_at' | 'start_date' | 'contract_number';
19167
- order?: 'asc' | 'desc';
19168
- };
19134
+ query?: never;
19169
19135
  header?: never;
19170
- path?: never;
19136
+ path: {
19137
+ id: string;
19138
+ };
19171
19139
  cookie?: never;
19172
19140
  };
19173
- requestBody?: never;
19141
+ requestBody: {
19142
+ content: {
19143
+ 'application/json': {
19144
+ /** Format: uuid */
19145
+ arrangement_id: string;
19146
+ /** Format: uuid */
19147
+ contract_type_id: string;
19148
+ contract_details?: string;
19149
+ title?: string;
19150
+ /** @description Hours per week (0.5-60 hours) */
19151
+ hours_per_week?: number;
19152
+ hourly_rate?: number;
19153
+ start_date?: string | null;
19154
+ end_date?: string | null;
19155
+ decision_owner_same_as_coordinator?: boolean;
19156
+ decision_owner_name?: string;
19157
+ requires_background_check?: boolean;
19158
+ requires_health_certificate?: boolean;
19159
+ temporary_position_reason?: string;
19160
+ coordinator_message?: string;
19161
+ };
19162
+ };
19163
+ };
19174
19164
  responses: {
19175
19165
  /** @description Default Response */
19176
19166
  200: {
@@ -19191,6 +19181,7 @@ export interface paths {
19191
19181
  account_id?: string | null;
19192
19182
  arrangement_id?: string | null;
19193
19183
  arrangement_title?: string | null;
19184
+ conversation_id?: string | null;
19194
19185
  /** Format: uuid */
19195
19186
  contract_type_id: string;
19196
19187
  contract_type?: string | null;
@@ -19285,9 +19276,6 @@ export interface paths {
19285
19276
  cancelled_at?: string | null;
19286
19277
  cancelled_by?: string | null;
19287
19278
  cancelled_reason?: string | null;
19288
- disputed_at?: string | null;
19289
- disputed_by?: string | null;
19290
- disputed_reason?: string | null;
19291
19279
  temporary_position_reason?: string | null;
19292
19280
  archived_by_employer?: boolean | null;
19293
19281
  archived_at_employer?: string | null;
@@ -19299,18 +19287,15 @@ export interface paths {
19299
19287
  last_validated_at?: string | null;
19300
19288
  created_at?: string | null;
19301
19289
  updated_at?: string | null;
19302
- }[];
19303
- pagination: {
19304
- total: number;
19305
- limit: number;
19306
- offset: number;
19307
- page?: number;
19308
- has_more?: boolean;
19309
19290
  };
19310
19291
  metadata: {
19311
- viewerContext: string;
19312
- timestamp: string;
19313
- filters?: unknown;
19292
+ /** @description Viewer relationship to the resource */
19293
+ viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
19294
+ permissions: {
19295
+ canView: boolean;
19296
+ canEdit: boolean;
19297
+ canDelete: boolean;
19298
+ };
19314
19299
  };
19315
19300
  };
19316
19301
  };
@@ -19417,51 +19402,60 @@ export interface paths {
19417
19402
  };
19418
19403
  };
19419
19404
  };
19420
- put?: never;
19421
- post?: never;
19422
19405
  delete?: never;
19423
19406
  options?: never;
19424
19407
  head?: never;
19425
19408
  patch?: never;
19426
19409
  trace?: never;
19427
19410
  };
19428
- '/api/contracts/worker': {
19411
+ '/api/contracts/{id}/worker-submit': {
19429
19412
  parameters: {
19430
19413
  query?: never;
19431
19414
  header?: never;
19432
19415
  path?: never;
19433
19416
  cookie?: never;
19434
19417
  };
19418
+ get?: never;
19419
+ put?: never;
19435
19420
  /**
19436
- * [DEPRECATED] Use /assistant instead
19437
- * @deprecated
19438
- * @description DEPRECATED: List contracts where user is the worker/assistant. Use /assistant endpoint instead.
19421
+ * Submit worker data (Phase 2)
19422
+ * @description Worker submits personal information in phase 2 of two-phase submission
19439
19423
  */
19440
- get: {
19424
+ post: {
19441
19425
  parameters: {
19442
- query?: {
19443
- limit?: number;
19444
- offset?: number;
19445
- sort_by?: string;
19446
- sort_order?: 'asc' | 'desc';
19447
- archived?: boolean;
19448
- search?: string;
19449
- created_after?: string;
19450
- created_before?: string;
19451
- updated_after?: string;
19452
- updated_before?: string;
19453
- viewType?: 'employer' | 'worker';
19454
- status?: string;
19455
- lifecycle_status?: 'operational' | 'archived' | 'anonymized';
19456
- contract_type_id?: string;
19457
- sort?: 'created_at' | 'updated_at' | 'start_date' | 'contract_number';
19458
- order?: 'asc' | 'desc';
19459
- };
19426
+ query?: never;
19460
19427
  header?: never;
19461
- path?: never;
19428
+ path: {
19429
+ id: string;
19430
+ };
19462
19431
  cookie?: never;
19463
19432
  };
19464
- requestBody?: never;
19433
+ requestBody: {
19434
+ content: {
19435
+ 'application/json': {
19436
+ /** @description Norwegian personal number (11 digits) */
19437
+ worker_personal_number: string;
19438
+ worker_address_street: string;
19439
+ worker_address_postal_code: string;
19440
+ worker_address_city: string;
19441
+ worker_address_country?: string;
19442
+ /** @description Norwegian bank account number */
19443
+ worker_bank_account: string;
19444
+ worker_emergency_contact_name: string;
19445
+ worker_emergency_contact_phone: string;
19446
+ worker_emergency_contact_relation: string;
19447
+ worker_has_previous_employment: boolean;
19448
+ worker_previous_employment_details?: string;
19449
+ worker_has_prior_assistant_experience: boolean;
19450
+ worker_has_prior_uloba_employment: boolean;
19451
+ worker_is_related_to_employer: boolean;
19452
+ worker_has_uloba_as_primary_employer: boolean;
19453
+ worker_citizenship: string;
19454
+ worker_substitute_for_name?: string;
19455
+ worker_requires_tuberculosis_test: boolean;
19456
+ };
19457
+ };
19458
+ };
19465
19459
  responses: {
19466
19460
  /** @description Default Response */
19467
19461
  200: {
@@ -19482,6 +19476,7 @@ export interface paths {
19482
19476
  account_id?: string | null;
19483
19477
  arrangement_id?: string | null;
19484
19478
  arrangement_title?: string | null;
19479
+ conversation_id?: string | null;
19485
19480
  /** Format: uuid */
19486
19481
  contract_type_id: string;
19487
19482
  contract_type?: string | null;
@@ -19576,9 +19571,6 @@ export interface paths {
19576
19571
  cancelled_at?: string | null;
19577
19572
  cancelled_by?: string | null;
19578
19573
  cancelled_reason?: string | null;
19579
- disputed_at?: string | null;
19580
- disputed_by?: string | null;
19581
- disputed_reason?: string | null;
19582
19574
  temporary_position_reason?: string | null;
19583
19575
  archived_by_employer?: boolean | null;
19584
19576
  archived_at_employer?: string | null;
@@ -19590,18 +19582,15 @@ export interface paths {
19590
19582
  last_validated_at?: string | null;
19591
19583
  created_at?: string | null;
19592
19584
  updated_at?: string | null;
19593
- }[];
19594
- pagination: {
19595
- total: number;
19596
- limit: number;
19597
- offset: number;
19598
- page?: number;
19599
- has_more?: boolean;
19600
19585
  };
19601
19586
  metadata: {
19602
- viewerContext: string;
19603
- timestamp: string;
19604
- filters?: unknown;
19587
+ /** @description Viewer relationship to the resource */
19588
+ viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
19589
+ permissions: {
19590
+ canView: boolean;
19591
+ canEdit: boolean;
19592
+ canDelete: boolean;
19593
+ };
19605
19594
  };
19606
19595
  };
19607
19596
  };
@@ -19708,15 +19697,13 @@ export interface paths {
19708
19697
  };
19709
19698
  };
19710
19699
  };
19711
- put?: never;
19712
- post?: never;
19713
19700
  delete?: never;
19714
19701
  options?: never;
19715
19702
  head?: never;
19716
19703
  patch?: never;
19717
19704
  trace?: never;
19718
19705
  };
19719
- '/api/contracts/{id}/coordinator-submit': {
19706
+ '/api/contracts/{id}/submit-to-uloba': {
19720
19707
  parameters: {
19721
19708
  query?: never;
19722
19709
  header?: never;
@@ -19726,8 +19713,8 @@ export interface paths {
19726
19713
  get?: never;
19727
19714
  put?: never;
19728
19715
  /**
19729
- * Submit coordinator data (Phase 1)
19730
- * @description Coordinator submits contract details in phase 1 of two-phase submission
19716
+ * Submit contract to Uloba
19717
+ * @description Final submission to Uloba after both parties have completed their parts
19731
19718
  */
19732
19719
  post: {
19733
19720
  parameters: {
@@ -19738,25 +19725,9 @@ export interface paths {
19738
19725
  };
19739
19726
  cookie?: never;
19740
19727
  };
19741
- requestBody: {
19728
+ requestBody?: {
19742
19729
  content: {
19743
19730
  'application/json': {
19744
- /** Format: uuid */
19745
- arrangement_id: string;
19746
- /** Format: uuid */
19747
- contract_type_id: string;
19748
- contract_details?: string;
19749
- title?: string;
19750
- /** @description Hours per week (0.5-60 hours) */
19751
- hours_per_week?: number;
19752
- hourly_rate?: number;
19753
- start_date?: string | null;
19754
- end_date?: string | null;
19755
- decision_owner_same_as_coordinator?: boolean;
19756
- decision_owner_name?: string;
19757
- requires_background_check?: boolean;
19758
- requires_health_certificate?: boolean;
19759
- temporary_position_reason?: string;
19760
19731
  coordinator_message?: string;
19761
19732
  };
19762
19733
  };
@@ -19781,6 +19752,7 @@ export interface paths {
19781
19752
  account_id?: string | null;
19782
19753
  arrangement_id?: string | null;
19783
19754
  arrangement_title?: string | null;
19755
+ conversation_id?: string | null;
19784
19756
  /** Format: uuid */
19785
19757
  contract_type_id: string;
19786
19758
  contract_type?: string | null;
@@ -19875,9 +19847,6 @@ export interface paths {
19875
19847
  cancelled_at?: string | null;
19876
19848
  cancelled_by?: string | null;
19877
19849
  cancelled_reason?: string | null;
19878
- disputed_at?: string | null;
19879
- disputed_by?: string | null;
19880
- disputed_reason?: string | null;
19881
19850
  temporary_position_reason?: string | null;
19882
19851
  archived_by_employer?: boolean | null;
19883
19852
  archived_at_employer?: string | null;
@@ -20010,7 +19979,7 @@ export interface paths {
20010
19979
  patch?: never;
20011
19980
  trace?: never;
20012
19981
  };
20013
- '/api/contracts/{id}/worker-submit': {
19982
+ '/api/contracts/{id}/prepare-signing': {
20014
19983
  parameters: {
20015
19984
  query?: never;
20016
19985
  header?: never;
@@ -20020,8 +19989,8 @@ export interface paths {
20020
19989
  get?: never;
20021
19990
  put?: never;
20022
19991
  /**
20023
- * Submit worker data (Phase 2)
20024
- * @description Worker submits personal information in phase 2 of two-phase submission
19992
+ * Prepare contract for signing
19993
+ * @description Prepare contract for digital signing after worker acceptance
20025
19994
  */
20026
19995
  post: {
20027
19996
  parameters: {
@@ -20032,32 +20001,7 @@ export interface paths {
20032
20001
  };
20033
20002
  cookie?: never;
20034
20003
  };
20035
- requestBody: {
20036
- content: {
20037
- 'application/json': {
20038
- /** @description Norwegian personal number (11 digits) */
20039
- worker_personal_number: string;
20040
- worker_address_street: string;
20041
- worker_address_postal_code: string;
20042
- worker_address_city: string;
20043
- worker_address_country?: string;
20044
- /** @description Norwegian bank account number */
20045
- worker_bank_account: string;
20046
- worker_emergency_contact_name: string;
20047
- worker_emergency_contact_phone: string;
20048
- worker_emergency_contact_relation: string;
20049
- worker_has_previous_employment: boolean;
20050
- worker_previous_employment_details?: string;
20051
- worker_has_prior_assistant_experience: boolean;
20052
- worker_has_prior_uloba_employment: boolean;
20053
- worker_is_related_to_employer: boolean;
20054
- worker_has_uloba_as_primary_employer: boolean;
20055
- worker_citizenship: string;
20056
- worker_substitute_for_name?: string;
20057
- worker_requires_tuberculosis_test: boolean;
20058
- };
20059
- };
20060
- };
20004
+ requestBody?: never;
20061
20005
  responses: {
20062
20006
  /** @description Default Response */
20063
20007
  200: {
@@ -20078,6 +20022,7 @@ export interface paths {
20078
20022
  account_id?: string | null;
20079
20023
  arrangement_id?: string | null;
20080
20024
  arrangement_title?: string | null;
20025
+ conversation_id?: string | null;
20081
20026
  /** Format: uuid */
20082
20027
  contract_type_id: string;
20083
20028
  contract_type?: string | null;
@@ -20172,9 +20117,6 @@ export interface paths {
20172
20117
  cancelled_at?: string | null;
20173
20118
  cancelled_by?: string | null;
20174
20119
  cancelled_reason?: string | null;
20175
- disputed_at?: string | null;
20176
- disputed_by?: string | null;
20177
- disputed_reason?: string | null;
20178
20120
  temporary_position_reason?: string | null;
20179
20121
  archived_by_employer?: boolean | null;
20180
20122
  archived_at_employer?: string | null;
@@ -20307,7 +20249,7 @@ export interface paths {
20307
20249
  patch?: never;
20308
20250
  trace?: never;
20309
20251
  };
20310
- '/api/contracts/{id}/submit-to-uloba': {
20252
+ '/api/contracts/{id}/complete': {
20311
20253
  parameters: {
20312
20254
  query?: never;
20313
20255
  header?: never;
@@ -20317,8 +20259,8 @@ export interface paths {
20317
20259
  get?: never;
20318
20260
  put?: never;
20319
20261
  /**
20320
- * Submit contract to Uloba
20321
- * @description Final submission to Uloba after both parties have completed their parts
20262
+ * Complete contract
20263
+ * @description Mark contract as completed
20322
20264
  */
20323
20265
  post: {
20324
20266
  parameters: {
@@ -20332,7 +20274,8 @@ export interface paths {
20332
20274
  requestBody?: {
20333
20275
  content: {
20334
20276
  'application/json': {
20335
- coordinator_message?: string;
20277
+ /** @description Notes about contract completion */
20278
+ completion_notes?: string;
20336
20279
  };
20337
20280
  };
20338
20281
  };
@@ -20356,6 +20299,7 @@ export interface paths {
20356
20299
  account_id?: string | null;
20357
20300
  arrangement_id?: string | null;
20358
20301
  arrangement_title?: string | null;
20302
+ conversation_id?: string | null;
20359
20303
  /** Format: uuid */
20360
20304
  contract_type_id: string;
20361
20305
  contract_type?: string | null;
@@ -20450,9 +20394,6 @@ export interface paths {
20450
20394
  cancelled_at?: string | null;
20451
20395
  cancelled_by?: string | null;
20452
20396
  cancelled_reason?: string | null;
20453
- disputed_at?: string | null;
20454
- disputed_by?: string | null;
20455
- disputed_reason?: string | null;
20456
20397
  temporary_position_reason?: string | null;
20457
20398
  archived_by_employer?: boolean | null;
20458
20399
  archived_at_employer?: string | null;
@@ -20585,7 +20526,7 @@ export interface paths {
20585
20526
  patch?: never;
20586
20527
  trace?: never;
20587
20528
  };
20588
- '/api/contracts/{id}/prepare-signing': {
20529
+ '/api/contracts/{id}/terminate': {
20589
20530
  parameters: {
20590
20531
  query?: never;
20591
20532
  header?: never;
@@ -20595,8 +20536,8 @@ export interface paths {
20595
20536
  get?: never;
20596
20537
  put?: never;
20597
20538
  /**
20598
- * Prepare contract for signing
20599
- * @description Prepare contract for digital signing after worker acceptance
20539
+ * Terminate contract
20540
+ * @description Terminate an active contract
20600
20541
  */
20601
20542
  post: {
20602
20543
  parameters: {
@@ -20607,7 +20548,16 @@ export interface paths {
20607
20548
  };
20608
20549
  cookie?: never;
20609
20550
  };
20610
- requestBody?: never;
20551
+ requestBody: {
20552
+ content: {
20553
+ 'application/json': {
20554
+ /** @description Reason for termination */
20555
+ termination_reason: string;
20556
+ /** @description Notice period in days */
20557
+ notice_period_days?: number;
20558
+ };
20559
+ };
20560
+ };
20611
20561
  responses: {
20612
20562
  /** @description Default Response */
20613
20563
  200: {
@@ -20628,6 +20578,7 @@ export interface paths {
20628
20578
  account_id?: string | null;
20629
20579
  arrangement_id?: string | null;
20630
20580
  arrangement_title?: string | null;
20581
+ conversation_id?: string | null;
20631
20582
  /** Format: uuid */
20632
20583
  contract_type_id: string;
20633
20584
  contract_type?: string | null;
@@ -20722,9 +20673,6 @@ export interface paths {
20722
20673
  cancelled_at?: string | null;
20723
20674
  cancelled_by?: string | null;
20724
20675
  cancelled_reason?: string | null;
20725
- disputed_at?: string | null;
20726
- disputed_by?: string | null;
20727
- disputed_reason?: string | null;
20728
20676
  temporary_position_reason?: string | null;
20729
20677
  archived_by_employer?: boolean | null;
20730
20678
  archived_at_employer?: string | null;
@@ -20857,7 +20805,7 @@ export interface paths {
20857
20805
  patch?: never;
20858
20806
  trace?: never;
20859
20807
  };
20860
- '/api/contracts/{id}/complete': {
20808
+ '/api/contracts/{id}/reject': {
20861
20809
  parameters: {
20862
20810
  query?: never;
20863
20811
  header?: never;
@@ -20867,1128 +20815,8 @@ export interface paths {
20867
20815
  get?: never;
20868
20816
  put?: never;
20869
20817
  /**
20870
- * Complete contract
20871
- * @description Mark contract as completed
20872
- */
20873
- post: {
20874
- parameters: {
20875
- query?: never;
20876
- header?: never;
20877
- path: {
20878
- id: string;
20879
- };
20880
- cookie?: never;
20881
- };
20882
- requestBody?: {
20883
- content: {
20884
- 'application/json': {
20885
- /** @description Notes about contract completion */
20886
- completion_notes?: string;
20887
- };
20888
- };
20889
- };
20890
- responses: {
20891
- /** @description Default Response */
20892
- 200: {
20893
- headers: {
20894
- [name: string]: unknown;
20895
- };
20896
- content: {
20897
- 'application/json': {
20898
- data: {
20899
- /** Format: uuid */
20900
- id: string;
20901
- contract_number?: string | null;
20902
- /** Format: uuid */
20903
- employer_id: string;
20904
- worker_id?: string | null;
20905
- application_id?: string | null;
20906
- inquiry_id?: string | null;
20907
- account_id?: string | null;
20908
- arrangement_id?: string | null;
20909
- arrangement_title?: string | null;
20910
- /** Format: uuid */
20911
- contract_type_id: string;
20912
- contract_type?: string | null;
20913
- contract_type_title?: string | null;
20914
- service_type?: string | null;
20915
- salary_type_name?: string | null;
20916
- current_salary_amount?: number | null;
20917
- salary_id?: string | null;
20918
- source_invite_id?: string | null;
20919
- is_employer_also_worker?: boolean | null;
20920
- is_salary_manually_overridden?: boolean | null;
20921
- requires_background_check?: boolean | null;
20922
- requires_health_certificate?: boolean | null;
20923
- title?: string | null;
20924
- contract_details?: string | null;
20925
- hours_per_week?: number | null;
20926
- hourly_rate?: number | null;
20927
- start_date?: string | null;
20928
- end_date?: string | null;
20929
- status: unknown;
20930
- lifecycle_changed_at?: string | null;
20931
- status_changed_at?: string | null;
20932
- employer_email?: string | null;
20933
- employer_first_name?: string | null;
20934
- employer_last_name?: string | null;
20935
- employer_phone?: string | null;
20936
- worker_personal_number?: string | null;
20937
- worker_bank_account?: string | null;
20938
- worker_email?: string | null;
20939
- worker_name?: string | null;
20940
- worker_first_name?: string | null;
20941
- worker_last_name?: string | null;
20942
- worker_phone?: string | null;
20943
- worker_phone_number?: string | null;
20944
- worker_has_previous_employment?: boolean | null;
20945
- worker_previous_employment_details?: string | null;
20946
- worker_has_prior_assistant_experience?: boolean | null;
20947
- worker_has_prior_uloba_employment?: boolean | null;
20948
- worker_is_related_to_employer?: boolean | null;
20949
- worker_has_uloba_as_primary_employer?: boolean | null;
20950
- worker_requires_health_certificate?: boolean | null;
20951
- worker_requires_tuberculosis_test?: boolean | null;
20952
- worker_citizenship?: string | null;
20953
- worker_substitute_for_name?: string | null;
20954
- worker_address_street?: string | null;
20955
- worker_address_postal_code?: string | null;
20956
- worker_address_city?: string | null;
20957
- worker_address_country?: string | null;
20958
- worker_emergency_contact_name?: string | null;
20959
- worker_emergency_contact_phone?: string | null;
20960
- worker_emergency_contact_relation?: string | null;
20961
- decision_owner_id?: string | null;
20962
- decision_owner_name?: string | null;
20963
- decision_owner_same_as_coordinator?: boolean | null;
20964
- contract_invite_email?: string | null;
20965
- contract_invite_status?: string | null;
20966
- phase_1_submission_completed_by?: string | null;
20967
- phase_2_submission_completed_by?: string | null;
20968
- direct_submitted_at?: string | null;
20969
- direct_submitted_by?: string | null;
20970
- submitted_by?: string | null;
20971
- submitted_at?: string | null;
20972
- coordinator_submitted_at?: string | null;
20973
- coordinator_submitted_by?: string | null;
20974
- worker_submitted_at?: string | null;
20975
- worker_submitted_by?: string | null;
20976
- ready_for_submission_at?: string | null;
20977
- ready_for_submission_by?: string | null;
20978
- submitted_to_uloba_at?: string | null;
20979
- draft_at?: string | null;
20980
- draft_by?: string | null;
20981
- validation_failed_at?: string | null;
20982
- validation_failed_by?: string | null;
20983
- in_review_at?: string | null;
20984
- in_review_by?: string | null;
20985
- ready_for_signing_at?: string | null;
20986
- ready_for_signing_by?: string | null;
20987
- pending_signing_at?: string | null;
20988
- pending_signing_by?: string | null;
20989
- signed_at?: string | null;
20990
- signed_by?: string | null;
20991
- activated_at?: string | null;
20992
- activated_by?: string | null;
20993
- completed_at?: string | null;
20994
- completed_by?: string | null;
20995
- terminated_at?: string | null;
20996
- terminated_by?: string | null;
20997
- terminated_reason?: string | null;
20998
- rejected_at?: string | null;
20999
- rejected_by?: string | null;
21000
- rejected_reason?: string | null;
21001
- cancelled_at?: string | null;
21002
- cancelled_by?: string | null;
21003
- cancelled_reason?: string | null;
21004
- disputed_at?: string | null;
21005
- disputed_by?: string | null;
21006
- disputed_reason?: string | null;
21007
- temporary_position_reason?: string | null;
21008
- archived_by_employer?: boolean | null;
21009
- archived_at_employer?: string | null;
21010
- archived_by_worker?: boolean | null;
21011
- archived_at_worker?: string | null;
21012
- validation_status?: string | null;
21013
- validation_errors?: unknown;
21014
- validation_report?: unknown;
21015
- last_validated_at?: string | null;
21016
- created_at?: string | null;
21017
- updated_at?: string | null;
21018
- };
21019
- metadata: {
21020
- /** @description Viewer relationship to the resource */
21021
- viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
21022
- permissions: {
21023
- canView: boolean;
21024
- canEdit: boolean;
21025
- canDelete: boolean;
21026
- };
21027
- };
21028
- };
21029
- };
21030
- };
21031
- /** @description Default Response */
21032
- 400: {
21033
- headers: {
21034
- [name: string]: unknown;
21035
- };
21036
- content: {
21037
- 'application/json': {
21038
- error: string;
21039
- message?: string;
21040
- code?: string;
21041
- details?: unknown;
21042
- /** Format: date-time */
21043
- timestamp?: string;
21044
- };
21045
- };
21046
- };
21047
- /** @description Default Response */
21048
- 401: {
21049
- headers: {
21050
- [name: string]: unknown;
21051
- };
21052
- content: {
21053
- 'application/json': {
21054
- error: string;
21055
- message?: string;
21056
- code?: string;
21057
- details?: unknown;
21058
- /** Format: date-time */
21059
- timestamp?: string;
21060
- };
21061
- };
21062
- };
21063
- /** @description Default Response */
21064
- 403: {
21065
- headers: {
21066
- [name: string]: unknown;
21067
- };
21068
- content: {
21069
- 'application/json': {
21070
- error: string;
21071
- message?: string;
21072
- code?: string;
21073
- details?: unknown;
21074
- /** Format: date-time */
21075
- timestamp?: string;
21076
- };
21077
- };
21078
- };
21079
- /** @description Default Response */
21080
- 404: {
21081
- headers: {
21082
- [name: string]: unknown;
21083
- };
21084
- content: {
21085
- 'application/json': {
21086
- error: string;
21087
- message?: string;
21088
- code?: string;
21089
- details?: unknown;
21090
- /** Format: date-time */
21091
- timestamp?: string;
21092
- };
21093
- };
21094
- };
21095
- /** @description Default Response */
21096
- 422: {
21097
- headers: {
21098
- [name: string]: unknown;
21099
- };
21100
- content: {
21101
- 'application/json': {
21102
- error: string;
21103
- message: string;
21104
- errors: {
21105
- field: string;
21106
- message: string;
21107
- code?: string;
21108
- value?: unknown;
21109
- }[];
21110
- /** Format: date-time */
21111
- timestamp?: string;
21112
- };
21113
- };
21114
- };
21115
- /** @description Default Response */
21116
- 500: {
21117
- headers: {
21118
- [name: string]: unknown;
21119
- };
21120
- content: {
21121
- 'application/json': {
21122
- error: string;
21123
- message?: string;
21124
- code?: string;
21125
- details?: unknown;
21126
- /** Format: date-time */
21127
- timestamp?: string;
21128
- };
21129
- };
21130
- };
21131
- };
21132
- };
21133
- delete?: never;
21134
- options?: never;
21135
- head?: never;
21136
- patch?: never;
21137
- trace?: never;
21138
- };
21139
- '/api/contracts/{id}/terminate': {
21140
- parameters: {
21141
- query?: never;
21142
- header?: never;
21143
- path?: never;
21144
- cookie?: never;
21145
- };
21146
- get?: never;
21147
- put?: never;
21148
- /**
21149
- * Terminate contract
21150
- * @description Terminate an active contract
21151
- */
21152
- post: {
21153
- parameters: {
21154
- query?: never;
21155
- header?: never;
21156
- path: {
21157
- id: string;
21158
- };
21159
- cookie?: never;
21160
- };
21161
- requestBody: {
21162
- content: {
21163
- 'application/json': {
21164
- /** @description Reason for termination */
21165
- termination_reason: string;
21166
- /** @description Notice period in days */
21167
- notice_period_days?: number;
21168
- };
21169
- };
21170
- };
21171
- responses: {
21172
- /** @description Default Response */
21173
- 200: {
21174
- headers: {
21175
- [name: string]: unknown;
21176
- };
21177
- content: {
21178
- 'application/json': {
21179
- data: {
21180
- /** Format: uuid */
21181
- id: string;
21182
- contract_number?: string | null;
21183
- /** Format: uuid */
21184
- employer_id: string;
21185
- worker_id?: string | null;
21186
- application_id?: string | null;
21187
- inquiry_id?: string | null;
21188
- account_id?: string | null;
21189
- arrangement_id?: string | null;
21190
- arrangement_title?: string | null;
21191
- /** Format: uuid */
21192
- contract_type_id: string;
21193
- contract_type?: string | null;
21194
- contract_type_title?: string | null;
21195
- service_type?: string | null;
21196
- salary_type_name?: string | null;
21197
- current_salary_amount?: number | null;
21198
- salary_id?: string | null;
21199
- source_invite_id?: string | null;
21200
- is_employer_also_worker?: boolean | null;
21201
- is_salary_manually_overridden?: boolean | null;
21202
- requires_background_check?: boolean | null;
21203
- requires_health_certificate?: boolean | null;
21204
- title?: string | null;
21205
- contract_details?: string | null;
21206
- hours_per_week?: number | null;
21207
- hourly_rate?: number | null;
21208
- start_date?: string | null;
21209
- end_date?: string | null;
21210
- status: unknown;
21211
- lifecycle_changed_at?: string | null;
21212
- status_changed_at?: string | null;
21213
- employer_email?: string | null;
21214
- employer_first_name?: string | null;
21215
- employer_last_name?: string | null;
21216
- employer_phone?: string | null;
21217
- worker_personal_number?: string | null;
21218
- worker_bank_account?: string | null;
21219
- worker_email?: string | null;
21220
- worker_name?: string | null;
21221
- worker_first_name?: string | null;
21222
- worker_last_name?: string | null;
21223
- worker_phone?: string | null;
21224
- worker_phone_number?: string | null;
21225
- worker_has_previous_employment?: boolean | null;
21226
- worker_previous_employment_details?: string | null;
21227
- worker_has_prior_assistant_experience?: boolean | null;
21228
- worker_has_prior_uloba_employment?: boolean | null;
21229
- worker_is_related_to_employer?: boolean | null;
21230
- worker_has_uloba_as_primary_employer?: boolean | null;
21231
- worker_requires_health_certificate?: boolean | null;
21232
- worker_requires_tuberculosis_test?: boolean | null;
21233
- worker_citizenship?: string | null;
21234
- worker_substitute_for_name?: string | null;
21235
- worker_address_street?: string | null;
21236
- worker_address_postal_code?: string | null;
21237
- worker_address_city?: string | null;
21238
- worker_address_country?: string | null;
21239
- worker_emergency_contact_name?: string | null;
21240
- worker_emergency_contact_phone?: string | null;
21241
- worker_emergency_contact_relation?: string | null;
21242
- decision_owner_id?: string | null;
21243
- decision_owner_name?: string | null;
21244
- decision_owner_same_as_coordinator?: boolean | null;
21245
- contract_invite_email?: string | null;
21246
- contract_invite_status?: string | null;
21247
- phase_1_submission_completed_by?: string | null;
21248
- phase_2_submission_completed_by?: string | null;
21249
- direct_submitted_at?: string | null;
21250
- direct_submitted_by?: string | null;
21251
- submitted_by?: string | null;
21252
- submitted_at?: string | null;
21253
- coordinator_submitted_at?: string | null;
21254
- coordinator_submitted_by?: string | null;
21255
- worker_submitted_at?: string | null;
21256
- worker_submitted_by?: string | null;
21257
- ready_for_submission_at?: string | null;
21258
- ready_for_submission_by?: string | null;
21259
- submitted_to_uloba_at?: string | null;
21260
- draft_at?: string | null;
21261
- draft_by?: string | null;
21262
- validation_failed_at?: string | null;
21263
- validation_failed_by?: string | null;
21264
- in_review_at?: string | null;
21265
- in_review_by?: string | null;
21266
- ready_for_signing_at?: string | null;
21267
- ready_for_signing_by?: string | null;
21268
- pending_signing_at?: string | null;
21269
- pending_signing_by?: string | null;
21270
- signed_at?: string | null;
21271
- signed_by?: string | null;
21272
- activated_at?: string | null;
21273
- activated_by?: string | null;
21274
- completed_at?: string | null;
21275
- completed_by?: string | null;
21276
- terminated_at?: string | null;
21277
- terminated_by?: string | null;
21278
- terminated_reason?: string | null;
21279
- rejected_at?: string | null;
21280
- rejected_by?: string | null;
21281
- rejected_reason?: string | null;
21282
- cancelled_at?: string | null;
21283
- cancelled_by?: string | null;
21284
- cancelled_reason?: string | null;
21285
- disputed_at?: string | null;
21286
- disputed_by?: string | null;
21287
- disputed_reason?: string | null;
21288
- temporary_position_reason?: string | null;
21289
- archived_by_employer?: boolean | null;
21290
- archived_at_employer?: string | null;
21291
- archived_by_worker?: boolean | null;
21292
- archived_at_worker?: string | null;
21293
- validation_status?: string | null;
21294
- validation_errors?: unknown;
21295
- validation_report?: unknown;
21296
- last_validated_at?: string | null;
21297
- created_at?: string | null;
21298
- updated_at?: string | null;
21299
- };
21300
- metadata: {
21301
- /** @description Viewer relationship to the resource */
21302
- viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
21303
- permissions: {
21304
- canView: boolean;
21305
- canEdit: boolean;
21306
- canDelete: boolean;
21307
- };
21308
- };
21309
- };
21310
- };
21311
- };
21312
- /** @description Default Response */
21313
- 400: {
21314
- headers: {
21315
- [name: string]: unknown;
21316
- };
21317
- content: {
21318
- 'application/json': {
21319
- error: string;
21320
- message?: string;
21321
- code?: string;
21322
- details?: unknown;
21323
- /** Format: date-time */
21324
- timestamp?: string;
21325
- };
21326
- };
21327
- };
21328
- /** @description Default Response */
21329
- 401: {
21330
- headers: {
21331
- [name: string]: unknown;
21332
- };
21333
- content: {
21334
- 'application/json': {
21335
- error: string;
21336
- message?: string;
21337
- code?: string;
21338
- details?: unknown;
21339
- /** Format: date-time */
21340
- timestamp?: string;
21341
- };
21342
- };
21343
- };
21344
- /** @description Default Response */
21345
- 403: {
21346
- headers: {
21347
- [name: string]: unknown;
21348
- };
21349
- content: {
21350
- 'application/json': {
21351
- error: string;
21352
- message?: string;
21353
- code?: string;
21354
- details?: unknown;
21355
- /** Format: date-time */
21356
- timestamp?: string;
21357
- };
21358
- };
21359
- };
21360
- /** @description Default Response */
21361
- 404: {
21362
- headers: {
21363
- [name: string]: unknown;
21364
- };
21365
- content: {
21366
- 'application/json': {
21367
- error: string;
21368
- message?: string;
21369
- code?: string;
21370
- details?: unknown;
21371
- /** Format: date-time */
21372
- timestamp?: string;
21373
- };
21374
- };
21375
- };
21376
- /** @description Default Response */
21377
- 422: {
21378
- headers: {
21379
- [name: string]: unknown;
21380
- };
21381
- content: {
21382
- 'application/json': {
21383
- error: string;
21384
- message: string;
21385
- errors: {
21386
- field: string;
21387
- message: string;
21388
- code?: string;
21389
- value?: unknown;
21390
- }[];
21391
- /** Format: date-time */
21392
- timestamp?: string;
21393
- };
21394
- };
21395
- };
21396
- /** @description Default Response */
21397
- 500: {
21398
- headers: {
21399
- [name: string]: unknown;
21400
- };
21401
- content: {
21402
- 'application/json': {
21403
- error: string;
21404
- message?: string;
21405
- code?: string;
21406
- details?: unknown;
21407
- /** Format: date-time */
21408
- timestamp?: string;
21409
- };
21410
- };
21411
- };
21412
- };
21413
- };
21414
- delete?: never;
21415
- options?: never;
21416
- head?: never;
21417
- patch?: never;
21418
- trace?: never;
21419
- };
21420
- '/api/contracts/{id}/dispute': {
21421
- parameters: {
21422
- query?: never;
21423
- header?: never;
21424
- path?: never;
21425
- cookie?: never;
21426
- };
21427
- get?: never;
21428
- put?: never;
21429
- /**
21430
- * Dispute contract
21431
- * @description Raise a dispute on the contract
21432
- */
21433
- post: {
21434
- parameters: {
21435
- query?: never;
21436
- header?: never;
21437
- path: {
21438
- id: string;
21439
- };
21440
- cookie?: never;
21441
- };
21442
- requestBody: {
21443
- content: {
21444
- 'application/json': {
21445
- /** @description Reason for dispute */
21446
- dispute_reason: string;
21447
- /** @description Detailed description of the dispute */
21448
- dispute_details?: string;
21449
- };
21450
- };
21451
- };
21452
- responses: {
21453
- /** @description Default Response */
21454
- 200: {
21455
- headers: {
21456
- [name: string]: unknown;
21457
- };
21458
- content: {
21459
- 'application/json': {
21460
- data: {
21461
- /** Format: uuid */
21462
- id: string;
21463
- contract_number?: string | null;
21464
- /** Format: uuid */
21465
- employer_id: string;
21466
- worker_id?: string | null;
21467
- application_id?: string | null;
21468
- inquiry_id?: string | null;
21469
- account_id?: string | null;
21470
- arrangement_id?: string | null;
21471
- arrangement_title?: string | null;
21472
- /** Format: uuid */
21473
- contract_type_id: string;
21474
- contract_type?: string | null;
21475
- contract_type_title?: string | null;
21476
- service_type?: string | null;
21477
- salary_type_name?: string | null;
21478
- current_salary_amount?: number | null;
21479
- salary_id?: string | null;
21480
- source_invite_id?: string | null;
21481
- is_employer_also_worker?: boolean | null;
21482
- is_salary_manually_overridden?: boolean | null;
21483
- requires_background_check?: boolean | null;
21484
- requires_health_certificate?: boolean | null;
21485
- title?: string | null;
21486
- contract_details?: string | null;
21487
- hours_per_week?: number | null;
21488
- hourly_rate?: number | null;
21489
- start_date?: string | null;
21490
- end_date?: string | null;
21491
- status: unknown;
21492
- lifecycle_changed_at?: string | null;
21493
- status_changed_at?: string | null;
21494
- employer_email?: string | null;
21495
- employer_first_name?: string | null;
21496
- employer_last_name?: string | null;
21497
- employer_phone?: string | null;
21498
- worker_personal_number?: string | null;
21499
- worker_bank_account?: string | null;
21500
- worker_email?: string | null;
21501
- worker_name?: string | null;
21502
- worker_first_name?: string | null;
21503
- worker_last_name?: string | null;
21504
- worker_phone?: string | null;
21505
- worker_phone_number?: string | null;
21506
- worker_has_previous_employment?: boolean | null;
21507
- worker_previous_employment_details?: string | null;
21508
- worker_has_prior_assistant_experience?: boolean | null;
21509
- worker_has_prior_uloba_employment?: boolean | null;
21510
- worker_is_related_to_employer?: boolean | null;
21511
- worker_has_uloba_as_primary_employer?: boolean | null;
21512
- worker_requires_health_certificate?: boolean | null;
21513
- worker_requires_tuberculosis_test?: boolean | null;
21514
- worker_citizenship?: string | null;
21515
- worker_substitute_for_name?: string | null;
21516
- worker_address_street?: string | null;
21517
- worker_address_postal_code?: string | null;
21518
- worker_address_city?: string | null;
21519
- worker_address_country?: string | null;
21520
- worker_emergency_contact_name?: string | null;
21521
- worker_emergency_contact_phone?: string | null;
21522
- worker_emergency_contact_relation?: string | null;
21523
- decision_owner_id?: string | null;
21524
- decision_owner_name?: string | null;
21525
- decision_owner_same_as_coordinator?: boolean | null;
21526
- contract_invite_email?: string | null;
21527
- contract_invite_status?: string | null;
21528
- phase_1_submission_completed_by?: string | null;
21529
- phase_2_submission_completed_by?: string | null;
21530
- direct_submitted_at?: string | null;
21531
- direct_submitted_by?: string | null;
21532
- submitted_by?: string | null;
21533
- submitted_at?: string | null;
21534
- coordinator_submitted_at?: string | null;
21535
- coordinator_submitted_by?: string | null;
21536
- worker_submitted_at?: string | null;
21537
- worker_submitted_by?: string | null;
21538
- ready_for_submission_at?: string | null;
21539
- ready_for_submission_by?: string | null;
21540
- submitted_to_uloba_at?: string | null;
21541
- draft_at?: string | null;
21542
- draft_by?: string | null;
21543
- validation_failed_at?: string | null;
21544
- validation_failed_by?: string | null;
21545
- in_review_at?: string | null;
21546
- in_review_by?: string | null;
21547
- ready_for_signing_at?: string | null;
21548
- ready_for_signing_by?: string | null;
21549
- pending_signing_at?: string | null;
21550
- pending_signing_by?: string | null;
21551
- signed_at?: string | null;
21552
- signed_by?: string | null;
21553
- activated_at?: string | null;
21554
- activated_by?: string | null;
21555
- completed_at?: string | null;
21556
- completed_by?: string | null;
21557
- terminated_at?: string | null;
21558
- terminated_by?: string | null;
21559
- terminated_reason?: string | null;
21560
- rejected_at?: string | null;
21561
- rejected_by?: string | null;
21562
- rejected_reason?: string | null;
21563
- cancelled_at?: string | null;
21564
- cancelled_by?: string | null;
21565
- cancelled_reason?: string | null;
21566
- disputed_at?: string | null;
21567
- disputed_by?: string | null;
21568
- disputed_reason?: string | null;
21569
- temporary_position_reason?: string | null;
21570
- archived_by_employer?: boolean | null;
21571
- archived_at_employer?: string | null;
21572
- archived_by_worker?: boolean | null;
21573
- archived_at_worker?: string | null;
21574
- validation_status?: string | null;
21575
- validation_errors?: unknown;
21576
- validation_report?: unknown;
21577
- last_validated_at?: string | null;
21578
- created_at?: string | null;
21579
- updated_at?: string | null;
21580
- };
21581
- metadata: {
21582
- /** @description Viewer relationship to the resource */
21583
- viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
21584
- permissions: {
21585
- canView: boolean;
21586
- canEdit: boolean;
21587
- canDelete: boolean;
21588
- };
21589
- };
21590
- };
21591
- };
21592
- };
21593
- /** @description Default Response */
21594
- 400: {
21595
- headers: {
21596
- [name: string]: unknown;
21597
- };
21598
- content: {
21599
- 'application/json': {
21600
- error: string;
21601
- message?: string;
21602
- code?: string;
21603
- details?: unknown;
21604
- /** Format: date-time */
21605
- timestamp?: string;
21606
- };
21607
- };
21608
- };
21609
- /** @description Default Response */
21610
- 401: {
21611
- headers: {
21612
- [name: string]: unknown;
21613
- };
21614
- content: {
21615
- 'application/json': {
21616
- error: string;
21617
- message?: string;
21618
- code?: string;
21619
- details?: unknown;
21620
- /** Format: date-time */
21621
- timestamp?: string;
21622
- };
21623
- };
21624
- };
21625
- /** @description Default Response */
21626
- 403: {
21627
- headers: {
21628
- [name: string]: unknown;
21629
- };
21630
- content: {
21631
- 'application/json': {
21632
- error: string;
21633
- message?: string;
21634
- code?: string;
21635
- details?: unknown;
21636
- /** Format: date-time */
21637
- timestamp?: string;
21638
- };
21639
- };
21640
- };
21641
- /** @description Default Response */
21642
- 404: {
21643
- headers: {
21644
- [name: string]: unknown;
21645
- };
21646
- content: {
21647
- 'application/json': {
21648
- error: string;
21649
- message?: string;
21650
- code?: string;
21651
- details?: unknown;
21652
- /** Format: date-time */
21653
- timestamp?: string;
21654
- };
21655
- };
21656
- };
21657
- /** @description Default Response */
21658
- 422: {
21659
- headers: {
21660
- [name: string]: unknown;
21661
- };
21662
- content: {
21663
- 'application/json': {
21664
- error: string;
21665
- message: string;
21666
- errors: {
21667
- field: string;
21668
- message: string;
21669
- code?: string;
21670
- value?: unknown;
21671
- }[];
21672
- /** Format: date-time */
21673
- timestamp?: string;
21674
- };
21675
- };
21676
- };
21677
- /** @description Default Response */
21678
- 500: {
21679
- headers: {
21680
- [name: string]: unknown;
21681
- };
21682
- content: {
21683
- 'application/json': {
21684
- error: string;
21685
- message?: string;
21686
- code?: string;
21687
- details?: unknown;
21688
- /** Format: date-time */
21689
- timestamp?: string;
21690
- };
21691
- };
21692
- };
21693
- };
21694
- };
21695
- delete?: never;
21696
- options?: never;
21697
- head?: never;
21698
- patch?: never;
21699
- trace?: never;
21700
- };
21701
- '/api/contracts/{id}/resolve-dispute': {
21702
- parameters: {
21703
- query?: never;
21704
- header?: never;
21705
- path?: never;
21706
- cookie?: never;
21707
- };
21708
- get?: never;
21709
- put?: never;
21710
- /**
21711
- * Resolve contract dispute
21712
- * @description Resolve an active dispute on the contract
21713
- */
21714
- post: {
21715
- parameters: {
21716
- query?: never;
21717
- header?: never;
21718
- path: {
21719
- id: string;
21720
- };
21721
- cookie?: never;
21722
- };
21723
- requestBody: {
21724
- content: {
21725
- 'application/json': {
21726
- /** @description Details of how the dispute was resolved */
21727
- resolution_details: string;
21728
- };
21729
- };
21730
- };
21731
- responses: {
21732
- /** @description Default Response */
21733
- 200: {
21734
- headers: {
21735
- [name: string]: unknown;
21736
- };
21737
- content: {
21738
- 'application/json': {
21739
- data: {
21740
- /** Format: uuid */
21741
- id: string;
21742
- contract_number?: string | null;
21743
- /** Format: uuid */
21744
- employer_id: string;
21745
- worker_id?: string | null;
21746
- application_id?: string | null;
21747
- inquiry_id?: string | null;
21748
- account_id?: string | null;
21749
- arrangement_id?: string | null;
21750
- arrangement_title?: string | null;
21751
- /** Format: uuid */
21752
- contract_type_id: string;
21753
- contract_type?: string | null;
21754
- contract_type_title?: string | null;
21755
- service_type?: string | null;
21756
- salary_type_name?: string | null;
21757
- current_salary_amount?: number | null;
21758
- salary_id?: string | null;
21759
- source_invite_id?: string | null;
21760
- is_employer_also_worker?: boolean | null;
21761
- is_salary_manually_overridden?: boolean | null;
21762
- requires_background_check?: boolean | null;
21763
- requires_health_certificate?: boolean | null;
21764
- title?: string | null;
21765
- contract_details?: string | null;
21766
- hours_per_week?: number | null;
21767
- hourly_rate?: number | null;
21768
- start_date?: string | null;
21769
- end_date?: string | null;
21770
- status: unknown;
21771
- lifecycle_changed_at?: string | null;
21772
- status_changed_at?: string | null;
21773
- employer_email?: string | null;
21774
- employer_first_name?: string | null;
21775
- employer_last_name?: string | null;
21776
- employer_phone?: string | null;
21777
- worker_personal_number?: string | null;
21778
- worker_bank_account?: string | null;
21779
- worker_email?: string | null;
21780
- worker_name?: string | null;
21781
- worker_first_name?: string | null;
21782
- worker_last_name?: string | null;
21783
- worker_phone?: string | null;
21784
- worker_phone_number?: string | null;
21785
- worker_has_previous_employment?: boolean | null;
21786
- worker_previous_employment_details?: string | null;
21787
- worker_has_prior_assistant_experience?: boolean | null;
21788
- worker_has_prior_uloba_employment?: boolean | null;
21789
- worker_is_related_to_employer?: boolean | null;
21790
- worker_has_uloba_as_primary_employer?: boolean | null;
21791
- worker_requires_health_certificate?: boolean | null;
21792
- worker_requires_tuberculosis_test?: boolean | null;
21793
- worker_citizenship?: string | null;
21794
- worker_substitute_for_name?: string | null;
21795
- worker_address_street?: string | null;
21796
- worker_address_postal_code?: string | null;
21797
- worker_address_city?: string | null;
21798
- worker_address_country?: string | null;
21799
- worker_emergency_contact_name?: string | null;
21800
- worker_emergency_contact_phone?: string | null;
21801
- worker_emergency_contact_relation?: string | null;
21802
- decision_owner_id?: string | null;
21803
- decision_owner_name?: string | null;
21804
- decision_owner_same_as_coordinator?: boolean | null;
21805
- contract_invite_email?: string | null;
21806
- contract_invite_status?: string | null;
21807
- phase_1_submission_completed_by?: string | null;
21808
- phase_2_submission_completed_by?: string | null;
21809
- direct_submitted_at?: string | null;
21810
- direct_submitted_by?: string | null;
21811
- submitted_by?: string | null;
21812
- submitted_at?: string | null;
21813
- coordinator_submitted_at?: string | null;
21814
- coordinator_submitted_by?: string | null;
21815
- worker_submitted_at?: string | null;
21816
- worker_submitted_by?: string | null;
21817
- ready_for_submission_at?: string | null;
21818
- ready_for_submission_by?: string | null;
21819
- submitted_to_uloba_at?: string | null;
21820
- draft_at?: string | null;
21821
- draft_by?: string | null;
21822
- validation_failed_at?: string | null;
21823
- validation_failed_by?: string | null;
21824
- in_review_at?: string | null;
21825
- in_review_by?: string | null;
21826
- ready_for_signing_at?: string | null;
21827
- ready_for_signing_by?: string | null;
21828
- pending_signing_at?: string | null;
21829
- pending_signing_by?: string | null;
21830
- signed_at?: string | null;
21831
- signed_by?: string | null;
21832
- activated_at?: string | null;
21833
- activated_by?: string | null;
21834
- completed_at?: string | null;
21835
- completed_by?: string | null;
21836
- terminated_at?: string | null;
21837
- terminated_by?: string | null;
21838
- terminated_reason?: string | null;
21839
- rejected_at?: string | null;
21840
- rejected_by?: string | null;
21841
- rejected_reason?: string | null;
21842
- cancelled_at?: string | null;
21843
- cancelled_by?: string | null;
21844
- cancelled_reason?: string | null;
21845
- disputed_at?: string | null;
21846
- disputed_by?: string | null;
21847
- disputed_reason?: string | null;
21848
- temporary_position_reason?: string | null;
21849
- archived_by_employer?: boolean | null;
21850
- archived_at_employer?: string | null;
21851
- archived_by_worker?: boolean | null;
21852
- archived_at_worker?: string | null;
21853
- validation_status?: string | null;
21854
- validation_errors?: unknown;
21855
- validation_report?: unknown;
21856
- last_validated_at?: string | null;
21857
- created_at?: string | null;
21858
- updated_at?: string | null;
21859
- };
21860
- metadata: {
21861
- /** @description Viewer relationship to the resource */
21862
- viewerContext: 'anonymous' | 'authenticated' | 'owner' | 'coordinator' | 'admin' | 'employer' | 'worker';
21863
- permissions: {
21864
- canView: boolean;
21865
- canEdit: boolean;
21866
- canDelete: boolean;
21867
- };
21868
- };
21869
- };
21870
- };
21871
- };
21872
- /** @description Default Response */
21873
- 400: {
21874
- headers: {
21875
- [name: string]: unknown;
21876
- };
21877
- content: {
21878
- 'application/json': {
21879
- error: string;
21880
- message?: string;
21881
- code?: string;
21882
- details?: unknown;
21883
- /** Format: date-time */
21884
- timestamp?: string;
21885
- };
21886
- };
21887
- };
21888
- /** @description Default Response */
21889
- 401: {
21890
- headers: {
21891
- [name: string]: unknown;
21892
- };
21893
- content: {
21894
- 'application/json': {
21895
- error: string;
21896
- message?: string;
21897
- code?: string;
21898
- details?: unknown;
21899
- /** Format: date-time */
21900
- timestamp?: string;
21901
- };
21902
- };
21903
- };
21904
- /** @description Default Response */
21905
- 403: {
21906
- headers: {
21907
- [name: string]: unknown;
21908
- };
21909
- content: {
21910
- 'application/json': {
21911
- error: string;
21912
- message?: string;
21913
- code?: string;
21914
- details?: unknown;
21915
- /** Format: date-time */
21916
- timestamp?: string;
21917
- };
21918
- };
21919
- };
21920
- /** @description Default Response */
21921
- 404: {
21922
- headers: {
21923
- [name: string]: unknown;
21924
- };
21925
- content: {
21926
- 'application/json': {
21927
- error: string;
21928
- message?: string;
21929
- code?: string;
21930
- details?: unknown;
21931
- /** Format: date-time */
21932
- timestamp?: string;
21933
- };
21934
- };
21935
- };
21936
- /** @description Default Response */
21937
- 422: {
21938
- headers: {
21939
- [name: string]: unknown;
21940
- };
21941
- content: {
21942
- 'application/json': {
21943
- error: string;
21944
- message: string;
21945
- errors: {
21946
- field: string;
21947
- message: string;
21948
- code?: string;
21949
- value?: unknown;
21950
- }[];
21951
- /** Format: date-time */
21952
- timestamp?: string;
21953
- };
21954
- };
21955
- };
21956
- /** @description Default Response */
21957
- 500: {
21958
- headers: {
21959
- [name: string]: unknown;
21960
- };
21961
- content: {
21962
- 'application/json': {
21963
- error: string;
21964
- message?: string;
21965
- code?: string;
21966
- details?: unknown;
21967
- /** Format: date-time */
21968
- timestamp?: string;
21969
- };
21970
- };
21971
- };
21972
- };
21973
- };
21974
- delete?: never;
21975
- options?: never;
21976
- head?: never;
21977
- patch?: never;
21978
- trace?: never;
21979
- };
21980
- '/api/contracts/{id}/reject': {
21981
- parameters: {
21982
- query?: never;
21983
- header?: never;
21984
- path?: never;
21985
- cookie?: never;
21986
- };
21987
- get?: never;
21988
- put?: never;
21989
- /**
21990
- * Reject contract
21991
- * @description Reject the contract with a reason
20818
+ * Reject contract
20819
+ * @description Reject the contract with a reason
21992
20820
  */
21993
20821
  post: {
21994
20822
  parameters: {
@@ -22027,6 +20855,7 @@ export interface paths {
22027
20855
  account_id?: string | null;
22028
20856
  arrangement_id?: string | null;
22029
20857
  arrangement_title?: string | null;
20858
+ conversation_id?: string | null;
22030
20859
  /** Format: uuid */
22031
20860
  contract_type_id: string;
22032
20861
  contract_type?: string | null;
@@ -22121,9 +20950,6 @@ export interface paths {
22121
20950
  cancelled_at?: string | null;
22122
20951
  cancelled_by?: string | null;
22123
20952
  cancelled_reason?: string | null;
22124
- disputed_at?: string | null;
22125
- disputed_by?: string | null;
22126
- disputed_reason?: string | null;
22127
20953
  temporary_position_reason?: string | null;
22128
20954
  archived_by_employer?: boolean | null;
22129
20955
  archived_at_employer?: string | null;
@@ -22306,6 +21132,7 @@ export interface paths {
22306
21132
  account_id?: string | null;
22307
21133
  arrangement_id?: string | null;
22308
21134
  arrangement_title?: string | null;
21135
+ conversation_id?: string | null;
22309
21136
  /** Format: uuid */
22310
21137
  contract_type_id: string;
22311
21138
  contract_type?: string | null;
@@ -22400,9 +21227,6 @@ export interface paths {
22400
21227
  cancelled_at?: string | null;
22401
21228
  cancelled_by?: string | null;
22402
21229
  cancelled_reason?: string | null;
22403
- disputed_at?: string | null;
22404
- disputed_by?: string | null;
22405
- disputed_reason?: string | null;
22406
21230
  temporary_position_reason?: string | null;
22407
21231
  archived_by_employer?: boolean | null;
22408
21232
  archived_at_employer?: string | null;
@@ -22578,6 +21402,7 @@ export interface paths {
22578
21402
  account_id?: string | null;
22579
21403
  arrangement_id?: string | null;
22580
21404
  arrangement_title?: string | null;
21405
+ conversation_id?: string | null;
22581
21406
  /** Format: uuid */
22582
21407
  contract_type_id: string;
22583
21408
  contract_type?: string | null;
@@ -22672,9 +21497,6 @@ export interface paths {
22672
21497
  cancelled_at?: string | null;
22673
21498
  cancelled_by?: string | null;
22674
21499
  cancelled_reason?: string | null;
22675
- disputed_at?: string | null;
22676
- disputed_by?: string | null;
22677
- disputed_reason?: string | null;
22678
21500
  temporary_position_reason?: string | null;
22679
21501
  archived_by_employer?: boolean | null;
22680
21502
  archived_at_employer?: string | null;
@@ -22850,6 +21672,7 @@ export interface paths {
22850
21672
  account_id?: string | null;
22851
21673
  arrangement_id?: string | null;
22852
21674
  arrangement_title?: string | null;
21675
+ conversation_id?: string | null;
22853
21676
  /** Format: uuid */
22854
21677
  contract_type_id: string;
22855
21678
  contract_type?: string | null;
@@ -22944,9 +21767,6 @@ export interface paths {
22944
21767
  cancelled_at?: string | null;
22945
21768
  cancelled_by?: string | null;
22946
21769
  cancelled_reason?: string | null;
22947
- disputed_at?: string | null;
22948
- disputed_by?: string | null;
22949
- disputed_reason?: string | null;
22950
21770
  temporary_position_reason?: string | null;
22951
21771
  archived_by_employer?: boolean | null;
22952
21772
  archived_at_employer?: string | null;
@@ -25187,8 +24007,6 @@ export interface paths {
25187
24007
  terminated: number;
25188
24008
  /** @description Non-negative integer (0 or greater) */
25189
24009
  cancelled: number;
25190
- /** @description Non-negative integer (0 or greater) */
25191
- disputed: number;
25192
24010
  };
25193
24011
  /** @description Contract total counts and derived metrics */
25194
24012
  totals: {
@@ -25309,130 +24127,6 @@ export interface paths {
25309
24127
  terminated: number;
25310
24128
  /** @description Non-negative integer (0 or greater) */
25311
24129
  cancelled: number;
25312
- /** @description Non-negative integer (0 or greater) */
25313
- disputed: number;
25314
- };
25315
- /** @description Contract total counts and derived metrics */
25316
- totals: {
25317
- /** @description Non-negative integer (0 or greater) */
25318
- all: number;
25319
- /** @description Non-negative integer (0 or greater) */
25320
- active: number;
25321
- /** @description Non-negative integer (0 or greater) */
25322
- inProgress?: number;
25323
- /** @description Non-negative integer (0 or greater) */
25324
- needsAction?: number;
25325
- };
25326
- /** @description Role-specific alerts for contracts requiring attention */
25327
- alerts?: {
25328
- type: string;
25329
- severity: string;
25330
- count: number;
25331
- message: string;
25332
- status: string;
25333
- }[];
25334
- };
25335
- /** @description Metadata about the statistics query and response */
25336
- metadata: {
25337
- /** @description Role context for the statistics query */
25338
- role: 'coordinator' | 'teamlead' | 'assistant' | 'case_manager' | 'applicant';
25339
- /**
25340
- * Format: uuid
25341
- * @description UUID version 4 identifier
25342
- */
25343
- accountId?: string;
25344
- /**
25345
- * Format: uuid
25346
- * @description UUID version 4 identifier
25347
- */
25348
- userId?: string;
25349
- /**
25350
- * Format: date-time
25351
- * @description ISO 8601 datetime format (YYYY-MM-DDTHH:mm:ss.sssZ)
25352
- */
25353
- queriedAt: string;
25354
- /** @description Whether the result was served from cache */
25355
- cached?: boolean;
25356
- /**
25357
- * Format: date-time
25358
- * @description ISO 8601 datetime format (YYYY-MM-DDTHH:mm:ss.sssZ)
25359
- */
25360
- cacheExpiresAt?: string;
25361
- };
25362
- };
25363
- };
25364
- };
25365
- };
25366
- };
25367
- put?: never;
25368
- post?: never;
25369
- delete?: never;
25370
- options?: never;
25371
- head?: never;
25372
- patch?: never;
25373
- trace?: never;
25374
- };
25375
- '/api/contracts/stats': {
25376
- parameters: {
25377
- query?: never;
25378
- header?: never;
25379
- path?: never;
25380
- cookie?: never;
25381
- };
25382
- /**
25383
- * Get contract statistics
25384
- * @description Get statistics for contracts by status with role-based filtering
25385
- */
25386
- get: {
25387
- parameters: {
25388
- query?: never;
25389
- header?: never;
25390
- path?: never;
25391
- cookie?: never;
25392
- };
25393
- requestBody?: never;
25394
- responses: {
25395
- /** @description Standard statistics response wrapper */
25396
- 200: {
25397
- headers: {
25398
- [name: string]: unknown;
25399
- };
25400
- content: {
25401
- 'application/json': {
25402
- /** @description Complete contract statistics data */
25403
- data: {
25404
- /** @description Contract counts by all possible statuses */
25405
- byStatus: {
25406
- /** @description Non-negative integer (0 or greater) */
25407
- draft: number;
25408
- /** @description Non-negative integer (0 or greater) */
25409
- coordinator_submitted: number;
25410
- /** @description Non-negative integer (0 or greater) */
25411
- worker_submitted: number;
25412
- /** @description Non-negative integer (0 or greater) */
25413
- ready_for_submission: number;
25414
- /** @description Non-negative integer (0 or greater) */
25415
- validation_failed: number;
25416
- /** @description Non-negative integer (0 or greater) */
25417
- submitted: number;
25418
- /** @description Non-negative integer (0 or greater) */
25419
- in_review: number;
25420
- /** @description Non-negative integer (0 or greater) */
25421
- ready_for_signing: number;
25422
- /** @description Non-negative integer (0 or greater) */
25423
- pending_signing: number;
25424
- /** @description Non-negative integer (0 or greater) */
25425
- signed: number;
25426
- /** @description Non-negative integer (0 or greater) */
25427
- active: number;
25428
- /** @description Non-negative integer (0 or greater) */
25429
- completed: number;
25430
- /** @description Non-negative integer (0 or greater) */
25431
- terminated: number;
25432
- /** @description Non-negative integer (0 or greater) */
25433
- cancelled: number;
25434
- /** @description Non-negative integer (0 or greater) */
25435
- disputed: number;
25436
24130
  };
25437
24131
  /** @description Contract total counts and derived metrics */
25438
24132
  totals: {