@solibo/solibo-sdk 1.56.0 → 1.57.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.
- package/client/bankAccounts.d.mts +1 -1
- package/client/economy.d.mts +1 -1
- package/client/utilityUsage.d.mts +3 -0
- package/client/utilityUsage.mjs +85 -0
- package/client-core.mjs +36 -0
- package/client.d.mts +49 -0
- package/client.mjs +1 -0
- package/core.d.mts +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
- package/operations/bankAccounts.d.mts +1 -1
- package/operations/economy.d.mts +1 -1
- package/operations/utilityUsage.d.mts +6 -0
- package/operations/utilityUsage.mjs +20 -0
- package/package.json +17 -1
- package/solibo-cycles/kotlin-kotlin-stdlib-12.mjs +10 -10
- package/solibo-cycles/kotlinx-coroutines-core-16.mjs +5 -5
- package/solibo-cycles/kotlinx-coroutines-core-17.mjs +1 -1
- package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +116 -36
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/HomeApi.export.d.mts +1 -0
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/HomeApi.mjs +7 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.export.d.mts +2 -1
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.export.mjs +2 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.mjs +16 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.export.d.mts +15 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.export.mjs +22 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.mjs +257 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.export.d.mts +3 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.export.mjs +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.mjs +161 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.export.d.mts +3 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.export.mjs +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.mjs +162 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.mjs +265 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.mjs +253 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.export.d.mts +19 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.mjs +293 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.mjs +253 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.export.d.mts +53 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.export.mjs +39 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.mjs +177 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.export.d.mts +17 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.mjs +210 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.mjs +256 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.export.d.mts +19 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.mjs +266 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.export.d.mts +41 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.export.mjs +35 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.mjs +168 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.export.d.mts +61 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.export.mjs +42 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.mjs +186 -0
- package/solibo-sdk-sdk-api-economy.mjs +13 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/auth/SharedSessionRefresh.js.mjs +353 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +291 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { $serializer_getInstance1dkfhddygxa1x as $serializer_getInstance } from './UsagePoint.mjs';
|
|
2
|
+
import { ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs';
|
|
3
|
+
import { Companion_getInstance3aklyq2lu788w as Companion_getInstance } from './UsageUnit.mjs';
|
|
4
|
+
import { Companion_getInstance2ndvk6ajc3p32 as Companion_getInstance_0 } from './Utility.mjs';
|
|
5
|
+
import { LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Lazy.mjs';
|
|
6
|
+
import { lazy1261dae0bgscp as lazy } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/kotlin.mjs';
|
|
7
|
+
import {
|
|
8
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
9
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
10
|
+
toString1pkumu07cwy4m as toString,
|
|
11
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
12
|
+
equals2au1ep9vhcato as equals,
|
|
13
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
14
|
+
import {
|
|
15
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
16
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
17
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
18
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
19
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
20
|
+
import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.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 { UsagePoint220y8jcn3pgwe as __soliboType_UsagePoint } from './UsagePoint.mjs';
|
|
32
|
+
import { UsageUnit3qr9kg6b9hrp7 as __soliboType_UsageUnit } from './UsageUnit.mjs';
|
|
33
|
+
import { Utility3u10gcpo9i187 as __soliboType_Utility } from './Utility.mjs';
|
|
34
|
+
//region block: imports
|
|
35
|
+
var imul = Math.imul;
|
|
36
|
+
//endregion
|
|
37
|
+
//region block: pre-declaration
|
|
38
|
+
//endregion
|
|
39
|
+
function SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg() {
|
|
40
|
+
return new (ArrayListSerializer())($serializer_getInstance());
|
|
41
|
+
}
|
|
42
|
+
function SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_0() {
|
|
43
|
+
return new (ArrayListSerializer())($serializer_getInstance());
|
|
44
|
+
}
|
|
45
|
+
function SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_1() {
|
|
46
|
+
return Companion_getInstance().serializer_9w0wvi_k$();
|
|
47
|
+
}
|
|
48
|
+
function SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_2() {
|
|
49
|
+
return Companion_getInstance_0().serializer_9w0wvi_k$();
|
|
50
|
+
}
|
|
51
|
+
var CompanionClass;
|
|
52
|
+
function Companion() {
|
|
53
|
+
if (CompanionClass === VOID) {
|
|
54
|
+
initMetadataForCompanion($);
|
|
55
|
+
function $() {
|
|
56
|
+
Companion_instance = this;
|
|
57
|
+
var tmp = this;
|
|
58
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
59
|
+
var tmp_1 = lazy(tmp_0, SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg);
|
|
60
|
+
var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
61
|
+
var tmp_3 = lazy(tmp_2, SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_0);
|
|
62
|
+
var tmp_4 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
63
|
+
var tmp_5 = lazy(tmp_4, SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_1);
|
|
64
|
+
var tmp_6 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
65
|
+
// Inline function 'kotlin.arrayOf' call
|
|
66
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
67
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
68
|
+
tmp.$childSerializers_1 = [tmp_1, tmp_3, tmp_5, lazy(tmp_6, SectionUtilitySeries$Companion$$childSerializers$_anonymous__j2asxg_2)];
|
|
69
|
+
}
|
|
70
|
+
CompanionClass = $;
|
|
71
|
+
}
|
|
72
|
+
return CompanionClass;
|
|
73
|
+
}
|
|
74
|
+
var Companion_instance;
|
|
75
|
+
function Companion_getInstance_1() {
|
|
76
|
+
if (Companion_instance == null)
|
|
77
|
+
new (Companion())();
|
|
78
|
+
return Companion_instance;
|
|
79
|
+
}
|
|
80
|
+
var $serializerClass;
|
|
81
|
+
function $serializer() {
|
|
82
|
+
if ($serializerClass === VOID) {
|
|
83
|
+
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
84
|
+
function $() {
|
|
85
|
+
$serializer_instance = this;
|
|
86
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.SectionUtilitySeries', this, 4);
|
|
87
|
+
tmp0_serialDesc.addElement_5pzumi_k$('companyAveragePerSection', false);
|
|
88
|
+
tmp0_serialDesc.addElement_5pzumi_k$('points', false);
|
|
89
|
+
tmp0_serialDesc.addElement_5pzumi_k$('unit', false);
|
|
90
|
+
tmp0_serialDesc.addElement_5pzumi_k$('utility', false);
|
|
91
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
92
|
+
}
|
|
93
|
+
protoOf($).serialize_ifjumy_k$ = function (encoder, value) {
|
|
94
|
+
var tmp0_desc = this.descriptor_1;
|
|
95
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
96
|
+
var tmp2_cached = Companion_getInstance_1().$childSerializers_1;
|
|
97
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.companyAveragePerSection);
|
|
98
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1].get_value_j01efc_k$(), value.points);
|
|
99
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2].get_value_j01efc_k$(), value.unit);
|
|
100
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3].get_value_j01efc_k$(), value.utility);
|
|
101
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
102
|
+
};
|
|
103
|
+
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
104
|
+
return this.serialize_ifjumy_k$(encoder, value instanceof SectionUtilitySeries() ? value : THROW_CCE());
|
|
105
|
+
};
|
|
106
|
+
protoOf($).deserialize_sy6x50_k$ = function (decoder) {
|
|
107
|
+
var tmp0_desc = this.descriptor_1;
|
|
108
|
+
var tmp1_flag = true;
|
|
109
|
+
var tmp2_index = 0;
|
|
110
|
+
var tmp3_bitMask0 = 0;
|
|
111
|
+
var tmp4_local0 = null;
|
|
112
|
+
var tmp5_local1 = null;
|
|
113
|
+
var tmp6_local2 = null;
|
|
114
|
+
var tmp7_local3 = null;
|
|
115
|
+
var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
116
|
+
var tmp9_cached = Companion_getInstance_1().$childSerializers_1;
|
|
117
|
+
if (tmp8_input.decodeSequentially_xlblqy_k$()) {
|
|
118
|
+
tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
119
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
120
|
+
tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1].get_value_j01efc_k$(), tmp5_local1);
|
|
121
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
122
|
+
tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2].get_value_j01efc_k$(), tmp6_local2);
|
|
123
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
124
|
+
tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3].get_value_j01efc_k$(), tmp7_local3);
|
|
125
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
126
|
+
} else
|
|
127
|
+
while (tmp1_flag) {
|
|
128
|
+
tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
129
|
+
switch (tmp2_index) {
|
|
130
|
+
case -1:
|
|
131
|
+
tmp1_flag = false;
|
|
132
|
+
break;
|
|
133
|
+
case 0:
|
|
134
|
+
tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
135
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
136
|
+
break;
|
|
137
|
+
case 1:
|
|
138
|
+
tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1].get_value_j01efc_k$(), tmp5_local1);
|
|
139
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
140
|
+
break;
|
|
141
|
+
case 2:
|
|
142
|
+
tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2].get_value_j01efc_k$(), tmp6_local2);
|
|
143
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
144
|
+
break;
|
|
145
|
+
case 3:
|
|
146
|
+
tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3].get_value_j01efc_k$(), tmp7_local3);
|
|
147
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
148
|
+
break;
|
|
149
|
+
default:
|
|
150
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
tmp8_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
154
|
+
return SectionUtilitySeries_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
155
|
+
};
|
|
156
|
+
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
157
|
+
return this.descriptor_1;
|
|
158
|
+
};
|
|
159
|
+
protoOf($).childSerializers_5ghqw5_k$ = function () {
|
|
160
|
+
var tmp0_cached = Companion_getInstance_1().$childSerializers_1;
|
|
161
|
+
// Inline function 'kotlin.arrayOf' call
|
|
162
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
163
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
164
|
+
return [tmp0_cached[0].get_value_j01efc_k$(), tmp0_cached[1].get_value_j01efc_k$(), tmp0_cached[2].get_value_j01efc_k$(), tmp0_cached[3].get_value_j01efc_k$()];
|
|
165
|
+
};
|
|
166
|
+
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
167
|
+
$serializerClass = $;
|
|
168
|
+
}
|
|
169
|
+
return $serializerClass;
|
|
170
|
+
}
|
|
171
|
+
var $serializer_instance;
|
|
172
|
+
function $serializer_getInstance_0() {
|
|
173
|
+
if ($serializer_instance == null)
|
|
174
|
+
new ($serializer())();
|
|
175
|
+
return $serializer_instance;
|
|
176
|
+
}
|
|
177
|
+
function SectionUtilitySeries_init_$Init$(seen0, companyAveragePerSection, points, unit, utility, serializationConstructorMarker, $this) {
|
|
178
|
+
if (!(15 === (15 & seen0))) {
|
|
179
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().descriptor_1);
|
|
180
|
+
}
|
|
181
|
+
$this.companyAveragePerSection = companyAveragePerSection;
|
|
182
|
+
$this.points = points;
|
|
183
|
+
$this.unit = unit;
|
|
184
|
+
$this.utility = utility;
|
|
185
|
+
return $this;
|
|
186
|
+
}
|
|
187
|
+
function SectionUtilitySeries_init_$Create$(seen0, companyAveragePerSection, points, unit, utility, serializationConstructorMarker) {
|
|
188
|
+
return SectionUtilitySeries_init_$Init$(seen0, companyAveragePerSection, points, unit, utility, serializationConstructorMarker, objectCreate(protoOf(SectionUtilitySeries())));
|
|
189
|
+
}
|
|
190
|
+
var SectionUtilitySeriesClass;
|
|
191
|
+
function SectionUtilitySeries() {
|
|
192
|
+
if (SectionUtilitySeriesClass === VOID) {
|
|
193
|
+
initMetadataForClass($, 'SectionUtilitySeries', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
194
|
+
function $(companyAveragePerSection, points, unit, utility) {
|
|
195
|
+
var __soliboProps = arguments.length === 1 && typeof companyAveragePerSection === 'object' && companyAveragePerSection !== null && companyAveragePerSection.constructor === Object;
|
|
196
|
+
var __soliboTmp, __soliboConverted = false;
|
|
197
|
+
if (__soliboProps) {
|
|
198
|
+
const props = companyAveragePerSection;
|
|
199
|
+
companyAveragePerSection = ('companyAveragePerSection' in props ? props.companyAveragePerSection : VOID);
|
|
200
|
+
points = ('points' in props ? props.points : VOID);
|
|
201
|
+
unit = ('unit' in props ? props.unit : VOID);
|
|
202
|
+
utility = ('utility' in props ? props.utility : VOID);
|
|
203
|
+
}
|
|
204
|
+
if ((__soliboTmp = __soliboToKt(companyAveragePerSection, ["list",["model","UsagePoint"]])) !== companyAveragePerSection) { companyAveragePerSection = __soliboTmp; __soliboConverted = true; }
|
|
205
|
+
if ((__soliboTmp = __soliboToKt(points, ["list",["model","UsagePoint"]])) !== points) { points = __soliboTmp; __soliboConverted = true; }
|
|
206
|
+
if ((__soliboTmp = __soliboToKt(unit, ["enum","UsageUnit"])) !== unit) { unit = __soliboTmp; __soliboConverted = true; }
|
|
207
|
+
if ((__soliboTmp = __soliboToKt(utility, ["enum","Utility"])) !== utility) { utility = __soliboTmp; __soliboConverted = true; }
|
|
208
|
+
Companion_getInstance_1();
|
|
209
|
+
this.companyAveragePerSection = companyAveragePerSection;
|
|
210
|
+
this.points = points;
|
|
211
|
+
this.unit = unit;
|
|
212
|
+
this.utility = utility;
|
|
213
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
214
|
+
}
|
|
215
|
+
protoOf($).get_companyAveragePerSection_zh69jl_k$ = function () {
|
|
216
|
+
return this.companyAveragePerSection;
|
|
217
|
+
};
|
|
218
|
+
protoOf($).get_points_i5obn0_k$ = function () {
|
|
219
|
+
return this.points;
|
|
220
|
+
};
|
|
221
|
+
protoOf($).get_unit_wovp3h_k$ = function () {
|
|
222
|
+
return this.unit;
|
|
223
|
+
};
|
|
224
|
+
protoOf($).get_utility_mwfwd_k$ = function () {
|
|
225
|
+
return this.utility;
|
|
226
|
+
};
|
|
227
|
+
protoOf($).component1_7eebsc_k$ = function () {
|
|
228
|
+
return this.companyAveragePerSection;
|
|
229
|
+
};
|
|
230
|
+
protoOf($).component2_7eebsb_k$ = function () {
|
|
231
|
+
return this.points;
|
|
232
|
+
};
|
|
233
|
+
protoOf($).component3_7eebsa_k$ = function () {
|
|
234
|
+
return this.unit;
|
|
235
|
+
};
|
|
236
|
+
protoOf($).component4_7eebs9_k$ = function () {
|
|
237
|
+
return this.utility;
|
|
238
|
+
};
|
|
239
|
+
protoOf($).copy_co5rj0_k$ = function (companyAveragePerSection, points, unit, utility) {
|
|
240
|
+
return new (SectionUtilitySeries())(companyAveragePerSection, points, unit, utility);
|
|
241
|
+
};
|
|
242
|
+
protoOf($).copy = function (companyAveragePerSection, points, unit, utility, $super) {
|
|
243
|
+
companyAveragePerSection = companyAveragePerSection === VOID ? this.companyAveragePerSection : companyAveragePerSection;
|
|
244
|
+
points = points === VOID ? this.points : points;
|
|
245
|
+
unit = unit === VOID ? this.unit : unit;
|
|
246
|
+
utility = utility === VOID ? this.utility : utility;
|
|
247
|
+
return $super === VOID ? this.copy_co5rj0_k$(companyAveragePerSection, points, unit, utility) : $super.copy_co5rj0_k$.call(this, companyAveragePerSection, points, unit, utility);
|
|
248
|
+
};
|
|
249
|
+
protoOf($).toString = function () {
|
|
250
|
+
return 'SectionUtilitySeries(companyAveragePerSection=' + toString(this.companyAveragePerSection) + ', points=' + toString(this.points) + ', unit=' + this.unit.toString() + ', utility=' + this.utility.toString() + ')';
|
|
251
|
+
};
|
|
252
|
+
protoOf($).hashCode = function () {
|
|
253
|
+
var result = hashCode(this.companyAveragePerSection);
|
|
254
|
+
result = imul(result, 31) + hashCode(this.points) | 0;
|
|
255
|
+
result = imul(result, 31) + this.unit.hashCode() | 0;
|
|
256
|
+
result = imul(result, 31) + this.utility.hashCode() | 0;
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
259
|
+
protoOf($).equals = function (other) {
|
|
260
|
+
if (this === other)
|
|
261
|
+
return true;
|
|
262
|
+
if (!(other instanceof SectionUtilitySeries()))
|
|
263
|
+
return false;
|
|
264
|
+
if (!equals(this.companyAveragePerSection, other.companyAveragePerSection))
|
|
265
|
+
return false;
|
|
266
|
+
if (!equals(this.points, other.points))
|
|
267
|
+
return false;
|
|
268
|
+
if (!this.unit.equals(other.unit))
|
|
269
|
+
return false;
|
|
270
|
+
if (!this.utility.equals(other.utility))
|
|
271
|
+
return false;
|
|
272
|
+
return true;
|
|
273
|
+
};
|
|
274
|
+
/* Solibo boundary patches */
|
|
275
|
+
Object.defineProperty($, 'name', { value: "SectionUtilitySeries", configurable: true });
|
|
276
|
+
__soliboRegisterOwnFields($, {"companyAveragePerSection":["list",["model","UsagePoint"]],"points":["list",["model","UsagePoint"]]});
|
|
277
|
+
__soliboRegisterLookup("SectionUtilitySeries", () => $);
|
|
278
|
+
SectionUtilitySeriesClass = $;
|
|
279
|
+
}
|
|
280
|
+
return SectionUtilitySeriesClass;
|
|
281
|
+
}
|
|
282
|
+
//region block: exports
|
|
283
|
+
export {
|
|
284
|
+
$serializer_getInstance_0 as $serializer_getInstance3dwklfuqvz4ij,
|
|
285
|
+
SectionUtilitySeries as SectionUtilitySeries2innr7y21aj29,
|
|
286
|
+
};
|
|
287
|
+
//endregion
|
|
288
|
+
|
|
289
|
+
/* Solibo boundary lookups */
|
|
290
|
+
__soliboRegisterLookup("UsagePoint", () => __soliboType_UsagePoint());
|
|
291
|
+
__soliboRegisterLookup("UsageUnit", () => __soliboType_UsageUnit());
|
|
292
|
+
__soliboRegisterLookup("Utility", () => __soliboType_Utility());
|
|
293
|
+
|
package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare class SectionUtilityUsage {
|
|
4
|
+
constructor(range: UsageRange, sectionId: bigint, series: KtList<SectionUtilitySeries>);
|
|
5
|
+
get range(): UsageRange;
|
|
6
|
+
get sectionId(): bigint;
|
|
7
|
+
get series(): KtList<SectionUtilitySeries>;
|
|
8
|
+
copy(range?: UsageRange, sectionId?: bigint, series?: KtList<SectionUtilitySeries>): SectionUtilityUsage;
|
|
9
|
+
toString(): string;
|
|
10
|
+
hashCode(): number;
|
|
11
|
+
equals(other: Nullable<any>): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace SectionUtilityUsage {
|
|
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 () => SectionUtilityUsage;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SectionUtilityUsagezcstzqlmrfvo as SectionUtilityUsage } from './SectionUtilityUsage.mjs';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
//region block: exports
|
|
7
|
+
var SectionUtilityUsage_0 = SectionUtilityUsage();
|
|
8
|
+
export {
|
|
9
|
+
SectionUtilityUsage_0 as SectionUtilityUsage,
|
|
10
|
+
};
|
|
11
|
+
//endregion
|
|
12
|
+
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { $serializer_getInstance3dwklfuqvz4ij as $serializer_getInstance } from './SectionUtilitySeries.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
|
+
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
10
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
11
|
+
equals2au1ep9vhcato as equals,
|
|
12
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
13
|
+
import {
|
|
14
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
15
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
16
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
17
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
18
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
19
|
+
import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
|
|
20
|
+
import { $serializer_getInstance18vq10ylvyfab as $serializer_getInstance_0 } from './UsageRange.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 { LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
|
|
24
|
+
import {
|
|
25
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
26
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
27
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
|
|
28
|
+
import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
|
|
29
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
30
|
+
import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
|
|
31
|
+
import { __soliboBoundaryState, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../solibo-boundary.mjs';
|
|
32
|
+
import { SectionUtilitySeries2innr7y21aj29 as __soliboType_SectionUtilitySeries } from './SectionUtilitySeries.mjs';
|
|
33
|
+
import { UsageRange393sew4768m2p as __soliboType_UsageRange } from './UsageRange.mjs';
|
|
34
|
+
//region block: imports
|
|
35
|
+
var imul = Math.imul;
|
|
36
|
+
//endregion
|
|
37
|
+
//region block: pre-declaration
|
|
38
|
+
//endregion
|
|
39
|
+
function SectionUtilityUsage$Companion$$childSerializers$_anonymous__kr6g1c() {
|
|
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 = [null, null, lazy(tmp_0, SectionUtilityUsage$Companion$$childSerializers$_anonymous__kr6g1c)];
|
|
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.SectionUtilityUsage', this, 3);
|
|
72
|
+
tmp0_serialDesc.addElement_5pzumi_k$('range', false);
|
|
73
|
+
tmp0_serialDesc.addElement_5pzumi_k$('sectionId', false);
|
|
74
|
+
tmp0_serialDesc.addElement_5pzumi_k$('series', false);
|
|
75
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
76
|
+
}
|
|
77
|
+
protoOf($).serialize_u7bd2g_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, $serializer_getInstance_0(), value.range);
|
|
82
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 1, value.sectionId);
|
|
83
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2].get_value_j01efc_k$(), value.series);
|
|
84
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
85
|
+
};
|
|
86
|
+
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
87
|
+
return this.serialize_u7bd2g_k$(encoder, value instanceof SectionUtilityUsage() ? 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 = 0n;
|
|
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, $serializer_getInstance_0(), tmp4_local0);
|
|
101
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
102
|
+
tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1);
|
|
103
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
104
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2].get_value_j01efc_k$(), 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, $serializer_getInstance_0(), tmp4_local0);
|
|
115
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
116
|
+
break;
|
|
117
|
+
case 1:
|
|
118
|
+
tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1);
|
|
119
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
120
|
+
break;
|
|
121
|
+
case 2:
|
|
122
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2].get_value_j01efc_k$(), 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 SectionUtilityUsage_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
|
+
var tmp0_cached = Companion_getInstance().$childSerializers_1;
|
|
137
|
+
// Inline function 'kotlin.arrayOf' call
|
|
138
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
139
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
140
|
+
return [$serializer_getInstance_0(), LongSerializer_getInstance(), tmp0_cached[2].get_value_j01efc_k$()];
|
|
141
|
+
};
|
|
142
|
+
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
143
|
+
$serializerClass = $;
|
|
144
|
+
}
|
|
145
|
+
return $serializerClass;
|
|
146
|
+
}
|
|
147
|
+
var $serializer_instance;
|
|
148
|
+
function $serializer_getInstance_1() {
|
|
149
|
+
if ($serializer_instance == null)
|
|
150
|
+
new ($serializer())();
|
|
151
|
+
return $serializer_instance;
|
|
152
|
+
}
|
|
153
|
+
function SectionUtilityUsage_init_$Init$(seen0, range, sectionId, series, serializationConstructorMarker, $this) {
|
|
154
|
+
if (!(7 === (7 & seen0))) {
|
|
155
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().descriptor_1);
|
|
156
|
+
}
|
|
157
|
+
$this.range = range;
|
|
158
|
+
$this.sectionId = sectionId;
|
|
159
|
+
$this.series = series;
|
|
160
|
+
return $this;
|
|
161
|
+
}
|
|
162
|
+
function SectionUtilityUsage_init_$Create$(seen0, range, sectionId, series, serializationConstructorMarker) {
|
|
163
|
+
return SectionUtilityUsage_init_$Init$(seen0, range, sectionId, series, serializationConstructorMarker, objectCreate(protoOf(SectionUtilityUsage())));
|
|
164
|
+
}
|
|
165
|
+
var SectionUtilityUsageClass;
|
|
166
|
+
function SectionUtilityUsage() {
|
|
167
|
+
if (SectionUtilityUsageClass === VOID) {
|
|
168
|
+
initMetadataForClass($, 'SectionUtilityUsage', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
169
|
+
function $(range, sectionId, series) {
|
|
170
|
+
var __soliboProps = arguments.length === 1 && typeof range === 'object' && range !== null && range.constructor === Object;
|
|
171
|
+
var __soliboTmp, __soliboConverted = false;
|
|
172
|
+
if (__soliboProps) {
|
|
173
|
+
const props = range;
|
|
174
|
+
range = ('range' in props ? props.range : VOID);
|
|
175
|
+
sectionId = ('sectionId' in props ? props.sectionId : VOID);
|
|
176
|
+
series = ('series' in props ? props.series : VOID);
|
|
177
|
+
}
|
|
178
|
+
if ((__soliboTmp = __soliboToKt(range, ["model","UsageRange"])) !== range) { range = __soliboTmp; __soliboConverted = true; }
|
|
179
|
+
if ((__soliboTmp = __soliboToKt(sectionId, ["bigint"])) !== sectionId) { sectionId = __soliboTmp; __soliboConverted = true; }
|
|
180
|
+
if ((__soliboTmp = __soliboToKt(series, ["list",["model","SectionUtilitySeries"]])) !== series) { series = __soliboTmp; __soliboConverted = true; }
|
|
181
|
+
Companion_getInstance();
|
|
182
|
+
this.range = range;
|
|
183
|
+
this.sectionId = sectionId;
|
|
184
|
+
this.series = series;
|
|
185
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
186
|
+
}
|
|
187
|
+
protoOf($).get_range_ixu978_k$ = function () {
|
|
188
|
+
return this.range;
|
|
189
|
+
};
|
|
190
|
+
protoOf($).get_sectionId_2pkr0p_k$ = function () {
|
|
191
|
+
return this.sectionId;
|
|
192
|
+
};
|
|
193
|
+
protoOf($).get_series_jfgvpc_k$ = function () {
|
|
194
|
+
return this.series;
|
|
195
|
+
};
|
|
196
|
+
protoOf($).component1_7eebsc_k$ = function () {
|
|
197
|
+
return this.range;
|
|
198
|
+
};
|
|
199
|
+
protoOf($).component2_7eebsb_k$ = function () {
|
|
200
|
+
return this.sectionId;
|
|
201
|
+
};
|
|
202
|
+
protoOf($).component3_7eebsa_k$ = function () {
|
|
203
|
+
return this.series;
|
|
204
|
+
};
|
|
205
|
+
protoOf($).copy_ldxm7h_k$ = function (range, sectionId, series) {
|
|
206
|
+
return new (SectionUtilityUsage())(range, sectionId, series);
|
|
207
|
+
};
|
|
208
|
+
protoOf($).copy = function (range, sectionId, series, $super) {
|
|
209
|
+
range = range === VOID ? this.range : range;
|
|
210
|
+
sectionId = sectionId === VOID ? this.sectionId : sectionId;
|
|
211
|
+
series = series === VOID ? this.series : series;
|
|
212
|
+
return $super === VOID ? this.copy_ldxm7h_k$(range, sectionId, series) : $super.copy_ldxm7h_k$.call(this, range, sectionId, series);
|
|
213
|
+
};
|
|
214
|
+
protoOf($).toString = function () {
|
|
215
|
+
return 'SectionUtilityUsage(range=' + this.range.toString() + ', sectionId=' + this.sectionId.toString() + ', series=' + toString(this.series) + ')';
|
|
216
|
+
};
|
|
217
|
+
protoOf($).hashCode = function () {
|
|
218
|
+
var result = this.range.hashCode();
|
|
219
|
+
result = imul(result, 31) + getBigIntHashCode(this.sectionId) | 0;
|
|
220
|
+
result = imul(result, 31) + hashCode(this.series) | 0;
|
|
221
|
+
return result;
|
|
222
|
+
};
|
|
223
|
+
protoOf($).equals = function (other) {
|
|
224
|
+
if (this === other)
|
|
225
|
+
return true;
|
|
226
|
+
if (!(other instanceof SectionUtilityUsage()))
|
|
227
|
+
return false;
|
|
228
|
+
if (!this.range.equals(other.range))
|
|
229
|
+
return false;
|
|
230
|
+
if (!(this.sectionId === other.sectionId))
|
|
231
|
+
return false;
|
|
232
|
+
if (!equals(this.series, other.series))
|
|
233
|
+
return false;
|
|
234
|
+
return true;
|
|
235
|
+
};
|
|
236
|
+
/* Solibo boundary patches */
|
|
237
|
+
Object.defineProperty($, 'name', { value: "SectionUtilityUsage", configurable: true });
|
|
238
|
+
__soliboRegisterOwnFields($, {"range":["model","UsageRange"],"series":["list",["model","SectionUtilitySeries"]]});
|
|
239
|
+
__soliboRegisterLookup("SectionUtilityUsage", () => $);
|
|
240
|
+
SectionUtilityUsageClass = $;
|
|
241
|
+
}
|
|
242
|
+
return SectionUtilityUsageClass;
|
|
243
|
+
}
|
|
244
|
+
//region block: exports
|
|
245
|
+
export {
|
|
246
|
+
SectionUtilityUsage as SectionUtilityUsagezcstzqlmrfvo,
|
|
247
|
+
};
|
|
248
|
+
//endregion
|
|
249
|
+
|
|
250
|
+
/* Solibo boundary lookups */
|
|
251
|
+
__soliboRegisterLookup("SectionUtilitySeries", () => __soliboType_SectionUtilitySeries());
|
|
252
|
+
__soliboRegisterLookup("UsageRange", () => __soliboType_UsageRange());
|
|
253
|
+
|
package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.export.d.mts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare abstract class UsageInterval {
|
|
4
|
+
private constructor();
|
|
5
|
+
static get DAY(): UsageInterval & {
|
|
6
|
+
get name(): "DAY";
|
|
7
|
+
get ordinal(): 0;
|
|
8
|
+
};
|
|
9
|
+
static get WEEK(): UsageInterval & {
|
|
10
|
+
get name(): "WEEK";
|
|
11
|
+
get ordinal(): 1;
|
|
12
|
+
};
|
|
13
|
+
static get MONTH(): UsageInterval & {
|
|
14
|
+
get name(): "MONTH";
|
|
15
|
+
get ordinal(): 2;
|
|
16
|
+
};
|
|
17
|
+
static get Day(): UsageInterval & {
|
|
18
|
+
get name(): "DAY";
|
|
19
|
+
get ordinal(): 0;
|
|
20
|
+
};
|
|
21
|
+
static get Week(): UsageInterval & {
|
|
22
|
+
get name(): "WEEK";
|
|
23
|
+
get ordinal(): 1;
|
|
24
|
+
};
|
|
25
|
+
static get Month(): UsageInterval & {
|
|
26
|
+
get name(): "MONTH";
|
|
27
|
+
get ordinal(): 2;
|
|
28
|
+
};
|
|
29
|
+
static values(): [typeof UsageInterval.DAY, typeof UsageInterval.WEEK, typeof UsageInterval.MONTH];
|
|
30
|
+
static valueOf(value: string): UsageInterval;
|
|
31
|
+
get name(): "DAY" | "WEEK" | "MONTH";
|
|
32
|
+
get ordinal(): 0 | 1 | 2;
|
|
33
|
+
get value(): string;
|
|
34
|
+
toString(): string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace UsageInterval {
|
|
37
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
38
|
+
namespace $metadata$ {
|
|
39
|
+
const constructor: abstract new () => UsageInterval;
|
|
40
|
+
}
|
|
41
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
42
|
+
private constructor();
|
|
43
|
+
}
|
|
44
|
+
namespace Companion {
|
|
45
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
46
|
+
namespace $metadata$ {
|
|
47
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
48
|
+
fromValue(value: string): Nullable<UsageInterval>;
|
|
49
|
+
private constructor();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|