@solibo/solibo-sdk 1.43.1 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/client/companies.d.mts +1 -1
  2. package/client-core.mjs +29 -0
  3. package/core.d.mts +1 -1
  4. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequence.mjs +2 -0
  5. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +6 -5
  6. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  7. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +9 -9
  8. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerialFormat.mjs +10 -10
  9. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +1 -4
  10. package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
  11. package/operations/companies.d.mts +1 -1
  12. package/package.json +1 -1
  13. package/solibo-cycles/kotlin-kotlin-stdlib-10.mjs +214 -200
  14. package/solibo-cycles/kotlin-kotlin-stdlib-12.mjs +3 -2
  15. package/solibo-cycles/kotlinx-coroutines-core-16.mjs +5 -5
  16. package/solibo-cycles/kotlinx-coroutines-core-17.mjs +1 -1
  17. package/solibo-cycles/solibo-sdk-sdk-core-52.mjs +20 -43
  18. package/solibo-sdk-sdk/no/solibo/oss/sdk/api/MockHomeApi.mjs +1 -1
  19. package/solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuilding.export.d.mts +3 -2
  20. package/solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuilding.mjs +283 -246
  21. package/solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuildingAlteration.export.d.mts +26 -0
  22. package/solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuildingAlteration.export.mjs +12 -0
  23. package/solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuildingAlteration.mjs +489 -0
  24. package/solibo-sdk-sdk-api-company.mjs +1 -0
  25. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/SdkJson.mjs +34 -0
  26. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/StreamingJsonConverter.mjs +138 -0
  27. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/StreamingJsonConverter.web.mjs +22 -0
  28. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/ApiClient.mjs +5 -12
  29. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Building.export.d.mts +3 -2
  30. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Building.mjs +291 -254
  31. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/BuildingAlteration.export.d.mts +27 -0
  32. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/BuildingAlteration.export.mjs +12 -0
  33. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/BuildingAlteration.mjs +512 -0
  34. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
  35. package/solibo-sdk-sdk-core.mjs +1 -0
  36. package/solibo-sdk-sdk.d.mts +76 -2
  37. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +0 -43
