@plitzi/sdk-shared 0.39.3 → 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 +18 -0
- package/dist/clients/index.d.ts +60 -0
- package/dist/clients/index.mjs +47 -0
- package/dist/conditions/types.d.ts +1 -1
- 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/csrf/csrf.d.ts +36 -0
- package/dist/csrf/csrf.mjs +62 -0
- package/dist/csrf/index.d.ts +2 -0
- package/dist/csrf/index.mjs +1 -0
- package/dist/helpers/deepEqual/deepEqual.mjs +3 -2
- package/dist/helpers/lodash/cloneDeep.d.ts +3 -3
- package/dist/helpers/lodash/cloneDeep.mjs +24 -27
- package/dist/helpers/lodash/has.d.ts +2 -1
- package/dist/helpers/lodash/has.mjs +8 -8
- package/dist/helpers/lodash/index.d.ts +1 -1
- package/dist/helpers/lodash/omit.mjs +2 -2
- package/dist/helpers/twigWrapper/charClass.mjs +21 -16
- package/dist/helpers/twigWrapper/filters/arrays.mjs +43 -42
- package/dist/helpers/twigWrapper/filters/filters.mjs +3 -3
- package/dist/helpers/twigWrapper/filters/index.mjs +4 -4
- package/dist/helpers/twigWrapper/filters/misc.mjs +14 -13
- package/dist/helpers/twigWrapper/filters/objects.mjs +50 -49
- package/dist/helpers/twigWrapper/filters/strings.mjs +41 -40
- package/dist/helpers/twigWrapper/filters/types.d.ts +4 -0
- package/dist/helpers/twigWrapper/filters/types.mjs +2 -2
- 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 +2 -1
- package/dist/navigation/index.mjs +4 -3
- package/dist/navigation/notFoundPages.d.ts +25 -0
- package/dist/navigation/notFoundPages.mjs +11 -0
- package/dist/navigation/routes.d.ts +2 -0
- package/dist/navigation/routes.mjs +2 -1
- package/dist/navigation/sitemap.d.ts +8 -0
- package/dist/navigation/sitemap.mjs +7 -4
- 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/react/index.d.ts +1 -1
- package/dist/refusals/index.d.ts +112 -0
- package/dist/refusals/index.mjs +94 -0
- package/dist/schema/aiCrawlers.d.ts +25 -0
- package/dist/schema/aiCrawlers.mjs +34 -0
- package/dist/schema/documentParts.d.ts +45 -0
- package/dist/schema/documentParts.mjs +73 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.mjs +21 -18
- package/dist/schema/pageAccess.d.ts +6 -0
- package/dist/schema/pageAccess.mjs +23 -23
- package/dist/schema/plitziMark.d.ts +9 -0
- package/dist/schema/plitziMark.mjs +3 -0
- package/dist/schema/schemaSettings.d.ts +1 -1
- package/dist/schema/schemaSettings.mjs +1 -1
- package/dist/schema/serverElements.d.ts +5 -0
- package/dist/store/runtimeStatePersist.mjs +10 -10
- package/dist/store/storeHooks.d.ts +45 -45
- package/dist/style/runtimeStyle.d.ts +5 -2
- package/dist/style/runtimeStyle.mjs +1 -1
- package/dist/types/ActionTypes.d.ts +2 -0
- package/dist/types/AuthTypes.d.ts +5 -0
- package/dist/types/SchemaTypes.d.ts +31 -4
- package/dist/types/ServerTypes.d.ts +6 -0
- package/dist/types/SpaceTypes.d.ts +277 -6
- package/dist/types/StoreTypes.d.ts +11 -0
- package/eslint.config.mjs +123 -100
- package/package.json +9 -13
|
@@ -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 };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What sdk-shared offers code that renders with React: a context that is one across every copy of the SDK a page loads
|
|
3
3
|
* (`sharedContext`), the facade a plugin's element is drawn through, and whether a space is drawn inside another. Apart
|
|
4
|
-
* from `/helpers`, which a server loads: nothing there reaches React (
|
|
4
|
+
* from `/helpers`, which a server loads: nothing there reaches React (docs/en/server-packages.md, D13).
|
|
5
5
|
*/
|
|
6
6
|
export * from './sharedContext';
|
|
7
7
|
export * from './generateFacade';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a command of the CLI or a tool of the MCP did not do what it was asked — one list for both, each code with what
|
|
3
|
+
* it means and what to do next. A refusal is raised with a code of this list (`fail` in the CLI, `fail` in the MCP's
|
|
4
|
+
* operations), so a new one cannot leave out its next step: the code carries it. `plitzi explain <code>` answers each,
|
|
5
|
+
* and `docs/en/refusals.md` is written from this table.
|
|
6
|
+
*
|
|
7
|
+
* A run's own refusals (a task claimed, a run stopping…) are the harness's, with exit codes of their own
|
|
8
|
+
* (`REFUSAL_EXIT_CODES` in the CLI); what a space's document is refused for is authoring's (`AUTHORING_CODES`).
|
|
9
|
+
*/
|
|
10
|
+
/** The surfaces a code is raised by: the CLI's commands, the MCP's tools. */
|
|
11
|
+
export type RefusalSurface = 'cli' | 'mcp';
|
|
12
|
+
export type RefusalEntry = {
|
|
13
|
+
/** What was wrong, in a line. */
|
|
14
|
+
means: string;
|
|
15
|
+
/** What to do next — a step, never a description. Printed with the refusal when its message names no other. */
|
|
16
|
+
next: string;
|
|
17
|
+
surfaces: readonly RefusalSurface[];
|
|
18
|
+
};
|
|
19
|
+
export declare const REFUSALS: {
|
|
20
|
+
'wrong-options': {
|
|
21
|
+
means: string;
|
|
22
|
+
next: string;
|
|
23
|
+
surfaces: ("mcp" | "cli")[];
|
|
24
|
+
};
|
|
25
|
+
'bad-value': {
|
|
26
|
+
means: string;
|
|
27
|
+
next: string;
|
|
28
|
+
surfaces: ("mcp" | "cli")[];
|
|
29
|
+
};
|
|
30
|
+
'not-a-project': {
|
|
31
|
+
means: string;
|
|
32
|
+
next: string;
|
|
33
|
+
surfaces: "cli"[];
|
|
34
|
+
};
|
|
35
|
+
'old-layout': {
|
|
36
|
+
means: string;
|
|
37
|
+
next: string;
|
|
38
|
+
surfaces: "cli"[];
|
|
39
|
+
};
|
|
40
|
+
missing: {
|
|
41
|
+
means: string;
|
|
42
|
+
next: string;
|
|
43
|
+
surfaces: ("mcp" | "cli")[];
|
|
44
|
+
};
|
|
45
|
+
exists: {
|
|
46
|
+
means: string;
|
|
47
|
+
next: string;
|
|
48
|
+
surfaces: ("mcp" | "cli")[];
|
|
49
|
+
};
|
|
50
|
+
unreadable: {
|
|
51
|
+
means: string;
|
|
52
|
+
next: string;
|
|
53
|
+
surfaces: "cli"[];
|
|
54
|
+
};
|
|
55
|
+
'does-not-build': {
|
|
56
|
+
means: string;
|
|
57
|
+
next: string;
|
|
58
|
+
surfaces: "cli"[];
|
|
59
|
+
};
|
|
60
|
+
'signed-out': {
|
|
61
|
+
means: string;
|
|
62
|
+
next: string;
|
|
63
|
+
surfaces: "cli"[];
|
|
64
|
+
};
|
|
65
|
+
'not-allowed': {
|
|
66
|
+
means: string;
|
|
67
|
+
next: string;
|
|
68
|
+
surfaces: ("mcp" | "cli")[];
|
|
69
|
+
};
|
|
70
|
+
'refused-by-platform': {
|
|
71
|
+
means: string;
|
|
72
|
+
next: string;
|
|
73
|
+
surfaces: "cli"[];
|
|
74
|
+
};
|
|
75
|
+
'changed-since': {
|
|
76
|
+
means: string;
|
|
77
|
+
next: string;
|
|
78
|
+
surfaces: ("mcp" | "cli")[];
|
|
79
|
+
};
|
|
80
|
+
unanswered: {
|
|
81
|
+
means: string;
|
|
82
|
+
next: string;
|
|
83
|
+
surfaces: ("mcp" | "cli")[];
|
|
84
|
+
};
|
|
85
|
+
'nobody-to-ask': {
|
|
86
|
+
means: string;
|
|
87
|
+
next: string;
|
|
88
|
+
surfaces: "cli"[];
|
|
89
|
+
};
|
|
90
|
+
'in-use': {
|
|
91
|
+
means: string;
|
|
92
|
+
next: string;
|
|
93
|
+
surfaces: ("mcp" | "cli")[];
|
|
94
|
+
};
|
|
95
|
+
outdated: {
|
|
96
|
+
means: string;
|
|
97
|
+
next: string;
|
|
98
|
+
surfaces: "cli"[];
|
|
99
|
+
};
|
|
100
|
+
repeated: {
|
|
101
|
+
means: string;
|
|
102
|
+
next: string;
|
|
103
|
+
surfaces: "mcp"[];
|
|
104
|
+
};
|
|
105
|
+
failed: {
|
|
106
|
+
means: string;
|
|
107
|
+
next: string;
|
|
108
|
+
surfaces: "cli"[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export type RefusalCode = keyof typeof REFUSALS;
|
|
112
|
+
export declare const isRefusalCode: (name: string) => name is RefusalCode;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// src/refusals/index.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"wrong-options": {
|
|
4
|
+
means: "options given together that do not go together, or one given without the one it needs",
|
|
5
|
+
next: "change the options as the message says; the command’s --help lists what each takes",
|
|
6
|
+
surfaces: ["cli", "mcp"]
|
|
7
|
+
},
|
|
8
|
+
"bad-value": {
|
|
9
|
+
means: "a value an option, an argument or a field does not take: not an address, not one of a list, not JSON",
|
|
10
|
+
next: "write one of the values the message names, in the shape it shows",
|
|
11
|
+
surfaces: ["cli", "mcp"]
|
|
12
|
+
},
|
|
13
|
+
"not-a-project": {
|
|
14
|
+
means: "the command works on a project, and the folder it ran in is not one of the kind it needs",
|
|
15
|
+
next: "run it in the project’s folder: plitzi create makes one, and plitzi doctor says what a project lacks",
|
|
16
|
+
surfaces: ["cli"]
|
|
17
|
+
},
|
|
18
|
+
"old-layout": {
|
|
19
|
+
means: "the project is laid out as an older CLI left it, and this command would write it for another layout",
|
|
20
|
+
next: "run plitzi doctor --fix, which moves it with every import, then the command again",
|
|
21
|
+
surfaces: ["cli"]
|
|
22
|
+
},
|
|
23
|
+
missing: {
|
|
24
|
+
means: "what the call names is not there: a file, an element, a page, a task, a bucket",
|
|
25
|
+
next: "name one that is: the message lists them, or says where they are listed",
|
|
26
|
+
surfaces: ["cli", "mcp"]
|
|
27
|
+
},
|
|
28
|
+
exists: {
|
|
29
|
+
means: "the place it would write already holds something it would replace",
|
|
30
|
+
next: "choose another name or place; --force replaces it, where the command takes it and the person agrees",
|
|
31
|
+
surfaces: ["cli", "mcp"]
|
|
32
|
+
},
|
|
33
|
+
unreadable: {
|
|
34
|
+
means: "a file or an answer that could not be read as what the command takes",
|
|
35
|
+
next: "check the path, and that the file is what the message says it should be",
|
|
36
|
+
surfaces: ["cli"]
|
|
37
|
+
},
|
|
38
|
+
"does-not-build": {
|
|
39
|
+
means: "what was to be built, packed or installed did not build: its own words are in the message",
|
|
40
|
+
next: "fix what the build says, then run the command again",
|
|
41
|
+
surfaces: ["cli"]
|
|
42
|
+
},
|
|
43
|
+
"signed-out": {
|
|
44
|
+
means: "no session for the platform, or one it no longer takes",
|
|
45
|
+
next: "sign in with plitzi login, then run the command again",
|
|
46
|
+
surfaces: ["cli"]
|
|
47
|
+
},
|
|
48
|
+
"not-allowed": {
|
|
49
|
+
means: "what was asked is not this account’s, this plan’s or this surface’s to do",
|
|
50
|
+
next: "do it where the message says it is done, or ask a person whose role or plan allows it",
|
|
51
|
+
surfaces: ["cli", "mcp"]
|
|
52
|
+
},
|
|
53
|
+
"refused-by-platform": {
|
|
54
|
+
means: "the platform refused what was sent, in its own words",
|
|
55
|
+
next: "do what the platform’s words say; when they name no fix, plitzi doctor checks the connection and the project",
|
|
56
|
+
surfaces: ["cli"]
|
|
57
|
+
},
|
|
58
|
+
"changed-since": {
|
|
59
|
+
means: "what is there changed since this copy last had it, and sending would replace that change",
|
|
60
|
+
next: "pull first (plitzi space pull) — over the MCP, read it again — apply your change on what it brings, and send it again",
|
|
61
|
+
surfaces: ["cli", "mcp"]
|
|
62
|
+
},
|
|
63
|
+
unanswered: {
|
|
64
|
+
means: "nothing answered: a server not running, an address nothing serves, a browser that did not start",
|
|
65
|
+
next: "start what the message names (npm start, plitzi server) or install it (plitzi browser install); plitzi doctor checks the machine",
|
|
66
|
+
surfaces: ["cli", "mcp"]
|
|
67
|
+
},
|
|
68
|
+
"nobody-to-ask": {
|
|
69
|
+
means: "a choice that belongs to a person, and nobody is at the terminal to make it",
|
|
70
|
+
next: "ask the person each question the message lists, then run the command again with their answers",
|
|
71
|
+
surfaces: ["cli"]
|
|
72
|
+
},
|
|
73
|
+
"in-use": {
|
|
74
|
+
means: "what would be removed or changed is still used, or still running",
|
|
75
|
+
next: "stop or repoint what uses it first: the message names each",
|
|
76
|
+
surfaces: ["cli", "mcp"]
|
|
77
|
+
},
|
|
78
|
+
outdated: {
|
|
79
|
+
means: "this client is older than the oldest the platform takes",
|
|
80
|
+
next: "in a project, plitzi upgrade packages (the CLI is one of them); elsewhere, npx @plitzi/cli@latest — then run the command again",
|
|
81
|
+
surfaces: ["cli"]
|
|
82
|
+
},
|
|
83
|
+
repeated: {
|
|
84
|
+
means: "the same call was refused twice before and was not run again: the answer would not change",
|
|
85
|
+
next: "change what the errors named — plitzi_describe_operation gives an operation’s fields — or ask the person what they meant",
|
|
86
|
+
surfaces: ["mcp"]
|
|
87
|
+
},
|
|
88
|
+
failed: {
|
|
89
|
+
means: "what the command ran failed on its own: a task, a step, an install",
|
|
90
|
+
next: "read the failure the message carries, fix it in the project, and run the command again",
|
|
91
|
+
surfaces: ["cli"]
|
|
92
|
+
}
|
|
93
|
+
}, t = (t) => Object.hasOwn(e, t);
|
|
94
|
+
export { e as REFUSALS, t as isRefusalCode };
|