@plitzi/sdk-shared 0.38.24 → 0.39.1
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 +153 -1
- package/dist/actions/functions.d.ts +22 -1
- package/dist/actions/functions.mjs +3 -3
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.mjs +7 -7
- package/dist/auth/failureChannel.mjs +1 -0
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.mjs +2 -2
- package/dist/auth/visitorRoles.d.ts +8 -0
- package/dist/auth/visitorRoles.mjs +5 -2
- package/dist/authoring/declare.d.ts +34 -1
- package/dist/authoring/elementCallbacks.d.ts +13 -0
- package/dist/authoring/elementCallbacks.mjs +11 -5
- package/dist/authoring/index.mjs +3 -3
- package/dist/authoring/paramSpec.d.ts +1 -0
- package/dist/dataSource/getBindingsDetails.d.ts +1 -1
- package/dist/dataSource/getBindingsDetails.mjs +1 -1
- package/dist/dataSource/globalSources.d.ts +1 -1
- package/dist/dataSource/index.d.ts +1 -2
- package/dist/dataSource/index.mjs +1 -1
- package/dist/dataSource/utility/arrayMap.mjs +1 -1
- package/dist/dataSource/utility/capitalize.mjs +1 -1
- package/dist/dataSource/utility/styleSelector.mjs +5 -3
- package/dist/dataSource/utility/styleVariant.mjs +17 -13
- package/dist/dataSource/variables/index.d.ts +2 -0
- package/dist/dataSource/variables/index.mjs +1 -0
- package/dist/dataSource/{resolveVariables.d.ts → variables/resolveVariables.d.ts} +1 -1
- package/dist/dataSource/{resolveVariables.mjs → variables/resolveVariables.mjs} +1 -1
- package/dist/devTools/chrome.d.ts +6 -0
- package/dist/devTools/chrome.mjs +2 -2
- package/dist/devTools/index.mjs +5 -5
- package/dist/devTools/sight/index.d.ts +1 -0
- package/dist/devTools/sight/index.mjs +1 -0
- package/dist/devTools/sight/sight.d.ts +28 -0
- package/dist/devTools/sight/sight.mjs +127 -0
- package/dist/devTools/utils/PlitziConsole.d.ts +14 -0
- package/dist/devTools/utils/PlitziConsole.mjs +20 -3
- package/dist/flags/flagsCookie.mjs +4 -4
- package/dist/flags/resolveFlags.d.ts +1 -1
- package/dist/helpers/index.mjs +19 -19
- package/dist/helpers/ruleEvaluator.d.ts +2 -0
- package/dist/helpers/ruleEvaluator.mjs +2 -2
- package/dist/helpers/scroll.d.ts +10 -0
- package/dist/helpers/scroll.mjs +2 -2
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +90 -88
- package/dist/helpers/twigWrapper/Evaluator/helpers.d.ts +6 -0
- package/dist/helpers/twigWrapper/Evaluator/helpers.mjs +11 -2
- package/dist/helpers/twigWrapper/filters/arrays.d.ts +2 -0
- package/dist/helpers/twigWrapper/filters/arrays.mjs +66 -0
- package/dist/helpers/twigWrapper/filters/catalog/index.d.ts +17 -0
- package/dist/helpers/twigWrapper/filters/catalog/index.mjs +351 -0
- package/dist/helpers/twigWrapper/filters/dateParts.d.ts +25 -0
- package/dist/helpers/twigWrapper/filters/dateParts.mjs +56 -0
- package/dist/helpers/twigWrapper/filters/dates.d.ts +2 -0
- package/dist/helpers/twigWrapper/filters/dates.mjs +97 -0
- package/dist/helpers/twigWrapper/filters/filters.d.ts +3 -13
- package/dist/helpers/twigWrapper/filters/filters.mjs +25 -483
- package/dist/helpers/twigWrapper/filters/hashing.d.ts +3 -0
- package/dist/helpers/twigWrapper/filters/hashing.mjs +101 -0
- package/dist/helpers/twigWrapper/filters/index.mjs +4 -1
- package/dist/helpers/twigWrapper/filters/misc.d.ts +5 -0
- package/dist/helpers/twigWrapper/filters/misc.mjs +52 -0
- package/dist/helpers/twigWrapper/filters/numbers.d.ts +2 -0
- package/dist/helpers/twigWrapper/filters/numbers.mjs +36 -0
- package/dist/helpers/twigWrapper/filters/objects.d.ts +3 -0
- package/dist/helpers/twigWrapper/filters/objects.mjs +61 -0
- package/dist/helpers/twigWrapper/filters/raw.d.ts +8 -0
- package/dist/helpers/twigWrapper/filters/raw.mjs +7 -0
- package/dist/helpers/twigWrapper/filters/strings.d.ts +7 -0
- package/dist/helpers/twigWrapper/filters/strings.mjs +79 -0
- package/dist/helpers/twigWrapper/filters/types.d.ts +5 -0
- package/dist/helpers/twigWrapper/filters/types.mjs +4 -0
- package/dist/helpers/twigWrapper/filters/values.d.ts +12 -0
- package/dist/helpers/twigWrapper/filters/values.mjs +17 -0
- package/dist/helpers/twigWrapper/inspectTemplate.d.ts +5 -0
- package/dist/helpers/twigWrapper/inspectTemplate.mjs +39 -20
- package/dist/helpers/utils.d.ts +4 -0
- package/dist/helpers/utils.mjs +3 -5
- package/dist/navigation/index.d.ts +2 -0
- package/dist/navigation/index.mjs +2 -1
- package/dist/navigation/sitemap.d.ts +16 -0
- package/dist/navigation/sitemap.mjs +25 -0
- package/dist/network/entitlements.d.ts +101 -0
- package/dist/network/entitlements.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRunE2eTestsMutation.d.ts +31 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRunE2eTestsMutation.mjs +13 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSetTestsMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceSetTestsMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/index.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +150 -146
- package/dist/network/graphql/builder/Queries/Space/SpaceTestsQuery.d.ts +40 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceTestsQuery.mjs +24 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +3 -0
- package/dist/network/graphql/builder/Queries/index.mjs +44 -42
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +3 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +1 -1
- package/dist/network/index.d.ts +1 -0
- package/dist/network/index.mjs +9 -8
- package/dist/network/spaceEvents.d.ts +20 -1
- package/dist/network/spaceEvents.mjs +12 -0
- package/dist/project/index.mjs +8 -5
- package/dist/project/layout/check.d.ts +22 -0
- package/dist/project/layout/check.mjs +60 -0
- package/dist/project/{layout.d.ts → layout/codes.d.ts} +3 -66
- package/dist/project/layout/codes.mjs +108 -0
- package/dist/project/layout/contents.d.ts +10 -0
- package/dist/project/layout/contents.mjs +31 -0
- package/dist/project/layout/files.d.ts +31 -0
- package/dist/project/layout/files.mjs +49 -0
- package/dist/project/layout/folders.d.ts +4 -0
- package/dist/project/layout/folders.mjs +69 -0
- package/dist/project/layout/index.d.ts +16 -0
- package/dist/project/layout/index.mjs +5 -0
- package/dist/project/layout/plugins.d.ts +46 -0
- package/dist/project/layout/plugins.mjs +99 -0
- package/dist/project/layout/vendor.d.ts +15 -0
- package/dist/project/layout/vendor.mjs +34 -0
- package/dist/project/pages/index.d.ts +8 -0
- package/dist/project/pages/index.mjs +14 -0
- package/dist/project/paths/index.d.ts +52 -4
- package/dist/project/paths/index.mjs +2 -2
- package/dist/project/root.d.ts +6 -0
- package/dist/project/root.mjs +11 -10
- package/dist/realtime/client.mjs +104 -91
- package/dist/realtime/presence.d.ts +2 -2
- package/dist/realtime/presence.mjs +27 -21
- package/dist/runs/index.d.ts +73 -0
- package/dist/runs/index.mjs +6 -0
- package/dist/runs/report.d.ts +56 -0
- package/dist/runs/report.mjs +17 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.mjs +18 -12
- package/dist/schema/motion.d.ts +25 -0
- package/dist/schema/motion.mjs +47 -19
- package/dist/schema/pageAccess.d.ts +6 -0
- package/dist/schema/pageAccess.mjs +8 -3
- package/dist/schema/pageHead.d.ts +64 -0
- package/dist/schema/pageHead.mjs +68 -0
- package/dist/schema/providerAnswer.d.ts +17 -0
- package/dist/schema/providerAnswer.mjs +4 -0
- package/dist/schema/providerWhen.d.ts +36 -0
- package/dist/schema/providerWhen.mjs +58 -0
- package/dist/schema/schemaSettings.d.ts +14 -0
- package/dist/schema/schemaSettings.mjs +4 -0
- package/dist/schema/serverElements.d.ts +20 -1
- package/dist/schema/serverElements.mjs +41 -28
- package/dist/schema/serverInput.d.ts +34 -0
- package/dist/schema/serverInput.mjs +60 -0
- package/dist/schema/serverQuery.d.ts +47 -0
- package/dist/schema/serverQuery.mjs +70 -0
- package/dist/server/index.mjs +5 -5
- package/dist/server/rsc/refreshRsc.d.ts +6 -2
- package/dist/server/rsc/refreshRsc.mjs +75 -59
- package/dist/server/rsc/useRscSync.mjs +22 -18
- package/dist/source/export.d.ts +1 -1
- package/dist/state/index.mjs +3 -3
- package/dist/state/paintedState.d.ts +20 -4
- package/dist/state/paintedState.mjs +13 -12
- package/dist/state/runtimeStatePersist.mjs +109 -48
- package/dist/store/renderSettings.d.ts +2 -0
- package/dist/store/renderSettings.mjs +13 -5
- package/dist/store/storeHooks.d.ts +45 -45
- package/dist/style/index.mjs +16 -16
- package/dist/style/styleConstants.d.ts +12 -2
- package/dist/style/styleConstants.mjs +20 -0
- package/dist/style/styleStates.d.ts +5 -0
- package/dist/style/styleStates.mjs +21 -5
- package/dist/types/ActionTypes.d.ts +26 -3
- package/dist/types/AuthTypes.d.ts +19 -1
- package/dist/types/CommonTypes.d.ts +3 -2
- package/dist/types/ElementTypes.d.ts +1 -1
- package/dist/types/InteractionTypes.d.ts +10 -1
- package/dist/types/JobTypes.d.ts +2 -1
- package/dist/types/OAuthTypes.d.ts +246 -0
- package/dist/types/OAuthTypes.mjs +0 -0
- package/dist/types/PluginTypes.d.ts +2 -0
- package/dist/types/PreviewTypes.d.ts +71 -0
- package/dist/types/PreviewTypes.mjs +0 -0
- package/dist/types/RealtimeTypes.d.ts +11 -0
- package/dist/types/SchemaTypes.d.ts +63 -0
- package/dist/types/ServerAdapterTypes.d.ts +345 -0
- package/dist/types/ServerAdapterTypes.mjs +0 -0
- package/dist/types/ServerConfigTypes.d.ts +527 -0
- package/dist/types/ServerConfigTypes.mjs +0 -0
- package/dist/types/ServerLogTypes.d.ts +119 -0
- package/dist/types/ServerLogTypes.mjs +0 -0
- package/dist/types/ServerTypes.d.ts +30 -1215
- package/dist/types/StoreTypes.d.ts +39 -1
- package/dist/types/TestTypes.d.ts +249 -0
- package/dist/types/TestTypes.mjs +0 -0
- package/dist/types/index.d.ts +6 -0
- package/eslint.config.mjs +3 -1
- package/package.json +2 -2
- package/setupTests.ts +4 -3
- package/dist/project/layout.mjs +0 -394
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const SpaceUpdateSettingsMutation = "\n mutation SpaceUpdateSettingsMutation($environment: String!, $value: Json
|
|
1
|
+
declare const SpaceUpdateSettingsMutation = "\n mutation SpaceUpdateSettingsMutation($environment: String!, $value: Json, $path: String) {\n SpaceUpdateSettings(environment: $environment, value: $value, path: $path) {\n settings\n }\n }\n";
|
|
2
2
|
export default SpaceUpdateSettingsMutation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceUpdateSettingsMutation($environment: String!, $value: Json
|
|
2
|
+
var e = "\n mutation SpaceUpdateSettingsMutation($environment: String!, $value: Json, $path: String) {\n SpaceUpdateSettings(environment: $environment, value: $value, path: $path) {\n settings\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -38,6 +38,8 @@ import { TSpaceDeployMutation } from './Space/SpaceDeployMutation';
|
|
|
38
38
|
import { TSpaceFixIssuesMutation } from './Space/SpaceFixIssuesMutation';
|
|
39
39
|
import { TSpacePublishMutation } from './Space/SpacePublishMutation';
|
|
40
40
|
import { TSpaceRenameElementMutation } from './Space/SpaceRenameElementMutation';
|
|
41
|
+
import { TSpaceRunE2eTestsMutation } from './Space/SpaceRunE2eTestsMutation';
|
|
42
|
+
import { TSpaceSetTestsMutation } from './Space/SpaceSetTestsMutation';
|
|
41
43
|
import { TSpaceUpdatePluginMutation } from './Space/SpaceUpdatePluginMutation';
|
|
42
44
|
export type BuilderMutationsMap = {
|
|
43
45
|
SpaceUpdate: unknown;
|
|
@@ -108,6 +110,8 @@ export type BuilderMutationsMap = {
|
|
|
108
110
|
SpaceFixIssues: TSpaceFixIssuesMutation;
|
|
109
111
|
SpaceDeploy: TSpaceDeployMutation;
|
|
110
112
|
SpaceUpdateSettings: unknown;
|
|
113
|
+
SpaceSetTests: TSpaceSetTestsMutation;
|
|
114
|
+
SpaceRunE2eTests: TSpaceRunE2eTestsMutation;
|
|
111
115
|
StyleAddSelector: unknown;
|
|
112
116
|
StyleUpdateSelector: unknown;
|
|
113
117
|
StyleRemoveSelector: unknown;
|
|
@@ -126,4 +130,5 @@ export type BuilderMutationsMap = {
|
|
|
126
130
|
};
|
|
127
131
|
declare const BuilderMutations: Record<keyof BuilderMutationsMap, string>;
|
|
128
132
|
export type { TSpaceFix } from './Space/SpaceFixIssuesMutation';
|
|
133
|
+
export type { TSpaceE2eResult, TSpaceE2eStepResult, TSpaceRunE2eTestsMutation } from './Space/SpaceRunE2eTestsMutation';
|
|
129
134
|
export default BuilderMutations;
|
|
@@ -9,163 +9,167 @@ import s from "./Space/SpacePublishMutation.mjs";
|
|
|
9
9
|
import c from "./Space/SpaceRemoveElementMutation.mjs";
|
|
10
10
|
import l from "./Space/SpaceRemovePluginMutation.mjs";
|
|
11
11
|
import u from "./Space/SpaceRenameElementMutation.mjs";
|
|
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/actions/
|
|
21
|
-
import b from "./Space/actions/
|
|
22
|
-
import x from "./Space/
|
|
23
|
-
import S from "./Space/
|
|
24
|
-
import C from "./Space/cdns/
|
|
25
|
-
import w from "./Space/cdns/
|
|
26
|
-
import T from "./Space/cdns/
|
|
27
|
-
import E from "./Space/cdns/
|
|
28
|
-
import D from "./Space/cdns/
|
|
29
|
-
import O from "./Space/
|
|
30
|
-
import k from "./Space/
|
|
31
|
-
import A from "./Space/components/
|
|
32
|
-
import j from "./Space/components/
|
|
33
|
-
import M from "./Space/
|
|
34
|
-
import N from "./Space/
|
|
35
|
-
import P from "./Space/connectors/
|
|
36
|
-
import F from "./Space/
|
|
37
|
-
import I from "./Space/
|
|
38
|
-
import L from "./Space/credentials/
|
|
39
|
-
import R from "./Space/
|
|
40
|
-
import z from "./Space/
|
|
41
|
-
import B from "./Space/
|
|
42
|
-
import V from "./Space/flags/
|
|
43
|
-
import H from "./Space/
|
|
44
|
-
import U from "./Space/
|
|
45
|
-
import W from "./Space/folders/
|
|
46
|
-
import G from "./Space/
|
|
47
|
-
import K from "./Space/
|
|
48
|
-
import q from "./Space/functions/
|
|
49
|
-
import J from "./Space/functions/
|
|
50
|
-
import Y from "./Space/
|
|
51
|
-
import X from "./Space/
|
|
52
|
-
import Z from "./Space/
|
|
53
|
-
import Q from "./Space/pages/
|
|
54
|
-
import $ from "./Space/pages/
|
|
55
|
-
import ee from "./Space/
|
|
56
|
-
import te from "./Space/
|
|
57
|
-
import ne from "./Space/resources/
|
|
58
|
-
import re from "./Space/
|
|
59
|
-
import ie from "./Space/
|
|
60
|
-
import ae from "./Space/runtime/
|
|
61
|
-
import oe from "./Space/runtime/
|
|
62
|
-
import se from "./Space/runtime/
|
|
63
|
-
import ce from "./Space/runtime/
|
|
64
|
-
import le from "./Space/
|
|
65
|
-
import ue from "./Space/
|
|
66
|
-
import de from "./Space/variables/
|
|
67
|
-
import fe from "./Space/
|
|
68
|
-
import pe from "./Space/
|
|
69
|
-
import me from "./
|
|
70
|
-
import he from "./
|
|
71
|
-
import ge from "./Style/
|
|
72
|
-
import _e from "./Style/
|
|
73
|
-
import ve from "./Style/fonts/
|
|
74
|
-
import ye from "./Style/
|
|
75
|
-
import be from "./Style/
|
|
76
|
-
import xe from "./Style/selectorVariables/
|
|
77
|
-
import Se from "./Style/
|
|
78
|
-
import Ce from "./Style/
|
|
79
|
-
import we from "./Style/selectors/
|
|
80
|
-
import Te from "./Style/selectors/
|
|
81
|
-
import Ee from "./Style/
|
|
82
|
-
import De from "./Style/
|
|
83
|
-
import Oe from "./Style/variables/
|
|
12
|
+
import d from "./Space/SpaceRunE2eTestsMutation.mjs";
|
|
13
|
+
import f from "./Space/SpaceSetTestsMutation.mjs";
|
|
14
|
+
import p from "./Space/SpaceUpdateElementMutation.mjs";
|
|
15
|
+
import m from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
16
|
+
import h from "./Space/SpaceUpdateMutation.mjs";
|
|
17
|
+
import g from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
18
|
+
import _ from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
19
|
+
import v from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
20
|
+
import y from "./Space/actions/SpaceAddActionMutation.mjs";
|
|
21
|
+
import b from "./Space/actions/SpaceRemoveActionMutation.mjs";
|
|
22
|
+
import x from "./Space/actions/SpaceRunActionMutation.mjs";
|
|
23
|
+
import S from "./Space/actions/SpaceUpdateActionMutation.mjs";
|
|
24
|
+
import C from "./Space/cdns/SpaceAddCdnBucketMutation.mjs";
|
|
25
|
+
import w from "./Space/cdns/SpaceAddCdnMutation.mjs";
|
|
26
|
+
import T from "./Space/cdns/SpaceRemoveCdnBucketMutation.mjs";
|
|
27
|
+
import E from "./Space/cdns/SpaceRemoveCdnMutation.mjs";
|
|
28
|
+
import D from "./Space/cdns/SpaceSetCdnCredentialMutation.mjs";
|
|
29
|
+
import O from "./Space/cdns/SpaceUpdateCdnBucketMutation.mjs";
|
|
30
|
+
import k from "./Space/cdns/SpaceUpdateCdnMutation.mjs";
|
|
31
|
+
import A from "./Space/components/SpaceAddComponentMutation.mjs";
|
|
32
|
+
import j from "./Space/components/SpaceDetachInstanceMutation.mjs";
|
|
33
|
+
import M from "./Space/components/SpaceRemoveComponentMutation.mjs";
|
|
34
|
+
import N from "./Space/components/SpaceUpdateComponentMutation.mjs";
|
|
35
|
+
import P from "./Space/connectors/SpaceAddConnectorMutation.mjs";
|
|
36
|
+
import F from "./Space/connectors/SpaceRemoveConnectorMutation.mjs";
|
|
37
|
+
import I from "./Space/connectors/SpaceUpdateConnectorMutation.mjs";
|
|
38
|
+
import L from "./Space/credentials/SpaceAddCredentialMutation.mjs";
|
|
39
|
+
import R from "./Space/credentials/SpaceRemoveCredentialMutation.mjs";
|
|
40
|
+
import z from "./Space/credentials/SpaceUpdateCredentialMutation.mjs";
|
|
41
|
+
import B from "./Space/data/SpaceSaveDataMutation.mjs";
|
|
42
|
+
import V from "./Space/flags/SpacePublishFlagsMutation.mjs";
|
|
43
|
+
import H from "./Space/flags/SpaceRemoveFlagMutation.mjs";
|
|
44
|
+
import U from "./Space/flags/SpaceSetFlagMutation.mjs";
|
|
45
|
+
import W from "./Space/folders/SpaceAddPageFolderMutation.mjs";
|
|
46
|
+
import G from "./Space/folders/SpaceRemovePageFolderMutation.mjs";
|
|
47
|
+
import K from "./Space/folders/SpaceUpdatePageFolderMutation.mjs";
|
|
48
|
+
import q from "./Space/functions/SpaceInstallTemplateFunctionsMutation.mjs";
|
|
49
|
+
import J from "./Space/functions/SpaceRemoveFunctionsMutation.mjs";
|
|
50
|
+
import Y from "./Space/functions/SpaceSaveFunctionsMutation.mjs";
|
|
51
|
+
import X from "./Space/functions/SpaceTryFunctionMutation.mjs";
|
|
52
|
+
import Z from "./Space/jobs/SpaceControlJobMutation.mjs";
|
|
53
|
+
import Q from "./Space/pages/SpaceAddPageMutation.mjs";
|
|
54
|
+
import $ from "./Space/pages/SpaceHomePageMutation.mjs";
|
|
55
|
+
import ee from "./Space/pages/SpaceRemovePageMutation.mjs";
|
|
56
|
+
import te from "./Space/pages/SpaceUpdatePageMutation.mjs";
|
|
57
|
+
import ne from "./Space/resources/SpaceAddResourceMutation.mjs";
|
|
58
|
+
import re from "./Space/resources/SpaceMoveResourceMutation.mjs";
|
|
59
|
+
import ie from "./Space/resources/SpaceRemoveResourceMutation.mjs";
|
|
60
|
+
import ae from "./Space/runtime/SpaceRemoveRuntimeMutation.mjs";
|
|
61
|
+
import oe from "./Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs";
|
|
62
|
+
import se from "./Space/runtime/SpaceSetRuntimeSizeMutation.mjs";
|
|
63
|
+
import ce from "./Space/runtime/SpaceSetRuntimeVariableMutation.mjs";
|
|
64
|
+
import le from "./Space/runtime/SpaceStartRuntimeMutation.mjs";
|
|
65
|
+
import ue from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
66
|
+
import de from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
67
|
+
import fe from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
68
|
+
import pe from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
69
|
+
import me from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
70
|
+
import he from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
71
|
+
import ge from "./Style/StyleUpdateMutation.mjs";
|
|
72
|
+
import _e from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
73
|
+
import ve from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
74
|
+
import ye from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
75
|
+
import be from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
76
|
+
import xe from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
77
|
+
import Se from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
78
|
+
import Ce from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
79
|
+
import we from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
80
|
+
import Te from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
81
|
+
import Ee from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
82
|
+
import De from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
83
|
+
import Oe from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
84
|
+
import ke from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
85
|
+
import Ae from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
84
86
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
85
|
-
var
|
|
86
|
-
SpaceUpdate:
|
|
87
|
-
SpaceUpdateSchema:
|
|
88
|
-
SpaceAddPage:
|
|
89
|
-
SpaceHomePage:
|
|
90
|
-
SpaceUpdatePage:
|
|
91
|
-
SpaceRemovePage:
|
|
92
|
-
SpaceAddPageFolder:
|
|
93
|
-
SpaceUpdatePageFolder:
|
|
94
|
-
SpaceRemovePageFolder:
|
|
95
|
-
SpaceAddVariable:
|
|
96
|
-
SpaceUpdateVariable:
|
|
97
|
-
SpaceRemoveVariable:
|
|
98
|
-
SpaceSetFlag:
|
|
99
|
-
SpaceRemoveFlag:
|
|
87
|
+
var je = {
|
|
88
|
+
SpaceUpdate: h,
|
|
89
|
+
SpaceUpdateSchema: _,
|
|
90
|
+
SpaceAddPage: Q,
|
|
91
|
+
SpaceHomePage: $,
|
|
92
|
+
SpaceUpdatePage: te,
|
|
93
|
+
SpaceRemovePage: ee,
|
|
94
|
+
SpaceAddPageFolder: W,
|
|
95
|
+
SpaceUpdatePageFolder: K,
|
|
96
|
+
SpaceRemovePageFolder: G,
|
|
97
|
+
SpaceAddVariable: de,
|
|
98
|
+
SpaceUpdateVariable: pe,
|
|
99
|
+
SpaceRemoveVariable: fe,
|
|
100
|
+
SpaceSetFlag: U,
|
|
101
|
+
SpaceRemoveFlag: H,
|
|
100
102
|
SpaceAddElement: e,
|
|
101
|
-
SpaceUpdateElement:
|
|
103
|
+
SpaceUpdateElement: p,
|
|
102
104
|
SpaceRenameElement: u,
|
|
103
|
-
SpaceUpdateElements:
|
|
105
|
+
SpaceUpdateElements: m,
|
|
104
106
|
SpaceRemoveElement: c,
|
|
105
107
|
SpaceMoveElement: o,
|
|
106
108
|
SpaceCloneElement: r,
|
|
107
|
-
SpaceAddComponent:
|
|
108
|
-
SpaceUpdateComponent:
|
|
109
|
-
SpaceRemoveComponent:
|
|
110
|
-
SpaceDetachInstance:
|
|
109
|
+
SpaceAddComponent: A,
|
|
110
|
+
SpaceUpdateComponent: N,
|
|
111
|
+
SpaceRemoveComponent: M,
|
|
112
|
+
SpaceDetachInstance: j,
|
|
111
113
|
SpaceAddSnippet: n,
|
|
112
114
|
SpaceAddPlugin: t,
|
|
113
|
-
SpaceUpdatePlugin:
|
|
115
|
+
SpaceUpdatePlugin: g,
|
|
114
116
|
SpaceRemovePlugin: l,
|
|
115
|
-
SpaceAddResource:
|
|
116
|
-
SpaceMoveResource:
|
|
117
|
-
SpaceRemoveResource:
|
|
118
|
-
SpaceAddCdn:
|
|
119
|
-
SpaceUpdateCdn:
|
|
120
|
-
SpaceSetCdnCredential:
|
|
121
|
-
SpaceRemoveCdn:
|
|
122
|
-
SpaceAddCdnBucket:
|
|
123
|
-
SpaceUpdateCdnBucket:
|
|
124
|
-
SpaceRemoveCdnBucket:
|
|
125
|
-
SpaceAddAction:
|
|
126
|
-
SpaceUpdateAction:
|
|
127
|
-
SpaceRemoveAction:
|
|
128
|
-
SpaceRunAction:
|
|
129
|
-
SpaceSaveData:
|
|
130
|
-
SpaceSaveFunctions:
|
|
131
|
-
SpaceRemoveFunctions:
|
|
132
|
-
SpaceInstallTemplateFunctions:
|
|
133
|
-
SpaceTryFunction:
|
|
134
|
-
SpaceControlJob:
|
|
135
|
-
SpaceAddConnector:
|
|
136
|
-
SpaceUpdateConnector:
|
|
137
|
-
SpaceRemoveConnector:
|
|
138
|
-
SpaceAddCredential:
|
|
139
|
-
SpaceUpdateCredential:
|
|
140
|
-
SpaceRemoveCredential:
|
|
141
|
-
SpaceAddVisitor:
|
|
142
|
-
SpaceRemoveVisitor:
|
|
143
|
-
SpaceSetRuntimeVariable:
|
|
144
|
-
SpaceSetRuntimeSize:
|
|
145
|
-
SpaceStartRuntime:
|
|
146
|
-
SpaceStopRuntime:
|
|
147
|
-
SpaceRemoveRuntimeVariable:
|
|
148
|
-
SpaceRemoveRuntime:
|
|
117
|
+
SpaceAddResource: ne,
|
|
118
|
+
SpaceMoveResource: re,
|
|
119
|
+
SpaceRemoveResource: ie,
|
|
120
|
+
SpaceAddCdn: w,
|
|
121
|
+
SpaceUpdateCdn: k,
|
|
122
|
+
SpaceSetCdnCredential: D,
|
|
123
|
+
SpaceRemoveCdn: E,
|
|
124
|
+
SpaceAddCdnBucket: C,
|
|
125
|
+
SpaceUpdateCdnBucket: O,
|
|
126
|
+
SpaceRemoveCdnBucket: T,
|
|
127
|
+
SpaceAddAction: y,
|
|
128
|
+
SpaceUpdateAction: S,
|
|
129
|
+
SpaceRemoveAction: b,
|
|
130
|
+
SpaceRunAction: x,
|
|
131
|
+
SpaceSaveData: B,
|
|
132
|
+
SpaceSaveFunctions: Y,
|
|
133
|
+
SpaceRemoveFunctions: J,
|
|
134
|
+
SpaceInstallTemplateFunctions: q,
|
|
135
|
+
SpaceTryFunction: X,
|
|
136
|
+
SpaceControlJob: Z,
|
|
137
|
+
SpaceAddConnector: P,
|
|
138
|
+
SpaceUpdateConnector: I,
|
|
139
|
+
SpaceRemoveConnector: F,
|
|
140
|
+
SpaceAddCredential: L,
|
|
141
|
+
SpaceUpdateCredential: z,
|
|
142
|
+
SpaceRemoveCredential: R,
|
|
143
|
+
SpaceAddVisitor: me,
|
|
144
|
+
SpaceRemoveVisitor: he,
|
|
145
|
+
SpaceSetRuntimeVariable: ce,
|
|
146
|
+
SpaceSetRuntimeSize: se,
|
|
147
|
+
SpaceStartRuntime: le,
|
|
148
|
+
SpaceStopRuntime: ue,
|
|
149
|
+
SpaceRemoveRuntimeVariable: oe,
|
|
150
|
+
SpaceRemoveRuntime: ae,
|
|
149
151
|
SpacePublish: s,
|
|
150
|
-
SpacePublishFlags:
|
|
152
|
+
SpacePublishFlags: V,
|
|
151
153
|
SpaceFixIssues: a,
|
|
152
154
|
SpaceDeploy: i,
|
|
153
|
-
SpaceUpdateSettings:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
155
|
+
SpaceUpdateSettings: v,
|
|
156
|
+
SpaceSetTests: f,
|
|
157
|
+
SpaceRunE2eTests: d,
|
|
158
|
+
StyleAddSelector: we,
|
|
159
|
+
StyleUpdateSelector: De,
|
|
160
|
+
StyleRemoveSelector: Te,
|
|
161
|
+
StyleRemoveSelectors: Ee,
|
|
162
|
+
StyleAddSelectorVariable: xe,
|
|
163
|
+
StyleUpdateSelectorVariable: Ce,
|
|
164
|
+
StyleRemoveSelectorVariable: Se,
|
|
165
|
+
StyleAddFont: ve,
|
|
166
|
+
StyleUpdateFont: be,
|
|
167
|
+
StyleRemoveFont: ye,
|
|
168
|
+
StyleAddVariable: Oe,
|
|
169
|
+
StyleUpdateVariable: Ae,
|
|
170
|
+
StyleRemoveVariable: ke,
|
|
171
|
+
StyleUpdate: ge,
|
|
172
|
+
StyleUpdateSettings: _e
|
|
169
173
|
};
|
|
170
174
|
//#endregion
|
|
171
|
-
export {
|
|
175
|
+
export { je as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SpaceTests } from '../../../../../types';
|
|
2
|
+
/** How one unit test went against the saved document. */
|
|
3
|
+
export type TSpaceUnitTestResult = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
ok: boolean;
|
|
7
|
+
misses: string[];
|
|
8
|
+
problem: string | null;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Journeys played on the server this month (UTC), of the plan's allowance — `used` null when the count could not be
|
|
12
|
+
* read, `limit` null with no limit — and the day it starts again.
|
|
13
|
+
*/
|
|
14
|
+
export type TSpaceServerPlays = {
|
|
15
|
+
used: number | null;
|
|
16
|
+
limit: number | null;
|
|
17
|
+
resetsOn: string;
|
|
18
|
+
};
|
|
19
|
+
/** The fields of {@link TSpaceServerPlays}, for every answer that carries them. */
|
|
20
|
+
export declare const SPACE_SERVER_PLAYS_FIELDS = "\n serverPlays {\n used\n limit\n resetsOn\n }\n";
|
|
21
|
+
/**
|
|
22
|
+
* The space's own tests and how they stand against the saved document — what a snapshot would meet:
|
|
23
|
+
* `problems` refuse it, a failed unit test refuses it, and the e2e tests this server runs no browser for are named.
|
|
24
|
+
*/
|
|
25
|
+
export type TSpaceTests = {
|
|
26
|
+
tests: SpaceTests;
|
|
27
|
+
problems: string[];
|
|
28
|
+
unitPassed: number;
|
|
29
|
+
unitFailed: number;
|
|
30
|
+
unit: TSpaceUnitTestResult[];
|
|
31
|
+
e2eNotRun: string[];
|
|
32
|
+
/** Said by a server that counts them. */
|
|
33
|
+
serverPlays?: TSpaceServerPlays;
|
|
34
|
+
};
|
|
35
|
+
export type TSpaceTestsQuery = {
|
|
36
|
+
SpaceTests: TSpaceTests | null;
|
|
37
|
+
};
|
|
38
|
+
export declare const SPACE_TESTS_FIELDS = "\n tests\n problems\n unitPassed\n unitFailed\n unit {\n id\n title\n ok\n misses\n problem\n }\n e2eNotRun\n \n serverPlays {\n used\n limit\n resetsOn\n }\n\n";
|
|
39
|
+
declare const SpaceTestsQuery = "\n query SpaceTestsQuery($environment: String!) {\n SpaceTests(environment: $environment) {\n \n tests\n problems\n unitPassed\n unitFailed\n unit {\n id\n title\n ok\n misses\n problem\n }\n e2eNotRun\n \n serverPlays {\n used\n limit\n resetsOn\n }\n\n\n }\n }\n";
|
|
40
|
+
export default SpaceTestsQuery;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Queries/Space/SpaceTestsQuery.ts
|
|
2
|
+
var e = "\n serverPlays {\n used\n limit\n resetsOn\n }\n", t = `
|
|
3
|
+
tests
|
|
4
|
+
problems
|
|
5
|
+
unitPassed
|
|
6
|
+
unitFailed
|
|
7
|
+
unit {
|
|
8
|
+
id
|
|
9
|
+
title
|
|
10
|
+
ok
|
|
11
|
+
misses
|
|
12
|
+
problem
|
|
13
|
+
}
|
|
14
|
+
e2eNotRun
|
|
15
|
+
${e}
|
|
16
|
+
`, n = `
|
|
17
|
+
query SpaceTestsQuery($environment: String!) {
|
|
18
|
+
SpaceTests(environment: $environment) {
|
|
19
|
+
${t}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { e as SPACE_SERVER_PLAYS_FIELDS, t as SPACE_TESTS_FIELDS, n as default };
|
|
@@ -16,16 +16,19 @@ import { TSpaceLatestRevisionQuery } from './Space/SpaceLatestRevisionQuery';
|
|
|
16
16
|
import { TSpaceQuotaQuery } from './Space/SpaceQuotaQuery';
|
|
17
17
|
import { TSpaceResourcesQuery } from './Space/SpaceResourcesQuery';
|
|
18
18
|
import { TSpaceRuntimeQuery } from './Space/SpaceRuntimeQuery';
|
|
19
|
+
import { TSpaceTestsQuery } from './Space/SpaceTestsQuery';
|
|
19
20
|
import { TSpaceVersionContentsQuery } from './Space/SpaceVersionContentsQuery';
|
|
20
21
|
import { TSpaceVisitorsQuery } from './Space/SpaceVisitorsQuery';
|
|
21
22
|
export type { TQuotaPlane, TSpaceQuota } from './Space/SpaceQuotaQuery';
|
|
22
23
|
export type { TSpaceIssue, TSpaceIssues, TSpaceSuggestion } from './Space/SpaceIssuesQuery';
|
|
24
|
+
export type { TSpaceServerPlays, TSpaceTests, TSpaceUnitTestResult } from './Space/SpaceTestsQuery';
|
|
23
25
|
export type { TSnapshotMarker, TSpaceChanges } from './Space/SpaceChangesQuery';
|
|
24
26
|
export type BuilderQueriesMap = {
|
|
25
27
|
Init: TInitQuery;
|
|
26
28
|
SpaceLatestRevision: TSpaceLatestRevisionQuery;
|
|
27
29
|
SpaceQuota: TSpaceQuotaQuery;
|
|
28
30
|
SpaceIssues: TSpaceIssuesQuery;
|
|
31
|
+
SpaceTests: TSpaceTestsQuery;
|
|
29
32
|
SpaceChanges: TSpaceChangesQuery;
|
|
30
33
|
SpaceResources: TSpaceResourcesQuery;
|
|
31
34
|
SpaceDeployments: TSpaceDeploymentsQuery;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./Space/
|
|
4
|
-
import r from "./Space/
|
|
5
|
-
import i from "./Space/
|
|
6
|
-
import a from "./Space/
|
|
7
|
-
import o from "./Space/
|
|
8
|
-
import s from "./Space/
|
|
9
|
-
import c from "./Space/
|
|
10
|
-
import l from "./Space/
|
|
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/
|
|
1
|
+
import e from "./Space/SpaceTestsQuery.mjs";
|
|
2
|
+
import t from "./InitQuery.mjs";
|
|
3
|
+
import n from "./Space/SpaceActionEventsQuery.mjs";
|
|
4
|
+
import r from "./Space/SpaceActionTasksQuery.mjs";
|
|
5
|
+
import i from "./Space/SpaceActionsQuery.mjs";
|
|
6
|
+
import a from "./Space/SpaceCdnsQuery.mjs";
|
|
7
|
+
import o from "./Space/SpaceChangesQuery.mjs";
|
|
8
|
+
import s from "./Space/SpaceCheckActionQuery.mjs";
|
|
9
|
+
import c from "./Space/SpaceConnectorsQuery.mjs";
|
|
10
|
+
import l from "./Space/SpaceCredentialsQuery.mjs";
|
|
11
|
+
import u from "./Space/SpaceDataQuery.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/SpaceQuotaQuery.mjs";
|
|
18
|
+
import _ from "./Space/SpaceResourcesQuery.mjs";
|
|
19
|
+
import v from "./Space/SpaceRuntimeQuery.mjs";
|
|
20
|
+
import y from "./Space/SpaceVersionContentsQuery.mjs";
|
|
21
|
+
import b from "./Space/SpaceVisitorsQuery.mjs";
|
|
21
22
|
//#region src/network/graphql/builder/Queries/index.ts
|
|
22
|
-
var
|
|
23
|
-
Init:
|
|
24
|
-
SpaceLatestRevision:
|
|
25
|
-
SpaceQuota:
|
|
26
|
-
SpaceIssues:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
var x = {
|
|
24
|
+
Init: t,
|
|
25
|
+
SpaceLatestRevision: h,
|
|
26
|
+
SpaceQuota: g,
|
|
27
|
+
SpaceIssues: p,
|
|
28
|
+
SpaceTests: e,
|
|
29
|
+
SpaceChanges: o,
|
|
30
|
+
SpaceResources: _,
|
|
31
|
+
SpaceDeployments: d,
|
|
32
|
+
SpaceCdns: a,
|
|
33
|
+
SpaceActions: i,
|
|
34
|
+
SpaceActionEvents: n,
|
|
35
|
+
SpaceCheckAction: s,
|
|
36
|
+
SpaceActionTasks: r,
|
|
37
|
+
SpaceData: u,
|
|
38
|
+
SpaceFunctions: f,
|
|
39
|
+
SpaceJobs: m,
|
|
40
|
+
SpaceConnectors: c,
|
|
41
|
+
SpaceCredentials: l,
|
|
42
|
+
SpaceVersionContents: y,
|
|
43
|
+
SpaceVisitors: b,
|
|
44
|
+
SpaceRuntime: v
|
|
43
45
|
};
|
|
44
46
|
//#endregion
|
|
45
|
-
export {
|
|
47
|
+
export { x as default };
|
|
@@ -7,8 +7,10 @@ export type TInitQuery = {
|
|
|
7
7
|
/** What the server decided about this render. Server-side facts the space cannot author away. */
|
|
8
8
|
render?: {
|
|
9
9
|
overQuota: boolean;
|
|
10
|
+
quotaNear?: boolean;
|
|
11
|
+
badge?: boolean;
|
|
10
12
|
};
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
|
-
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
|
|
15
|
+
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n quotaNear\n badge\n }\n }\n }\n";
|
|
14
16
|
export default InitQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/sdk/Queries/InitQuery.ts
|
|
2
|
-
var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
|
|
2
|
+
var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n quotaNear\n badge\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
package/dist/network/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import { default as SpaceEvents } from './spaceEvents';
|
|
|
4
4
|
export * from './NetworkContext';
|
|
5
5
|
export * from './NetworkInternalContext';
|
|
6
6
|
export * from './spaceEvents';
|
|
7
|
+
export * from './entitlements';
|
|
7
8
|
export * from './graphql';
|
|
8
9
|
export { NetworkContext, NetworkInternalContext, SpaceEvents };
|
package/dist/network/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import e from "./NetworkContext.mjs";
|
|
2
2
|
import t from "./NetworkInternalContext.mjs";
|
|
3
|
-
import n from "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { QUOTA_NEAR_RATIO as n, isIncluded as r, isPlanRefusal as i, mayDo as a } from "./entitlements.mjs";
|
|
4
|
+
import o from "./graphql/builder/Mutations/index.mjs";
|
|
5
|
+
import s from "./graphql/builder/Queries/index.mjs";
|
|
6
|
+
import c from "./graphql/builder/Subscriptions/index.mjs";
|
|
7
|
+
import l from "./graphql/sdk/Mutations/index.mjs";
|
|
8
|
+
import u from "./graphql/sdk/Queries/index.mjs";
|
|
9
|
+
import { elementFromWire as d, schemaFromWire as f, schemaToWire as p } from "../schema/wire.mjs";
|
|
10
|
+
import { SpaceEvents as m, spaceEventSchemas as h, validateSpaceEvent as g } from "./spaceEvents.mjs";
|
|
11
|
+
export { o as BuilderMutations, s as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, n as QUOTA_NEAR_RATIO, l as SdkMutations, u as SdkQueries, c as SpaceEventSubscription, m as SpaceEvents, d as elementFromWire, r as isIncluded, i as isPlanRefusal, a as mayDo, f as schemaFromWire, p as schemaToWire, h as spaceEventSchemas, g as validateSpaceEvent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { StyleVariableCategory } from '../types/StyleTypes';
|
|
3
|
-
import { DropPosition, Element, PageFolder, SchemaFlag, SchemaRaw, SchemaVariable, SpaceComponent, SpaceComponentDeclaration, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
|
|
3
|
+
import { DropPosition, Element, PageFolder, SchemaFlag, SchemaRaw, SchemaVariable, SpaceComponent, SpaceComponentDeclaration, SpaceFont, SpaceTests, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
|
|
4
4
|
export { elementFromWire, schemaFromWire, schemaToWire } from '../schema/wire';
|
|
5
5
|
export declare const spaceEventSchemas: {
|
|
6
6
|
readonly SPACE_UPDATED: z.ZodObject<{
|
|
@@ -114,6 +114,25 @@ export declare const spaceEventSchemas: {
|
|
|
114
114
|
path: z.ZodString;
|
|
115
115
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
116
116
|
}, z.core.$strip>;
|
|
117
|
+
/** The space's tests saved whole: an open builder lists them as they are now. */
|
|
118
|
+
readonly SPACE_UPDATE_TESTS: z.ZodObject<{
|
|
119
|
+
tests: z.ZodCustom<SpaceTests, SpaceTests>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
/**
|
|
122
|
+
* A journey the server plays on asking, as it plays: after each step, and once when it ends. Every builder
|
|
123
|
+
* open on the space shows the run live; the run's own answer is still the report.
|
|
124
|
+
*/
|
|
125
|
+
readonly SPACE_TESTS_PLAYING: z.ZodObject<{
|
|
126
|
+
run: z.ZodString;
|
|
127
|
+
test: z.ZodString;
|
|
128
|
+
at: z.ZodNumber;
|
|
129
|
+
of: z.ZodNumber;
|
|
130
|
+
played: z.ZodNumber;
|
|
131
|
+
steps: z.ZodNumber;
|
|
132
|
+
ok: z.ZodBoolean;
|
|
133
|
+
ended: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
frame: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
117
136
|
readonly STYLE_ADD_SELECTOR: z.ZodObject<{
|
|
118
137
|
displayMode: z.ZodEnum<{
|
|
119
138
|
desktop: "desktop";
|