@solibo/solibo-sdk 1.51.0 → 1.51.1
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/documents.mjs +1 -2
- package/client/invoicing.d.mts +1 -1
- package/client/invoicing.mjs +6 -19
- package/client/paymentAllocation.d.mts +1 -1
- package/client-core.mjs +27 -0
- package/client.d.mts +5 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
- package/operations/documents.mjs +1 -1
- package/operations/invoicing.d.mts +1 -1
- package/operations/invoicing.mjs +1 -1
- package/operations/paymentAllocation.d.mts +1 -1
- package/package.json +1 -1
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-7.mjs +2 -2
- 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-52.mjs +2 -2
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/gen/client/apis/DocumentApi.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/gen/client/apis/DocumentApi.mjs +4 -4
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/gen/client/operations/MoveDocumentOperation.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/gen/client/operations/MoveDocumentOperation.mjs +5 -7
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.mjs +6 -6
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/ShowInvoicingPlanTransactionInvoicesOperation.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/ShowInvoicingPlanTransactionInvoicesOperation.mjs +4 -4
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceLine.export.d.mts +22 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceLine.export.mjs +12 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceLine.mjs +331 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceTracking.export.d.mts +26 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceTracking.export.mjs +12 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceTracking.mjs +490 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListInvoiceTracking.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListInvoiceTracking.export.mjs +12 -0
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PagedListInvoiceTracking.mjs +253 -0
- package/solibo-sdk-sdk-api-invoicing.mjs +3 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +82 -4
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { promisify1z0ncraq1ipzh as promisify } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
2
|
-
import {
|
|
3
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
4
|
-
Unitkvevlwgzwiuc as Unit,
|
|
5
|
-
} from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
6
3
|
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
7
4
|
import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
|
|
8
5
|
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from '../../../../../../../../../ktor-ktor-client-core/io/ktor/client/utils/Content.mjs';
|
|
@@ -12,6 +9,7 @@ import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotl
|
|
|
12
9
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
13
10
|
import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
|
|
14
11
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
12
|
+
import { Document12mfzyk4gd20m as Document } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Document.mjs';
|
|
15
13
|
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
16
14
|
import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
17
15
|
import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
|
|
@@ -72,11 +70,11 @@ function $moveDocumentOperationCOROUTINE$() {
|
|
|
72
70
|
continue $sm;
|
|
73
71
|
case 1:
|
|
74
72
|
var this_0 = suspendResult;
|
|
75
|
-
var tmp_0 = getKClass(
|
|
76
|
-
var tmp_1 = null instanceof
|
|
73
|
+
var tmp_0 = getKClass(Document());
|
|
74
|
+
var tmp_1 = null instanceof Document();
|
|
77
75
|
var tmp_2;
|
|
78
76
|
try {
|
|
79
|
-
tmp_2 = createKType(getKClass(
|
|
77
|
+
tmp_2 = createKType(getKClass(Document()), arrayOf([]), false);
|
|
80
78
|
} catch ($p) {
|
|
81
79
|
var tmp_3;
|
|
82
80
|
if ($p instanceof Error) {
|
package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.export.d.mts
CHANGED
|
@@ -100,7 +100,7 @@ export declare class InvoicingApi extends ApiClient.$metadata$.constructor {
|
|
|
100
100
|
showInvoicingPlanPreview(companyId: bigint, invoicePlanId: bigint, at?: Nullable<bigint>, forced?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListInvoicePreview>>;
|
|
101
101
|
showInvoicingPlanPreviewCustomerPdf(companyId: bigint, invoicePlanId: bigint, customerType: string, customerId: bigint, sectionId?: Nullable<bigint>, at?: Nullable<bigint>, fields?: Nullable<string>): Promise<HttpResponse<InvoiceResultPreview>>;
|
|
102
102
|
showInvoicingPlanSettings(companyId: bigint, invoicePlanId: bigint, at?: Nullable<bigint>, fields?: Nullable<string>): Promise<HttpResponse<InvoicePlanSettings>>;
|
|
103
|
-
showInvoicingPlanTransactionInvoices(companyId: bigint, invoicePlanId: bigint, transactionId: bigint, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<
|
|
103
|
+
showInvoicingPlanTransactionInvoices(companyId: bigint, invoicePlanId: bigint, transactionId: bigint, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListInvoiceTracking>>;
|
|
104
104
|
showInvoicingPlanTransactions(companyId: bigint, invoicePlanId: bigint, at?: Nullable<bigint>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListInvoicePlanTransaction>>;
|
|
105
105
|
showInvoicingSectionInvoicePdfs(companyId: bigint, sectionId: bigint): Promise<HttpResponse<Base64ByteArray>>;
|
|
106
106
|
showInvoicingSettings(companyId: bigint, fields?: Nullable<string>): Promise<HttpResponse<InvoiceSettings>>;
|
|
@@ -6442,7 +6442,7 @@ function $showInvoicingPlanTransactionInvoices$suspendBridgeCOROUTINE$() {
|
|
|
6442
6442
|
this.exceptionState_1 = 4;
|
|
6443
6443
|
if (this._this__u8e3s4__1.showInvoicingPlanTransactionInvoices === protoOf(InvoicingApi()).showInvoicingPlanTransactionInvoices) {
|
|
6444
6444
|
this.state_1 = 2;
|
|
6445
|
-
suspendResult = this._this__u8e3s4__1.showInvoicingPlanTransactionInvoices$
|
|
6445
|
+
suspendResult = this._this__u8e3s4__1.showInvoicingPlanTransactionInvoices$default_66tm47_k$(this.companyId_1, this.invoicePlanId_1, this.transactionId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
6446
6446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6447
6447
|
return suspendResult;
|
|
6448
6448
|
}
|
|
@@ -9492,23 +9492,23 @@ function InvoicingApi() {
|
|
|
9492
9492
|
tmp.exception_1 = null;
|
|
9493
9493
|
return tmp.doResume_5yljmg_k$();
|
|
9494
9494
|
};
|
|
9495
|
-
protoOf($).
|
|
9495
|
+
protoOf($).showInvoicingPlanTransactionInvoices_wags47_k$ = function (companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion) {
|
|
9496
9496
|
return showInvoicingPlanTransactionInvoicesOperation(this, companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion);
|
|
9497
9497
|
};
|
|
9498
|
-
protoOf($).showInvoicingPlanTransactionInvoices$
|
|
9498
|
+
protoOf($).showInvoicingPlanTransactionInvoices$default_66tm47_k$ = function (companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
9499
9499
|
fields = fields === VOID ? null : fields;
|
|
9500
9500
|
pageToken = pageToken === VOID ? null : pageToken;
|
|
9501
9501
|
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
9502
9502
|
count = count === VOID ? null : count;
|
|
9503
|
-
return $super === VOID ? this.
|
|
9503
|
+
return $super === VOID ? this.showInvoicingPlanTransactionInvoices_wags47_k$(companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion) : $super.showInvoicingPlanTransactionInvoices_wags47_k$.call(this, companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion);
|
|
9504
9504
|
};
|
|
9505
9505
|
protoOf($).showInvoicingPlanTransactionInvoices = function (companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count) {
|
|
9506
9506
|
var tmp = this;
|
|
9507
9507
|
return promisify(function ($completion) {
|
|
9508
|
-
return tmp.showInvoicingPlanTransactionInvoices$
|
|
9508
|
+
return tmp.showInvoicingPlanTransactionInvoices$default_66tm47_k$(companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion);
|
|
9509
9509
|
});
|
|
9510
9510
|
};
|
|
9511
|
-
protoOf($).showInvoicingPlanTransactionInvoices$
|
|
9511
|
+
protoOf($).showInvoicingPlanTransactionInvoices$suspendBridge_kkyoug_k$ = function (companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion) {
|
|
9512
9512
|
var tmp = new ($showInvoicingPlanTransactionInvoices$suspendBridgeCOROUTINE$())(this, companyId, invoicePlanId, transactionId, fields, pageToken, autoPaginate, count, $completion);
|
|
9513
9513
|
tmp.result_1 = Unit_instance;
|
|
9514
9514
|
tmp.exception_1 = null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
-
export declare function showInvoicingPlanTransactionInvoicesOperation(client: ApiClient, companyId: bigint, invoicePlanId: bigint, transactionId: bigint, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<
|
|
3
|
+
export declare function showInvoicingPlanTransactionInvoicesOperation(client: ApiClient, companyId: bigint, invoicePlanId: bigint, transactionId: bigint, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListInvoiceTracking>>;
|
|
@@ -10,7 +10,7 @@ import { RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInst
|
|
|
10
10
|
import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs';
|
|
11
11
|
import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
|
|
12
12
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
13
|
-
import {
|
|
13
|
+
import { PagedListInvoiceTrackinghn8rph1fx1ce as PagedListInvoiceTracking } from '../../models/PagedListInvoiceTracking.mjs';
|
|
14
14
|
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
15
15
|
import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
16
16
|
import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
|
|
@@ -109,11 +109,11 @@ function $showInvoicingPlanTransactionInvoicesOperationCOROUTINE$() {
|
|
|
109
109
|
continue $sm;
|
|
110
110
|
case 1:
|
|
111
111
|
var this_0 = suspendResult;
|
|
112
|
-
var tmp_0 = getKClass(
|
|
113
|
-
var tmp_1 = null instanceof
|
|
112
|
+
var tmp_0 = getKClass(PagedListInvoiceTracking());
|
|
113
|
+
var tmp_1 = null instanceof PagedListInvoiceTracking();
|
|
114
114
|
var tmp_2;
|
|
115
115
|
try {
|
|
116
|
-
tmp_2 = createKType(getKClass(
|
|
116
|
+
tmp_2 = createKType(getKClass(PagedListInvoiceTracking()), arrayOf([]), false);
|
|
117
117
|
} catch ($p) {
|
|
118
118
|
var tmp_3;
|
|
119
119
|
if ($p instanceof Error) {
|
package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceLine.export.d.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare class InvoiceLine {
|
|
4
|
+
constructor(account: string, amount: number, createdAt: any/* Instant */, description: string, id: bigint, invoiceId: bigint, name: string);
|
|
5
|
+
get account(): string;
|
|
6
|
+
get amount(): number;
|
|
7
|
+
get createdAt(): any/* Instant */;
|
|
8
|
+
get description(): string;
|
|
9
|
+
get id(): bigint;
|
|
10
|
+
get invoiceId(): bigint;
|
|
11
|
+
get name(): string;
|
|
12
|
+
copy(account?: string, amount?: number, createdAt?: any/* Instant */, description?: string, id?: bigint, invoiceId?: bigint, name?: string): InvoiceLine;
|
|
13
|
+
toString(): string;
|
|
14
|
+
hashCode(): number;
|
|
15
|
+
equals(other: Nullable<any>): boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace InvoiceLine {
|
|
18
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
19
|
+
namespace $metadata$ {
|
|
20
|
+
const constructor: abstract new () => InvoiceLine;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InvoiceLinehct0rfv6azfr as InvoiceLine } from './InvoiceLine.mjs';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
//region block: exports
|
|
7
|
+
var InvoiceLine_0 = InvoiceLine();
|
|
8
|
+
export {
|
|
9
|
+
InvoiceLine_0 as InvoiceLine,
|
|
10
|
+
};
|
|
11
|
+
//endregion
|
|
12
|
+
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import {
|
|
2
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
3
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
4
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
5
|
+
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
6
|
+
equals2au1ep9vhcato as equals,
|
|
7
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
8
|
+
import {
|
|
9
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
10
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
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 { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
|
|
15
|
+
import { InstantSerializer_getInstance1n2pd669tdsta as InstantSerializer_getInstance } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs';
|
|
16
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
17
|
+
import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
|
|
18
|
+
import {
|
|
19
|
+
StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
|
|
20
|
+
DoubleSerializer_getInstance1tuvibnyg07o1 as DoubleSerializer_getInstance,
|
|
21
|
+
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
22
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.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 { getNumberHashCode2l4nbdcihl25f as getNumberHashCode } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs';
|
|
30
|
+
import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
|
|
31
|
+
import { __soliboBoundaryState, __soliboRegisterLookup, __soliboToJs, __soliboToKt } from '../../../../../../../../solibo-boundary.mjs';
|
|
32
|
+
import { Companion_getInstance138pnyl3l6agm as __soliboInstantCompanion } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/time/Instant.mjs';
|
|
33
|
+
//region block: imports
|
|
34
|
+
var imul = Math.imul;
|
|
35
|
+
//endregion
|
|
36
|
+
//region block: pre-declaration
|
|
37
|
+
//endregion
|
|
38
|
+
var CompanionClass;
|
|
39
|
+
function Companion() {
|
|
40
|
+
if (CompanionClass === VOID) {
|
|
41
|
+
initMetadataForCompanion($);
|
|
42
|
+
function $() {
|
|
43
|
+
}
|
|
44
|
+
CompanionClass = $;
|
|
45
|
+
}
|
|
46
|
+
return CompanionClass;
|
|
47
|
+
}
|
|
48
|
+
var Companion_instance;
|
|
49
|
+
function Companion_getInstance() {
|
|
50
|
+
return Companion_instance;
|
|
51
|
+
}
|
|
52
|
+
var $serializerClass;
|
|
53
|
+
function $serializer() {
|
|
54
|
+
if ($serializerClass === VOID) {
|
|
55
|
+
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
56
|
+
function $() {
|
|
57
|
+
$serializer_instance = this;
|
|
58
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.InvoiceLine', this, 7);
|
|
59
|
+
tmp0_serialDesc.addElement_5pzumi_k$('account', false);
|
|
60
|
+
tmp0_serialDesc.addElement_5pzumi_k$('amount', false);
|
|
61
|
+
tmp0_serialDesc.addElement_5pzumi_k$('createdAt', false);
|
|
62
|
+
tmp0_serialDesc.addElement_5pzumi_k$('description', false);
|
|
63
|
+
tmp0_serialDesc.addElement_5pzumi_k$('id', false);
|
|
64
|
+
tmp0_serialDesc.addElement_5pzumi_k$('invoiceId', false);
|
|
65
|
+
tmp0_serialDesc.addElement_5pzumi_k$('name', false);
|
|
66
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
67
|
+
}
|
|
68
|
+
protoOf($).serialize_q5wlcv_k$ = function (encoder, value) {
|
|
69
|
+
var tmp0_desc = this.descriptor_1;
|
|
70
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
71
|
+
tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.account);
|
|
72
|
+
tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.amount);
|
|
73
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, InstantSerializer_getInstance(), value.createdAt);
|
|
74
|
+
tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.description);
|
|
75
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 4, value.id);
|
|
76
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 5, value.invoiceId);
|
|
77
|
+
tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.name);
|
|
78
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
79
|
+
};
|
|
80
|
+
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
81
|
+
return this.serialize_q5wlcv_k$(encoder, value instanceof InvoiceLine() ? value : THROW_CCE());
|
|
82
|
+
};
|
|
83
|
+
protoOf($).deserialize_sy6x50_k$ = function (decoder) {
|
|
84
|
+
var tmp0_desc = this.descriptor_1;
|
|
85
|
+
var tmp1_flag = true;
|
|
86
|
+
var tmp2_index = 0;
|
|
87
|
+
var tmp3_bitMask0 = 0;
|
|
88
|
+
var tmp4_local0 = null;
|
|
89
|
+
var tmp5_local1 = 0.0;
|
|
90
|
+
var tmp6_local2 = null;
|
|
91
|
+
var tmp7_local3 = null;
|
|
92
|
+
var tmp8_local4 = 0n;
|
|
93
|
+
var tmp9_local5 = 0n;
|
|
94
|
+
var tmp10_local6 = null;
|
|
95
|
+
var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
96
|
+
if (tmp11_input.decodeSequentially_xlblqy_k$()) {
|
|
97
|
+
tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
|
|
98
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
99
|
+
tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1);
|
|
100
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
101
|
+
tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, InstantSerializer_getInstance(), tmp6_local2);
|
|
102
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
103
|
+
tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3);
|
|
104
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
105
|
+
tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4);
|
|
106
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
107
|
+
tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5);
|
|
108
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
109
|
+
tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6);
|
|
110
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
111
|
+
} else
|
|
112
|
+
while (tmp1_flag) {
|
|
113
|
+
tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
114
|
+
switch (tmp2_index) {
|
|
115
|
+
case -1:
|
|
116
|
+
tmp1_flag = false;
|
|
117
|
+
break;
|
|
118
|
+
case 0:
|
|
119
|
+
tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
|
|
120
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
121
|
+
break;
|
|
122
|
+
case 1:
|
|
123
|
+
tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1);
|
|
124
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
125
|
+
break;
|
|
126
|
+
case 2:
|
|
127
|
+
tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, InstantSerializer_getInstance(), tmp6_local2);
|
|
128
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
129
|
+
break;
|
|
130
|
+
case 3:
|
|
131
|
+
tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3);
|
|
132
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
133
|
+
break;
|
|
134
|
+
case 4:
|
|
135
|
+
tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4);
|
|
136
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
137
|
+
break;
|
|
138
|
+
case 5:
|
|
139
|
+
tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5);
|
|
140
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
141
|
+
break;
|
|
142
|
+
case 6:
|
|
143
|
+
tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6);
|
|
144
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
tmp11_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
151
|
+
return InvoiceLine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
152
|
+
};
|
|
153
|
+
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
154
|
+
return this.descriptor_1;
|
|
155
|
+
};
|
|
156
|
+
protoOf($).childSerializers_5ghqw5_k$ = function () {
|
|
157
|
+
// Inline function 'kotlin.arrayOf' call
|
|
158
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
159
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
160
|
+
return [StringSerializer_getInstance(), DoubleSerializer_getInstance(), InstantSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()];
|
|
161
|
+
};
|
|
162
|
+
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
163
|
+
$serializerClass = $;
|
|
164
|
+
}
|
|
165
|
+
return $serializerClass;
|
|
166
|
+
}
|
|
167
|
+
var $serializer_instance;
|
|
168
|
+
function $serializer_getInstance() {
|
|
169
|
+
if ($serializer_instance == null)
|
|
170
|
+
new ($serializer())();
|
|
171
|
+
return $serializer_instance;
|
|
172
|
+
}
|
|
173
|
+
function InvoiceLine_init_$Init$(seen0, account, amount, createdAt, description, id, invoiceId, name, serializationConstructorMarker, $this) {
|
|
174
|
+
if (!(127 === (127 & seen0))) {
|
|
175
|
+
throwMissingFieldException(seen0, 127, $serializer_getInstance().descriptor_1);
|
|
176
|
+
}
|
|
177
|
+
$this.account = account;
|
|
178
|
+
$this.amount = amount;
|
|
179
|
+
$this.createdAt = createdAt;
|
|
180
|
+
$this.description = description;
|
|
181
|
+
$this.id = id;
|
|
182
|
+
$this.invoiceId = invoiceId;
|
|
183
|
+
$this.name = name;
|
|
184
|
+
return $this;
|
|
185
|
+
}
|
|
186
|
+
function InvoiceLine_init_$Create$(seen0, account, amount, createdAt, description, id, invoiceId, name, serializationConstructorMarker) {
|
|
187
|
+
return InvoiceLine_init_$Init$(seen0, account, amount, createdAt, description, id, invoiceId, name, serializationConstructorMarker, objectCreate(protoOf(InvoiceLine())));
|
|
188
|
+
}
|
|
189
|
+
var InvoiceLineClass;
|
|
190
|
+
function InvoiceLine() {
|
|
191
|
+
if (InvoiceLineClass === VOID) {
|
|
192
|
+
initMetadataForClass($, 'InvoiceLine', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
193
|
+
function $(account, amount, createdAt, description, id, invoiceId, name) {
|
|
194
|
+
var __soliboProps = arguments.length === 1 && typeof account === 'object' && account !== null && account.constructor === Object;
|
|
195
|
+
var __soliboTmp, __soliboConverted = false;
|
|
196
|
+
if (__soliboProps) {
|
|
197
|
+
const props = account;
|
|
198
|
+
account = ('account' in props ? props.account : VOID);
|
|
199
|
+
amount = ('amount' in props ? props.amount : VOID);
|
|
200
|
+
createdAt = ('createdAt' in props ? props.createdAt : VOID);
|
|
201
|
+
if (typeof createdAt === 'string') {
|
|
202
|
+
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(createdAt)) createdAt += ':00Z';
|
|
203
|
+
else if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(createdAt)) createdAt += 'Z';
|
|
204
|
+
const companion = __soliboInstantCompanion();
|
|
205
|
+
createdAt = companion.parse_xovy9i_k$(createdAt);
|
|
206
|
+
} else if (createdAt != null && typeof createdAt === 'object' && typeof createdAt.getTime === 'function') {
|
|
207
|
+
const companion = __soliboInstantCompanion();
|
|
208
|
+
createdAt = companion.fromEpochMilliseconds_uaz65_k$(BigInt(createdAt.getTime()));
|
|
209
|
+
}
|
|
210
|
+
description = ('description' in props ? props.description : VOID);
|
|
211
|
+
id = ('id' in props ? props.id : VOID);
|
|
212
|
+
invoiceId = ('invoiceId' in props ? props.invoiceId : VOID);
|
|
213
|
+
name = ('name' in props ? props.name : VOID);
|
|
214
|
+
}
|
|
215
|
+
if ((__soliboTmp = __soliboToKt(id, ["bigint"])) !== id) { id = __soliboTmp; __soliboConverted = true; }
|
|
216
|
+
if ((__soliboTmp = __soliboToKt(invoiceId, ["bigint"])) !== invoiceId) { invoiceId = __soliboTmp; __soliboConverted = true; }
|
|
217
|
+
this.account = account;
|
|
218
|
+
this.amount = amount;
|
|
219
|
+
this.createdAt = createdAt;
|
|
220
|
+
this.description = description;
|
|
221
|
+
this.id = id;
|
|
222
|
+
this.invoiceId = invoiceId;
|
|
223
|
+
this.name = name;
|
|
224
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
225
|
+
}
|
|
226
|
+
protoOf($).get_account_i7e30c_k$ = function () {
|
|
227
|
+
return this.account;
|
|
228
|
+
};
|
|
229
|
+
protoOf($).get_amount_b10di9_k$ = function () {
|
|
230
|
+
return this.amount;
|
|
231
|
+
};
|
|
232
|
+
protoOf($).get_createdAt_ierzpu_k$ = function () {
|
|
233
|
+
return this.createdAt;
|
|
234
|
+
};
|
|
235
|
+
protoOf($).get_description_emjre5_k$ = function () {
|
|
236
|
+
return this.description;
|
|
237
|
+
};
|
|
238
|
+
protoOf($).get_id_kntnx8_k$ = function () {
|
|
239
|
+
return this.id;
|
|
240
|
+
};
|
|
241
|
+
protoOf($).get_invoiceId_k93hj5_k$ = function () {
|
|
242
|
+
return this.invoiceId;
|
|
243
|
+
};
|
|
244
|
+
protoOf($).get_name_woqyms_k$ = function () {
|
|
245
|
+
return this.name;
|
|
246
|
+
};
|
|
247
|
+
protoOf($).component1_7eebsc_k$ = function () {
|
|
248
|
+
return this.account;
|
|
249
|
+
};
|
|
250
|
+
protoOf($).component2_7eebsb_k$ = function () {
|
|
251
|
+
return this.amount;
|
|
252
|
+
};
|
|
253
|
+
protoOf($).component3_7eebsa_k$ = function () {
|
|
254
|
+
return this.createdAt;
|
|
255
|
+
};
|
|
256
|
+
protoOf($).component4_7eebs9_k$ = function () {
|
|
257
|
+
return this.description;
|
|
258
|
+
};
|
|
259
|
+
protoOf($).component5_7eebs8_k$ = function () {
|
|
260
|
+
return this.id;
|
|
261
|
+
};
|
|
262
|
+
protoOf($).component6_7eebs7_k$ = function () {
|
|
263
|
+
return this.invoiceId;
|
|
264
|
+
};
|
|
265
|
+
protoOf($).component7_7eebs6_k$ = function () {
|
|
266
|
+
return this.name;
|
|
267
|
+
};
|
|
268
|
+
protoOf($).copy_8kzf7_k$ = function (account, amount, createdAt, description, id, invoiceId, name) {
|
|
269
|
+
return new (InvoiceLine())(account, amount, createdAt, description, id, invoiceId, name);
|
|
270
|
+
};
|
|
271
|
+
protoOf($).copy = function (account, amount, createdAt, description, id, invoiceId, name, $super) {
|
|
272
|
+
account = account === VOID ? this.account : account;
|
|
273
|
+
amount = amount === VOID ? this.amount : amount;
|
|
274
|
+
createdAt = createdAt === VOID ? this.createdAt : createdAt;
|
|
275
|
+
description = description === VOID ? this.description : description;
|
|
276
|
+
id = id === VOID ? this.id : id;
|
|
277
|
+
invoiceId = invoiceId === VOID ? this.invoiceId : invoiceId;
|
|
278
|
+
name = name === VOID ? this.name : name;
|
|
279
|
+
return $super === VOID ? this.copy_8kzf7_k$(account, amount, createdAt, description, id, invoiceId, name) : $super.copy_8kzf7_k$.call(this, account, amount, createdAt, description, id, invoiceId, name);
|
|
280
|
+
};
|
|
281
|
+
protoOf($).toString = function () {
|
|
282
|
+
return 'InvoiceLine(account=' + this.account + ', amount=' + this.amount + ', createdAt=' + this.createdAt.toString() + ', description=' + this.description + ', id=' + this.id.toString() + ', invoiceId=' + this.invoiceId.toString() + ', name=' + this.name + ')';
|
|
283
|
+
};
|
|
284
|
+
protoOf($).hashCode = function () {
|
|
285
|
+
var result = getStringHashCode(this.account);
|
|
286
|
+
result = imul(result, 31) + getNumberHashCode(this.amount) | 0;
|
|
287
|
+
result = imul(result, 31) + this.createdAt.hashCode() | 0;
|
|
288
|
+
result = imul(result, 31) + getStringHashCode(this.description) | 0;
|
|
289
|
+
result = imul(result, 31) + getBigIntHashCode(this.id) | 0;
|
|
290
|
+
result = imul(result, 31) + getBigIntHashCode(this.invoiceId) | 0;
|
|
291
|
+
result = imul(result, 31) + getStringHashCode(this.name) | 0;
|
|
292
|
+
return result;
|
|
293
|
+
};
|
|
294
|
+
protoOf($).equals = function (other) {
|
|
295
|
+
if (this === other)
|
|
296
|
+
return true;
|
|
297
|
+
if (!(other instanceof InvoiceLine()))
|
|
298
|
+
return false;
|
|
299
|
+
if (!(this.account === other.account))
|
|
300
|
+
return false;
|
|
301
|
+
if (!equals(this.amount, other.amount))
|
|
302
|
+
return false;
|
|
303
|
+
if (!this.createdAt.equals(other.createdAt))
|
|
304
|
+
return false;
|
|
305
|
+
if (!(this.description === other.description))
|
|
306
|
+
return false;
|
|
307
|
+
if (!(this.id === other.id))
|
|
308
|
+
return false;
|
|
309
|
+
if (!(this.invoiceId === other.invoiceId))
|
|
310
|
+
return false;
|
|
311
|
+
if (!(this.name === other.name))
|
|
312
|
+
return false;
|
|
313
|
+
return true;
|
|
314
|
+
};
|
|
315
|
+
/* Solibo boundary patches */
|
|
316
|
+
Object.defineProperty($, 'name', { value: "InvoiceLine", configurable: true });
|
|
317
|
+
__soliboRegisterLookup("InvoiceLine", () => $);
|
|
318
|
+
InvoiceLineClass = $;
|
|
319
|
+
}
|
|
320
|
+
return InvoiceLineClass;
|
|
321
|
+
}
|
|
322
|
+
//region block: init
|
|
323
|
+
Companion_instance = new (Companion())();
|
|
324
|
+
//endregion
|
|
325
|
+
//region block: exports
|
|
326
|
+
export {
|
|
327
|
+
$serializer_getInstance as $serializer_getInstance2jq1ov66dozav,
|
|
328
|
+
InvoiceLine as InvoiceLinehct0rfv6azfr,
|
|
329
|
+
};
|
|
330
|
+
//endregion
|
|
331
|
+
|
package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceTracking.export.d.mts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare class InvoiceTracking {
|
|
4
|
+
constructor(companyId: bigint, createdAt: any/* Instant */, customerId: bigint, customerType: PayerType, error: Nullable<string> | undefined, externalReference: string, id: bigint, invoicePlanTransactionId?: Nullable<bigint>, lines?: Nullable<KtList<InvoiceLine>>, overdueDelay?: Nullable<OverdueDelay>, success?: Nullable<boolean>);
|
|
5
|
+
get companyId(): bigint;
|
|
6
|
+
get createdAt(): any/* Instant */;
|
|
7
|
+
get customerId(): bigint;
|
|
8
|
+
get customerType(): PayerType;
|
|
9
|
+
get error(): Nullable<string>;
|
|
10
|
+
get externalReference(): string;
|
|
11
|
+
get id(): bigint;
|
|
12
|
+
get invoicePlanTransactionId(): Nullable<bigint>;
|
|
13
|
+
get lines(): Nullable<KtList<InvoiceLine>>;
|
|
14
|
+
get overdueDelay(): Nullable<OverdueDelay>;
|
|
15
|
+
get success(): Nullable<boolean>;
|
|
16
|
+
copy(companyId?: bigint, createdAt?: any/* Instant */, customerId?: bigint, customerType?: PayerType, error?: Nullable<string>, externalReference?: string, id?: bigint, invoicePlanTransactionId?: Nullable<bigint>, lines?: Nullable<KtList<InvoiceLine>>, overdueDelay?: Nullable<OverdueDelay>, success?: Nullable<boolean>): InvoiceTracking;
|
|
17
|
+
toString(): string;
|
|
18
|
+
hashCode(): number;
|
|
19
|
+
equals(other: Nullable<any>): boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace InvoiceTracking {
|
|
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 () => InvoiceTracking;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/InvoiceTracking.export.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InvoiceTracking1ronvlvfwcl72 as InvoiceTracking } from './InvoiceTracking.mjs';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
//region block: exports
|
|
7
|
+
var InvoiceTracking_0 = InvoiceTracking();
|
|
8
|
+
export {
|
|
9
|
+
InvoiceTracking_0 as InvoiceTracking,
|
|
10
|
+
};
|
|
11
|
+
//endregion
|
|
12
|
+
|