@prezly/sdk 18.0.0 → 18.1.0
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/api/constants.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "
|
|
7
|
+
const VERSION = "18.0.0";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
|
10
10
|
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
package/dist/api/constants.js
CHANGED
package/dist/types/Category.cjs
CHANGED
package/dist/types/Category.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import type { CultureRef } from './Culture';
|
|
1
|
+
import type { Culture, CultureRef } from './Culture';
|
|
2
2
|
export interface CategoryRef {
|
|
3
3
|
id: number;
|
|
4
4
|
display_name: string;
|
|
5
5
|
display_description: string | null;
|
|
6
|
-
i18n: {
|
|
7
|
-
[localeCode:
|
|
8
|
-
|
|
9
|
-
locale: CultureRef;
|
|
10
|
-
name: string;
|
|
11
|
-
slug: string | null;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
6
|
+
i18n: Partial<{
|
|
7
|
+
[localeCode: Culture.Code]: Category.Translation;
|
|
8
|
+
}>;
|
|
14
9
|
stories_number: number;
|
|
15
10
|
}
|
|
16
11
|
export interface Category extends CategoryRef {
|
|
17
12
|
stories_number: number;
|
|
18
13
|
public_stories_number: number;
|
|
19
14
|
}
|
|
15
|
+
export declare namespace Category {
|
|
16
|
+
interface Translation {
|
|
17
|
+
locale: CultureRef;
|
|
18
|
+
slug: string | null;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string | null;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/types/Category.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export let Category;
|
|
2
|
+
(function (_Category) {})(Category || (Category = {}));
|