@solibo/solibo-sdk 1.22.2 → 1.22.3

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
@@ -529,6 +529,7 @@ import type {
529
529
  PagedListPost,
530
530
  PagedListPublicConversationCategory,
531
531
  PagedListPushNotificationInboxItem,
532
+ PagedListPushNotificationPayloadType,
532
533
  PagedListQueuedInvoice,
533
534
  PagedListResident,
534
535
  PagedListResidentType,
@@ -582,6 +583,9 @@ import type {
582
583
  Post,
583
584
  PreferredAdvertisement,
584
585
  PublicConversation,
586
+ PushNotificationClassifier,
587
+ PushNotificationCommentPostType,
588
+ PushNotificationPayloadDiscriminator,
585
589
  PutCommunicationReactionCommand,
586
590
  PutCommunicationReactionCommandProps,
587
591
  RefreshTokensCommand,
@@ -955,6 +959,9 @@ export type SdkInput<T> =
955
959
  T extends PeriodicTaskIntervalType ? PeriodicTaskIntervalType | "HOUR" | "DAY" | "WEEKLY" | "MONTH" | "QUARTERLY" | "BIANNUAL" | "ANNUAL" | "BIENNIAL" | "QUINQUENNIAL" :
956
960
  T extends PersonStatus ? PersonStatus | "ACTIVE" | "RESIDENCED" | "MOVED_OUT" | "DISAPPEARED" | "DEAD" | "EXPIRED" | "BIRTH_REGISTERED" | "TEMPORARY" | "INACTIVE" | "HOMELESS" :
957
961
  T extends PreferredAdvertisement ? PreferredAdvertisement | "COMBO" | "EMAIL" | "DIGIPOST" | "LETTER" | "NONE" :
962
+ T extends PushNotificationClassifier ? PushNotificationClassifier | "NEW_OPPSLAG" | "NEW_PRACTICAL_INFO" | "NEW_MESSAGE_IN_CONVERSATION" | "NEW_NEIGHBORHOOD_POST" | "NEW_COMMUNICATION_COMMENT" :
963
+ T extends PushNotificationCommentPostType ? PushNotificationCommentPostType | "HOMEPAGE" | "NEIGHBORHOOD" :
964
+ T extends PushNotificationPayloadDiscriminator ? PushNotificationPayloadDiscriminator | "NEW_COMMUNICATION_COMMENT" | "NEW_MESSAGE_IN_CONVERSATION" | "NEW_NEIGHBORHOOD_POST" | "NEW_OPPSLAG" | "NEW_PRACTICAL_INFO" :
958
965
  T extends RelationType ? RelationType | "SAMEIE" | "MEMBER" :
959
966
  T extends Raw.ResidentDiscriminator ? Raw.ResidentDiscriminator | "solibo.residents.query.domain.OrganizationResident" | "solibo.residents.query.domain.PersonResident" :
960
967
  T extends ResidentType ? ResidentType | "PERSON" | "ORGANIZATION" :
@@ -4415,6 +4422,13 @@ export interface CommunicationApiFacade {
4415
4422
  autoPaginate?: boolean | null | undefined;
4416
4423
  count?: number | null | undefined;
4417
4424
  }): Promise<ProjectionResult<F, PagedListPushNotificationInboxItem>>;
4425
+ indexPushNotificationTypes<F extends string | null | undefined = undefined>(params: {
4426
+ companyId: Id;
4427
+ fields?: F;
4428
+ pageToken?: string | null | undefined;
4429
+ autoPaginate?: boolean | null | undefined;
4430
+ count?: number | null | undefined;
4431
+ }): Promise<ProjectionResult<F, PagedListPushNotificationPayloadType>>;
4418
4432
  indexSMSBroadcasts<F extends string | null | undefined = undefined>(params: {
4419
4433
  companyId: Id;
4420
4434
  search?: string | null | undefined;
package/client.mjs CHANGED
@@ -13256,6 +13256,36 @@ const DESCRIPTORS = {
13256
13256
  "updatedAt"
13257
13257
  ]
13258
13258
  },
13259
+ "indexPushNotificationTypes": {
13260
+ "args": [
13261
+ {
13262
+ "name": "companyId",
13263
+ "type": "bigint"
13264
+ },
13265
+ {
13266
+ "name": "fields",
13267
+ "type": "string | null | undefined"
13268
+ },
13269
+ {
13270
+ "name": "pageToken",
13271
+ "type": "string | null | undefined"
13272
+ },
13273
+ {
13274
+ "name": "autoPaginate",
13275
+ "type": "boolean | null | undefined"
13276
+ },
13277
+ {
13278
+ "name": "count",
13279
+ "type": "number | null | undefined"
13280
+ }
13281
+ ],
13282
+ "body": null,
13283
+ "bodyType": null,
13284
+ "requiredProjectionFields": [
13285
+ "fields",
13286
+ "type"
13287
+ ]
13288
+ },
13259
13289
  "indexSMSBroadcasts": {
13260
13290
  "args": [
13261
13291
  {
@@ -19292,6 +19322,30 @@ const PROPS = {
19292
19322
  "title": "string",
19293
19323
  "updatedAt": "SoliboInstant /* Instant */ | null | undefined"
19294
19324
  },
19325
+ "NewCommunicationCommentPushPayloadProps": {
19326
+ "companyId": "bigint",
19327
+ "commentId": "bigint",
19328
+ "parentCommentId": "bigint | null | undefined",
19329
+ "postId": "bigint",
19330
+ "postType": "PushNotificationCommentPostType"
19331
+ },
19332
+ "NewMessageInConversationPushPayloadProps": {
19333
+ "companyId": "bigint",
19334
+ "conversationId": "bigint"
19335
+ },
19336
+ "NewNeighborhoodPostPushPayloadProps": {
19337
+ "companyId": "bigint",
19338
+ "groupId": "bigint | null | undefined",
19339
+ "postId": "bigint"
19340
+ },
19341
+ "NewOppslagPushPayloadProps": {
19342
+ "companyId": "bigint",
19343
+ "postId": "bigint"
19344
+ },
19345
+ "NewPracticalInfoPushPayloadProps": {
19346
+ "companyId": "bigint",
19347
+ "postId": "bigint"
19348
+ },
19295
19349
  "NewsletterProps": {
19296
19350
  "attachments": "DocumentProps[] | null | undefined",
19297
19351
  "directRecipients": "string[]",
@@ -19898,6 +19952,11 @@ const PROPS = {
19898
19952
  "meta": "MetaProps",
19899
19953
  "paging": "PagingProps"
19900
19954
  },
19955
+ "PagedListPushNotificationPayloadTypeProps": {
19956
+ "items": "PushNotificationPayloadTypeProps[]",
19957
+ "meta": "MetaProps",
19958
+ "paging": "PagingProps"
19959
+ },
19901
19960
  "PagedListQueuedInvoiceProps": {
19902
19961
  "items": "QueuedInvoiceProps[]",
19903
19962
  "meta": "MetaProps",
@@ -20413,6 +20472,7 @@ const PROPS = {
20413
20472
  "data": "Map<string, string | null | undefined> | null | undefined",
20414
20473
  "notificationType": "string | null | undefined",
20415
20474
  "openedAt": "SoliboInstant /* Instant */ | null | undefined",
20475
+ "payload": "PushNotificationPayloadProps | null | undefined",
20416
20476
  "read": "boolean | null | undefined",
20417
20477
  "readAt": "SoliboInstant /* Instant */ | null | undefined",
20418
20478
  "receivedAt": "SoliboInstant /* Instant */ | null | undefined",
@@ -20422,6 +20482,14 @@ const PROPS = {
20422
20482
  "trackingId": "string",
20423
20483
  "updatedAt": "SoliboInstant /* Instant */"
20424
20484
  },
20485
+ "PushNotificationPayloadFieldProps": {
20486
+ "name": "string",
20487
+ "required": "boolean"
20488
+ },
20489
+ "PushNotificationPayloadTypeProps": {
20490
+ "fields": "PushNotificationPayloadFieldProps[]",
20491
+ "type": "PushNotificationClassifier"
20492
+ },
20425
20493
  "PutCommunicationReactionCommandProps": {
20426
20494
  "reaction": "string"
20427
20495
  },
@@ -119,12 +119,12 @@ function asJsReadonlyMapView() {
119
119
  }
120
120
  initMetadataForInterface(KtMap, 'Map');
121
121
  initMetadataForInterface(MutableIterable, 'MutableIterable');
122
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
122
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
123
123
  initMetadataForCompanion(Companion_2);
124
124
  function asJsArrayView() {
125
125
  return createJsArrayViewFrom(this);
126
126
  }
127
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
127
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
128
128
  initMetadataForInterface(MutableEntry, 'MutableEntry', VOID, VOID, [Entry]);
129
129
  initMetadataForCompanion(Companion_3);
130
130
  function asJsMapView() {
@@ -155,7 +155,7 @@ initMetadataForClass(asList$1, VOID, VOID, AbstractList, [RandomAccess]);
155
155
  initMetadataForInterface(AutoCloseable, 'AutoCloseable');
156
156
  initMetadataForInterface(Comparator, 'Comparator');
157
157
  initMetadataForObject(Unit, 'Unit');
158
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
158
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [MutableIterable, Collection]);
159
159
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
160
160
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
161
161
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
@@ -167,7 +167,7 @@ initMetadataForCompanion(Companion_6);
167
167
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
168
168
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
169
169
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
170
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
170
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection]);
171
171
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
172
172
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
173
173
  initMetadataForClass(HashMapKeysDefault$iterator$1);
@@ -243,6 +243,11 @@ 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]);
246
251
  function cancel$default_0(cause, $super) {
247
252
  cause = cause === VOID ? null : cause;
248
253
  var tmp;
@@ -255,12 +260,7 @@ function cancel$default_0(cause, $super) {
255
260
  return tmp;
256
261
  }
257
262
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
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]);
263
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [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, [ReceiveChannel, SendChannel], [1, 0]);
273
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [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]);
@@ -310,7 +310,7 @@ initMetadataForCoroutine($doSelectCOROUTINE$, CoroutineImpl);
310
310
  initMetadataForCoroutine($doSelectSuspendCOROUTINE$, CoroutineImpl);
311
311
  initMetadataForCoroutine($completeCOROUTINE$, CoroutineImpl);
312
312
  initMetadataForCoroutine($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$, CoroutineImpl);
313
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
313
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
314
314
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
315
315
  function tryLock$default(owner, $super) {
316
316
  owner = owner === VOID ? null : owner;
@@ -10058,7 +10058,7 @@ function ClauseData($outer, clauseObject, regFunc, processResFunc, param, block,
10058
10058
  this.disposableHandleOrSegment_1 = null;
10059
10059
  this.indexInSegment_1 = -1;
10060
10060
  }
10061
- protoOf(ClauseData).tryRegisterAsWaiter_kpp8yw_k$ = function (select) {
10061
+ protoOf(ClauseData).tryRegisterAsWaiter_wnojok_k$ = function (select) {
10062
10062
  // Inline function 'kotlinx.coroutines.assert' call
10063
10063
  // Inline function 'kotlinx.coroutines.assert' call
10064
10064
  this.regFunc_1(this.clauseObject_1, select, this.param_1);
@@ -10322,7 +10322,7 @@ protoOf(SelectImplementation).doSelect_om1v0v_k$ = function ($completion) {
10322
10322
  return tmp.doResume_5yljmg_k$();
10323
10323
  };
10324
10324
  protoOf(SelectImplementation).invoke_43nm97_k$ = function (_this__u8e3s4, block) {
10325
- return this.register$default_acgh9r_k$(new ClauseData(this, _this__u8e3s4.get_clauseObject_ilo9nb_k$(), _this__u8e3s4.get_regFunc_j7ktjj_k$(), _this__u8e3s4.get_processResFunc_ky2xuq_k$(), get_PARAM_CLAUSE_0(), block, _this__u8e3s4.get_onCancellationConstructor_4kgej5_k$()));
10325
+ return this.register$default_bbb1nn_k$(new ClauseData(this, _this__u8e3s4.get_clauseObject_ilo9nb_k$(), _this__u8e3s4.get_regFunc_j7ktjj_k$(), _this__u8e3s4.get_processResFunc_ky2xuq_k$(), get_PARAM_CLAUSE_0(), block, _this__u8e3s4.get_onCancellationConstructor_4kgej5_k$()));
10326
10326
  };
10327
10327
  protoOf(SelectImplementation).register_4szh8u_k$ = function (_this__u8e3s4, reregister) {
10328
10328
  // Inline function 'kotlinx.coroutines.assert' call
@@ -10332,7 +10332,7 @@ protoOf(SelectImplementation).register_4szh8u_k$ = function (_this__u8e3s4, rere
10332
10332
  if (!reregister) {
10333
10333
  checkClauseObject(this, _this__u8e3s4.clauseObject_1);
10334
10334
  }
10335
- if (_this__u8e3s4.tryRegisterAsWaiter_kpp8yw_k$(this)) {
10335
+ if (_this__u8e3s4.tryRegisterAsWaiter_wnojok_k$(this)) {
10336
10336
  if (!reregister) {
10337
10337
  // Inline function 'kotlin.collections.plusAssign' call
10338
10338
  ensureNotNull(this.clauses_1).add_utx5q5_k$(_this__u8e3s4);
@@ -10345,7 +10345,7 @@ protoOf(SelectImplementation).register_4szh8u_k$ = function (_this__u8e3s4, rere
10345
10345
  this.state_1.kotlinx$atomicfu$value = _this__u8e3s4;
10346
10346
  }
10347
10347
  };
10348
- protoOf(SelectImplementation).register$default_acgh9r_k$ = function (_this__u8e3s4, reregister, $super) {
10348
+ protoOf(SelectImplementation).register$default_bbb1nn_k$ = function (_this__u8e3s4, reregister, $super) {
10349
10349
  reregister = reregister === VOID ? false : reregister;
10350
10350
  var tmp;
10351
10351
  if ($super === VOID) {