@plitzi/sdk-shared 0.33.2 → 0.34.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/CHANGELOG.md +58 -0
- package/dist/actions/cron.d.ts +34 -0
- package/dist/actions/cron.mjs +72 -0
- package/dist/actions/index.d.ts +6 -0
- package/dist/actions/index.mjs +5 -0
- package/dist/actions/triggerParams.d.ts +41 -0
- package/dist/actions/triggerParams.mjs +40 -0
- package/dist/actions/triggers.d.ts +29 -0
- package/dist/actions/triggers.mjs +4 -0
- package/dist/actions/validateDocument.d.ts +23 -0
- package/dist/actions/validateDocument.mjs +267 -0
- package/dist/auth/failureChannel.d.ts +9 -4
- package/dist/auth/failureChannel.mjs +3 -2
- package/dist/authoring/builder.d.ts +51 -0
- package/dist/authoring/builder.mjs +29 -0
- package/dist/authoring/declare.d.ts +64 -0
- package/dist/authoring/declare.mjs +4 -0
- package/dist/authoring/elementCallbacks.d.ts +13 -0
- package/dist/authoring/elementCallbacks.mjs +71 -0
- package/dist/authoring/index.d.ts +21 -0
- package/dist/authoring/index.mjs +6 -0
- package/dist/authoring/paramSpec.d.ts +51 -0
- package/dist/authoring/paramSpec.mjs +40 -0
- package/dist/authoring/spaceCallbacks.d.ts +10 -0
- package/dist/authoring/spaceCallbacks.mjs +51 -0
- package/dist/builder/contexts/BuilderContext.d.ts +2 -4
- package/dist/dataSource/getBindingsDetails.mjs +1 -1
- package/dist/dataSource/helpers/getSourceName.d.ts +1 -3
- package/dist/dataSource/helpers/getSourceName.mjs +1 -1
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +6 -5
- package/dist/dataSource/resolveVariables.d.ts +22 -0
- package/dist/dataSource/resolveVariables.mjs +16 -0
- package/dist/dataSource/utility/index.mjs +15 -13
- package/dist/dataSource/utility/not.d.ts +11 -0
- package/dist/dataSource/utility/not.mjs +15 -0
- package/dist/devTools/debugCookie.d.ts +16 -0
- package/dist/devTools/debugCookie.mjs +7 -0
- package/dist/devTools/index.d.ts +6 -2
- package/dist/devTools/index.mjs +4 -2
- package/dist/devTools/interactionLog.d.ts +14 -0
- package/dist/devTools/interactionLog.mjs +4 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.mjs +11 -9
- package/dist/helpers/reducerOrigin.d.ts +15 -0
- package/dist/helpers/reducerOrigin.mjs +4 -0
- package/dist/helpers/ruleEvaluator.d.ts +14 -0
- package/dist/helpers/ruleEvaluator.mjs +5 -0
- package/dist/helpers/twigWrapper/AST.d.ts +12 -1
- package/dist/helpers/twigWrapper/AST.mjs +0 -0
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +7 -0
- package/dist/helpers/twigWrapper/Parser/Cursor.d.ts +7 -0
- package/dist/helpers/twigWrapper/Parser/Cursor.mjs +5 -0
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +46 -8
- package/dist/helpers/twigWrapper/Parser/types.mjs +0 -0
- package/dist/helpers/twigWrapper/charClass.d.ts +7 -0
- package/dist/helpers/twigWrapper/charClass.mjs +16 -12
- package/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs +2 -2
- package/dist/helpers/utils.d.ts +0 -2
- package/dist/helpers/utils.mjs +16 -19
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +4 -3
- package/dist/hooks/useFontHead.d.ts +3 -0
- package/dist/hooks/useFontHead.mjs +23 -0
- package/dist/hooks/usePlitziServiceContext.d.ts +3 -2
- package/dist/index.mjs +61 -45
- package/dist/navigation/index.d.ts +1 -1
- package/dist/navigation/index.mjs +2 -2
- package/dist/navigation/routes.d.ts +8 -0
- package/dist/navigation/routes.mjs +39 -39
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.d.ts +3 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.d.ts +8 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +2 -3
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +0 -1
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +24 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +150 -132
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +0 -1
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +0 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs +30 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +16 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.mjs +25 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs +17 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.d.ts +30 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.mjs +40 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +16 -0
- package/dist/network/graphql/builder/Queries/index.mjs +24 -14
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +4 -0
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +5 -2
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +0 -1
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +0 -1
- package/dist/network/spaceEvents.d.ts +20 -1
- package/dist/network/spaceEvents.mjs +89 -74
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.mjs +2 -1
- package/dist/schema/serverElements.d.ts +16 -0
- package/dist/schema/serverElements.mjs +18 -0
- package/dist/server/actions/useActionsSync.d.ts +10 -0
- package/dist/server/actions/useActionsSync.mjs +7 -0
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.mjs +5 -4
- package/dist/server/rsc/refreshRsc.d.ts +11 -1
- package/dist/server/rsc/refreshRsc.mjs +30 -12
- package/dist/server/rsc/useRscSync.mjs +20 -13
- package/dist/state/runtimeStatePersist.mjs +4 -3
- package/dist/store/actionRuns/actionRunsRecorder.d.ts +36 -0
- package/dist/store/actionRuns/actionRunsRecorder.mjs +39 -0
- package/dist/store/actionRuns/actionRunsStore.d.ts +16 -0
- package/dist/store/actionRuns/actionRunsStore.mjs +5 -0
- package/dist/store/actionRuns/index.d.ts +6 -0
- package/dist/store/actionRuns/index.mjs +4 -0
- package/dist/store/actionRuns/useActionRuns.d.ts +13 -0
- package/dist/store/actionRuns/useActionRuns.mjs +10 -0
- package/dist/store/index.d.ts +46 -45
- package/dist/store/index.mjs +6 -3
- package/dist/store/renderSettings.d.ts +3 -0
- package/dist/store/renderSettings.mjs +17 -5
- package/dist/store/tracing/tracingCollector.d.ts +1 -1
- package/dist/store/tracing/tracingCollector.mjs +37 -35
- package/dist/store/tracing/tracingStore.d.ts +13 -0
- package/dist/store/tracing/tracingStore.mjs +3 -3
- package/dist/style/fontAssets.d.ts +12 -0
- package/dist/style/fontAssets.mjs +18 -0
- package/dist/style/fontValidation.d.ts +8 -0
- package/dist/style/fontValidation.mjs +107 -0
- package/dist/style/fonts.d.ts +74 -0
- package/dist/style/fonts.mjs +198 -0
- package/dist/style/fontsFromCss.d.ts +27 -0
- package/dist/style/fontsFromCss.mjs +43 -0
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.mjs +5 -1
- package/dist/style/styleConstants.d.ts +2 -2
- package/dist/style/styleConstants.mjs +1 -0
- package/dist/theme/ThemeProvider.d.ts +36 -6
- package/dist/theme/ThemeProvider.mjs +49 -35
- package/dist/theme/ThemeScope.d.ts +16 -0
- package/dist/theme/ThemeScope.mjs +6 -0
- package/dist/theme/index.d.ts +7 -1
- package/dist/theme/index.mjs +6 -2
- package/dist/theme/themeCookie.d.ts +30 -0
- package/dist/theme/themeCookie.mjs +24 -0
- package/dist/theme/themeStore.d.ts +40 -0
- package/dist/theme/themeStore.mjs +17 -0
- package/dist/theme/useTheme.d.ts +29 -0
- package/dist/theme/useTheme.mjs +20 -0
- package/dist/types/ActionTypes.d.ts +396 -0
- package/dist/types/ActionTypes.mjs +0 -0
- package/dist/types/AuthTypes.d.ts +23 -2
- package/dist/types/BuilderTypes.d.ts +0 -12
- package/dist/types/CommonTypes.d.ts +13 -0
- package/dist/types/DevToolsTypes.d.ts +57 -14
- package/dist/types/EventBridgeTypes.d.ts +1 -1
- package/dist/types/InteractionTypes.d.ts +23 -3
- package/dist/types/PluginTypes.d.ts +0 -3
- package/dist/types/SchemaTypes.d.ts +29 -4
- package/dist/types/ServerTypes.d.ts +390 -46
- package/dist/types/SpaceTypes.d.ts +16 -0
- package/dist/types/StoreTypes.d.ts +181 -3
- package/dist/types/StyleTypes.d.ts +83 -4
- package/dist/types/TemplateTypes.d.ts +20 -0
- package/dist/types/TemplateTypes.mjs +0 -0
- package/dist/types/ThemeTypes.d.ts +28 -1
- package/dist/types/index.d.ts +2 -0
- package/eslint.config.mjs +2 -0
- package/package.json +244 -29
- package/vite.config.ts +27 -7
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
|
-
import { getPageFullPath as t, getPaths as n, getRouteParams as r,
|
|
3
|
-
export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as isPageAuthored, e as matchPath,
|
|
2
|
+
import { getPageFullPath as t, getPaths as n, getRouteParams as r, isAbsoluteUrl as i, isPageAuthored as a, matchRoutePath as o } from "./routes.mjs";
|
|
3
|
+
export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as isAbsoluteUrl, a as isPageAuthored, e as matchPath, o as matchRoutePath };
|
|
@@ -12,6 +12,14 @@ export type Path = {
|
|
|
12
12
|
unauthorizedBehaviour?: NavigationAction;
|
|
13
13
|
unauthorizedPageRedirect?: string;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Does this name another origin, rather than somewhere in this space?
|
|
17
|
+
*
|
|
18
|
+
* Deliberately narrow: `//host` and a bare `host.com` are NOT absolute here. The first is protocol-relative and
|
|
19
|
+
* reads as a path to anybody skimming, and the second is indistinguishable from a page slug — treating either as
|
|
20
|
+
* external would turn a typo into an off-site redirect.
|
|
21
|
+
*/
|
|
22
|
+
export declare const isAbsoluteUrl: (url: string) => boolean;
|
|
15
23
|
declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString: true): string;
|
|
16
24
|
declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString?: false): Record<string, string>;
|
|
17
25
|
declare const isPageAuthored: (accessLevel?: NavigationAccessLevel, authenticated?: boolean, previewMode?: boolean) => boolean;
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
2
|
//#region src/navigation/routes.ts
|
|
3
|
-
var t = (e) => e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/i, ":$1").replaceAll(/[/]+/gim, "/"),
|
|
3
|
+
var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/i, ":$1").replaceAll(/[/]+/gim, "/"), i = (e, t) => {
|
|
4
4
|
if (!t || !e[t]) return "";
|
|
5
|
-
let { slug:
|
|
6
|
-
return
|
|
5
|
+
let { slug: n, parentId: r } = e[t];
|
|
6
|
+
return r ? `${i(e, r)}/${n}` : n;
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
let { slug: o = "", folder: s, default: c } = e[
|
|
10
|
-
slug:
|
|
8
|
+
function a(e, t, n, a = !1) {
|
|
9
|
+
let { slug: o = "", folder: s, default: c } = e[n]?.attributes ?? {
|
|
10
|
+
slug: n,
|
|
11
11
|
folder: "",
|
|
12
12
|
default: !1
|
|
13
13
|
};
|
|
14
14
|
if (c && !a) return {
|
|
15
|
-
"/":
|
|
16
|
-
[`/${
|
|
15
|
+
"/": n,
|
|
16
|
+
[`/${n}`]: n
|
|
17
17
|
};
|
|
18
18
|
if (c && a) return "/";
|
|
19
19
|
if (!s && !a) return {
|
|
20
|
-
[
|
|
21
|
-
[`/${
|
|
20
|
+
[r(`/${o}`)]: n,
|
|
21
|
+
[`/${n}`]: n
|
|
22
22
|
};
|
|
23
23
|
if (!s && a) return `/${o}`;
|
|
24
|
-
if (!
|
|
25
|
-
[
|
|
26
|
-
[`/${
|
|
24
|
+
if (!t.find((e) => e.id === s)) return a ? `/${o}` : {
|
|
25
|
+
[r(`/${o}`)]: n,
|
|
26
|
+
[`/${n}`]: n
|
|
27
27
|
};
|
|
28
|
-
let l = [
|
|
28
|
+
let l = [i(t.reduce((e, t) => ({
|
|
29
29
|
...e,
|
|
30
30
|
[t.id]: t
|
|
31
|
-
}), {}), s), o ||
|
|
31
|
+
}), {}), s), o || n].filter(Boolean).join("/");
|
|
32
32
|
return a ? `/${l}` : {
|
|
33
|
-
[`/${l}`]:
|
|
34
|
-
[`/${
|
|
33
|
+
[`/${l}`]: n,
|
|
34
|
+
[`/${n}`]: n
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
let
|
|
39
|
-
let { attributes: { accessLevel:
|
|
40
|
-
if (!
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
pageId:
|
|
44
|
-
path: `${
|
|
45
|
-
accessLevel:
|
|
46
|
-
enabled:
|
|
47
|
-
isRaw: `/${
|
|
48
|
-
unauthorizedBehaviour:
|
|
49
|
-
unauthorizedPageRedirect:
|
|
50
|
-
hasAccess:
|
|
37
|
+
var o = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, s = (e = {}, t = [], r, i = "", s = !0, c = !0) => {
|
|
38
|
+
let l = Object.keys(e).reduce((c, l) => {
|
|
39
|
+
let { attributes: { accessLevel: u, enabled: d = !0, unauthorizedBehaviour: f } } = e[l], p = e[l].attributes.unauthorizedPageRedirect;
|
|
40
|
+
if (!d && s) return c;
|
|
41
|
+
p &&= n(p) ? p : a(e, t, p.replace("/", ""), !0);
|
|
42
|
+
let m = a(e, t, l), h = Object.keys(m).map((e) => ({
|
|
43
|
+
pageId: l,
|
|
44
|
+
path: `${i}${e}`.replaceAll("//", "/"),
|
|
45
|
+
accessLevel: u,
|
|
46
|
+
enabled: d,
|
|
47
|
+
isRaw: `/${l}` === e,
|
|
48
|
+
unauthorizedBehaviour: f,
|
|
49
|
+
unauthorizedPageRedirect: p,
|
|
50
|
+
hasAccess: o(u, r, s)
|
|
51
51
|
}));
|
|
52
|
-
return [...
|
|
52
|
+
return [...c, ...h];
|
|
53
53
|
}, []).filter((e) => e.path !== "*" || e.hasAccess).sort((e, t) => e.path === t.path ? e.accessLevel === "authenticated" ? -1 : 1 : e.path > t.path ? -1 : 1);
|
|
54
|
-
if (!
|
|
55
|
-
let e =
|
|
56
|
-
e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect &&
|
|
54
|
+
if (!l.find((e) => e.path === "*") && !c) {
|
|
55
|
+
let e = l.find((e) => e.path === "/" && e.hasAccess);
|
|
56
|
+
e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect && l.push({
|
|
57
57
|
...e,
|
|
58
58
|
path: "*",
|
|
59
59
|
hasAccess: !1,
|
|
@@ -62,8 +62,8 @@ var i = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
|
|
|
62
62
|
unauthorizedPageRedirect: "/"
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
return
|
|
66
|
-
},
|
|
65
|
+
return l;
|
|
66
|
+
}, c = (t, n, r) => {
|
|
67
67
|
if (!n) return {
|
|
68
68
|
action: {
|
|
69
69
|
type: "accessDenied",
|
|
@@ -119,6 +119,6 @@ var i = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
|
|
|
119
119
|
},
|
|
120
120
|
pathMatch: void 0
|
|
121
121
|
};
|
|
122
|
-
},
|
|
122
|
+
}, l = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
|
|
123
123
|
//#endregion
|
|
124
|
-
export {
|
|
124
|
+
export { a as getPageFullPath, s as getPaths, l as getRouteParams, t as isAbsoluteUrl, o as isPageAuthored, c as matchRoutePath };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SegmentRenameElementMutation($environment: String!, $elementId: String!, $id: String!, $contextId: String!) {
|
|
5
|
+
SegmentRenameElement(environment: $environment, elementId: $elementId, id: $id, contextId: $contextId)
|
|
6
|
+
}
|
|
7
|
+
`;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The ids, under their new names, of every element the rename touched — the one renamed plus everything repointed
|
|
2
|
+
* onto it. */
|
|
3
|
+
export type TSpaceRenameElementMutation = string[];
|
|
4
|
+
declare const SpaceRenameElementMutation: import('graphql').DocumentNode;
|
|
5
|
+
export default SpaceRenameElementMutation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceRenameElementMutation($environment: String!, $elementId: String!, $id: String!) {
|
|
5
|
+
SpaceRenameElement(environment: $environment, elementId: $elementId, id: $id)
|
|
6
|
+
}
|
|
7
|
+
`;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpaceAction } from '../../../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The network layer unwraps a mutation's single root field, so this is the payload itself rather than the response
|
|
4
|
+
* envelope — declaring the envelope compiles fine and then reads `undefined` at runtime.
|
|
5
|
+
*/
|
|
6
|
+
export type TSpaceAddActionMutation = SpaceAction;
|
|
7
|
+
declare const SpaceAddActionMutation: import('graphql').DocumentNode;
|
|
8
|
+
export default SpaceAddActionMutation;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceAddActionMutation($name: String!, $document: Json!) {
|
|
5
|
+
SpaceAddAction(name: $name, document: $document) {
|
|
6
|
+
id
|
|
7
|
+
identifier
|
|
8
|
+
name
|
|
9
|
+
document
|
|
10
|
+
createdAt
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceRemoveActionMutation($identifier: String!) {
|
|
5
|
+
SpaceRemoveAction(identifier: $identifier) {
|
|
6
|
+
id
|
|
7
|
+
identifier
|
|
8
|
+
name
|
|
9
|
+
document
|
|
10
|
+
createdAt
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceRunActionMutation($identifier: String!, $input: Json, $trigger: String) {
|
|
5
|
+
SpaceRunAction(identifier: $identifier, input: $input, trigger: $trigger) {
|
|
6
|
+
runId
|
|
7
|
+
status
|
|
8
|
+
output
|
|
9
|
+
trace
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceUpdateActionMutation($identifier: String!, $name: String!, $document: Json!) {
|
|
5
|
+
SpaceUpdateAction(identifier: $identifier, name: $name, document: $document) {
|
|
6
|
+
id
|
|
7
|
+
identifier
|
|
8
|
+
name
|
|
9
|
+
document
|
|
10
|
+
createdAt
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|
|
@@ -5,12 +5,11 @@ var t = e`
|
|
|
5
5
|
$environment: String!
|
|
6
6
|
$name: String!
|
|
7
7
|
$slug: String!
|
|
8
|
-
$
|
|
8
|
+
$id: String!
|
|
9
9
|
$pageFolder: String
|
|
10
10
|
) {
|
|
11
|
-
SpaceAddPage(environment: $environment, name: $name, slug: $slug,
|
|
11
|
+
SpaceAddPage(environment: $environment, name: $name, slug: $slug, id: $id, pageFolder: $pageFolder) {
|
|
12
12
|
id
|
|
13
|
-
idRef
|
|
14
13
|
definition
|
|
15
14
|
attributes
|
|
16
15
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation StyleAddFontMutation($environment: String!, $font: Json!) {
|
|
5
|
+
StyleAddFont(environment: $environment, font: $font) {
|
|
6
|
+
family
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation StyleRemoveFontMutation($environment: String!, $family: String!) {
|
|
5
|
+
StyleRemoveFont(environment: $environment, family: $family) {
|
|
6
|
+
family
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client/core";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation StyleUpdateFontMutation($environment: String!, $family: String!, $font: Json!) {
|
|
5
|
+
StyleUpdateFont(environment: $environment, family: $family, font: $font) {
|
|
6
|
+
family
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { TSegmentAddMutation } from './Segment/SegmentAddMutation';
|
|
2
2
|
import { TSegmentPublishMutation } from './Segment/SegmentPublishMutation';
|
|
3
3
|
import { TSegmentUpdateMutation } from './Segment/SegmentUpdateMutation';
|
|
4
|
+
import { TSegmentRenameElementMutation } from './Segment/space/elements/SegmentRenameElementMutation';
|
|
5
|
+
import { TSpaceAddActionMutation } from './Space/actions/SpaceAddActionMutation';
|
|
6
|
+
import { TSpaceRemoveActionMutation } from './Space/actions/SpaceRemoveActionMutation';
|
|
7
|
+
import { TSpaceRunActionMutation } from './Space/actions/SpaceRunActionMutation';
|
|
8
|
+
import { TSpaceUpdateActionMutation } from './Space/actions/SpaceUpdateActionMutation';
|
|
4
9
|
import { TSpaceAddCdnMutation } from './Space/cdns/SpaceAddCdnMutation';
|
|
5
10
|
import { TSpaceRemoveCdnMutation } from './Space/cdns/SpaceRemoveCdnMutation';
|
|
6
11
|
import { TSpaceSetCdnCredentialMutation } from './Space/cdns/SpaceSetCdnCredentialMutation';
|
|
@@ -21,6 +26,7 @@ import { TSpaceRemoveResourceMutation } from './Space/resources/SpaceRemoveResou
|
|
|
21
26
|
import { TSpaceAddPluginMutation } from './Space/SpaceAddPluginMutation';
|
|
22
27
|
import { TSpaceDeployMutation } from './Space/SpaceDeployMutation';
|
|
23
28
|
import { TSpacePublishMutation } from './Space/SpacePublishMutation';
|
|
29
|
+
import { TSpaceRenameElementMutation } from './Space/SpaceRenameElementMutation';
|
|
24
30
|
import { TSpaceUpdatePluginMutation } from './Space/SpaceUpdatePluginMutation';
|
|
25
31
|
export type BuilderMutationsMap = {
|
|
26
32
|
SpaceUpdate: unknown;
|
|
@@ -37,6 +43,7 @@ export type BuilderMutationsMap = {
|
|
|
37
43
|
SpaceRemoveVariable: unknown;
|
|
38
44
|
SpaceAddElement: unknown;
|
|
39
45
|
SpaceUpdateElement: unknown;
|
|
46
|
+
SpaceRenameElement: TSpaceRenameElementMutation;
|
|
40
47
|
SpaceUpdateElements: unknown;
|
|
41
48
|
SpaceRemoveElement: unknown;
|
|
42
49
|
SpaceMoveElement: unknown;
|
|
@@ -52,6 +59,10 @@ export type BuilderMutationsMap = {
|
|
|
52
59
|
SpaceUpdateCdn: TSpaceUpdateCdnMutation;
|
|
53
60
|
SpaceSetCdnCredential: TSpaceSetCdnCredentialMutation;
|
|
54
61
|
SpaceRemoveCdn: TSpaceRemoveCdnMutation;
|
|
62
|
+
SpaceAddAction: TSpaceAddActionMutation;
|
|
63
|
+
SpaceUpdateAction: TSpaceUpdateActionMutation;
|
|
64
|
+
SpaceRemoveAction: TSpaceRemoveActionMutation;
|
|
65
|
+
SpaceRunAction: TSpaceRunActionMutation;
|
|
55
66
|
SpaceAddConnector: TSpaceAddConnectorMutation;
|
|
56
67
|
SpaceUpdateConnector: TSpaceUpdateConnectorMutation;
|
|
57
68
|
SpaceRemoveConnector: TSpaceRemoveConnectorMutation;
|
|
@@ -68,6 +79,9 @@ export type BuilderMutationsMap = {
|
|
|
68
79
|
StyleAddSelectorVariable: unknown;
|
|
69
80
|
StyleUpdateSelectorVariable: unknown;
|
|
70
81
|
StyleRemoveSelectorVariable: unknown;
|
|
82
|
+
StyleAddFont: unknown;
|
|
83
|
+
StyleUpdateFont: unknown;
|
|
84
|
+
StyleRemoveFont: unknown;
|
|
71
85
|
StyleAddVariable: unknown;
|
|
72
86
|
StyleUpdateVariable: unknown;
|
|
73
87
|
StyleRemoveVariable: unknown;
|
|
@@ -78,6 +92,7 @@ export type BuilderMutationsMap = {
|
|
|
78
92
|
SegmentRemove: unknown;
|
|
79
93
|
SegmentAddElement: unknown;
|
|
80
94
|
SegmentUpdateElement: unknown;
|
|
95
|
+
SegmentRenameElement: TSegmentRenameElementMutation;
|
|
81
96
|
SegmentUpdateElements: unknown;
|
|
82
97
|
SegmentRemoveElement: unknown;
|
|
83
98
|
SegmentMoveElement: unknown;
|
|
@@ -113,6 +128,7 @@ declare const BuilderMutations: {
|
|
|
113
128
|
SpaceRemoveVariable: import('graphql').DocumentNode;
|
|
114
129
|
SpaceAddElement: import('graphql').DocumentNode;
|
|
115
130
|
SpaceUpdateElement: import('graphql').DocumentNode;
|
|
131
|
+
SpaceRenameElement: import('graphql').DocumentNode;
|
|
116
132
|
SpaceUpdateElements: import('graphql').DocumentNode;
|
|
117
133
|
SpaceRemoveElement: import('graphql').DocumentNode;
|
|
118
134
|
SpaceMoveElement: import('graphql').DocumentNode;
|
|
@@ -128,6 +144,10 @@ declare const BuilderMutations: {
|
|
|
128
144
|
SpaceUpdateCdn: import('graphql').DocumentNode;
|
|
129
145
|
SpaceSetCdnCredential: import('graphql').DocumentNode;
|
|
130
146
|
SpaceRemoveCdn: import('graphql').DocumentNode;
|
|
147
|
+
SpaceAddAction: import('graphql').DocumentNode;
|
|
148
|
+
SpaceUpdateAction: import('graphql').DocumentNode;
|
|
149
|
+
SpaceRemoveAction: import('graphql').DocumentNode;
|
|
150
|
+
SpaceRunAction: import('graphql').DocumentNode;
|
|
131
151
|
SpaceAddConnector: import('graphql').DocumentNode;
|
|
132
152
|
SpaceUpdateConnector: import('graphql').DocumentNode;
|
|
133
153
|
SpaceRemoveConnector: import('graphql').DocumentNode;
|
|
@@ -144,6 +164,9 @@ declare const BuilderMutations: {
|
|
|
144
164
|
StyleAddSelectorVariable: import('graphql').DocumentNode;
|
|
145
165
|
StyleUpdateSelectorVariable: import('graphql').DocumentNode;
|
|
146
166
|
StyleRemoveSelectorVariable: import('graphql').DocumentNode;
|
|
167
|
+
StyleAddFont: import('graphql').DocumentNode;
|
|
168
|
+
StyleUpdateFont: import('graphql').DocumentNode;
|
|
169
|
+
StyleRemoveFont: import('graphql').DocumentNode;
|
|
147
170
|
StyleAddVariable: import('graphql').DocumentNode;
|
|
148
171
|
StyleUpdateVariable: import('graphql').DocumentNode;
|
|
149
172
|
StyleRemoveVariable: import('graphql').DocumentNode;
|
|
@@ -154,6 +177,7 @@ declare const BuilderMutations: {
|
|
|
154
177
|
SegmentRemove: import('graphql').DocumentNode;
|
|
155
178
|
SegmentAddElement: import('graphql').DocumentNode;
|
|
156
179
|
SegmentUpdateElement: import('graphql').DocumentNode;
|
|
180
|
+
SegmentRenameElement: import('graphql').DocumentNode;
|
|
157
181
|
SegmentUpdateElements: import('graphql').DocumentNode;
|
|
158
182
|
SegmentRemoveElement: import('graphql').DocumentNode;
|
|
159
183
|
SegmentMoveElement: import('graphql').DocumentNode;
|