@solibo/solibo-sdk 1.58.0 → 1.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/client/residents.d.mts +1 -1
  2. package/client/residents.mjs +23 -0
  3. package/client-core.mjs +4 -0
  4. package/client.d.mts +14 -0
  5. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  6. package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
  7. package/operations/residents.d.mts +2 -1
  8. package/operations/residents.mjs +5 -0
  9. package/package.json +1 -1
  10. package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-7.mjs +2 -2
  11. package/solibo-cycles/kotlinx-coroutines-core-18.mjs +1 -1
  12. package/solibo-cycles/kotlinx-coroutines-core-19.mjs +5 -5
  13. package/solibo-cycles/solibo-sdk-sdk-core-54.mjs +2 -2
  14. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/apis/ResidentApi.export.d.mts +1 -0
  15. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/apis/ResidentApi.mjs +83 -0
  16. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentContactOperation.export.d.mts +3 -0
  17. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentContactOperation.export.mjs +18 -0
  18. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentContactOperation.mjs +116 -0
  19. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentContactCommand.export.d.mts +17 -0
  20. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentContactCommand.export.mjs +12 -0
  21. package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentContactCommand.mjs +213 -0
  22. package/solibo-sdk-sdk-api-resident.mjs +2 -0
  23. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
  24. package/solibo-sdk-sdk.d.mts +18 -0
@@ -1,3 +1,3 @@
1
1
  // Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
2
2
  export type { ResidentApiFacade } from '../client.mjs';
3
- export { CreateAttendanceCommand, CreateChangeRequestCommand, CreateOrganizationResidentCommand, CreatePersonResidentCommand, CreateResidentCommand, ExportResidentsCommand, FindResidentByOrgNrCommand, FindResidentByPersonalIdentityNumberCommand, FindResidentResult, PagedListResident, PagedListResidentType, ResidentApi, ResidentExportFile, ResidentExportFilter, ResidentIdentity, ResidentsApi, SensitiveData, UpdateAttendanceCommand, UpdateNotatCommand, UpdateOrganizationResidentCommand, UpdatePersonResidentCommand, UpdateResidentCommand, createChangeRequestForResidentOperation, createOrganizationResidentOperation, createPersonResidentOperation, createResidentAttendanceOperation, createResidentOperation, deleteResidentAttendanceOperation, exportResidentsFileOperation, exportResidentsOperation, exportSelectedResidentsFileOperation, exportSelectedResidentsOperation, importResidentsForOnboardingCompanyOperation, indexFutureResidentsOperation, indexHistoricResidentsOperation, indexResidentOperation, indexResidentTypesOperation, inviteResidentToSoliboAppOperation, inviteResidentsToSoliboAppOperation, listResidentAttendanceOperation, residentContractsApi, residentsApi, showResidentByOrgNrOperation, showResidentByPersonnummerOperation, showResidentOperation, showResidentSensitiveOperation, updateOrganizationResidentOperation, updatePersonResidentOperation, updateResidentAttendanceOperation, updateResidentNotatOperation, updateResidentOperation } from '../solibo-sdk-sdk.mjs';
3
+ export { CreateAttendanceCommand, CreateChangeRequestCommand, CreateOrganizationResidentCommand, CreatePersonResidentCommand, CreateResidentCommand, ExportResidentsCommand, FindResidentByOrgNrCommand, FindResidentByPersonalIdentityNumberCommand, FindResidentResult, PagedListResident, PagedListResidentType, ResidentApi, ResidentExportFile, ResidentExportFilter, ResidentIdentity, ResidentsApi, SensitiveData, UpdateAttendanceCommand, UpdateNotatCommand, UpdateOrganizationResidentCommand, UpdatePersonResidentCommand, UpdateResidentCommand, UpdateResidentContactCommand, createChangeRequestForResidentOperation, createOrganizationResidentOperation, createPersonResidentOperation, createResidentAttendanceOperation, createResidentOperation, deleteResidentAttendanceOperation, exportResidentsFileOperation, exportResidentsOperation, exportSelectedResidentsFileOperation, exportSelectedResidentsOperation, importResidentsForOnboardingCompanyOperation, indexFutureResidentsOperation, indexHistoricResidentsOperation, indexResidentOperation, indexResidentTypesOperation, inviteResidentToSoliboAppOperation, inviteResidentsToSoliboAppOperation, listResidentAttendanceOperation, residentContractsApi, residentsApi, showResidentByOrgNrOperation, showResidentByPersonnummerOperation, showResidentOperation, showResidentSensitiveOperation, updateOrganizationResidentOperation, updatePersonResidentOperation, updateResidentAttendanceOperation, updateResidentContactOperation, updateResidentNotatOperation, updateResidentOperation } from '../solibo-sdk-sdk.mjs';
@@ -483,6 +483,29 @@ const DESCRIPTORS = {
483
483
  "bodyType": "UpdateAttendanceCommand",
484
484
  "voidResult": true
485
485
  },
