@solibo/solibo-sdk 1.57.2 → 1.57.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.
Files changed (25) hide show
  1. package/client/invoicing.d.mts +1 -1
  2. package/client/invoicing.mjs +37 -0
  3. package/client/paymentAllocation.d.mts +1 -1
  4. package/client-core.mjs +10 -0
  5. package/client.d.mts +19 -0
  6. package/operations/invoicing.d.mts +2 -1
  7. package/operations/invoicing.mjs +5 -0
  8. package/operations/paymentAllocation.d.mts +1 -1
  9. package/package.json +1 -1
  10. package/solibo-cycles/kotlinx-coroutines-core-16.mjs +5 -5
  11. package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +2 -2
  12. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.export.d.mts +1 -0
  13. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.mjs +93 -0
  14. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/IndexInvoicingPlannedPreviewsOperation.export.d.mts +3 -0
  15. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/IndexInvoicingPlannedPreviewsOperation.export.mjs +14 -0
  16. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/IndexInvoicingPlannedPreviewsOperation.mjs +169 -0
  17. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListPlannedInvoicePreview.export.d.mts +18 -0
  18. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListPlannedInvoicePreview.export.mjs +12 -0
  19. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListPlannedInvoicePreview.mjs +253 -0
  20. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PlannedInvoicePreview.export.d.mts +18 -0
  21. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PlannedInvoicePreview.export.mjs +12 -0
  22. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PlannedInvoicePreview.mjs +250 -0
  23. package/solibo-sdk-sdk-api-invoicing.mjs +3 -0
  24. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
  25. package/solibo-sdk-sdk.d.mts +38 -0