@@ -0,0 +1,26 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class CreateBuildingAlteration {
4
+ constructor(alteration: Nullable<string> | undefined, alterationCode: Nullable<string> | undefined, buildingStatus: Nullable<string> | undefined, buildingStatusCode: Nullable<string> | undefined, builtUpAreaSqm: Nullable<number> | undefined, constructionYear: Nullable<bigint> | undefined, floorIdentities: Nullable<KtList<string>> | undefined, kartverketId: string, nonResidentialSqm?: Nullable<number>, residentialSqm?: Nullable<number>, sequenceNumber?: Nullable<bigint>);
5
+ get alteration(): Nullable<string>;
6
+ get alterationCode(): Nullable<string>;
7
+ get buildingStatus(): Nullable<string>;
8
+ get buildingStatusCode(): Nullable<string>;
9
+ get builtUpAreaSqm(): Nullable<number>;
10
+ get constructionYear(): Nullable<bigint>;
11
+ get floorIdentities(): Nullable<KtList<string>>;
12
+ get kartverketId(): string;
13
+ get nonResidentialSqm(): Nullable<number>;
14
+ get residentialSqm(): Nullable<number>;
15
+ get sequenceNumber(): Nullable<bigint>;
16
+ copy(alteration?: Nullable<string>, alterationCode?: Nullable<string>, buildingStatus?: Nullable<string>, buildingStatusCode?: Nullable<string>, builtUpAreaSqm?: Nullable<number>, constructionYear?: Nullable<bigint>, floorIdentities?: Nullable<KtList<string>>, kartverketId?: string, nonResidentialSqm?: Nullable<number>, residentialSqm?: Nullable<number>, sequenceNumber?: Nullable<bigint>): CreateBuildingAlteration;
17
+ toString(): string;
18
+ hashCode(): number;
19
+ equals(other: Nullable<any>): boolean;
20
+ }
21
+ export declare namespace CreateBuildingAlteration {
22
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
23
+ namespace $metadata$ {
24
+ const constructor: abstract new () => CreateBuildingAlteration;
25
+ }
26
+ }
@@ -0,0 +1,12 @@
1
+ import { CreateBuildingAlterationkd7gh6qgtzza as CreateBuildingAlteration } from './CreateBuildingAlteration.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ //region block: exports
7
+ var CreateBuildingAlteration_0 = CreateBuildingAlteration();
8
+ export {
9
+ CreateBuildingAlteration_0 as CreateBuildingAlteration,
10
+ };
11
+ //endregion
12
+
@@ -0,0 +1,489 @@
1
+ import {
2
+ StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
3
+ DoubleSerializer_getInstance1tuvibnyg07o1 as DoubleSerializer_getInstance,
4
+ LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
5
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
6
+ import { ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs';
7
+ import { LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Lazy.mjs';
8
+ import { lazy1261dae0bgscp as lazy } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/kotlin.mjs';
9
+ import {
10
+ protoOf180f3jzyo7rfj as protoOf,
11
+ objectCreate1ve4bgxiu4x98 as objectCreate,
12
+ getStringHashCode26igk1bx568vk as getStringHashCode,
13
+ getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
14
+ hashCodeq5arwsb9dgti as hashCode,
15
+ equals2au1ep9vhcato as equals,
16
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
17
+ import {
18
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
19
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
20
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
21
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
22
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
23
+ import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
24
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
25
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
26
+ import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
27
+ import { get_nullable197rfua9r7fsz as get_nullable } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs';
28
+ import {
29
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
30
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
31
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
32
+ import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
33
+ import { toString30pk9tzaqopn as toString } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
34
+ import { getNumberHashCode2l4nbdcihl25f as getNumberHashCode } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs';
35
+ import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
36
+ import { __soliboBoundaryState, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../solibo-boundary.mjs';
37
+ //region block: imports
38
+ var imul = Math.imul;
39
+ //endregion
40
+ //region block: pre-declaration
41
+ //endregion
42
+ function CreateBuildingAlteration$Companion$$childSerializers$_anonymous__2z0k9n() {
43
+ return new (ArrayListSerializer())(StringSerializer_getInstance());
44
+ }
45
+ var CompanionClass;
46
+ function Companion() {
47
+ if (CompanionClass === VOID) {
48
+ initMetadataForCompanion($);
49
+ function $() {
50
+ Companion_instance = this;
51
+ var tmp = this;
52
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
53
+ // Inline function 'kotlin.arrayOf' call
54
+ // Inline function 'kotlin.js.unsafeCast' call
55
+ // Inline function 'kotlin.js.asDynamic' call
56
+ tmp.$childSerializers_1 = [null, null, null, null, null, null, lazy(tmp_0, CreateBuildingAlteration$Companion$$childSerializers$_anonymous__2z0k9n), null, null, null, null];
57
+ }
58
+ CompanionClass = $;
59
+ }
60
+ return CompanionClass;
61
+ }
62
+ var Companion_instance;
63
+ function Companion_getInstance() {
64
+ if (Companion_instance == null)
65
+ new (Companion())();
66
+ return Companion_instance;
67
+ }
68
+ var $serializerClass;
69
+ function $serializer() {
70
+ if ($serializerClass === VOID) {
71
+ initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
72
+ function $() {
73
+ $serializer_instance = this;
74
+ var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.CreateBuildingAlteration', this, 11);
75
+ tmp0_serialDesc.addElement_5pzumi_k$('alteration', true);
76
+ tmp0_serialDesc.addElement_5pzumi_k$('alterationCode', true);
77
+ tmp0_serialDesc.addElement_5pzumi_k$('buildingStatus', true);
78
+ tmp0_serialDesc.addElement_5pzumi_k$('buildingStatusCode', true);
79
+ tmp0_serialDesc.addElement_5pzumi_k$('builtUpAreaSqm', true);
80
+ tmp0_serialDesc.addElement_5pzumi_k$('constructionYear', true);
81
+ tmp0_serialDesc.addElement_5pzumi_k$('floorIdentities', true);
82
+ tmp0_serialDesc.addElement_5pzumi_k$('kartverketId', false);
83
+ tmp0_serialDesc.addElement_5pzumi_k$('nonResidentialSqm', true);
84
+ tmp0_serialDesc.addElement_5pzumi_k$('residentialSqm', true);
85
+ tmp0_serialDesc.addElement_5pzumi_k$('sequenceNumber', true);
86
+ this.descriptor_1 = tmp0_serialDesc;
87
+ }
88
+ protoOf($).serialize_ywm5bf_k$ = function (encoder, value) {
89
+ var tmp0_desc = this.descriptor_1;
90
+ var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
91
+ var tmp2_cached = Companion_getInstance().$childSerializers_1;
92
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.alteration == null)) {
93
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.alteration);
94
+ }
95
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.alterationCode == null)) {
96
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.alterationCode);
97
+ }
98
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.buildingStatus == null)) {
99
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.buildingStatus);
100
+ }
101
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.buildingStatusCode == null)) {
102
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.buildingStatusCode);
103
+ }
104
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.builtUpAreaSqm == null)) {
105
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, DoubleSerializer_getInstance(), value.builtUpAreaSqm);
106
+ }
107
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.constructionYear == null)) {
108
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, LongSerializer_getInstance(), value.constructionYear);
109
+ }
110
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.floorIdentities == null)) {
111
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, tmp2_cached[6].get_value_j01efc_k$(), value.floorIdentities);
112
+ }
113
+ tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.kartverketId);
114
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.nonResidentialSqm == null)) {
115
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, DoubleSerializer_getInstance(), value.nonResidentialSqm);
116
+ }
117
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.residentialSqm == null)) {
118
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, DoubleSerializer_getInstance(), value.residentialSqm);
119
+ }
120
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sequenceNumber == null)) {
121
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, LongSerializer_getInstance(), value.sequenceNumber);
122
+ }
123
+ tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
124
+ };
125
+ protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
126
+ return this.serialize_ywm5bf_k$(encoder, value instanceof CreateBuildingAlteration() ? value : THROW_CCE());
127
+ };
128
+ protoOf($).deserialize_sy6x50_k$ = function (decoder) {
129
+ var tmp0_desc = this.descriptor_1;
130
+ var tmp1_flag = true;
131
+ var tmp2_index = 0;
132
+ var tmp3_bitMask0 = 0;
133
+ var tmp4_local0 = null;
134
+ var tmp5_local1 = null;
135
+ var tmp6_local2 = null;
136
+ var tmp7_local3 = null;
137
+ var tmp8_local4 = null;
138
+ var tmp9_local5 = null;
139
+ var tmp10_local6 = null;
140
+ var tmp11_local7 = null;
141
+ var tmp12_local8 = null;
142
+ var tmp13_local9 = null;
143
+ var tmp14_local10 = null;
144
+ var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
145
+ var tmp16_cached = Companion_getInstance().$childSerializers_1;
146
+ if (tmp15_input.decodeSequentially_xlblqy_k$()) {
147
+ tmp4_local0 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
148
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
149
+ tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
150
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
151
+ tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
152
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
153
+ tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
154
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
155
+ tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, DoubleSerializer_getInstance(), tmp8_local4);
156
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
157
+ tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
158
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
159
+ tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, tmp16_cached[6].get_value_j01efc_k$(), tmp10_local6);
160
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
161
+ tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7);
162
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
163
+ tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, DoubleSerializer_getInstance(), tmp12_local8);
164
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
165
+ tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, DoubleSerializer_getInstance(), tmp13_local9);
166
+ tmp3_bitMask0 = tmp3_bitMask0 | 512;
167
+ tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
168
+ tmp3_bitMask0 = tmp3_bitMask0 | 1024;
169
+ } else
170
+ while (tmp1_flag) {
171
+ tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
172
+ switch (tmp2_index) {
173
+ case -1:
174
+ tmp1_flag = false;
175
+ break;
176
+ case 0:
177
+ tmp4_local0 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
178
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
179
+ break;
180
+ case 1:
181
+ tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
182
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
183
+ break;
184
+ case 2:
185
+ tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
186
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
187
+ break;
188
+ case 3:
189
+ tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
190
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
191
+ break;
192
+ case 4:
193
+ tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, DoubleSerializer_getInstance(), tmp8_local4);
194
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
195
+ break;
196
+ case 5:
197
+ tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
198
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
199
+ break;
200
+ case 6:
201
+ tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, tmp16_cached[6].get_value_j01efc_k$(), tmp10_local6);
202
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
203
+ break;
204
+ case 7:
205
+ tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7);
206
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
207
+ break;
208
+ case 8:
209
+ tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, DoubleSerializer_getInstance(), tmp12_local8);
210
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
211
+ break;
212
+ case 9:
213
+ tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, DoubleSerializer_getInstance(), tmp13_local9);
214
+ tmp3_bitMask0 = tmp3_bitMask0 | 512;
215
+ break;
216
+ case 10:
217
+ tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
218
+ tmp3_bitMask0 = tmp3_bitMask0 | 1024;
219
+ break;
220
+ default:
221
+ throw UnknownFieldException_init_$Create$(tmp2_index);
222
+ }
223
+ }
224
+ tmp15_input.endStructure_1xqz0n_k$(tmp0_desc);
225
+ return CreateBuildingAlteration_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, null);
226
+ };
227
+ protoOf($).get_descriptor_wjt6a0_k$ = function () {
228
+ return this.descriptor_1;
229
+ };
230
+ protoOf($).childSerializers_5ghqw5_k$ = function () {
231
+ var tmp0_cached = Companion_getInstance().$childSerializers_1;
232
+ // Inline function 'kotlin.arrayOf' call
233
+ // Inline function 'kotlin.js.unsafeCast' call
234
+ // Inline function 'kotlin.js.asDynamic' call
235
+ return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(tmp0_cached[6].get_value_j01efc_k$()), StringSerializer_getInstance(), get_nullable(DoubleSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance()), get_nullable(LongSerializer_getInstance())];
236
+ };
237
+ protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
238
+ $serializerClass = $;
239
+ }
240
+ return $serializerClass;
241
+ }
242
+ var $serializer_instance;
243
+ function $serializer_getInstance() {
244
+ if ($serializer_instance == null)
245
+ new ($serializer())();
246
+ return $serializer_instance;
247
+ }
248
+ function CreateBuildingAlteration_init_$Init$(seen0, alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber, serializationConstructorMarker, $this) {
249
+ if (!(128 === (128 & seen0))) {
250
+ throwMissingFieldException(seen0, 128, $serializer_getInstance().descriptor_1);
251
+ }
252
+ if (0 === (seen0 & 1))
253
+ $this.alteration = null;
254
+ else
255
+ $this.alteration = alteration;
256
+ if (0 === (seen0 & 2))
257
+ $this.alterationCode = null;
258
+ else
259
+ $this.alterationCode = alterationCode;
260
+ if (0 === (seen0 & 4))
261
+ $this.buildingStatus = null;
262
+ else
263
+ $this.buildingStatus = buildingStatus;
264
+ if (0 === (seen0 & 8))
265
+ $this.buildingStatusCode = null;
266
+ else
267
+ $this.buildingStatusCode = buildingStatusCode;
268
+ if (0 === (seen0 & 16))
269
+ $this.builtUpAreaSqm = null;
270
+ else
271
+ $this.builtUpAreaSqm = builtUpAreaSqm;
272
+ if (0 === (seen0 & 32))
273
+ $this.constructionYear = null;
274
+ else
275
+ $this.constructionYear = constructionYear;
276
+ if (0 === (seen0 & 64))
277
+ $this.floorIdentities = null;
278
+ else
279
+ $this.floorIdentities = floorIdentities;
280
+ $this.kartverketId = kartverketId;
281
+ if (0 === (seen0 & 256))
282
+ $this.nonResidentialSqm = null;
283
+ else
284
+ $this.nonResidentialSqm = nonResidentialSqm;
285
+ if (0 === (seen0 & 512))
286
+ $this.residentialSqm = null;
287
+ else
288
+ $this.residentialSqm = residentialSqm;
289
+ if (0 === (seen0 & 1024))
290
+ $this.sequenceNumber = null;
291
+ else
292
+ $this.sequenceNumber = sequenceNumber;
293
+ return $this;
294
+ }
295
+ function CreateBuildingAlteration_init_$Create$(seen0, alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber, serializationConstructorMarker) {
296
+ return CreateBuildingAlteration_init_$Init$(seen0, alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber, serializationConstructorMarker, objectCreate(protoOf(CreateBuildingAlteration())));
297
+ }
298
+ var CreateBuildingAlterationClass;
299
+ function CreateBuildingAlteration() {
300
+ if (CreateBuildingAlterationClass === VOID) {
301
+ initMetadataForClass($, 'CreateBuildingAlteration', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
302
+ function $(alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber) {
303
+ var __soliboProps = arguments.length === 1 && typeof alteration === 'object' && alteration !== null && alteration.constructor === Object;
304
+ var __soliboTmp, __soliboConverted = false;
305
+ if (__soliboProps) {
306
+ const props = alteration;
307
+ alteration = ('alteration' in props ? props.alteration : VOID);
308
+ alterationCode = ('alterationCode' in props ? props.alterationCode : VOID);
309
+ buildingStatus = ('buildingStatus' in props ? props.buildingStatus : VOID);
310
+ buildingStatusCode = ('buildingStatusCode' in props ? props.buildingStatusCode : VOID);
311
+ builtUpAreaSqm = ('builtUpAreaSqm' in props ? props.builtUpAreaSqm : VOID);
312
+ constructionYear = ('constructionYear' in props ? props.constructionYear : VOID);
313
+ floorIdentities = ('floorIdentities' in props ? props.floorIdentities : VOID);
314
+ kartverketId = ('kartverketId' in props ? props.kartverketId : VOID);
315
+ nonResidentialSqm = ('nonResidentialSqm' in props ? props.nonResidentialSqm : VOID);
316
+ residentialSqm = ('residentialSqm' in props ? props.residentialSqm : VOID);
317
+ sequenceNumber = ('sequenceNumber' in props ? props.sequenceNumber : VOID);
318
+ }
319
+ if ((__soliboTmp = __soliboToKt(constructionYear, ["bigint"])) !== constructionYear) { constructionYear = __soliboTmp; __soliboConverted = true; }
320
+ if ((__soliboTmp = __soliboToKt(floorIdentities, ["list",null])) !== floorIdentities) { floorIdentities = __soliboTmp; __soliboConverted = true; }
321
+ if ((__soliboTmp = __soliboToKt(sequenceNumber, ["bigint"])) !== sequenceNumber) { sequenceNumber = __soliboTmp; __soliboConverted = true; }
322
+ Companion_getInstance();
323
+ alteration = alteration === VOID ? null : alteration;
324
+ alterationCode = alterationCode === VOID ? null : alterationCode;
325
+ buildingStatus = buildingStatus === VOID ? null : buildingStatus;
326
+ buildingStatusCode = buildingStatusCode === VOID ? null : buildingStatusCode;
327
+ builtUpAreaSqm = builtUpAreaSqm === VOID ? null : builtUpAreaSqm;
328
+ constructionYear = constructionYear === VOID ? null : constructionYear;
329
+ floorIdentities = floorIdentities === VOID ? null : floorIdentities;
330
+ nonResidentialSqm = nonResidentialSqm === VOID ? null : nonResidentialSqm;
331
+ residentialSqm = residentialSqm === VOID ? null : residentialSqm;
332
+ sequenceNumber = sequenceNumber === VOID ? null : sequenceNumber;
333
+ this.alteration = alteration;
334
+ this.alterationCode = alterationCode;
335
+ this.buildingStatus = buildingStatus;
336
+ this.buildingStatusCode = buildingStatusCode;
337
+ this.builtUpAreaSqm = builtUpAreaSqm;
338
+ this.constructionYear = constructionYear;
339
+ this.floorIdentities = floorIdentities;
340
+ this.kartverketId = kartverketId;
341
+ this.nonResidentialSqm = nonResidentialSqm;
342
+ this.residentialSqm = residentialSqm;
343
+ this.sequenceNumber = sequenceNumber;
344
+ if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
345
+ }
346
+ protoOf($).get_alteration_vxaaxk_k$ = function () {
347
+ return this.alteration;
348
+ };
349
+ protoOf($).get_alterationCode_sah1dh_k$ = function () {
350
+ return this.alterationCode;
351
+ };
352
+ protoOf($).get_buildingStatus_p1xicx_k$ = function () {
353
+ return this.buildingStatus;
354
+ };
355
+ protoOf($).get_buildingStatusCode_kubhyc_k$ = function () {
356
+ return this.buildingStatusCode;
357
+ };
358
+ protoOf($).get_builtUpAreaSqm_z4mb6a_k$ = function () {
359
+ return this.builtUpAreaSqm;
360
+ };
361
+ protoOf($).get_constructionYear_2obz3r_k$ = function () {
362
+ return this.constructionYear;
363
+ };
364
+ protoOf($).get_floorIdentities_emtxb5_k$ = function () {
365
+ return this.floorIdentities;
366
+ };
367
+ protoOf($).get_kartverketId_e7pfw3_k$ = function () {
368
+ return this.kartverketId;
369
+ };
370
+ protoOf($).get_nonResidentialSqm_7r11e9_k$ = function () {
371
+ return this.nonResidentialSqm;
372
+ };
373
+ protoOf($).get_residentialSqm_5c25e4_k$ = function () {
374
+ return this.residentialSqm;
375
+ };
376
+ protoOf($).get_sequenceNumber_ayu2k3_k$ = function () {
377
+ return this.sequenceNumber;
378
+ };
379
+ protoOf($).component1_7eebsc_k$ = function () {
380
+ return this.alteration;
381
+ };
382
+ protoOf($).component2_7eebsb_k$ = function () {
383
+ return this.alterationCode;
384
+ };
385
+ protoOf($).component3_7eebsa_k$ = function () {
386
+ return this.buildingStatus;
387
+ };
388
+ protoOf($).component4_7eebs9_k$ = function () {
389
+ return this.buildingStatusCode;
390
+ };
391
+ protoOf($).component5_7eebs8_k$ = function () {
392
+ return this.builtUpAreaSqm;
393
+ };
394
+ protoOf($).component6_7eebs7_k$ = function () {
395
+ return this.constructionYear;
396
+ };
397
+ protoOf($).component7_7eebs6_k$ = function () {
398
+ return this.floorIdentities;
399
+ };
400
+ protoOf($).component8_7eebs5_k$ = function () {
401
+ return this.kartverketId;
402
+ };
403
+ protoOf($).component9_7eebs4_k$ = function () {
404
+ return this.nonResidentialSqm;
405
+ };
406
+ protoOf($).component10_gazzfo_k$ = function () {
407
+ return this.residentialSqm;
408
+ };
409
+ protoOf($).component11_gazzfn_k$ = function () {
410
+ return this.sequenceNumber;
411
+ };
412
+ protoOf($).copy_hac4q1_k$ = function (alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber) {
413
+ return new (CreateBuildingAlteration())(alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber);
414
+ };
415
+ protoOf($).copy = function (alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber, $super) {
416
+ alteration = alteration === VOID ? this.alteration : alteration;
417
+ alterationCode = alterationCode === VOID ? this.alterationCode : alterationCode;
418
+ buildingStatus = buildingStatus === VOID ? this.buildingStatus : buildingStatus;
419
+ buildingStatusCode = buildingStatusCode === VOID ? this.buildingStatusCode : buildingStatusCode;
420
+ builtUpAreaSqm = builtUpAreaSqm === VOID ? this.builtUpAreaSqm : builtUpAreaSqm;
421
+ constructionYear = constructionYear === VOID ? this.constructionYear : constructionYear;
422
+ floorIdentities = floorIdentities === VOID ? this.floorIdentities : floorIdentities;
423
+ kartverketId = kartverketId === VOID ? this.kartverketId : kartverketId;
424
+ nonResidentialSqm = nonResidentialSqm === VOID ? this.nonResidentialSqm : nonResidentialSqm;
425
+ residentialSqm = residentialSqm === VOID ? this.residentialSqm : residentialSqm;
426
+ sequenceNumber = sequenceNumber === VOID ? this.sequenceNumber : sequenceNumber;
427
+ return $super === VOID ? this.copy_hac4q1_k$(alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber) : $super.copy_hac4q1_k$.call(this, alteration, alterationCode, buildingStatus, buildingStatusCode, builtUpAreaSqm, constructionYear, floorIdentities, kartverketId, nonResidentialSqm, residentialSqm, sequenceNumber);
428
+ };
429
+ protoOf($).toString = function () {
430
+ return 'CreateBuildingAlteration(alteration=' + this.alteration + ', alterationCode=' + this.alterationCode + ', buildingStatus=' + this.buildingStatus + ', buildingStatusCode=' + this.buildingStatusCode + ', builtUpAreaSqm=' + this.builtUpAreaSqm + ', constructionYear=' + toString(this.constructionYear) + ', floorIdentities=' + toString(this.floorIdentities) + ', kartverketId=' + this.kartverketId + ', nonResidentialSqm=' + this.nonResidentialSqm + ', residentialSqm=' + this.residentialSqm + ', sequenceNumber=' + toString(this.sequenceNumber) + ')';
431
+ };
432
+ protoOf($).hashCode = function () {
433
+ var result = this.alteration == null ? 0 : getStringHashCode(this.alteration);
434
+ result = imul(result, 31) + (this.alterationCode == null ? 0 : getStringHashCode(this.alterationCode)) | 0;
435
+ result = imul(result, 31) + (this.buildingStatus == null ? 0 : getStringHashCode(this.buildingStatus)) | 0;
436
+ result = imul(result, 31) + (this.buildingStatusCode == null ? 0 : getStringHashCode(this.buildingStatusCode)) | 0;
437
+ result = imul(result, 31) + (this.builtUpAreaSqm == null ? 0 : getNumberHashCode(this.builtUpAreaSqm)) | 0;
438
+ result = imul(result, 31) + (this.constructionYear == null ? 0 : getBigIntHashCode(this.constructionYear)) | 0;
439
+ result = imul(result, 31) + (this.floorIdentities == null ? 0 : hashCode(this.floorIdentities)) | 0;
440
+ result = imul(result, 31) + getStringHashCode(this.kartverketId) | 0;
441
+ result = imul(result, 31) + (this.nonResidentialSqm == null ? 0 : getNumberHashCode(this.nonResidentialSqm)) | 0;
442
+ result = imul(result, 31) + (this.residentialSqm == null ? 0 : getNumberHashCode(this.residentialSqm)) | 0;
443
+ result = imul(result, 31) + (this.sequenceNumber == null ? 0 : getBigIntHashCode(this.sequenceNumber)) | 0;
444
+ return result;
445
+ };
446
+ protoOf($).equals = function (other) {
447
+ if (this === other)
448
+ return true;
449
+ if (!(other instanceof CreateBuildingAlteration()))
450
+ return false;
451
+ if (!(this.alteration == other.alteration))
452
+ return false;
453
+ if (!(this.alterationCode == other.alterationCode))
454
+ return false;
455
+ if (!(this.buildingStatus == other.buildingStatus))
456
+ return false;
457
+ if (!(this.buildingStatusCode == other.buildingStatusCode))
458
+ return false;
459
+ if (!equals(this.builtUpAreaSqm, other.builtUpAreaSqm))
460
+ return false;
461
+ if (!(this.constructionYear == other.constructionYear))
462
+ return false;
463
+ if (!equals(this.floorIdentities, other.floorIdentities))
464
+ return false;
465
+ if (!(this.kartverketId === other.kartverketId))
466
+ return false;
467
+ if (!equals(this.nonResidentialSqm, other.nonResidentialSqm))
468
+ return false;
469
+ if (!equals(this.residentialSqm, other.residentialSqm))
470
+ return false;
471
+ if (!(this.sequenceNumber == other.sequenceNumber))
472
+ return false;
473
+ return true;
474
+ };
475
+ /* Solibo boundary patches */
476
+ Object.defineProperty($, 'name', { value: "CreateBuildingAlteration", configurable: true });
477
+ __soliboRegisterOwnFields($, {"floorIdentities":["list",null]});
478
+ __soliboRegisterLookup("CreateBuildingAlteration", () => $);
479
+ CreateBuildingAlterationClass = $;
480
+ }
481
+ return CreateBuildingAlterationClass;
482
+ }
483
+ //region block: exports
484
+ export {
485
+ $serializer_getInstance as $serializer_getInstancedkgb9z0s7sk7,
486
+ CreateBuildingAlteration as CreateBuildingAlterationkd7gh6qgtzza,
487
+ };
488
+ //endregion
489
+
@@ -67,6 +67,7 @@ export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/Com
67
67
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/ContactInformation.export.mjs';
68
68
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateAddress.export.mjs';
69
69
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuilding.export.mjs';
70
+ export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuildingAlteration.export.mjs';
70
71
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateBuildingFloor.export.mjs';
71
72
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateCompany.export.mjs';
72
73
  export * from './solibo-sdk-sdk-api-company/no/solibo/oss/sdk/api/gen/models/CreateCompanyAddressCommand.export.mjs';
@@ -0,0 +1,34 @@
1
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
2
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
+ import { Jsonsmkyu9xjl7fv as Json } from '../../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
4
+ //region block: imports
5
+ //endregion
6
+ //region block: pre-declaration
7
+ //endregion
8
+ function get_sdkJson() {
9
+ _init_properties_SdkJson_kt__k9l3ww();
10
+ return sdkJson;
11
+ }
12
+ var sdkJson;
13
+ function sdkJson$lambda($this$Json) {
14
+ _init_properties_SdkJson_kt__k9l3ww();
15
+ $this$Json.ignoreUnknownKeys_1 = true;
16
+ $this$Json.encodeDefaults_1 = false;
17
+ $this$Json.explicitNulls_1 = false;
18
+ $this$Json.coerceInputValues_1 = true;
19
+ $this$Json.isLenient_1 = true;
20
+ return Unit_instance;
21
+ }
22
+ var properties_initialized_SdkJson_kt_4rw9gy;
23
+ function _init_properties_SdkJson_kt__k9l3ww() {
24
+ if (!properties_initialized_SdkJson_kt_4rw9gy) {
25
+ properties_initialized_SdkJson_kt_4rw9gy = true;
26
+ sdkJson = Json(VOID, sdkJson$lambda);
27
+ }
28
+ }
29
+ //region block: exports
30
+ export {
31
+ get_sdkJson as get_sdkJsonn3cnvlthwtjo,
32
+ };
33
+ //endregion
34
+