486
+ "updateResidentContact": {
487
+ "args": [
488
+ {
489
+ "name": "companyId",
490
+ "type": "bigint"
491
+ },
492
+ {
493
+ "name": "residentType",
494
+ "type": "ResidentType"
495
+ },
496
+ {
497
+ "name": "residentId",
498
+ "type": "bigint"
499
+ },
500
+ {
501
+ "name": "updateResidentContactCommand",
502
+ "type": "UpdateResidentContactCommand"
503
+ }
504
+ ],
505
+ "body": "updateResidentContactCommand",
506
+ "bodyType": "UpdateResidentContactCommand",
507
+ "voidResult": true
508
+ },
486
509
  "updateResidentNotat": {
487
510
  "args": [
488
511
  {
package/client-core.mjs CHANGED
@@ -4846,6 +4846,10 @@ const PROPS = {
4846
4846
  "personnummerTwo": "string | null | undefined",
4847
4847
  "roles": "RoleInputProps[] | null | undefined"
4848
4848
  },
4849
+ "UpdateResidentContactCommandProps": {
4850
+ "email": "string | null | undefined",
4851
+ "phone": "string | null | undefined"
4852
+ },
4849
4853
  "CreateHmsSettingsCommandProps": {
4850
4854
  "routineGroups": "bigint[] | null | undefined"
4851
4855
  },
package/client.d.mts CHANGED
@@ -1033,6 +1033,8 @@ import type {
1033
1033
  UpdateReportCommandProps,
1034
1034
  UpdateResidentCommand,
1035
1035
  UpdateResidentCommandDiscriminator,
1036
+ UpdateResidentContactCommand,
1037
+ UpdateResidentContactCommandProps,
1036
1038
  UpdateResolutionCommand,
1037
1039
  UpdateResolutionCommandProps,
1038
1040
  UpdateRoutineCommand,
@@ -7190,6 +7192,12 @@ export interface ResidentApiFacade {
7190
7192
  attendanceId: Id;
7191
7193
  input: UpdateAttendanceCommand | SdkInput<UpdateAttendanceCommandProps>;
7192
7194
  }): Promise<SdkResult<void>>;
7195
+ updateResidentContact(params: {
7196
+ companyId: Id;
7197
+ residentType: ResidentType | "PERSON" | "ORGANIZATION";
7198
+ residentId: Id;
7199
+ input: UpdateResidentContactCommand | SdkInput<UpdateResidentContactCommandProps>;
7200
+ }): Promise<SdkResult<void>>;
7193
7201
  updateResidentNotat(params: {
7194
7202
  companyId: Id;
7195
7203
  residentType: ResidentType | "PERSON" | "ORGANIZATION";
@@ -7344,6 +7352,12 @@ export interface ResidentApiOperations {
7344
7352
  attendanceId: Id;
7345
7353
  input: UpdateAttendanceCommand | SdkInput<UpdateAttendanceCommandProps>;
7346
7354
  }): Promise<SdkResult<void>>;
7355
+ updateResidentContact(client: SoliboOperationClient, params: {
7356
+ companyId: Id;
7357
+ residentType: ResidentType | "PERSON" | "ORGANIZATION";
7358
+ residentId: Id;
7359
+ input: UpdateResidentContactCommand | SdkInput<UpdateResidentContactCommandProps>;
7360
+ }): Promise<SdkResult<void>>;
7347
7361
  updateResidentNotat(client: SoliboOperationClient, params: {
7348
7362
  companyId: Id;
7349
7363
  residentType: ResidentType | "PERSON" | "ORGANIZATION";
@@ -5,8 +5,8 @@ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdli
5
5
  import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
6
6
  import {
7
7
  close$default2suggcywjwe8g as close$default,
8
- SendChannel38sllbxw662ws as SendChannel,
9
8
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
9
+ SendChannel38sllbxw662ws as SendChannel,
10
10
  } from './Channel.mjs';
11
11
  import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
12
12
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
@@ -17,7 +17,7 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotl
17
17
  var ChannelCoroutineClass;
18
18
  function ChannelCoroutine() {
19
19
  if (ChannelCoroutineClass === VOID) {
20
- initMetadataForClass($, 'ChannelCoroutine', VOID, AbstractCoroutine(), [SendChannel(), ReceiveChannel()], [1, 0]);
20
+ initMetadataForClass($, 'ChannelCoroutine', VOID, AbstractCoroutine(), [ReceiveChannel(), SendChannel()], [1, 0]);
21
21
  function $(parentContext, _channel, initParentJob, active) {
22
22
  AbstractCoroutine().call(this, parentContext, initParentJob, active);
23
23
  this._channel_1 = _channel;
@@ -24,8 +24,8 @@ import {
24
24
  _ChannelResult___get_isClosed__impl__mg7kuul2jcxqhngcqm as _ChannelResult___get_isClosed__impl__mg7kuu,
25
25
  close$default2suggcywjwe8g as close$default,
26
26
  cancel$default3v09jht7i082i as cancel$default,
27
- SendChannel38sllbxw662ws as SendChannel,
28
27
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
28
+ SendChannel38sllbxw662ws as SendChannel,
29
29
  } from '../../../../kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs';
30
30
  import { Enum3alwj03lh1n41 as Enum } from '../../../../kotlin-kotlin-stdlib/kotlin/Enum.mjs';
31
31
  import { throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException } from '../../../../kotlin-kotlin-stdlib/kotlin/internal/ThrowHelpers.mjs';
@@ -190,7 +190,7 @@ function Companion_getInstance_1() {
190
190
  var BoundedChannelClass;
191
191
  function BoundedChannel() {
192
192
  if (BoundedChannelClass === VOID) {
193
- initMetadataForClass($, 'BoundedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 0]);
193
+ initMetadataForClass($, 'BoundedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 0]);
194
194
  function $(capacity, delegate) {
195
195
  delegate = delegate === VOID ? Companion_instance_1.createDelegate_n5r3h5_k$(capacity) : delegate;
196
196
  this.delegate_1 = delegate;
@@ -1,6 +1,6 @@
1
1
  // Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
2
2
  import type { ResidentApiOperations } from '../client.mjs';
3
- export { CreateAttendanceCommand, CreateChangeRequestCommand, CreateOrganizationResidentCommand, CreatePersonResidentCommand, CreateResidentCommand, ExportResidentsCommand, FindResidentByOrgNrCommand, FindResidentByPersonalIdentityNumberCommand, FindResidentResult, PagedListResident, PagedListResidentType, ResidentApi, ResidentExportFile, ResidentExportFilter, ResidentIdentity, ResidentsApi, SensitiveData, UpdateAttendanceCommand, UpdateNotatCommand, UpdateOrganizationResidentCommand, UpdatePersonResidentCommand, UpdateResidentCommand, createChangeRequestForResidentOperation, createOrganizationResidentOperation, createPersonResidentOperation, createResidentAttendanceOperation, createResidentOperation, deleteResidentAttendanceOperation, exportResidentsFileOperation, exportResidentsOperation, exportSelectedResidentsFileOperation, exportSelectedResidentsOperation, importResidentsForOnboardingCompanyOperation, indexFutureResidentsOperation, indexHistoricResidentsOperation, indexResidentOperation, indexResidentTypesOperation, inviteResidentToSoliboAppOperation, inviteResidentsToSoliboAppOperation, listResidentAttendanceOperation, residentContractsApi, residentsApi, showResidentByOrgNrOperation, showResidentByPersonnummerOperation, showResidentOperation, showResidentSensitiveOperation, updateOrganizationResidentOperation, updatePersonResidentOperation, updateResidentAttendanceOperation, updateResidentNotatOperation, updateResidentOperation } from '../solibo-sdk-sdk.mjs';
3
+ export { CreateAttendanceCommand, CreateChangeRequestCommand, CreateOrganizationResidentCommand, CreatePersonResidentCommand, CreateResidentCommand, ExportResidentsCommand, FindResidentByOrgNrCommand, FindResidentByPersonalIdentityNumberCommand, FindResidentResult, PagedListResident, PagedListResidentType, ResidentApi, ResidentExportFile, ResidentExportFilter, ResidentIdentity, ResidentsApi, SensitiveData, UpdateAttendanceCommand, UpdateNotatCommand, UpdateOrganizationResidentCommand, UpdatePersonResidentCommand, UpdateResidentCommand, UpdateResidentContactCommand, createChangeRequestForResidentOperation, createOrganizationResidentOperation, createPersonResidentOperation, createResidentAttendanceOperation, createResidentOperation, deleteResidentAttendanceOperation, exportResidentsFileOperation, exportResidentsOperation, exportSelectedResidentsFileOperation, exportSelectedResidentsOperation, importResidentsForOnboardingCompanyOperation, indexFutureResidentsOperation, indexHistoricResidentsOperation, indexResidentOperation, indexResidentTypesOperation, inviteResidentToSoliboAppOperation, inviteResidentsToSoliboAppOperation, listResidentAttendanceOperation, residentContractsApi, residentsApi, showResidentByOrgNrOperation, showResidentByPersonnummerOperation, showResidentOperation, showResidentSensitiveOperation, updateOrganizationResidentOperation, updatePersonResidentOperation, updateResidentAttendanceOperation, updateResidentContactOperation, updateResidentNotatOperation, updateResidentOperation } from '../solibo-sdk-sdk.mjs';
4
4
 
5
5
  export declare const createChangeRequestForResident: ResidentApiOperations['createChangeRequestForResident'];
6
6
  export declare const createResident: ResidentApiOperations['createResident'];
@@ -22,6 +22,7 @@ export declare const showResidentByPersonnummer: ResidentApiOperations['showResi
22
22
  export declare const showResidentSensitive: ResidentApiOperations['showResidentSensitive'];
23
23
  export declare const updateResident: ResidentApiOperations['updateResident'];
24
24
  export declare const updateResidentAttendance: ResidentApiOperations['updateResidentAttendance'];
25
+ export declare const updateResidentContact: ResidentApiOperations['updateResidentContact'];
25
26
  export declare const updateResidentNotat: ResidentApiOperations['updateResidentNotat'];
26
27
  export declare const createPersonResident: ResidentApiOperations['createPersonResident'];
27
28
  export declare const createOrganizationResident: ResidentApiOperations['createOrganizationResident'];
@@ -24,6 +24,7 @@ import {
24
24
  showResidentSensitiveOperation,
25
25
  updateResidentOperation,
26
26
  updateResidentAttendanceOperation,
27
+ updateResidentContactOperation,
27
28
  updateResidentNotatOperation,
28
29
  createPersonResidentOperation,
29
30
  createOrganizationResidentOperation,
@@ -116,6 +117,10 @@ export function updateResidentAttendance(client, params) {
116
117
  return invokeOperation(client, "residents", updateResidentAttendanceOperation, {"method":"updateResidentAttendance","args":[{"name":"companyId","type":"bigint"},{"name":"residentType","type":"ResidentType"},{"name":"residentId","type":"bigint"},{"name":"sectionId","type":"bigint"},{"name":"attendanceId","type":"bigint"},{"name":"updateAttendanceCommand","type":"UpdateAttendanceCommand"}],"body":"updateAttendanceCommand","bodyType":"UpdateAttendanceCommand","voidResult":true}, params);
117
118
  }
118
119
 
120
+ export function updateResidentContact(client, params) {
121
+ return invokeOperation(client, "residents", updateResidentContactOperation, {"method":"updateResidentContact","args":[{"name":"companyId","type":"bigint"},{"name":"residentType","type":"ResidentType"},{"name":"residentId","type":"bigint"},{"name":"updateResidentContactCommand","type":"UpdateResidentContactCommand"}],"body":"updateResidentContactCommand","bodyType":"UpdateResidentContactCommand","voidResult":true}, params);
122
+ }
123
+
119
124
  export function updateResidentNotat(client, params) {
120
125
  return invokeOperation(client, "residents", updateResidentNotatOperation, {"method":"updateResidentNotat","args":[{"name":"companyId","type":"bigint"},{"name":"residentType","type":"ResidentType"},{"name":"residentId","type":"bigint"},{"name":"updateNotatCommand","type":"UpdateNotatCommand"}],"body":"updateNotatCommand","bodyType":"UpdateNotatCommand"}, params);
121
126
  }
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "url": "https://github.com/Solibo-AS/solibo-sdk.git",
24
24
  "directory": "sdk"
25
25
  },
26
- "version": "1.58.0",
26
+ "version": "1.58.1",
27
27
  "name": "@solibo/solibo-sdk",
28
28
  "dependencies": {
29
29
  "@js-joda/core": "6.1.0",
@@ -252,8 +252,8 @@ import {
252
252
  minute$defaultsgib3pp3rn60 as minute$default,
253
253
  second$defaultabrspkhk2hrb as second$default,
254
254
  AbstractDateTimeFormatBuilder2kkelk07l4wb as AbstractDateTimeFormatBuilder,
255
- WithDate2bqihss8t5xfv as WithDate,
256
255
  WithTime2lgb7k6hqa1zi as WithTime,
256
+ WithDate2bqihss8t5xfv as WithDate,
257
257
  alternativeParsing1gmwubnsvpp9b as alternativeParsing2,
258
258
  char1r4ssccmdfesy as char2
259
259
  } from "../Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs";
@@ -498,7 +498,7 @@ function AbstractWithDateTimeBuilder() {
498
498
  if (AbstractWithDateTimeBuilderClass === VOID3) {
499
499
  let $ = function() {
500
500
  };
501
- initMetadataForInterface($, "AbstractWithDateTimeBuilder", VOID3, VOID3, [AbstractWithDateBuilder(), AbstractWithTimeBuilder(), WithDate(), WithTime()]);
501
+ initMetadataForInterface($, "AbstractWithDateTimeBuilder", VOID3, VOID3, [AbstractWithDateBuilder(), AbstractWithTimeBuilder(), WithTime(), WithDate()]);
502
502
  AbstractWithDateTimeBuilderClass = $;
503
503
  }
504
504
  return AbstractWithDateTimeBuilderClass;
@@ -2550,7 +2550,7 @@ function BufferedChannel() {
2550
2550
  this._closeCause_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
2551
2551
  this.closeHandler_1 = atomic$ref$1(null);
2552
2552
  };
2553
- initMetadataForClass($, "BufferedChannel", VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
2553
+ initMetadataForClass($, "BufferedChannel", VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
2554
2554
  protoOf($).get_sendersCounter_mvbt0m_k$ = function() {
2555
2555
  return this.sendersAndCloseStatus_1.kotlinx$atomicfu$value & 1152921504606846975n;
2556
2556
  };
@@ -1029,7 +1029,7 @@ function StateFlowImpl() {
1029
1029
  this._state_1 = atomic$ref$1(initialState);
1030
1030
  this.sequence_1 = 0;
1031
1031
  };
1032
- initMetadataForClass2($, "StateFlowImpl", VOID2, AbstractSharedFlow(), [StateFlow(), FlowCollector2(), FusibleFlow2()], [1]);
1032
+ initMetadataForClass2($, "StateFlowImpl", VOID2, AbstractSharedFlow(), [FlowCollector2(), StateFlow(), FusibleFlow2()], [1]);
1033
1033
  protoOf2($).set_value_v1vabv_k$ = function(value) {
1034
1034
  updateState(this, null, value == null ? get_NULL() : value);
1035
1035
  };
@@ -1081,21 +1081,21 @@ function StateFlowSlot() {
1081
1081
  this._state_1 = new (WorkaroundAtomicReference())(null);
1082
1082
  };
1083
1083
  initMetadataForClass2($, "StateFlowSlot", StateFlowSlot, AbstractSharedFlowSlot(), VOID2, [0]);
1084
- protoOf2($).allocateLocked_newvja_k$ = function(flow) {
1084
+ protoOf2($).allocateLocked_qdduqu_k$ = function(flow) {
1085
1085
  if (!(get_value(this._state_1) == null))
1086
1086
  return false;
1087
1087
  set_value(this._state_1, get_NONE());
1088
1088
  return true;
1089
1089
  };
1090
1090
  protoOf2($).allocateLocked_z5itrq_k$ = function(flow) {
1091
- return this.allocateLocked_newvja_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
1091
+ return this.allocateLocked_qdduqu_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
1092
1092
  };
1093
- protoOf2($).freeLocked_2crs17_k$ = function(flow) {
1093
+ protoOf2($).freeLocked_lp76d_k$ = function(flow) {
1094
1094
  set_value(this._state_1, null);
1095
1095
  return get_EMPTY_RESUMES();
1096
1096
  };
1097
1097
  protoOf2($).freeLocked_1gezd3_k$ = function(flow) {
1098
- return this.freeLocked_2crs17_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
1098
+ return this.freeLocked_lp76d_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
1099
1099
  };
1100
1100
  protoOf2($).makePending_e7hvrb_k$ = function() {
1101
1101
  var this_0 = this._state_1;
@@ -2246,8 +2246,8 @@ function HomeApiBase$configureClient$lambda_14(this$0, $platformName) {
2246
2246
  }
2247
2247
  accept($this$defaultRequest, Application_getInstance().Json_1);
2248
2248
  header($this$defaultRequest, "Accept-Language", buildAcceptLanguage(this$0.userLanguage));
2249
- header($this$defaultRequest, "User-Agent", "SoliboSDK/1.58.0 (" + $platformName + ")");
2250
- header($this$defaultRequest, "X-Solibo-SDK-Version", "1.58.0");
2249
+ header($this$defaultRequest, "User-Agent", "SoliboSDK/1.58.1 (" + $platformName + ")");
2250
+ header($this$defaultRequest, "X-Solibo-SDK-Version", "1.58.1");
2251
2251
  return Unit_instance2;
2252
2252
  };
2253
2253
  }
@@ -24,6 +24,7 @@ export declare class ResidentApi extends ApiClient.$metadata$.constructor {
24
24
  showResidentSensitive(companyId: bigint, residentType: ResidentType, residentId: bigint, fields?: Nullable<string>): Promise<HttpResponse<SensitiveData>>;
25
25
  updateResident(companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentCommand: UpdateResidentCommand): Promise<HttpResponse<Resident>>;
26
26
  updateResidentAttendance(companyId: bigint, residentType: ResidentType, residentId: bigint, sectionId: bigint, attendanceId: bigint, updateAttendanceCommand: UpdateAttendanceCommand): Promise<HttpResponse<void>>;
27
+ updateResidentContact(companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentContactCommand: UpdateResidentContactCommand): Promise<HttpResponse<void>>;
27
28
  updateResidentNotat(companyId: bigint, residentType: ResidentType, residentId: bigint, updateNotatCommand: UpdateNotatCommand): Promise<HttpResponse<Resident>>;
28
29
  }
29
30
  export declare namespace ResidentApi {
@@ -40,6 +40,7 @@ import { showResidentByPersonnummerOperationqfv7lcslx168 as showResidentByPerson
40
40
  import { showResidentSensitiveOperation1wfq4bq0z4pxj as showResidentSensitiveOperation } from '../operations/ShowResidentSensitiveOperation.mjs';
41
41
  import { updateResidentOperation3quldb6kwgq8f as updateResidentOperation } from '../operations/UpdateResidentOperation.mjs';
42
42
  import { updateResidentAttendanceOperation22n7t1oomkkuz as updateResidentAttendanceOperation } from '../operations/UpdateResidentAttendanceOperation.mjs';
43
+ import { updateResidentContactOperation2owqtdznc7t8e as updateResidentContactOperation } from '../operations/UpdateResidentContactOperation.mjs';
43
44
  import { updateResidentNotatOperation2p3rr5lqp6rae as updateResidentNotatOperation } from '../operations/UpdateResidentNotatOperation.mjs';
44
45
  import { __soliboBoundaryState, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../../solibo-boundary.mjs';
45
46
  import { CreateAttendanceCommandwn8romu05oks as __soliboType_CreateAttendanceCommand } from '../../models/CreateAttendanceCommand.mjs';
@@ -52,6 +53,7 @@ import { ResidentType1v8i3sn4pvr7a as __soliboType_ResidentType } from '../../..
52
53
  import { UpdateAttendanceCommand1znn2ozjevdgo as __soliboType_UpdateAttendanceCommand } from '../../models/UpdateAttendanceCommand.mjs';
53
54
  import { UpdateNotatCommand1yoxj1nhvqiut as __soliboType_UpdateNotatCommand } from '../../models/UpdateNotatCommand.mjs';
54
55
  import { UpdateResidentCommandu5e2cuf0siia as __soliboType_UpdateResidentCommand } from '../../models/UpdateResidentCommand.mjs';
56
+ import { UpdateResidentContactCommand1sm5pmmdrxjh3 as __soliboType_UpdateResidentContactCommand } from '../../models/UpdateResidentContactCommand.mjs';
55
57
  //region block: imports
56
58
  //endregion
57
59
  //region block: pre-declaration
@@ -1355,6 +1357,70 @@ function $updateResidentAttendance$suspendBridgeCOROUTINE$() {
1355
1357
  }
1356
1358
  return $updateResidentAttendance$suspendBridgeCOROUTINE$Class;
1357
1359
  }
1360
+ var $updateResidentContact$suspendBridgeCOROUTINE$Class;
1361
+ function $updateResidentContact$suspendBridgeCOROUTINE$() {
1362
+ if ($updateResidentContact$suspendBridgeCOROUTINE$Class === VOID) {
1363
+ initMetadataForCoroutine($, CoroutineImpl());
1364
+ function $(_this__u8e3s4, companyId, residentType, residentId, updateResidentContactCommand, resultContinuation) {
1365
+ CoroutineImpl().call(this, resultContinuation);
1366
+ this._this__u8e3s4__1 = _this__u8e3s4;
1367
+ this.companyId_1 = companyId;
1368
+ this.residentType_1 = residentType;
1369
+ this.residentId_1 = residentId;
1370
+ this.updateResidentContactCommand_1 = updateResidentContactCommand;
1371
+ }
1372
+ protoOf($).doResume_5yljmg_k$ = function () {
1373
+ var suspendResult = this.result_1;
1374
+ $sm: do
1375
+ try {
1376
+ var tmp = this.state_1;
1377
+ switch (tmp) {
1378
+ case 0:
1379
+ this.exceptionState_1 = 4;
1380
+ if (this._this__u8e3s4__1.updateResidentContact === protoOf(ResidentApi()).updateResidentContact) {
1381
+ this.state_1 = 2;
1382
+ suspendResult = this._this__u8e3s4__1.updateResidentContact_xo5ney_k$(this.companyId_1, this.residentType_1, this.residentId_1, this.updateResidentContactCommand_1, this);
1383
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1384
+ return suspendResult;
1385
+ }
1386
+ continue $sm;
1387
+ } else {
1388
+ this.state_1 = 1;
1389
+ suspendResult = await_0(this._this__u8e3s4__1.updateResidentContact(this.companyId_1, this.residentType_1, this.residentId_1, this.updateResidentContactCommand_1), this);
1390
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1391
+ return suspendResult;
1392
+ }
1393
+ continue $sm;
1394
+ }
1395
+
1396
+ case 1:
1397
+ this.WHEN_RESULT0__1 = suspendResult;
1398
+ this.state_1 = 3;
1399
+ continue $sm;
1400
+ case 2:
1401
+ this.WHEN_RESULT0__1 = suspendResult;
1402
+ this.state_1 = 3;
1403
+ continue $sm;
1404
+ case 3:
1405
+ return this.WHEN_RESULT0__1;
1406
+ case 4:
1407
+ throw this.exception_1;
1408
+ }
1409
+ } catch ($p) {
1410
+ var e = $p;
1411
+ if (this.exceptionState_1 === 4) {
1412
+ throw e;
1413
+ } else {
1414
+ this.state_1 = this.exceptionState_1;
1415
+ this.exception_1 = e;
1416
+ }
1417
+ }
1418
+ while (true);
1419
+ };
1420
+ $updateResidentContact$suspendBridgeCOROUTINE$Class = $;
1421
+ }
1422
+ return $updateResidentContact$suspendBridgeCOROUTINE$Class;
1423
+ }
1358
1424
  var $updateResidentNotat$suspendBridgeCOROUTINE$Class;
1359
1425
  function $updateResidentNotat$suspendBridgeCOROUTINE$() {
1360
1426
  if ($updateResidentNotat$suspendBridgeCOROUTINE$Class === VOID) {
@@ -1773,6 +1839,21 @@ function ResidentApi() {
1773
1839
  tmp.exception_1 = null;
1774
1840
  return tmp.doResume_5yljmg_k$();
1775
1841
  };
1842
+ protoOf($).updateResidentContact_xo5ney_k$ = function (companyId, residentType, residentId, updateResidentContactCommand, $completion) {
1843
+ return updateResidentContactOperation(this, companyId, residentType, residentId, updateResidentContactCommand, $completion);
1844
+ };
1845
+ protoOf($).updateResidentContact = function (companyId, residentType, residentId, updateResidentContactCommand) {
1846
+ var tmp = this;
1847
+ return promisify(function ($completion) {
1848
+ return tmp.updateResidentContact_xo5ney_k$(companyId, residentType, residentId, updateResidentContactCommand, $completion);
1849
+ });
1850
+ };
1851
+ protoOf($).updateResidentContact$suspendBridge_pszkzb_k$ = function (companyId, residentType, residentId, updateResidentContactCommand, $completion) {
1852
+ var tmp = new ($updateResidentContact$suspendBridgeCOROUTINE$())(this, companyId, residentType, residentId, updateResidentContactCommand, $completion);
1853
+ tmp.result_1 = Unit_instance;
1854
+ tmp.exception_1 = null;
1855
+ return tmp.doResume_5yljmg_k$();
1856
+ };
1776
1857
  protoOf($).updateResidentNotat_dy6o3x_k$ = function (companyId, residentType, residentId, updateNotatCommand, $completion) {
1777
1858
  return updateResidentNotatOperation(this, companyId, residentType, residentId, updateNotatCommand, $completion);
1778
1859
  };
@@ -1812,6 +1893,7 @@ function ResidentApi() {
1812
1893
  __soliboWrapMethod($, "showResidentSensitive", {"args":{"0":["bigint"],"1":["enum","ResidentType"],"2":["bigint"]},"result":true});
1813
1894
  __soliboWrapMethod($, "updateResident", {"args":{"0":["bigint"],"1":["enum","ResidentType"],"2":["bigint"],"3":["model","UpdateResidentCommand"]},"result":true});
1814
1895
  __soliboWrapMethod($, "updateResidentAttendance", {"args":{"0":["bigint"],"1":["enum","ResidentType"],"2":["bigint"],"3":["bigint"],"4":["bigint"],"5":["model","UpdateAttendanceCommand"]},"result":true});
1896
+ __soliboWrapMethod($, "updateResidentContact", {"args":{"0":["bigint"],"1":["enum","ResidentType"],"2":["bigint"],"3":["model","UpdateResidentContactCommand"]},"result":true});
1815
1897
  __soliboWrapMethod($, "updateResidentNotat", {"args":{"0":["bigint"],"1":["enum","ResidentType"],"2":["bigint"],"3":["model","UpdateNotatCommand"]},"result":true});
1816
1898
  __soliboRegisterLookup("ResidentApi", () => $);
1817
1899
  ResidentApiClass = $;
@@ -1839,4 +1921,5 @@ __soliboRegisterLookup("ResidentType", () => __soliboType_ResidentType());
1839
1921
  __soliboRegisterLookup("UpdateAttendanceCommand", () => __soliboType_UpdateAttendanceCommand());
1840
1922
  __soliboRegisterLookup("UpdateNotatCommand", () => __soliboType_UpdateNotatCommand());
1841
1923
  __soliboRegisterLookup("UpdateResidentCommand", () => __soliboType_UpdateResidentCommand());
1924
+ __soliboRegisterLookup("UpdateResidentContactCommand", () => __soliboType_UpdateResidentContactCommand());
1842
1925
 
@@ -0,0 +1,3 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare function updateResidentContactOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentContactCommand: UpdateResidentContactCommand): Promise<HttpResponse<void>>;
@@ -0,0 +1,18 @@
1
+ import { updateResidentContactOperation2xjs61iy5hrzs as updateResidentContactOperation } from './UpdateResidentContactOperation.mjs';
2
+ import { __soliboRegisterLookup, __soliboWrapFunction } from '../../../../../../../../../solibo-boundary.mjs';
3
+ import { ResidentType1v8i3sn4pvr7a as __soliboType_ResidentType } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ResidentType.mjs';
4
+ import { UpdateResidentContactCommand1sm5pmmdrxjh3 as __soliboType_UpdateResidentContactCommand } from '../../models/UpdateResidentContactCommand.mjs';
5
+ //region block: imports
6
+ //endregion
7
+ //region block: pre-declaration
8
+ //endregion
9
+ //region block: exports
10
+ /* Solibo boundary patches */
11
+ __soliboRegisterLookup("ResidentType", () => __soliboType_ResidentType());
12
+ __soliboRegisterLookup("UpdateResidentContactCommand", () => __soliboType_UpdateResidentContactCommand());
13
+ var updateResidentContactOperation_solibo = __soliboWrapFunction(updateResidentContactOperation, {"result":true,"args":{"1":["bigint"],"2":["enum","ResidentType"],"3":["bigint"],"4":["model","UpdateResidentContactCommand"]}});
14
+ export {
15
+ updateResidentContactOperation_solibo as updateResidentContactOperation,
16
+ };
17
+ //endregion
18
+
@@ -0,0 +1,116 @@
1
+ import { promisify1z0ncraq1ipzh as promisify } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
2
+ import {
3
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
4
+ Unitkvevlwgzwiuc as Unit,
5
+ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
6
+ import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
7
+ import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
8
+ import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
9
+ import { RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestMethod.mjs';
10
+ import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs';
11
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
12
+ import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
13
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
14
+ import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
15
+ import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
16
+ import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
17
+ import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '../../../../../../../../../ktor-ktor-utils/io/ktor/util/reflect/Type.mjs';
18
+ import {
19
+ TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
20
+ HttpResponse53ki0v36vqo7 as HttpResponse,
21
+ } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs';
22
+ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
23
+ import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
24
+ //region block: imports
25
+ //endregion
26
+ //region block: pre-declaration
27
+ //endregion
28
+ function updateResidentContactOperation(client, companyId, residentType, residentId, updateResidentContactCommand) {
29
+ return promisify(function ($completion) {
30
+ return updateResidentContactOperation_0(client, companyId, residentType, residentId, updateResidentContactCommand, $completion);
31
+ });
32
+ }
33
+ function updateResidentContactOperation_0(client, companyId, residentType, residentId, updateResidentContactCommand, $completion) {
34
+ var tmp = new ($updateResidentContactOperationCOROUTINE$())(client, companyId, residentType, residentId, updateResidentContactCommand, $completion);
35
+ tmp.result_1 = Unit_instance;
36
+ tmp.exception_1 = null;
37
+ return tmp.doResume_5yljmg_k$();
38
+ }
39
+ var $updateResidentContactOperationCOROUTINE$Class;
40
+ function $updateResidentContactOperationCOROUTINE$() {
41
+ if ($updateResidentContactOperationCOROUTINE$Class === VOID) {
42
+ initMetadataForCoroutine($, CoroutineImpl());
43
+ function $(client, companyId, residentType, residentId, updateResidentContactCommand, resultContinuation) {
44
+ CoroutineImpl().call(this, resultContinuation);
45
+ this.client_1 = client;
46
+ this.companyId_1 = companyId;
47
+ this.residentType_1 = residentType;
48
+ this.residentId_1 = residentId;
49
+ this.updateResidentContactCommand_1 = updateResidentContactCommand;
50
+ }
51
+ protoOf($).doResume_5yljmg_k$ = function () {
52
+ var suspendResult = this.result_1;
53
+ $sm: do
54
+ try {
55
+ var tmp = this.state_1;
56
+ switch (tmp) {
57
+ case 0:
58
+ this.exceptionState_1 = 2;
59
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
60
+ var localVariableBody = this.updateResidentContactCommand_1;
61
+ var localVariableQuery = LinkedHashMap_init_$Create$();
62
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
63
+ var tmp0_method = RequestMethod_PUT_getInstance();
64
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/residents/{residentType}/{residentId}/contact', '{companyId}', this.companyId_1.toString()), '{residentType}', this.residentType_1.value), '{residentId}', this.residentId_1.toString());
65
+ var localVariableConfig = new (RequestConfig())(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
66
+ this.state_1 = 1;
67
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
68
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
69
+ return suspendResult;
70
+ }
71
+
72
+ continue $sm;
73
+ case 1:
74
+ var this_0 = suspendResult;
75
+ var tmp_0 = getKClass(Unit());
76
+ var tmp_1 = null instanceof Unit();
77
+ var tmp_2;
78
+ try {
79
+ tmp_2 = createKType(getKClass(Unit()), arrayOf([]), false);
80
+ } catch ($p) {
81
+ var tmp_3;
82
+ if ($p instanceof Error) {
83
+ var _unused_var__etf5q3 = $p;
84
+ tmp_3 = null;
85
+ } else {
86
+ throw $p;
87
+ }
88
+ tmp_2 = tmp_3;
89
+ }
90
+
91
+ return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
92
+ case 2:
93
+ throw this.exception_1;
94
+ }
95
+ } catch ($p_0) {
96
+ var e = $p_0;
97
+ if (this.exceptionState_1 === 2) {
98
+ throw e;
99
+ } else {
100
+ this.state_1 = this.exceptionState_1;
101
+ this.exception_1 = e;
102
+ }
103
+ }
104
+ while (true);
105
+ };
106
+ $updateResidentContactOperationCOROUTINE$Class = $;
107
+ }
108
+ return $updateResidentContactOperationCOROUTINE$Class;
109
+ }
110
+ //region block: exports
111
+ export {
112
+ updateResidentContactOperation as updateResidentContactOperation2xjs61iy5hrzs,
113
+ updateResidentContactOperation_0 as updateResidentContactOperation2owqtdznc7t8e,
114
+ };
115
+ //endregion
116
+
@@ -0,0 +1,17 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class UpdateResidentContactCommand {
4
+ constructor(email?: Nullable<string>, phone?: Nullable<string>);
5
+ get email(): Nullable<string>;
6
+ get phone(): Nullable<string>;
7
+ copy(email?: Nullable<string>, phone?: Nullable<string>): UpdateResidentContactCommand;
8
+ toString(): string;
9
+ hashCode(): number;
10
+ equals(other: Nullable<any>): boolean;
11
+ }
12
+ export declare namespace UpdateResidentContactCommand {
13
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
14
+ namespace $metadata$ {
15
+ const constructor: abstract new () => UpdateResidentContactCommand;
16
+ }
17
+ }
@@ -0,0 +1,12 @@
1
+ import { UpdateResidentContactCommand1sm5pmmdrxjh3 as UpdateResidentContactCommand } from './UpdateResidentContactCommand.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ //region block: exports
7
+ var UpdateResidentContactCommand_0 = UpdateResidentContactCommand();
8
+ export {
9
+ UpdateResidentContactCommand_0 as UpdateResidentContactCommand,
10
+ };
11
+ //endregion
12
+
@@ -0,0 +1,213 @@
1
+ import {
2
+ protoOf180f3jzyo7rfj as protoOf,
3
+ objectCreate1ve4bgxiu4x98 as objectCreate,
4
+ getStringHashCode26igk1bx568vk as getStringHashCode,
5
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
6
+ import {
7
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
8
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
9
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
10
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
11
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
12
+ import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
13
+ import { StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
14
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
15
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
16
+ import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
17
+ import { get_nullable197rfua9r7fsz as get_nullable } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs';
18
+ import {
19
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
20
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
21
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
22
+ import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
23
+ import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
24
+ import { __soliboBoundaryState, __soliboRegisterLookup, __soliboToJs, __soliboToKt } from '../../../../../../../../solibo-boundary.mjs';
25
+ //region block: imports
26
+ var imul = Math.imul;
27
+ //endregion
28
+ //region block: pre-declaration
29
+ //endregion
30
+ var CompanionClass;
31
+ function Companion() {
32
+ if (CompanionClass === VOID) {
33
+ initMetadataForCompanion($);
34
+ function $() {
35
+ }
36
+ CompanionClass = $;
37
+ }
38
+ return CompanionClass;
39
+ }
40
+ var Companion_instance;
41
+ function Companion_getInstance() {
42
+ return Companion_instance;
43
+ }
44
+ var $serializerClass;
45
+ function $serializer() {
46
+ if ($serializerClass === VOID) {
47
+ initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
48
+ function $() {
49
+ $serializer_instance = this;
50
+ var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.UpdateResidentContactCommand', this, 2);
51
+ tmp0_serialDesc.addElement_5pzumi_k$('email', true);
52
+ tmp0_serialDesc.addElement_5pzumi_k$('phone', true);
53
+ this.descriptor_1 = tmp0_serialDesc;
54
+ }
55
+ protoOf($).serialize_2s6rq8_k$ = function (encoder, value) {
56
+ var tmp0_desc = this.descriptor_1;
57
+ var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
58
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.email == null)) {
59
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.email);
60
+ }
61
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.phone == null)) {
62
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.phone);
63
+ }
64
+ tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
65
+ };
66
+ protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
67
+ return this.serialize_2s6rq8_k$(encoder, value instanceof UpdateResidentContactCommand() ? value : THROW_CCE());
68
+ };
69
+ protoOf($).deserialize_sy6x50_k$ = function (decoder) {
70
+ var tmp0_desc = this.descriptor_1;
71
+ var tmp1_flag = true;
72
+ var tmp2_index = 0;
73
+ var tmp3_bitMask0 = 0;
74
+ var tmp4_local0 = null;
75
+ var tmp5_local1 = null;
76
+ var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
77
+ if (tmp6_input.decodeSequentially_xlblqy_k$()) {
78
+ tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
79
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
80
+ tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
81
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
82
+ } else
83
+ while (tmp1_flag) {
84
+ tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
85
+ switch (tmp2_index) {
86
+ case -1:
87
+ tmp1_flag = false;
88
+ break;
89
+ case 0:
90
+ tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
91
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
92
+ break;
93
+ case 1:
94
+ tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
95
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
96
+ break;
97
+ default:
98
+ throw UnknownFieldException_init_$Create$(tmp2_index);
99
+ }
100
+ }
101
+ tmp6_input.endStructure_1xqz0n_k$(tmp0_desc);
102
+ return UpdateResidentContactCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
103
+ };
104
+ protoOf($).get_descriptor_wjt6a0_k$ = function () {
105
+ return this.descriptor_1;
106
+ };
107
+ protoOf($).childSerializers_5ghqw5_k$ = function () {
108
+ // Inline function 'kotlin.arrayOf' call
109
+ // Inline function 'kotlin.js.unsafeCast' call
110
+ // Inline function 'kotlin.js.asDynamic' call
111
+ return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
112
+ };
113
+ protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
114
+ $serializerClass = $;
115
+ }
116
+ return $serializerClass;
117
+ }
118
+ var $serializer_instance;
119
+ function $serializer_getInstance() {
120
+ if ($serializer_instance == null)
121
+ new ($serializer())();
122
+ return $serializer_instance;
123
+ }
124
+ function UpdateResidentContactCommand_init_$Init$(seen0, email, phone, serializationConstructorMarker, $this) {
125
+ if (!(0 === (0 & seen0))) {
126
+ throwMissingFieldException(seen0, 0, $serializer_getInstance().descriptor_1);
127
+ }
128
+ if (0 === (seen0 & 1))
129
+ $this.email = null;
130
+ else
131
+ $this.email = email;
132
+ if (0 === (seen0 & 2))
133
+ $this.phone = null;
134
+ else
135
+ $this.phone = phone;
136
+ return $this;
137
+ }
138
+ function UpdateResidentContactCommand_init_$Create$(seen0, email, phone, serializationConstructorMarker) {
139
+ return UpdateResidentContactCommand_init_$Init$(seen0, email, phone, serializationConstructorMarker, objectCreate(protoOf(UpdateResidentContactCommand())));
140
+ }
141
+ var UpdateResidentContactCommandClass;
142
+ function UpdateResidentContactCommand() {
143
+ if (UpdateResidentContactCommandClass === VOID) {
144
+ initMetadataForClass($, 'UpdateResidentContactCommand', UpdateResidentContactCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
145
+ function $(email, phone) {
146
+ var __soliboProps = arguments.length === 1 && typeof email === 'object' && email !== null && email.constructor === Object;
147
+ var __soliboTmp, __soliboConverted = false;
148
+ if (__soliboProps) {
149
+ const props = email;
150
+ email = ('email' in props ? props.email : VOID);
151
+ phone = ('phone' in props ? props.phone : VOID);
152
+ }
153
+ email = email === VOID ? null : email;
154
+ phone = phone === VOID ? null : phone;
155
+ this.email = email;
156
+ this.phone = phone;
157
+ if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
158
+ }
159
+ protoOf($).get_email_iqwbqr_k$ = function () {
160
+ return this.email;
161
+ };
162
+ protoOf($).get_phone_iwv5tx_k$ = function () {
163
+ return this.phone;
164
+ };
165
+ protoOf($).component1_7eebsc_k$ = function () {
166
+ return this.email;
167
+ };
168
+ protoOf($).component2_7eebsb_k$ = function () {
169
+ return this.phone;
170
+ };
171
+ protoOf($).copy_jhsqnb_k$ = function (email, phone) {
172
+ return new (UpdateResidentContactCommand())(email, phone);
173
+ };
174
+ protoOf($).copy = function (email, phone, $super) {
175
+ email = email === VOID ? this.email : email;
176
+ phone = phone === VOID ? this.phone : phone;
177
+ return $super === VOID ? this.copy_jhsqnb_k$(email, phone) : $super.copy_jhsqnb_k$.call(this, email, phone);
178
+ };
179
+ protoOf($).toString = function () {
180
+ return 'UpdateResidentContactCommand(email=' + this.email + ', phone=' + this.phone + ')';
181
+ };
182
+ protoOf($).hashCode = function () {
183
+ var result = this.email == null ? 0 : getStringHashCode(this.email);
184
+ result = imul(result, 31) + (this.phone == null ? 0 : getStringHashCode(this.phone)) | 0;
185
+ return result;
186
+ };
187
+ protoOf($).equals = function (other) {
188
+ if (this === other)
189
+ return true;
190
+ if (!(other instanceof UpdateResidentContactCommand()))
191
+ return false;
192
+ if (!(this.email == other.email))
193
+ return false;
194
+ if (!(this.phone == other.phone))
195
+ return false;
196
+ return true;
197
+ };
198
+ /* Solibo boundary patches */
199
+ Object.defineProperty($, 'name', { value: "UpdateResidentContactCommand", configurable: true });
200
+ __soliboRegisterLookup("UpdateResidentContactCommand", () => $);
201
+ UpdateResidentContactCommandClass = $;
202
+ }
203
+ return UpdateResidentContactCommandClass;
204
+ }
205
+ //region block: init
206
+ Companion_instance = new (Companion())();
207
+ //endregion
208
+ //region block: exports
209
+ export {
210
+ UpdateResidentContactCommand as UpdateResidentContactCommand1sm5pmmdrxjh3,
211
+ };
212
+ //endregion
213
+
@@ -24,6 +24,7 @@ export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/op
24
24
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/ShowResidentOperation.export.mjs';
25
25
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/ShowResidentSensitiveOperation.export.mjs';
26
26
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentAttendanceOperation.export.mjs';
27
+ export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentContactOperation.export.mjs';
27
28
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentNotatOperation.export.mjs';
28
29
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/client/operations/UpdateResidentOperation.export.mjs';
29
30
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/CreateAttendanceCommand.export.mjs';
@@ -45,5 +46,6 @@ export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/Up
45
46
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateOrganizationResidentCommand.export.mjs';
46
47
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdatePersonResidentCommand.export.mjs';
47
48
  export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentCommand.export.mjs';
49
+ export * from './solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentContactCommand.export.mjs';
48
50
  //endregion
49
51
 
@@ -28,7 +28,7 @@ function SoliboOpenTelemetry() {
28
28
  }
29
29
  protoOf($).tracer_4zr7of_k$ = function () {
30
30
  var tmp0_elvis_lhs = this.installed_1;
31
- return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.58.0');
31
+ return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.58.1');
32
32
  };
33
33
  SoliboOpenTelemetryClass = $;
34
34
  }
@@ -21544,6 +21544,7 @@ export declare class ResidentApi extends ApiClient.$metadata$.constructor {
21544
21544
  showResidentSensitive(companyId: bigint, residentType: ResidentType, residentId: bigint, fields?: string | null | undefined): Promise<HttpResponse<SensitiveData>>;
21545
21545
  updateResident(companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentCommand: UpdateResidentCommand): Promise<HttpResponse<Resident>>;
21546
21546
  updateResidentAttendance(companyId: bigint, residentType: ResidentType, residentId: bigint, sectionId: bigint, attendanceId: bigint, updateAttendanceCommand: UpdateAttendanceCommand): Promise<HttpResponse<void>>;
21547
+ updateResidentContact(companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentContactCommand: UpdateResidentContactCommand): Promise<HttpResponse<void>>;
21547
21548
  updateResidentNotat(companyId: bigint, residentType: ResidentType, residentId: bigint, updateNotatCommand: UpdateNotatCommand): Promise<HttpResponse<Resident>>;
21548
21549
  }
21549
21550
  export declare namespace ResidentApi {
@@ -21571,6 +21572,7 @@ export declare function showResidentByPersonnummerOperation(client: ApiClient, c
21571
21572
  export declare function showResidentOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, fields?: string | null | undefined): Promise<HttpResponse<Resident>>;
21572
21573
  export declare function showResidentSensitiveOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, fields?: string | null | undefined): Promise<HttpResponse<SensitiveData>>;
21573
21574
  export declare function updateResidentAttendanceOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, sectionId: bigint, attendanceId: bigint, updateAttendanceCommand: UpdateAttendanceCommand): Promise<HttpResponse<void>>;
21575
+ export declare function updateResidentContactOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentContactCommand: UpdateResidentContactCommand): Promise<HttpResponse<void>>;
21574
21576
  export declare function updateResidentNotatOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, updateNotatCommand: UpdateNotatCommand): Promise<HttpResponse<Resident>>;
21575
21577
  export declare function updateResidentOperation(client: ApiClient, companyId: bigint, residentType: ResidentType, residentId: bigint, updateResidentCommand: UpdateResidentCommand): Promise<HttpResponse<Resident>>;
21576
21578
  export interface CreateAttendanceCommandProps {
@@ -22002,6 +22004,22 @@ export declare namespace UpdateResidentCommand {
22002
22004
  const constructor: abstract new () => UpdateResidentCommand;
22003
22005
  }
22004
22006
  }
22007
+ export interface UpdateResidentContactCommandProps {
22008
+ email?: string | null | undefined;
22009
+ phone?: string | null | undefined;
22010
+ }
22011
+ export declare class UpdateResidentContactCommand {
22012
+ constructor(props: UpdateResidentContactCommandProps);
22013
+ constructor(email?: string | null | undefined, phone?: string | null | undefined);
22014
+ get email(): string | null | undefined;
22015
+ get phone(): string | null | undefined;
22016
+ }
22017
+ export declare namespace UpdateResidentContactCommand {
22018
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
22019
+ namespace $metadata$ {
22020
+ const constructor: abstract new () => UpdateResidentContactCommand;
22021
+ }
22022
+ }
22005
22023
  export declare function hmsApi(api: HomeApiBase): HMSApi;
22006
22024
  export declare function routinesApi(api: HomeApiBase): RoutinesApi;
22007
22025
  export declare class HMSApi extends ApiClient.$metadata$.constructor {