@parra/parra-js-sdk 0.3.597 → 0.3.600
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 +5 -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;
|
@@ -925,6 +925,7 @@ export interface CreatorUpdateSenderStub {
|
|
925
925
|
name: string;
|
926
926
|
avatar?: ImageAssetStub | null;
|
927
927
|
verified: boolean;
|
928
|
+
bio?: string | null;
|
928
929
|
}
|
929
930
|
export declare enum ReactionType {
|
930
931
|
emoji = "emoji",
|
@@ -1027,6 +1028,7 @@ export interface ArticleAuthor {
|
|
1027
1028
|
name: string;
|
1028
1029
|
avatar?: ImageAssetStub | null;
|
1029
1030
|
verified: boolean;
|
1031
|
+
bio?: string | null;
|
1030
1032
|
}
|
1031
1033
|
export interface AddTagRequestBody {
|
1032
1034
|
tag_id: string;
|
@@ -6772,6 +6774,7 @@ declare class ParraAPI {
|
|
6772
6774
|
paginateTags: (tenant_id: string, query?: {
|
6773
6775
|
pool?: string;
|
6774
6776
|
}, options?: Options) => Promise<TagCollectionResponse>;
|
6777
|
+
getTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Tag>;
|
6775
6778
|
updateTagById: (tenant_id: string, tag_id: string, body?: UpdateTagRequestBody, options?: Options) => Promise<Tag>;
|
6776
6779
|
deleteTagById: (tenant_id: string, tag_id: string, options?: Options) => Promise<Response>;
|
6777
6780
|
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: {
|