@solibo/solibo-sdk 1.40.1 → 1.40.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/expense.d.mts +1 -1
- package/client/expense.mjs +14 -0
- package/client/homepage.mjs +38 -0
- package/client-core.mjs +9 -0
- package/client.d.mts +12 -0
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +246 -134
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +466 -153
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +171 -0
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +3 -3
- package/solibo-sdk-sdk.d.mts +32 -4
- package/solibo-sdk-sdk.mjs +6 -6
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -97,6 +97,8 @@ initMetadataForCoroutine($indexExpenseUserCOROUTINE$, CoroutineImpl);
|
|
|
97
97
|
initMetadataForCoroutine($indexExpenseUser$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
98
98
|
initMetadataForCoroutine($rejectExpenseCOROUTINE$, CoroutineImpl);
|
|
99
99
|
initMetadataForCoroutine($rejectExpense$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
100
|
+
initMetadataForCoroutine($remindExpenseCOROUTINE$, CoroutineImpl);
|
|
101
|
+
initMetadataForCoroutine($remindExpense$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
100
102
|
initMetadataForCoroutine($showExpenseCOROUTINE$, CoroutineImpl);
|
|
101
103
|
initMetadataForCoroutine($showExpense$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
102
104
|
initMetadataForClass(ExpenseApi, 'ExpenseApi', create, ApiClient, VOID, [2, 9, 5, 3]);
|
|
@@ -114,20 +116,23 @@ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerial
|
|
|
114
116
|
initMetadataForClass(ExpenseProcessing, 'ExpenseProcessing', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_5});
|
|
115
117
|
initMetadataForCompanion(Companion_3, VOID, [SerializerFactory]);
|
|
116
118
|
initMetadataForClass(ExpenseProcessingResult, 'ExpenseProcessingResult', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_4});
|
|
117
|
-
initMetadataForCompanion(Companion_4
|
|
118
|
-
initMetadataForClass(ExpenseStatus, 'ExpenseStatus', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_5});
|
|
119
|
-
initMetadataForCompanion(Companion_5);
|
|
119
|
+
initMetadataForCompanion(Companion_4);
|
|
120
120
|
initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
121
|
-
initMetadataForClass(
|
|
121
|
+
initMetadataForClass(ExpenseReminder, 'ExpenseReminder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_6});
|
|
122
|
+
initMetadataForCompanion(Companion_5, VOID, [SerializerFactory]);
|
|
123
|
+
initMetadataForClass(ExpenseStatus, 'ExpenseStatus', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_6});
|
|
122
124
|
initMetadataForCompanion(Companion_6);
|
|
123
125
|
initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
124
|
-
initMetadataForClass(
|
|
126
|
+
initMetadataForClass(ExpenseType, 'ExpenseType', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_7});
|
|
125
127
|
initMetadataForCompanion(Companion_7);
|
|
126
128
|
initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
127
|
-
initMetadataForClass(
|
|
129
|
+
initMetadataForClass(PagedListExpense, 'PagedListExpense', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_8});
|
|
128
130
|
initMetadataForCompanion(Companion_8);
|
|
129
131
|
initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
130
|
-
initMetadataForClass(
|
|
132
|
+
initMetadataForClass(PagedListExpenseType, 'PagedListExpenseType', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_9});
|
|
133
|
+
initMetadataForCompanion(Companion_9);
|
|
134
|
+
initMetadataForObject($serializer_7, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
135
|
+
initMetadataForClass(RejectExpenseCommand, 'RejectExpenseCommand', RejectExpenseCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
|
|
131
136
|
//endregion
|
|
132
137
|
function expenseApi(api) {
|
|
133
138
|
return get_expense(api);
|
|
@@ -1282,6 +1287,121 @@ protoOf($rejectExpense$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1282
1287
|
}
|
|
1283
1288
|
while (true);
|
|
1284
1289
|
};
|
|
1290
|
+
function $remindExpenseCOROUTINE$(_this__u8e3s4, companyId, expenseId, resultContinuation) {
|
|
1291
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1292
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1293
|
+
this.companyId_1 = companyId;
|
|
1294
|
+
this.expenseId_1 = expenseId;
|
|
1295
|
+
}
|
|
1296
|
+
protoOf($remindExpenseCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1297
|
+
var suspendResult = this.result_1;
|
|
1298
|
+
$sm: do
|
|
1299
|
+
try {
|
|
1300
|
+
var tmp = this.state_1;
|
|
1301
|
+
switch (tmp) {
|
|
1302
|
+
case 0:
|
|
1303
|
+
this.exceptionState_1 = 2;
|
|
1304
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1305
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1306
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1307
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1308
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1309
|
+
var tmp1_path = replace(replace('/companies/{companyId}/economy/expense/{expenseId}/remind', '{companyId}', this.companyId_1.toString()), '{expenseId}', this.expenseId_1.toString());
|
|
1310
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1311
|
+
this.state_1 = 1;
|
|
1312
|
+
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1313
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1314
|
+
return suspendResult;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
continue $sm;
|
|
1318
|
+
case 1:
|
|
1319
|
+
var this_0 = suspendResult;
|
|
1320
|
+
var tmp_0 = getKClass(ExpenseReminder);
|
|
1321
|
+
var tmp_1 = null instanceof ExpenseReminder;
|
|
1322
|
+
var tmp_2;
|
|
1323
|
+
try {
|
|
1324
|
+
tmp_2 = createKType(getKClass(ExpenseReminder), arrayOf([]), false);
|
|
1325
|
+
} catch ($p) {
|
|
1326
|
+
var tmp_3;
|
|
1327
|
+
if ($p instanceof Error) {
|
|
1328
|
+
var _unused_var__etf5q3 = $p;
|
|
1329
|
+
tmp_3 = null;
|
|
1330
|
+
} else {
|
|
1331
|
+
throw $p;
|
|
1332
|
+
}
|
|
1333
|
+
tmp_2 = tmp_3;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1337
|
+
case 2:
|
|
1338
|
+
throw this.exception_1;
|
|
1339
|
+
}
|
|
1340
|
+
} catch ($p_0) {
|
|
1341
|
+
var e = $p_0;
|
|
1342
|
+
if (this.exceptionState_1 === 2) {
|
|
1343
|
+
throw e;
|
|
1344
|
+
} else {
|
|
1345
|
+
this.state_1 = this.exceptionState_1;
|
|
1346
|
+
this.exception_1 = e;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
while (true);
|
|
1350
|
+
};
|
|
1351
|
+
function $remindExpense$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, expenseId, resultContinuation) {
|
|
1352
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1353
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1354
|
+
this.companyId_1 = companyId;
|
|
1355
|
+
this.expenseId_1 = expenseId;
|
|
1356
|
+
}
|
|
1357
|
+
protoOf($remindExpense$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1358
|
+
var suspendResult = this.result_1;
|
|
1359
|
+
$sm: do
|
|
1360
|
+
try {
|
|
1361
|
+
var tmp = this.state_1;
|
|
1362
|
+
switch (tmp) {
|
|
1363
|
+
case 0:
|
|
1364
|
+
this.exceptionState_1 = 4;
|
|
1365
|
+
if (this._this__u8e3s4__1.remindExpense === protoOf(ExpenseApi).remindExpense) {
|
|
1366
|
+
this.state_1 = 2;
|
|
1367
|
+
suspendResult = this._this__u8e3s4__1.remindExpense_gd8i58_k$(this.companyId_1, this.expenseId_1, this);
|
|
1368
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1369
|
+
return suspendResult;
|
|
1370
|
+
}
|
|
1371
|
+
continue $sm;
|
|
1372
|
+
} else {
|
|
1373
|
+
this.state_1 = 1;
|
|
1374
|
+
suspendResult = await_0(this._this__u8e3s4__1.remindExpense(this.companyId_1, this.expenseId_1), this);
|
|
1375
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1376
|
+
return suspendResult;
|
|
1377
|
+
}
|
|
1378
|
+
continue $sm;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
case 1:
|
|
1382
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
1383
|
+
this.state_1 = 3;
|
|
1384
|
+
continue $sm;
|
|
1385
|
+
case 2:
|
|
1386
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
1387
|
+
this.state_1 = 3;
|
|
1388
|
+
continue $sm;
|
|
1389
|
+
case 3:
|
|
1390
|
+
return this.WHEN_RESULT0__1;
|
|
1391
|
+
case 4:
|
|
1392
|
+
throw this.exception_1;
|
|
1393
|
+
}
|
|
1394
|
+
} catch ($p) {
|
|
1395
|
+
var e = $p;
|
|
1396
|
+
if (this.exceptionState_1 === 4) {
|
|
1397
|
+
throw e;
|
|
1398
|
+
} else {
|
|
1399
|
+
this.state_1 = this.exceptionState_1;
|
|
1400
|
+
this.exception_1 = e;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
while (true);
|
|
1404
|
+
};
|
|
1285
1405
|
function $showExpenseCOROUTINE$(_this__u8e3s4, companyId, expenseId, fields, resultContinuation) {
|
|
1286
1406
|
CoroutineImpl.call(this, resultContinuation);
|
|
1287
1407
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -1584,6 +1704,24 @@ protoOf(ExpenseApi).rejectExpense$suspendBridge_952bnz_k$ = function (companyId,
|
|
|
1584
1704
|
tmp.exception_1 = null;
|
|
1585
1705
|
return tmp.doResume_5yljmg_k$();
|
|
1586
1706
|
};
|
|
1707
|
+
protoOf(ExpenseApi).remindExpense_gd8i58_k$ = function (companyId, expenseId, $completion) {
|
|
1708
|
+
var tmp = new $remindExpenseCOROUTINE$(this, companyId, expenseId, $completion);
|
|
1709
|
+
tmp.result_1 = Unit_instance;
|
|
1710
|
+
tmp.exception_1 = null;
|
|
1711
|
+
return tmp.doResume_5yljmg_k$();
|
|
1712
|
+
};
|
|
1713
|
+
protoOf(ExpenseApi).remindExpense = function (companyId, expenseId) {
|
|
1714
|
+
var tmp = this;
|
|
1715
|
+
return promisify(function ($completion) {
|
|
1716
|
+
return tmp.remindExpense_gd8i58_k$(companyId, expenseId, $completion);
|
|
1717
|
+
});
|
|
1718
|
+
};
|
|
1719
|
+
protoOf(ExpenseApi).remindExpense$suspendBridge_v2iqyt_k$ = function (companyId, expenseId, $completion) {
|
|
1720
|
+
var tmp = new $remindExpense$suspendBridgeCOROUTINE$(this, companyId, expenseId, $completion);
|
|
1721
|
+
tmp.result_1 = Unit_instance;
|
|
1722
|
+
tmp.exception_1 = null;
|
|
1723
|
+
return tmp.doResume_5yljmg_k$();
|
|
1724
|
+
};
|
|
1587
1725
|
protoOf(ExpenseApi).showExpense_y8nlhp_k$ = function (companyId, expenseId, fields, $completion) {
|
|
1588
1726
|
var tmp = new $showExpenseCOROUTINE$(this, companyId, expenseId, fields, $completion);
|
|
1589
1727
|
tmp.result_1 = Unit_instance;
|
|
@@ -1843,7 +1981,10 @@ function Expense$Companion$$childSerializers$_anonymous__8xw4q6() {
|
|
|
1843
1981
|
return new ArrayListSerializer($serializer_getInstance_5());
|
|
1844
1982
|
}
|
|
1845
1983
|
function Expense$Companion$$childSerializers$_anonymous__8xw4q6_0() {
|
|
1846
|
-
return
|
|
1984
|
+
return new ArrayListSerializer($serializer_getInstance_5());
|
|
1985
|
+
}
|
|
1986
|
+
function Expense$Companion$$childSerializers$_anonymous__8xw4q6_1() {
|
|
1987
|
+
return Companion_getInstance_6().serializer_9w0wvi_k$();
|
|
1847
1988
|
}
|
|
1848
1989
|
function Companion_0() {
|
|
1849
1990
|
Companion_instance_1 = this;
|
|
@@ -1851,10 +1992,12 @@ function Companion_0() {
|
|
|
1851
1992
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1852
1993
|
var tmp_1 = lazy(tmp_0, Expense$Companion$$childSerializers$_anonymous__8xw4q6);
|
|
1853
1994
|
var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1995
|
+
var tmp_3 = lazy(tmp_2, Expense$Companion$$childSerializers$_anonymous__8xw4q6_0);
|
|
1996
|
+
var tmp_4 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1854
1997
|
// Inline function 'kotlin.arrayOf' call
|
|
1855
1998
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1856
1999
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1857
|
-
tmp.$childSerializers_1 = [null, null, null, null, null, null, null, null, tmp_1, null, null, null, lazy(
|
|
2000
|
+
tmp.$childSerializers_1 = [null, null, null, null, null, null, null, null, tmp_1, null, null, null, tmp_3, lazy(tmp_4, Expense$Companion$$childSerializers$_anonymous__8xw4q6_1)];
|
|
1858
2001
|
}
|
|
1859
2002
|
var Companion_instance_1;
|
|
1860
2003
|
function Companion_getInstance_1() {
|
|
@@ -1864,7 +2007,7 @@ function Companion_getInstance_1() {
|
|
|
1864
2007
|
}
|
|
1865
2008
|
function $serializer_0() {
|
|
1866
2009
|
$serializer_instance_0 = this;
|
|
1867
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.Expense', this,
|
|
2010
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.Expense', this, 14);
|
|
1868
2011
|
tmp0_serialDesc.addElement_5pzumi_k$('account', false);
|
|
1869
2012
|
tmp0_serialDesc.addElement_5pzumi_k$('amount', false);
|
|
1870
2013
|
tmp0_serialDesc.addElement_5pzumi_k$('createdAt', false);
|
|
@@ -1877,6 +2020,7 @@ function $serializer_0() {
|
|
|
1877
2020
|
tmp0_serialDesc.addElement_5pzumi_k$('expenseType', false);
|
|
1878
2021
|
tmp0_serialDesc.addElement_5pzumi_k$('id', false);
|
|
1879
2022
|
tmp0_serialDesc.addElement_5pzumi_k$('payableTo', true);
|
|
2023
|
+
tmp0_serialDesc.addElement_5pzumi_k$('processingHistory', true);
|
|
1880
2024
|
tmp0_serialDesc.addElement_5pzumi_k$('status', false);
|
|
1881
2025
|
this.descriptor_1 = tmp0_serialDesc;
|
|
1882
2026
|
}
|
|
@@ -1908,7 +2052,10 @@ protoOf($serializer_0).serialize_8apmdy_k$ = function (encoder, value) {
|
|
|
1908
2052
|
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.payableTo == null)) {
|
|
1909
2053
|
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance(), value.payableTo);
|
|
1910
2054
|
}
|
|
1911
|
-
tmp1_output.
|
|
2055
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.processingHistory == null)) {
|
|
2056
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, tmp2_cached[12].get_value_j01efc_k$(), value.processingHistory);
|
|
2057
|
+
}
|
|
2058
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 13, tmp2_cached[13].get_value_j01efc_k$(), value.status);
|
|
1912
2059
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
1913
2060
|
};
|
|
1914
2061
|
protoOf($serializer_0).serialize_5ase3y_k$ = function (encoder, value) {
|
|
@@ -1932,100 +2079,107 @@ protoOf($serializer_0).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
1932
2079
|
var tmp14_local10 = 0n;
|
|
1933
2080
|
var tmp15_local11 = null;
|
|
1934
2081
|
var tmp16_local12 = null;
|
|
1935
|
-
var
|
|
1936
|
-
var
|
|
1937
|
-
|
|
1938
|
-
|
|
2082
|
+
var tmp17_local13 = null;
|
|
2083
|
+
var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
2084
|
+
var tmp19_cached = Companion_getInstance_1().$childSerializers_1;
|
|
2085
|
+
if (tmp18_input.decodeSequentially_xlblqy_k$()) {
|
|
2086
|
+
tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
|
|
1939
2087
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1940
|
-
tmp5_local1 =
|
|
2088
|
+
tmp5_local1 = tmp18_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1);
|
|
1941
2089
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1942
|
-
tmp6_local2 =
|
|
2090
|
+
tmp6_local2 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, InstantSerializer_getInstance(), tmp6_local2);
|
|
1943
2091
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1944
|
-
tmp7_local3 =
|
|
2092
|
+
tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, LongSerializer_getInstance(), tmp7_local3);
|
|
1945
2093
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1946
|
-
tmp8_local4 =
|
|
2094
|
+
tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, LongSerializer_getInstance(), tmp8_local4);
|
|
1947
2095
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1948
|
-
tmp9_local5 =
|
|
2096
|
+
tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1949
2097
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1950
|
-
tmp10_local6 =
|
|
2098
|
+
tmp10_local6 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, LocalDateSerializer_getInstance(), tmp10_local6);
|
|
1951
2099
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1952
|
-
tmp11_local7 =
|
|
2100
|
+
tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
1953
2101
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1954
|
-
tmp12_local8 =
|
|
2102
|
+
tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, tmp19_cached[8].get_value_j01efc_k$(), tmp12_local8);
|
|
1955
2103
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1956
|
-
tmp13_local9 =
|
|
2104
|
+
tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9);
|
|
1957
2105
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1958
|
-
tmp14_local10 =
|
|
2106
|
+
tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10);
|
|
1959
2107
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1960
|
-
tmp15_local11 =
|
|
2108
|
+
tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance(), tmp15_local11);
|
|
1961
2109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1962
|
-
tmp16_local12 =
|
|
2110
|
+
tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, tmp19_cached[12].get_value_j01efc_k$(), tmp16_local12);
|
|
1963
2111
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2112
|
+
tmp17_local13 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp19_cached[13].get_value_j01efc_k$(), tmp17_local13);
|
|
2113
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1964
2114
|
} else
|
|
1965
2115
|
while (tmp1_flag) {
|
|
1966
|
-
tmp2_index =
|
|
2116
|
+
tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
1967
2117
|
switch (tmp2_index) {
|
|
1968
2118
|
case -1:
|
|
1969
2119
|
tmp1_flag = false;
|
|
1970
2120
|
break;
|
|
1971
2121
|
case 0:
|
|
1972
|
-
tmp4_local0 =
|
|
2122
|
+
tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
|
|
1973
2123
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1974
2124
|
break;
|
|
1975
2125
|
case 1:
|
|
1976
|
-
tmp5_local1 =
|
|
2126
|
+
tmp5_local1 = tmp18_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1);
|
|
1977
2127
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1978
2128
|
break;
|
|
1979
2129
|
case 2:
|
|
1980
|
-
tmp6_local2 =
|
|
2130
|
+
tmp6_local2 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, InstantSerializer_getInstance(), tmp6_local2);
|
|
1981
2131
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1982
2132
|
break;
|
|
1983
2133
|
case 3:
|
|
1984
|
-
tmp7_local3 =
|
|
2134
|
+
tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, LongSerializer_getInstance(), tmp7_local3);
|
|
1985
2135
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1986
2136
|
break;
|
|
1987
2137
|
case 4:
|
|
1988
|
-
tmp8_local4 =
|
|
2138
|
+
tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, LongSerializer_getInstance(), tmp8_local4);
|
|
1989
2139
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1990
2140
|
break;
|
|
1991
2141
|
case 5:
|
|
1992
|
-
tmp9_local5 =
|
|
2142
|
+
tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1993
2143
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1994
2144
|
break;
|
|
1995
2145
|
case 6:
|
|
1996
|
-
tmp10_local6 =
|
|
2146
|
+
tmp10_local6 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, LocalDateSerializer_getInstance(), tmp10_local6);
|
|
1997
2147
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1998
2148
|
break;
|
|
1999
2149
|
case 7:
|
|
2000
|
-
tmp11_local7 =
|
|
2150
|
+
tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2001
2151
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2002
2152
|
break;
|
|
2003
2153
|
case 8:
|
|
2004
|
-
tmp12_local8 =
|
|
2154
|
+
tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, tmp19_cached[8].get_value_j01efc_k$(), tmp12_local8);
|
|
2005
2155
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2006
2156
|
break;
|
|
2007
2157
|
case 9:
|
|
2008
|
-
tmp13_local9 =
|
|
2158
|
+
tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9);
|
|
2009
2159
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
2010
2160
|
break;
|
|
2011
2161
|
case 10:
|
|
2012
|
-
tmp14_local10 =
|
|
2162
|
+
tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10);
|
|
2013
2163
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
2014
2164
|
break;
|
|
2015
2165
|
case 11:
|
|
2016
|
-
tmp15_local11 =
|
|
2166
|
+
tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance(), tmp15_local11);
|
|
2017
2167
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
2018
2168
|
break;
|
|
2019
2169
|
case 12:
|
|
2020
|
-
tmp16_local12 =
|
|
2170
|
+
tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, tmp19_cached[12].get_value_j01efc_k$(), tmp16_local12);
|
|
2021
2171
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2022
2172
|
break;
|
|
2173
|
+
case 13:
|
|
2174
|
+
tmp17_local13 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp19_cached[13].get_value_j01efc_k$(), tmp17_local13);
|
|
2175
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
2176
|
+
break;
|
|
2023
2177
|
default:
|
|
2024
2178
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2025
2179
|
}
|
|
2026
2180
|
}
|
|
2027
|
-
|
|
2028
|
-
return Expense_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null);
|
|
2181
|
+
tmp18_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
2182
|
+
return Expense_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
|
|
2029
2183
|
};
|
|
2030
2184
|
protoOf($serializer_0).get_descriptor_wjt6a0_k$ = function () {
|
|
2031
2185
|
return this.descriptor_1;
|
|
@@ -2035,7 +2189,7 @@ protoOf($serializer_0).childSerializers_5ghqw5_k$ = function () {
|
|
|
2035
2189
|
// Inline function 'kotlin.arrayOf' call
|
|
2036
2190
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2037
2191
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2038
|
-
return [StringSerializer_getInstance(), DoubleSerializer_getInstance(), InstantSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LocalDateSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[8].get_value_j01efc_k$()), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance()), tmp0_cached[12].get_value_j01efc_k$()];
|
|
2192
|
+
return [StringSerializer_getInstance(), DoubleSerializer_getInstance(), InstantSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LocalDateSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[8].get_value_j01efc_k$()), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance()), get_nullable(tmp0_cached[12].get_value_j01efc_k$()), tmp0_cached[13].get_value_j01efc_k$()];
|
|
2039
2193
|
};
|
|
2040
2194
|
var $serializer_instance_0;
|
|
2041
2195
|
function $serializer_getInstance_3() {
|
|
@@ -2043,9 +2197,9 @@ function $serializer_getInstance_3() {
|
|
|
2043
2197
|
new $serializer_0();
|
|
2044
2198
|
return $serializer_instance_0;
|
|
2045
2199
|
}
|
|
2046
|
-
function Expense_init_$Init$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status, serializationConstructorMarker, $this) {
|
|
2047
|
-
if (!(
|
|
2048
|
-
throwMissingFieldException(seen0,
|
|
2200
|
+
function Expense_init_$Init$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status, serializationConstructorMarker, $this) {
|
|
2201
|
+
if (!(9799 === (9799 & seen0))) {
|
|
2202
|
+
throwMissingFieldException(seen0, 9799, $serializer_getInstance_3().descriptor_1);
|
|
2049
2203
|
}
|
|
2050
2204
|
$this.account = account;
|
|
2051
2205
|
$this.amount = amount;
|
|
@@ -2077,13 +2231,17 @@ function Expense_init_$Init$(seen0, account, amount, createdAt, createdBy, creat
|
|
|
2077
2231
|
$this.payableTo = null;
|
|
2078
2232
|
else
|
|
2079
2233
|
$this.payableTo = payableTo;
|
|
2234
|
+
if (0 === (seen0 & 4096))
|
|
2235
|
+
$this.processingHistory = null;
|
|
2236
|
+
else
|
|
2237
|
+
$this.processingHistory = processingHistory;
|
|
2080
2238
|
$this.status = status;
|
|
2081
2239
|
return $this;
|
|
2082
2240
|
}
|
|
2083
|
-
function Expense_init_$Create$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status, serializationConstructorMarker) {
|
|
2084
|
-
return Expense_init_$Init$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status, serializationConstructorMarker, objectCreate(protoOf(Expense)));
|
|
2241
|
+
function Expense_init_$Create$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status, serializationConstructorMarker) {
|
|
2242
|
+
return Expense_init_$Init$(seen0, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status, serializationConstructorMarker, objectCreate(protoOf(Expense)));
|
|
2085
2243
|
}
|
|
2086
|
-
function Expense(account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status) {
|
|
2244
|
+
function Expense(account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status) {
|
|
2087
2245
|
var __soliboProps = arguments.length === 1 && typeof account === 'object' && account !== null && account.constructor === Object;
|
|
2088
2246
|
var __soliboTmp, __soliboConverted = false;
|
|
2089
2247
|
if (__soliboProps) {
|
|
@@ -2115,6 +2273,7 @@ function Expense(account, amount, createdAt, createdBy, createdByClientUserId, c
|
|
|
2115
2273
|
expenseType = ('expenseType' in props ? props.expenseType : VOID);
|
|
2116
2274
|
id = ('id' in props ? props.id : VOID);
|
|
2117
2275
|
payableTo = ('payableTo' in props ? props.payableTo : VOID);
|
|
2276
|
+
processingHistory = ('processingHistory' in props ? props.processingHistory : VOID);
|
|
2118
2277
|
status = ('status' in props ? props.status : VOID);
|
|
2119
2278
|
}
|
|
2120
2279
|
if ((__soliboTmp = __soliboToKt(createdBy, ["bigint"])) !== createdBy) { createdBy = __soliboTmp; __soliboConverted = true; }
|
|
@@ -2122,6 +2281,7 @@ function Expense(account, amount, createdAt, createdBy, createdByClientUserId, c
|
|
|
2122
2281
|
if ((__soliboTmp = __soliboToKt(expenseProcessing, ["list",["model","ExpenseProcessing"]])) !== expenseProcessing) { expenseProcessing = __soliboTmp; __soliboConverted = true; }
|
|
2123
2282
|
if ((__soliboTmp = __soliboToKt(id, ["bigint"])) !== id) { id = __soliboTmp; __soliboConverted = true; }
|
|
2124
2283
|
if ((__soliboTmp = __soliboToKt(payableTo, ["model","Person"])) !== payableTo) { payableTo = __soliboTmp; __soliboConverted = true; }
|
|
2284
|
+
if ((__soliboTmp = __soliboToKt(processingHistory, ["list",["model","ExpenseProcessing"]])) !== processingHistory) { processingHistory = __soliboTmp; __soliboConverted = true; }
|
|
2125
2285
|
if ((__soliboTmp = __soliboToKt(status, ["enum","ExpenseStatus"])) !== status) { status = __soliboTmp; __soliboConverted = true; }
|
|
2126
2286
|
Companion_getInstance_1();
|
|
2127
2287
|
createdBy = createdBy === VOID ? null : createdBy;
|
|
@@ -2130,6 +2290,7 @@ function Expense(account, amount, createdAt, createdBy, createdByClientUserId, c
|
|
|
2130
2290
|
description = description === VOID ? null : description;
|
|
2131
2291
|
expenseProcessing = expenseProcessing === VOID ? null : expenseProcessing;
|
|
2132
2292
|
payableTo = payableTo === VOID ? null : payableTo;
|
|
2293
|
+
processingHistory = processingHistory === VOID ? null : processingHistory;
|
|
2133
2294
|
this.account = account;
|
|
2134
2295
|
this.amount = amount;
|
|
2135
2296
|
this.createdAt = createdAt;
|
|
@@ -2142,6 +2303,7 @@ function Expense(account, amount, createdAt, createdBy, createdByClientUserId, c
|
|
|
2142
2303
|
this.expenseType = expenseType;
|
|
2143
2304
|
this.id = id;
|
|
2144
2305
|
this.payableTo = payableTo;
|
|
2306
|
+
this.processingHistory = processingHistory;
|
|
2145
2307
|
this.status = status;
|
|
2146
2308
|
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
2147
2309
|
}
|
|
@@ -2181,6 +2343,9 @@ protoOf(Expense).get_id_kntnx8_k$ = function () {
|
|
|
2181
2343
|
protoOf(Expense).get_payableTo_1crz3o_k$ = function () {
|
|
2182
2344
|
return this.payableTo;
|
|
2183
2345
|
};
|
|
2346
|
+
protoOf(Expense).get_processingHistory_rea4wo_k$ = function () {
|
|
2347
|
+
return this.processingHistory;
|
|
2348
|
+
};
|
|
2184
2349
|
protoOf(Expense).get_status_jnf6d7_k$ = function () {
|
|
2185
2350
|
return this.status;
|
|
2186
2351
|
};
|
|
@@ -2221,12 +2386,15 @@ protoOf(Expense).component12_gazzfm_k$ = function () {
|
|
|
2221
2386
|
return this.payableTo;
|
|
2222
2387
|
};
|
|
2223
2388
|
protoOf(Expense).component13_gazzfl_k$ = function () {
|
|
2389
|
+
return this.processingHistory;
|
|
2390
|
+
};
|
|
2391
|
+
protoOf(Expense).component14_gazzfk_k$ = function () {
|
|
2224
2392
|
return this.status;
|
|
2225
2393
|
};
|
|
2226
|
-
protoOf(Expense).
|
|
2227
|
-
return new Expense(account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status);
|
|
2394
|
+
protoOf(Expense).copy_avvpqq_k$ = function (account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status) {
|
|
2395
|
+
return new Expense(account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status);
|
|
2228
2396
|
};
|
|
2229
|
-
protoOf(Expense).copy = function (account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, status, $super) {
|
|
2397
|
+
protoOf(Expense).copy = function (account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status, $super) {
|
|
2230
2398
|
account = account === VOID ? this.account : account;
|
|
2231
2399
|
amount = amount === VOID ? this.amount : amount;
|
|
2232
2400
|
createdAt = createdAt === VOID ? this.createdAt : createdAt;
|
|
@@ -2239,11 +2407,12 @@ protoOf(Expense).copy = function (account, amount, createdAt, createdBy, created
|
|
|
2239
2407
|
expenseType = expenseType === VOID ? this.expenseType : expenseType;
|
|
2240
2408
|
id = id === VOID ? this.id : id;
|
|
2241
2409
|
payableTo = payableTo === VOID ? this.payableTo : payableTo;
|
|
2410
|
+
processingHistory = processingHistory === VOID ? this.processingHistory : processingHistory;
|
|
2242
2411
|
status = status === VOID ? this.status : status;
|
|
2243
|
-
return $super === VOID ? this.
|
|
2412
|
+
return $super === VOID ? this.copy_avvpqq_k$(account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status) : $super.copy_avvpqq_k$.call(this, account, amount, createdAt, createdBy, createdByClientUserId, createdByClientUserName, dateOfPurchase, description, expenseProcessing, expenseType, id, payableTo, processingHistory, status);
|
|
2244
2413
|
};
|
|
2245
2414
|
protoOf(Expense).toString = function () {
|
|
2246
|
-
return 'Expense(account=' + this.account + ', amount=' + this.amount + ', createdAt=' + this.createdAt.toString() + ', createdBy=' + toString(this.createdBy) + ', createdByClientUserId=' + toString(this.createdByClientUserId) + ', createdByClientUserName=' + this.createdByClientUserName + ', dateOfPurchase=' + this.dateOfPurchase.toString() + ', description=' + this.description + ', expenseProcessing=' + toString(this.expenseProcessing) + ', expenseType=' + this.expenseType + ', id=' + this.id.toString() + ', payableTo=' + toString(this.payableTo) + ', status=' + this.status.toString() + ')';
|
|
2415
|
+
return 'Expense(account=' + this.account + ', amount=' + this.amount + ', createdAt=' + this.createdAt.toString() + ', createdBy=' + toString(this.createdBy) + ', createdByClientUserId=' + toString(this.createdByClientUserId) + ', createdByClientUserName=' + this.createdByClientUserName + ', dateOfPurchase=' + this.dateOfPurchase.toString() + ', description=' + this.description + ', expenseProcessing=' + toString(this.expenseProcessing) + ', expenseType=' + this.expenseType + ', id=' + this.id.toString() + ', payableTo=' + toString(this.payableTo) + ', processingHistory=' + toString(this.processingHistory) + ', status=' + this.status.toString() + ')';
|
|
2247
2416
|
};
|
|
2248
2417
|
protoOf(Expense).hashCode = function () {
|
|
2249
2418
|
var result = getStringHashCode(this.account);
|
|
@@ -2258,6 +2427,7 @@ protoOf(Expense).hashCode = function () {
|
|
|
2258
2427
|
result = imul(result, 31) + getStringHashCode(this.expenseType) | 0;
|
|
2259
2428
|
result = imul(result, 31) + getBigIntHashCode(this.id) | 0;
|
|
2260
2429
|
result = imul(result, 31) + (this.payableTo == null ? 0 : this.payableTo.hashCode()) | 0;
|
|
2430
|
+
result = imul(result, 31) + (this.processingHistory == null ? 0 : hashCode(this.processingHistory)) | 0;
|
|
2261
2431
|
result = imul(result, 31) + this.status.hashCode() | 0;
|
|
2262
2432
|
return result;
|
|
2263
2433
|
};
|
|
@@ -2290,6 +2460,8 @@ protoOf(Expense).equals = function (other) {
|
|
|
2290
2460
|
return false;
|
|
2291
2461
|
if (!equals(this.payableTo, other.payableTo))
|
|
2292
2462
|
return false;
|
|
2463
|
+
if (!equals(this.processingHistory, other.processingHistory))
|
|
2464
|
+
return false;
|
|
2293
2465
|
if (!this.status.equals(other.status))
|
|
2294
2466
|
return false;
|
|
2295
2467
|
return true;
|
|
@@ -2820,6 +2992,143 @@ function ExpenseProcessingResult_REJECTED_getInstance() {
|
|
|
2820
2992
|
static_init();
|
|
2821
2993
|
return ExpenseProcessingResult_REJECTED_instance;
|
|
2822
2994
|
}
|
|
2995
|
+
function Companion_4() {
|
|
2996
|
+
}
|
|
2997
|
+
var Companion_instance_5;
|
|
2998
|
+
function Companion_getInstance_5() {
|
|
2999
|
+
return Companion_instance_5;
|
|
3000
|
+
}
|
|
3001
|
+
function $serializer_3() {
|
|
3002
|
+
$serializer_instance_3 = this;
|
|
3003
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.ExpenseReminder', this, 2);
|
|
3004
|
+
tmp0_serialDesc.addElement_5pzumi_k$('remindedCount', false);
|
|
3005
|
+
tmp0_serialDesc.addElement_5pzumi_k$('unreachableCount', false);
|
|
3006
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
3007
|
+
}
|
|
3008
|
+
protoOf($serializer_3).serialize_5sspso_k$ = function (encoder, value) {
|
|
3009
|
+
var tmp0_desc = this.descriptor_1;
|
|
3010
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3011
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 0, value.remindedCount);
|
|
3012
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 1, value.unreachableCount);
|
|
3013
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3014
|
+
};
|
|
3015
|
+
protoOf($serializer_3).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3016
|
+
return this.serialize_5sspso_k$(encoder, value instanceof ExpenseReminder ? value : THROW_CCE());
|
|
3017
|
+
};
|
|
3018
|
+
protoOf($serializer_3).deserialize_sy6x50_k$ = function (decoder) {
|
|
3019
|
+
var tmp0_desc = this.descriptor_1;
|
|
3020
|
+
var tmp1_flag = true;
|
|
3021
|
+
var tmp2_index = 0;
|
|
3022
|
+
var tmp3_bitMask0 = 0;
|
|
3023
|
+
var tmp4_local0 = 0n;
|
|
3024
|
+
var tmp5_local1 = 0n;
|
|
3025
|
+
var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3026
|
+
if (tmp6_input.decodeSequentially_xlblqy_k$()) {
|
|
3027
|
+
tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0);
|
|
3028
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3029
|
+
tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1);
|
|
3030
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3031
|
+
} else
|
|
3032
|
+
while (tmp1_flag) {
|
|
3033
|
+
tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
3034
|
+
switch (tmp2_index) {
|
|
3035
|
+
case -1:
|
|
3036
|
+
tmp1_flag = false;
|
|
3037
|
+
break;
|
|
3038
|
+
case 0:
|
|
3039
|
+
tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0);
|
|
3040
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3041
|
+
break;
|
|
3042
|
+
case 1:
|
|
3043
|
+
tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1);
|
|
3044
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3045
|
+
break;
|
|
3046
|
+
default:
|
|
3047
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
tmp6_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3051
|
+
return ExpenseReminder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3052
|
+
};
|
|
3053
|
+
protoOf($serializer_3).get_descriptor_wjt6a0_k$ = function () {
|
|
3054
|
+
return this.descriptor_1;
|
|
3055
|
+
};
|
|
3056
|
+
protoOf($serializer_3).childSerializers_5ghqw5_k$ = function () {
|
|
3057
|
+
// Inline function 'kotlin.arrayOf' call
|
|
3058
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3059
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3060
|
+
return [LongSerializer_getInstance(), LongSerializer_getInstance()];
|
|
3061
|
+
};
|
|
3062
|
+
var $serializer_instance_3;
|
|
3063
|
+
function $serializer_getInstance_6() {
|
|
3064
|
+
if ($serializer_instance_3 == null)
|
|
3065
|
+
new $serializer_3();
|
|
3066
|
+
return $serializer_instance_3;
|
|
3067
|
+
}
|
|
3068
|
+
function ExpenseReminder_init_$Init$(seen0, remindedCount, unreachableCount, serializationConstructorMarker, $this) {
|
|
3069
|
+
if (!(3 === (3 & seen0))) {
|
|
3070
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().descriptor_1);
|
|
3071
|
+
}
|
|
3072
|
+
$this.remindedCount = remindedCount;
|
|
3073
|
+
$this.unreachableCount = unreachableCount;
|
|
3074
|
+
return $this;
|
|
3075
|
+
}
|
|
3076
|
+
function ExpenseReminder_init_$Create$(seen0, remindedCount, unreachableCount, serializationConstructorMarker) {
|
|
3077
|
+
return ExpenseReminder_init_$Init$(seen0, remindedCount, unreachableCount, serializationConstructorMarker, objectCreate(protoOf(ExpenseReminder)));
|
|
3078
|
+
}
|
|
3079
|
+
function ExpenseReminder(remindedCount, unreachableCount) {
|
|
3080
|
+
var __soliboProps = arguments.length === 1 && typeof remindedCount === 'object' && remindedCount !== null && remindedCount.constructor === Object;
|
|
3081
|
+
var __soliboTmp, __soliboConverted = false;
|
|
3082
|
+
if (__soliboProps) {
|
|
3083
|
+
const props = remindedCount;
|
|
3084
|
+
remindedCount = ('remindedCount' in props ? props.remindedCount : VOID);
|
|
3085
|
+
unreachableCount = ('unreachableCount' in props ? props.unreachableCount : VOID);
|
|
3086
|
+
}
|
|
3087
|
+
if ((__soliboTmp = __soliboToKt(remindedCount, ["bigint"])) !== remindedCount) { remindedCount = __soliboTmp; __soliboConverted = true; }
|
|
3088
|
+
if ((__soliboTmp = __soliboToKt(unreachableCount, ["bigint"])) !== unreachableCount) { unreachableCount = __soliboTmp; __soliboConverted = true; }
|
|
3089
|
+
this.remindedCount = remindedCount;
|
|
3090
|
+
this.unreachableCount = unreachableCount;
|
|
3091
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
3092
|
+
}
|
|
3093
|
+
protoOf(ExpenseReminder).get_remindedCount_o261b2_k$ = function () {
|
|
3094
|
+
return this.remindedCount;
|
|
3095
|
+
};
|
|
3096
|
+
protoOf(ExpenseReminder).get_unreachableCount_tehkkk_k$ = function () {
|
|
3097
|
+
return this.unreachableCount;
|
|
3098
|
+
};
|
|
3099
|
+
protoOf(ExpenseReminder).component1_7eebsc_k$ = function () {
|
|
3100
|
+
return this.remindedCount;
|
|
3101
|
+
};
|
|
3102
|
+
protoOf(ExpenseReminder).component2_7eebsb_k$ = function () {
|
|
3103
|
+
return this.unreachableCount;
|
|
3104
|
+
};
|
|
3105
|
+
protoOf(ExpenseReminder).copy_g4jkqz_k$ = function (remindedCount, unreachableCount) {
|
|
3106
|
+
return new ExpenseReminder(remindedCount, unreachableCount);
|
|
3107
|
+
};
|
|
3108
|
+
protoOf(ExpenseReminder).copy = function (remindedCount, unreachableCount, $super) {
|
|
3109
|
+
remindedCount = remindedCount === VOID ? this.remindedCount : remindedCount;
|
|
3110
|
+
unreachableCount = unreachableCount === VOID ? this.unreachableCount : unreachableCount;
|
|
3111
|
+
return $super === VOID ? this.copy_g4jkqz_k$(remindedCount, unreachableCount) : $super.copy_g4jkqz_k$.call(this, remindedCount, unreachableCount);
|
|
3112
|
+
};
|
|
3113
|
+
protoOf(ExpenseReminder).toString = function () {
|
|
3114
|
+
return 'ExpenseReminder(remindedCount=' + this.remindedCount.toString() + ', unreachableCount=' + this.unreachableCount.toString() + ')';
|
|
3115
|
+
};
|
|
3116
|
+
protoOf(ExpenseReminder).hashCode = function () {
|
|
3117
|
+
var result = getBigIntHashCode(this.remindedCount);
|
|
3118
|
+
result = imul(result, 31) + getBigIntHashCode(this.unreachableCount) | 0;
|
|
3119
|
+
return result;
|
|
3120
|
+
};
|
|
3121
|
+
protoOf(ExpenseReminder).equals = function (other) {
|
|
3122
|
+
if (this === other)
|
|
3123
|
+
return true;
|
|
3124
|
+
if (!(other instanceof ExpenseReminder))
|
|
3125
|
+
return false;
|
|
3126
|
+
if (!(this.remindedCount === other.remindedCount))
|
|
3127
|
+
return false;
|
|
3128
|
+
if (!(this.unreachableCount === other.unreachableCount))
|
|
3129
|
+
return false;
|
|
3130
|
+
return true;
|
|
3131
|
+
};
|
|
2823
3132
|
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
2824
3133
|
return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$();
|
|
2825
3134
|
}
|
|
@@ -2843,16 +3152,16 @@ function static_init_0() {
|
|
|
2843
3152
|
ExpenseStatus_FOR_APPROVAL_instance = new ExpenseStatus('FOR_APPROVAL', 0, 'FOR_APPROVAL');
|
|
2844
3153
|
ExpenseStatus_APPROVED_instance = new ExpenseStatus('APPROVED', 1, 'APPROVED');
|
|
2845
3154
|
ExpenseStatus_REJECTED_instance = new ExpenseStatus('REJECTED', 2, 'REJECTED');
|
|
2846
|
-
if (
|
|
3155
|
+
if (Companion_instance_6 == null) {
|
|
2847
3156
|
Companion_instance;
|
|
2848
|
-
new
|
|
3157
|
+
new Companion_5();
|
|
2849
3158
|
}
|
|
2850
3159
|
}
|
|
2851
3160
|
var ExpenseStatus_FOR_APPROVAL_instance;
|
|
2852
3161
|
var ExpenseStatus_APPROVED_instance;
|
|
2853
3162
|
var ExpenseStatus_REJECTED_instance;
|
|
2854
|
-
function
|
|
2855
|
-
|
|
3163
|
+
function Companion_5() {
|
|
3164
|
+
Companion_instance_6 = this;
|
|
2856
3165
|
var tmp = this;
|
|
2857
3166
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2858
3167
|
var this_0 = get_entries_0();
|
|
@@ -2870,19 +3179,19 @@ function Companion_4() {
|
|
|
2870
3179
|
var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2871
3180
|
tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, ExpenseStatus$Companion$_anonymous__ja4gdh);
|
|
2872
3181
|
}
|
|
2873
|
-
protoOf(
|
|
3182
|
+
protoOf(Companion_5).fromValue = function (value) {
|
|
2874
3183
|
return this.mapping_1.get_wei43m_k$(value);
|
|
2875
3184
|
};
|
|
2876
|
-
protoOf(
|
|
3185
|
+
protoOf(Companion_5).serializer_9w0wvi_k$ = function () {
|
|
2877
3186
|
return _get_$cachedSerializer__te6jhj_0(this);
|
|
2878
3187
|
};
|
|
2879
|
-
protoOf(
|
|
3188
|
+
protoOf(Companion_5).serializer_nv39qc_k$ = function (typeParamsSerializers) {
|
|
2880
3189
|
return this.serializer_9w0wvi_k$();
|
|
2881
3190
|
};
|
|
2882
|
-
var
|
|
2883
|
-
function
|
|
3191
|
+
var Companion_instance_6;
|
|
3192
|
+
function Companion_getInstance_6() {
|
|
2884
3193
|
static_init_0();
|
|
2885
|
-
return
|
|
3194
|
+
return Companion_instance_6;
|
|
2886
3195
|
}
|
|
2887
3196
|
function values_0() {
|
|
2888
3197
|
static_init_0();
|
|
@@ -2931,14 +3240,14 @@ function ExpenseStatus_REJECTED_getInstance() {
|
|
|
2931
3240
|
static_init_0();
|
|
2932
3241
|
return ExpenseStatus_REJECTED_instance;
|
|
2933
3242
|
}
|
|
2934
|
-
function
|
|
3243
|
+
function Companion_6() {
|
|
2935
3244
|
}
|
|
2936
|
-
var
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
3245
|
+
var Companion_instance_7;
|
|
3246
|
+
function Companion_getInstance_7() {
|
|
3247
|
+
return Companion_instance_7;
|
|
2939
3248
|
}
|
|
2940
|
-
function $
|
|
2941
|
-
$
|
|
3249
|
+
function $serializer_4() {
|
|
3250
|
+
$serializer_instance_4 = this;
|
|
2942
3251
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.ExpenseType', this, 4);
|
|
2943
3252
|
tmp0_serialDesc.addElement_5pzumi_k$('description', true);
|
|
2944
3253
|
tmp0_serialDesc.addElement_5pzumi_k$('id', false);
|
|
@@ -2946,7 +3255,7 @@ function $serializer_3() {
|
|
|
2946
3255
|
tmp0_serialDesc.addElement_5pzumi_k$('tripletexId', true);
|
|
2947
3256
|
this.descriptor_1 = tmp0_serialDesc;
|
|
2948
3257
|
}
|
|
2949
|
-
protoOf($
|
|
3258
|
+
protoOf($serializer_4).serialize_f7iqfk_k$ = function (encoder, value) {
|
|
2950
3259
|
var tmp0_desc = this.descriptor_1;
|
|
2951
3260
|
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
2952
3261
|
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.description == null)) {
|
|
@@ -2959,10 +3268,10 @@ protoOf($serializer_3).serialize_f7iqfk_k$ = function (encoder, value) {
|
|
|
2959
3268
|
}
|
|
2960
3269
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
2961
3270
|
};
|
|
2962
|
-
protoOf($
|
|
3271
|
+
protoOf($serializer_4).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2963
3272
|
return this.serialize_f7iqfk_k$(encoder, value instanceof ExpenseType ? value : THROW_CCE());
|
|
2964
3273
|
};
|
|
2965
|
-
protoOf($
|
|
3274
|
+
protoOf($serializer_4).deserialize_sy6x50_k$ = function (decoder) {
|
|
2966
3275
|
var tmp0_desc = this.descriptor_1;
|
|
2967
3276
|
var tmp1_flag = true;
|
|
2968
3277
|
var tmp2_index = 0;
|
|
@@ -3011,24 +3320,24 @@ protoOf($serializer_3).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3011
3320
|
tmp8_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3012
3321
|
return ExpenseType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3013
3322
|
};
|
|
3014
|
-
protoOf($
|
|
3323
|
+
protoOf($serializer_4).get_descriptor_wjt6a0_k$ = function () {
|
|
3015
3324
|
return this.descriptor_1;
|
|
3016
3325
|
};
|
|
3017
|
-
protoOf($
|
|
3326
|
+
protoOf($serializer_4).childSerializers_5ghqw5_k$ = function () {
|
|
3018
3327
|
// Inline function 'kotlin.arrayOf' call
|
|
3019
3328
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3020
3329
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3021
3330
|
return [get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
3022
3331
|
};
|
|
3023
|
-
var $
|
|
3024
|
-
function $
|
|
3025
|
-
if ($
|
|
3026
|
-
new $
|
|
3027
|
-
return $
|
|
3332
|
+
var $serializer_instance_4;
|
|
3333
|
+
function $serializer_getInstance_7() {
|
|
3334
|
+
if ($serializer_instance_4 == null)
|
|
3335
|
+
new $serializer_4();
|
|
3336
|
+
return $serializer_instance_4;
|
|
3028
3337
|
}
|
|
3029
3338
|
function ExpenseType_init_$Init$(seen0, description, id, name, tripletexId, serializationConstructorMarker, $this) {
|
|
3030
3339
|
if (!(6 === (6 & seen0))) {
|
|
3031
|
-
throwMissingFieldException(seen0, 6, $
|
|
3340
|
+
throwMissingFieldException(seen0, 6, $serializer_getInstance_7().descriptor_1);
|
|
3032
3341
|
}
|
|
3033
3342
|
if (0 === (seen0 & 1))
|
|
3034
3343
|
$this.description = null;
|
|
@@ -3126,8 +3435,8 @@ protoOf(ExpenseType).equals = function (other) {
|
|
|
3126
3435
|
function PagedListExpense$Companion$$childSerializers$_anonymous__vrp4mz() {
|
|
3127
3436
|
return new ArrayListSerializer($serializer_getInstance_3());
|
|
3128
3437
|
}
|
|
3129
|
-
function
|
|
3130
|
-
|
|
3438
|
+
function Companion_7() {
|
|
3439
|
+
Companion_instance_8 = this;
|
|
3131
3440
|
var tmp = this;
|
|
3132
3441
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3133
3442
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3135,33 +3444,33 @@ function Companion_6() {
|
|
|
3135
3444
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3136
3445
|
tmp.$childSerializers_1 = [lazy(tmp_0, PagedListExpense$Companion$$childSerializers$_anonymous__vrp4mz), null, null];
|
|
3137
3446
|
}
|
|
3138
|
-
var
|
|
3139
|
-
function
|
|
3140
|
-
if (
|
|
3141
|
-
new
|
|
3142
|
-
return
|
|
3447
|
+
var Companion_instance_8;
|
|
3448
|
+
function Companion_getInstance_8() {
|
|
3449
|
+
if (Companion_instance_8 == null)
|
|
3450
|
+
new Companion_7();
|
|
3451
|
+
return Companion_instance_8;
|
|
3143
3452
|
}
|
|
3144
|
-
function $
|
|
3145
|
-
$
|
|
3453
|
+
function $serializer_5() {
|
|
3454
|
+
$serializer_instance_5 = this;
|
|
3146
3455
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.PagedListExpense', this, 3);
|
|
3147
3456
|
tmp0_serialDesc.addElement_5pzumi_k$('items', false);
|
|
3148
3457
|
tmp0_serialDesc.addElement_5pzumi_k$('meta', false);
|
|
3149
3458
|
tmp0_serialDesc.addElement_5pzumi_k$('paging', false);
|
|
3150
3459
|
this.descriptor_1 = tmp0_serialDesc;
|
|
3151
3460
|
}
|
|
3152
|
-
protoOf($
|
|
3461
|
+
protoOf($serializer_5).serialize_feq9t_k$ = function (encoder, value) {
|
|
3153
3462
|
var tmp0_desc = this.descriptor_1;
|
|
3154
3463
|
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3155
|
-
var tmp2_cached =
|
|
3464
|
+
var tmp2_cached = Companion_getInstance_8().$childSerializers_1;
|
|
3156
3465
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.items);
|
|
3157
3466
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, $serializer_getInstance_0(), value.meta);
|
|
3158
3467
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, $serializer_getInstance_1(), value.paging);
|
|
3159
3468
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3160
3469
|
};
|
|
3161
|
-
protoOf($
|
|
3470
|
+
protoOf($serializer_5).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3162
3471
|
return this.serialize_feq9t_k$(encoder, value instanceof PagedListExpense ? value : THROW_CCE());
|
|
3163
3472
|
};
|
|
3164
|
-
protoOf($
|
|
3473
|
+
protoOf($serializer_5).deserialize_sy6x50_k$ = function (decoder) {
|
|
3165
3474
|
var tmp0_desc = this.descriptor_1;
|
|
3166
3475
|
var tmp1_flag = true;
|
|
3167
3476
|
var tmp2_index = 0;
|
|
@@ -3170,7 +3479,7 @@ protoOf($serializer_4).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3170
3479
|
var tmp5_local1 = null;
|
|
3171
3480
|
var tmp6_local2 = null;
|
|
3172
3481
|
var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3173
|
-
var tmp8_cached =
|
|
3482
|
+
var tmp8_cached = Companion_getInstance_8().$childSerializers_1;
|
|
3174
3483
|
if (tmp7_input.decodeSequentially_xlblqy_k$()) {
|
|
3175
3484
|
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
3176
3485
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3204,24 +3513,24 @@ protoOf($serializer_4).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3204
3513
|
tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3205
3514
|
return PagedListExpense_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3206
3515
|
};
|
|
3207
|
-
protoOf($
|
|
3516
|
+
protoOf($serializer_5).get_descriptor_wjt6a0_k$ = function () {
|
|
3208
3517
|
return this.descriptor_1;
|
|
3209
3518
|
};
|
|
3210
|
-
protoOf($
|
|
3519
|
+
protoOf($serializer_5).childSerializers_5ghqw5_k$ = function () {
|
|
3211
3520
|
// Inline function 'kotlin.arrayOf' call
|
|
3212
3521
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3213
3522
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3214
|
-
return [
|
|
3523
|
+
return [Companion_getInstance_8().$childSerializers_1[0].get_value_j01efc_k$(), $serializer_getInstance_0(), $serializer_getInstance_1()];
|
|
3215
3524
|
};
|
|
3216
|
-
var $
|
|
3217
|
-
function $
|
|
3218
|
-
if ($
|
|
3219
|
-
new $
|
|
3220
|
-
return $
|
|
3525
|
+
var $serializer_instance_5;
|
|
3526
|
+
function $serializer_getInstance_8() {
|
|
3527
|
+
if ($serializer_instance_5 == null)
|
|
3528
|
+
new $serializer_5();
|
|
3529
|
+
return $serializer_instance_5;
|
|
3221
3530
|
}
|
|
3222
3531
|
function PagedListExpense_init_$Init$(seen0, items, meta, paging, serializationConstructorMarker, $this) {
|
|
3223
3532
|
if (!(7 === (7 & seen0))) {
|
|
3224
|
-
throwMissingFieldException(seen0, 7, $
|
|
3533
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_8().descriptor_1);
|
|
3225
3534
|
}
|
|
3226
3535
|
$this.items = items;
|
|
3227
3536
|
$this.meta = meta;
|
|
@@ -3243,7 +3552,7 @@ function PagedListExpense(items, meta, paging) {
|
|
|
3243
3552
|
if ((__soliboTmp = __soliboToKt(items, ["list",["model","Expense"]])) !== items) { items = __soliboTmp; __soliboConverted = true; }
|
|
3244
3553
|
if ((__soliboTmp = __soliboToKt(meta, ["model","Meta"])) !== meta) { meta = __soliboTmp; __soliboConverted = true; }
|
|
3245
3554
|
if ((__soliboTmp = __soliboToKt(paging, ["model","Paging"])) !== paging) { paging = __soliboTmp; __soliboConverted = true; }
|
|
3246
|
-
|
|
3555
|
+
Companion_getInstance_8();
|
|
3247
3556
|
this.items = items;
|
|
3248
3557
|
this.meta = meta;
|
|
3249
3558
|
this.paging = paging;
|
|
@@ -3299,10 +3608,10 @@ protoOf(PagedListExpense).equals = function (other) {
|
|
|
3299
3608
|
return true;
|
|
3300
3609
|
};
|
|
3301
3610
|
function PagedListExpenseType$Companion$$childSerializers$_anonymous__18fgq3() {
|
|
3302
|
-
return new ArrayListSerializer($
|
|
3611
|
+
return new ArrayListSerializer($serializer_getInstance_7());
|
|
3303
3612
|
}
|
|
3304
|
-
function
|
|
3305
|
-
|
|
3613
|
+
function Companion_8() {
|
|
3614
|
+
Companion_instance_9 = this;
|
|
3306
3615
|
var tmp = this;
|
|
3307
3616
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3308
3617
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3310,33 +3619,33 @@ function Companion_7() {
|
|
|
3310
3619
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3311
3620
|
tmp.$childSerializers_1 = [lazy(tmp_0, PagedListExpenseType$Companion$$childSerializers$_anonymous__18fgq3), null, null];
|
|
3312
3621
|
}
|
|
3313
|
-
var
|
|
3314
|
-
function
|
|
3315
|
-
if (
|
|
3316
|
-
new
|
|
3317
|
-
return
|
|
3622
|
+
var Companion_instance_9;
|
|
3623
|
+
function Companion_getInstance_9() {
|
|
3624
|
+
if (Companion_instance_9 == null)
|
|
3625
|
+
new Companion_8();
|
|
3626
|
+
return Companion_instance_9;
|
|
3318
3627
|
}
|
|
3319
|
-
function $
|
|
3320
|
-
$
|
|
3628
|
+
function $serializer_6() {
|
|
3629
|
+
$serializer_instance_6 = this;
|
|
3321
3630
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.PagedListExpenseType', this, 3);
|
|
3322
3631
|
tmp0_serialDesc.addElement_5pzumi_k$('items', false);
|
|
3323
3632
|
tmp0_serialDesc.addElement_5pzumi_k$('meta', false);
|
|
3324
3633
|
tmp0_serialDesc.addElement_5pzumi_k$('paging', false);
|
|
3325
3634
|
this.descriptor_1 = tmp0_serialDesc;
|
|
3326
3635
|
}
|
|
3327
|
-
protoOf($
|
|
3636
|
+
protoOf($serializer_6).serialize_8rjj6t_k$ = function (encoder, value) {
|
|
3328
3637
|
var tmp0_desc = this.descriptor_1;
|
|
3329
3638
|
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3330
|
-
var tmp2_cached =
|
|
3639
|
+
var tmp2_cached = Companion_getInstance_9().$childSerializers_1;
|
|
3331
3640
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.items);
|
|
3332
3641
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, $serializer_getInstance_0(), value.meta);
|
|
3333
3642
|
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, $serializer_getInstance_1(), value.paging);
|
|
3334
3643
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3335
3644
|
};
|
|
3336
|
-
protoOf($
|
|
3645
|
+
protoOf($serializer_6).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3337
3646
|
return this.serialize_8rjj6t_k$(encoder, value instanceof PagedListExpenseType ? value : THROW_CCE());
|
|
3338
3647
|
};
|
|
3339
|
-
protoOf($
|
|
3648
|
+
protoOf($serializer_6).deserialize_sy6x50_k$ = function (decoder) {
|
|
3340
3649
|
var tmp0_desc = this.descriptor_1;
|
|
3341
3650
|
var tmp1_flag = true;
|
|
3342
3651
|
var tmp2_index = 0;
|
|
@@ -3345,7 +3654,7 @@ protoOf($serializer_5).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3345
3654
|
var tmp5_local1 = null;
|
|
3346
3655
|
var tmp6_local2 = null;
|
|
3347
3656
|
var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3348
|
-
var tmp8_cached =
|
|
3657
|
+
var tmp8_cached = Companion_getInstance_9().$childSerializers_1;
|
|
3349
3658
|
if (tmp7_input.decodeSequentially_xlblqy_k$()) {
|
|
3350
3659
|
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
3351
3660
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3379,24 +3688,24 @@ protoOf($serializer_5).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3379
3688
|
tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3380
3689
|
return PagedListExpenseType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3381
3690
|
};
|
|
3382
|
-
protoOf($
|
|
3691
|
+
protoOf($serializer_6).get_descriptor_wjt6a0_k$ = function () {
|
|
3383
3692
|
return this.descriptor_1;
|
|
3384
3693
|
};
|
|
3385
|
-
protoOf($
|
|
3694
|
+
protoOf($serializer_6).childSerializers_5ghqw5_k$ = function () {
|
|
3386
3695
|
// Inline function 'kotlin.arrayOf' call
|
|
3387
3696
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3388
3697
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3389
|
-
return [
|
|
3698
|
+
return [Companion_getInstance_9().$childSerializers_1[0].get_value_j01efc_k$(), $serializer_getInstance_0(), $serializer_getInstance_1()];
|
|
3390
3699
|
};
|
|
3391
|
-
var $
|
|
3392
|
-
function $
|
|
3393
|
-
if ($
|
|
3394
|
-
new $
|
|
3395
|
-
return $
|
|
3700
|
+
var $serializer_instance_6;
|
|
3701
|
+
function $serializer_getInstance_9() {
|
|
3702
|
+
if ($serializer_instance_6 == null)
|
|
3703
|
+
new $serializer_6();
|
|
3704
|
+
return $serializer_instance_6;
|
|
3396
3705
|
}
|
|
3397
3706
|
function PagedListExpenseType_init_$Init$(seen0, items, meta, paging, serializationConstructorMarker, $this) {
|
|
3398
3707
|
if (!(7 === (7 & seen0))) {
|
|
3399
|
-
throwMissingFieldException(seen0, 7, $
|
|
3708
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_9().descriptor_1);
|
|
3400
3709
|
}
|
|
3401
3710
|
$this.items = items;
|
|
3402
3711
|
$this.meta = meta;
|
|
@@ -3418,7 +3727,7 @@ function PagedListExpenseType(items, meta, paging) {
|
|
|
3418
3727
|
if ((__soliboTmp = __soliboToKt(items, ["list",["model","ExpenseType"]])) !== items) { items = __soliboTmp; __soliboConverted = true; }
|
|
3419
3728
|
if ((__soliboTmp = __soliboToKt(meta, ["model","Meta"])) !== meta) { meta = __soliboTmp; __soliboConverted = true; }
|
|
3420
3729
|
if ((__soliboTmp = __soliboToKt(paging, ["model","Paging"])) !== paging) { paging = __soliboTmp; __soliboConverted = true; }
|
|
3421
|
-
|
|
3730
|
+
Companion_getInstance_9();
|
|
3422
3731
|
this.items = items;
|
|
3423
3732
|
this.meta = meta;
|
|
3424
3733
|
this.paging = paging;
|
|
@@ -3473,19 +3782,19 @@ protoOf(PagedListExpenseType).equals = function (other) {
|
|
|
3473
3782
|
return false;
|
|
3474
3783
|
return true;
|
|
3475
3784
|
};
|
|
3476
|
-
function
|
|
3785
|
+
function Companion_9() {
|
|
3477
3786
|
}
|
|
3478
|
-
var
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3787
|
+
var Companion_instance_10;
|
|
3788
|
+
function Companion_getInstance_10() {
|
|
3789
|
+
return Companion_instance_10;
|
|
3481
3790
|
}
|
|
3482
|
-
function $
|
|
3483
|
-
$
|
|
3791
|
+
function $serializer_7() {
|
|
3792
|
+
$serializer_instance_7 = this;
|
|
3484
3793
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.RejectExpenseCommand', this, 1);
|
|
3485
3794
|
tmp0_serialDesc.addElement_5pzumi_k$('reason', true);
|
|
3486
3795
|
this.descriptor_1 = tmp0_serialDesc;
|
|
3487
3796
|
}
|
|
3488
|
-
protoOf($
|
|
3797
|
+
protoOf($serializer_7).serialize_kwbm9e_k$ = function (encoder, value) {
|
|
3489
3798
|
var tmp0_desc = this.descriptor_1;
|
|
3490
3799
|
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
3491
3800
|
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.reason == null)) {
|
|
@@ -3493,10 +3802,10 @@ protoOf($serializer_6).serialize_kwbm9e_k$ = function (encoder, value) {
|
|
|
3493
3802
|
}
|
|
3494
3803
|
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3495
3804
|
};
|
|
3496
|
-
protoOf($
|
|
3805
|
+
protoOf($serializer_7).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3497
3806
|
return this.serialize_kwbm9e_k$(encoder, value instanceof RejectExpenseCommand ? value : THROW_CCE());
|
|
3498
3807
|
};
|
|
3499
|
-
protoOf($
|
|
3808
|
+
protoOf($serializer_7).deserialize_sy6x50_k$ = function (decoder) {
|
|
3500
3809
|
var tmp0_desc = this.descriptor_1;
|
|
3501
3810
|
var tmp1_flag = true;
|
|
3502
3811
|
var tmp2_index = 0;
|
|
@@ -3524,24 +3833,24 @@ protoOf($serializer_6).deserialize_sy6x50_k$ = function (decoder) {
|
|
|
3524
3833
|
tmp5_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
3525
3834
|
return RejectExpenseCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
3526
3835
|
};
|
|
3527
|
-
protoOf($
|
|
3836
|
+
protoOf($serializer_7).get_descriptor_wjt6a0_k$ = function () {
|
|
3528
3837
|
return this.descriptor_1;
|
|
3529
3838
|
};
|
|
3530
|
-
protoOf($
|
|
3839
|
+
protoOf($serializer_7).childSerializers_5ghqw5_k$ = function () {
|
|
3531
3840
|
// Inline function 'kotlin.arrayOf' call
|
|
3532
3841
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3533
3842
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3534
3843
|
return [get_nullable(StringSerializer_getInstance())];
|
|
3535
3844
|
};
|
|
3536
|
-
var $
|
|
3537
|
-
function $
|
|
3538
|
-
if ($
|
|
3539
|
-
new $
|
|
3540
|
-
return $
|
|
3845
|
+
var $serializer_instance_7;
|
|
3846
|
+
function $serializer_getInstance_10() {
|
|
3847
|
+
if ($serializer_instance_7 == null)
|
|
3848
|
+
new $serializer_7();
|
|
3849
|
+
return $serializer_instance_7;
|
|
3541
3850
|
}
|
|
3542
3851
|
function RejectExpenseCommand_init_$Init$(seen0, reason, serializationConstructorMarker, $this) {
|
|
3543
3852
|
if (!(0 === (0 & seen0))) {
|
|
3544
|
-
throwMissingFieldException(seen0, 0, $
|
|
3853
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_10().descriptor_1);
|
|
3545
3854
|
}
|
|
3546
3855
|
if (0 === (seen0 & 1))
|
|
3547
3856
|
$this.reason = null;
|
|
@@ -3598,18 +3907,20 @@ protoOf($serializer_1).typeParametersSerializers_fr94fx_k$ = typeParametersSeria
|
|
|
3598
3907
|
protoOf($serializer_2).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3599
3908
|
defineProp(protoOf(ExpenseProcessingResult), 'name', protoOf(ExpenseProcessingResult).get_name_woqyms_k$);
|
|
3600
3909
|
defineProp(protoOf(ExpenseProcessingResult), 'ordinal', protoOf(ExpenseProcessingResult).get_ordinal_ip24qg_k$);
|
|
3910
|
+
protoOf($serializer_3).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3601
3911
|
defineProp(protoOf(ExpenseStatus), 'name', protoOf(ExpenseStatus).get_name_woqyms_k$);
|
|
3602
3912
|
defineProp(protoOf(ExpenseStatus), 'ordinal', protoOf(ExpenseStatus).get_ordinal_ip24qg_k$);
|
|
3603
|
-
protoOf($serializer_3).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3604
3913
|
protoOf($serializer_4).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3605
3914
|
protoOf($serializer_5).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3606
3915
|
protoOf($serializer_6).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3916
|
+
protoOf($serializer_7).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
3607
3917
|
//endregion
|
|
3608
3918
|
//region block: init
|
|
3609
3919
|
Companion_instance_0 = new Companion();
|
|
3610
3920
|
Companion_instance_2 = new Companion_1();
|
|
3611
|
-
|
|
3612
|
-
|
|
3921
|
+
Companion_instance_5 = new Companion_4();
|
|
3922
|
+
Companion_instance_7 = new Companion_6();
|
|
3923
|
+
Companion_instance_10 = new Companion_9();
|
|
3613
3924
|
//endregion
|
|
3614
3925
|
//region block: exports
|
|
3615
3926
|
ExpenseApi.create = create;
|
|
@@ -3624,7 +3935,7 @@ ExpenseStatus.valueOf = valueOf_0;
|
|
|
3624
3935
|
defineProp(ExpenseStatus, 'FOR_APPROVAL', ExpenseStatus_FOR_APPROVAL_getInstance, VOID, true);
|
|
3625
3936
|
defineProp(ExpenseStatus, 'APPROVED', ExpenseStatus_APPROVED_getInstance, VOID, true);
|
|
3626
3937
|
defineProp(ExpenseStatus, 'REJECTED', ExpenseStatus_REJECTED_getInstance, VOID, true);
|
|
3627
|
-
defineProp(ExpenseStatus, 'Companion',
|
|
3938
|
+
defineProp(ExpenseStatus, 'Companion', Companion_getInstance_6, VOID, true);
|
|
3628
3939
|
export {
|
|
3629
3940
|
expenseApi as expenseApi,
|
|
3630
3941
|
ExpenseApi as ExpenseApi,
|
|
@@ -3633,6 +3944,7 @@ export {
|
|
|
3633
3944
|
ExpenseCount as ExpenseCount,
|
|
3634
3945
|
ExpenseProcessing as ExpenseProcessing,
|
|
3635
3946
|
ExpenseProcessingResult as ExpenseProcessingResult,
|
|
3947
|
+
ExpenseReminder as ExpenseReminder,
|
|
3636
3948
|
ExpenseStatus as ExpenseStatus,
|
|
3637
3949
|
ExpenseType as ExpenseType,
|
|
3638
3950
|
PagedListExpense as PagedListExpense,
|
|
@@ -6531,8 +6843,9 @@ if (typeof TransmissionDialogType !== 'undefined') {
|
|
|
6531
6843
|
__soliboWrapMethod(ref(() => ExpenseApi), "indexExpenseUnattested", {"args":{"0":["bigint"]},"result":true});
|
|
6532
6844
|
__soliboWrapMethod(ref(() => ExpenseApi), "indexExpenseUser", {"args":{"0":["list",["bigint"]],"2":["list",["enum","ExpenseStatus"]],"3":["bigint"],"4":["bigint"]},"result":true});
|
|
6533
6845
|
__soliboWrapMethod(ref(() => ExpenseApi), "rejectExpense", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","RejectExpenseCommand"]},"result":true});
|
|
6846
|
+
__soliboWrapMethod(ref(() => ExpenseApi), "remindExpense", {"args":{"0":["bigint"],"1":["bigint"]},"result":true});
|
|
6534
6847
|
__soliboWrapMethod(ref(() => ExpenseApi), "showExpense", {"args":{"0":["bigint"],"1":["bigint"]},"result":true});
|
|
6535
|
-
__soliboRegisterOwnFields(ref(() => Expense), {"expenseProcessing":["list",["model","ExpenseProcessing"]],"payableTo":["model","Person"]});
|
|
6848
|
+
__soliboRegisterOwnFields(ref(() => Expense), {"expenseProcessing":["list",["model","ExpenseProcessing"]],"payableTo":["model","Person"],"processingHistory":["list",["model","ExpenseProcessing"]]});
|
|
6536
6849
|
__soliboRegisterOwnFields(ref(() => ExpenseProcessing), {"performedBy":["model","Person"]});
|
|
6537
6850
|
__soliboWrapMethod(ref(() => ExpenseProcessingResult), "values", {"isStatic":true});
|
|
6538
6851
|
__soliboWrapMethod(ref(() => ExpenseProcessingResult), "valueOf", {"isStatic":true});
|