@parra/parra-js-sdk 0.3.585 → 0.3.586

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.
@@ -6683,13 +6683,19 @@ declare class ParraAPI {
6683
6683
  createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
6684
6684
  createSubscriberForEmailAudienceById: (email_audience_id: string, body: CreateEmailSubscriberRequestBody, options?: Options) => Promise<Response>;
6685
6685
  createArticle: (tenant_id: string, body: CreateArticleRequestBody, options?: Options) => Promise<Article>;
6686
- paginateArticles: (tenant_id: string, options?: Options) => Promise<ArticleCollectionResponse>;
6686
+ paginateArticles: (tenant_id: string, query?: {
6687
+ limit?: number;
6688
+ offset?: number;
6689
+ }, options?: Options) => Promise<ArticleCollectionResponse>;
6687
6690
  getArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<Article>;
6688
6691
  updateArticleById: (tenant_id: string, article_id: string, body?: UpdateArticleRequestBody, options?: Options) => Promise<Article>;
6689
6692
  deleteArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<Response>;
6690
6693
  publishArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<Article>;
6691
6694
  scheduleArticleById: (tenant_id: string, article_id: string, body: ScheduleArticleRequestBody, options?: Options) => Promise<Article>;
6692
- paginateAppArticles: (tenant_id: string, options?: Options) => Promise<AppArticleCollectionResponse>;
6695
+ paginateAppArticles: (tenant_id: string, query?: {
6696
+ limit?: number;
6697
+ offset?: number;
6698
+ }, options?: Options) => Promise<AppArticleCollectionResponse>;
6693
6699
  getAppArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<AppArticle>;
6694
6700
  createDesignSystem: (tenant_id: string, body: CreateDesignSystemRequestBody, options?: Options) => Promise<DesignSystem>;
6695
6701
  listDesignSystems: (tenant_id: string, options?: Options) => Promise<Array<DesignSystem>>;
package/dist/ParraAPI.js CHANGED
@@ -840,9 +840,9 @@ var ParraAPI = /** @class */ (function () {
840
840
  "content-type": "application/json",
841
841
  } }, options));
842
842
  };
843
- this.paginateArticles = function (tenant_id, options) {
843
+ this.paginateArticles = function (tenant_id, query, options) {
844
844
  if (options === void 0) { options = {}; }
845
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/articles"), method: "get" }, options));
845
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/articles"), method: "get", query: query }, options));
846
846
  };
847
847
  this.getArticleById = function (tenant_id, article_id, options) {
848
848
  if (options === void 0) { options = {}; }
@@ -868,9 +868,9 @@ var ParraAPI = /** @class */ (function () {
868
868
  "content-type": "application/json",
869
869
  } }, options));
870
870
  };
871
- this.paginateAppArticles = function (tenant_id, options) {
871
+ this.paginateAppArticles = function (tenant_id, query, options) {
872
872
  if (options === void 0) { options = {}; }
873
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/articles"), method: "get" }, options));
873
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/articles"), method: "get", query: query }, options));
874
874
  };
875
875
  this.getAppArticleById = function (tenant_id, article_id, options) {
876
876
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.585",
3
+ "version": "0.3.586",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",