@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,353 @@
|
|
|
1
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
+
import { toDoubleOrNullkxwozihadygj as toDoubleOrNull } from '../../../../../../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs';
|
|
3
|
+
import { toNumber2e2hj9zugjwi2 as toNumber } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs';
|
|
4
|
+
import { System_instance34rnn1q53nv02 as System_instance } from '../../../../../../kotlin-kotlin-stdlib/kotlin/time/Clock.mjs';
|
|
5
|
+
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
6
|
+
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
7
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
8
|
+
import {
|
|
9
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
10
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
11
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
12
|
+
} from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
13
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
14
|
+
import { constructCallableReference23y65rf941mch as constructCallableReference } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
15
|
+
import { CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs';
|
|
16
|
+
//region block: imports
|
|
17
|
+
//endregion
|
|
18
|
+
//region block: pre-declaration
|
|
19
|
+
//endregion
|
|
20
|
+
function refreshSharedSessionOnce(sentAt, succeeded, refresh, $completion) {
|
|
21
|
+
return (new (BrowserSessionRefresh())(browserLocks(), browserStorage())).once_fhnqe8_k$(sentAt, succeeded, refresh, $completion);
|
|
22
|
+
}
|
|
23
|
+
function exclusively($this, work, $completion) {
|
|
24
|
+
var tmp = new ($exclusivelyCOROUTINE$())($this, work, $completion);
|
|
25
|
+
tmp.result_1 = Unit_instance;
|
|
26
|
+
tmp.exception_1 = null;
|
|
27
|
+
return tmp.doResume_5yljmg_k$();
|
|
28
|
+
}
|
|
29
|
+
function refreshedAfter($this, sentAt) {
|
|
30
|
+
var tmp;
|
|
31
|
+
try {
|
|
32
|
+
var tmp_0 = $this.storage_1.getItem('soliboSessionRefreshedAt');
|
|
33
|
+
var tmp0_safe_receiver = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null;
|
|
34
|
+
var refreshedAt = tmp0_safe_receiver == null ? null : toDoubleOrNull(tmp0_safe_receiver);
|
|
35
|
+
tmp = (!(refreshedAt == null) && refreshedAt > toNumber(sentAt));
|
|
36
|
+
} catch ($p) {
|
|
37
|
+
var tmp_1;
|
|
38
|
+
if ($p instanceof Error) {
|
|
39
|
+
var unavailable = $p;
|
|
40
|
+
tmp_1 = false;
|
|
41
|
+
} else {
|
|
42
|
+
throw $p;
|
|
43
|
+
}
|
|
44
|
+
tmp = tmp_1;
|
|
45
|
+
}
|
|
46
|
+
return tmp;
|
|
47
|
+
}
|
|
48
|
+
function markRefreshed($this) {
|
|
49
|
+
var now = System_instance.now_2cba_k$().toEpochMilliseconds_82cfls_k$();
|
|
50
|
+
try {
|
|
51
|
+
$this.storage_1.setItem('soliboSessionRefreshedAt', now.toString());
|
|
52
|
+
} catch ($p) {
|
|
53
|
+
if ($p instanceof Error) {
|
|
54
|
+
var unavailable = $p;
|
|
55
|
+
} else {
|
|
56
|
+
throw $p;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
var BrowserSessionRefresh$once$slambdaClass;
|
|
61
|
+
function BrowserSessionRefresh$once$slambda() {
|
|
62
|
+
if (BrowserSessionRefresh$once$slambdaClass === VOID) {
|
|
63
|
+
initMetadataForLambda($, CoroutineImpl(), VOID, [0]);
|
|
64
|
+
function $(this$0, $sentAt, $refresh, $succeeded, resultContinuation) {
|
|
65
|
+
this.this$0__1 = this$0;
|
|
66
|
+
this.$sentAt_1 = $sentAt;
|
|
67
|
+
this.$refresh_1 = $refresh;
|
|
68
|
+
this.$succeeded_1 = $succeeded;
|
|
69
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
70
|
+
}
|
|
71
|
+
protoOf($).invoke_ltbn7s_k$ = function ($completion) {
|
|
72
|
+
var tmp = this.create_d196fn_k$($completion);
|
|
73
|
+
tmp.result_1 = Unit_instance;
|
|
74
|
+
tmp.exception_1 = null;
|
|
75
|
+
return tmp.doResume_5yljmg_k$();
|
|
76
|
+
};
|
|
77
|
+
protoOf($).invoke_ib42db_k$ = function ($completion) {
|
|
78
|
+
return this.invoke_ltbn7s_k$($completion);
|
|
79
|
+
};
|
|
80
|
+
protoOf($).doResume_5yljmg_k$ = function () {
|
|
81
|
+
var suspendResult = this.result_1;
|
|
82
|
+
$sm: do
|
|
83
|
+
try {
|
|
84
|
+
var tmp = this.state_1;
|
|
85
|
+
switch (tmp) {
|
|
86
|
+
case 0:
|
|
87
|
+
this.exceptionState_1 = 2;
|
|
88
|
+
if (refreshedAfter(this.this$0__1, this.$sentAt_1))
|
|
89
|
+
return null;
|
|
90
|
+
this.state_1 = 1;
|
|
91
|
+
suspendResult = this.$refresh_1(this);
|
|
92
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
93
|
+
return suspendResult;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
continue $sm;
|
|
97
|
+
case 1:
|
|
98
|
+
var this_0 = suspendResult;
|
|
99
|
+
if (this.$succeeded_1(this_0)) {
|
|
100
|
+
markRefreshed(this.this$0__1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return this_0;
|
|
104
|
+
case 2:
|
|
105
|
+
throw this.exception_1;
|
|
106
|
+
}
|
|
107
|
+
} catch ($p) {
|
|
108
|
+
var e = $p;
|
|
109
|
+
if (this.exceptionState_1 === 2) {
|
|
110
|
+
throw e;
|
|
111
|
+
} else {
|
|
112
|
+
this.state_1 = this.exceptionState_1;
|
|
113
|
+
this.exception_1 = e;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
while (true);
|
|
117
|
+
};
|
|
118
|
+
protoOf($).create_d196fn_k$ = function (completion) {
|
|
119
|
+
return new (BrowserSessionRefresh$once$slambda())(this.this$0__1, this.$sentAt_1, this.$refresh_1, this.$succeeded_1, completion);
|
|
120
|
+
};
|
|
121
|
+
BrowserSessionRefresh$once$slambdaClass = $;
|
|
122
|
+
}
|
|
123
|
+
return BrowserSessionRefresh$once$slambdaClass;
|
|
124
|
+
}
|
|
125
|
+
function BrowserSessionRefresh$once$slambda_0(this$0, $sentAt, $refresh, $succeeded, resultContinuation) {
|
|
126
|
+
var i = new (BrowserSessionRefresh$once$slambda())(this$0, $sentAt, $refresh, $succeeded, resultContinuation);
|
|
127
|
+
return constructCallableReference(function ($completion) {
|
|
128
|
+
return i.invoke_ltbn7s_k$($completion);
|
|
129
|
+
}, 0);
|
|
130
|
+
}
|
|
131
|
+
function BrowserSessionRefresh$exclusively$lambda($waiting) {
|
|
132
|
+
return function () {
|
|
133
|
+
$waiting._v.abort();
|
|
134
|
+
return Unit_instance;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function BrowserSessionRefresh$exclusively$lambda$lambda$lambda($resolve) {
|
|
138
|
+
return function () {
|
|
139
|
+
$resolve(Unit_instance);
|
|
140
|
+
return Unit_instance;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function BrowserSessionRefresh$exclusively$lambda$lambda($release, $granted) {
|
|
144
|
+
return function (resolve, _unused_var__etf5q3) {
|
|
145
|
+
$release._v = BrowserSessionRefresh$exclusively$lambda$lambda$lambda(resolve);
|
|
146
|
+
if (!$granted.complete_ixf84q_k$(true))
|
|
147
|
+
resolve(Unit_instance);
|
|
148
|
+
return Unit_instance;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function BrowserSessionRefresh$exclusively$lambda_0($release, $granted) {
|
|
152
|
+
return function (_unused_var__etf5q3) {
|
|
153
|
+
return new Promise(BrowserSessionRefresh$exclusively$lambda$lambda($release, $granted));
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function BrowserSessionRefresh$exclusively$lambda_1($granted) {
|
|
157
|
+
return function (it) {
|
|
158
|
+
return $granted.complete_ixf84q_k$(false);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
var $exclusivelyCOROUTINE$Class;
|
|
162
|
+
function $exclusivelyCOROUTINE$() {
|
|
163
|
+
if ($exclusivelyCOROUTINE$Class === VOID) {
|
|
164
|
+
initMetadataForCoroutine($, CoroutineImpl());
|
|
165
|
+
function $(_this__u8e3s4, work, resultContinuation) {
|
|
166
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
167
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
168
|
+
this.work_1 = work;
|
|
169
|
+
}
|
|
170
|
+
protoOf($).doResume_5yljmg_k$ = function () {
|
|
171
|
+
var suspendResult = this.result_1;
|
|
172
|
+
$sm: do
|
|
173
|
+
try {
|
|
174
|
+
var tmp = this.state_1;
|
|
175
|
+
switch (tmp) {
|
|
176
|
+
case 0:
|
|
177
|
+
this.exceptionState_1 = 8;
|
|
178
|
+
if (this._this__u8e3s4__1.locks_1 == null) {
|
|
179
|
+
this.state_1 = 7;
|
|
180
|
+
suspendResult = this.work_1(this);
|
|
181
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
182
|
+
return suspendResult;
|
|
183
|
+
}
|
|
184
|
+
continue $sm;
|
|
185
|
+
} else {
|
|
186
|
+
this.state_1 = 1;
|
|
187
|
+
continue $sm;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
case 1:
|
|
191
|
+
this.granted2__1 = CompletableDeferred();
|
|
192
|
+
this.release0__1 = {_v: null};
|
|
193
|
+
this.waiting1__1 = {_v: null};
|
|
194
|
+
this.waitedTooLong3__1 = null;
|
|
195
|
+
try {
|
|
196
|
+
this.waiting1__1._v = new AbortController();
|
|
197
|
+
var tmp_0 = this;
|
|
198
|
+
tmp_0.waitedTooLong3__1 = setTimeout(BrowserSessionRefresh$exclusively$lambda(this.waiting1__1), this._this__u8e3s4__1.lockWaitMillis_1);
|
|
199
|
+
var options = {};
|
|
200
|
+
options.mode = 'exclusive';
|
|
201
|
+
options.signal = this.waiting1__1._v.signal;
|
|
202
|
+
var held = this._this__u8e3s4__1.locks_1.request('solibo-session-refresh', options, BrowserSessionRefresh$exclusively$lambda_0(this.release0__1, this.granted2__1));
|
|
203
|
+
held.catch(BrowserSessionRefresh$exclusively$lambda_1(this.granted2__1));
|
|
204
|
+
} catch ($p) {
|
|
205
|
+
if ($p instanceof Error) {
|
|
206
|
+
var unsupported = $p;
|
|
207
|
+
this.granted2__1.complete_ixf84q_k$(false);
|
|
208
|
+
} else {
|
|
209
|
+
throw $p;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
this.state_1 = 2;
|
|
214
|
+
continue $sm;
|
|
215
|
+
case 2:
|
|
216
|
+
this.exceptionState_1 = 6;
|
|
217
|
+
this.state_1 = 3;
|
|
218
|
+
suspendResult = this.granted2__1.await_4rdzbx_k$(this);
|
|
219
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
220
|
+
return suspendResult;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
continue $sm;
|
|
224
|
+
case 3:
|
|
225
|
+
this.state_1 = 4;
|
|
226
|
+
suspendResult = this.work_1(this);
|
|
227
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
228
|
+
return suspendResult;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
continue $sm;
|
|
232
|
+
case 4:
|
|
233
|
+
this.tmp$ret$04__1 = suspendResult;
|
|
234
|
+
this.exceptionState_1 = 8;
|
|
235
|
+
this.state_1 = 5;
|
|
236
|
+
continue $sm;
|
|
237
|
+
case 5:
|
|
238
|
+
var tmp_1 = this.tmp$ret$04__1;
|
|
239
|
+
this.exceptionState_1 = 8;
|
|
240
|
+
if (this.waitedTooLong3__1 != null) {
|
|
241
|
+
clearTimeout(this.waitedTooLong3__1);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (this.granted2__1.complete_ixf84q_k$(false)) {
|
|
245
|
+
var tmp0_safe_receiver = this.waiting1__1._v;
|
|
246
|
+
if (tmp0_safe_receiver == null)
|
|
247
|
+
null;
|
|
248
|
+
else
|
|
249
|
+
tmp0_safe_receiver.abort();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
var tmp1_safe_receiver = this.release0__1._v;
|
|
253
|
+
if (tmp1_safe_receiver == null)
|
|
254
|
+
null;
|
|
255
|
+
else
|
|
256
|
+
tmp1_safe_receiver();
|
|
257
|
+
return tmp_1;
|
|
258
|
+
case 6:
|
|
259
|
+
this.exceptionState_1 = 8;
|
|
260
|
+
var t = this.exception_1;
|
|
261
|
+
if (this.waitedTooLong3__1 != null) {
|
|
262
|
+
clearTimeout(this.waitedTooLong3__1);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (this.granted2__1.complete_ixf84q_k$(false)) {
|
|
266
|
+
var tmp0_safe_receiver_0 = this.waiting1__1._v;
|
|
267
|
+
if (tmp0_safe_receiver_0 == null)
|
|
268
|
+
null;
|
|
269
|
+
else
|
|
270
|
+
tmp0_safe_receiver_0.abort();
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
var tmp1_safe_receiver_0 = this.release0__1._v;
|
|
274
|
+
if (tmp1_safe_receiver_0 == null)
|
|
275
|
+
null;
|
|
276
|
+
else
|
|
277
|
+
tmp1_safe_receiver_0();
|
|
278
|
+
throw t;
|
|
279
|
+
case 7:
|
|
280
|
+
return suspendResult;
|
|
281
|
+
case 8:
|
|
282
|
+
throw this.exception_1;
|
|
283
|
+
}
|
|
284
|
+
} catch ($p_0) {
|
|
285
|
+
var e = $p_0;
|
|
286
|
+
if (this.exceptionState_1 === 8) {
|
|
287
|
+
throw e;
|
|
288
|
+
} else {
|
|
289
|
+
this.state_1 = this.exceptionState_1;
|
|
290
|
+
this.exception_1 = e;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
while (true);
|
|
294
|
+
};
|
|
295
|
+
$exclusivelyCOROUTINE$Class = $;
|
|
296
|
+
}
|
|
297
|
+
return $exclusivelyCOROUTINE$Class;
|
|
298
|
+
}
|
|
299
|
+
var BrowserSessionRefreshClass;
|
|
300
|
+
function BrowserSessionRefresh() {
|
|
301
|
+
if (BrowserSessionRefreshClass === VOID) {
|
|
302
|
+
initMetadataForClass($, 'BrowserSessionRefresh', VOID, VOID, VOID, [3, 1]);
|
|
303
|
+
function $(locks, storage, lockWaitMillis) {
|
|
304
|
+
lockWaitMillis = lockWaitMillis === VOID ? 10000 : lockWaitMillis;
|
|
305
|
+
this.locks_1 = locks;
|
|
306
|
+
this.storage_1 = storage;
|
|
307
|
+
this.lockWaitMillis_1 = lockWaitMillis;
|
|
308
|
+
}
|
|
309
|
+
protoOf($).once_fhnqe8_k$ = function (sentAt, succeeded, refresh, $completion) {
|
|
310
|
+
return exclusively(this, BrowserSessionRefresh$once$slambda_0(this, sentAt, refresh, succeeded, null), $completion);
|
|
311
|
+
};
|
|
312
|
+
BrowserSessionRefreshClass = $;
|
|
313
|
+
}
|
|
314
|
+
return BrowserSessionRefreshClass;
|
|
315
|
+
}
|
|
316
|
+
function browserLocks() {
|
|
317
|
+
var tmp;
|
|
318
|
+
try {
|
|
319
|
+
tmp = typeof navigator !== 'undefined' && navigator.locks ? navigator.locks : null;
|
|
320
|
+
} catch ($p) {
|
|
321
|
+
var tmp_0;
|
|
322
|
+
if ($p instanceof Error) {
|
|
323
|
+
var unavailable = $p;
|
|
324
|
+
tmp_0 = null;
|
|
325
|
+
} else {
|
|
326
|
+
throw $p;
|
|
327
|
+
}
|
|
328
|
+
tmp = tmp_0;
|
|
329
|
+
}
|
|
330
|
+
return tmp;
|
|
331
|
+
}
|
|
332
|
+
function browserStorage() {
|
|
333
|
+
var tmp;
|
|
334
|
+
try {
|
|
335
|
+
tmp = typeof localStorage !== 'undefined' ? localStorage : null;
|
|
336
|
+
} catch ($p) {
|
|
337
|
+
var tmp_0;
|
|
338
|
+
if ($p instanceof Error) {
|
|
339
|
+
var unavailable = $p;
|
|
340
|
+
tmp_0 = null;
|
|
341
|
+
} else {
|
|
342
|
+
throw $p;
|
|
343
|
+
}
|
|
344
|
+
tmp = tmp_0;
|
|
345
|
+
}
|
|
346
|
+
return tmp;
|
|
347
|
+
}
|
|
348
|
+
//region block: exports
|
|
349
|
+
export {
|
|
350
|
+
refreshSharedSessionOnce as refreshSharedSessionOnce3maymwvt0310d,
|
|
351
|
+
};
|
|
352
|
+
//endregion
|
|
353
|
+
|
|
@@ -28,7 +28,7 @@ function SoliboOpenTelemetry() {
|
|
|
28
28
|
}
|
|
29
29
|
protoOf($).tracer_4zr7of_k$ = function () {
|
|
30
30
|
var tmp0_elvis_lhs = this.installed_1;
|
|
31
|
-
return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.
|
|
31
|
+
return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.57.0');
|
|
32
32
|
};
|
|
33
33
|
SoliboOpenTelemetryClass = $;
|
|
34
34
|
}
|
package/solibo-sdk-sdk.d.mts
CHANGED
|
@@ -6379,6 +6379,7 @@ export declare namespace UpdateDocumentCommand {
|
|
|
6379
6379
|
}
|
|
6380
6380
|
export declare function economyApi(api: HomeApiBase): EconomyApi;
|
|
6381
6381
|
export declare function bankAccountsApi(api: HomeApiBase): BankAccountsApi;
|
|
6382
|
+
export declare function utilityUsageApi(api: HomeApiBase): UtilityUsageApi;
|
|
6382
6383
|
export declare class BankAccountsApi extends ApiClient.$metadata$.constructor {
|
|
6383
6384
|
private constructor();
|
|
6384
6385
|
static create(baseUrl?: string, httpClientEngine?: any | null | undefined/* HttpClientEngine | null | undefined */, httpClientConfig?: (p0: any/* HttpClientConfig<any> */) => void | null | undefined, jsonSerializer?: any/* Json */): BankAccountsApi;
|
|
@@ -6411,6 +6412,19 @@ export declare namespace EconomyApi {
|
|
|
6411
6412
|
const constructor: abstract new () => EconomyApi;
|
|
6412
6413
|
}
|
|
6413
6414
|
}
|
|
6415
|
+
export declare class UtilityUsageApi extends ApiClient.$metadata$.constructor {
|
|
6416
|
+
private constructor();
|
|
6417
|
+
static create(baseUrl?: string, httpClientEngine?: any | null | undefined/* HttpClientEngine | null | undefined */, httpClientConfig?: (p0: any/* HttpClientConfig<any> */) => void | null | undefined, jsonSerializer?: any/* Json */): UtilityUsageApi;
|
|
6418
|
+
static createWithClient(baseUrl: string, httpClient: any/* HttpClient */): UtilityUsageApi;
|
|
6419
|
+
showCompanyUtilityUsage(companyId: bigint, from?: bigint | null | undefined, to?: bigint | null | undefined, interval?: UsageInterval | null | undefined, utility?: Utility[] | null | undefined, fields?: string | null | undefined): Promise<HttpResponse<CompanyUtilityUsage>>;
|
|
6420
|
+
showSectionUtilityUsage(companyId: bigint, sectionId: bigint, from?: bigint | null | undefined, to?: bigint | null | undefined, interval?: UsageInterval | null | undefined, utility?: Utility[] | null | undefined, fields?: string | null | undefined): Promise<HttpResponse<SectionUtilityUsage>>;
|
|
6421
|
+
}
|
|
6422
|
+
export declare namespace UtilityUsageApi {
|
|
6423
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6424
|
+
namespace $metadata$ {
|
|
6425
|
+
const constructor: abstract new () => UtilityUsageApi;
|
|
6426
|
+
}
|
|
6427
|
+
}
|
|
6414
6428
|
export declare function deleteEconomicReportOperation(client: ApiClient, companyId: bigint, reportId: bigint): Promise<HttpResponse<void>>;
|
|
6415
6429
|
export declare function indexCompaniesEconomyStatusOperation(client: ApiClient): Promise<HttpResponse<Base64ByteArray>>;
|
|
6416
6430
|
export declare function indexEconomicReportOperation(client: ApiClient, companyId: bigint, fields?: string | null | undefined): Promise<HttpResponse<EconomicReportResponse>>;
|
|
@@ -6420,7 +6434,9 @@ export declare function listCompanyBankAccountTransactionsOperation(client: ApiC
|
|
|
6420
6434
|
export declare function listCompanyBankAccountsOperation(client: ApiClient, companyId: bigint, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined): Promise<HttpResponse<PagedListBankAccount>>;
|
|
6421
6435
|
export declare function orderEconomicReportOperation(client: ApiClient, companyId: bigint, orderEconomicReportCommand: OrderEconomicReportCommand): Promise<HttpResponse<void>>;
|
|
6422
6436
|
export declare function putEconomicReportFileOperation(client: ApiClient, companyId: bigint, reportId: bigint, economicReportType: EconomicReportType, documentId: bigint): Promise<HttpResponse<void>>;
|
|
6437
|
+
export declare function showCompanyUtilityUsageOperation(client: ApiClient, companyId: bigint, from?: bigint | null | undefined, to?: bigint | null | undefined, interval?: UsageInterval | null | undefined, utility?: Utility[] | null | undefined, fields?: string | null | undefined): Promise<HttpResponse<CompanyUtilityUsage>>;
|
|
6423
6438
|
export declare function showEconomicReportOperation(client: ApiClient, companyId: bigint, reportId: bigint, fields?: string | null | undefined): Promise<HttpResponse<EconomicReport>>;
|
|
6439
|
+
export declare function showSectionUtilityUsageOperation(client: ApiClient, companyId: bigint, sectionId: bigint, from?: bigint | null | undefined, to?: bigint | null | undefined, interval?: UsageInterval | null | undefined, utility?: Utility[] | null | undefined, fields?: string | null | undefined): Promise<HttpResponse<SectionUtilityUsage>>;
|
|
6424
6440
|
export interface AccountListProps {
|
|
6425
6441
|
availability?: EconomyStatusAvailability | null | undefined;
|
|
6426
6442
|
availableFunds: number;
|
|
@@ -6527,6 +6543,42 @@ export declare namespace BankMovement {
|
|
|
6527
6543
|
const constructor: abstract new () => BankMovement;
|
|
6528
6544
|
}
|
|
6529
6545
|
}
|
|
6546
|
+
export interface CompanyUtilitySeriesProps {
|
|
6547
|
+
points: UsageTotalProps[];
|
|
6548
|
+
unit: UsageUnit;
|
|
6549
|
+
utility: Utility;
|
|
6550
|
+
}
|
|
6551
|
+
export declare class CompanyUtilitySeries {
|
|
6552
|
+
constructor(props: CompanyUtilitySeriesProps);
|
|
6553
|
+
constructor(points: UsageTotal[], unit: UsageUnit, utility: Utility);
|
|
6554
|
+
get points(): UsageTotal[];
|
|
6555
|
+
get unit(): UsageUnit;
|
|
6556
|
+
get utility(): Utility;
|
|
6557
|
+
}
|
|
6558
|
+
export declare namespace CompanyUtilitySeries {
|
|
6559
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6560
|
+
namespace $metadata$ {
|
|
6561
|
+
const constructor: abstract new () => CompanyUtilitySeries;
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
export interface CompanyUtilityUsageProps {
|
|
6565
|
+
companyId: bigint;
|
|
6566
|
+
range: UsageRangeProps;
|
|
6567
|
+
series: CompanyUtilitySeriesProps[];
|
|
6568
|
+
}
|
|
6569
|
+
export declare class CompanyUtilityUsage {
|
|
6570
|
+
constructor(props: CompanyUtilityUsageProps);
|
|
6571
|
+
constructor(companyId: bigint, range: UsageRange, series: CompanyUtilitySeries[]);
|
|
6572
|
+
get companyId(): bigint;
|
|
6573
|
+
get range(): UsageRange;
|
|
6574
|
+
get series(): CompanyUtilitySeries[];
|
|
6575
|
+
}
|
|
6576
|
+
export declare namespace CompanyUtilityUsage {
|
|
6577
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6578
|
+
namespace $metadata$ {
|
|
6579
|
+
const constructor: abstract new () => CompanyUtilityUsage;
|
|
6580
|
+
}
|
|
6581
|
+
}
|
|
6530
6582
|
export interface EconomicReportProps {
|
|
6531
6583
|
companyId: bigint;
|
|
6532
6584
|
departmentDocumentEnabled: boolean;
|
|
@@ -6807,6 +6859,244 @@ export declare namespace PagedListEconomicReport {
|
|
|
6807
6859
|
const constructor: abstract new () => PagedListEconomicReport;
|
|
6808
6860
|
}
|
|
6809
6861
|
}
|
|
6862
|
+
export interface SectionUtilitySeriesProps {
|
|
6863
|
+
companyAveragePerSection: UsagePointProps[];
|
|
6864
|
+
points: UsagePointProps[];
|
|
6865
|
+
unit: UsageUnit;
|
|
6866
|
+
utility: Utility;
|
|
6867
|
+
}
|
|
6868
|
+
export declare class SectionUtilitySeries {
|
|
6869
|
+
constructor(props: SectionUtilitySeriesProps);
|
|
6870
|
+
constructor(companyAveragePerSection: UsagePoint[], points: UsagePoint[], unit: UsageUnit, utility: Utility);
|
|
6871
|
+
get companyAveragePerSection(): UsagePoint[];
|
|
6872
|
+
get points(): UsagePoint[];
|
|
6873
|
+
get unit(): UsageUnit;
|
|
6874
|
+
get utility(): Utility;
|
|
6875
|
+
}
|
|
6876
|
+
export declare namespace SectionUtilitySeries {
|
|
6877
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6878
|
+
namespace $metadata$ {
|
|
6879
|
+
const constructor: abstract new () => SectionUtilitySeries;
|
|
6880
|
+
}
|
|
6881
|
+
}
|
|
6882
|
+
export interface SectionUtilityUsageProps {
|
|
6883
|
+
range: UsageRangeProps;
|
|
6884
|
+
sectionId: bigint;
|
|
6885
|
+
series: SectionUtilitySeriesProps[];
|
|
6886
|
+
}
|
|
6887
|
+
export declare class SectionUtilityUsage {
|
|
6888
|
+
constructor(props: SectionUtilityUsageProps);
|
|
6889
|
+
constructor(range: UsageRange, sectionId: bigint, series: SectionUtilitySeries[]);
|
|
6890
|
+
get range(): UsageRange;
|
|
6891
|
+
get sectionId(): bigint;
|
|
6892
|
+
get series(): SectionUtilitySeries[];
|
|
6893
|
+
}
|
|
6894
|
+
export declare namespace SectionUtilityUsage {
|
|
6895
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6896
|
+
namespace $metadata$ {
|
|
6897
|
+
const constructor: abstract new () => SectionUtilityUsage;
|
|
6898
|
+
}
|
|
6899
|
+
}
|
|
6900
|
+
export declare abstract class UsageInterval {
|
|
6901
|
+
private constructor();
|
|
6902
|
+
static get DAY(): UsageInterval & {
|
|
6903
|
+
get name(): "DAY";
|
|
6904
|
+
get ordinal(): 0;
|
|
6905
|
+
};
|
|
6906
|
+
static get WEEK(): UsageInterval & {
|
|
6907
|
+
get name(): "WEEK";
|
|
6908
|
+
get ordinal(): 1;
|
|
6909
|
+
};
|
|
6910
|
+
static get MONTH(): UsageInterval & {
|
|
6911
|
+
get name(): "MONTH";
|
|
6912
|
+
get ordinal(): 2;
|
|
6913
|
+
};
|
|
6914
|
+
static get Day(): UsageInterval & {
|
|
6915
|
+
get name(): "DAY";
|
|
6916
|
+
get ordinal(): 0;
|
|
6917
|
+
};
|
|
6918
|
+
static get Week(): UsageInterval & {
|
|
6919
|
+
get name(): "WEEK";
|
|
6920
|
+
get ordinal(): 1;
|
|
6921
|
+
};
|
|
6922
|
+
static get Month(): UsageInterval & {
|
|
6923
|
+
get name(): "MONTH";
|
|
6924
|
+
get ordinal(): 2;
|
|
6925
|
+
};
|
|
6926
|
+
static values(): [typeof UsageInterval.DAY, typeof UsageInterval.WEEK, typeof UsageInterval.MONTH];
|
|
6927
|
+
static valueOf(value: string): UsageInterval;
|
|
6928
|
+
get name(): "DAY" | "WEEK" | "MONTH";
|
|
6929
|
+
get ordinal(): 0 | 1 | 2;
|
|
6930
|
+
get value(): string;
|
|
6931
|
+
}
|
|
6932
|
+
export declare namespace UsageInterval {
|
|
6933
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6934
|
+
namespace $metadata$ {
|
|
6935
|
+
const constructor: abstract new () => UsageInterval;
|
|
6936
|
+
}
|
|
6937
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
6938
|
+
private constructor();
|
|
6939
|
+
}
|
|
6940
|
+
namespace Companion {
|
|
6941
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6942
|
+
namespace $metadata$ {
|
|
6943
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
6944
|
+
fromValue(value: string): UsageInterval | null | undefined;
|
|
6945
|
+
private constructor();
|
|
6946
|
+
}
|
|
6947
|
+
}
|
|
6948
|
+
}
|
|
6949
|
+
}
|
|
6950
|
+
export interface UsagePointProps {
|
|
6951
|
+
periodStart: SoliboLocalDate /* LocalDate */;
|
|
6952
|
+
quantity: number;
|
|
6953
|
+
}
|
|
6954
|
+
export declare class UsagePoint {
|
|
6955
|
+
constructor(props: UsagePointProps);
|
|
6956
|
+
constructor(periodStart: SoliboLocalDate /* LocalDate */, quantity: number);
|
|
6957
|
+
get periodStart(): SoliboLocalDate /* LocalDate */;
|
|
6958
|
+
get quantity(): number;
|
|
6959
|
+
}
|
|
6960
|
+
export declare namespace UsagePoint {
|
|
6961
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6962
|
+
namespace $metadata$ {
|
|
6963
|
+
const constructor: abstract new () => UsagePoint;
|
|
6964
|
+
}
|
|
6965
|
+
}
|
|
6966
|
+
export interface UsageRangeProps {
|
|
6967
|
+
from: SoliboLocalDate /* LocalDate */;
|
|
6968
|
+
interval: UsageInterval;
|
|
6969
|
+
until: SoliboLocalDate /* LocalDate */;
|
|
6970
|
+
}
|
|
6971
|
+
export declare class UsageRange {
|
|
6972
|
+
constructor(props: UsageRangeProps);
|
|
6973
|
+
constructor(from: SoliboLocalDate /* LocalDate */, interval: UsageInterval, until: SoliboLocalDate /* LocalDate */);
|
|
6974
|
+
get from(): SoliboLocalDate /* LocalDate */;
|
|
6975
|
+
get interval(): UsageInterval;
|
|
6976
|
+
get until(): SoliboLocalDate /* LocalDate */;
|
|
6977
|
+
}
|
|
6978
|
+
export declare namespace UsageRange {
|
|
6979
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
6980
|
+
namespace $metadata$ {
|
|
6981
|
+
const constructor: abstract new () => UsageRange;
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
export interface UsageTotalProps {
|
|
6985
|
+
averagePerSection?: number | null | undefined;
|
|
6986
|
+
periodStart: SoliboLocalDate /* LocalDate */;
|
|
6987
|
+
reportingSections: bigint;
|
|
6988
|
+
total: number;
|
|
6989
|
+
}
|
|
6990
|
+
export declare class UsageTotal {
|
|
6991
|
+
constructor(props: UsageTotalProps);
|
|
6992
|
+
constructor(averagePerSection: number | null | undefined, periodStart: SoliboLocalDate /* LocalDate */, reportingSections: bigint, total: number);
|
|
6993
|
+
get averagePerSection(): number | null | undefined;
|
|
6994
|
+
get periodStart(): SoliboLocalDate /* LocalDate */;
|
|
6995
|
+
get reportingSections(): bigint;
|
|
6996
|
+
get total(): number;
|
|
6997
|
+
}
|
|
6998
|
+
export declare namespace UsageTotal {
|
|
6999
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
7000
|
+
namespace $metadata$ {
|
|
7001
|
+
const constructor: abstract new () => UsageTotal;
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
export declare abstract class UsageUnit {
|
|
7005
|
+
private constructor();
|
|
7006
|
+
static get KWH(): UsageUnit & {
|
|
7007
|
+
get name(): "KWH";
|
|
7008
|
+
get ordinal(): 0;
|
|
7009
|
+
};
|
|
7010
|
+
static get M3(): UsageUnit & {
|
|
7011
|
+
get name(): "M3";
|
|
7012
|
+
get ordinal(): 1;
|
|
7013
|
+
};
|
|
7014
|
+
static get Kwh(): UsageUnit & {
|
|
7015
|
+
get name(): "KWH";
|
|
7016
|
+
get ordinal(): 0;
|
|
7017
|
+
};
|
|
7018
|
+
static values(): [typeof UsageUnit.KWH, typeof UsageUnit.M3];
|
|
7019
|
+
static valueOf(value: string): UsageUnit;
|
|
7020
|
+
get name(): "KWH" | "M3";
|
|
7021
|
+
get ordinal(): 0 | 1;
|
|
7022
|
+
get value(): string;
|
|
7023
|
+
}
|
|
7024
|
+
export declare namespace UsageUnit {
|
|
7025
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
7026
|
+
namespace $metadata$ {
|
|
7027
|
+
const constructor: abstract new () => UsageUnit;
|
|
7028
|
+
}
|
|
7029
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
7030
|
+
private constructor();
|
|
7031
|
+
}
|
|
7032
|
+
namespace Companion {
|
|
7033
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
7034
|
+
namespace $metadata$ {
|
|
7035
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
7036
|
+
fromValue(value: string): UsageUnit | null | undefined;
|
|
7037
|
+
private constructor();
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
}
|
|
7041
|
+
}
|
|
7042
|
+
export declare abstract class Utility {
|
|
7043
|
+
private constructor();
|
|
7044
|
+
static get HEAT(): Utility & {
|
|
7045
|
+
get name(): "HEAT";
|
|
7046
|
+
get ordinal(): 0;
|
|
7047
|
+
};
|
|
7048
|
+
static get HOT_WATER(): Utility & {
|
|
7049
|
+
get name(): "HOT_WATER";
|
|
7050
|
+
get ordinal(): 1;
|
|
7051
|
+
};
|
|
7052
|
+
static get COLD_WATER(): Utility & {
|
|
7053
|
+
get name(): "COLD_WATER";
|
|
7054
|
+
get ordinal(): 2;
|
|
7055
|
+
};
|
|
7056
|
+
static get ELECTRICITY(): Utility & {
|
|
7057
|
+
get name(): "ELECTRICITY";
|
|
7058
|
+
get ordinal(): 3;
|
|
7059
|
+
};
|
|
7060
|
+
static get Heat(): Utility & {
|
|
7061
|
+
get name(): "HEAT";
|
|
7062
|
+
get ordinal(): 0;
|
|
7063
|
+
};
|
|
7064
|
+
static get HotWater(): Utility & {
|
|
7065
|
+
get name(): "HOT_WATER";
|
|
7066
|
+
get ordinal(): 1;
|
|
7067
|
+
};
|
|
7068
|
+
static get ColdWater(): Utility & {
|
|
7069
|
+
get name(): "COLD_WATER";
|
|
7070
|
+
get ordinal(): 2;
|
|
7071
|
+
};
|
|
7072
|
+
static get Electricity(): Utility & {
|
|
7073
|
+
get name(): "ELECTRICITY";
|
|
7074
|
+
get ordinal(): 3;
|
|
7075
|
+
};
|
|
7076
|
+
static values(): [typeof Utility.HEAT, typeof Utility.HOT_WATER, typeof Utility.COLD_WATER, typeof Utility.ELECTRICITY];
|
|
7077
|
+
static valueOf(value: string): Utility;
|
|
7078
|
+
get name(): "HEAT" | "HOT_WATER" | "COLD_WATER" | "ELECTRICITY";
|
|
7079
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
7080
|
+
get value(): string;
|
|
7081
|
+
}
|
|
7082
|
+
export declare namespace Utility {
|
|
7083
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
7084
|
+
namespace $metadata$ {
|
|
7085
|
+
const constructor: abstract new () => Utility;
|
|
7086
|
+
}
|
|
7087
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
7088
|
+
private constructor();
|
|
7089
|
+
}
|
|
7090
|
+
namespace Companion {
|
|
7091
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
7092
|
+
namespace $metadata$ {
|
|
7093
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
7094
|
+
fromValue(value: string): Utility | null | undefined;
|
|
7095
|
+
private constructor();
|
|
7096
|
+
}
|
|
7097
|
+
}
|
|
7098
|
+
}
|
|
7099
|
+
}
|
|
6810
7100
|
export declare function expenseApi(api: HomeApiBase): ExpenseApi;
|
|
6811
7101
|
export declare class ExpenseApi extends ApiClient.$metadata$.constructor {
|
|
6812
7102
|
private constructor();
|
|
@@ -36789,6 +37079,7 @@ export declare class HomeApi extends HomeApiBase.$metadata$.constructor {
|
|
|
36789
37079
|
get issue(): IssueApi;
|
|
36790
37080
|
get economy(): EconomyApi;
|
|
36791
37081
|
get bankAccounts(): BankAccountsApi;
|
|
37082
|
+
get utilityUsage(): UtilityUsageApi;
|
|
36792
37083
|
get settlement(): SettlementApi;
|
|
36793
37084
|
get followUps(): FollowUpApi;
|
|
36794
37085
|
}
|