@hubs101/js-api-skd-client 1.0.10388 → 1.0.10390
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/lib/api/event/index.d.ts +1 -1
- package/lib/api/event/types.d.ts +5 -4
- package/lib/utils/api.js +2 -2
- package/package.json +4 -4
package/lib/api/event/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare const _updatePortfolio: (basePath: string, token: string, portfol
|
|
|
110
110
|
}[]) => Promise<any>;
|
|
111
111
|
export declare const _fetchPortfolioDetails: (basePath: string, token: string, portfolioId: string) => Promise<Portfolio>;
|
|
112
112
|
export declare const _fetchPortfolioEvents: (basePath: string, token: string, portfolioId: string) => Promise<Event[]>;
|
|
113
|
-
export declare const _fetchBlogPages: (basePath: string, token: string, accountId: string, portfolioId
|
|
113
|
+
export declare const _fetchBlogPages: (basePath: string, token: string, accountId: string, portfolioId?: string) => Promise<BlogPage[]>;
|
|
114
114
|
export declare const _createBlogPage: (basePath: string, token: string, portfolioId: string, data: BlogPageInput, files: {
|
|
115
115
|
name: string;
|
|
116
116
|
value: File;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -863,11 +863,12 @@ export type BlogPage = {
|
|
|
863
863
|
headline: string;
|
|
864
864
|
subHeadline: string;
|
|
865
865
|
slug: string;
|
|
866
|
-
|
|
867
|
-
|
|
866
|
+
content_html: string;
|
|
867
|
+
content_structure: string;
|
|
868
868
|
language: string;
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
created_at: string;
|
|
870
|
+
updated_at: string;
|
|
871
|
+
updated_by: string;
|
|
871
872
|
published: boolean;
|
|
872
873
|
design: {
|
|
873
874
|
primaryColor: string;
|
package/lib/utils/api.js
CHANGED
|
@@ -186,7 +186,7 @@ const putRequest = (url, token, body, withoutStatus = true) => __awaiter(void 0,
|
|
|
186
186
|
throw data.message;
|
|
187
187
|
}
|
|
188
188
|
if (data === null || data === void 0 ? void 0 : data.invalid_fields) {
|
|
189
|
-
throw
|
|
189
|
+
throw new Error(`invalid_fields: ${data.invalid_fields}`);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
if ((data === null || data === void 0 ? void 0 : data.result) && typeof (data === null || data === void 0 ? void 0 : data.result) !== "string" && withoutStatus) {
|
|
@@ -217,7 +217,7 @@ const patchRequest = (url, token, body) => __awaiter(void 0, void 0, void 0, fun
|
|
|
217
217
|
throw data.message;
|
|
218
218
|
}
|
|
219
219
|
if (data === null || data === void 0 ? void 0 : data.invalid_fields) {
|
|
220
|
-
throw
|
|
220
|
+
throw new Error(`invalid_fields: ${data.invalid_fields}`);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
return data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubs101/js-api-skd-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10390",
|
|
4
4
|
"author": "Liveware",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --config jestconfig.json",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/jest": "^29.5.0",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
47
|
-
"@typescript-eslint/parser": "^6.
|
|
48
|
-
"eslint": "^8.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
47
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
48
|
+
"eslint": "^8.57.0",
|
|
49
49
|
"eslint-config-prettier": "^9.0.0",
|
|
50
50
|
"eslint-plugin-jsdoc": "^46.6.0",
|
|
51
51
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|