@plitzi/sdk-shared 0.39.4 → 0.39.6
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 +11 -0
- package/dist/clients/index.d.ts +2 -1
- package/dist/clients/index.mjs +24 -15
- package/dist/credentials/index.d.ts +4 -0
- package/dist/credentials/index.mjs +3 -0
- package/dist/credentials/kinds.d.ts +54 -0
- package/dist/credentials/kinds.mjs +326 -0
- package/dist/credentials/problems.d.ts +14 -0
- package/dist/credentials/problems.mjs +43 -0
- package/dist/helpers/twigWrapper/charClass.mjs +21 -16
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +3 -2
- package/dist/hooks/usePrePaint.d.ts +12 -0
- package/dist/hooks/usePrePaint.mjs +8 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.mjs +4 -3
- package/dist/navigation/notFoundPages.d.ts +25 -0
- package/dist/navigation/notFoundPages.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCancelDeployMutation.d.ts +7 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCancelDeployMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCancelScheduledPublishMutation.d.ts +6 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCancelScheduledPublishMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRedeployMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRedeployMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRollbackMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRollbackMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSchedulePublishMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSchedulePublishMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSetTargetMutation.d.ts +10 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSetTargetMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceTargetAutomationMutation.d.ts +11 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceTargetAutomationMutation.mjs +3 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +14 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +88 -74
- package/dist/network/graphql/builder/Queries/Space/SpaceDeployDetailQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceDeployDetailQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpacePublishCheckQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpacePublishCheckQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceReleasesQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceReleasesQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceScheduledPublishesQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceScheduledPublishesQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceSnapshotsQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceSnapshotsQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceTargetsQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceTargetsQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceVersionChangesQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceVersionChangesQuery.mjs +3 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +14 -0
- package/dist/network/graphql/builder/Queries/index.mjs +38 -24
- package/dist/schema/index.mjs +2 -2
- package/dist/schema/pageAccess.d.ts +6 -0
- package/dist/schema/pageAccess.mjs +23 -23
- package/dist/store/runtimeStatePersist.mjs +8 -8
- package/dist/store/storeHooks.d.ts +45 -45
- package/dist/types/ServerTypes.d.ts +6 -0
- package/dist/types/SpaceTypes.d.ts +277 -6
- package/dist/types/StoreTypes.d.ts +6 -0
- package/package.json +9 -13
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Element } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* The pages for the addresses nothing answers, as an editor keeps them: one per place — the space, or one folder —, or
|
|
4
|
+
* the router would pick one of two and an address land on whichever it picked (authoring refuses it, `not-found-twice`).
|
|
5
|
+
* Whatever makes a page the 404 of a place — its slug typed `*`, a move into a folder, "use as 404 page" — asks here
|
|
6
|
+
* first which page already is.
|
|
7
|
+
*/
|
|
8
|
+
type Pages = {
|
|
9
|
+
flat: Record<string, Element | undefined>;
|
|
10
|
+
pages: readonly string[];
|
|
11
|
+
};
|
|
12
|
+
/** Whether a page is the one for the addresses nothing answers in its place: its slug is `*`. */
|
|
13
|
+
export declare const isNotFoundPage: (attributes: Record<string, unknown> | undefined) => boolean;
|
|
14
|
+
/** The folder a page sits in — `''`, the space's top level. */
|
|
15
|
+
export declare const pageFolderOf: (attributes: Record<string, unknown> | undefined) => string;
|
|
16
|
+
/** The page that already answers what nothing else does in `folder` (`''`, the space) — other than `except` — if one does. */
|
|
17
|
+
export declare const notFoundPageIn: ({ flat, pages }: Pages, folder: string, except?: string) => string | undefined;
|
|
18
|
+
/** A page's name as a slug: `Not found` → `not-found`. */
|
|
19
|
+
export declare const slugOfName: (name: string) => string;
|
|
20
|
+
/**
|
|
21
|
+
* A slug for a page that stops being its place's 404, from its name, that no other page in its folder has —
|
|
22
|
+
* `not-found`, `not-found-2` —, so it keeps an address of its own rather than none.
|
|
23
|
+
*/
|
|
24
|
+
export declare const freeSlugFor: ({ flat, pages }: Pages, pageId: string) => string;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./routes.mjs";
|
|
2
|
+
// src/navigation/notFoundPages.ts
|
|
3
|
+
var e = (e) => typeof e == "string" ? e : "", t = (e) => e?.slug === "*", n = (t) => e(t?.folder), r = ({ flat: e, pages: r }, i, a) => r.find((r) => {
|
|
4
|
+
let o = e[r]?.attributes;
|
|
5
|
+
return r !== a && t(o) && n(o) === i;
|
|
6
|
+
}), i = (e) => e.trim().toLowerCase().replaceAll(/\s+/g, "-").replaceAll(/[^a-z0-9-]/g, "").replaceAll(/-+/g, "-").replaceAll(/^-|-$/g, ""), a = ({ flat: t, pages: r }, a) => {
|
|
7
|
+
let o = t[a]?.attributes, s = n(o), c = i(e(o?.name)) || "page", l = new Set(r.filter((e) => e !== a && n(t[e]?.attributes) === s).map((n) => e(t[n]?.attributes.slug))), u = c;
|
|
8
|
+
for (let e = 2; l.has(u); e += 1) u = `${c}-${String(e)}`;
|
|
9
|
+
return u;
|
|
10
|
+
};
|
|
11
|
+
export { a as freeSlugFor, t as isNotFoundPage, r as notFoundPageIn, n as pageFolderOf, i as slugOfName };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TSpaceCancelDeployMutation = {
|
|
2
|
+
canceled: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
};
|
|
5
|
+
/** Stops a deploy where it is; what it uploaded stays. */
|
|
6
|
+
declare const SpaceCancelDeployMutation = "\n mutation SpaceCancelDeployMutation($id: Int!) {\n SpaceCancelDeploy(id: $id)\n }\n";
|
|
7
|
+
export default SpaceCancelDeployMutation;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type TSpaceCancelScheduledPublishMutation = {
|
|
2
|
+
canceled: boolean;
|
|
3
|
+
};
|
|
4
|
+
/** A publish set for later, called off before it runs. */
|
|
5
|
+
declare const SpaceCancelScheduledPublishMutation = "\n mutation SpaceCancelScheduledPublishMutation($id: Int!) {\n SpaceCancelScheduledPublish(id: $id)\n }\n";
|
|
6
|
+
export default SpaceCancelScheduledPublishMutation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SpaceDeployment } from '../../../../../types';
|
|
2
2
|
export type TSpaceDeployMutation = SpaceDeployment;
|
|
3
|
-
declare const SpaceDeployMutation = "\n mutation SpaceDeployMutation($environment: String
|
|
3
|
+
declare const SpaceDeployMutation = "\n mutation SpaceDeployMutation(\n $environment: String!\n $domain: String!\n $revision: Int\n $credentialIdentifier: String\n $deploy: Boolean\n ) {\n SpaceDeploy(\n environment: $environment\n domain: $domain\n revision: $revision\n credentialIdentifier: $credentialIdentifier\n deploy: $deploy\n ) {\n id\n environment\n domain\n revision\n isVerified\n default\n mode\n provider\n deployId\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
4
4
|
export default SpaceDeployMutation;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// src/network/graphql/builder/Mutations/Space/SpaceDeployMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceDeployMutation($environment: String
|
|
2
|
+
var e = "\n mutation SpaceDeployMutation(\n $environment: String!\n $domain: String!\n $revision: Int\n $credentialIdentifier: String\n $deploy: Boolean\n ) {\n SpaceDeploy(\n environment: $environment\n domain: $domain\n revision: $revision\n credentialIdentifier: $credentialIdentifier\n deploy: $deploy\n ) {\n id\n environment\n domain\n revision\n isVerified\n default\n mode\n provider\n deployId\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
3
3
|
export { e as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SpaceDeploySummary } from '../../../../../types';
|
|
2
|
+
export type TSpaceRedeployMutation = SpaceDeploySummary;
|
|
3
|
+
/** Deploys again what a target serves — `redeploy` brings it to the newest versions. */
|
|
4
|
+
declare const SpaceRedeployMutation = "\n mutation SpaceRedeployMutation($domain: String!, $kind: String) {\n SpaceRedeploy(domain: $domain, kind: $kind)\n }\n";
|
|
5
|
+
export default SpaceRedeployMutation;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SpaceDeployment } from '../../../../../types';
|
|
2
|
+
export type TSpaceRollbackMutation = SpaceDeployment;
|
|
3
|
+
/** Rolls a domain back: to what it served right before its latest release, or the version named. */
|
|
4
|
+
declare const SpaceRollbackMutation = "\n mutation SpaceRollbackMutation($domain: String!, $environment: String, $revision: Int) {\n SpaceRollback(domain: $domain, environment: $environment, revision: $revision) {\n id\n environment\n domain\n revision\n isVerified\n default\n mode\n provider\n deployId\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
5
|
+
export default SpaceRollbackMutation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceRollbackMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceRollbackMutation($domain: String!, $environment: String, $revision: Int) {\n SpaceRollback(domain: $domain, environment: $environment, revision: $revision) {\n id\n environment\n domain\n revision\n isVerified\n default\n mode\n provider\n deployId\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SpaceScheduledPublish } from '../../../../../types';
|
|
2
|
+
export type TSpaceSchedulePublishMutation = Pick<SpaceScheduledPublish, 'id' | 'at' | 'status'>;
|
|
3
|
+
/** A publish set for later: at `at` (UTC seconds), with its deploy when it needs one. */
|
|
4
|
+
declare const SpaceSchedulePublishMutation = "\n mutation SpaceSchedulePublishMutation($domain: String!, $environment: String!, $revision: Int!, $at: Int!) {\n SpaceSchedulePublish(domain: $domain, environment: $environment, revision: $revision, at: $at)\n }\n";
|
|
5
|
+
export default SpaceSchedulePublishMutation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceSchedulePublishMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceSchedulePublishMutation($domain: String!, $environment: String!, $revision: Int!, $at: Int!) {\n SpaceSchedulePublish(domain: $domain, environment: $environment, revision: $revision, at: $at)\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeployMode, DeployProviderId } from '../../../../../types';
|
|
2
|
+
export type TSpaceSetTargetMutation = {
|
|
3
|
+
domain: string;
|
|
4
|
+
mode: DeployMode;
|
|
5
|
+
provider: 'ssr' | DeployProviderId;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/** How a domain serves the space: Plitzi's page servers, or a copy of the site on a provider. */
|
|
9
|
+
declare const SpaceSetTargetMutation = "\n mutation SpaceSetTargetMutation(\n $domain: String!\n $mode: String!\n $provider: String\n $config: Json\n $credential: String\n $bucket: Json\n ) {\n SpaceSetTarget(\n domain: $domain\n mode: $mode\n provider: $provider\n config: $config\n credential: $credential\n bucket: $bucket\n )\n }\n";
|
|
10
|
+
export default SpaceSetTargetMutation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceSetTargetMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceSetTargetMutation(\n $domain: String!\n $mode: String!\n $provider: String\n $config: Json\n $credential: String\n $bucket: Json\n ) {\n SpaceSetTarget(\n domain: $domain\n mode: $mode\n provider: $provider\n config: $config\n credential: $credential\n bucket: $bucket\n )\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TSpaceTargetAutomationMutation = {
|
|
2
|
+
protected?: boolean;
|
|
3
|
+
hook?: {
|
|
4
|
+
url: string;
|
|
5
|
+
} | {
|
|
6
|
+
removed: boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
/** A target protected, and its deploy hook made — its address answered this once — or removed. */
|
|
10
|
+
declare const SpaceTargetAutomationMutation = "\n mutation SpaceTargetAutomationMutation($domain: String!, $protected: Boolean, $hook: String) {\n SpaceTargetAutomation(domain: $domain, protected: $protected, hook: $hook)\n }\n";
|
|
11
|
+
export default SpaceTargetAutomationMutation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceTargetAutomationMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceTargetAutomationMutation($domain: String!, $protected: Boolean, $hook: String) {\n SpaceTargetAutomation(domain: $domain, protected: $protected, hook: $hook)\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -34,12 +34,19 @@ import { TSpaceAddResourceMutation } from './Space/resources/SpaceAddResourceMut
|
|
|
34
34
|
import { TSpaceMoveResourceMutation } from './Space/resources/SpaceMoveResourceMutation';
|
|
35
35
|
import { TSpaceRemoveResourceMutation } from './Space/resources/SpaceRemoveResourceMutation';
|
|
36
36
|
import { TSpaceAddPluginMutation } from './Space/SpaceAddPluginMutation';
|
|
37
|
+
import { TSpaceCancelDeployMutation } from './Space/SpaceCancelDeployMutation';
|
|
38
|
+
import { TSpaceCancelScheduledPublishMutation } from './Space/SpaceCancelScheduledPublishMutation';
|
|
37
39
|
import { TSpaceDeployMutation } from './Space/SpaceDeployMutation';
|
|
38
40
|
import { TSpaceFixIssuesMutation } from './Space/SpaceFixIssuesMutation';
|
|
39
41
|
import { TSpacePublishMutation } from './Space/SpacePublishMutation';
|
|
42
|
+
import { TSpaceRedeployMutation } from './Space/SpaceRedeployMutation';
|
|
40
43
|
import { TSpaceRenameElementMutation } from './Space/SpaceRenameElementMutation';
|
|
44
|
+
import { TSpaceRollbackMutation } from './Space/SpaceRollbackMutation';
|
|
41
45
|
import { TSpaceRunE2eTestsMutation } from './Space/SpaceRunE2eTestsMutation';
|
|
46
|
+
import { TSpaceSchedulePublishMutation } from './Space/SpaceSchedulePublishMutation';
|
|
47
|
+
import { TSpaceSetTargetMutation } from './Space/SpaceSetTargetMutation';
|
|
42
48
|
import { TSpaceSetTestsMutation } from './Space/SpaceSetTestsMutation';
|
|
49
|
+
import { TSpaceTargetAutomationMutation } from './Space/SpaceTargetAutomationMutation';
|
|
43
50
|
import { TSpaceUpdatePluginMutation } from './Space/SpaceUpdatePluginMutation';
|
|
44
51
|
export type BuilderMutationsMap = {
|
|
45
52
|
SpaceUpdate: unknown;
|
|
@@ -109,6 +116,13 @@ export type BuilderMutationsMap = {
|
|
|
109
116
|
SpacePublishFlags: TSpacePublishFlagsMutation;
|
|
110
117
|
SpaceFixIssues: TSpaceFixIssuesMutation;
|
|
111
118
|
SpaceDeploy: TSpaceDeployMutation;
|
|
119
|
+
SpaceRollback: TSpaceRollbackMutation;
|
|
120
|
+
SpaceRedeploy: TSpaceRedeployMutation;
|
|
121
|
+
SpaceCancelDeploy: TSpaceCancelDeployMutation;
|
|
122
|
+
SpaceSetTarget: TSpaceSetTargetMutation;
|
|
123
|
+
SpaceCancelScheduledPublish: TSpaceCancelScheduledPublishMutation;
|
|
124
|
+
SpaceSchedulePublish: TSpaceSchedulePublishMutation;
|
|
125
|
+
SpaceTargetAutomation: TSpaceTargetAutomationMutation;
|
|
112
126
|
SpaceUpdateSettings: unknown;
|
|
113
127
|
SpaceSetTests: TSpaceSetTestsMutation;
|
|
114
128
|
SpaceRunE2eTests: TSpaceRunE2eTestsMutation;
|
|
@@ -47,46 +47,53 @@ import G from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
|
47
47
|
import K from "./Space/SpaceAddElementMutation.mjs";
|
|
48
48
|
import q from "./Space/SpaceAddPluginMutation.mjs";
|
|
49
49
|
import J from "./Space/SpaceAddSnippetMutation.mjs";
|
|
50
|
-
import Y from "./Space/
|
|
51
|
-
import X from "./Space/
|
|
52
|
-
import Z from "./Space/
|
|
53
|
-
import Q from "./Space/
|
|
54
|
-
import $ from "./Space/
|
|
55
|
-
import ee from "./Space/
|
|
56
|
-
import te from "./Space/
|
|
57
|
-
import ne from "./Space/
|
|
58
|
-
import re from "./Space/
|
|
59
|
-
import ie from "./Space/
|
|
60
|
-
import ae from "./Space/
|
|
61
|
-
import oe from "./Space/
|
|
62
|
-
import se from "./Space/
|
|
63
|
-
import ce from "./Space/
|
|
64
|
-
import le from "./Space/
|
|
65
|
-
import ue from "./Space/
|
|
66
|
-
import de from "./Space/
|
|
67
|
-
import fe from "./Space/
|
|
68
|
-
import pe from "./Space/
|
|
69
|
-
import me from "./Space/
|
|
70
|
-
import he from "./Space/
|
|
71
|
-
import ge from "./
|
|
72
|
-
import _e from "./
|
|
73
|
-
import ve from "./
|
|
74
|
-
import ye from "./
|
|
75
|
-
import be from "./
|
|
76
|
-
import xe from "./
|
|
77
|
-
import Se from "./
|
|
78
|
-
import Ce from "./Style/
|
|
79
|
-
import we from "./Style/
|
|
80
|
-
import Te from "./Style/
|
|
81
|
-
import Ee from "./Style/
|
|
82
|
-
import De from "./Style/
|
|
83
|
-
import Oe from "./Style/
|
|
84
|
-
import ke from "./Style/
|
|
85
|
-
import Ae from "./Style/
|
|
50
|
+
import Y from "./Space/SpaceCancelDeployMutation.mjs";
|
|
51
|
+
import X from "./Space/SpaceCancelScheduledPublishMutation.mjs";
|
|
52
|
+
import Z from "./Space/SpaceCloneElementMutation.mjs";
|
|
53
|
+
import Q from "./Space/SpaceDeployMutation.mjs";
|
|
54
|
+
import $ from "./Space/SpaceFixIssuesMutation.mjs";
|
|
55
|
+
import ee from "./Space/SpaceMoveElementMutation.mjs";
|
|
56
|
+
import te from "./Space/SpacePublishMutation.mjs";
|
|
57
|
+
import ne from "./Space/SpaceRedeployMutation.mjs";
|
|
58
|
+
import re from "./Space/SpaceRemoveElementMutation.mjs";
|
|
59
|
+
import ie from "./Space/SpaceRemovePluginMutation.mjs";
|
|
60
|
+
import ae from "./Space/SpaceRenameElementMutation.mjs";
|
|
61
|
+
import oe from "./Space/SpaceRollbackMutation.mjs";
|
|
62
|
+
import se from "./Space/SpaceRunE2eTestsMutation.mjs";
|
|
63
|
+
import ce from "./Space/SpaceSchedulePublishMutation.mjs";
|
|
64
|
+
import le from "./Space/SpaceSetTargetMutation.mjs";
|
|
65
|
+
import ue from "./Space/SpaceSetTestsMutation.mjs";
|
|
66
|
+
import de from "./Space/SpaceTargetAutomationMutation.mjs";
|
|
67
|
+
import fe from "./Space/SpaceUpdateElementMutation.mjs";
|
|
68
|
+
import pe from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
69
|
+
import me from "./Space/SpaceUpdateMutation.mjs";
|
|
70
|
+
import he from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
71
|
+
import ge from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
72
|
+
import _e from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
73
|
+
import ve from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
74
|
+
import ye from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
75
|
+
import be from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
76
|
+
import xe from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
77
|
+
import Se from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
78
|
+
import Ce from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
79
|
+
import we from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
80
|
+
import Te from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
81
|
+
import Ee from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
82
|
+
import De from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
83
|
+
import Oe from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
84
|
+
import ke from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
85
|
+
import Ae from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
86
|
+
import je from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
87
|
+
import Me from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
88
|
+
import Ne from "./Style/StyleUpdateMutation.mjs";
|
|
89
|
+
import Pe from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
90
|
+
import Fe from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
91
|
+
import Ie from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
92
|
+
import Le from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
86
93
|
// src/network/graphql/builder/Mutations/index.ts
|
|
87
|
-
var
|
|
88
|
-
SpaceUpdate:
|
|
89
|
-
SpaceUpdateSchema:
|
|
94
|
+
var Re = {
|
|
95
|
+
SpaceUpdate: me,
|
|
96
|
+
SpaceUpdateSchema: ge,
|
|
90
97
|
SpaceAddPage: N,
|
|
91
98
|
SpaceHomePage: P,
|
|
92
99
|
SpaceUpdatePage: I,
|
|
@@ -94,26 +101,26 @@ var je = {
|
|
|
94
101
|
SpaceAddPageFolder: T,
|
|
95
102
|
SpaceUpdatePageFolder: D,
|
|
96
103
|
SpaceRemovePageFolder: E,
|
|
97
|
-
SpaceAddVariable:
|
|
98
|
-
SpaceUpdateVariable:
|
|
99
|
-
SpaceRemoveVariable:
|
|
104
|
+
SpaceAddVariable: ve,
|
|
105
|
+
SpaceUpdateVariable: be,
|
|
106
|
+
SpaceRemoveVariable: ye,
|
|
100
107
|
SpaceSetFlag: w,
|
|
101
108
|
SpaceRemoveFlag: C,
|
|
102
109
|
SpaceAddElement: K,
|
|
103
|
-
SpaceUpdateElement:
|
|
104
|
-
SpaceRenameElement:
|
|
105
|
-
SpaceUpdateElements:
|
|
106
|
-
SpaceRemoveElement:
|
|
107
|
-
SpaceMoveElement:
|
|
108
|
-
SpaceCloneElement:
|
|
110
|
+
SpaceUpdateElement: fe,
|
|
111
|
+
SpaceRenameElement: ae,
|
|
112
|
+
SpaceUpdateElements: pe,
|
|
113
|
+
SpaceRemoveElement: re,
|
|
114
|
+
SpaceMoveElement: ee,
|
|
115
|
+
SpaceCloneElement: Z,
|
|
109
116
|
SpaceAddComponent: d,
|
|
110
117
|
SpaceUpdateComponent: m,
|
|
111
118
|
SpaceRemoveComponent: p,
|
|
112
119
|
SpaceDetachInstance: f,
|
|
113
120
|
SpaceAddSnippet: J,
|
|
114
121
|
SpaceAddPlugin: q,
|
|
115
|
-
SpaceUpdatePlugin:
|
|
116
|
-
SpaceRemovePlugin:
|
|
122
|
+
SpaceUpdatePlugin: he,
|
|
123
|
+
SpaceRemovePlugin: ie,
|
|
117
124
|
SpaceAddResource: L,
|
|
118
125
|
SpaceMoveResource: R,
|
|
119
126
|
SpaceRemoveResource: z,
|
|
@@ -140,35 +147,42 @@ var je = {
|
|
|
140
147
|
SpaceAddCredential: v,
|
|
141
148
|
SpaceUpdateCredential: b,
|
|
142
149
|
SpaceRemoveCredential: y,
|
|
143
|
-
SpaceAddVisitor:
|
|
144
|
-
SpaceRemoveVisitor:
|
|
150
|
+
SpaceAddVisitor: xe,
|
|
151
|
+
SpaceRemoveVisitor: Se,
|
|
145
152
|
SpaceSetRuntimeVariable: U,
|
|
146
153
|
SpaceSetRuntimeSize: H,
|
|
147
154
|
SpaceStartRuntime: W,
|
|
148
155
|
SpaceStopRuntime: G,
|
|
149
156
|
SpaceRemoveRuntimeVariable: V,
|
|
150
157
|
SpaceRemoveRuntime: B,
|
|
151
|
-
SpacePublish:
|
|
158
|
+
SpacePublish: te,
|
|
152
159
|
SpacePublishFlags: S,
|
|
153
|
-
SpaceFixIssues:
|
|
154
|
-
SpaceDeploy:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
160
|
+
SpaceFixIssues: $,
|
|
161
|
+
SpaceDeploy: Q,
|
|
162
|
+
SpaceRollback: oe,
|
|
163
|
+
SpaceRedeploy: ne,
|
|
164
|
+
SpaceCancelDeploy: Y,
|
|
165
|
+
SpaceSetTarget: le,
|
|
166
|
+
SpaceCancelScheduledPublish: X,
|
|
167
|
+
SpaceSchedulePublish: ce,
|
|
168
|
+
SpaceTargetAutomation: de,
|
|
169
|
+
SpaceUpdateSettings: _e,
|
|
170
|
+
SpaceSetTests: ue,
|
|
171
|
+
SpaceRunE2eTests: se,
|
|
172
|
+
StyleAddSelector: Ee,
|
|
173
|
+
StyleUpdateSelector: ke,
|
|
174
|
+
StyleRemoveSelector: De,
|
|
175
|
+
StyleRemoveSelectors: Oe,
|
|
176
|
+
StyleAddSelectorVariable: Ae,
|
|
177
|
+
StyleUpdateSelectorVariable: Me,
|
|
178
|
+
StyleRemoveSelectorVariable: je,
|
|
179
|
+
StyleAddFont: Ce,
|
|
180
|
+
StyleUpdateFont: Te,
|
|
181
|
+
StyleRemoveFont: we,
|
|
182
|
+
StyleAddVariable: Fe,
|
|
183
|
+
StyleUpdateVariable: Le,
|
|
184
|
+
StyleRemoveVariable: Ie,
|
|
185
|
+
StyleUpdate: Ne,
|
|
186
|
+
StyleUpdateSettings: Pe
|
|
173
187
|
};
|
|
174
|
-
export {
|
|
188
|
+
export { Re as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceDeployDetail } from '../../../../../types';
|
|
2
|
+
export type TSpaceDeployDetailQuery = {
|
|
3
|
+
SpaceDeployDetail: SpaceDeployDetail;
|
|
4
|
+
};
|
|
5
|
+
/** One deploy with its log, read while it runs. */
|
|
6
|
+
declare const SpaceDeployDetailQuery = "\n query SpaceDeployDetailQuery($id: Int!) {\n SpaceDeployDetail(id: $id)\n }\n";
|
|
7
|
+
export default SpaceDeployDetailQuery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpacePublishCheck } from '../../../../../types';
|
|
2
|
+
export type TSpacePublishCheckQuery = {
|
|
3
|
+
SpacePublishCheck: SpacePublishCheck;
|
|
4
|
+
};
|
|
5
|
+
/** What publishing a revision on a domain would do — whether it needs a deploy, and why — before it does. */
|
|
6
|
+
declare const SpacePublishCheckQuery = "\n query SpacePublishCheckQuery($domain: String!, $environment: String!, $revision: Int) {\n SpacePublishCheck(domain: $domain, environment: $environment, revision: $revision)\n }\n";
|
|
7
|
+
export default SpacePublishCheckQuery;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Queries/Space/SpacePublishCheckQuery.ts
|
|
2
|
+
var e = "\n query SpacePublishCheckQuery($domain: String!, $environment: String!, $revision: Int) {\n SpacePublishCheck(domain: $domain, environment: $environment, revision: $revision)\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceReleases } from '../../../../../types';
|
|
2
|
+
export type TSpaceReleasesQuery = {
|
|
3
|
+
SpaceReleases: SpaceReleases;
|
|
4
|
+
};
|
|
5
|
+
/** A domain's releases, newest first, and the rollback they offer. */
|
|
6
|
+
declare const SpaceReleasesQuery = "\n query SpaceReleasesQuery($domain: String!, $limit: Int) {\n SpaceReleases(domain: $domain, limit: $limit) {\n releases {\n id\n domain\n environment\n revision\n followsLatest\n previous {\n environment\n revision\n }\n kind\n deployId\n by {\n id\n username\n }\n at\n }\n rollback {\n environment\n revision\n }\n }\n }\n";
|
|
7
|
+
export default SpaceReleasesQuery;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Queries/Space/SpaceReleasesQuery.ts
|
|
2
|
+
var e = "\n query SpaceReleasesQuery($domain: String!, $limit: Int) {\n SpaceReleases(domain: $domain, limit: $limit) {\n releases {\n id\n domain\n environment\n revision\n followsLatest\n previous {\n environment\n revision\n }\n kind\n deployId\n by {\n id\n username\n }\n at\n }\n rollback {\n environment\n revision\n }\n }\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceScheduledPublish } from '../../../../../types';
|
|
2
|
+
export type TSpaceScheduledPublishesQuery = {
|
|
3
|
+
SpaceScheduledPublishes: SpaceScheduledPublish[];
|
|
4
|
+
};
|
|
5
|
+
/** The space's publishes set for later, soonest first, and the ones that ran lately. */
|
|
6
|
+
declare const SpaceScheduledPublishesQuery = "\n query SpaceScheduledPublishesQuery {\n SpaceScheduledPublishes\n }\n";
|
|
7
|
+
export default SpaceScheduledPublishesQuery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceSnapshot } from '../../../../../types';
|
|
2
|
+
export type TSpaceSnapshotsQuery = {
|
|
3
|
+
SpaceSnapshots: SpaceSnapshot[];
|
|
4
|
+
};
|
|
5
|
+
/** The snapshots kept — an environment’s, or every one’s when none is named — newest first, with who made each, the domains serving it and its preview address. */
|
|
6
|
+
declare const SpaceSnapshotsQuery = "\n query SpaceSnapshotsQuery($environment: String, $limit: Int) {\n SpaceSnapshots(environment: $environment, limit: $limit) {\n environment\n revision\n description\n publishedAt\n by {\n id\n username\n }\n domains\n previewUrl\n }\n }\n";
|
|
7
|
+
export default SpaceSnapshotsQuery;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Queries/Space/SpaceSnapshotsQuery.ts
|
|
2
|
+
var e = "\n query SpaceSnapshotsQuery($environment: String, $limit: Int) {\n SpaceSnapshots(environment: $environment, limit: $limit) {\n environment\n revision\n description\n publishedAt\n by {\n id\n username\n }\n domains\n previewUrl\n }\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceTargets } from '../../../../../types';
|
|
2
|
+
export type TSpaceTargetsQuery = {
|
|
3
|
+
SpaceTargets: SpaceTargets;
|
|
4
|
+
};
|
|
5
|
+
/** The space's targets: how each domain serves it and where it stands, the providers, the plan's limits. */
|
|
6
|
+
declare const SpaceTargetsQuery = "\n query SpaceTargetsQuery {\n SpaceTargets\n }\n";
|
|
7
|
+
export default SpaceTargetsQuery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceVersionChanges } from '../../../../../types';
|
|
2
|
+
export type TSpaceVersionChangesQuery = {
|
|
3
|
+
SpaceVersionChanges: SpaceVersionChanges | null;
|
|
4
|
+
};
|
|
5
|
+
/** What changes going from one version to another; none when either is not there. */
|
|
6
|
+
declare const SpaceVersionChangesQuery = "\n query SpaceVersionChangesQuery(\n $fromEnvironment: String!\n $fromRevision: Int\n $toEnvironment: String!\n $toRevision: Int\n ) {\n SpaceVersionChanges(\n fromEnvironment: $fromEnvironment\n fromRevision: $fromRevision\n toEnvironment: $toEnvironment\n toRevision: $toRevision\n ) {\n pages {\n added\n removed\n changed\n }\n layouts\n components\n styles\n fonts\n settings\n plugins {\n added\n removed\n changed\n }\n actions\n connectors\n functions\n runtime\n total\n }\n }\n";
|
|
7
|
+
export default SpaceVersionChangesQuery;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/network/graphql/builder/Queries/Space/SpaceVersionChangesQuery.ts
|
|
2
|
+
var e = "\n query SpaceVersionChangesQuery(\n $fromEnvironment: String!\n $fromRevision: Int\n $toEnvironment: String!\n $toRevision: Int\n ) {\n SpaceVersionChanges(\n fromEnvironment: $fromEnvironment\n fromRevision: $fromRevision\n toEnvironment: $toEnvironment\n toRevision: $toRevision\n ) {\n pages {\n added\n removed\n changed\n }\n layouts\n components\n styles\n fonts\n settings\n plugins {\n added\n removed\n changed\n }\n actions\n connectors\n functions\n runtime\n total\n }\n }\n";
|
|
3
|
+
export { e as default };
|
|
@@ -8,15 +8,22 @@ import { TSpaceCheckActionQuery } from './Space/SpaceCheckActionQuery';
|
|
|
8
8
|
import { TSpaceConnectorsQuery } from './Space/SpaceConnectorsQuery';
|
|
9
9
|
import { TSpaceCredentialsQuery } from './Space/SpaceCredentialsQuery';
|
|
10
10
|
import { TSpaceDataQuery } from './Space/SpaceDataQuery';
|
|
11
|
+
import { TSpaceDeployDetailQuery } from './Space/SpaceDeployDetailQuery';
|
|
11
12
|
import { TSpaceDeploymentsQuery } from './Space/SpaceDeploymentsQuery';
|
|
12
13
|
import { TSpaceFunctionsQuery } from './Space/SpaceFunctionsQuery';
|
|
13
14
|
import { TSpaceIssuesQuery } from './Space/SpaceIssuesQuery';
|
|
14
15
|
import { TSpaceJobsQuery } from './Space/SpaceJobsQuery';
|
|
15
16
|
import { TSpaceLatestRevisionQuery } from './Space/SpaceLatestRevisionQuery';
|
|
17
|
+
import { TSpacePublishCheckQuery } from './Space/SpacePublishCheckQuery';
|
|
16
18
|
import { TSpaceQuotaQuery } from './Space/SpaceQuotaQuery';
|
|
19
|
+
import { TSpaceReleasesQuery } from './Space/SpaceReleasesQuery';
|
|
17
20
|
import { TSpaceResourcesQuery } from './Space/SpaceResourcesQuery';
|
|
18
21
|
import { TSpaceRuntimeQuery } from './Space/SpaceRuntimeQuery';
|
|
22
|
+
import { TSpaceScheduledPublishesQuery } from './Space/SpaceScheduledPublishesQuery';
|
|
23
|
+
import { TSpaceSnapshotsQuery } from './Space/SpaceSnapshotsQuery';
|
|
24
|
+
import { TSpaceTargetsQuery } from './Space/SpaceTargetsQuery';
|
|
19
25
|
import { TSpaceTestsQuery } from './Space/SpaceTestsQuery';
|
|
26
|
+
import { TSpaceVersionChangesQuery } from './Space/SpaceVersionChangesQuery';
|
|
20
27
|
import { TSpaceVersionContentsQuery } from './Space/SpaceVersionContentsQuery';
|
|
21
28
|
import { TSpaceVisitorsQuery } from './Space/SpaceVisitorsQuery';
|
|
22
29
|
export type { TQuotaPlane, TSpaceQuota } from './Space/SpaceQuotaQuery';
|
|
@@ -43,6 +50,13 @@ export type BuilderQueriesMap = {
|
|
|
43
50
|
SpaceConnectors: TSpaceConnectorsQuery;
|
|
44
51
|
SpaceCredentials: TSpaceCredentialsQuery;
|
|
45
52
|
SpaceVersionContents: TSpaceVersionContentsQuery;
|
|
53
|
+
SpaceVersionChanges: TSpaceVersionChangesQuery;
|
|
54
|
+
SpaceSnapshots: TSpaceSnapshotsQuery;
|
|
55
|
+
SpaceReleases: TSpaceReleasesQuery;
|
|
56
|
+
SpaceTargets: TSpaceTargetsQuery;
|
|
57
|
+
SpaceScheduledPublishes: TSpaceScheduledPublishesQuery;
|
|
58
|
+
SpacePublishCheck: TSpacePublishCheckQuery;
|
|
59
|
+
SpaceDeployDetail: TSpaceDeployDetailQuery;
|
|
46
60
|
SpaceVisitors: TSpaceVisitorsQuery;
|
|
47
61
|
SpaceRuntime: TSpaceRuntimeQuery;
|
|
48
62
|
};
|
|
@@ -8,39 +8,53 @@ import o from "./Space/SpaceCheckActionQuery.mjs";
|
|
|
8
8
|
import s from "./Space/SpaceConnectorsQuery.mjs";
|
|
9
9
|
import c from "./Space/SpaceCredentialsQuery.mjs";
|
|
10
10
|
import l from "./Space/SpaceDataQuery.mjs";
|
|
11
|
-
import u from "./Space/
|
|
12
|
-
import d from "./Space/
|
|
13
|
-
import f from "./Space/
|
|
14
|
-
import p from "./Space/
|
|
15
|
-
import m from "./Space/
|
|
16
|
-
import h from "./Space/
|
|
17
|
-
import g from "./Space/
|
|
18
|
-
import _ from "./Space/
|
|
19
|
-
import v from "./Space/
|
|
20
|
-
import y from "./Space/
|
|
21
|
-
import b from "./Space/
|
|
11
|
+
import u from "./Space/SpaceDeployDetailQuery.mjs";
|
|
12
|
+
import d from "./Space/SpaceDeploymentsQuery.mjs";
|
|
13
|
+
import f from "./Space/SpaceFunctionsQuery.mjs";
|
|
14
|
+
import p from "./Space/SpaceIssuesQuery.mjs";
|
|
15
|
+
import m from "./Space/SpaceJobsQuery.mjs";
|
|
16
|
+
import h from "./Space/SpaceLatestRevisionQuery.mjs";
|
|
17
|
+
import g from "./Space/SpacePublishCheckQuery.mjs";
|
|
18
|
+
import _ from "./Space/SpaceQuotaQuery.mjs";
|
|
19
|
+
import v from "./Space/SpaceReleasesQuery.mjs";
|
|
20
|
+
import y from "./Space/SpaceResourcesQuery.mjs";
|
|
21
|
+
import b from "./Space/SpaceRuntimeQuery.mjs";
|
|
22
|
+
import x from "./Space/SpaceScheduledPublishesQuery.mjs";
|
|
23
|
+
import S from "./Space/SpaceSnapshotsQuery.mjs";
|
|
24
|
+
import C from "./Space/SpaceTargetsQuery.mjs";
|
|
25
|
+
import w from "./Space/SpaceTestsQuery.mjs";
|
|
26
|
+
import T from "./Space/SpaceVersionChangesQuery.mjs";
|
|
27
|
+
import E from "./Space/SpaceVersionContentsQuery.mjs";
|
|
28
|
+
import D from "./Space/SpaceVisitorsQuery.mjs";
|
|
22
29
|
// src/network/graphql/builder/Queries/index.ts
|
|
23
|
-
var
|
|
30
|
+
var O = {
|
|
24
31
|
Init: e,
|
|
25
|
-
SpaceLatestRevision:
|
|
26
|
-
SpaceQuota:
|
|
27
|
-
SpaceIssues:
|
|
28
|
-
SpaceTests:
|
|
32
|
+
SpaceLatestRevision: h,
|
|
33
|
+
SpaceQuota: _,
|
|
34
|
+
SpaceIssues: p,
|
|
35
|
+
SpaceTests: w,
|
|
29
36
|
SpaceChanges: a,
|
|
30
|
-
SpaceResources:
|
|
31
|
-
SpaceDeployments:
|
|
37
|
+
SpaceResources: y,
|
|
38
|
+
SpaceDeployments: d,
|
|
32
39
|
SpaceCdns: i,
|
|
33
40
|
SpaceActions: n,
|
|
34
41
|
SpaceActionEvents: t,
|
|
35
42
|
SpaceCheckAction: o,
|
|
36
43
|
SpaceActionTasks: r,
|
|
37
44
|
SpaceData: l,
|
|
38
|
-
SpaceFunctions:
|
|
39
|
-
SpaceJobs:
|
|
45
|
+
SpaceFunctions: f,
|
|
46
|
+
SpaceJobs: m,
|
|
40
47
|
SpaceConnectors: s,
|
|
41
48
|
SpaceCredentials: c,
|
|
42
|
-
SpaceVersionContents:
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
SpaceVersionContents: E,
|
|
50
|
+
SpaceVersionChanges: T,
|
|
51
|
+
SpaceSnapshots: S,
|
|
52
|
+
SpaceReleases: v,
|
|
53
|
+
SpaceTargets: C,
|
|
54
|
+
SpaceScheduledPublishes: x,
|
|
55
|
+
SpacePublishCheck: g,
|
|
56
|
+
SpaceDeployDetail: u,
|
|
57
|
+
SpaceVisitors: D,
|
|
58
|
+
SpaceRuntime: b
|
|
45
59
|
};
|
|
46
|
-
export {
|
|
60
|
+
export { O as default };
|