@juhuu/sdk-ts 1.2.31 → 1.2.32
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 +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +13 -0
- package/dist/index.mjs +13 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -702,6 +702,7 @@ declare class LicenseTemplatesService extends Service {
|
|
702
702
|
|
703
703
|
declare class ArticlesService extends Service {
|
704
704
|
constructor(config: JUHUU.SetupConfig);
|
705
|
+
create(ArticleCreateParams: JUHUU.Article.Create.Params, ArticleCreateOptions?: JUHUU.Article.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Create.Response>>;
|
705
706
|
list(ArticleListParams: JUHUU.Article.List.Params, ArticleListOptions?: JUHUU.Article.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.List.Response>>;
|
706
707
|
retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
|
707
708
|
update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
|
@@ -1157,12 +1158,21 @@ declare namespace JUHUU {
|
|
1157
1158
|
readonly object: "article";
|
1158
1159
|
title: LocaleString;
|
1159
1160
|
subtitle: LocaleString;
|
1160
|
-
propertyId: string
|
1161
|
+
propertyId: string;
|
1161
1162
|
parentArticleId: string | null;
|
1162
|
-
slug: string;
|
1163
|
+
slug: string | null;
|
1163
1164
|
markdownContent: LocaleString;
|
1164
1165
|
status: "draft" | "published";
|
1165
1166
|
};
|
1167
|
+
namespace Create {
|
1168
|
+
type Params = {
|
1169
|
+
propertyId: string;
|
1170
|
+
};
|
1171
|
+
type Options = JUHUU.RequestOptions;
|
1172
|
+
type Response = {
|
1173
|
+
article: JUHUU.Article.Object;
|
1174
|
+
};
|
1175
|
+
}
|
1166
1176
|
namespace Retrieve {
|
1167
1177
|
type Params = {
|
1168
1178
|
articleId: string;
|
package/dist/index.d.ts
CHANGED
@@ -702,6 +702,7 @@ declare class LicenseTemplatesService extends Service {
|
|
702
702
|
|
703
703
|
declare class ArticlesService extends Service {
|
704
704
|
constructor(config: JUHUU.SetupConfig);
|
705
|
+
create(ArticleCreateParams: JUHUU.Article.Create.Params, ArticleCreateOptions?: JUHUU.Article.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Create.Response>>;
|
705
706
|
list(ArticleListParams: JUHUU.Article.List.Params, ArticleListOptions?: JUHUU.Article.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.List.Response>>;
|
706
707
|
retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
|
707
708
|
update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
|
@@ -1157,12 +1158,21 @@ declare namespace JUHUU {
|
|
1157
1158
|
readonly object: "article";
|
1158
1159
|
title: LocaleString;
|
1159
1160
|
subtitle: LocaleString;
|
1160
|
-
propertyId: string
|
1161
|
+
propertyId: string;
|
1161
1162
|
parentArticleId: string | null;
|
1162
|
-
slug: string;
|
1163
|
+
slug: string | null;
|
1163
1164
|
markdownContent: LocaleString;
|
1164
1165
|
status: "draft" | "published";
|
1165
1166
|
};
|
1167
|
+
namespace Create {
|
1168
|
+
type Params = {
|
1169
|
+
propertyId: string;
|
1170
|
+
};
|
1171
|
+
type Options = JUHUU.RequestOptions;
|
1172
|
+
type Response = {
|
1173
|
+
article: JUHUU.Article.Object;
|
1174
|
+
};
|
1175
|
+
}
|
1166
1176
|
namespace Retrieve {
|
1167
1177
|
type Params = {
|
1168
1178
|
articleId: string;
|
package/dist/index.js
CHANGED
@@ -1503,6 +1503,19 @@ var ArticlesService = class extends Service {
|
|
1503
1503
|
constructor(config) {
|
1504
1504
|
super(config);
|
1505
1505
|
}
|
1506
|
+
async create(ArticleCreateParams, ArticleCreateOptions) {
|
1507
|
+
return await super.sendRequest(
|
1508
|
+
{
|
1509
|
+
method: "POST",
|
1510
|
+
url: "articles",
|
1511
|
+
body: {
|
1512
|
+
propertyId: ArticleCreateParams.propertyId
|
1513
|
+
},
|
1514
|
+
useAuthentication: true
|
1515
|
+
},
|
1516
|
+
ArticleCreateOptions
|
1517
|
+
);
|
1518
|
+
}
|
1506
1519
|
async list(ArticleListParams, ArticleListOptions) {
|
1507
1520
|
const queryArray = [];
|
1508
1521
|
if (ArticleListOptions?.limit !== void 0) {
|
package/dist/index.mjs
CHANGED
@@ -1458,6 +1458,19 @@ var ArticlesService = class extends Service {
|
|
1458
1458
|
constructor(config) {
|
1459
1459
|
super(config);
|
1460
1460
|
}
|
1461
|
+
async create(ArticleCreateParams, ArticleCreateOptions) {
|
1462
|
+
return await super.sendRequest(
|
1463
|
+
{
|
1464
|
+
method: "POST",
|
1465
|
+
url: "articles",
|
1466
|
+
body: {
|
1467
|
+
propertyId: ArticleCreateParams.propertyId
|
1468
|
+
},
|
1469
|
+
useAuthentication: true
|
1470
|
+
},
|
1471
|
+
ArticleCreateOptions
|
1472
|
+
);
|
1473
|
+
}
|
1461
1474
|
async list(ArticleListParams, ArticleListOptions) {
|
1462
1475
|
const queryArray = [];
|
1463
1476
|
if (ArticleListOptions?.limit !== void 0) {
|