@@ -0,0 +1,169 @@
1
+ import { promisify1z0ncraq1ipzh as promisify } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
2
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
4
+ import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
5
+ import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
6
+ import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from '../../../../../../../../../ktor-ktor-client-core/io/ktor/client/utils/Content.mjs';
7
+ import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
8
+ import { listOfvhqybd2zx248 as listOf_0 } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
9
+ import { RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestMethod.mjs';
10
+ import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs';
11
+ import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
12
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
13
+ import { PagedListPlannedInvoicePreview37uii72cv1hk1 as PagedListPlannedInvoicePreview } from '../../models/PagedListPlannedInvoicePreview.mjs';
14
+ import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
15
+ import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
16
+ import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
17
+ import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '../../../../../../../../../ktor-ktor-utils/io/ktor/util/reflect/Type.mjs';
18
+ import {
19
+ TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
20
+ HttpResponse53ki0v36vqo7 as HttpResponse,
21
+ } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs';
22
+ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
23
+ import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
24
+ //region block: imports
25
+ //endregion
26
+ //region block: pre-declaration
27
+ //endregion
28
+ function indexInvoicingPlannedPreviewsOperation(client, companyId, year, month, fields, pageToken, autoPaginate, count) {
29
+ return promisify(function ($completion) {
30
+ return indexInvoicingPlannedPreviewsOperation_0(client, companyId, year, month, fields, pageToken, autoPaginate, count, $completion);
31
+ });
32
+ }
33
+ function indexInvoicingPlannedPreviewsOperation_0(client, companyId, year, month, fields, pageToken, autoPaginate, count, $completion) {
34
+ year = year === VOID ? null : year;
35
+ month = month === VOID ? null : month;
36
+ fields = fields === VOID ? null : fields;
37
+ pageToken = pageToken === VOID ? null : pageToken;
38
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
39
+ count = count === VOID ? null : count;
40
+ var tmp = new ($indexInvoicingPlannedPreviewsOperationCOROUTINE$())(client, companyId, year, month, fields, pageToken, autoPaginate, count, $completion);
41
+ tmp.result_1 = Unit_instance;
42
+ tmp.exception_1 = null;
43
+ return tmp.doResume_5yljmg_k$();
44
+ }
45
+ var $indexInvoicingPlannedPreviewsOperationCOROUTINE$Class;
46
+ function $indexInvoicingPlannedPreviewsOperationCOROUTINE$() {
47
+ if ($indexInvoicingPlannedPreviewsOperationCOROUTINE$Class === VOID) {
48
+ initMetadataForCoroutine($, CoroutineImpl());
49
+ function $(client, companyId, year, month, fields, pageToken, autoPaginate, count, resultContinuation) {
50
+ CoroutineImpl().call(this, resultContinuation);
51
+ this.client_1 = client;
52
+ this.companyId_1 = companyId;
53
+ this.year_1 = year;
54
+ this.month_1 = month;
55
+ this.fields_1 = fields;
56
+ this.pageToken_1 = pageToken;
57
+ this.autoPaginate_1 = autoPaginate;
58
+ this.count_1 = count;
59
+ }
60
+ protoOf($).doResume_5yljmg_k$ = function () {
61
+ var suspendResult = this.result_1;
62
+ $sm: do
63
+ try {
64
+ var tmp = this.state_1;
65
+ switch (tmp) {
66
+ case 0:
67
+ this.exceptionState_1 = 2;
68
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
69
+ var localVariableBody = EmptyContent_getInstance();
70
+ var localVariableQuery = LinkedHashMap_init_$Create$();
71
+ if (this.year_1 == null)
72
+ null;
73
+ else {
74
+ var value = listOf_0('' + this.year_1);
75
+ localVariableQuery.put_4fpzoq_k$('year', value);
76
+ }
77
+
78
+ if (this.month_1 == null)
79
+ null;
80
+ else {
81
+ var value_0 = listOf_0('' + this.month_1);
82
+ localVariableQuery.put_4fpzoq_k$('month', value_0);
83
+ }
84
+
85
+ if (this.fields_1 == null)
86
+ null;
87
+ else {
88
+ var value_1 = listOf_0(this.fields_1);
89
+ localVariableQuery.put_4fpzoq_k$('fields', value_1);
90
+ }
91
+
92
+ if (this.pageToken_1 == null)
93
+ null;
94
+ else {
95
+ var tmp2 = 'pageToken';
96
+ var value_2 = listOf_0(this.pageToken_1);
97
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_2);
98
+ }
99
+
100
+ if (this.autoPaginate_1 == null)
101
+ null;
102
+ else {
103
+ var tmp2_0 = 'autoPaginate';
104
+ var value_3 = listOf_0('' + this.autoPaginate_1);
105
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_3);
106
+ }
107
+
108
+ if (this.count_1 == null)
109
+ null;
110
+ else {
111
+ var value_4 = listOf_0('' + this.count_1);
112
+ localVariableQuery.put_4fpzoq_k$('count', value_4);
113
+ }
114
+
115
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
116
+ var tmp6_method = RequestMethod_GET_getInstance();
117
+ var tmp7_path = replace('/companies/{companyId}/economy/invoicing/plans/planned-previews', '{companyId}', this.companyId_1.toString());
118
+ var localVariableConfig = new (RequestConfig())(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
119
+ this.state_1 = 1;
120
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
121
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
122
+ return suspendResult;
123
+ }
124
+
125
+ continue $sm;
126
+ case 1:
127
+ var this_0 = suspendResult;
128
+ var tmp_0 = getKClass(PagedListPlannedInvoicePreview());
129
+ var tmp_1 = null instanceof PagedListPlannedInvoicePreview();
130
+ var tmp_2;
131
+ try {
132
+ tmp_2 = createKType(getKClass(PagedListPlannedInvoicePreview()), arrayOf([]), false);
133
+ } catch ($p) {
134
+ var tmp_3;
135
+ if ($p instanceof Error) {
136
+ var _unused_var__etf5q3 = $p;
137
+ tmp_3 = null;
138
+ } else {
139
+ throw $p;
140
+ }
141
+ tmp_2 = tmp_3;
142
+ }
143
+
144
+ return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
145
+ case 2:
146
+ throw this.exception_1;
147
+ }
148
+ } catch ($p_0) {
149
+ var e = $p_0;
150
+ if (this.exceptionState_1 === 2) {
151
+ throw e;
152
+ } else {
153
+ this.state_1 = this.exceptionState_1;
154
+ this.exception_1 = e;
155
+ }
156
+ }
157
+ while (true);
158
+ };
159
+ $indexInvoicingPlannedPreviewsOperationCOROUTINE$Class = $;
160
+ }
161
+ return $indexInvoicingPlannedPreviewsOperationCOROUTINE$Class;
162
+ }
163
+ //region block: exports
164
+ export {
165
+ indexInvoicingPlannedPreviewsOperation as indexInvoicingPlannedPreviewsOperationajxfwwboarlq,
166
+ indexInvoicingPlannedPreviewsOperation_0 as indexInvoicingPlannedPreviewsOperations7u1xuzns9cb,
167
+ };
168
+ //endregion
169
+
@@ -0,0 +1,18 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class PagedListPlannedInvoicePreview {
4
+ constructor(items: KtList<PlannedInvoicePreview>, meta: Meta, paging: Paging);
5
+ get items(): KtList<PlannedInvoicePreview>;
6
+ get meta(): Meta;
7
+ get paging(): Paging;
8
+ copy(items?: KtList<PlannedInvoicePreview>, meta?: Meta, paging?: Paging): PagedListPlannedInvoicePreview;
9
+ toString(): string;
10
+ hashCode(): number;
11
+ equals(other: Nullable<any>): boolean;
12
+ }
13
+ export declare namespace PagedListPlannedInvoicePreview {
14
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
15
+ namespace $metadata$ {
16
+ const constructor: abstract new () => PagedListPlannedInvoicePreview;
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ import { PagedListPlannedInvoicePreview37uii72cv1hk1 as PagedListPlannedInvoicePreview } from './PagedListPlannedInvoicePreview.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ //region block: exports
7
+ var PagedListPlannedInvoicePreview_0 = PagedListPlannedInvoicePreview();
8
+ export {
9
+ PagedListPlannedInvoicePreview_0 as PagedListPlannedInvoicePreview,
10
+ };
11
+ //endregion
12
+
@@ -0,0 +1,253 @@
1
+ import { $serializer_getInstance96v6yynnnptg as $serializer_getInstance } from './PlannedInvoicePreview.mjs';
2
+ import { ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs';
3
+ import { LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Lazy.mjs';
4
+ import { lazy1261dae0bgscp as lazy } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/kotlin.mjs';
5
+ import {
6
+ protoOf180f3jzyo7rfj as protoOf,
7
+ objectCreate1ve4bgxiu4x98 as objectCreate,
8
+ toString1pkumu07cwy4m as toString,
9
+ hashCodeq5arwsb9dgti as hashCode,
10
+ equals2au1ep9vhcato as equals,
11
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
12
+ import {
13
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
14
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
15
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
16
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
17
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
18
+ import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
19
+ import { $serializer_getInstance2u6e9d36lcolu as $serializer_getInstance_0 } from '../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Meta.mjs';
20
+ import { $serializer_getInstance2ubvlf5l752ie as $serializer_getInstance_1 } from '../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Paging.mjs';
21
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
22
+ import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
23
+ import {
24
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
25
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
26
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
27
+ import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
28
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
29
+ import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
30
+ import { __soliboBoundaryState, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../solibo-boundary.mjs';
31
+ import { Metarj2kzj7wi8ld as __soliboType_Meta } from '../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Meta.mjs';
32
+ import { Pagingtmpd84ge8720 as __soliboType_Paging } from '../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Paging.mjs';
33
+ import { PlannedInvoicePreview3brk686aised8 as __soliboType_PlannedInvoicePreview } from './PlannedInvoicePreview.mjs';
34
+ //region block: imports
35
+ var imul = Math.imul;
36
+ //endregion
37
+ //region block: pre-declaration
38
+ //endregion
39
+ function PagedListPlannedInvoicePreview$Companion$$childSerializers$_anonymous__kdov4u() {
40
+ return new (ArrayListSerializer())($serializer_getInstance());
41
+ }
42
+ var CompanionClass;
43
+ function Companion() {
44
+ if (CompanionClass === VOID) {
45
+ initMetadataForCompanion($);
46
+ function $() {
47
+ Companion_instance = this;
48
+ var tmp = this;
49
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
50
+ // Inline function 'kotlin.arrayOf' call
51
+ // Inline function 'kotlin.js.unsafeCast' call
52
+ // Inline function 'kotlin.js.asDynamic' call
53
+ tmp.$childSerializers_1 = [lazy(tmp_0, PagedListPlannedInvoicePreview$Companion$$childSerializers$_anonymous__kdov4u), null, null];
54
+ }
55
+ CompanionClass = $;
56
+ }
57
+ return CompanionClass;
58
+ }
59
+ var Companion_instance;
60
+ function Companion_getInstance() {
61
+ if (Companion_instance == null)
62
+ new (Companion())();
63
+ return Companion_instance;
64
+ }
65
+ var $serializerClass;
66
+ function $serializer() {
67
+ if ($serializerClass === VOID) {
68
+ initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
69
+ function $() {
70
+ $serializer_instance = this;
71
+ var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.PagedListPlannedInvoicePreview', this, 3);
72
+ tmp0_serialDesc.addElement_5pzumi_k$('items', false);
73
+ tmp0_serialDesc.addElement_5pzumi_k$('meta', false);
74
+ tmp0_serialDesc.addElement_5pzumi_k$('paging', false);
75
+ this.descriptor_1 = tmp0_serialDesc;
76
+ }
77
+ protoOf($).serialize_nihtfs_k$ = function (encoder, value) {
78
+ var tmp0_desc = this.descriptor_1;
79
+ var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
80
+ var tmp2_cached = Companion_getInstance().$childSerializers_1;
81
+ tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.items);
82
+ tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, $serializer_getInstance_0(), value.meta);
83
+ tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, $serializer_getInstance_1(), value.paging);
84
+ tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
85
+ };
86
+ protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
87
+ return this.serialize_nihtfs_k$(encoder, value instanceof PagedListPlannedInvoicePreview() ? value : THROW_CCE());
88
+ };
89
+ protoOf($).deserialize_sy6x50_k$ = function (decoder) {
90
+ var tmp0_desc = this.descriptor_1;
91
+ var tmp1_flag = true;
92
+ var tmp2_index = 0;
93
+ var tmp3_bitMask0 = 0;
94
+ var tmp4_local0 = null;
95
+ var tmp5_local1 = null;
96
+ var tmp6_local2 = null;
97
+ var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
98
+ var tmp8_cached = Companion_getInstance().$childSerializers_1;
99
+ if (tmp7_input.decodeSequentially_xlblqy_k$()) {
100
+ tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0].get_value_j01efc_k$(), tmp4_local0);
101
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
102
+ tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
103
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
104
+ tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, $serializer_getInstance_1(), tmp6_local2);
105
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
106
+ } else
107
+ while (tmp1_flag) {
108
+ tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
109
+ switch (tmp2_index) {
110
+ case -1:
111
+ tmp1_flag = false;
112
+ break;
113
+ case 0:
114
+ tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0].get_value_j01efc_k$(), tmp4_local0);
115
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
116
+ break;
117
+ case 1:
118
+ tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
119
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
120
+ break;
121
+ case 2:
122
+ tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, $serializer_getInstance_1(), tmp6_local2);
123
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
124
+ break;
125
+ default:
126
+ throw UnknownFieldException_init_$Create$(tmp2_index);
127
+ }
128
+ }
129
+ tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
130
+ return PagedListPlannedInvoicePreview_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
131
+ };
132
+ protoOf($).get_descriptor_wjt6a0_k$ = function () {
133
+ return this.descriptor_1;
134
+ };
135
+ protoOf($).childSerializers_5ghqw5_k$ = function () {
136
+ // Inline function 'kotlin.arrayOf' call
137
+ // Inline function 'kotlin.js.unsafeCast' call
138
+ // Inline function 'kotlin.js.asDynamic' call
139
+ return [Companion_getInstance().$childSerializers_1[0].get_value_j01efc_k$(), $serializer_getInstance_0(), $serializer_getInstance_1()];
140
+ };
141
+ protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
142
+ $serializerClass = $;
143
+ }
144
+ return $serializerClass;
145
+ }
146
+ var $serializer_instance;
147
+ function $serializer_getInstance_2() {
148
+ if ($serializer_instance == null)
149
+ new ($serializer())();
150
+ return $serializer_instance;
151
+ }
152
+ function PagedListPlannedInvoicePreview_init_$Init$(seen0, items, meta, paging, serializationConstructorMarker, $this) {
153
+ if (!(7 === (7 & seen0))) {
154
+ throwMissingFieldException(seen0, 7, $serializer_getInstance_2().descriptor_1);
155
+ }
156
+ $this.items = items;
157
+ $this.meta = meta;
158
+ $this.paging = paging;
159
+ return $this;
160
+ }
161
+ function PagedListPlannedInvoicePreview_init_$Create$(seen0, items, meta, paging, serializationConstructorMarker) {
162
+ return PagedListPlannedInvoicePreview_init_$Init$(seen0, items, meta, paging, serializationConstructorMarker, objectCreate(protoOf(PagedListPlannedInvoicePreview())));
163
+ }
164
+ var PagedListPlannedInvoicePreviewClass;
165
+ function PagedListPlannedInvoicePreview() {
166
+ if (PagedListPlannedInvoicePreviewClass === VOID) {
167
+ initMetadataForClass($, 'PagedListPlannedInvoicePreview', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
168
+ function $(items, meta, paging) {
169
+ var __soliboProps = arguments.length === 1 && typeof items === 'object' && items !== null && items.constructor === Object;
170
+ var __soliboTmp, __soliboConverted = false;
171
+ if (__soliboProps) {
172
+ const props = items;
173
+ items = ('items' in props ? props.items : VOID);
174
+ meta = ('meta' in props ? props.meta : VOID);
175
+ paging = ('paging' in props ? props.paging : VOID);
176
+ }
177
+ if ((__soliboTmp = __soliboToKt(items, ["list",["model","PlannedInvoicePreview"]])) !== items) { items = __soliboTmp; __soliboConverted = true; }
178
+ if ((__soliboTmp = __soliboToKt(meta, ["model","Meta"])) !== meta) { meta = __soliboTmp; __soliboConverted = true; }
179
+ if ((__soliboTmp = __soliboToKt(paging, ["model","Paging"])) !== paging) { paging = __soliboTmp; __soliboConverted = true; }
180
+ Companion_getInstance();
181
+ this.items = items;
182
+ this.meta = meta;
183
+ this.paging = paging;
184
+ if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
185
+ }
186
+ protoOf($).get_items_it823b_k$ = function () {
187
+ return this.items;
188
+ };
189
+ protoOf($).get_meta_woqery_k$ = function () {
190
+ return this.meta;
191
+ };
192
+ protoOf($).get_paging_hxxthx_k$ = function () {
193
+ return this.paging;
194
+ };
195
+ protoOf($).component1_7eebsc_k$ = function () {
196
+ return this.items;
197
+ };
198
+ protoOf($).component2_7eebsb_k$ = function () {
199
+ return this.meta;
200
+ };
201
+ protoOf($).component3_7eebsa_k$ = function () {
202
+ return this.paging;
203
+ };
204
+ protoOf($).copy_y15d7w_k$ = function (items, meta, paging) {
205
+ return new (PagedListPlannedInvoicePreview())(items, meta, paging);
206
+ };
207
+ protoOf($).copy = function (items, meta, paging, $super) {
208
+ items = items === VOID ? this.items : items;
209
+ meta = meta === VOID ? this.meta : meta;
210
+ paging = paging === VOID ? this.paging : paging;
211
+ return $super === VOID ? this.copy_y15d7w_k$(items, meta, paging) : $super.copy_y15d7w_k$.call(this, items, meta, paging);
212
+ };
213
+ protoOf($).toString = function () {
214
+ return 'PagedListPlannedInvoicePreview(items=' + toString(this.items) + ', meta=' + this.meta.toString() + ', paging=' + this.paging.toString() + ')';
215
+ };
216
+ protoOf($).hashCode = function () {
217
+ var result = hashCode(this.items);
218
+ result = imul(result, 31) + this.meta.hashCode() | 0;
219
+ result = imul(result, 31) + this.paging.hashCode() | 0;
220
+ return result;
221
+ };
222
+ protoOf($).equals = function (other) {
223
+ if (this === other)
224
+ return true;
225
+ if (!(other instanceof PagedListPlannedInvoicePreview()))
226
+ return false;
227
+ if (!equals(this.items, other.items))
228
+ return false;
229
+ if (!this.meta.equals(other.meta))
230
+ return false;
231
+ if (!this.paging.equals(other.paging))
232
+ return false;
233
+ return true;
234
+ };
235
+ /* Solibo boundary patches */
236
+ Object.defineProperty($, 'name', { value: "PagedListPlannedInvoicePreview", configurable: true });
237
+ __soliboRegisterOwnFields($, {"items":["list",["model","PlannedInvoicePreview"]],"meta":["model","Meta"],"paging":["model","Paging"]});
238
+ __soliboRegisterLookup("PagedListPlannedInvoicePreview", () => $);
239
+ PagedListPlannedInvoicePreviewClass = $;
240
+ }
241
+ return PagedListPlannedInvoicePreviewClass;
242
+ }
243
+ //region block: exports
244
+ export {
245
+ PagedListPlannedInvoicePreview as PagedListPlannedInvoicePreview37uii72cv1hk1,
246
+ };
247
+ //endregion
248
+
249
+ /* Solibo boundary lookups */
250
+ __soliboRegisterLookup("Meta", () => __soliboType_Meta());
251
+ __soliboRegisterLookup("Paging", () => __soliboType_Paging());
252
+ __soliboRegisterLookup("PlannedInvoicePreview", () => __soliboType_PlannedInvoicePreview());
253
+
@@ -0,0 +1,18 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class PlannedInvoicePreview {
4
+ constructor(invoice: Nullable<InvoicePreview> | undefined, planId: bigint, total?: Nullable<number>);
5
+ get invoice(): Nullable<InvoicePreview>;
6
+ get planId(): bigint;
7
+ get total(): Nullable<number>;
8
+ copy(invoice?: Nullable<InvoicePreview>, planId?: bigint, total?: Nullable<number>): PlannedInvoicePreview;
9
+ toString(): string;
10
+ hashCode(): number;
11
+ equals(other: Nullable<any>): boolean;
12
+ }
13
+ export declare namespace PlannedInvoicePreview {
14
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
15
+ namespace $metadata$ {
16
+ const constructor: abstract new () => PlannedInvoicePreview;
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ import { PlannedInvoicePreview3brk686aised8 as PlannedInvoicePreview } from './PlannedInvoicePreview.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ //region block: exports
7
+ var PlannedInvoicePreview_0 = PlannedInvoicePreview();
8
+ export {
9
+ PlannedInvoicePreview_0 as PlannedInvoicePreview,
10
+ };
11
+ //endregion
12
+