@digiteers/uloba3-sdk 4.2.1 → 4.2.2

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
@@ -19455,6 +19455,9 @@ export interface paths {
19455
19455
  proposed_end_date: string | null;
19456
19456
  proposed_hours_per_week: number | null;
19457
19457
  job_id: string | null;
19458
+ } & {
19459
+ reminded_at: string | null;
19460
+ reminder_count: number | null;
19458
19461
  }) & {
19459
19462
  inviter_user_id: string | null;
19460
19463
  inviter_full_name: string | null;
@@ -19590,6 +19593,9 @@ export interface paths {
19590
19593
  proposed_end_date: string | null;
19591
19594
  proposed_hours_per_week: number | null;
19592
19595
  job_id: string | null;
19596
+ } & {
19597
+ reminded_at: string | null;
19598
+ reminder_count: number | null;
19593
19599
  }) & {
19594
19600
  inviter_user_id: string | null;
19595
19601
  inviter_full_name: string | null;
@@ -19724,6 +19730,9 @@ export interface paths {
19724
19730
  proposed_end_date: string | null;
19725
19731
  proposed_hours_per_week: number | null;
19726
19732
  job_id: string | null;
19733
+ } & {
19734
+ reminded_at: string | null;
19735
+ reminder_count: number | null;
19727
19736
  }) & {
19728
19737
  inviter_user_id: string | null;
19729
19738
  inviter_full_name: string | null;
@@ -19857,6 +19866,9 @@ export interface paths {
19857
19866
  proposed_end_date: string | null;
19858
19867
  proposed_hours_per_week: number | null;
19859
19868
  job_id: string | null;
19869
+ } & {
19870
+ reminded_at: string | null;
19871
+ reminder_count: number | null;
19860
19872
  }) & {
19861
19873
  inviter_user_id: string | null;
19862
19874
  inviter_full_name: string | null;
@@ -20127,6 +20139,9 @@ export interface paths {
20127
20139
  proposed_end_date: string | null;
20128
20140
  proposed_hours_per_week: number | null;
20129
20141
  job_id: string | null;
20142
+ } & {
20143
+ reminded_at: string | null;
20144
+ reminder_count: number | null;
20130
20145
  }) & {
20131
20146
  inviter_user_id: string | null;
20132
20147
  inviter_full_name: string | null;
@@ -20269,6 +20284,9 @@ export interface paths {
20269
20284
  proposed_end_date: string | null;
20270
20285
  proposed_hours_per_week: number | null;
20271
20286
  job_id: string | null;
20287
+ } & {
20288
+ reminded_at: string | null;
20289
+ reminder_count: number | null;
20272
20290
  }) & {
20273
20291
  inviter_user_id: string | null;
20274
20292
  inviter_full_name: string | null;
@@ -20411,6 +20429,9 @@ export interface paths {
20411
20429
  proposed_end_date: string | null;
20412
20430
  proposed_hours_per_week: number | null;
20413
20431
  job_id: string | null;
20432
+ } & {
20433
+ reminded_at: string | null;
20434
+ reminder_count: number | null;
20414
20435
  }) & {
20415
20436
  inviter_user_id: string | null;
20416
20437
  inviter_full_name: string | null;
@@ -20553,6 +20574,147 @@ export interface paths {
20553
20574
  proposed_end_date: string | null;
20554
20575
  proposed_hours_per_week: number | null;
20555
20576
  job_id: string | null;
20577
+ } & {
20578
+ reminded_at: string | null;
20579
+ reminder_count: number | null;
20580
+ }) & {
20581
+ inviter_user_id: string | null;
20582
+ inviter_full_name: string | null;
20583
+ inviter_email: string | null;
20584
+ inviter_phone: string | null;
20585
+ inviter_given_name: string | null;
20586
+ inviter_family_name: string | null;
20587
+ inviter_picture: string | null;
20588
+ invitee_user_id: string | null;
20589
+ invitee_full_name: string | null;
20590
+ invitee_email: string | null;
20591
+ invitee_phone: string | null;
20592
+ invitee_given_name: string | null;
20593
+ invitee_family_name: string | null;
20594
+ invitee_picture: string | null;
20595
+ account_id_ref: string | null;
20596
+ account_owner_id: string | null;
20597
+ submitted_by: string | null;
20598
+ submitted_by_name: string | null;
20599
+ accepted_by: string | null;
20600
+ accepted_by_name: string | null;
20601
+ declined_by: string | null;
20602
+ declined_by_name: string | null;
20603
+ cancelled_by: string | null;
20604
+ cancelled_by_name: string | null;
20605
+ };
20606
+ metadata: {
20607
+ viewerContext: 'owner' | 'authenticated' | 'anonymous';
20608
+ permissions: {
20609
+ canView: boolean;
20610
+ canEdit: boolean;
20611
+ canSubmit: boolean;
20612
+ canAccept: boolean;
20613
+ canDecline: boolean;
20614
+ canCancel: boolean;
20615
+ canArchive: boolean;
20616
+ canCreateContract: boolean;
20617
+ };
20618
+ };
20619
+ };
20620
+ };
20621
+ };
20622
+ };
20623
+ };
20624
+ delete?: never;
20625
+ options?: never;
20626
+ head?: never;
20627
+ patch?: never;
20628
+ trace?: never;
20629
+ };
20630
+ '/api/invites/{inviteId}/send-reminder': {
20631
+ parameters: {
20632
+ query?: never;
20633
+ header?: never;
20634
+ path?: never;
20635
+ cookie?: never;
20636
+ };
20637
+ get?: never;
20638
+ put?: never;
20639
+ /**
20640
+ * Send reminder
20641
+ * @description Send a reminder email for a submitted invite (max 2 reminders)
20642
+ */
20643
+ post: {
20644
+ parameters: {
20645
+ query?: never;
20646
+ header?: never;
20647
+ path: {
20648
+ inviteId: string;
20649
+ };
20650
+ cookie?: never;
20651
+ };
20652
+ requestBody?: never;
20653
+ responses: {
20654
+ /** @description Default Response */
20655
+ 200: {
20656
+ headers: {
20657
+ [name: string]: unknown;
20658
+ };
20659
+ content: {
20660
+ 'application/json': {
20661
+ /**
20662
+ * Invite with Details
20663
+ * @description Invite with participant, account and job details from invites_view
20664
+ */
20665
+ data: ({
20666
+ /** Format: uuid */
20667
+ id: string;
20668
+ } & {
20669
+ /** Format: uuid */
20670
+ inviter_id: string;
20671
+ invitee_id: string | null;
20672
+ email: string | null;
20673
+ } & {
20674
+ account_id: string | null;
20675
+ conversation_id: string | null;
20676
+ } & {
20677
+ message: string;
20678
+ } & {
20679
+ status: 'draft' | 'submitted' | 'accepted' | 'declined' | 'cancelled' | 'expired';
20680
+ /** Format: date-time */
20681
+ status_changed_at: string;
20682
+ } & {
20683
+ lifecycle_status: 'operational' | 'archived' | 'anonymized';
20684
+ /** Format: date-time */
20685
+ lifecycle_changed_at: string;
20686
+ } & {
20687
+ submitted_at: string | null;
20688
+ accepted_at: string | null;
20689
+ declined_at: string | null;
20690
+ cancelled_at: string | null;
20691
+ expired_at: string | null;
20692
+ /** Format: date-time */
20693
+ created_at: string;
20694
+ /** Format: date-time */
20695
+ updated_at: string;
20696
+ } & {
20697
+ accepted_message: string | null;
20698
+ declined_message: string | null;
20699
+ cancelled_message: string | null;
20700
+ } & {
20701
+ archived_by_inviter: boolean | null;
20702
+ archived_by_invitee: boolean | null;
20703
+ archived_at_inviter: string | null;
20704
+ archived_at_invitee: string | null;
20705
+ } & {
20706
+ inviter_deleted: boolean | null;
20707
+ inviter_deleted_at: string | null;
20708
+ invitee_deleted: boolean | null;
20709
+ invitee_deleted_at: string | null;
20710
+ } & {
20711
+ proposed_start_date: string | null;
20712
+ proposed_end_date: string | null;
20713
+ proposed_hours_per_week: number | null;
20714
+ job_id: string | null;
20715
+ } & {
20716
+ reminded_at: string | null;
20717
+ reminder_count: number | null;
20556
20718
  }) & {
20557
20719
  inviter_user_id: string | null;
20558
20720
  inviter_full_name: string | null;
@@ -20595,6 +20757,32 @@ export interface paths {
20595
20757
  };
20596
20758
  };
20597
20759
  };
20760
+ /** @description Default Response */
20761
+ 400: {
20762
+ headers: {
20763
+ [name: string]: unknown;
20764
+ };
20765
+ content: {
20766
+ 'application/json': {
20767
+ message: string;
20768
+ statusCode: number;
20769
+ error: string;
20770
+ };
20771
+ };
20772
+ };
20773
+ /** @description Default Response */
20774
+ 404: {
20775
+ headers: {
20776
+ [name: string]: unknown;
20777
+ };
20778
+ content: {
20779
+ 'application/json': {
20780
+ message: string;
20781
+ statusCode: number;
20782
+ error: string;
20783
+ };
20784
+ };
20785
+ };
20598
20786
  };
20599
20787
  };
20600
20788
  delete?: never;
@@ -20688,6 +20876,9 @@ export interface paths {
20688
20876
  proposed_end_date: string | null;
20689
20877
  proposed_hours_per_week: number | null;
20690
20878
  job_id: string | null;
20879
+ } & {
20880
+ reminded_at: string | null;
20881
+ reminder_count: number | null;
20691
20882
  }) & {
20692
20883
  inviter_user_id: string | null;
20693
20884
  inviter_full_name: string | null;
@@ -20823,6 +21014,9 @@ export interface paths {
20823
21014
  proposed_end_date: string | null;
20824
21015
  proposed_hours_per_week: number | null;
20825
21016
  job_id: string | null;
21017
+ } & {
21018
+ reminded_at: string | null;
21019
+ reminder_count: number | null;
20826
21020
  }) & {
20827
21021
  inviter_user_id: string | null;
20828
21022
  inviter_full_name: string | null;
@@ -20958,6 +21152,9 @@ export interface paths {
20958
21152
  proposed_end_date: string | null;
20959
21153
  proposed_hours_per_week: number | null;
20960
21154
  job_id: string | null;
21155
+ } & {
21156
+ reminded_at: string | null;
21157
+ reminder_count: number | null;
20961
21158
  }) & {
20962
21159
  inviter_user_id: string | null;
20963
21160
  inviter_full_name: string | null;
@@ -21093,6 +21290,9 @@ export interface paths {
21093
21290
  proposed_end_date: string | null;
21094
21291
  proposed_hours_per_week: number | null;
21095
21292
  job_id: string | null;
21293
+ } & {
21294
+ reminded_at: string | null;
21295
+ reminder_count: number | null;
21096
21296
  }) & {
21097
21297
  inviter_user_id: string | null;
21098
21298
  inviter_full_name: string | null;
@@ -35641,6 +35841,386 @@ export interface paths {
35641
35841
  patch?: never;
35642
35842
  trace?: never;
35643
35843
  };
35844
+ '/api/contract-cases/favorites': {
35845
+ parameters: {
35846
+ query?: never;
35847
+ header?: never;
35848
+ path?: never;
35849
+ cookie?: never;
35850
+ };
35851
+ /**
35852
+ * List favorite cases
35853
+ * @description Get all cases marked as favorites by the current case manager
35854
+ */
35855
+ get: {
35856
+ parameters: {
35857
+ query?: {
35858
+ page?: number;
35859
+ limit?: number;
35860
+ sort_by?: string;
35861
+ sort_order?: 'asc' | 'desc';
35862
+ };
35863
+ header?: never;
35864
+ path?: never;
35865
+ cookie?: never;
35866
+ };
35867
+ requestBody?: never;
35868
+ responses: {
35869
+ /** @description Default Response */
35870
+ 200: {
35871
+ headers: {
35872
+ [name: string]: unknown;
35873
+ };
35874
+ content: {
35875
+ 'application/json': {
35876
+ data: {
35877
+ /**
35878
+ * Format: uuid
35879
+ * @description UUID identifier
35880
+ */
35881
+ id: string;
35882
+ /**
35883
+ * Format: uuid
35884
+ * @description UUID identifier
35885
+ */
35886
+ user_id: string;
35887
+ /**
35888
+ * Format: uuid
35889
+ * @description UUID identifier
35890
+ */
35891
+ contract_case_id: string;
35892
+ /**
35893
+ * Format: date-time
35894
+ * @description ISO 8601 datetime string
35895
+ */
35896
+ favorited_at: string;
35897
+ case: {
35898
+ /**
35899
+ * Format: uuid
35900
+ * @description UUID identifier
35901
+ */
35902
+ id: string;
35903
+ /** @description Saksnummer */
35904
+ case_number: string;
35905
+ /** @description Case status */
35906
+ case_status: string;
35907
+ arbeidsleder_name?: string | null;
35908
+ arbeidsleder_id?: string | null;
35909
+ contract_title?: string | null;
35910
+ case_location?: string | null;
35911
+ };
35912
+ }[];
35913
+ pagination: {
35914
+ page: number;
35915
+ limit: number;
35916
+ offset: number;
35917
+ total: number;
35918
+ has_more: boolean;
35919
+ };
35920
+ };
35921
+ };
35922
+ };
35923
+ /** @description Default Response */
35924
+ 500: {
35925
+ headers: {
35926
+ [name: string]: unknown;
35927
+ };
35928
+ content: {
35929
+ 'application/json': {
35930
+ error: string;
35931
+ message: string;
35932
+ };
35933
+ };
35934
+ };
35935
+ };
35936
+ };
35937
+ put?: never;
35938
+ post?: never;
35939
+ delete?: never;
35940
+ options?: never;
35941
+ head?: never;
35942
+ patch?: never;
35943
+ trace?: never;
35944
+ };
35945
+ '/api/contract-cases/{caseId}/favorites': {
35946
+ parameters: {
35947
+ query?: never;
35948
+ header?: never;
35949
+ path?: never;
35950
+ cookie?: never;
35951
+ };
35952
+ /**
35953
+ * Check if case is favorite
35954
+ * @description Check if a specific case is marked as favorite by the current case manager
35955
+ */
35956
+ get: {
35957
+ parameters: {
35958
+ query?: never;
35959
+ header?: never;
35960
+ path: {
35961
+ /** @description UUID identifier */
35962
+ caseId: string;
35963
+ };
35964
+ cookie?: never;
35965
+ };
35966
+ requestBody?: never;
35967
+ responses: {
35968
+ /** @description Default Response */
35969
+ 200: {
35970
+ headers: {
35971
+ [name: string]: unknown;
35972
+ };
35973
+ content: {
35974
+ 'application/json': {
35975
+ is_favorite: boolean;
35976
+ favorited_at: string | null;
35977
+ message?: string;
35978
+ };
35979
+ };
35980
+ };
35981
+ /** @description Default Response */
35982
+ 500: {
35983
+ headers: {
35984
+ [name: string]: unknown;
35985
+ };
35986
+ content: {
35987
+ 'application/json': {
35988
+ error: string;
35989
+ message: string;
35990
+ };
35991
+ };
35992
+ };
35993
+ };
35994
+ };
35995
+ put?: never;
35996
+ /**
35997
+ * Add case to favorites
35998
+ * @description Mark a case as favorite for the current case manager
35999
+ */
36000
+ post: {
36001
+ parameters: {
36002
+ query?: never;
36003
+ header?: never;
36004
+ path: {
36005
+ /** @description UUID identifier */
36006
+ caseId: string;
36007
+ };
36008
+ cookie?: never;
36009
+ };
36010
+ requestBody?: never;
36011
+ responses: {
36012
+ /** @description Default Response */
36013
+ 200: {
36014
+ headers: {
36015
+ [name: string]: unknown;
36016
+ };
36017
+ content: {
36018
+ 'application/json': {
36019
+ success: boolean;
36020
+ data: {
36021
+ /**
36022
+ * Format: uuid
36023
+ * @description UUID identifier
36024
+ */
36025
+ id: string;
36026
+ /**
36027
+ * Format: uuid
36028
+ * @description UUID identifier
36029
+ */
36030
+ contract_case_id: string;
36031
+ /**
36032
+ * Format: uuid
36033
+ * @description UUID identifier
36034
+ */
36035
+ user_id: string;
36036
+ /**
36037
+ * Format: date-time
36038
+ * @description ISO 8601 datetime string
36039
+ */
36040
+ favorited_at: string;
36041
+ };
36042
+ };
36043
+ };
36044
+ };
36045
+ /** @description Default Response */
36046
+ 400: {
36047
+ headers: {
36048
+ [name: string]: unknown;
36049
+ };
36050
+ content: {
36051
+ 'application/json': {
36052
+ error: string;
36053
+ message: string;
36054
+ };
36055
+ };
36056
+ };
36057
+ /** @description Default Response */
36058
+ 404: {
36059
+ headers: {
36060
+ [name: string]: unknown;
36061
+ };
36062
+ content: {
36063
+ 'application/json': {
36064
+ error: string;
36065
+ message: string;
36066
+ };
36067
+ };
36068
+ };
36069
+ /** @description Default Response */
36070
+ 409: {
36071
+ headers: {
36072
+ [name: string]: unknown;
36073
+ };
36074
+ content: {
36075
+ 'application/json': {
36076
+ error: string;
36077
+ message: string;
36078
+ };
36079
+ };
36080
+ };
36081
+ /** @description Default Response */
36082
+ 500: {
36083
+ headers: {
36084
+ [name: string]: unknown;
36085
+ };
36086
+ content: {
36087
+ 'application/json': {
36088
+ error: string;
36089
+ message: string;
36090
+ };
36091
+ };
36092
+ };
36093
+ };
36094
+ };
36095
+ /**
36096
+ * Remove case from favorites
36097
+ * @description Remove a case from the current case manager's favorites
36098
+ */
36099
+ delete: {
36100
+ parameters: {
36101
+ query?: never;
36102
+ header?: never;
36103
+ path: {
36104
+ /** @description UUID identifier */
36105
+ caseId: string;
36106
+ };
36107
+ cookie?: never;
36108
+ };
36109
+ requestBody?: never;
36110
+ responses: {
36111
+ /** @description Default Response */
36112
+ 204: {
36113
+ headers: {
36114
+ [name: string]: unknown;
36115
+ };
36116
+ content?: never;
36117
+ };
36118
+ /** @description Default Response */
36119
+ 404: {
36120
+ headers: {
36121
+ [name: string]: unknown;
36122
+ };
36123
+ content: {
36124
+ 'application/json': {
36125
+ error: string;
36126
+ message: string;
36127
+ };
36128
+ };
36129
+ };
36130
+ /** @description Default Response */
36131
+ 500: {
36132
+ headers: {
36133
+ [name: string]: unknown;
36134
+ };
36135
+ content: {
36136
+ 'application/json': {
36137
+ error: string;
36138
+ message: string;
36139
+ };
36140
+ };
36141
+ };
36142
+ };
36143
+ };
36144
+ options?: never;
36145
+ head?: never;
36146
+ patch?: never;
36147
+ trace?: never;
36148
+ };
36149
+ '/api/contract-cases/favorites/bulk-check': {
36150
+ parameters: {
36151
+ query?: never;
36152
+ header?: never;
36153
+ path?: never;
36154
+ cookie?: never;
36155
+ };
36156
+ get?: never;
36157
+ put?: never;
36158
+ /**
36159
+ * Bulk check if cases are favorites
36160
+ * @description Check if multiple cases are marked as favorites by the current case manager (max 100 per request)
36161
+ */
36162
+ post: {
36163
+ parameters: {
36164
+ query?: never;
36165
+ header?: never;
36166
+ path?: never;
36167
+ cookie?: never;
36168
+ };
36169
+ requestBody: {
36170
+ content: {
36171
+ 'application/json': {
36172
+ /** @description Array of contract case IDs to check (max 100) */
36173
+ case_ids: string[];
36174
+ };
36175
+ };
36176
+ };
36177
+ responses: {
36178
+ /** @description Default Response */
36179
+ 200: {
36180
+ headers: {
36181
+ [name: string]: unknown;
36182
+ };
36183
+ content: {
36184
+ 'application/json': {
36185
+ /** @description Map of contract_case_id to is_favorite boolean */
36186
+ favorites: {
36187
+ [key: string]: boolean;
36188
+ };
36189
+ };
36190
+ };
36191
+ };
36192
+ /** @description Default Response */
36193
+ 400: {
36194
+ headers: {
36195
+ [name: string]: unknown;
36196
+ };
36197
+ content: {
36198
+ 'application/json': {
36199
+ error: string;
36200
+ message: string;
36201
+ };
36202
+ };
36203
+ };
36204
+ /** @description Default Response */
36205
+ 500: {
36206
+ headers: {
36207
+ [name: string]: unknown;
36208
+ };
36209
+ content: {
36210
+ 'application/json': {
36211
+ error: string;
36212
+ message: string;
36213
+ };
36214
+ };
36215
+ };
36216
+ };
36217
+ };
36218
+ delete?: never;
36219
+ options?: never;
36220
+ head?: never;
36221
+ patch?: never;
36222
+ trace?: never;
36223
+ };
35644
36224
  '/api/contract-signings/': {
35645
36225
  parameters: {
35646
36226
  query?: never;