@pluto-budgeting/api-client 0.4.213 → 0.4.215
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContentBlock } from '@pluto-budgeting/core/
|
|
1
|
+
import type { ContentBlock } from '@pluto-budgeting/core/content/content-blocks.js';
|
|
2
2
|
import type { BlogPostStatus } from '@pluto-budgeting/core/models/blog-posts/blog-post.js';
|
|
3
3
|
export type AdminCreateBlogPostModel = {
|
|
4
4
|
author: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HelpArticle } from '@pluto-budgeting/core/models/help-articles/help-article.js';
|
|
2
|
+
import type { ClientSerialized } from '../client-serialized.js';
|
|
3
|
+
export type HelpArticleModel = ClientSerialized<HelpArticle<string, string>>;
|
|
4
|
+
export declare function toHelpArticleModel(helpArticle: HelpArticle): HelpArticleModel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function toHelpArticleModel(helpArticle) {
|
|
2
|
+
return {
|
|
3
|
+
_id: helpArticle._id.toString(),
|
|
4
|
+
articleId: helpArticle.articleId,
|
|
5
|
+
version: helpArticle.version,
|
|
6
|
+
title: helpArticle.title,
|
|
7
|
+
category: helpArticle.category,
|
|
8
|
+
categoryColor: helpArticle.categoryColor,
|
|
9
|
+
categoryIcon: helpArticle.categoryIcon,
|
|
10
|
+
readTime: helpArticle.readTime,
|
|
11
|
+
lastUpdated: helpArticle.lastUpdated.toString(),
|
|
12
|
+
status: helpArticle.status,
|
|
13
|
+
content: helpArticle.content,
|
|
14
|
+
excerpt: helpArticle.excerpt,
|
|
15
|
+
searchKeywords: helpArticle.searchKeywords,
|
|
16
|
+
relatedArticles: helpArticle.relatedArticles,
|
|
17
|
+
categoryTags: helpArticle.categoryTags,
|
|
18
|
+
analytics: helpArticle.analytics,
|
|
19
|
+
createdBy: helpArticle.createdBy?.toString() ?? null,
|
|
20
|
+
createdOn: helpArticle.createdOn.toString(),
|
|
21
|
+
deleted: helpArticle.deleted,
|
|
22
|
+
deletedOn: helpArticle.deletedOn?.toString(),
|
|
23
|
+
deletedBy: helpArticle.deletedBy?.toString() ?? null,
|
|
24
|
+
updatedBy: helpArticle.updatedBy?.toString() ?? null,
|
|
25
|
+
updatedOn: helpArticle.updatedOn?.toString(),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=help-article-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-article-model.js","sourceRoot":"","sources":["../../../src/models/help-articles/help-article-model.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,kBAAkB,CAAC,WAAwB;IACvD,OAAO;QACH,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE;QAC/B,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,KAAK,EAAE,WAAW,CAAC,KAAK;QACxB,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,aAAa,EAAE,WAAW,CAAC,aAAa;QACxC,YAAY,EAAE,WAAW,CAAC,YAAY;QACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,QAAQ,EAAE;QAC/C,MAAM,EAAE,WAAW,CAAC,MAAM;QAC1B,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,eAAe,EAAE,WAAW,CAAC,eAAe;QAC5C,YAAY,EAAE,WAAW,CAAC,YAAY;QACtC,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,IAAI;QACpD,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAE;QAC3C,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE;QAC5C,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,IAAI;QACpD,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,IAAI;QACpD,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE;KAC/C,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluto-budgeting/api-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.215",
|
|
4
4
|
"description": "Models and methods to access the Pluto Budgeting API via Redux Toolkit Query",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
30
30
|
"@typescript-eslint/parser": "^8.54.0",
|
|
31
31
|
"qs": "^6.14.1",
|
|
32
|
-
"@pluto-budgeting/core": "^0.4.
|
|
32
|
+
"@pluto-budgeting/core": "^0.4.215"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/qs": "^6.14.0"
|