@appconda/sdk 1.0.643 → 1.0.645
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appconda/sdk",
|
|
3
3
|
"homepage": "https://appconda.io/support",
|
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.645",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -1904,6 +1904,7 @@ export const SetWikiPageUserStateSchema = z.object({
|
|
|
1904
1904
|
pageId: z.string(),
|
|
1905
1905
|
isFavorite: z.boolean().optional(),
|
|
1906
1906
|
isWatching: z.boolean().optional(),
|
|
1907
|
+
userId: z.string().optional(),
|
|
1907
1908
|
});
|
|
1908
1909
|
|
|
1909
1910
|
export const UploadEditorFileSchema = z.object({
|
|
@@ -1889,7 +1889,18 @@ export class EmploidService extends ServiceClient {
|
|
|
1889
1889
|
public async SetWikiPageUserState(
|
|
1890
1890
|
payload: z.infer<typeof SetWikiPageUserStateSchema>
|
|
1891
1891
|
): Promise<any> {
|
|
1892
|
-
return await this.actionCall("wiki", "SetWikiPageUserState",
|
|
1892
|
+
return await this.actionCall("wiki", "SetWikiPageUserState", {
|
|
1893
|
+
pageId: payload.pageId,
|
|
1894
|
+
...(typeof payload.userId === "string" && payload.userId.trim()
|
|
1895
|
+
? { userId: payload.userId.trim() }
|
|
1896
|
+
: {}),
|
|
1897
|
+
...(typeof payload.isFavorite === "boolean"
|
|
1898
|
+
? { isFavorite: String(payload.isFavorite) }
|
|
1899
|
+
: {}),
|
|
1900
|
+
...(typeof payload.isWatching === "boolean"
|
|
1901
|
+
? { isWatching: String(payload.isWatching) }
|
|
1902
|
+
: {}),
|
|
1903
|
+
});
|
|
1893
1904
|
}
|
|
1894
1905
|
|
|
1895
1906
|
public async UploadWikiFile(
|