@fusebase/fusebase-gate-sdk 2.2.20-sdk.1 → 2.2.20
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/apis/PortalsApi.d.ts +13 -1
- package/dist/apis/PortalsApi.js +15 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/portals/portals.d.ts +5 -0
- package/package.json +1 -1
- package/release-notes/2.2.20-sdk.1.md +2 -2
- package/release-notes/2.2.20.md +9 -0
- package/release-notes/latest.md +3 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Domain: portals
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { CreatePortalRequestContract, CreatePortalResponseContract, globalIdInPathRequired, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
|
|
8
|
+
import type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, globalIdInPathRequired, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
|
|
9
9
|
export declare class PortalsApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -20,6 +20,18 @@ export declare class PortalsApi {
|
|
|
20
20
|
headers?: Record<string, string>;
|
|
21
21
|
body: CreatePortalRequestContract;
|
|
22
22
|
}): Promise<CreatePortalResponseContract>;
|
|
23
|
+
/**
|
|
24
|
+
* Duplicate an existing portal
|
|
25
|
+
* Creates a new portal as a full copy of an existing portal: settings, theme, menu structure, pages, and content blocks are all copied. Returns portal details. Status is 'ready' immediately for P_SUB domains; 'pending' for custom/CNAME domains or if content copy is still in progress. Requires org.write access.
|
|
26
|
+
*/
|
|
27
|
+
duplicatePortal(params: {
|
|
28
|
+
path: {
|
|
29
|
+
orgId: orgIdInPathRequired;
|
|
30
|
+
portalId: globalIdInPathRequired;
|
|
31
|
+
};
|
|
32
|
+
headers?: Record<string, string>;
|
|
33
|
+
body: DuplicatePortalRequestContract;
|
|
34
|
+
}): Promise<CreatePortalResponseContract>;
|
|
23
35
|
/**
|
|
24
36
|
* Get portal details
|
|
25
37
|
* Returns detailed information for a single portal by ID. Requires org.read access.
|
package/dist/apis/PortalsApi.js
CHANGED
|
@@ -26,6 +26,21 @@ class PortalsApi {
|
|
|
26
26
|
expectedContentType: "application/json",
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Duplicate an existing portal
|
|
31
|
+
* Creates a new portal as a full copy of an existing portal: settings, theme, menu structure, pages, and content blocks are all copied. Returns portal details. Status is 'ready' immediately for P_SUB domains; 'pending' for custom/CNAME domains or if content copy is still in progress. Requires org.write access.
|
|
32
|
+
*/
|
|
33
|
+
async duplicatePortal(params) {
|
|
34
|
+
return this.client.request({
|
|
35
|
+
method: "POST",
|
|
36
|
+
path: "/:orgId/portals/:portalId/duplicate",
|
|
37
|
+
pathParams: params.path,
|
|
38
|
+
headers: params.headers,
|
|
39
|
+
body: params.body,
|
|
40
|
+
opId: "duplicatePortal",
|
|
41
|
+
expectedContentType: "application/json",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
29
44
|
/**
|
|
30
45
|
* Get portal details
|
|
31
46
|
* Returns detailed information for a single portal by ID. Requires org.read access.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeCon
|
|
|
17
17
|
export * from "./note/note";
|
|
18
18
|
export * from "./org-group/org-group";
|
|
19
19
|
export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
|
|
20
|
-
export type { CreatePortalRequestContract, CreatePortalResponseContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
|
|
20
|
+
export type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
|
|
21
21
|
export * from "./shared/common";
|
|
22
22
|
export * from "./shared/enums";
|
|
23
23
|
export type { GetHealth200ResponseContract } from "./shared/health";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export type globalIdInPathRequired = string;
|
|
2
2
|
export type PortalThemeKey = "light_purple" | "soft_light" | "quite_green" | "space_gray" | "carbon" | "oxford" | "ultramarine" | "milky_blue" | "shades_of_green" | "savvy_red" | "light_orange" | "light_blue" | "lemon_drop";
|
|
3
|
+
export interface DuplicatePortalRequestContract {
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
3
8
|
export interface CreatePortalRequestContract {
|
|
4
9
|
workspaceId: string;
|
|
5
10
|
domain: string;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED