@parra/parra-js-sdk 0.3.596 → 0.3.598

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.
@@ -895,7 +895,7 @@ export interface ArticleContent {
895
895
  export interface UpdateArticleRequestBody {
896
896
  title?: string;
897
897
  short_title?: string | null;
898
- slug?: string;
898
+ slug?: string | null;
899
899
  json_content?: ArticleContent | null;
900
900
  html_content?: string | null;
901
901
  text_content?: string | null;
@@ -906,7 +906,7 @@ export interface UpdateArticleRequestBody {
906
906
  export interface CreateArticleRequestBody {
907
907
  title?: string;
908
908
  short_title?: string | null;
909
- slug?: string;
909
+ slug?: string | null;
910
910
  json_content?: ArticleContent | null;
911
911
  html_content?: string | null;
912
912
  text_content?: string | null;
@@ -956,6 +956,11 @@ export interface ReactionSummary {
956
956
  reaction_id?: string | null;
957
957
  users: Array<TenantUserNameStub>;
958
958
  }
959
+ export interface TagStub {
960
+ id: string;
961
+ title: string;
962
+ slug?: string | null;
963
+ }
959
964
  export interface ArticleStub {
960
965
  id: string;
961
966
  created_at: string;
@@ -978,6 +983,7 @@ export interface ArticleStub {
978
983
  authors: Array<CreatorUpdateSenderStub>;
979
984
  reaction_options?: Array<ReactionOptionGroup>;
980
985
  reactions?: Array<ReactionSummary>;
986
+ tags?: Array<TagStub>;
981
987
  }
982
988
  export interface Article {
983
989
  id: string;
@@ -1001,6 +1007,7 @@ export interface Article {
1001
1007
  authors: Array<CreatorUpdateSenderStub>;
1002
1008
  reaction_options?: Array<ReactionOptionGroup>;
1003
1009
  reactions?: Array<ReactionSummary>;
1010
+ tags?: Array<TagStub>;
1004
1011
  json_content?: ArticleContent | null;
1005
1012
  html_content?: string | null;
1006
1013
  text_content?: string | null;
@@ -1024,11 +1031,6 @@ export interface ArticleAuthor {
1024
1031
  export interface AddTagRequestBody {
1025
1032
  tag_id: string;
1026
1033
  }
1027
- export interface TagStub {
1028
- id: string;
1029
- title: string;
1030
- slug?: string | null;
1031
- }
1032
1034
  export interface ScheduleArticleRequestBody {
1033
1035
  schedule_at: string;
1034
1036
  }
@@ -6770,6 +6772,7 @@ declare class ParraAPI {
6770
6772
  paginateTags: (tenant_id: string, query?: {
6771
6773
  pool?: string;
6772
6774
  }, options?: Options) => Promise<TagCollectionResponse>;
6775
+ getTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Tag>;
6773
6776
  updateTagById: (tenant_id: string, tag_id: string, body?: UpdateTagRequestBody, options?: Options) => Promise<Tag>;
6774
6777
  deleteTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Response>;
6775
6778
  createArticle: (tenant_id: string, body: CreateArticleRequestBody, options?: Options) => Promise<Article>;
package/dist/ParraAPI.js CHANGED
@@ -849,6 +849,10 @@ var ParraAPI = /** @class */ (function () {
849
849
  if (options === void 0) { options = {}; }
850
850
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tags"), method: "get", query: query }, options));
851
851
  };
852
+ this.getTagById = function (tenant_id, tag_id, options) {
853
+ if (options === void 0) { options = {}; }
854
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tags/").concat(tag_id), method: "get" }, options));
855
+ };
852
856
  this.updateTagById = function (tenant_id, tag_id, body, options) {
853
857
  if (options === void 0) { options = {}; }
854
858
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tags/").concat(tag_id), method: "put", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.596",
3
+ "version": "0.3.598",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",