@juhuu/sdk-ts 1.2.38 → 1.2.40
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/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +24 -0
- package/dist/index.mjs +24 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -495,7 +495,7 @@ type Command = {
|
|
495
495
|
parameterName: string;
|
496
496
|
};
|
497
497
|
interface LocaleString {
|
498
|
-
en
|
498
|
+
en?: string;
|
499
499
|
de?: string;
|
500
500
|
fr?: string;
|
501
501
|
it?: string;
|
@@ -719,6 +719,7 @@ declare class ArticlesService extends Service {
|
|
719
719
|
retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
|
720
720
|
update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
|
721
721
|
delete(ArticleDeleteParams: JUHUU.Article.Delete.Params, ArticleDeleteOptions?: JUHUU.Article.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Delete.Response>>;
|
722
|
+
search(ArticleSearchParams: JUHUU.Article.Search.Params, ArticleSearchOptions?: JUHUU.Article.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Search.Response>>;
|
722
723
|
}
|
723
724
|
|
724
725
|
declare class ChatsService extends Service {
|
@@ -1292,6 +1293,19 @@ declare namespace JUHUU {
|
|
1292
1293
|
type Options = JUHUU.RequestOptions;
|
1293
1294
|
type Response = JUHUU.Article.Object[];
|
1294
1295
|
}
|
1296
|
+
namespace Search {
|
1297
|
+
type Params = {
|
1298
|
+
slug?: string;
|
1299
|
+
text?: string;
|
1300
|
+
};
|
1301
|
+
type Options = {
|
1302
|
+
limit?: number;
|
1303
|
+
skip?: number;
|
1304
|
+
} & JUHUU.RequestOptions;
|
1305
|
+
type Response = {
|
1306
|
+
articleArray: JUHUU.Article.Object[];
|
1307
|
+
};
|
1308
|
+
}
|
1295
1309
|
}
|
1296
1310
|
namespace Chat {
|
1297
1311
|
type Object = {
|
package/dist/index.d.ts
CHANGED
@@ -495,7 +495,7 @@ type Command = {
|
|
495
495
|
parameterName: string;
|
496
496
|
};
|
497
497
|
interface LocaleString {
|
498
|
-
en
|
498
|
+
en?: string;
|
499
499
|
de?: string;
|
500
500
|
fr?: string;
|
501
501
|
it?: string;
|
@@ -719,6 +719,7 @@ declare class ArticlesService extends Service {
|
|
719
719
|
retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
|
720
720
|
update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
|
721
721
|
delete(ArticleDeleteParams: JUHUU.Article.Delete.Params, ArticleDeleteOptions?: JUHUU.Article.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Delete.Response>>;
|
722
|
+
search(ArticleSearchParams: JUHUU.Article.Search.Params, ArticleSearchOptions?: JUHUU.Article.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Search.Response>>;
|
722
723
|
}
|
723
724
|
|
724
725
|
declare class ChatsService extends Service {
|
@@ -1292,6 +1293,19 @@ declare namespace JUHUU {
|
|
1292
1293
|
type Options = JUHUU.RequestOptions;
|
1293
1294
|
type Response = JUHUU.Article.Object[];
|
1294
1295
|
}
|
1296
|
+
namespace Search {
|
1297
|
+
type Params = {
|
1298
|
+
slug?: string;
|
1299
|
+
text?: string;
|
1300
|
+
};
|
1301
|
+
type Options = {
|
1302
|
+
limit?: number;
|
1303
|
+
skip?: number;
|
1304
|
+
} & JUHUU.RequestOptions;
|
1305
|
+
type Response = {
|
1306
|
+
articleArray: JUHUU.Article.Object[];
|
1307
|
+
};
|
1308
|
+
}
|
1295
1309
|
}
|
1296
1310
|
namespace Chat {
|
1297
1311
|
type Object = {
|
package/dist/index.js
CHANGED
@@ -1584,6 +1584,30 @@ var ArticlesService = class extends Service {
|
|
1584
1584
|
ArticleDeleteOptions
|
1585
1585
|
);
|
1586
1586
|
}
|
1587
|
+
async search(ArticleSearchParams, ArticleSearchOptions) {
|
1588
|
+
const queryArray = [];
|
1589
|
+
if (ArticleSearchParams?.text !== void 0) {
|
1590
|
+
queryArray.push("text=" + ArticleSearchParams.text);
|
1591
|
+
}
|
1592
|
+
if (ArticleSearchParams?.slug !== void 0) {
|
1593
|
+
queryArray.push("slug=" + ArticleSearchParams.slug);
|
1594
|
+
}
|
1595
|
+
if (ArticleSearchOptions?.limit !== void 0) {
|
1596
|
+
queryArray.push("limit=" + ArticleSearchOptions.limit);
|
1597
|
+
}
|
1598
|
+
if (ArticleSearchOptions?.skip !== void 0) {
|
1599
|
+
queryArray.push("skip=" + ArticleSearchOptions.skip);
|
1600
|
+
}
|
1601
|
+
return await super.sendRequest(
|
1602
|
+
{
|
1603
|
+
method: "GET",
|
1604
|
+
url: "articles/search?" + queryArray.join("&"),
|
1605
|
+
body: void 0,
|
1606
|
+
useAuthentication: false
|
1607
|
+
},
|
1608
|
+
ArticleSearchOptions
|
1609
|
+
);
|
1610
|
+
}
|
1587
1611
|
};
|
1588
1612
|
|
1589
1613
|
// src/chats/chats.service.ts
|
package/dist/index.mjs
CHANGED
@@ -1539,6 +1539,30 @@ var ArticlesService = class extends Service {
|
|
1539
1539
|
ArticleDeleteOptions
|
1540
1540
|
);
|
1541
1541
|
}
|
1542
|
+
async search(ArticleSearchParams, ArticleSearchOptions) {
|
1543
|
+
const queryArray = [];
|
1544
|
+
if (ArticleSearchParams?.text !== void 0) {
|
1545
|
+
queryArray.push("text=" + ArticleSearchParams.text);
|
1546
|
+
}
|
1547
|
+
if (ArticleSearchParams?.slug !== void 0) {
|
1548
|
+
queryArray.push("slug=" + ArticleSearchParams.slug);
|
1549
|
+
}
|
1550
|
+
if (ArticleSearchOptions?.limit !== void 0) {
|
1551
|
+
queryArray.push("limit=" + ArticleSearchOptions.limit);
|
1552
|
+
}
|
1553
|
+
if (ArticleSearchOptions?.skip !== void 0) {
|
1554
|
+
queryArray.push("skip=" + ArticleSearchOptions.skip);
|
1555
|
+
}
|
1556
|
+
return await super.sendRequest(
|
1557
|
+
{
|
1558
|
+
method: "GET",
|
1559
|
+
url: "articles/search?" + queryArray.join("&"),
|
1560
|
+
body: void 0,
|
1561
|
+
useAuthentication: false
|
1562
|
+
},
|
1563
|
+
ArticleSearchOptions
|
1564
|
+
);
|
1565
|
+
}
|
1542
1566
|
};
|
1543
1567
|
|
1544
1568
|
// src/chats/chats.service.ts
|