@solibo/solibo-sdk 1.61.0 → 1.61.2
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/news.mjs +8 -0
- package/client.d.mts +4 -0
- package/operations/news.mjs +2 -2
- package/package.json +1 -1
- package/solibo-cycles/solibo-sdk-sdk-core-55.mjs +2 -2
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/apis/NewsApi.export.d.mts +2 -2
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/apis/NewsApi.mjs +29 -25
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/GetNewsItemOperation.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/GetNewsItemOperation.export.mjs +1 -1
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/GetNewsItemOperation.mjs +20 -10
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/IndexNewsItemsOperation.export.d.mts +1 -1
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/IndexNewsItemsOperation.export.mjs +1 -1
- package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/IndexNewsItemsOperation.mjs +19 -9
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +4 -4
package/client/news.mjs
CHANGED
|
@@ -58,6 +58,10 @@ const DESCRIPTORS = {
|
|
|
58
58
|
{
|
|
59
59
|
"name": "fields",
|
|
60
60
|
"type": "string | null | undefined"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "audience",
|
|
64
|
+
"type": "string | null | undefined"
|
|
61
65
|
}
|
|
62
66
|
],
|
|
63
67
|
"body": null,
|
|
@@ -124,6 +128,10 @@ const DESCRIPTORS = {
|
|
|
124
128
|
{
|
|
125
129
|
"name": "count",
|
|
126
130
|
"type": "number | null | undefined"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "audience",
|
|
134
|
+
"type": "string | null | undefined"
|
|
127
135
|
}
|
|
128
136
|
],
|
|
129
137
|
"body": null,
|
package/client.d.mts
CHANGED
|
@@ -13569,6 +13569,7 @@ export interface NewsApiFacade {
|
|
|
13569
13569
|
getNewsItem<F extends string | null | undefined = undefined>(params: {
|
|
13570
13570
|
newsId: string;
|
|
13571
13571
|
fields?: F;
|
|
13572
|
+
audience?: string | null | undefined;
|
|
13572
13573
|
}): Promise<ProjectionResult<F, NewsItem>>;
|
|
13573
13574
|
indexAdminNewsItems<F extends string | null | undefined = undefined>(params: {
|
|
13574
13575
|
fields?: F;
|
|
@@ -13582,6 +13583,7 @@ export interface NewsApiFacade {
|
|
|
13582
13583
|
pageToken?: string | null | undefined;
|
|
13583
13584
|
autoPaginate?: boolean | null | undefined;
|
|
13584
13585
|
count?: number | null | undefined;
|
|
13586
|
+
audience?: string | null | undefined;
|
|
13585
13587
|
}): Promise<ProjectionResult<F, PagedListNewsItem>>;
|
|
13586
13588
|
updateNewsItem(params: {
|
|
13587
13589
|
newsId: string;
|
|
@@ -13603,6 +13605,7 @@ export interface NewsApiOperations {
|
|
|
13603
13605
|
getNewsItem<F extends string | null | undefined = undefined>(client: SoliboOperationClient, params: {
|
|
13604
13606
|
newsId: string;
|
|
13605
13607
|
fields?: F;
|
|
13608
|
+
audience?: string | null | undefined;
|
|
13606
13609
|
}): Promise<ProjectionResult<F, NewsItem>>;
|
|
13607
13610
|
indexAdminNewsItems<F extends string | null | undefined = undefined>(client: SoliboOperationClient, params: {
|
|
13608
13611
|
fields?: F;
|
|
@@ -13616,6 +13619,7 @@ export interface NewsApiOperations {
|
|
|
13616
13619
|
pageToken?: string | null | undefined;
|
|
13617
13620
|
autoPaginate?: boolean | null | undefined;
|
|
13618
13621
|
count?: number | null | undefined;
|
|
13622
|
+
audience?: string | null | undefined;
|
|
13619
13623
|
}): Promise<ProjectionResult<F, PagedListNewsItem>>;
|
|
13620
13624
|
updateNewsItem(client: SoliboOperationClient, params: {
|
|
13621
13625
|
newsId: string;
|
package/operations/news.mjs
CHANGED
|
@@ -29,7 +29,7 @@ export function getAdminNewsItem(client, params) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function getNewsItem(client, params) {
|
|
32
|
-
return invokeOperation(client, "news", getNewsItemOperation, {"method":"getNewsItem","args":[{"name":"newsId","type":"string"},{"name":"fields","type":"string | null | undefined"}],"body":null,"bodyType":null,"requiredProjectionFields":["id","kind","pinned","publishedAt","title"]}, params);
|
|
32
|
+
return invokeOperation(client, "news", getNewsItemOperation, {"method":"getNewsItem","args":[{"name":"newsId","type":"string"},{"name":"fields","type":"string | null | undefined"},{"name":"audience","type":"string | null | undefined"}],"body":null,"bodyType":null,"requiredProjectionFields":["id","kind","pinned","publishedAt","title"]}, params);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export function indexAdminNewsItems(client, params) {
|
|
@@ -37,7 +37,7 @@ export function indexAdminNewsItems(client, params) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export function indexNewsItems(client, params) {
|
|
40
|
-
return invokeOperation(client, "news", indexNewsItemsOperation, {"method":"indexNewsItems","args":[{"name":"kind","type":"string | null | undefined"},{"name":"fields","type":"string | null | undefined"},{"name":"pageToken","type":"string | null | undefined"},{"name":"autoPaginate","type":"boolean | null | undefined"},{"name":"count","type":"number | null | undefined"}],"body":null,"bodyType":null,"requiredProjectionFields":["id","kind","pinned","publishedAt","title"]}, params);
|
|
40
|
+
return invokeOperation(client, "news", indexNewsItemsOperation, {"method":"indexNewsItems","args":[{"name":"kind","type":"string | null | undefined"},{"name":"fields","type":"string | null | undefined"},{"name":"pageToken","type":"string | null | undefined"},{"name":"autoPaginate","type":"boolean | null | undefined"},{"name":"count","type":"number | null | undefined"},{"name":"audience","type":"string | null | undefined"}],"body":null,"bodyType":null,"requiredProjectionFields":["id","kind","pinned","publishedAt","title"]}, params);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function updateNewsItem(client, params) {
|
package/package.json
CHANGED
|
@@ -2248,8 +2248,8 @@ function HomeApiBase$configureClient$lambda_14(this$0, $platformName) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
accept($this$defaultRequest, Application_getInstance().Json_1);
|
|
2250
2250
|
header($this$defaultRequest, "Accept-Language", buildAcceptLanguage(this$0.userLanguage));
|
|
2251
|
-
header($this$defaultRequest, "User-Agent", "SoliboSDK/1.61.
|
|
2252
|
-
header($this$defaultRequest, "X-Solibo-SDK-Version", "1.61.
|
|
2251
|
+
header($this$defaultRequest, "User-Agent", "SoliboSDK/1.61.2 (" + $platformName + ")");
|
|
2252
|
+
header($this$defaultRequest, "X-Solibo-SDK-Version", "1.61.2");
|
|
2253
2253
|
return Unit_instance2;
|
|
2254
2254
|
};
|
|
2255
2255
|
}
|
|
@@ -7,9 +7,9 @@ export declare class NewsApi extends ApiClient.$metadata$.constructor {
|
|
|
7
7
|
createNewsItem(createNewsItemCommand: CreateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
8
8
|
deleteNewsItem(newsId: string): Promise<HttpResponse<void>>;
|
|
9
9
|
getAdminNewsItem(newsId: string, fields?: Nullable<string>): Promise<HttpResponse<AdminNewsItem>>;
|
|
10
|
-
getNewsItem(newsId: string, fields?: Nullable<string>): Promise<HttpResponse<NewsItem>>;
|
|
10
|
+
getNewsItem(newsId: string, fields?: Nullable<string>, audience?: Nullable<string>): Promise<HttpResponse<NewsItem>>;
|
|
11
11
|
indexAdminNewsItems(fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListAdminNewsItem>>;
|
|
12
|
-
indexNewsItems(kind?: Nullable<string>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListNewsItem>>;
|
|
12
|
+
indexNewsItems(kind?: Nullable<string>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, audience?: Nullable<string>): Promise<HttpResponse<PagedListNewsItem>>;
|
|
13
13
|
updateNewsItem(newsId: string, updateNewsItemCommand: UpdateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
14
14
|
}
|
|
15
15
|
export declare namespace NewsApi {
|
|
@@ -23,9 +23,9 @@ import { createNewsItemOperation2wmdj49suz4li as createNewsItemOperation } from
|
|
|
23
23
|
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
24
24
|
import { deleteNewsItemOperationdlh010s1qokq as deleteNewsItemOperation } from '../operations/DeleteNewsItemOperation.mjs';
|
|
25
25
|
import { getAdminNewsItemOperation3npqnuu0hr8ye as getAdminNewsItemOperation } from '../operations/GetAdminNewsItemOperation.mjs';
|
|
26
|
-
import {
|
|
26
|
+
import { getNewsItemOperation1rt7xt9ttbcvi as getNewsItemOperation } from '../operations/GetNewsItemOperation.mjs';
|
|
27
27
|
import { indexAdminNewsItemsOperation1c2ucwrdb4j9g as indexAdminNewsItemsOperation } from '../operations/IndexAdminNewsItemsOperation.mjs';
|
|
28
|
-
import {
|
|
28
|
+
import { indexNewsItemsOperationhmhk60r75tyv as indexNewsItemsOperation } from '../operations/IndexNewsItemsOperation.mjs';
|
|
29
29
|
import { updateNewsItemOperationu7sdlqvkain8 as updateNewsItemOperation } from '../operations/UpdateNewsItemOperation.mjs';
|
|
30
30
|
import { __soliboBoundaryState, __soliboPatchField, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../../solibo-boundary.mjs';
|
|
31
31
|
import { CreateNewsItemCommand1lf372l8jqgh0 as __soliboType_CreateNewsItemCommand } from '../../models/CreateNewsItemCommand.mjs';
|
|
@@ -242,11 +242,12 @@ var $getNewsItem$suspendBridgeCOROUTINE$Class;
|
|
|
242
242
|
function $getNewsItem$suspendBridgeCOROUTINE$() {
|
|
243
243
|
if ($getNewsItem$suspendBridgeCOROUTINE$Class === VOID) {
|
|
244
244
|
initMetadataForCoroutine($, CoroutineImpl());
|
|
245
|
-
function $(_this__u8e3s4, newsId, fields, resultContinuation) {
|
|
245
|
+
function $(_this__u8e3s4, newsId, fields, audience, resultContinuation) {
|
|
246
246
|
CoroutineImpl().call(this, resultContinuation);
|
|
247
247
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
248
248
|
this.newsId_1 = newsId;
|
|
249
249
|
this.fields_1 = fields;
|
|
250
|
+
this.audience_1 = audience;
|
|
250
251
|
}
|
|
251
252
|
protoOf($).doResume_5yljmg_k$ = function () {
|
|
252
253
|
var suspendResult = this.result_1;
|
|
@@ -258,14 +259,14 @@ function $getNewsItem$suspendBridgeCOROUTINE$() {
|
|
|
258
259
|
this.exceptionState_1 = 4;
|
|
259
260
|
if (this._this__u8e3s4__1.getNewsItem === protoOf(NewsApi()).getNewsItem) {
|
|
260
261
|
this.state_1 = 2;
|
|
261
|
-
suspendResult = this._this__u8e3s4__1.getNewsItem$
|
|
262
|
+
suspendResult = this._this__u8e3s4__1.getNewsItem$default_6969do_k$(this.newsId_1, this.fields_1, this.audience_1, this);
|
|
262
263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
263
264
|
return suspendResult;
|
|
264
265
|
}
|
|
265
266
|
continue $sm;
|
|
266
267
|
} else {
|
|
267
268
|
this.state_1 = 1;
|
|
268
|
-
suspendResult = await_0(this._this__u8e3s4__1.getNewsItem(this.newsId_1, this.fields_1), this);
|
|
269
|
+
suspendResult = await_0(this._this__u8e3s4__1.getNewsItem(this.newsId_1, this.fields_1, this.audience_1), this);
|
|
269
270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
270
271
|
return suspendResult;
|
|
271
272
|
}
|
|
@@ -368,7 +369,7 @@ var $indexNewsItems$suspendBridgeCOROUTINE$Class;
|
|
|
368
369
|
function $indexNewsItems$suspendBridgeCOROUTINE$() {
|
|
369
370
|
if ($indexNewsItems$suspendBridgeCOROUTINE$Class === VOID) {
|
|
370
371
|
initMetadataForCoroutine($, CoroutineImpl());
|
|
371
|
-
function $(_this__u8e3s4, kind, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
372
|
+
function $(_this__u8e3s4, kind, fields, pageToken, autoPaginate, count, audience, resultContinuation) {
|
|
372
373
|
CoroutineImpl().call(this, resultContinuation);
|
|
373
374
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
374
375
|
this.kind_1 = kind;
|
|
@@ -376,6 +377,7 @@ function $indexNewsItems$suspendBridgeCOROUTINE$() {
|
|
|
376
377
|
this.pageToken_1 = pageToken;
|
|
377
378
|
this.autoPaginate_1 = autoPaginate;
|
|
378
379
|
this.count_1 = count;
|
|
380
|
+
this.audience_1 = audience;
|
|
379
381
|
}
|
|
380
382
|
protoOf($).doResume_5yljmg_k$ = function () {
|
|
381
383
|
var suspendResult = this.result_1;
|
|
@@ -387,14 +389,14 @@ function $indexNewsItems$suspendBridgeCOROUTINE$() {
|
|
|
387
389
|
this.exceptionState_1 = 4;
|
|
388
390
|
if (this._this__u8e3s4__1.indexNewsItems === protoOf(NewsApi()).indexNewsItems) {
|
|
389
391
|
this.state_1 = 2;
|
|
390
|
-
suspendResult = this._this__u8e3s4__1.indexNewsItems$
|
|
392
|
+
suspendResult = this._this__u8e3s4__1.indexNewsItems$default_is0jx3_k$(this.kind_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.audience_1, this);
|
|
391
393
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
392
394
|
return suspendResult;
|
|
393
395
|
}
|
|
394
396
|
continue $sm;
|
|
395
397
|
} else {
|
|
396
398
|
this.state_1 = 1;
|
|
397
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexNewsItems(this.kind_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
399
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexNewsItems(this.kind_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this.audience_1), this);
|
|
398
400
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
399
401
|
return suspendResult;
|
|
400
402
|
}
|
|
@@ -494,7 +496,7 @@ function $updateNewsItem$suspendBridgeCOROUTINE$() {
|
|
|
494
496
|
var NewsApiClass;
|
|
495
497
|
function NewsApi() {
|
|
496
498
|
if (NewsApiClass === VOID) {
|
|
497
|
-
initMetadataForClass($, 'NewsApi', create, ApiClient(), VOID, [1, 2,
|
|
499
|
+
initMetadataForClass($, 'NewsApi', create, ApiClient(), VOID, [1, 2, 3, 4, 6]);
|
|
498
500
|
protoOf($).createNewsItem_xgscd6_k$ = function (createNewsItemCommand, $completion) {
|
|
499
501
|
return createNewsItemOperation(this, createNewsItemCommand, $completion);
|
|
500
502
|
};
|
|
@@ -544,21 +546,22 @@ function NewsApi() {
|
|
|
544
546
|
tmp.exception_1 = null;
|
|
545
547
|
return tmp.doResume_5yljmg_k$();
|
|
546
548
|
};
|
|
547
|
-
protoOf($).
|
|
548
|
-
return getNewsItemOperation(this, newsId, fields, $completion);
|
|
549
|
+
protoOf($).getNewsItem_bf6q47_k$ = function (newsId, fields, audience, $completion) {
|
|
550
|
+
return getNewsItemOperation(this, newsId, fields, audience, $completion);
|
|
549
551
|
};
|
|
550
|
-
protoOf($).getNewsItem$
|
|
552
|
+
protoOf($).getNewsItem$default_6969do_k$ = function (newsId, fields, audience, $completion, $super) {
|
|
551
553
|
fields = fields === VOID ? null : fields;
|
|
552
|
-
|
|
554
|
+
audience = audience === VOID ? null : audience;
|
|
555
|
+
return $super === VOID ? this.getNewsItem_bf6q47_k$(newsId, fields, audience, $completion) : $super.getNewsItem_bf6q47_k$.call(this, newsId, fields, audience, $completion);
|
|
553
556
|
};
|
|
554
|
-
protoOf($).getNewsItem = function (newsId, fields) {
|
|
557
|
+
protoOf($).getNewsItem = function (newsId, fields, audience) {
|
|
555
558
|
var tmp = this;
|
|
556
559
|
return promisify(function ($completion) {
|
|
557
|
-
return tmp.getNewsItem$
|
|
560
|
+
return tmp.getNewsItem$default_6969do_k$(newsId, fields, audience, $completion);
|
|
558
561
|
});
|
|
559
562
|
};
|
|
560
|
-
protoOf($).getNewsItem$
|
|
561
|
-
var tmp = new ($getNewsItem$suspendBridgeCOROUTINE$())(this, newsId, fields, $completion);
|
|
563
|
+
protoOf($).getNewsItem$suspendBridge_orv73e_k$ = function (newsId, fields, audience, $completion) {
|
|
564
|
+
var tmp = new ($getNewsItem$suspendBridgeCOROUTINE$())(this, newsId, fields, audience, $completion);
|
|
562
565
|
tmp.result_1 = Unit_instance;
|
|
563
566
|
tmp.exception_1 = null;
|
|
564
567
|
return tmp.doResume_5yljmg_k$();
|
|
@@ -585,25 +588,26 @@ function NewsApi() {
|
|
|
585
588
|
tmp.exception_1 = null;
|
|
586
589
|
return tmp.doResume_5yljmg_k$();
|
|
587
590
|
};
|
|
588
|
-
protoOf($).
|
|
589
|
-
return indexNewsItemsOperation(this, kind, fields, pageToken, autoPaginate, count, $completion);
|
|
591
|
+
protoOf($).indexNewsItems_y8b67w_k$ = function (kind, fields, pageToken, autoPaginate, count, audience, $completion) {
|
|
592
|
+
return indexNewsItemsOperation(this, kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
590
593
|
};
|
|
591
|
-
protoOf($).indexNewsItems$
|
|
594
|
+
protoOf($).indexNewsItems$default_is0jx3_k$ = function (kind, fields, pageToken, autoPaginate, count, audience, $completion, $super) {
|
|
592
595
|
kind = kind === VOID ? null : kind;
|
|
593
596
|
fields = fields === VOID ? null : fields;
|
|
594
597
|
pageToken = pageToken === VOID ? null : pageToken;
|
|
595
598
|
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
596
599
|
count = count === VOID ? null : count;
|
|
597
|
-
|
|
600
|
+
audience = audience === VOID ? null : audience;
|
|
601
|
+
return $super === VOID ? this.indexNewsItems_y8b67w_k$(kind, fields, pageToken, autoPaginate, count, audience, $completion) : $super.indexNewsItems_y8b67w_k$.call(this, kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
598
602
|
};
|
|
599
|
-
protoOf($).indexNewsItems = function (kind, fields, pageToken, autoPaginate, count) {
|
|
603
|
+
protoOf($).indexNewsItems = function (kind, fields, pageToken, autoPaginate, count, audience) {
|
|
600
604
|
var tmp = this;
|
|
601
605
|
return promisify(function ($completion) {
|
|
602
|
-
return tmp.indexNewsItems$
|
|
606
|
+
return tmp.indexNewsItems$default_is0jx3_k$(kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
603
607
|
});
|
|
604
608
|
};
|
|
605
|
-
protoOf($).indexNewsItems$
|
|
606
|
-
var tmp = new ($indexNewsItems$suspendBridgeCOROUTINE$())(this, kind, fields, pageToken, autoPaginate, count, $completion);
|
|
609
|
+
protoOf($).indexNewsItems$suspendBridge_93ncwr_k$ = function (kind, fields, pageToken, autoPaginate, count, audience, $completion) {
|
|
610
|
+
var tmp = new ($indexNewsItems$suspendBridgeCOROUTINE$())(this, kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
607
611
|
tmp.result_1 = Unit_instance;
|
|
608
612
|
tmp.exception_1 = null;
|
|
609
613
|
return tmp.doResume_5yljmg_k$();
|
|
@@ -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 getNewsItemOperation(client: ApiClient, newsId: string, fields?: Nullable<string>): Promise<HttpResponse<NewsItem>>;
|
|
3
|
+
export declare function getNewsItemOperation(client: ApiClient, newsId: string, fields?: Nullable<string>, audience?: Nullable<string>): Promise<HttpResponse<NewsItem>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getNewsItemOperation1cf39b034boh4 as getNewsItemOperation } from './GetNewsItemOperation.mjs';
|
|
2
2
|
import { __soliboRegisterLookup, __soliboWrapFunction } from '../../../../../../../../../solibo-boundary.mjs';
|
|
3
3
|
//region block: imports
|
|
4
4
|
//endregion
|
package/solibo-sdk-sdk-api-news/no/solibo/oss/sdk/api/gen/client/operations/GetNewsItemOperation.mjs
CHANGED
|
@@ -25,14 +25,15 @@ import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } fro
|
|
|
25
25
|
//endregion
|
|
26
26
|
//region block: pre-declaration
|
|
27
27
|
//endregion
|
|
28
|
-
function getNewsItemOperation(client, newsId, fields) {
|
|
28
|
+
function getNewsItemOperation(client, newsId, fields, audience) {
|
|
29
29
|
return promisify(function ($completion) {
|
|
30
|
-
return getNewsItemOperation_0(client, newsId, fields, $completion);
|
|
30
|
+
return getNewsItemOperation_0(client, newsId, fields, audience, $completion);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function getNewsItemOperation_0(client, newsId, fields, $completion) {
|
|
33
|
+
function getNewsItemOperation_0(client, newsId, fields, audience, $completion) {
|
|
34
34
|
fields = fields === VOID ? null : fields;
|
|
35
|
-
|
|
35
|
+
audience = audience === VOID ? null : audience;
|
|
36
|
+
var tmp = new ($getNewsItemOperationCOROUTINE$())(client, newsId, fields, audience, $completion);
|
|
36
37
|
tmp.result_1 = Unit_instance;
|
|
37
38
|
tmp.exception_1 = null;
|
|
38
39
|
return tmp.doResume_5yljmg_k$();
|
|
@@ -41,11 +42,12 @@ var $getNewsItemOperationCOROUTINE$Class;
|
|
|
41
42
|
function $getNewsItemOperationCOROUTINE$() {
|
|
42
43
|
if ($getNewsItemOperationCOROUTINE$Class === VOID) {
|
|
43
44
|
initMetadataForCoroutine($, CoroutineImpl());
|
|
44
|
-
function $(client, newsId, fields, resultContinuation) {
|
|
45
|
+
function $(client, newsId, fields, audience, resultContinuation) {
|
|
45
46
|
CoroutineImpl().call(this, resultContinuation);
|
|
46
47
|
this.client_1 = client;
|
|
47
48
|
this.newsId_1 = newsId;
|
|
48
49
|
this.fields_1 = fields;
|
|
50
|
+
this.audience_1 = audience;
|
|
49
51
|
}
|
|
50
52
|
protoOf($).doResume_5yljmg_k$ = function () {
|
|
51
53
|
var suspendResult = this.result_1;
|
|
@@ -65,10 +67,18 @@ function $getNewsItemOperationCOROUTINE$() {
|
|
|
65
67
|
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
66
68
|
}
|
|
67
69
|
|
|
70
|
+
if (this.audience_1 == null)
|
|
71
|
+
null;
|
|
72
|
+
else {
|
|
73
|
+
var tmp2 = 'audience';
|
|
74
|
+
var value_0 = listOf_0(this.audience_1);
|
|
75
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var localVariableConfig = new (RequestConfig())(
|
|
79
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
80
|
+
var tmp3_path = replace('/content/news/{newsId}', '{newsId}', this.newsId_1);
|
|
81
|
+
var localVariableConfig = new (RequestConfig())(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
72
82
|
this.state_1 = 1;
|
|
73
83
|
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
74
84
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -115,8 +125,8 @@ function $getNewsItemOperationCOROUTINE$() {
|
|
|
115
125
|
}
|
|
116
126
|
//region block: exports
|
|
117
127
|
export {
|
|
118
|
-
getNewsItemOperation as
|
|
119
|
-
getNewsItemOperation_0 as
|
|
128
|
+
getNewsItemOperation as getNewsItemOperation1cf39b034boh4,
|
|
129
|
+
getNewsItemOperation_0 as getNewsItemOperation1rt7xt9ttbcvi,
|
|
120
130
|
};
|
|
121
131
|
//endregion
|
|
122
132
|
|
|
@@ -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 indexNewsItemsOperation(client: ApiClient, kind?: Nullable<string>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>): Promise<HttpResponse<PagedListNewsItem>>;
|
|
3
|
+
export declare function indexNewsItemsOperation(client: ApiClient, kind?: Nullable<string>, fields?: Nullable<string>, pageToken?: Nullable<string>, autoPaginate?: Nullable<boolean>, count?: Nullable<number>, audience?: Nullable<string>): Promise<HttpResponse<PagedListNewsItem>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { indexNewsItemsOperationq05x7ujz09er as indexNewsItemsOperation } from './IndexNewsItemsOperation.mjs';
|
|
2
2
|
import { __soliboRegisterLookup, __soliboWrapFunction } from '../../../../../../../../../solibo-boundary.mjs';
|
|
3
3
|
//region block: imports
|
|
4
4
|
//endregion
|
|
@@ -24,18 +24,19 @@ import { initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine } fro
|
|
|
24
24
|
//endregion
|
|
25
25
|
//region block: pre-declaration
|
|
26
26
|
//endregion
|
|
27
|
-
function indexNewsItemsOperation(client, kind, fields, pageToken, autoPaginate, count) {
|
|
27
|
+
function indexNewsItemsOperation(client, kind, fields, pageToken, autoPaginate, count, audience) {
|
|
28
28
|
return promisify(function ($completion) {
|
|
29
|
-
return indexNewsItemsOperation_0(client, kind, fields, pageToken, autoPaginate, count, $completion);
|
|
29
|
+
return indexNewsItemsOperation_0(client, kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function indexNewsItemsOperation_0(client, kind, fields, pageToken, autoPaginate, count, $completion) {
|
|
32
|
+
function indexNewsItemsOperation_0(client, kind, fields, pageToken, autoPaginate, count, audience, $completion) {
|
|
33
33
|
kind = kind === VOID ? null : kind;
|
|
34
34
|
fields = fields === VOID ? null : fields;
|
|
35
35
|
pageToken = pageToken === VOID ? null : pageToken;
|
|
36
36
|
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
37
37
|
count = count === VOID ? null : count;
|
|
38
|
-
|
|
38
|
+
audience = audience === VOID ? null : audience;
|
|
39
|
+
var tmp = new ($indexNewsItemsOperationCOROUTINE$())(client, kind, fields, pageToken, autoPaginate, count, audience, $completion);
|
|
39
40
|
tmp.result_1 = Unit_instance;
|
|
40
41
|
tmp.exception_1 = null;
|
|
41
42
|
return tmp.doResume_5yljmg_k$();
|
|
@@ -44,7 +45,7 @@ var $indexNewsItemsOperationCOROUTINE$Class;
|
|
|
44
45
|
function $indexNewsItemsOperationCOROUTINE$() {
|
|
45
46
|
if ($indexNewsItemsOperationCOROUTINE$Class === VOID) {
|
|
46
47
|
initMetadataForCoroutine($, CoroutineImpl());
|
|
47
|
-
function $(client, kind, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
48
|
+
function $(client, kind, fields, pageToken, autoPaginate, count, audience, resultContinuation) {
|
|
48
49
|
CoroutineImpl().call(this, resultContinuation);
|
|
49
50
|
this.client_1 = client;
|
|
50
51
|
this.kind_1 = kind;
|
|
@@ -52,6 +53,7 @@ function $indexNewsItemsOperationCOROUTINE$() {
|
|
|
52
53
|
this.pageToken_1 = pageToken;
|
|
53
54
|
this.autoPaginate_1 = autoPaginate;
|
|
54
55
|
this.count_1 = count;
|
|
56
|
+
this.audience_1 = audience;
|
|
55
57
|
}
|
|
56
58
|
protoOf($).doResume_5yljmg_k$ = function () {
|
|
57
59
|
var suspendResult = this.result_1;
|
|
@@ -101,9 +103,17 @@ function $indexNewsItemsOperationCOROUTINE$() {
|
|
|
101
103
|
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
if (this.audience_1 == null)
|
|
107
|
+
null;
|
|
108
|
+
else {
|
|
109
|
+
var tmp2_1 = 'audience';
|
|
110
|
+
var value_4 = listOf_0(this.audience_1);
|
|
111
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_4);
|
|
112
|
+
}
|
|
113
|
+
|
|
104
114
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
105
|
-
var
|
|
106
|
-
var localVariableConfig = new (RequestConfig())(
|
|
115
|
+
var tmp6_method = RequestMethod_GET_getInstance();
|
|
116
|
+
var localVariableConfig = new (RequestConfig())(tmp6_method, '/content/news', localVariableHeaders, VOID, localVariableQuery, true);
|
|
107
117
|
this.state_1 = 1;
|
|
108
118
|
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
109
119
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -150,8 +160,8 @@ function $indexNewsItemsOperationCOROUTINE$() {
|
|
|
150
160
|
}
|
|
151
161
|
//region block: exports
|
|
152
162
|
export {
|
|
153
|
-
indexNewsItemsOperation as
|
|
154
|
-
indexNewsItemsOperation_0 as
|
|
163
|
+
indexNewsItemsOperation as indexNewsItemsOperationq05x7ujz09er,
|
|
164
|
+
indexNewsItemsOperation_0 as indexNewsItemsOperationhmhk60r75tyv,
|
|
155
165
|
};
|
|
156
166
|
//endregion
|
|
157
167
|
|
|
@@ -28,7 +28,7 @@ function SoliboOpenTelemetry() {
|
|
|
28
28
|
}
|
|
29
29
|
protoOf($).tracer_4zr7of_k$ = function () {
|
|
30
30
|
var tmp0_elvis_lhs = this.installed_1;
|
|
31
|
-
return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.61.
|
|
31
|
+
return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.61.2');
|
|
32
32
|
};
|
|
33
33
|
SoliboOpenTelemetryClass = $;
|
|
34
34
|
}
|
package/solibo-sdk-sdk.d.mts
CHANGED
|
@@ -26082,9 +26082,9 @@ export declare class NewsApi extends ApiClient.$metadata$.constructor {
|
|
|
26082
26082
|
createNewsItem(createNewsItemCommand: CreateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
26083
26083
|
deleteNewsItem(newsId: string): Promise<HttpResponse<void>>;
|
|
26084
26084
|
getAdminNewsItem(newsId: string, fields?: string | null | undefined): Promise<HttpResponse<AdminNewsItem>>;
|
|
26085
|
-
getNewsItem(newsId: string, fields?: string | null | undefined): Promise<HttpResponse<NewsItem>>;
|
|
26085
|
+
getNewsItem(newsId: string, fields?: string | null | undefined, audience?: string | null | undefined): Promise<HttpResponse<NewsItem>>;
|
|
26086
26086
|
indexAdminNewsItems(fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined): Promise<HttpResponse<PagedListAdminNewsItem>>;
|
|
26087
|
-
indexNewsItems(kind?: string | null | undefined, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined): Promise<HttpResponse<PagedListNewsItem>>;
|
|
26087
|
+
indexNewsItems(kind?: string | null | undefined, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined, audience?: string | null | undefined): Promise<HttpResponse<PagedListNewsItem>>;
|
|
26088
26088
|
updateNewsItem(newsId: string, updateNewsItemCommand: UpdateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
26089
26089
|
}
|
|
26090
26090
|
export declare namespace NewsApi {
|
|
@@ -26096,9 +26096,9 @@ export declare namespace NewsApi {
|
|
|
26096
26096
|
export declare function createNewsItemOperation(client: ApiClient, createNewsItemCommand: CreateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
26097
26097
|
export declare function deleteNewsItemOperation(client: ApiClient, newsId: string): Promise<HttpResponse<void>>;
|
|
26098
26098
|
export declare function getAdminNewsItemOperation(client: ApiClient, newsId: string, fields?: string | null | undefined): Promise<HttpResponse<AdminNewsItem>>;
|
|
26099
|
-
export declare function getNewsItemOperation(client: ApiClient, newsId: string, fields?: string | null | undefined): Promise<HttpResponse<NewsItem>>;
|
|
26099
|
+
export declare function getNewsItemOperation(client: ApiClient, newsId: string, fields?: string | null | undefined, audience?: string | null | undefined): Promise<HttpResponse<NewsItem>>;
|
|
26100
26100
|
export declare function indexAdminNewsItemsOperation(client: ApiClient, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined): Promise<HttpResponse<PagedListAdminNewsItem>>;
|
|
26101
|
-
export declare function indexNewsItemsOperation(client: ApiClient, kind?: string | null | undefined, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined): Promise<HttpResponse<PagedListNewsItem>>;
|
|
26101
|
+
export declare function indexNewsItemsOperation(client: ApiClient, kind?: string | null | undefined, fields?: string | null | undefined, pageToken?: string | null | undefined, autoPaginate?: boolean | null | undefined, count?: number | null | undefined, audience?: string | null | undefined): Promise<HttpResponse<PagedListNewsItem>>;
|
|
26102
26102
|
export declare function updateNewsItemOperation(client: ApiClient, newsId: string, updateNewsItemCommand: UpdateNewsItemCommand): Promise<HttpResponse<AdminNewsItem>>;
|
|
26103
26103
|
export interface AdminNewsItemProps {
|
|
26104
26104
|
audiences: string[];
|