@parra/parra-js-sdk 0.3.597 → 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.
- package/dist/ParraAPI.d.ts +3 -2
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -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;
|
@@ -6772,6 +6772,7 @@ declare class ParraAPI {
|
|
6772
6772
|
paginateTags: (tenant_id: string, query?: {
|
6773
6773
|
pool?: string;
|
6774
6774
|
}, options?: Options) => Promise<TagCollectionResponse>;
|
6775
|
+
getTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Tag>;
|
6775
6776
|
updateTagById: (tenant_id: string, tag_id: string, body?: UpdateTagRequestBody, options?: Options) => Promise<Tag>;
|
6776
6777
|
deleteTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Response>;
|
6777
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: {
|