@appconda/sdk 1.0.644 → 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.644",
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({
@@ -1891,6 +1891,9 @@ export class EmploidService extends ServiceClient {
1891
1891
  ): Promise<any> {
1892
1892
  return await this.actionCall("wiki", "SetWikiPageUserState", {
1893
1893
  pageId: payload.pageId,
1894
+ ...(typeof payload.userId === "string" && payload.userId.trim()
1895
+ ? { userId: payload.userId.trim() }
1896
+ : {}),
1894
1897
  ...(typeof payload.isFavorite === "boolean"
1895
1898
  ? { isFavorite: String(payload.isFavorite) }
1896
1899
  : {}),