@solibo/solibo-sdk 1.29.3 → 1.31.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/client.d.mts CHANGED
@@ -360,6 +360,7 @@ import type {
360
360
  HmsSettings,
361
361
  HmsSettingsRefusalReason,
362
362
  Homepage,
363
+ HomepageSettings,
363
364
  IncomingEventBusMessageDiscriminator,
364
365
  InlineDistributionType,
365
366
  InquiryParticipant,
@@ -470,6 +471,7 @@ import type {
470
471
  Office365ManagedDocumentCandidateReviewCandidate,
471
472
  Office365ManagedDocumentCopyRequest,
472
473
  Office365ManagedDocumentCopyRequestProps,
474
+ OpenHomepage,
473
475
  OrderEconomicReportCommand,
474
476
  OrderEconomicReportCommandProps,
475
477
  OrderType,
@@ -758,6 +760,8 @@ import type {
758
760
  UpdateFolderCommandProps,
759
761
  UpdateHmsSettingsCommand,
760
762
  UpdateHmsSettingsCommandProps,
763
+ UpdateHomepageSettingsCommand,
764
+ UpdateHomepageSettingsCommandProps,
761
765
  UpdateINAgreementCommand,
762
766
  UpdateINAgreementCommandProps,
763
767
  UpdateInvoiceDistributionCommand,
@@ -1995,7 +1999,7 @@ export interface CompanyApiFacade {
1995
1999
  updateAdministratorsForCompany(params: {
1996
2000
  companyId: Id;
1997
2001
  input: UpdateManagementCommand | SdkInput<UpdateManagementCommandProps>;
1998
- }): Promise<SdkResult<Person[]>>;
2002
+ }): Promise<SdkResult<SoliboContacts>>;
1999
2003
  updateCompanyAddress(params: {
2000
2004
  companyId: Id;
2001
2005
  addressId: Id;
@@ -2355,14 +2359,18 @@ export interface HomepageApiFacade {
2355
2359
  companyId: Id;
2356
2360
  fields?: F;
2357
2361
  }): Promise<ProjectionResult<F, Homepage>>;
2362
+ showHomepageSettings<F extends string | null | undefined = undefined>(params: {
2363
+ companyId: Id;
2364
+ fields?: F;
2365
+ }): Promise<ProjectionResult<F, HomepageSettings>>;
2358
2366
  showOpenHomepage<F extends string | null | undefined = undefined>(params: {
2359
2367
  companySlug: string;
2360
2368
  fields?: F;
2361
- }): Promise<ProjectionResult<F, Homepage>>;
2369
+ }): Promise<ProjectionResult<F, OpenHomepage>>;
2362
2370
  showOpenHomepageByDomain<F extends string | null | undefined = undefined>(params: {
2363
2371
  domainName: string;
2364
2372
  fields?: F;
2365
- }): Promise<ProjectionResult<F, Homepage>>;
2373
+ }): Promise<ProjectionResult<F, OpenHomepage>>;
2366
2374
  showOpenHomepageDocument<F extends string | null | undefined = undefined>(params: {
2367
2375
  companyId: Id;
2368
2376
  postId: Id;
@@ -2389,6 +2397,10 @@ export interface HomepageApiFacade {
2389
2397
  companyId: Id;
2390
2398
  input: UpdateFeedWeightingCommand | SdkInput<UpdateFeedWeightingCommandProps>;
2391
2399
  }): Promise<SdkResult<void>>;
2400
+ updateHomepageSettings(params: {
2401
+ companyId: Id;
2402
+ input: UpdateHomepageSettingsCommand | SdkInput<UpdateHomepageSettingsCommandProps>;
2403
+ }): Promise<SdkResult<HomepageSettings>>;
2392
2404
  updatePost(params: {
2393
2405
  companyId: Id;
2394
2406
  postId: Id;
@@ -3411,7 +3423,7 @@ export interface ResidentApiFacade {
3411
3423
  companyId: Id;
3412
3424
  residentType: ResidentType | "PERSON" | "ORGANIZATION";
3413
3425
  input: CreateResidentCommand;
3414
- }): Promise<SdkResult<Person>>;
3426
+ }): Promise<SdkResult<Resident>>;
3415
3427
  createResidentAttendance(params: {
3416
3428
  companyId: Id;
3417
3429
  residentType: string;
@@ -3511,7 +3523,7 @@ export interface ResidentApiFacade {
3511
3523
  residentType: string;
3512
3524
  residentId: Id;
3513
3525
  input: UpdateResidentCommand;
3514
- }): Promise<SdkResult<Person>>;
3526
+ }): Promise<SdkResult<Resident>>;
3515
3527
  updateResidentAttendance(params: {
3516
3528
  companyId: Id;
3517
3529
  residentType: string;
package/client.mjs CHANGED
@@ -4864,7 +4864,27 @@ const DESCRIPTORS = {
4864
4864
  "body": null,
4865
4865
  "bodyType": null,
4866
4866
  "requiredProjectionFields": [
4867
- "company"
4867
+ "company",
4868
+ "settings"
4869
+ ]
4870
+ },
4871
+ "showHomepageSettings": {
4872
+ "args": [
4873
+ {
4874
+ "name": "companyId",
4875
+ "type": "bigint"
4876
+ },
4877
+ {
4878
+ "name": "fields",
4879
+ "type": "string | null | undefined"
4880
+ }
4881
+ ],
4882
+ "body": null,
4883
+ "bodyType": null,
4884
+ "requiredProjectionFields": [
4885
+ "defaultPostCommentsEnabled",
4886
+ "neighborhoodAppEnabled",
4887
+ "neighborhoodEnabled"
4868
4888
  ]
4869
4889
  },
4870
4890
  "showOpenHomepage": {
@@ -5009,6 +5029,20 @@ const DESCRIPTORS = {
5009
5029
  "body": "updateFeedWeightingCommand",
5010
5030
  "bodyType": "UpdateFeedWeightingCommand"
5011
5031
  },
5032
+ "updateHomepageSettings": {
5033
+ "args": [
5034
+ {
5035
+ "name": "companyId",
5036
+ "type": "bigint"
5037
+ },
5038
+ {
5039
+ "name": "updateHomepageSettingsCommand",
5040
+ "type": "UpdateHomepageSettingsCommand"
5041
+ }
5042
+ ],
5043
+ "body": "updateHomepageSettingsCommand",
5044
+ "bodyType": "UpdateHomepageSettingsCommand"
5045
+ },
5012
5046
  "updatePost": {
5013
5047
  "args": [
5014
5048
  {
@@ -18880,7 +18914,13 @@ const PROPS = {
18880
18914
  },
18881
18915
  "HomepageProps": {
18882
18916
  "company": "CompanyProps",
18883
- "image": "DocumentProps | null | undefined"
18917
+ "image": "DocumentProps | null | undefined",
18918
+ "settings": "HomepageSettingsProps"
18919
+ },
18920
+ "HomepageSettingsProps": {
18921
+ "defaultPostCommentsEnabled": "boolean",
18922
+ "neighborhoodAppEnabled": "boolean",
18923
+ "neighborhoodEnabled": "boolean"
18884
18924
  },
18885
18925
  "InnsenderProps": {
18886
18926
  "kontaktinformasjon": "KontaktinformasjonProps | null | undefined",
@@ -19771,6 +19811,10 @@ const PROPS = {
19771
19811
  "documentType": "DocumentType",
19772
19812
  "parentDocumentId": "bigint | null | undefined"
19773
19813
  },
19814
+ "OpenHomepageProps": {
19815
+ "company": "CompanyProps",
19816
+ "image": "DocumentProps | null | undefined"
19817
+ },
19774
19818
  "OppgaveProps": {
19775
19819
  "avvik": "AvvikProps[] | null | undefined",
19776
19820
  "oppgaveeier": "OppgaveeierProps | null | undefined",
@@ -22095,6 +22139,11 @@ const PROPS = {
22095
22139
  "UpdateHmsSettingsCommandProps": {
22096
22140
  "routineGroups": "bigint[] | null | undefined"
22097
22141
  },
22142
+ "UpdateHomepageSettingsCommandProps": {
22143
+ "defaultPostCommentsEnabled": "boolean | null | undefined",
22144
+ "neighborhoodAppEnabled": "boolean | null | undefined",
22145
+ "neighborhoodEnabled": "boolean | null | undefined"
22146
+ },
22098
22147
  "UpdateINAgreementCommandProps": {
22099
22148
  "inAgreement": "boolean"
22100
22149
  },
@@ -243,11 +243,6 @@ initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
243
243
  initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
244
244
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
245
245
  initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
246
- function close$default(cause, $super) {
247
- cause = cause === VOID ? null : cause;
248
- return $super === VOID ? this.close_ukldxa_k$(cause) : $super.close_ukldxa_k$.call(this, cause);
249
- }
250
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
251
246
  function cancel$default_0(cause, $super) {
252
247
  cause = cause === VOID ? null : cause;
253
248
  var tmp;
@@ -260,7 +255,12 @@ function cancel$default_0(cause, $super) {
260
255
  return tmp;
261
256
  }
262
257
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
263
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
258
+ function close$default(cause, $super) {
259
+ cause = cause === VOID ? null : cause;
260
+ return $super === VOID ? this.close_ukldxa_k$(cause) : $super.close_ukldxa_k$.call(this, cause);
261
+ }
262
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
263
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
264
264
  initMetadataForClass(WaiterEB, 'WaiterEB');
265
265
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
266
266
  initMetadataForObject(Factory, 'Factory');
@@ -270,7 +270,7 @@ initMetadataForCompanion(Companion);
270
270
  initMetadataForClass(ChannelResult, 'ChannelResult');
271
271
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
272
272
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
273
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [1, 0]);
273
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [ReceiveChannel, SendChannel], [1, 0]);
274
274
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
275
275
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
276
276
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ProducerScope], [1, 0]);