@solibo/solibo-sdk 1.61.2 → 1.61.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/users.d.mts +1 -1
- package/client/users.mjs +10 -0
- package/client-core.mjs +3 -1
- package/client.d.mts +6 -0
- package/operations/users.d.mts +2 -1
- package/operations/users.mjs +7 -2
- package/package.json +1 -1
- package/solibo-cycles/kotlinx-coroutines-core-19.mjs +5 -5
- package/solibo-cycles/solibo-sdk-sdk-core-55.mjs +2 -2
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/apis/UserApi.export.d.mts +1 -0
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/apis/UserApi.mjs +79 -1
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/ApplyNotificationChannelChoicesOperation.export.d.mts +3 -0
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/ApplyNotificationChannelChoicesOperation.export.mjs +16 -0
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/ApplyNotificationChannelChoicesOperation.mjs +109 -0
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/NotificationPreferences.export.d.mts +3 -2
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/NotificationPreferences.mjs +63 -31
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/PatchNotificationRule.export.d.mts +3 -2
- package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/PatchNotificationRule.mjs +62 -32
- package/solibo-sdk-sdk-api-user.mjs +1 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +8 -2
package/client/users.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
|
|
2
2
|
export type { UserApiFacade } from '../client.mjs';
|
|
3
|
-
export { BulkUserActions, EffectiveNotificationTopic, MarkNotificationsReadCommand, NotificationChannel, NotificationChannelProblem, NotificationChannelStatus, NotificationChannelSwitches, NotificationInboxCompanySummary, NotificationInboxItem, NotificationInboxSummary, NotificationPreferences, NotificationQuietHours, NotificationRule, NotificationRuleSource, NotificationTiming, PagedListNotificationInboxItem, PagedListString, PagedListUserConversations, PatchNotificationChannelSwitches, PatchNotificationPreferencesCommand, PatchNotificationQuietHours, PatchNotificationRule, PatchProfileCommand, ReplaceNotificationPreferencesCommand, UpdateProfileCommand, UserActionsByCompany, UserApi, UserConversations, createUserNotificationReadOperation, createUserNotificationsReadOperation, deleteUserImageOperation, indexUserConversationsOperation, indexUserNotificationsOperation, meOperation, patchNotificationPreferencesOperation, patchUserProfileOperation, replaceNotificationPreferencesOperation, showAuthedUserOperation, showBulkUserActionsOperation, showNotificationPreferencesOperation, showUserActionsOperation, showUserImageOperation, showUserNotificationSummaryOperation, showUserOperation, updateUserImageOperation, updateUserOperation, usersApi } from '../solibo-sdk-sdk.mjs';
|
|
3
|
+
export { BulkUserActions, EffectiveNotificationTopic, MarkNotificationsReadCommand, NotificationChannel, NotificationChannelProblem, NotificationChannelStatus, NotificationChannelSwitches, NotificationInboxCompanySummary, NotificationInboxItem, NotificationInboxSummary, NotificationPreferences, NotificationQuietHours, NotificationRule, NotificationRuleSource, NotificationTiming, PagedListNotificationInboxItem, PagedListString, PagedListUserConversations, PatchNotificationChannelSwitches, PatchNotificationPreferencesCommand, PatchNotificationQuietHours, PatchNotificationRule, PatchProfileCommand, ReplaceNotificationPreferencesCommand, UpdateProfileCommand, UserActionsByCompany, UserApi, UserConversations, applyNotificationChannelChoicesOperation, createUserNotificationReadOperation, createUserNotificationsReadOperation, deleteUserImageOperation, indexUserConversationsOperation, indexUserNotificationsOperation, meOperation, patchNotificationPreferencesOperation, patchUserProfileOperation, replaceNotificationPreferencesOperation, showAuthedUserOperation, showBulkUserActionsOperation, showNotificationPreferencesOperation, showUserActionsOperation, showUserImageOperation, showUserNotificationSummaryOperation, showUserOperation, updateUserImageOperation, updateUserOperation, usersApi } from '../solibo-sdk-sdk.mjs';
|
package/client/users.mjs
CHANGED
|
@@ -3,6 +3,16 @@ import { registerDomain } from '../client-core.mjs';
|
|
|
3
3
|
import { usersApi } from '../solibo-sdk-sdk-api-user.mjs';
|
|
4
4
|
|
|
5
5
|
const DESCRIPTORS = {
|
|
6
|
+
"applyNotificationChannelChoices": {
|
|
7
|
+
"args": [
|
|
8
|
+
{
|
|
9
|
+
"name": "patchNotificationPreferencesCommand",
|
|
10
|
+
"type": "PatchNotificationPreferencesCommand"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"body": "patchNotificationPreferencesCommand",
|
|
14
|
+
"bodyType": "PatchNotificationPreferencesCommand"
|
|
15
|
+
},
|
|
6
16
|
"createUserNotificationRead": {
|
|
7
17
|
"args": [
|
|
8
18
|
{
|
package/client-core.mjs
CHANGED
|
@@ -7937,7 +7937,8 @@ const PROPS = {
|
|
|
7937
7937
|
"effective": "EffectiveNotificationTopicProps[] | null | undefined",
|
|
7938
7938
|
"effectiveCompanyId": "bigint | null | undefined",
|
|
7939
7939
|
"quietHours": "NotificationQuietHoursProps",
|
|
7940
|
-
"rules": "NotificationRuleProps[] | null | undefined"
|
|
7940
|
+
"rules": "NotificationRuleProps[] | null | undefined",
|
|
7941
|
+
"supportsExplicitEmailRestore": "boolean | null | undefined"
|
|
7941
7942
|
},
|
|
7942
7943
|
"NotificationQuietHoursProps": {
|
|
7943
7944
|
"enabled": "boolean | null | undefined",
|
|
@@ -7985,6 +7986,7 @@ const PROPS = {
|
|
|
7985
7986
|
"PatchNotificationRuleProps": {
|
|
7986
7987
|
"channels": "NotificationChannel[] | null | undefined",
|
|
7987
7988
|
"companyId": "bigint | null | undefined",
|
|
7989
|
+
"restoreEmailSubscription": "boolean | null | undefined",
|
|
7988
7990
|
"timing": "NotificationTiming | null | undefined",
|
|
7989
7991
|
"topic": "string | null | undefined"
|
|
7990
7992
|
},
|
package/client.d.mts
CHANGED
|
@@ -2146,6 +2146,9 @@ export interface UnsubscribeApiOperations {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
2148
2148
|
export interface UserApiFacade {
|
|
2149
|
+
applyNotificationChannelChoices(params: {
|
|
2150
|
+
input: PatchNotificationPreferencesCommand | SdkInput<PatchNotificationPreferencesCommandProps>;
|
|
2151
|
+
}): Promise<SdkResult<NotificationPreferences>>;
|
|
2149
2152
|
createUserNotificationRead(params: {
|
|
2150
2153
|
notificationId: string;
|
|
2151
2154
|
}): Promise<SdkResult<void>>;
|
|
@@ -2229,6 +2232,9 @@ export interface UserApiFacade {
|
|
|
2229
2232
|
}
|
|
2230
2233
|
|
|
2231
2234
|
export interface UserApiOperations {
|
|
2235
|
+
applyNotificationChannelChoices(client: SoliboOperationClient, params: {
|
|
2236
|
+
input: PatchNotificationPreferencesCommand | SdkInput<PatchNotificationPreferencesCommandProps>;
|
|
2237
|
+
}): Promise<SdkResult<NotificationPreferences>>;
|
|
2232
2238
|
createUserNotificationRead(client: SoliboOperationClient, params: {
|
|
2233
2239
|
notificationId: string;
|
|
2234
2240
|
}): Promise<SdkResult<void>>;
|
package/operations/users.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
|
|
2
2
|
import type { UserApiOperations } from '../client.mjs';
|
|
3
|
-
export { BulkUserActions, EffectiveNotificationTopic, MarkNotificationsReadCommand, NotificationChannel, NotificationChannelProblem, NotificationChannelStatus, NotificationChannelSwitches, NotificationInboxCompanySummary, NotificationInboxItem, NotificationInboxSummary, NotificationPreferences, NotificationQuietHours, NotificationRule, NotificationRuleSource, NotificationTiming, PagedListNotificationInboxItem, PagedListString, PagedListUserConversations, PatchNotificationChannelSwitches, PatchNotificationPreferencesCommand, PatchNotificationQuietHours, PatchNotificationRule, PatchProfileCommand, ReplaceNotificationPreferencesCommand, UpdateProfileCommand, UserActionsByCompany, UserApi, UserConversations, createUserNotificationReadOperation, createUserNotificationsReadOperation, deleteUserImageOperation, indexUserConversationsOperation, indexUserNotificationsOperation, meOperation, patchNotificationPreferencesOperation, patchUserProfileOperation, replaceNotificationPreferencesOperation, showAuthedUserOperation, showBulkUserActionsOperation, showNotificationPreferencesOperation, showUserActionsOperation, showUserImageOperation, showUserNotificationSummaryOperation, showUserOperation, updateUserImageOperation, updateUserOperation, usersApi } from '../solibo-sdk-sdk.mjs';
|
|
3
|
+
export { BulkUserActions, EffectiveNotificationTopic, MarkNotificationsReadCommand, NotificationChannel, NotificationChannelProblem, NotificationChannelStatus, NotificationChannelSwitches, NotificationInboxCompanySummary, NotificationInboxItem, NotificationInboxSummary, NotificationPreferences, NotificationQuietHours, NotificationRule, NotificationRuleSource, NotificationTiming, PagedListNotificationInboxItem, PagedListString, PagedListUserConversations, PatchNotificationChannelSwitches, PatchNotificationPreferencesCommand, PatchNotificationQuietHours, PatchNotificationRule, PatchProfileCommand, ReplaceNotificationPreferencesCommand, UpdateProfileCommand, UserActionsByCompany, UserApi, UserConversations, applyNotificationChannelChoicesOperation, createUserNotificationReadOperation, createUserNotificationsReadOperation, deleteUserImageOperation, indexUserConversationsOperation, indexUserNotificationsOperation, meOperation, patchNotificationPreferencesOperation, patchUserProfileOperation, replaceNotificationPreferencesOperation, showAuthedUserOperation, showBulkUserActionsOperation, showNotificationPreferencesOperation, showUserActionsOperation, showUserImageOperation, showUserNotificationSummaryOperation, showUserOperation, updateUserImageOperation, updateUserOperation, usersApi } from '../solibo-sdk-sdk.mjs';
|
|
4
4
|
|
|
5
|
+
export declare const applyNotificationChannelChoices: UserApiOperations['applyNotificationChannelChoices'];
|
|
5
6
|
export declare const createUserNotificationRead: UserApiOperations['createUserNotificationRead'];
|
|
6
7
|
export declare const createUserNotificationsRead: UserApiOperations['createUserNotificationsRead'];
|
|
7
8
|
export declare const deleteUserImage: UserApiOperations['deleteUserImage'];
|
package/operations/users.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
|
|
2
|
-
// One function per operation of the users domain: `
|
|
3
|
-
// `client.api.users.
|
|
2
|
+
// One function per operation of the users domain: `applyNotificationChannelChoices(client, params)` does what
|
|
3
|
+
// `client.api.users.applyNotificationChannelChoices(params)` does and loads only that operation and the models it
|
|
4
4
|
// names. '@solibo/solibo-sdk/users' registers client.api.users, which loads every operation.
|
|
5
5
|
import { invokeOperation } from '../client-core.mjs';
|
|
6
6
|
import {
|
|
7
|
+
applyNotificationChannelChoicesOperation,
|
|
7
8
|
createUserNotificationReadOperation,
|
|
8
9
|
createUserNotificationsReadOperation,
|
|
9
10
|
deleteUserImageOperation,
|
|
@@ -27,6 +28,10 @@ import {
|
|
|
27
28
|
// The models and enums of the domain's Kotlin module.
|
|
28
29
|
export * from '../solibo-sdk-sdk-api-user.mjs';
|
|
29
30
|
|
|
31
|
+
export function applyNotificationChannelChoices(client, params) {
|
|
32
|
+
return invokeOperation(client, "users", applyNotificationChannelChoicesOperation, {"method":"applyNotificationChannelChoices","args":[{"name":"patchNotificationPreferencesCommand","type":"PatchNotificationPreferencesCommand"}],"body":"patchNotificationPreferencesCommand","bodyType":"PatchNotificationPreferencesCommand"}, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
export function createUserNotificationRead(client, params) {
|
|
31
36
|
return invokeOperation(client, "users", createUserNotificationReadOperation, {"method":"createUserNotificationRead","args":[{"name":"notificationId","type":"string"}],"body":null,"bodyType":null,"voidResult":true}, params);
|
|
32
37
|
}
|
package/package.json
CHANGED
|
@@ -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(), [
|
|
1032
|
+
initMetadataForClass2($, "StateFlowImpl", VOID2, AbstractSharedFlow(), [StateFlow(), FlowCollector2(), 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($).
|
|
1084
|
+
protoOf2($).allocateLocked_newvja_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.
|
|
1091
|
+
return this.allocateLocked_newvja_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf2($).
|
|
1093
|
+
protoOf2($).freeLocked_2crs17_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.
|
|
1098
|
+
return this.freeLocked_2crs17_k$(flow instanceof StateFlowImpl() ? flow : THROW_CCE2());
|
|
1099
1099
|
};
|
|
1100
1100
|
protoOf2($).makePending_e7hvrb_k$ = function() {
|
|
1101
1101
|
var this_0 = this._state_1;
|
|
@@ -2248,8 +2248,8 @@ function HomeApiBase$configureClient$lambda_14(this$0, $platformName) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
accept($this$defaultRequest, Application_getInstance().Json_1);
|
|
2250
2250
|
header($this$defaultRequest, "Accept-Language", buildAcceptLanguage(this$0.userLanguage));
|
|
2251
|
-
header($this$defaultRequest, "User-Agent", "SoliboSDK/1.61.
|
|
2252
|
-
header($this$defaultRequest, "X-Solibo-SDK-Version", "1.61.
|
|
2251
|
+
header($this$defaultRequest, "User-Agent", "SoliboSDK/1.61.3 (" + $platformName + ")");
|
|
2252
|
+
header($this$defaultRequest, "X-Solibo-SDK-Version", "1.61.3");
|
|
2253
2253
|
return Unit_instance2;
|
|
2254
2254
|
};
|
|
2255
2255
|
}
|
|
@@ -4,6 +4,7 @@ export declare class UserApi extends ApiClient.$metadata$.constructor {
|
|
|
4
4
|
private constructor();
|
|
5
5
|
static create(baseUrl?: string, httpClientEngine?: Nullable<any>/* Nullable<HttpClientEngine> */, httpClientConfig?: Nullable<(p0: any/* HttpClientConfig<any> */) => void>, jsonSerializer?: any/* Json */): UserApi;
|
|
6
6
|
static createWithClient(baseUrl: string, httpClient: any/* HttpClient */): UserApi;
|
|
7
|
+
applyNotificationChannelChoices(patchNotificationPreferencesCommand: PatchNotificationPreferencesCommand): Promise<HttpResponse<NotificationPreferences>>;
|
|
7
8
|
createUserNotificationRead(notificationId: string): Promise<HttpResponse<void>>;
|
|
8
9
|
createUserNotificationsRead(markNotificationsReadCommand: MarkNotificationsReadCommand): Promise<HttpResponse<void>>;
|
|
9
10
|
deleteUserImage(): Promise<HttpResponse<void>>;
|
|
@@ -19,8 +19,9 @@ import {
|
|
|
19
19
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
20
20
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
21
21
|
} from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
22
|
-
import {
|
|
22
|
+
import { applyNotificationChannelChoicesOperationza06gn8jnlk4 as applyNotificationChannelChoicesOperation } from '../operations/ApplyNotificationChannelChoicesOperation.mjs';
|
|
23
23
|
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
24
|
+
import { createUserNotificationReadOperation16ccftyctq4l5 as createUserNotificationReadOperation } from '../operations/CreateUserNotificationReadOperation.mjs';
|
|
24
25
|
import { createUserNotificationsReadOperation1h0t43eeg1mq1 as createUserNotificationsReadOperation } from '../operations/CreateUserNotificationsReadOperation.mjs';
|
|
25
26
|
import { deleteUserImageOperation3nc29e4jeahm4 as deleteUserImageOperation } from '../operations/DeleteUserImageOperation.mjs';
|
|
26
27
|
import { indexUserConversationsOperation1f80vamrluc2b as indexUserConversationsOperation } from '../operations/IndexUserConversationsOperation.mjs';
|
|
@@ -71,6 +72,67 @@ function UserApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
71
72
|
function createWithClient(baseUrl, httpClient) {
|
|
72
73
|
return UserApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(UserApi())));
|
|
73
74
|
}
|
|
75
|
+
var $applyNotificationChannelChoices$suspendBridgeCOROUTINE$Class;
|
|
76
|
+
function $applyNotificationChannelChoices$suspendBridgeCOROUTINE$() {
|
|
77
|
+
if ($applyNotificationChannelChoices$suspendBridgeCOROUTINE$Class === VOID) {
|
|
78
|
+
initMetadataForCoroutine($, CoroutineImpl());
|
|
79
|
+
function $(_this__u8e3s4, patchNotificationPreferencesCommand, resultContinuation) {
|
|
80
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
81
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
82
|
+
this.patchNotificationPreferencesCommand_1 = patchNotificationPreferencesCommand;
|
|
83
|
+
}
|
|
84
|
+
protoOf($).doResume_5yljmg_k$ = function () {
|
|
85
|
+
var suspendResult = this.result_1;
|
|
86
|
+
$sm: do
|
|
87
|
+
try {
|
|
88
|
+
var tmp = this.state_1;
|
|
89
|
+
switch (tmp) {
|
|
90
|
+
case 0:
|
|
91
|
+
this.exceptionState_1 = 4;
|
|
92
|
+
if (this._this__u8e3s4__1.applyNotificationChannelChoices === protoOf(UserApi()).applyNotificationChannelChoices) {
|
|
93
|
+
this.state_1 = 2;
|
|
94
|
+
suspendResult = this._this__u8e3s4__1.applyNotificationChannelChoices_etvsg5_k$(this.patchNotificationPreferencesCommand_1, this);
|
|
95
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
96
|
+
return suspendResult;
|
|
97
|
+
}
|
|
98
|
+
continue $sm;
|
|
99
|
+
} else {
|
|
100
|
+
this.state_1 = 1;
|
|
101
|
+
suspendResult = await_0(this._this__u8e3s4__1.applyNotificationChannelChoices(this.patchNotificationPreferencesCommand_1), this);
|
|
102
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
103
|
+
return suspendResult;
|
|
104
|
+
}
|
|
105
|
+
continue $sm;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
case 1:
|
|
109
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
110
|
+
this.state_1 = 3;
|
|
111
|
+
continue $sm;
|
|
112
|
+
case 2:
|
|
113
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
114
|
+
this.state_1 = 3;
|
|
115
|
+
continue $sm;
|
|
116
|
+
case 3:
|
|
117
|
+
return this.WHEN_RESULT0__1;
|
|
118
|
+
case 4:
|
|
119
|
+
throw this.exception_1;
|
|
120
|
+
}
|
|
121
|
+
} catch ($p) {
|
|
122
|
+
var e = $p;
|
|
123
|
+
if (this.exceptionState_1 === 4) {
|
|
124
|
+
throw e;
|
|
125
|
+
} else {
|
|
126
|
+
this.state_1 = this.exceptionState_1;
|
|
127
|
+
this.exception_1 = e;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
while (true);
|
|
131
|
+
};
|
|
132
|
+
$applyNotificationChannelChoices$suspendBridgeCOROUTINE$Class = $;
|
|
133
|
+
}
|
|
134
|
+
return $applyNotificationChannelChoices$suspendBridgeCOROUTINE$Class;
|
|
135
|
+
}
|
|
74
136
|
var $createUserNotificationRead$suspendBridgeCOROUTINE$Class;
|
|
75
137
|
function $createUserNotificationRead$suspendBridgeCOROUTINE$() {
|
|
76
138
|
if ($createUserNotificationRead$suspendBridgeCOROUTINE$Class === VOID) {
|
|
@@ -1201,6 +1263,21 @@ var UserApiClass;
|
|
|
1201
1263
|
function UserApi() {
|
|
1202
1264
|
if (UserApiClass === VOID) {
|
|
1203
1265
|
initMetadataForClass($, 'UserApi', create, ApiClient(), VOID, [1, 0, 8, 7, 2, 5, 10, 3]);
|
|
1266
|
+
protoOf($).applyNotificationChannelChoices_etvsg5_k$ = function (patchNotificationPreferencesCommand, $completion) {
|
|
1267
|
+
return applyNotificationChannelChoicesOperation(this, patchNotificationPreferencesCommand, $completion);
|
|
1268
|
+
};
|
|
1269
|
+
protoOf($).applyNotificationChannelChoices = function (patchNotificationPreferencesCommand) {
|
|
1270
|
+
var tmp = this;
|
|
1271
|
+
return promisify(function ($completion) {
|
|
1272
|
+
return tmp.applyNotificationChannelChoices_etvsg5_k$(patchNotificationPreferencesCommand, $completion);
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
protoOf($).applyNotificationChannelChoices$suspendBridge_rehf50_k$ = function (patchNotificationPreferencesCommand, $completion) {
|
|
1276
|
+
var tmp = new ($applyNotificationChannelChoices$suspendBridgeCOROUTINE$())(this, patchNotificationPreferencesCommand, $completion);
|
|
1277
|
+
tmp.result_1 = Unit_instance;
|
|
1278
|
+
tmp.exception_1 = null;
|
|
1279
|
+
return tmp.doResume_5yljmg_k$();
|
|
1280
|
+
};
|
|
1204
1281
|
protoOf($).createUserNotificationRead_toatyq_k$ = function (notificationId, $completion) {
|
|
1205
1282
|
return createUserNotificationReadOperation(this, notificationId, $completion);
|
|
1206
1283
|
};
|
|
@@ -1548,6 +1625,7 @@ function UserApi() {
|
|
|
1548
1625
|
}
|
|
1549
1626
|
/* Solibo boundary patches */
|
|
1550
1627
|
Object.defineProperty($, 'name', { value: "UserApi", configurable: true });
|
|
1628
|
+
__soliboWrapMethod($, "applyNotificationChannelChoices", {"args":{"0":["model","PatchNotificationPreferencesCommand"]},"result":true});
|
|
1551
1629
|
__soliboWrapMethod($, "createUserNotificationRead", {"result":true});
|
|
1552
1630
|
__soliboWrapMethod($, "createUserNotificationsRead", {"args":{"0":["model","MarkNotificationsReadCommand"]},"result":true});
|
|
1553
1631
|
__soliboWrapMethod($, "deleteUserImage", {"result":true});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare function applyNotificationChannelChoicesOperation(client: ApiClient, patchNotificationPreferencesCommand: PatchNotificationPreferencesCommand): Promise<HttpResponse<NotificationPreferences>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { applyNotificationChannelChoicesOperation3bj7i4iq6luri as applyNotificationChannelChoicesOperation } from './ApplyNotificationChannelChoicesOperation.mjs';
|
|
2
|
+
import { __soliboRegisterLookup, __soliboWrapFunction } from '../../../../../../../../../solibo-boundary.mjs';
|
|
3
|
+
import { PatchNotificationPreferencesCommand2sca3spfqqdu as __soliboType_PatchNotificationPreferencesCommand } from '../../models/PatchNotificationPreferencesCommand.mjs';
|
|
4
|
+
//region block: imports
|
|
5
|
+
//endregion
|
|
6
|
+
//region block: pre-declaration
|
|
7
|
+
//endregion
|
|
8
|
+
//region block: exports
|
|
9
|
+
/* Solibo boundary patches */
|
|
10
|
+
__soliboRegisterLookup("PatchNotificationPreferencesCommand", () => __soliboType_PatchNotificationPreferencesCommand());
|
|
11
|
+
var applyNotificationChannelChoicesOperation_solibo = __soliboWrapFunction(applyNotificationChannelChoicesOperation, {"result":true,"args":{"1":["model","PatchNotificationPreferencesCommand"]}});
|
|
12
|
+
export {
|
|
13
|
+
applyNotificationChannelChoicesOperation_solibo as applyNotificationChannelChoicesOperation,
|
|
14
|
+
};
|
|
15
|
+
//endregion
|
|
16
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { promisify1z0ncraq1ipzh as promisify } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
2
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
3
|
+
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
4
|
+
import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
|
|
5
|
+
import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
|
|
6
|
+
import { RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestMethod.mjs';
|
|
7
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
8
|
+
import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
|
|
9
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
10
|
+
import { NotificationPreferences35rz21b6bumlf as NotificationPreferences } from '../../models/NotificationPreferences.mjs';
|
|
11
|
+
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
12
|
+
import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
13
|
+
import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
|
|
14
|
+
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '../../../../../../../../../ktor-ktor-utils/io/ktor/util/reflect/Type.mjs';
|
|
15
|
+
import {
|
|
16
|
+
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
17
|
+
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
18
|
+
} from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs';
|
|
19
|
+
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
20
|
+
import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
21
|
+
//region block: imports
|
|
22
|
+
//endregion
|
|
23
|
+
//region block: pre-declaration
|
|
24
|
+
//endregion
|
|
25
|
+
function applyNotificationChannelChoicesOperation(client, patchNotificationPreferencesCommand) {
|
|
26
|
+
return promisify(function ($completion) {
|
|
27
|
+
return applyNotificationChannelChoicesOperation_0(client, patchNotificationPreferencesCommand, $completion);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function applyNotificationChannelChoicesOperation_0(client, patchNotificationPreferencesCommand, $completion) {
|
|
31
|
+
var tmp = new ($applyNotificationChannelChoicesOperationCOROUTINE$())(client, patchNotificationPreferencesCommand, $completion);
|
|
32
|
+
tmp.result_1 = Unit_instance;
|
|
33
|
+
tmp.exception_1 = null;
|
|
34
|
+
return tmp.doResume_5yljmg_k$();
|
|
35
|
+
}
|
|
36
|
+
var $applyNotificationChannelChoicesOperationCOROUTINE$Class;
|
|
37
|
+
function $applyNotificationChannelChoicesOperationCOROUTINE$() {
|
|
38
|
+
if ($applyNotificationChannelChoicesOperationCOROUTINE$Class === VOID) {
|
|
39
|
+
initMetadataForCoroutine($, CoroutineImpl());
|
|
40
|
+
function $(client, patchNotificationPreferencesCommand, resultContinuation) {
|
|
41
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
42
|
+
this.client_1 = client;
|
|
43
|
+
this.patchNotificationPreferencesCommand_1 = patchNotificationPreferencesCommand;
|
|
44
|
+
}
|
|
45
|
+
protoOf($).doResume_5yljmg_k$ = function () {
|
|
46
|
+
var suspendResult = this.result_1;
|
|
47
|
+
$sm: do
|
|
48
|
+
try {
|
|
49
|
+
var tmp = this.state_1;
|
|
50
|
+
switch (tmp) {
|
|
51
|
+
case 0:
|
|
52
|
+
this.exceptionState_1 = 2;
|
|
53
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
54
|
+
var localVariableBody = this.patchNotificationPreferencesCommand_1;
|
|
55
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
56
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
57
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
58
|
+
var localVariableConfig = new (RequestConfig())(tmp0_method, '/user/notificationPreferences/channelChoices', localVariableHeaders, VOID, localVariableQuery, true);
|
|
59
|
+
this.state_1 = 1;
|
|
60
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
61
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
62
|
+
return suspendResult;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
continue $sm;
|
|
66
|
+
case 1:
|
|
67
|
+
var this_0 = suspendResult;
|
|
68
|
+
var tmp_0 = getKClass(NotificationPreferences());
|
|
69
|
+
var tmp_1 = null instanceof NotificationPreferences();
|
|
70
|
+
var tmp_2;
|
|
71
|
+
try {
|
|
72
|
+
tmp_2 = createKType(getKClass(NotificationPreferences()), arrayOf([]), false);
|
|
73
|
+
} catch ($p) {
|
|
74
|
+
var tmp_3;
|
|
75
|
+
if ($p instanceof Error) {
|
|
76
|
+
var _unused_var__etf5q3 = $p;
|
|
77
|
+
tmp_3 = null;
|
|
78
|
+
} else {
|
|
79
|
+
throw $p;
|
|
80
|
+
}
|
|
81
|
+
tmp_2 = tmp_3;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
|
|
85
|
+
case 2:
|
|
86
|
+
throw this.exception_1;
|
|
87
|
+
}
|
|
88
|
+
} catch ($p_0) {
|
|
89
|
+
var e = $p_0;
|
|
90
|
+
if (this.exceptionState_1 === 2) {
|
|
91
|
+
throw e;
|
|
92
|
+
} else {
|
|
93
|
+
this.state_1 = this.exceptionState_1;
|
|
94
|
+
this.exception_1 = e;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
while (true);
|
|
98
|
+
};
|
|
99
|
+
$applyNotificationChannelChoicesOperationCOROUTINE$Class = $;
|
|
100
|
+
}
|
|
101
|
+
return $applyNotificationChannelChoicesOperationCOROUTINE$Class;
|
|
102
|
+
}
|
|
103
|
+
//region block: exports
|
|
104
|
+
export {
|
|
105
|
+
applyNotificationChannelChoicesOperation as applyNotificationChannelChoicesOperation3bj7i4iq6luri,
|
|
106
|
+
applyNotificationChannelChoicesOperation_0 as applyNotificationChannelChoicesOperationza06gn8jnlk4,
|
|
107
|
+
};
|
|
108
|
+
//endregion
|
|
109
|
+
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
3
|
export declare class NotificationPreferences {
|
|
4
|
-
constructor(channelStatus: Nullable<KtList<NotificationChannelStatus>> | undefined, channels: NotificationChannelSwitches, effective: Nullable<KtList<EffectiveNotificationTopic>> | undefined, effectiveCompanyId: Nullable<bigint> | undefined, quietHours: NotificationQuietHours, rules?: Nullable<KtList<NotificationRule
|
|
4
|
+
constructor(channelStatus: Nullable<KtList<NotificationChannelStatus>> | undefined, channels: NotificationChannelSwitches, effective: Nullable<KtList<EffectiveNotificationTopic>> | undefined, effectiveCompanyId: Nullable<bigint> | undefined, quietHours: NotificationQuietHours, rules?: Nullable<KtList<NotificationRule>>, supportsExplicitEmailRestore?: Nullable<boolean>);
|
|
5
5
|
get channelStatus(): Nullable<KtList<NotificationChannelStatus>>;
|
|
6
6
|
get channels(): NotificationChannelSwitches;
|
|
7
7
|
get effective(): Nullable<KtList<EffectiveNotificationTopic>>;
|
|
8
8
|
get effectiveCompanyId(): Nullable<bigint>;
|
|
9
9
|
get quietHours(): NotificationQuietHours;
|
|
10
10
|
get rules(): Nullable<KtList<NotificationRule>>;
|
|
11
|
-
|
|
11
|
+
get supportsExplicitEmailRestore(): Nullable<boolean>;
|
|
12
|
+
copy(channelStatus?: Nullable<KtList<NotificationChannelStatus>>, channels?: NotificationChannelSwitches, effective?: Nullable<KtList<EffectiveNotificationTopic>>, effectiveCompanyId?: Nullable<bigint>, quietHours?: NotificationQuietHours, rules?: Nullable<KtList<NotificationRule>>, supportsExplicitEmailRestore?: Nullable<boolean>): NotificationPreferences;
|
|
12
13
|
toString(): string;
|
|
13
14
|
hashCode(): number;
|
|
14
15
|
equals(other: Nullable<any>): boolean;
|
package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/NotificationPreferences.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
10
10
|
hashCodeq5arwsb9dgti as hashCode,
|
|
11
11
|
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
12
|
+
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
12
13
|
equals2au1ep9vhcato as equals,
|
|
13
14
|
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
14
15
|
import {
|
|
@@ -20,7 +21,10 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin
|
|
|
20
21
|
import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
|
|
21
22
|
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
22
23
|
import { $serializer_getInstance10yk80b78n4tf as $serializer_getInstance_2 } from './NotificationChannelSwitches.mjs';
|
|
23
|
-
import {
|
|
24
|
+
import {
|
|
25
|
+
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
26
|
+
BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
|
|
27
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
|
|
24
28
|
import { $serializer_getInstance1kvbrx8d4jdlo as $serializer_getInstance_3 } from './NotificationQuietHours.mjs';
|
|
25
29
|
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
26
30
|
import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
|
|
@@ -67,7 +71,7 @@ function Companion() {
|
|
|
67
71
|
// Inline function 'kotlin.arrayOf' call
|
|
68
72
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
69
73
|
// Inline function 'kotlin.js.asDynamic' call
|
|
70
|
-
tmp.$childSerializers_1 = [tmp_1, null, tmp_3, null, null, lazy(tmp_4, NotificationPreferences$Companion$$childSerializers$_anonymous__48i8gt_1)];
|
|
74
|
+
tmp.$childSerializers_1 = [tmp_1, null, tmp_3, null, null, lazy(tmp_4, NotificationPreferences$Companion$$childSerializers$_anonymous__48i8gt_1), null];
|
|
71
75
|
}
|
|
72
76
|
CompanionClass = $;
|
|
73
77
|
}
|
|
@@ -85,13 +89,14 @@ function $serializer() {
|
|
|
85
89
|
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
86
90
|
function $() {
|
|
87
91
|
$serializer_instance = this;
|
|
88
|
-
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.NotificationPreferences', this,
|
|
92
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.NotificationPreferences', this, 7);
|
|
89
93
|
tmp0_serialDesc.addElement_5pzumi_k$('channelStatus', true);
|
|
90
94
|
tmp0_serialDesc.addElement_5pzumi_k$('channels', false);
|
|
91
95
|
tmp0_serialDesc.addElement_5pzumi_k$('effective', true);
|
|
92
96
|
tmp0_serialDesc.addElement_5pzumi_k$('effectiveCompanyId', true);
|
|
93
97
|
tmp0_serialDesc.addElement_5pzumi_k$('quietHours', false);
|
|
94
98
|
tmp0_serialDesc.addElement_5pzumi_k$('rules', true);
|
|
99
|
+
tmp0_serialDesc.addElement_5pzumi_k$('supportsExplicitEmailRestore', true);
|
|
95
100
|
this.descriptor_1 = tmp0_serialDesc;
|
|
96
101
|
}
|
|
97
102
|
protoOf($).serialize_5ch4yz_k$ = function (encoder, value) {
|
|
@@ -112,6 +117,9 @@ function $serializer() {
|
|
|
112
117
|
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rules == null)) {
|
|
113
118
|
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, tmp2_cached[5].get_value_j01efc_k$(), value.rules);
|
|
114
119
|
}
|
|
120
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.supportsExplicitEmailRestore == null)) {
|
|
121
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), value.supportsExplicitEmailRestore);
|
|
122
|
+
}
|
|
115
123
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
116
124
|
};
|
|
117
125
|
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
@@ -128,58 +136,65 @@ function $serializer() {
|
|
|
128
136
|
var tmp7_local3 = null;
|
|
129
137
|
var tmp8_local4 = null;
|
|
130
138
|
var tmp9_local5 = null;
|
|
131
|
-
var
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
139
|
+
var tmp10_local6 = null;
|
|
140
|
+
var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
141
|
+
var tmp12_cached = Companion_getInstance().$childSerializers_1;
|
|
142
|
+
if (tmp11_input.decodeSequentially_xlblqy_k$()) {
|
|
143
|
+
tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, tmp12_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
135
144
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
136
|
-
tmp5_local1 =
|
|
145
|
+
tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, $serializer_getInstance_2(), tmp5_local1);
|
|
137
146
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
138
|
-
tmp6_local2 =
|
|
147
|
+
tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, tmp12_cached[2].get_value_j01efc_k$(), tmp6_local2);
|
|
139
148
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
140
|
-
tmp7_local3 =
|
|
149
|
+
tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, LongSerializer_getInstance(), tmp7_local3);
|
|
141
150
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
142
|
-
tmp8_local4 =
|
|
151
|
+
tmp8_local4 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, $serializer_getInstance_3(), tmp8_local4);
|
|
143
152
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
144
|
-
tmp9_local5 =
|
|
153
|
+
tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, tmp12_cached[5].get_value_j01efc_k$(), tmp9_local5);
|
|
145
154
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
155
|
+
tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6);
|
|
156
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
146
157
|
} else
|
|
147
158
|
while (tmp1_flag) {
|
|
148
|
-
tmp2_index =
|
|
159
|
+
tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
149
160
|
switch (tmp2_index) {
|
|
150
161
|
case -1:
|
|
151
162
|
tmp1_flag = false;
|
|
152
163
|
break;
|
|
153
164
|
case 0:
|
|
154
|
-
tmp4_local0 =
|
|
165
|
+
tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, tmp12_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
155
166
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
156
167
|
break;
|
|
157
168
|
case 1:
|
|
158
|
-
tmp5_local1 =
|
|
169
|
+
tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, $serializer_getInstance_2(), tmp5_local1);
|
|
159
170
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
160
171
|
break;
|
|
161
172
|
case 2:
|
|
162
|
-
tmp6_local2 =
|
|
173
|
+
tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, tmp12_cached[2].get_value_j01efc_k$(), tmp6_local2);
|
|
163
174
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
164
175
|
break;
|
|
165
176
|
case 3:
|
|
166
|
-
tmp7_local3 =
|
|
177
|
+
tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, LongSerializer_getInstance(), tmp7_local3);
|
|
167
178
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
168
179
|
break;
|
|
169
180
|
case 4:
|
|
170
|
-
tmp8_local4 =
|
|
181
|
+
tmp8_local4 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, $serializer_getInstance_3(), tmp8_local4);
|
|
171
182
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
172
183
|
break;
|
|
173
184
|
case 5:
|
|
174
|
-
tmp9_local5 =
|
|
185
|
+
tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, tmp12_cached[5].get_value_j01efc_k$(), tmp9_local5);
|
|
175
186
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
176
187
|
break;
|
|
188
|
+
case 6:
|
|
189
|
+
tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6);
|
|
190
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
191
|
+
break;
|
|
177
192
|
default:
|
|
178
193
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
179
194
|
}
|
|
180
195
|
}
|
|
181
|
-
|
|
182
|
-
return NotificationPreferences_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
196
|
+
tmp11_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
197
|
+
return NotificationPreferences_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
183
198
|
};
|
|
184
199
|
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
185
200
|
return this.descriptor_1;
|
|
@@ -189,7 +204,7 @@ function $serializer() {
|
|
|
189
204
|
// Inline function 'kotlin.arrayOf' call
|
|
190
205
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
191
206
|
// Inline function 'kotlin.js.asDynamic' call
|
|
192
|
-
return [get_nullable(tmp0_cached[0].get_value_j01efc_k$()), $serializer_getInstance_2(), get_nullable(tmp0_cached[2].get_value_j01efc_k$()), get_nullable(LongSerializer_getInstance()), $serializer_getInstance_3(), get_nullable(tmp0_cached[5].get_value_j01efc_k$())];
|
|
207
|
+
return [get_nullable(tmp0_cached[0].get_value_j01efc_k$()), $serializer_getInstance_2(), get_nullable(tmp0_cached[2].get_value_j01efc_k$()), get_nullable(LongSerializer_getInstance()), $serializer_getInstance_3(), get_nullable(tmp0_cached[5].get_value_j01efc_k$()), get_nullable(BooleanSerializer_getInstance())];
|
|
193
208
|
};
|
|
194
209
|
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
195
210
|
$serializerClass = $;
|
|
@@ -202,7 +217,7 @@ function $serializer_getInstance_4() {
|
|
|
202
217
|
new ($serializer())();
|
|
203
218
|
return $serializer_instance;
|
|
204
219
|
}
|
|
205
|
-
function NotificationPreferences_init_$Init$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, serializationConstructorMarker, $this) {
|
|
220
|
+
function NotificationPreferences_init_$Init$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore, serializationConstructorMarker, $this) {
|
|
206
221
|
if (!(18 === (18 & seen0))) {
|
|
207
222
|
throwMissingFieldException(seen0, 18, $serializer_getInstance_4().descriptor_1);
|
|
208
223
|
}
|
|
@@ -224,16 +239,20 @@ function NotificationPreferences_init_$Init$(seen0, channelStatus, channels, eff
|
|
|
224
239
|
$this.rules = null;
|
|
225
240
|
else
|
|
226
241
|
$this.rules = rules;
|
|
242
|
+
if (0 === (seen0 & 64))
|
|
243
|
+
$this.supportsExplicitEmailRestore = null;
|
|
244
|
+
else
|
|
245
|
+
$this.supportsExplicitEmailRestore = supportsExplicitEmailRestore;
|
|
227
246
|
return $this;
|
|
228
247
|
}
|
|
229
|
-
function NotificationPreferences_init_$Create$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, serializationConstructorMarker) {
|
|
230
|
-
return NotificationPreferences_init_$Init$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, serializationConstructorMarker, objectCreate(protoOf(NotificationPreferences())));
|
|
248
|
+
function NotificationPreferences_init_$Create$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore, serializationConstructorMarker) {
|
|
249
|
+
return NotificationPreferences_init_$Init$(seen0, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore, serializationConstructorMarker, objectCreate(protoOf(NotificationPreferences())));
|
|
231
250
|
}
|
|
232
251
|
var NotificationPreferencesClass;
|
|
233
252
|
function NotificationPreferences() {
|
|
234
253
|
if (NotificationPreferencesClass === VOID) {
|
|
235
254
|
initMetadataForClass($, 'NotificationPreferences', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
|
|
236
|
-
function $(channelStatus, channels, effective, effectiveCompanyId, quietHours, rules) {
|
|
255
|
+
function $(channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore) {
|
|
237
256
|
var __soliboProps = arguments.length === 1 && typeof channelStatus === 'object' && channelStatus !== null && channelStatus.constructor === Object;
|
|
238
257
|
var __soliboTmp, __soliboConverted = false;
|
|
239
258
|
if (__soliboProps) {
|
|
@@ -244,6 +263,7 @@ function NotificationPreferences() {
|
|
|
244
263
|
effectiveCompanyId = ('effectiveCompanyId' in props ? props.effectiveCompanyId : VOID);
|
|
245
264
|
quietHours = ('quietHours' in props ? props.quietHours : VOID);
|
|
246
265
|
rules = ('rules' in props ? props.rules : VOID);
|
|
266
|
+
supportsExplicitEmailRestore = ('supportsExplicitEmailRestore' in props ? props.supportsExplicitEmailRestore : VOID);
|
|
247
267
|
}
|
|
248
268
|
if ((__soliboTmp = __soliboToKt(channelStatus, ["list",["model","NotificationChannelStatus"]])) !== channelStatus) { channelStatus = __soliboTmp; __soliboConverted = true; }
|
|
249
269
|
if ((__soliboTmp = __soliboToKt(channels, ["model","NotificationChannelSwitches"])) !== channels) { channels = __soliboTmp; __soliboConverted = true; }
|
|
@@ -256,12 +276,14 @@ function NotificationPreferences() {
|
|
|
256
276
|
effective = effective === VOID ? null : effective;
|
|
257
277
|
effectiveCompanyId = effectiveCompanyId === VOID ? null : effectiveCompanyId;
|
|
258
278
|
rules = rules === VOID ? null : rules;
|
|
279
|
+
supportsExplicitEmailRestore = supportsExplicitEmailRestore === VOID ? null : supportsExplicitEmailRestore;
|
|
259
280
|
this.channelStatus = channelStatus;
|
|
260
281
|
this.channels = channels;
|
|
261
282
|
this.effective = effective;
|
|
262
283
|
this.effectiveCompanyId = effectiveCompanyId;
|
|
263
284
|
this.quietHours = quietHours;
|
|
264
285
|
this.rules = rules;
|
|
286
|
+
this.supportsExplicitEmailRestore = supportsExplicitEmailRestore;
|
|
265
287
|
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
266
288
|
}
|
|
267
289
|
protoOf($).get_channelStatus_mji6r0_k$ = function () {
|
|
@@ -282,6 +304,9 @@ function NotificationPreferences() {
|
|
|
282
304
|
protoOf($).get_rules_iy6zf2_k$ = function () {
|
|
283
305
|
return this.rules;
|
|
284
306
|
};
|
|
307
|
+
protoOf($).get_supportsExplicitEmailRestore_fhuxrh_k$ = function () {
|
|
308
|
+
return this.supportsExplicitEmailRestore;
|
|
309
|
+
};
|
|
285
310
|
protoOf($).component1_7eebsc_k$ = function () {
|
|
286
311
|
return this.channelStatus;
|
|
287
312
|
};
|
|
@@ -300,20 +325,24 @@ function NotificationPreferences() {
|
|
|
300
325
|
protoOf($).component6_7eebs7_k$ = function () {
|
|
301
326
|
return this.rules;
|
|
302
327
|
};
|
|
303
|
-
protoOf($).
|
|
304
|
-
return
|
|
328
|
+
protoOf($).component7_7eebs6_k$ = function () {
|
|
329
|
+
return this.supportsExplicitEmailRestore;
|
|
330
|
+
};
|
|
331
|
+
protoOf($).copy_jon7g6_k$ = function (channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore) {
|
|
332
|
+
return new (NotificationPreferences())(channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore);
|
|
305
333
|
};
|
|
306
|
-
protoOf($).copy = function (channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, $super) {
|
|
334
|
+
protoOf($).copy = function (channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore, $super) {
|
|
307
335
|
channelStatus = channelStatus === VOID ? this.channelStatus : channelStatus;
|
|
308
336
|
channels = channels === VOID ? this.channels : channels;
|
|
309
337
|
effective = effective === VOID ? this.effective : effective;
|
|
310
338
|
effectiveCompanyId = effectiveCompanyId === VOID ? this.effectiveCompanyId : effectiveCompanyId;
|
|
311
339
|
quietHours = quietHours === VOID ? this.quietHours : quietHours;
|
|
312
340
|
rules = rules === VOID ? this.rules : rules;
|
|
313
|
-
|
|
341
|
+
supportsExplicitEmailRestore = supportsExplicitEmailRestore === VOID ? this.supportsExplicitEmailRestore : supportsExplicitEmailRestore;
|
|
342
|
+
return $super === VOID ? this.copy_jon7g6_k$(channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore) : $super.copy_jon7g6_k$.call(this, channelStatus, channels, effective, effectiveCompanyId, quietHours, rules, supportsExplicitEmailRestore);
|
|
314
343
|
};
|
|
315
344
|
protoOf($).toString = function () {
|
|
316
|
-
return 'NotificationPreferences(channelStatus=' + toString(this.channelStatus) + ', channels=' + this.channels.toString() + ', effective=' + toString(this.effective) + ', effectiveCompanyId=' + toString(this.effectiveCompanyId) + ', quietHours=' + this.quietHours.toString() + ', rules=' + toString(this.rules) + ')';
|
|
345
|
+
return 'NotificationPreferences(channelStatus=' + toString(this.channelStatus) + ', channels=' + this.channels.toString() + ', effective=' + toString(this.effective) + ', effectiveCompanyId=' + toString(this.effectiveCompanyId) + ', quietHours=' + this.quietHours.toString() + ', rules=' + toString(this.rules) + ', supportsExplicitEmailRestore=' + this.supportsExplicitEmailRestore + ')';
|
|
317
346
|
};
|
|
318
347
|
protoOf($).hashCode = function () {
|
|
319
348
|
var result = this.channelStatus == null ? 0 : hashCode(this.channelStatus);
|
|
@@ -322,6 +351,7 @@ function NotificationPreferences() {
|
|
|
322
351
|
result = imul(result, 31) + (this.effectiveCompanyId == null ? 0 : getBigIntHashCode(this.effectiveCompanyId)) | 0;
|
|
323
352
|
result = imul(result, 31) + this.quietHours.hashCode() | 0;
|
|
324
353
|
result = imul(result, 31) + (this.rules == null ? 0 : hashCode(this.rules)) | 0;
|
|
354
|
+
result = imul(result, 31) + (this.supportsExplicitEmailRestore == null ? 0 : getBooleanHashCode(this.supportsExplicitEmailRestore)) | 0;
|
|
325
355
|
return result;
|
|
326
356
|
};
|
|
327
357
|
protoOf($).equals = function (other) {
|
|
@@ -341,6 +371,8 @@ function NotificationPreferences() {
|
|
|
341
371
|
return false;
|
|
342
372
|
if (!equals(this.rules, other.rules))
|
|
343
373
|
return false;
|
|
374
|
+
if (!(this.supportsExplicitEmailRestore == other.supportsExplicitEmailRestore))
|
|
375
|
+
return false;
|
|
344
376
|
return true;
|
|
345
377
|
};
|
|
346
378
|
/* Solibo boundary patches */
|
package/solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/models/PatchNotificationRule.export.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
3
|
export declare class PatchNotificationRule {
|
|
4
|
-
constructor(channels?: Nullable<KtList<NotificationChannel>>, companyId?: Nullable<bigint>, timing?: Nullable<NotificationTiming>, topic?: Nullable<string>);
|
|
4
|
+
constructor(channels?: Nullable<KtList<NotificationChannel>>, companyId?: Nullable<bigint>, restoreEmailSubscription?: Nullable<boolean>, timing?: Nullable<NotificationTiming>, topic?: Nullable<string>);
|
|
5
5
|
get channels(): Nullable<KtList<NotificationChannel>>;
|
|
6
6
|
get companyId(): Nullable<bigint>;
|
|
7
|
+
get restoreEmailSubscription(): Nullable<boolean>;
|
|
7
8
|
get timing(): Nullable<NotificationTiming>;
|
|
8
9
|
get topic(): Nullable<string>;
|
|
9
|
-
copy(channels?: Nullable<KtList<NotificationChannel>>, companyId?: Nullable<bigint>, timing?: Nullable<NotificationTiming>, topic?: Nullable<string>): PatchNotificationRule;
|
|
10
|
+
copy(channels?: Nullable<KtList<NotificationChannel>>, companyId?: Nullable<bigint>, restoreEmailSubscription?: Nullable<boolean>, timing?: Nullable<NotificationTiming>, topic?: Nullable<string>): PatchNotificationRule;
|
|
10
11
|
toString(): string;
|
|
11
12
|
hashCode(): number;
|
|
12
13
|
equals(other: Nullable<any>): boolean;
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
9
9
|
hashCodeq5arwsb9dgti as hashCode,
|
|
10
10
|
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
11
|
+
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
11
12
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
12
13
|
equals2au1ep9vhcato as equals,
|
|
13
14
|
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
@@ -21,6 +22,7 @@ import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDes
|
|
|
21
22
|
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
22
23
|
import {
|
|
23
24
|
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
25
|
+
BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
|
|
24
26
|
StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
|
|
25
27
|
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
|
|
26
28
|
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
@@ -60,7 +62,7 @@ function Companion() {
|
|
|
60
62
|
// Inline function 'kotlin.arrayOf' call
|
|
61
63
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62
64
|
// Inline function 'kotlin.js.asDynamic' call
|
|
63
|
-
tmp.$childSerializers_1 = [tmp_1, null, lazy(tmp_2, PatchNotificationRule$Companion$$childSerializers$_anonymous__87pwfv_0), null];
|
|
65
|
+
tmp.$childSerializers_1 = [tmp_1, null, null, lazy(tmp_2, PatchNotificationRule$Companion$$childSerializers$_anonymous__87pwfv_0), null];
|
|
64
66
|
}
|
|
65
67
|
CompanionClass = $;
|
|
66
68
|
}
|
|
@@ -78,9 +80,10 @@ function $serializer() {
|
|
|
78
80
|
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
79
81
|
function $() {
|
|
80
82
|
$serializer_instance = this;
|
|
81
|
-
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.PatchNotificationRule', this,
|
|
83
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.PatchNotificationRule', this, 5);
|
|
82
84
|
tmp0_serialDesc.addElement_5pzumi_k$('channels', true);
|
|
83
85
|
tmp0_serialDesc.addElement_5pzumi_k$('companyId', true);
|
|
86
|
+
tmp0_serialDesc.addElement_5pzumi_k$('restoreEmailSubscription', true);
|
|
84
87
|
tmp0_serialDesc.addElement_5pzumi_k$('timing', true);
|
|
85
88
|
tmp0_serialDesc.addElement_5pzumi_k$('topic', true);
|
|
86
89
|
this.descriptor_1 = tmp0_serialDesc;
|
|
@@ -95,11 +98,14 @@ function $serializer() {
|
|
|
95
98
|
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.companyId == null)) {
|
|
96
99
|
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, LongSerializer_getInstance(), value.companyId);
|
|
97
100
|
}
|
|
98
|
-
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.
|
|
99
|
-
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2,
|
|
101
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.restoreEmailSubscription == null)) {
|
|
102
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, BooleanSerializer_getInstance(), value.restoreEmailSubscription);
|
|
100
103
|
}
|
|
101
|
-
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.
|
|
102
|
-
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3,
|
|
104
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.timing == null)) {
|
|
105
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, tmp2_cached[3].get_value_j01efc_k$(), value.timing);
|
|
106
|
+
}
|
|
107
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.topic == null)) {
|
|
108
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.topic);
|
|
103
109
|
}
|
|
104
110
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
105
111
|
};
|
|
@@ -115,46 +121,53 @@ function $serializer() {
|
|
|
115
121
|
var tmp5_local1 = null;
|
|
116
122
|
var tmp6_local2 = null;
|
|
117
123
|
var tmp7_local3 = null;
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
var tmp8_local4 = null;
|
|
125
|
+
var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
126
|
+
var tmp10_cached = Companion_getInstance_1().$childSerializers_1;
|
|
127
|
+
if (tmp9_input.decodeSequentially_xlblqy_k$()) {
|
|
128
|
+
tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, tmp10_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
122
129
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
123
|
-
tmp5_local1 =
|
|
130
|
+
tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, LongSerializer_getInstance(), tmp5_local1);
|
|
124
131
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
125
|
-
tmp6_local2 =
|
|
132
|
+
tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
|
|
126
133
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
127
|
-
tmp7_local3 =
|
|
134
|
+
tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, tmp10_cached[3].get_value_j01efc_k$(), tmp7_local3);
|
|
128
135
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
136
|
+
tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
137
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
129
138
|
} else
|
|
130
139
|
while (tmp1_flag) {
|
|
131
|
-
tmp2_index =
|
|
140
|
+
tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
132
141
|
switch (tmp2_index) {
|
|
133
142
|
case -1:
|
|
134
143
|
tmp1_flag = false;
|
|
135
144
|
break;
|
|
136
145
|
case 0:
|
|
137
|
-
tmp4_local0 =
|
|
146
|
+
tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, tmp10_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
138
147
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
139
148
|
break;
|
|
140
149
|
case 1:
|
|
141
|
-
tmp5_local1 =
|
|
150
|
+
tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, LongSerializer_getInstance(), tmp5_local1);
|
|
142
151
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
143
152
|
break;
|
|
144
153
|
case 2:
|
|
145
|
-
tmp6_local2 =
|
|
154
|
+
tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
|
|
146
155
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
147
156
|
break;
|
|
148
157
|
case 3:
|
|
149
|
-
tmp7_local3 =
|
|
158
|
+
tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, tmp10_cached[3].get_value_j01efc_k$(), tmp7_local3);
|
|
150
159
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
151
160
|
break;
|
|
161
|
+
case 4:
|
|
162
|
+
tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
163
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
164
|
+
break;
|
|
152
165
|
default:
|
|
153
166
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
154
167
|
}
|
|
155
168
|
}
|
|
156
|
-
|
|
157
|
-
return PatchNotificationRule_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
169
|
+
tmp9_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
170
|
+
return PatchNotificationRule_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
158
171
|
};
|
|
159
172
|
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
160
173
|
return this.descriptor_1;
|
|
@@ -164,7 +177,7 @@ function $serializer() {
|
|
|
164
177
|
// Inline function 'kotlin.arrayOf' call
|
|
165
178
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
166
179
|
// Inline function 'kotlin.js.asDynamic' call
|
|
167
|
-
return [get_nullable(tmp0_cached[0].get_value_j01efc_k$()), get_nullable(LongSerializer_getInstance()), get_nullable(tmp0_cached[
|
|
180
|
+
return [get_nullable(tmp0_cached[0].get_value_j01efc_k$()), get_nullable(LongSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[3].get_value_j01efc_k$()), get_nullable(StringSerializer_getInstance())];
|
|
168
181
|
};
|
|
169
182
|
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
170
183
|
$serializerClass = $;
|
|
@@ -177,7 +190,7 @@ function $serializer_getInstance() {
|
|
|
177
190
|
new ($serializer())();
|
|
178
191
|
return $serializer_instance;
|
|
179
192
|
}
|
|
180
|
-
function PatchNotificationRule_init_$Init$(seen0, channels, companyId, timing, topic, serializationConstructorMarker, $this) {
|
|
193
|
+
function PatchNotificationRule_init_$Init$(seen0, channels, companyId, restoreEmailSubscription, timing, topic, serializationConstructorMarker, $this) {
|
|
181
194
|
if (!(0 === (0 & seen0))) {
|
|
182
195
|
throwMissingFieldException(seen0, 0, $serializer_getInstance().descriptor_1);
|
|
183
196
|
}
|
|
@@ -190,29 +203,34 @@ function PatchNotificationRule_init_$Init$(seen0, channels, companyId, timing, t
|
|
|
190
203
|
else
|
|
191
204
|
$this.companyId = companyId;
|
|
192
205
|
if (0 === (seen0 & 4))
|
|
206
|
+
$this.restoreEmailSubscription = null;
|
|
207
|
+
else
|
|
208
|
+
$this.restoreEmailSubscription = restoreEmailSubscription;
|
|
209
|
+
if (0 === (seen0 & 8))
|
|
193
210
|
$this.timing = null;
|
|
194
211
|
else
|
|
195
212
|
$this.timing = timing;
|
|
196
|
-
if (0 === (seen0 &
|
|
213
|
+
if (0 === (seen0 & 16))
|
|
197
214
|
$this.topic = null;
|
|
198
215
|
else
|
|
199
216
|
$this.topic = topic;
|
|
200
217
|
return $this;
|
|
201
218
|
}
|
|
202
|
-
function PatchNotificationRule_init_$Create$(seen0, channels, companyId, timing, topic, serializationConstructorMarker) {
|
|
203
|
-
return PatchNotificationRule_init_$Init$(seen0, channels, companyId, timing, topic, serializationConstructorMarker, objectCreate(protoOf(PatchNotificationRule())));
|
|
219
|
+
function PatchNotificationRule_init_$Create$(seen0, channels, companyId, restoreEmailSubscription, timing, topic, serializationConstructorMarker) {
|
|
220
|
+
return PatchNotificationRule_init_$Init$(seen0, channels, companyId, restoreEmailSubscription, timing, topic, serializationConstructorMarker, objectCreate(protoOf(PatchNotificationRule())));
|
|
204
221
|
}
|
|
205
222
|
var PatchNotificationRuleClass;
|
|
206
223
|
function PatchNotificationRule() {
|
|
207
224
|
if (PatchNotificationRuleClass === VOID) {
|
|
208
225
|
initMetadataForClass($, 'PatchNotificationRule', PatchNotificationRule, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
209
|
-
function $(channels, companyId, timing, topic) {
|
|
226
|
+
function $(channels, companyId, restoreEmailSubscription, timing, topic) {
|
|
210
227
|
var __soliboProps = arguments.length === 1 && typeof channels === 'object' && channels !== null && channels.constructor === Object;
|
|
211
228
|
var __soliboTmp, __soliboConverted = false;
|
|
212
229
|
if (__soliboProps) {
|
|
213
230
|
const props = channels;
|
|
214
231
|
channels = ('channels' in props ? props.channels : VOID);
|
|
215
232
|
companyId = ('companyId' in props ? props.companyId : VOID);
|
|
233
|
+
restoreEmailSubscription = ('restoreEmailSubscription' in props ? props.restoreEmailSubscription : VOID);
|
|
216
234
|
timing = ('timing' in props ? props.timing : VOID);
|
|
217
235
|
topic = ('topic' in props ? props.topic : VOID);
|
|
218
236
|
}
|
|
@@ -222,10 +240,12 @@ function PatchNotificationRule() {
|
|
|
222
240
|
Companion_getInstance_1();
|
|
223
241
|
channels = channels === VOID ? null : channels;
|
|
224
242
|
companyId = companyId === VOID ? null : companyId;
|
|
243
|
+
restoreEmailSubscription = restoreEmailSubscription === VOID ? null : restoreEmailSubscription;
|
|
225
244
|
timing = timing === VOID ? null : timing;
|
|
226
245
|
topic = topic === VOID ? null : topic;
|
|
227
246
|
this.channels = channels;
|
|
228
247
|
this.companyId = companyId;
|
|
248
|
+
this.restoreEmailSubscription = restoreEmailSubscription;
|
|
229
249
|
this.timing = timing;
|
|
230
250
|
this.topic = topic;
|
|
231
251
|
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
@@ -236,6 +256,9 @@ function PatchNotificationRule() {
|
|
|
236
256
|
protoOf($).get_companyId_eumsdt_k$ = function () {
|
|
237
257
|
return this.companyId;
|
|
238
258
|
};
|
|
259
|
+
protoOf($).get_restoreEmailSubscription_da4958_k$ = function () {
|
|
260
|
+
return this.restoreEmailSubscription;
|
|
261
|
+
};
|
|
239
262
|
protoOf($).get_timing_jymhqr_k$ = function () {
|
|
240
263
|
return this.timing;
|
|
241
264
|
};
|
|
@@ -249,27 +272,32 @@ function PatchNotificationRule() {
|
|
|
249
272
|
return this.companyId;
|
|
250
273
|
};
|
|
251
274
|
protoOf($).component3_7eebsa_k$ = function () {
|
|
252
|
-
return this.
|
|
275
|
+
return this.restoreEmailSubscription;
|
|
253
276
|
};
|
|
254
277
|
protoOf($).component4_7eebs9_k$ = function () {
|
|
278
|
+
return this.timing;
|
|
279
|
+
};
|
|
280
|
+
protoOf($).component5_7eebs8_k$ = function () {
|
|
255
281
|
return this.topic;
|
|
256
282
|
};
|
|
257
|
-
protoOf($).
|
|
258
|
-
return new (PatchNotificationRule())(channels, companyId, timing, topic);
|
|
283
|
+
protoOf($).copy_7vxp9n_k$ = function (channels, companyId, restoreEmailSubscription, timing, topic) {
|
|
284
|
+
return new (PatchNotificationRule())(channels, companyId, restoreEmailSubscription, timing, topic);
|
|
259
285
|
};
|
|
260
|
-
protoOf($).copy = function (channels, companyId, timing, topic, $super) {
|
|
286
|
+
protoOf($).copy = function (channels, companyId, restoreEmailSubscription, timing, topic, $super) {
|
|
261
287
|
channels = channels === VOID ? this.channels : channels;
|
|
262
288
|
companyId = companyId === VOID ? this.companyId : companyId;
|
|
289
|
+
restoreEmailSubscription = restoreEmailSubscription === VOID ? this.restoreEmailSubscription : restoreEmailSubscription;
|
|
263
290
|
timing = timing === VOID ? this.timing : timing;
|
|
264
291
|
topic = topic === VOID ? this.topic : topic;
|
|
265
|
-
return $super === VOID ? this.
|
|
292
|
+
return $super === VOID ? this.copy_7vxp9n_k$(channels, companyId, restoreEmailSubscription, timing, topic) : $super.copy_7vxp9n_k$.call(this, channels, companyId, restoreEmailSubscription, timing, topic);
|
|
266
293
|
};
|
|
267
294
|
protoOf($).toString = function () {
|
|
268
|
-
return 'PatchNotificationRule(channels=' + toString(this.channels) + ', companyId=' + toString(this.companyId) + ', timing=' + toString(this.timing) + ', topic=' + this.topic + ')';
|
|
295
|
+
return 'PatchNotificationRule(channels=' + toString(this.channels) + ', companyId=' + toString(this.companyId) + ', restoreEmailSubscription=' + this.restoreEmailSubscription + ', timing=' + toString(this.timing) + ', topic=' + this.topic + ')';
|
|
269
296
|
};
|
|
270
297
|
protoOf($).hashCode = function () {
|
|
271
298
|
var result = this.channels == null ? 0 : hashCode(this.channels);
|
|
272
299
|
result = imul(result, 31) + (this.companyId == null ? 0 : getBigIntHashCode(this.companyId)) | 0;
|
|
300
|
+
result = imul(result, 31) + (this.restoreEmailSubscription == null ? 0 : getBooleanHashCode(this.restoreEmailSubscription)) | 0;
|
|
273
301
|
result = imul(result, 31) + (this.timing == null ? 0 : this.timing.hashCode()) | 0;
|
|
274
302
|
result = imul(result, 31) + (this.topic == null ? 0 : getStringHashCode(this.topic)) | 0;
|
|
275
303
|
return result;
|
|
@@ -283,6 +311,8 @@ function PatchNotificationRule() {
|
|
|
283
311
|
return false;
|
|
284
312
|
if (!(this.companyId == other.companyId))
|
|
285
313
|
return false;
|
|
314
|
+
if (!(this.restoreEmailSubscription == other.restoreEmailSubscription))
|
|
315
|
+
return false;
|
|
286
316
|
if (!equals(this.timing, other.timing))
|
|
287
317
|
return false;
|
|
288
318
|
if (!(this.topic == other.topic))
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
//region block: exports
|
|
4
4
|
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/UserHomeApi.export.mjs';
|
|
5
5
|
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/apis/UserApi.export.mjs';
|
|
6
|
+
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/ApplyNotificationChannelChoicesOperation.export.mjs';
|
|
6
7
|
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/CreateUserNotificationReadOperation.export.mjs';
|
|
7
8
|
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/CreateUserNotificationsReadOperation.export.mjs';
|
|
8
9
|
export * from './solibo-sdk-sdk-api-user/no/solibo/oss/sdk/api/gen/client/operations/DeleteUserImageOperation.export.mjs';
|
|
@@ -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.61.
|
|
31
|
+
return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.61.3');
|
|
32
32
|
};
|
|
33
33
|
SoliboOpenTelemetryClass = $;
|
|
34
34
|
}
|
package/solibo-sdk-sdk.d.mts
CHANGED
|
@@ -35878,6 +35878,7 @@ export declare class UserApi extends ApiClient.$metadata$.constructor {
|
|
|
35878
35878
|
private constructor();
|
|
35879
35879
|
static create(baseUrl?: string, httpClientEngine?: any | null | undefined/* HttpClientEngine | null | undefined */, httpClientConfig?: (p0: any/* HttpClientConfig<any> */) => void | null | undefined, jsonSerializer?: any/* Json */): UserApi;
|
|
35880
35880
|
static createWithClient(baseUrl: string, httpClient: any/* HttpClient */): UserApi;
|
|
35881
|
+
applyNotificationChannelChoices(patchNotificationPreferencesCommand: PatchNotificationPreferencesCommand): Promise<HttpResponse<NotificationPreferences>>;
|
|
35881
35882
|
createUserNotificationRead(notificationId: string): Promise<HttpResponse<void>>;
|
|
35882
35883
|
createUserNotificationsRead(markNotificationsReadCommand: MarkNotificationsReadCommand): Promise<HttpResponse<void>>;
|
|
35883
35884
|
deleteUserImage(): Promise<HttpResponse<void>>;
|
|
@@ -35903,6 +35904,7 @@ export declare namespace UserApi {
|
|
|
35903
35904
|
const constructor: abstract new () => UserApi;
|
|
35904
35905
|
}
|
|
35905
35906
|
}
|
|
35907
|
+
export declare function applyNotificationChannelChoicesOperation(client: ApiClient, patchNotificationPreferencesCommand: PatchNotificationPreferencesCommand): Promise<HttpResponse<NotificationPreferences>>;
|
|
35906
35908
|
export declare function createUserNotificationReadOperation(client: ApiClient, notificationId: string): Promise<HttpResponse<void>>;
|
|
35907
35909
|
export declare function createUserNotificationsReadOperation(client: ApiClient, markNotificationsReadCommand: MarkNotificationsReadCommand): Promise<HttpResponse<void>>;
|
|
35908
35910
|
export declare function deleteUserImageOperation(client: ApiClient): Promise<HttpResponse<void>>;
|
|
@@ -36208,16 +36210,18 @@ export interface NotificationPreferencesProps {
|
|
|
36208
36210
|
effectiveCompanyId?: bigint | null | undefined;
|
|
36209
36211
|
quietHours: NotificationQuietHoursProps;
|
|
36210
36212
|
rules?: NotificationRuleProps[] | null | undefined;
|
|
36213
|
+
supportsExplicitEmailRestore?: boolean | null | undefined;
|
|
36211
36214
|
}
|
|
36212
36215
|
export declare class NotificationPreferences {
|
|
36213
36216
|
constructor(props: NotificationPreferencesProps);
|
|
36214
|
-
constructor(channelStatus: NotificationChannelStatus[] | null | undefined, channels: NotificationChannelSwitches, effective: EffectiveNotificationTopic[] | null | undefined, effectiveCompanyId: bigint | null | undefined, quietHours: NotificationQuietHours, rules?: NotificationRule[] | null | undefined);
|
|
36217
|
+
constructor(channelStatus: NotificationChannelStatus[] | null | undefined, channels: NotificationChannelSwitches, effective: EffectiveNotificationTopic[] | null | undefined, effectiveCompanyId: bigint | null | undefined, quietHours: NotificationQuietHours, rules?: NotificationRule[] | null | undefined, supportsExplicitEmailRestore?: boolean | null | undefined);
|
|
36215
36218
|
get channelStatus(): NotificationChannelStatus[] | null | undefined;
|
|
36216
36219
|
get channels(): NotificationChannelSwitches;
|
|
36217
36220
|
get effective(): EffectiveNotificationTopic[] | null | undefined;
|
|
36218
36221
|
get effectiveCompanyId(): bigint | null | undefined;
|
|
36219
36222
|
get quietHours(): NotificationQuietHours;
|
|
36220
36223
|
get rules(): NotificationRule[] | null | undefined;
|
|
36224
|
+
get supportsExplicitEmailRestore(): boolean | null | undefined;
|
|
36221
36225
|
}
|
|
36222
36226
|
export declare namespace NotificationPreferences {
|
|
36223
36227
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -36478,14 +36482,16 @@ export declare namespace PatchNotificationQuietHours {
|
|
|
36478
36482
|
export interface PatchNotificationRuleProps {
|
|
36479
36483
|
channels?: NotificationChannel[] | null | undefined;
|
|
36480
36484
|
companyId?: bigint | null | undefined;
|
|
36485
|
+
restoreEmailSubscription?: boolean | null | undefined;
|
|
36481
36486
|
timing?: NotificationTiming | null | undefined;
|
|
36482
36487
|
topic?: string | null | undefined;
|
|
36483
36488
|
}
|
|
36484
36489
|
export declare class PatchNotificationRule {
|
|
36485
36490
|
constructor(props: PatchNotificationRuleProps);
|
|
36486
|
-
constructor(channels?: NotificationChannel[] | null | undefined, companyId?: bigint | null | undefined, timing?: NotificationTiming | null | undefined, topic?: string | null | undefined);
|
|
36491
|
+
constructor(channels?: NotificationChannel[] | null | undefined, companyId?: bigint | null | undefined, restoreEmailSubscription?: boolean | null | undefined, timing?: NotificationTiming | null | undefined, topic?: string | null | undefined);
|
|
36487
36492
|
get channels(): NotificationChannel[] | null | undefined;
|
|
36488
36493
|
get companyId(): bigint | null | undefined;
|
|
36494
|
+
get restoreEmailSubscription(): boolean | null | undefined;
|
|
36489
36495
|
get timing(): NotificationTiming | null | undefined;
|
|
36490
36496
|
get topic(): string | null | undefined;
|
|
36491
36497
|
}
|