@solibo/solibo-sdk 1.52.0 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/client/task.d.mts +1 -1
  2. package/client/task.mjs +8 -0
  3. package/client.d.mts +13 -6
  4. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  5. package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
  6. package/operations/task.d.mts +1 -1
  7. package/operations/task.mjs +2 -2
  8. package/package.json +1 -1
  9. package/solibo-cycles/kotlinx-coroutines-core-17.mjs +1 -1
  10. package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +2 -2
  11. package/solibo-sdk-sdk/no/solibo/oss/sdk/api/MockHomeApi.mjs +47 -56
  12. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.export.d.mts +1 -1
  13. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/InvoicingApi.mjs +6 -6
  14. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/CreateCompanyInvoiceRecipientOfSectionOperation.export.d.mts +1 -1
  15. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/CreateCompanyInvoiceRecipientOfSectionOperation.mjs +78 -10
  16. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/apis/SupplierApi.export.d.mts +2 -2
  17. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/apis/SupplierApi.mjs +8 -8
  18. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/operations/CreateCompanySupplierContactOperation.export.d.mts +1 -1
  19. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/operations/CreateCompanySupplierContactOperation.mjs +4 -4
  20. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/operations/UpdateCompanySupplierContactOperation.export.d.mts +1 -1
  21. package/solibo-sdk-sdk-api-supplier/no/solibo/oss/sdk/api/gen/client/operations/UpdateCompanySupplierContactOperation.mjs +4 -4
  22. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/apis/TaskApi.export.d.mts +2 -2
  23. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/apis/TaskApi.mjs +33 -27
  24. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksOperation.export.d.mts +1 -1
  25. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksOperation.export.mjs +4 -2
  26. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksOperation.mjs +20 -10
  27. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksUserOperation.export.d.mts +1 -1
  28. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksUserOperation.export.mjs +4 -2
  29. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/client/operations/IndexTasksUserOperation.mjs +19 -9
  30. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/models/TaskOrderDirection.export.d.mts +45 -0
  31. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/models/TaskOrderDirection.export.mjs +36 -0
  32. package/solibo-sdk-sdk-api-task/no/solibo/oss/sdk/api/gen/models/TaskOrderDirection.mjs +168 -0
  33. package/solibo-sdk-sdk-api-task.mjs +1 -0
  34. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
  35. package/solibo-sdk-sdk.d.mts +52 -10
@@ -1,6 +1,24 @@
1
1
  import { promisify1z0ncraq1ipzh as promisify } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
2
2
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
3
  import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
