@juhuu/sdk-ts 1.2.25 → 1.2.27

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 CHANGED
@@ -1152,19 +1152,20 @@ declare namespace JUHUU {
1152
1152
  expand?: Array<"property">;
1153
1153
  } & JUHUU.RequestOptions;
1154
1154
  type Response = {
1155
- articleId: JUHUU.Article.Object;
1155
+ article: JUHUU.Article.Object;
1156
1156
  property?: JUHUU.Property.Object;
1157
1157
  };
1158
1158
  }
1159
1159
  namespace List {
1160
1160
  type Params = {
1161
- limit?: number;
1162
- skip?: number;
1163
1161
  propertyId?: string;
1164
- parentArticleId?: string;
1162
+ parentArticleId?: string | null;
1165
1163
  statusArray?: JUHUU.Article.Object["status"][];
1166
1164
  };
1167
- type Options = JUHUU.RequestOptions;
1165
+ type Options = {
1166
+ limit?: number;
1167
+ skip?: number;
1168
+ } & JUHUU.RequestOptions;
1168
1169
  type Response = {
1169
1170
  articleArray: JUHUU.Article.Object[];
1170
1171
  count: number;
@@ -1174,12 +1175,12 @@ declare namespace JUHUU {
1174
1175
  namespace Update {
1175
1176
  type Params = {
1176
1177
  articleId: string;
1177
- title: LocaleString;
1178
- subtitle: LocaleString;
1179
- parentArticleId: string | null;
1180
- slug: string;
1181
- markdownContent: LocaleString;
1182
- status: "draft" | "published";
1178
+ title?: LocaleString;
1179
+ subtitle?: LocaleString;
1180
+ parentArticleId?: string | null;
1181
+ slug?: string;
1182
+ markdownContent?: LocaleString;
1183
+ status?: "draft" | "published";
1183
1184
  };
1184
1185
  type Options = JUHUU.RequestOptions;
1185
1186
  type Response = {
package/dist/index.d.ts CHANGED
@@ -1152,19 +1152,20 @@ declare namespace JUHUU {
1152
1152
  expand?: Array<"property">;
1153
1153
  } & JUHUU.RequestOptions;
1154
1154
  type Response = {
1155
- articleId: JUHUU.Article.Object;
1155
+ article: JUHUU.Article.Object;
1156
1156
  property?: JUHUU.Property.Object;
1157
1157
  };
1158
1158
  }
1159
1159
  namespace List {
1160
1160
  type Params = {
1161
- limit?: number;
1162
- skip?: number;
1163
1161
  propertyId?: string;
1164
- parentArticleId?: string;
1162
+ parentArticleId?: string | null;
1165
1163
  statusArray?: JUHUU.Article.Object["status"][];
1166
1164
  };
1167
- type Options = JUHUU.RequestOptions;
1165
+ type Options = {
1166
+ limit?: number;
1167
+ skip?: number;
1168
+ } & JUHUU.RequestOptions;
1168
1169
  type Response = {
1169
1170
  articleArray: JUHUU.Article.Object[];
1170
1171
  count: number;
@@ -1174,12 +1175,12 @@ declare namespace JUHUU {
1174
1175
  namespace Update {
1175
1176
  type Params = {
1176
1177
  articleId: string;
1177
- title: LocaleString;
1178
- subtitle: LocaleString;
1179
- parentArticleId: string | null;
1180
- slug: string;
1181
- markdownContent: LocaleString;
1182
- status: "draft" | "published";
1178
+ title?: LocaleString;
1179
+ subtitle?: LocaleString;
1180
+ parentArticleId?: string | null;
1181
+ slug?: string;
1182
+ markdownContent?: LocaleString;
1183
+ status?: "draft" | "published";
1183
1184
  };
1184
1185
  type Options = JUHUU.RequestOptions;
1185
1186
  type Response = {
package/dist/index.js CHANGED
@@ -1505,8 +1505,8 @@ var ArticlesService = class extends Service {
1505
1505
  }
1506
1506
  async list(ArticleListParams, ArticleListOptions) {
1507
1507
  const queryArray = [];
1508
- if (ArticleListParams?.limit !== void 0) {
1509
- queryArray.push("limit=" + ArticleListParams.limit);
1508
+ if (ArticleListOptions?.limit !== void 0) {
1509
+ queryArray.push("limit=" + ArticleListOptions.limit);
1510
1510
  }
1511
1511
  if (ArticleListParams?.propertyId !== void 0) {
1512
1512
  queryArray.push("propertyId=" + ArticleListParams.propertyId);
@@ -1514,8 +1514,8 @@ var ArticlesService = class extends Service {
1514
1514
  if (ArticleListParams?.statusArray !== void 0) {
1515
1515
  queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
1516
1516
  }
1517
- if (ArticleListParams?.skip !== void 0) {
1518
- queryArray.push("skip=" + ArticleListParams.skip);
1517
+ if (ArticleListOptions?.skip !== void 0) {
1518
+ queryArray.push("skip=" + ArticleListOptions.skip);
1519
1519
  }
1520
1520
  if (ArticleListParams?.parentArticleId !== void 0) {
1521
1521
  queryArray.push("parentArticleId=" + ArticleListParams.parentArticleId);
package/dist/index.mjs CHANGED
@@ -1460,8 +1460,8 @@ var ArticlesService = class extends Service {
1460
1460
  }
1461
1461
  async list(ArticleListParams, ArticleListOptions) {
1462
1462
  const queryArray = [];
1463
- if (ArticleListParams?.limit !== void 0) {
1464
- queryArray.push("limit=" + ArticleListParams.limit);
1463
+ if (ArticleListOptions?.limit !== void 0) {
1464
+ queryArray.push("limit=" + ArticleListOptions.limit);
1465
1465
  }
1466
1466
  if (ArticleListParams?.propertyId !== void 0) {
1467
1467
  queryArray.push("propertyId=" + ArticleListParams.propertyId);
@@ -1469,8 +1469,8 @@ var ArticlesService = class extends Service {
1469
1469
  if (ArticleListParams?.statusArray !== void 0) {
1470
1470
  queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
1471
1471
  }
1472
- if (ArticleListParams?.skip !== void 0) {
1473
- queryArray.push("skip=" + ArticleListParams.skip);
1472
+ if (ArticleListOptions?.skip !== void 0) {
1473
+ queryArray.push("skip=" + ArticleListOptions.skip);
1474
1474
  }
1475
1475
  if (ArticleListParams?.parentArticleId !== void 0) {
1476
1476
  queryArray.push("parentArticleId=" + ArticleListParams.parentArticleId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",