4
+ import { KtList3hktaavzmj137 as KtList } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs';
5
+ import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
6
+ import { PrimitiveClasses_getInstance13wbaztpz3e2d as PrimitiveClasses_getInstance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs';
7
+ import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
8
+ import {
9
+ createKType31ecntyyaay3k as createKType,
10
+ createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
11
+ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
12
+ import { serializer1hwzc6m64v1op as serializer } from '../../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs';
13
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
14
+ import { KSerializerzf77vz1967fq as KSerializer } from '../../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs';
15
+ import { isInterface3d6p8outrmvmk as isInterface } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
16
+ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
17
+ import {
18
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
19
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
20
+ initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
21
+ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
4
22
  import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
5
23
  import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
6
24
  import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
@@ -9,17 +27,13 @@ import { RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getIn
9
27
  import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs';
10
28
  import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
11
29
  import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
12
- import { InvoiceRecipient21ajh8d626wpp as InvoiceRecipient } from '../../models/InvoiceRecipient.mjs';
13
- import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
14
- import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
15
- import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
16
30
  import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '../../../../../../../../../ktor-ktor-utils/io/ktor/util/reflect/Type.mjs';
17
31
  import {
18
32
  TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
19
33
  HttpResponse53ki0v36vqo7 as HttpResponse,
34
+ map1gud2hobp4wg5 as map,
20
35
  } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs';
21
- import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
22
- import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
36
+ import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
23
37
  //region block: imports
24
38
  //endregion
25
39
  //region block: pre-declaration
@@ -36,6 +50,59 @@ function createCompanyInvoiceRecipientOfSectionOperation_0(client, companyId, cu
36
50
  tmp.exception_1 = null;
37
51
  return tmp.doResume_5yljmg_k$();
38
52
  }
53
+ var CompanionClass;
54
+ function Companion() {
55
+ if (CompanionClass === VOID) {
56
+ initMetadataForCompanion($, VOID, [KSerializer()]);
57
+ function $() {
58
+ Companion_instance = this;
59
+ var tmp = this;
60
+ // Inline function 'kotlinx.serialization.serializer' call
61
+ // Inline function 'kotlinx.serialization.internal.cast' call
62
+ var this_0 = serializer(createKType(getKClass(KtList()), arrayOf([createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().get_longClass_a79cj7_k$(), arrayOf([]), false))]), false));
63
+ tmp.serializer_1 = isInterface(this_0, KSerializer()) ? this_0 : THROW_CCE();
64
+ this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
65
+ }
66
+ protoOf($).get_descriptor_wjt6a0_k$ = function () {
67
+ return this.descriptor_1;
68
+ };
69
+ protoOf($).serialize_5zzw2s_k$ = function (encoder, value) {
70
+ return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
71
+ };
72
+ protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
73
+ return this.serialize_5zzw2s_k$(encoder, value instanceof CreateCompanyInvoiceRecipientOfSectionResponse() ? value : THROW_CCE());
74
+ };
75
+ protoOf($).deserialize_sy6x50_k$ = function (decoder) {
76
+ return new (CreateCompanyInvoiceRecipientOfSectionResponse())(this.serializer_1.deserialize_sy6x50_k$(decoder));
77
+ };
78
+ protoOf($).serializer_9w0wvi_k$ = function () {
79
+ return Companion_getInstance();
80
+ };
81
+ CompanionClass = $;
82
+ }
83
+ return CompanionClass;
84
+ }
85
+ var Companion_instance;
86
+ function Companion_getInstance() {
87
+ if (Companion_instance == null)
88
+ new (Companion())();
89
+ return Companion_instance;
90
+ }
91
+ var CreateCompanyInvoiceRecipientOfSectionResponseClass;
92
+ function CreateCompanyInvoiceRecipientOfSectionResponse() {
93
+ if (CreateCompanyInvoiceRecipientOfSectionResponseClass === VOID) {
94
+ initMetadataForClass($, 'CreateCompanyInvoiceRecipientOfSectionResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance});
95
+ function $(value) {
96
+ Companion_getInstance();
97
+ this.value_1 = value;
98
+ }
99
+ CreateCompanyInvoiceRecipientOfSectionResponseClass = $;
100
+ }
101
+ return CreateCompanyInvoiceRecipientOfSectionResponseClass;
102
+ }
103
+ function createCompanyInvoiceRecipientOfSectionOperation$lambda($this$map) {
104
+ return $this$map.value_1;
105
+ }
39
106
  var $createCompanyInvoiceRecipientOfSectionOperationCOROUTINE$Class;
40
107
  function $createCompanyInvoiceRecipientOfSectionOperationCOROUTINE$() {
41
108
  if ($createCompanyInvoiceRecipientOfSectionOperationCOROUTINE$Class === VOID) {
@@ -81,11 +148,11 @@ function $createCompanyInvoiceRecipientOfSectionOperationCOROUTINE$() {
81
148
  continue $sm;
82
149
  case 1:
83
150
  var this_0 = suspendResult;
84
- var tmp_0 = getKClass(InvoiceRecipient());
85
- var tmp_1 = null instanceof InvoiceRecipient();
151
+ var tmp_0 = getKClass(CreateCompanyInvoiceRecipientOfSectionResponse());
152
+ var tmp_1 = null instanceof CreateCompanyInvoiceRecipientOfSectionResponse();
86
153
  var tmp_2;
87
154
  try {
88
- tmp_2 = createKType(getKClass(InvoiceRecipient()), arrayOf([]), false);
155
+ tmp_2 = createKType(getKClass(CreateCompanyInvoiceRecipientOfSectionResponse()), arrayOf([]), false);
89
156
  } catch ($p) {
90
157
  var tmp_3;
91
158
  if ($p instanceof Error) {
@@ -97,7 +164,8 @@ function $createCompanyInvoiceRecipientOfSectionOperationCOROUTINE$() {
97
164
  tmp_2 = tmp_3;
98
165
  }
99
166
 
100
- return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
167
+ var ARGUMENT = new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
168
+ return map(ARGUMENT, createCompanyInvoiceRecipientOfSectionOperation$lambda);
101
169
  case 2:
102
170
  throw this.exception_1;
103
171
  }
@@ -6,7 +6,7 @@ export declare class SupplierApi extends ApiClient.$metadata$.constructor {
6
6
  static createWithClient(baseUrl: string, httpClient: any/* HttpClient */): SupplierApi;
7
7
  createCompanySupplier(companyId: bigint, createSupplierForCompanyCommand: CreateSupplierForCompanyCommand): Promise<HttpResponse<SupplierForCompany>>;
8
8
  createCompanySupplierComment(companyId: bigint, supplierId: bigint, createSupplierCommentCommand: CreateSupplierCommentCommand): Promise<HttpResponse<SupplierComment>>;
9
- createCompanySupplierContact(companyId: bigint, supplierId: bigint, createSupplierContactCommand: CreateSupplierContactCommand): Promise<HttpResponse<Person>>;
9
+ createCompanySupplierContact(companyId: bigint, supplierId: bigint, createSupplierContactCommand: CreateSupplierContactCommand): Promise<HttpResponse<SupplierContact>>;
10
10
  createSupplier(createSupplierCommand: CreateSupplierCommand): Promise<HttpResponse<Supplier>>;
11
11
  createSupplierLogo(supplierId: bigint): Promise<HttpResponse<void>>;
12
12
  deleteCompanySupplier(companyId: bigint, supplierId: bigint): Promise<HttpResponse<void>>;
@@ -23,7 +23,7 @@ export declare class SupplierApi extends ApiClient.$metadata$.constructor {
23
23
  updateCompanySupplier(companyId: bigint, supplierId: bigint, updateSupplierForCompanyCommand: UpdateSupplierForCompanyCommand): Promise<HttpResponse<SupplierForCompany>>;
24
24
  updateCompanySupplierComment(companyId: bigint, supplierId: bigint, commentId: bigint, updateSupplierCommentCommand: UpdateSupplierCommentCommand): Promise<HttpResponse<SupplierComment>>;
25
25
  updateCompanySupplierCommentEmoticon(companyId: bigint, supplierId: bigint, commentId: bigint, setSupplierCommentEmoticonCommand: SetSupplierCommentEmoticonCommand): Promise<HttpResponse<void>>;
26
- updateCompanySupplierContact(companyId: bigint, supplierId: bigint, contactId: bigint, updateSupplierContactCommand: UpdateSupplierContactCommand): Promise<HttpResponse<Person>>;
26
+ updateCompanySupplierContact(companyId: bigint, supplierId: bigint, contactId: bigint, updateSupplierContactCommand: UpdateSupplierContactCommand): Promise<HttpResponse<SupplierContact>>;
27
27
  updateCompanySupplierContactImage(companyId: bigint, supplierId: bigint, contactId: bigint): Promise<HttpResponse<void>>;
28
28
  updateSupplier(supplierId: bigint, updateSupplierCommand: UpdateSupplierCommand): Promise<HttpResponse<Supplier>>;
29
29
  updateSupplierServiceCategories(supplierId: bigint, updateServiceCategoriesCommand: UpdateServiceCategoriesCommand): Promise<HttpResponse<void>>;
@@ -225,7 +225,7 @@ function $createCompanySupplierContact$suspendBridgeCOROUTINE$() {
225
225
  this.exceptionState_1 = 4;
226
226
  if (this._this__u8e3s4__1.createCompanySupplierContact === protoOf(SupplierApi()).createCompanySupplierContact) {
227
227
  this.state_1 = 2;
228
- suspendResult = this._this__u8e3s4__1.createCompanySupplierContact_2opb7x_k$(this.companyId_1, this.supplierId_1, this.createSupplierContactCommand_1, this);
228
+ suspendResult = this._this__u8e3s4__1.createCompanySupplierContact_46xyye_k$(this.companyId_1, this.supplierId_1, this.createSupplierContactCommand_1, this);
229
229
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
230
230
  return suspendResult;
231
231
  }
@@ -1319,7 +1319,7 @@ function $updateCompanySupplierContact$suspendBridgeCOROUTINE$() {
1319
1319
  this.exceptionState_1 = 4;
1320
1320
  if (this._this__u8e3s4__1.updateCompanySupplierContact === protoOf(SupplierApi()).updateCompanySupplierContact) {
1321
1321
  this.state_1 = 2;
1322
- suspendResult = this._this__u8e3s4__1.updateCompanySupplierContact_te1uz_k$(this.companyId_1, this.supplierId_1, this.contactId_1, this.updateSupplierContactCommand_1, this);
1322
+ suspendResult = this._this__u8e3s4__1.updateCompanySupplierContact_d3ua6w_k$(this.companyId_1, this.supplierId_1, this.contactId_1, this.updateSupplierContactCommand_1, this);
1323
1323
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1324
1324
  return suspendResult;
1325
1325
  }
@@ -1582,16 +1582,16 @@ function SupplierApi() {
1582
1582
  tmp.exception_1 = null;
1583
1583
  return tmp.doResume_5yljmg_k$();
1584
1584
  };
1585
- protoOf($).createCompanySupplierContact_2opb7x_k$ = function (companyId, supplierId, createSupplierContactCommand, $completion) {
1585
+ protoOf($).createCompanySupplierContact_46xyye_k$ = function (companyId, supplierId, createSupplierContactCommand, $completion) {
1586
1586
  return createCompanySupplierContactOperation(this, companyId, supplierId, createSupplierContactCommand, $completion);
1587
1587
  };
1588
1588
  protoOf($).createCompanySupplierContact = function (companyId, supplierId, createSupplierContactCommand) {
1589
1589
  var tmp = this;
1590
1590
  return promisify(function ($completion) {
1591
- return tmp.createCompanySupplierContact_2opb7x_k$(companyId, supplierId, createSupplierContactCommand, $completion);
1591
+ return tmp.createCompanySupplierContact_46xyye_k$(companyId, supplierId, createSupplierContactCommand, $completion);
1592
1592
  });
1593
1593
  };
1594
- protoOf($).createCompanySupplierContact$suspendBridge_1m6z2q_k$ = function (companyId, supplierId, createSupplierContactCommand, $completion) {
1594
+ protoOf($).createCompanySupplierContact$suspendBridge_ivkwhh_k$ = function (companyId, supplierId, createSupplierContactCommand, $completion) {
1595
1595
  var tmp = new ($createCompanySupplierContact$suspendBridgeCOROUTINE$())(this, companyId, supplierId, createSupplierContactCommand, $completion);
1596
1596
  tmp.result_1 = Unit_instance;
1597
1597
  tmp.exception_1 = null;
@@ -1896,16 +1896,16 @@ function SupplierApi() {
1896
1896
  tmp.exception_1 = null;
1897
1897
  return tmp.doResume_5yljmg_k$();
1898
1898
  };
1899
- protoOf($).updateCompanySupplierContact_te1uz_k$ = function (companyId, supplierId, contactId, updateSupplierContactCommand, $completion) {
1899
+ protoOf($).updateCompanySupplierContact_d3ua6w_k$ = function (companyId, supplierId, contactId, updateSupplierContactCommand, $completion) {
1900
1900
  return updateCompanySupplierContactOperation(this, companyId, supplierId, contactId, updateSupplierContactCommand, $completion);
1901
1901
  };
1902
1902
  protoOf($).updateCompanySupplierContact = function (companyId, supplierId, contactId, updateSupplierContactCommand) {
1903
1903
  var tmp = this;
1904
1904
  return promisify(function ($completion) {
1905
- return tmp.updateCompanySupplierContact_te1uz_k$(companyId, supplierId, contactId, updateSupplierContactCommand, $completion);
1905
+ return tmp.updateCompanySupplierContact_d3ua6w_k$(companyId, supplierId, contactId, updateSupplierContactCommand, $completion);
1906
1906
  });
1907
1907
  };
1908
- protoOf($).updateCompanySupplierContact$suspendBridge_7hffx2_k$ = function (companyId, supplierId, contactId, updateSupplierContactCommand, $completion) {
1908
+ protoOf($).updateCompanySupplierContact$suspendBridge_8u7i9l_k$ = function (companyId, supplierId, contactId, updateSupplierContactCommand, $completion) {
1909
1909
  var tmp = new ($updateCompanySupplierContact$suspendBridgeCOROUTINE$())(this, companyId, supplierId, contactId, updateSupplierContactCommand, $completion);
1910
1910
  tmp.result_1 = Unit_instance;
1911
1911
  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 createCompanySupplierContactOperation(client: ApiClient, companyId: bigint, supplierId: bigint, createSupplierContactCommand: CreateSupplierContactCommand): Promise<HttpResponse<Person>>;
3
+ export declare function createCompanySupplierContactOperation(client: ApiClient, companyId: bigint, supplierId: bigint, createSupplierContactCommand: CreateSupplierContactCommand): Promise<HttpResponse<SupplierContact>>;
@@ -8,7 +8,7 @@ import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotl
8
8
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
9
9
  import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
10
10
  import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
11
- import { Person2qfwnvdasq352 as Person } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Person.mjs';
11
+ import { SupplierContact3cz3f92ph8k5o as SupplierContact } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SupplierContact.mjs';
12
12
  import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
13
13
  import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
14
14
  import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
@@ -69,11 +69,11 @@ function $createCompanySupplierContactOperationCOROUTINE$() {
69
69
  continue $sm;
70
70
  case 1:
71
71
  var this_0 = suspendResult;
72
- var tmp_0 = getKClass(Person());
73
- var tmp_1 = null instanceof Person();
72
+ var tmp_0 = getKClass(SupplierContact());
73
+ var tmp_1 = null instanceof SupplierContact();
74
74
  var tmp_2;
75
75
  try {
76
- tmp_2 = createKType(getKClass(Person()), arrayOf([]), false);
76
+ tmp_2 = createKType(getKClass(SupplierContact()), arrayOf([]), false);
77
77
  } catch ($p) {
78
78
  var tmp_3;
79
79
  if ($p instanceof Error) {
@@ -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 updateCompanySupplierContactOperation(client: ApiClient, companyId: bigint, supplierId: bigint, contactId: bigint, updateSupplierContactCommand: UpdateSupplierContactCommand): Promise<HttpResponse<Person>>;
3
+ export declare function updateCompanySupplierContactOperation(client: ApiClient, companyId: bigint, supplierId: bigint, contactId: bigint, updateSupplierContactCommand: UpdateSupplierContactCommand): Promise<HttpResponse<SupplierContact>>;
@@ -8,7 +8,7 @@ import { replace3le3ie7l9k8aq as replace } from '../../../../../../../../../kotl
8
8
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
9
9
  import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/RequestConfig.mjs';
10
10
  import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
11
- import { Person2qfwnvdasq352 as Person } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Person.mjs';
11
+ import { SupplierContact3cz3f92ph8k5o as SupplierContact } from '../../../../../../../../../solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SupplierContact.mjs';
12
12
  import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
13
13
  import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
14
14
  import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
@@ -70,11 +70,11 @@ function $updateCompanySupplierContactOperationCOROUTINE$() {
70
70
  continue $sm;
71
71
  case 1:
72
72
  var this_0 = suspendResult;
73
- var tmp_0 = getKClass(Person());
74
- var tmp_1 = null instanceof Person();
73
+ var tmp_0 = getKClass(SupplierContact());
74
+ var tmp_1 = null instanceof SupplierContact();
75
75
  var tmp_2;
76
76
  try {
77
- tmp_2 = createKType(getKClass(Person()), arrayOf([]), false);
77
+ tmp_2 = createKType(getKClass(SupplierContact()), arrayOf([]), false);
78
78
  } catch ($p) {
79
79
  var tmp_3;
80
80
  if ($p instanceof Error) {
@@ -8,8 +8,8 @@ export declare class TaskApi extends ApiClient.$metadata$.constructor {
8
8
  createMultipleTasks(bulkImportTasksCommand: BulkImportTasksCommand): Promise<HttpResponse<BulkImportTasksResult>>;
9
9
  createTask(companyId: bigint, createTaskCommand: CreateTaskCommand): Promise<HttpResponse<Task>>;
10
10
  deleteTask(companyId: bigint, taskId: bigint): Promise<HttpResponse<void>>;
11
- indexTasks(companyId: bigint, search?: Nullable<string>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListTask>>;
12
- indexTasksUser(search?: Nullable<string>, companyIds?: Nullable<KtList<bigint>>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListTask>>;
11
+ indexTasks(companyId: bigint, search?: Nullable<string>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, orderDirection?: Nullable<TaskOrderDirection>): Promise<HttpResponse<PagedListTask>>;
12
+ indexTasksUser(search?: Nullable<string>, companyIds?: Nullable<KtList<bigint>>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, orderDirection?: Nullable<TaskOrderDirection>): Promise<HttpResponse<PagedListTask>>;
13
13
  unCompleteTask(companyId: bigint, taskId: bigint): Promise<HttpResponse<void>>;
14
14
  updateTask(companyId: bigint, taskId: bigint, updateTaskCommand: UpdateTaskCommand): Promise<HttpResponse<Task>>;
15
15
  }
@@ -24,14 +24,15 @@ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../.
24
24
  import { createMultipleTasksOperation27gwoh66j5g6k as createMultipleTasksOperation } from '../operations/CreateMultipleTasksOperation.mjs';
25
25
  import { createTaskOperation2cbd9sje8qd35 as createTaskOperation } from '../operations/CreateTaskOperation.mjs';
26
26
  import { deleteTaskOperation3kahoe8dz6het as deleteTaskOperation } from '../operations/DeleteTaskOperation.mjs';
27
- import { indexTasksOperation2uvacpuxzefui as indexTasksOperation } from '../operations/IndexTasksOperation.mjs';
28
- import { indexTasksUserOperation1nb1mfazonthd as indexTasksUserOperation } from '../operations/IndexTasksUserOperation.mjs';
27
+ import { indexTasksOperation1te1l08hay42z as indexTasksOperation } from '../operations/IndexTasksOperation.mjs';
28
+ import { indexTasksUserOperation239ks0kftp8hq as indexTasksUserOperation } from '../operations/IndexTasksUserOperation.mjs';
29
29
  import { unCompleteTaskOperation23b7jy3yeztni as unCompleteTaskOperation } from '../operations/UnCompleteTaskOperation.mjs';
30
30
  import { updateTaskOperation1f9kdlbtvsdt1 as updateTaskOperation } from '../operations/UpdateTaskOperation.mjs';
31
31
  import { __soliboBoundaryState, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../../solibo-boundary.mjs';
32
32
  import { BulkImportTasksCommand60r6575dvqdw as __soliboType_BulkImportTasksCommand } from '../../models/BulkImportTasksCommand.mjs';
33
33
  import { CompleteTaskCommand2225jyf6qxige as __soliboType_CompleteTaskCommand } from '../../models/CompleteTaskCommand.mjs';
34
34
  import { CreateTaskCommand196nmgt6vlaz4 as __soliboType_CreateTaskCommand } from '../../models/CreateTaskCommand.mjs';
35
+ import { TaskOrderDirection21sa7kcx00wx0 as __soliboType_TaskOrderDirection } from '../../models/TaskOrderDirection.mjs';
35
36
  import { UpdateTaskCommand1xybmyod0l05w as __soliboType_UpdateTaskCommand } from '../../models/UpdateTaskCommand.mjs';
36
37
  //region block: imports
37
38
  //endregion
@@ -309,7 +310,7 @@ var $indexTasks$suspendBridgeCOROUTINE$Class;
309
310
  function $indexTasks$suspendBridgeCOROUTINE$() {
310
311
  if ($indexTasks$suspendBridgeCOROUTINE$Class === VOID) {
311
312
  initMetadataForCoroutine($, CoroutineImpl());
312
- function $(_this__u8e3s4, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, resultContinuation) {
313
+ function $(_this__u8e3s4, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, resultContinuation) {
313
314
  CoroutineImpl().call(this, resultContinuation);
314
315
  this._this__u8e3s4__1 = _this__u8e3s4;
315
316
  this.companyId_1 = companyId;
@@ -325,6 +326,7 @@ function $indexTasks$suspendBridgeCOROUTINE$() {
325
326
  this.pageToken_1 = pageToken;
326
327
  this.autoPaginate_1 = autoPaginate;
327
328
  this.count_1 = count;
329
+ this.orderDirection_1 = orderDirection;
328
330
  }
329
331
  protoOf($).doResume_5yljmg_k$ = function () {
330
332
  var suspendResult = this.result_1;
@@ -336,14 +338,14 @@ function $indexTasks$suspendBridgeCOROUTINE$() {
336
338
  this.exceptionState_1 = 4;
337
339
  if (this._this__u8e3s4__1.indexTasks === protoOf(TaskApi()).indexTasks) {
338
340
  this.state_1 = 2;
339
- suspendResult = this._this__u8e3s4__1.indexTasks$default_ymzzbo_k$(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
341
+ suspendResult = this._this__u8e3s4__1.indexTasks$default_xm7edm_k$(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.orderDirection_1, this);
340
342
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
341
343
  return suspendResult;
342
344
  }
343
345
  continue $sm;
344
346
  } else {
345
347
  this.state_1 = 1;
346
- suspendResult = await_0(this._this__u8e3s4__1.indexTasks(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
348
+ suspendResult = await_0(this._this__u8e3s4__1.indexTasks(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.orderDirection_1), this);
347
349
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
348
350
  return suspendResult;
349
351
  }
@@ -382,7 +384,7 @@ var $indexTasksUser$suspendBridgeCOROUTINE$Class;
382
384
  function $indexTasksUser$suspendBridgeCOROUTINE$() {
383
385
  if ($indexTasksUser$suspendBridgeCOROUTINE$Class === VOID) {
384
386
  initMetadataForCoroutine($, CoroutineImpl());
385
- function $(_this__u8e3s4, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, resultContinuation) {
387
+ function $(_this__u8e3s4, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, resultContinuation) {
386
388
  CoroutineImpl().call(this, resultContinuation);
387
389
  this._this__u8e3s4__1 = _this__u8e3s4;
388
390
  this.search_1 = search;
@@ -398,6 +400,7 @@ function $indexTasksUser$suspendBridgeCOROUTINE$() {
398
400
  this.pageToken_1 = pageToken;
399
401
  this.autoPaginate_1 = autoPaginate;
400
402
  this.count_1 = count;
403
+ this.orderDirection_1 = orderDirection;
401
404
  }
402
405
  protoOf($).doResume_5yljmg_k$ = function () {
403
406
  var suspendResult = this.result_1;
@@ -409,14 +412,14 @@ function $indexTasksUser$suspendBridgeCOROUTINE$() {
409
412
  this.exceptionState_1 = 4;
410
413
  if (this._this__u8e3s4__1.indexTasksUser === protoOf(TaskApi()).indexTasksUser) {
411
414
  this.state_1 = 2;
412
- suspendResult = this._this__u8e3s4__1.indexTasksUser$default_deycwn_k$(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
415
+ suspendResult = this._this__u8e3s4__1.indexTasksUser$default_hxdla9_k$(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.orderDirection_1, this);
413
416
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
414
417
  return suspendResult;
415
418
  }
416
419
  continue $sm;
417
420
  } else {
418
421
  this.state_1 = 1;
419
- suspendResult = await_0(this._this__u8e3s4__1.indexTasksUser(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
422
+ suspendResult = await_0(this._this__u8e3s4__1.indexTasksUser(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.taskIds_1, this.deleted_1, this.includeDeleted_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.orderDirection_1), this);
420
423
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
421
424
  return suspendResult;
422
425
  }
@@ -579,7 +582,7 @@ function $updateTask$suspendBridgeCOROUTINE$() {
579
582
  var TaskApiClass;
580
583
  function TaskApi() {
581
584
  if (TaskApiClass === VOID) {
582
- initMetadataForClass($, 'TaskApi', create, ApiClient(), VOID, [3, 1, 2, 13]);
585
+ initMetadataForClass($, 'TaskApi', create, ApiClient(), VOID, [3, 1, 2, 14]);
583
586
  protoOf($).completeTask_h9y8r2_k$ = function (companyId, taskId, completeTaskCommand, $completion) {
584
587
  return completeTaskOperation(this, companyId, taskId, completeTaskCommand, $completion);
585
588
  };
@@ -640,10 +643,10 @@ function TaskApi() {
640
643
  tmp.exception_1 = null;
641
644
  return tmp.doResume_5yljmg_k$();
642
645
  };
643
- protoOf($).indexTasks_ecves1_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) {
644
- return indexTasksOperation(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
646
+ protoOf($).indexTasks_7ybcxa_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) {
647
+ return indexTasksOperation(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
645
648
  };
646
- protoOf($).indexTasks$default_ymzzbo_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion, $super) {
649
+ protoOf($).indexTasks$default_xm7edm_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion, $super) {
647
650
  search = search === VOID ? null : search;
648
651
  completed = completed === VOID ? null : completed;
649
652
  responsibleId = responsibleId === VOID ? null : responsibleId;
@@ -656,24 +659,25 @@ function TaskApi() {
656
659
  pageToken = pageToken === VOID ? null : pageToken;
657
660
  autoPaginate = autoPaginate === VOID ? null : autoPaginate;
658
661
  count = count === VOID ? null : count;
659
- return $super === VOID ? this.indexTasks_ecves1_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasks_ecves1_k$.call(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
662
+ orderDirection = orderDirection === VOID ? null : orderDirection;
663
+ return $super === VOID ? this.indexTasks_7ybcxa_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) : $super.indexTasks_7ybcxa_k$.call(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
660
664
  };
661
- protoOf($).indexTasks = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count) {
665
+ protoOf($).indexTasks = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection) {
662
666
  var tmp = this;
663
667
  return promisify(function ($completion) {
664
- return tmp.indexTasks$default_ymzzbo_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
668
+ return tmp.indexTasks$default_xm7edm_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
665
669
  });
666
670
  };
667
- protoOf($).indexTasks$suspendBridge_vq08y8_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) {
668
- var tmp = new ($indexTasks$suspendBridgeCOROUTINE$())(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
671
+ protoOf($).indexTasks$suspendBridge_qbeqj1_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) {
672
+ var tmp = new ($indexTasks$suspendBridgeCOROUTINE$())(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
669
673
  tmp.result_1 = Unit_instance;
670
674
  tmp.exception_1 = null;
671
675
  return tmp.doResume_5yljmg_k$();
672
676
  };
673
- protoOf($).indexTasksUser_xgki1h_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) {
674
- return indexTasksUserOperation(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
677
+ protoOf($).indexTasksUser_qqkkag_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) {
678
+ return indexTasksUserOperation(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
675
679
  };
676
- protoOf($).indexTasksUser$default_deycwn_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion, $super) {
680
+ protoOf($).indexTasksUser$default_hxdla9_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion, $super) {
677
681
  search = search === VOID ? null : search;
678
682
  companyIds = companyIds === VOID ? null : companyIds;
679
683
  completed = completed === VOID ? null : completed;
@@ -687,16 +691,17 @@ function TaskApi() {
687
691
  pageToken = pageToken === VOID ? null : pageToken;
688
692
  autoPaginate = autoPaginate === VOID ? null : autoPaginate;
689
693
  count = count === VOID ? null : count;
690
- return $super === VOID ? this.indexTasksUser_xgki1h_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasksUser_xgki1h_k$.call(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
694
+ orderDirection = orderDirection === VOID ? null : orderDirection;
695
+ return $super === VOID ? this.indexTasksUser_qqkkag_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) : $super.indexTasksUser_qqkkag_k$.call(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
691
696
  };
692
- protoOf($).indexTasksUser = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count) {
697
+ protoOf($).indexTasksUser = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection) {
693
698
  var tmp = this;
694
699
  return promisify(function ($completion) {
695
- return tmp.indexTasksUser$default_deycwn_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
700
+ return tmp.indexTasksUser$default_hxdla9_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
696
701
  });
697
702
  };
698
- protoOf($).indexTasksUser$suspendBridge_hdz18q_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) {
699
- var tmp = new ($indexTasksUser$suspendBridgeCOROUTINE$())(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
703
+ protoOf($).indexTasksUser$suspendBridge_1aaiav_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) {
704
+ var tmp = new ($indexTasksUser$suspendBridgeCOROUTINE$())(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
700
705
  tmp.result_1 = Unit_instance;
701
706
  tmp.exception_1 = null;
702
707
  return tmp.doResume_5yljmg_k$();
@@ -739,8 +744,8 @@ function TaskApi() {
739
744
  __soliboWrapMethod($, "createMultipleTasks", {"args":{"0":["model","BulkImportTasksCommand"]},"result":true});
740
745
  __soliboWrapMethod($, "createTask", {"args":{"0":["bigint"],"1":["model","CreateTaskCommand"]},"result":true});
741
746
  __soliboWrapMethod($, "deleteTask", {"args":{"0":["bigint"],"1":["bigint"]},"result":true});
742
- __soliboWrapMethod($, "indexTasks", {"args":{"0":["bigint"],"3":["bigint"],"4":["bigint"],"5":["bigint"],"6":["list",["bigint"]]},"result":true});
743
- __soliboWrapMethod($, "indexTasksUser", {"args":{"1":["list",["bigint"]],"3":["bigint"],"4":["bigint"],"5":["bigint"],"6":["list",["bigint"]]},"result":true});
747
+ __soliboWrapMethod($, "indexTasks", {"args":{"0":["bigint"],"3":["bigint"],"4":["bigint"],"5":["bigint"],"6":["list",["bigint"]],"13":["enum","TaskOrderDirection"]},"result":true});
748
+ __soliboWrapMethod($, "indexTasksUser", {"args":{"1":["list",["bigint"]],"3":["bigint"],"4":["bigint"],"5":["bigint"],"6":["list",["bigint"]],"13":["enum","TaskOrderDirection"]},"result":true});
744
749
  __soliboWrapMethod($, "unCompleteTask", {"args":{"0":["bigint"],"1":["bigint"]},"result":true});
745
750
  __soliboWrapMethod($, "updateTask", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","UpdateTaskCommand"]},"result":true});
746
751
  __soliboRegisterLookup("TaskApi", () => $);
@@ -760,5 +765,6 @@ export {
760
765
  __soliboRegisterLookup("BulkImportTasksCommand", () => __soliboType_BulkImportTasksCommand());
761
766
  __soliboRegisterLookup("CompleteTaskCommand", () => __soliboType_CompleteTaskCommand());
762
767
  __soliboRegisterLookup("CreateTaskCommand", () => __soliboType_CreateTaskCommand());
768
+ __soliboRegisterLookup("TaskOrderDirection", () => __soliboType_TaskOrderDirection());
763
769
  __soliboRegisterLookup("UpdateTaskCommand", () => __soliboType_UpdateTaskCommand());
764
770
 
@@ -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 indexTasksOperation(client: ApiClient, companyId: bigint, search?: Nullable<string>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListTask>>;
3
+ export declare function indexTasksOperation(client: ApiClient, companyId: bigint, search?: Nullable<string>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, orderDirection?: Nullable<TaskOrderDirection>): Promise<HttpResponse<PagedListTask>>;
@@ -1,12 +1,14 @@
1
- import { indexTasksOperation1ivozal6x2ajl as indexTasksOperation } from './IndexTasksOperation.mjs';
1
+ import { indexTasksOperationpu3t049xqt9k as indexTasksOperation } from './IndexTasksOperation.mjs';
2
2
  import { __soliboRegisterLookup, __soliboWrapFunction } from '../../../../../../../../../solibo-boundary.mjs';
3
+ import { TaskOrderDirection21sa7kcx00wx0 as __soliboType_TaskOrderDirection } from '../../models/TaskOrderDirection.mjs';
3
4
  //region block: imports
4
5
  //endregion
5
6
  //region block: pre-declaration
6
7
  //endregion
7
8
  //region block: exports
8
9
  /* Solibo boundary patches */
9
- var indexTasksOperation_solibo = __soliboWrapFunction(indexTasksOperation, {"result":true,"args":{"1":["bigint"],"4":["bigint"],"5":["bigint"],"6":["bigint"],"7":["list",["bigint"]]}});
10
+ __soliboRegisterLookup("TaskOrderDirection", () => __soliboType_TaskOrderDirection());
11
+ var indexTasksOperation_solibo = __soliboWrapFunction(indexTasksOperation, {"result":true,"args":{"1":["bigint"],"4":["bigint"],"5":["bigint"],"6":["bigint"],"7":["list",["bigint"]],"14":["enum","TaskOrderDirection"]}});
10
12
  export {
11
13
  indexTasksOperation_solibo as indexTasksOperation,
12
14
  };
@@ -26,12 +26,12 @@ import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } fro
26
26
  //endregion
27
27
  //region block: pre-declaration
28
28
  //endregion
29
- function indexTasksOperation(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count) {
29
+ function indexTasksOperation(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection) {
30
30
  return promisify(function ($completion) {
31
- return indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
31
+ return indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
32
32
  });
33
33
  }
34
- function indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion) {
34
+ function indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion) {
35
35
  search = search === VOID ? null : search;
36
36
  completed = completed === VOID ? null : completed;
37
37
  responsibleId = responsibleId === VOID ? null : responsibleId;
@@ -44,7 +44,8 @@ function indexTasksOperation_0(client, companyId, search, completed, responsible
44
44
  pageToken = pageToken === VOID ? null : pageToken;
45
45
  autoPaginate = autoPaginate === VOID ? null : autoPaginate;
46
46
  count = count === VOID ? null : count;
47
- var tmp = new ($indexTasksOperationCOROUTINE$())(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, $completion);
47
+ orderDirection = orderDirection === VOID ? null : orderDirection;
48
+ var tmp = new ($indexTasksOperationCOROUTINE$())(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, $completion);
48
49
  tmp.result_1 = Unit_instance;
49
50
  tmp.exception_1 = null;
50
51
  return tmp.doResume_5yljmg_k$();
@@ -53,7 +54,7 @@ var $indexTasksOperationCOROUTINE$Class;
53
54
  function $indexTasksOperationCOROUTINE$() {
54
55
  if ($indexTasksOperationCOROUTINE$Class === VOID) {
55
56
  initMetadataForCoroutine($, CoroutineImpl());
56
- function $(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, resultContinuation) {
57
+ function $(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, taskIds, deleted, includeDeleted, fields, pageToken, autoPaginate, count, orderDirection, resultContinuation) {
57
58
  CoroutineImpl().call(this, resultContinuation);
58
59
  this.client_1 = client;
59
60
  this.companyId_1 = companyId;
@@ -69,6 +70,7 @@ function $indexTasksOperationCOROUTINE$() {
69
70
  this.pageToken_1 = pageToken;
70
71
  this.autoPaginate_1 = autoPaginate;
71
72
  this.count_1 = count;
73
+ this.orderDirection_1 = orderDirection;
72
74
  }
73
75
  protoOf($).doResume_5yljmg_k$ = function () {
74
76
  var suspendResult = this.result_1;
@@ -173,10 +175,18 @@ function $indexTasksOperationCOROUTINE$() {
173
175
  localVariableQuery.put_4fpzoq_k$('count', value_10);
174
176
  }
175
177
 
178
+ if (this.orderDirection_1 == null)
179
+ null;
180
+ else {
181
+ var tmp2_6 = 'orderDirection';
182
+ var value_11 = listOf_0(this.orderDirection_1.value);
183
+ localVariableQuery.put_4fpzoq_k$(tmp2_6, value_11);
184
+ }
185
+
176
186
  var localVariableHeaders = LinkedHashMap_init_$Create$();
177
- var tmp12_method = RequestMethod_GET_getInstance();
178
- var tmp13_path = replace('/companies/{companyId}/tasks', '{companyId}', this.companyId_1.toString());
179
- var localVariableConfig = new (RequestConfig())(tmp12_method, tmp13_path, localVariableHeaders, VOID, localVariableQuery, true);
187
+ var tmp13_method = RequestMethod_GET_getInstance();
188
+ var tmp14_path = replace('/companies/{companyId}/tasks', '{companyId}', this.companyId_1.toString());
189
+ var localVariableConfig = new (RequestConfig())(tmp13_method, tmp14_path, localVariableHeaders, VOID, localVariableQuery, true);
180
190
  this.state_1 = 1;
181
191
  suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
182
192
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -223,8 +233,8 @@ function $indexTasksOperationCOROUTINE$() {
223
233
  }
224
234
  //region block: exports
225
235
  export {
226
- indexTasksOperation as indexTasksOperation1ivozal6x2ajl,
227
- indexTasksOperation_0 as indexTasksOperation2uvacpuxzefui,
236
+ indexTasksOperation as indexTasksOperationpu3t049xqt9k,
237
+ indexTasksOperation_0 as indexTasksOperation1te1l08hay42z,
228
238
  };
229
239
  //endregion
230
240
 
@@ -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 indexTasksUserOperation(client: ApiClient, search?: Nullable<string>, companyIds?: Nullable<KtList<bigint>>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListTask>>;
3
+ export declare function indexTasksUserOperation(client: ApiClient, search?: Nullable<string>, companyIds?: Nullable<KtList<bigint>>, completed?: Nullable<boolean>, responsibleId?: Nullable<bigint>, dueDateFrom?: Nullable<bigint>, dueDateTo?: Nullable<bigint>, taskIds?: Nullable<KtList<bigint>>, deleted?: Nullable<boolean>, includeDeleted?: Nullable<boolean>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, orderDirection?: Nullable<TaskOrderDirection>): Promise<HttpResponse<PagedListTask>>;