@plitzi/sdk-shared 0.37.5 → 0.37.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/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +110 -108
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +1 -1
- package/dist/types/FunctionTypes.d.ts +13 -2
- package/dist/types/ResourceTypes.d.ts +11 -1
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @plitzi/sdk-shared
|
|
2
2
|
|
|
3
|
+
## 0.37.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d6c2a21: ## Server code on a private CDN
|
|
8
|
+
|
|
9
|
+
- **A CDN has a visibility**: `public` (the default — its files served at its domain: plugins, images, templates) or
|
|
10
|
+
`private` (no domain, read only by the platform with its credential). The builder's CDN form asks for it, and every
|
|
11
|
+
CDN now has **Settings** in Resources to change its configuration — until now a CDN could not be edited at all.
|
|
12
|
+
- **A space's server code is kept on its private CDN**, not in the platform's database: its functions' source and
|
|
13
|
+
bundle, and its runtime's packed code, named by what they hold. Saving functions or pushing a runtime to a space with
|
|
14
|
+
no private CDN is refused with how to add one (`FunctionsRefusal.limit: 'storage'`). Resources lists them under
|
|
15
|
+
**Server code** with the versions that run each (`Resource.usedBy`, `ResourceType` `server`); one in use cannot be
|
|
16
|
+
removed. A private CDN cannot take a page's file, and `plitzi upload plugin` offers only public CDNs.
|
|
17
|
+
- **A space made from a template** gets the template's functions as an offer (`FunctionsDraft.offer`): the Functions
|
|
18
|
+
panel installs them (`SpaceInstallTemplateFunctions`) once the space has a private CDN.
|
|
19
|
+
- Types: `Cdn.visibility`, `CdnVisibility`; `SpaceAddCdn` / `SpaceUpdateCdn` take `visibility` and a nullable `domain`.
|
|
20
|
+
|
|
3
21
|
## 0.37.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Cdn } from '../../../../../../types';
|
|
2
2
|
export type TSpaceAddCdnMutation = Cdn;
|
|
3
|
-
declare const SpaceAddCdnMutation = "\n mutation SpaceAddCdnMutation(\n $name: String!\n $domain: String
|
|
3
|
+
declare const SpaceAddCdnMutation = "\n mutation SpaceAddCdnMutation(\n $name: String!\n $domain: String\n $visibility: String\n $provider: String!\n $region: String!\n $endpoint: String\n $bucketName: String!\n ) {\n SpaceAddCdn(\n name: $name\n domain: $domain\n visibility: $visibility\n provider: $provider\n region: $region\n endpoint: $endpoint\n bucketName: $bucketName\n ) {\n name\n identifier\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n }\n }\n";
|
|
4
4
|
export default SpaceAddCdnMutation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceAddCdnMutation(\n $name: String!\n $domain: String
|
|
2
|
+
var e = "\n mutation SpaceAddCdnMutation(\n $name: String!\n $domain: String\n $visibility: String\n $provider: String!\n $region: String!\n $endpoint: String\n $bucketName: String!\n ) {\n SpaceAddCdn(\n name: $name\n domain: $domain\n visibility: $visibility\n provider: $provider\n region: $region\n endpoint: $endpoint\n bucketName: $bucketName\n ) {\n name\n identifier\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Cdn } from '../../../../../../types';
|
|
2
2
|
export type TSpaceUpdateCdnMutation = Cdn;
|
|
3
|
-
declare const SpaceUpdateCdnMutation = "\n mutation SpaceUpdateCdnMutation(\n $identifier: String!\n $name: String!\n $domain: String
|
|
3
|
+
declare const SpaceUpdateCdnMutation = "\n mutation SpaceUpdateCdnMutation(\n $identifier: String!\n $name: String!\n $domain: String\n $visibility: String\n $provider: String!\n $region: String!\n $endpoint: String\n $bucketName: String!\n ) {\n SpaceUpdateCdn(\n identifier: $identifier\n name: $name\n domain: $domain\n visibility: $visibility\n provider: $provider\n region: $region\n endpoint: $endpoint\n bucketName: $bucketName\n ) {\n name\n identifier\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n }\n }\n";
|
|
4
4
|
export default SpaceUpdateCdnMutation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceUpdateCdnMutation(\n $identifier: String!\n $name: String!\n $domain: String
|
|
2
|
+
var e = "\n mutation SpaceUpdateCdnMutation(\n $identifier: String!\n $name: String!\n $domain: String\n $visibility: String\n $provider: String!\n $region: String!\n $endpoint: String\n $bucketName: String!\n ) {\n SpaceUpdateCdn(\n identifier: $identifier\n name: $name\n domain: $domain\n visibility: $visibility\n provider: $provider\n region: $region\n endpoint: $endpoint\n bucketName: $bucketName\n ) {\n name\n identifier\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TSpaceSaveFunctionsMutation } from './SpaceSaveFunctionsMutation';
|
|
2
|
+
/** Installs the functions the space's template brought (`SpaceFunctions.offer`): answered as a save is. */
|
|
3
|
+
export type TSpaceInstallTemplateFunctionsMutation = TSpaceSaveFunctionsMutation;
|
|
4
|
+
declare const SpaceInstallTemplateFunctionsMutation = "\n mutation SpaceInstallTemplateFunctionsMutation {\n SpaceInstallTemplateFunctions {\n ok\n version\n manifest\n problems {\n file\n line\n column\n message\n }\n refusal {\n status\n error\n limit\n }\n }\n }\n";
|
|
5
|
+
export default SpaceInstallTemplateFunctionsMutation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceInstallTemplateFunctionsMutation {\n SpaceInstallTemplateFunctions {\n ok\n version\n manifest\n problems {\n file\n line\n column\n message\n }\n refusal {\n status\n error\n limit\n }\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -16,6 +16,7 @@ import { TSpaceUpdateConnectorMutation } from './Space/connectors/SpaceUpdateCon
|
|
|
16
16
|
import { TSpaceAddPageFolderMutation } from './Space/folders/SpaceAddPageFolderMutation';
|
|
17
17
|
import { TSpaceRemovePageFolderMutation } from './Space/folders/SpaceRemovePageFolderMutation';
|
|
18
18
|
import { TSpaceUpdatePageFolderMutation } from './Space/folders/SpaceUpdatePageFolderMutation';
|
|
19
|
+
import { TSpaceInstallTemplateFunctionsMutation } from './Space/functions/SpaceInstallTemplateFunctionsMutation';
|
|
19
20
|
import { TSpaceRemoveFunctionsMutation } from './Space/functions/SpaceRemoveFunctionsMutation';
|
|
20
21
|
import { TSpaceSaveFunctionsMutation } from './Space/functions/SpaceSaveFunctionsMutation';
|
|
21
22
|
import { TSpaceTryFunctionMutation } from './Space/functions/SpaceTryFunctionMutation';
|
|
@@ -69,6 +70,7 @@ export type BuilderMutationsMap = {
|
|
|
69
70
|
SpaceRunAction: TSpaceRunActionMutation;
|
|
70
71
|
SpaceSaveFunctions: TSpaceSaveFunctionsMutation;
|
|
71
72
|
SpaceRemoveFunctions: TSpaceRemoveFunctionsMutation;
|
|
73
|
+
SpaceInstallTemplateFunctions: TSpaceInstallTemplateFunctionsMutation;
|
|
72
74
|
SpaceTryFunction: TSpaceTryFunctionMutation;
|
|
73
75
|
SpaceAddConnector: TSpaceAddConnectorMutation;
|
|
74
76
|
SpaceUpdateConnector: TSpaceUpdateConnectorMutation;
|
|
@@ -40,87 +40,88 @@ import R from "./Space/credentials/SpaceUpdateCredentialMutation.mjs";
|
|
|
40
40
|
import z from "./Space/folders/SpaceAddPageFolderMutation.mjs";
|
|
41
41
|
import B from "./Space/folders/SpaceRemovePageFolderMutation.mjs";
|
|
42
42
|
import V from "./Space/folders/SpaceUpdatePageFolderMutation.mjs";
|
|
43
|
-
import H from "./Space/functions/
|
|
44
|
-
import U from "./Space/functions/
|
|
45
|
-
import W from "./Space/functions/
|
|
46
|
-
import G from "./Space/
|
|
47
|
-
import K from "./Space/pages/
|
|
48
|
-
import q from "./Space/pages/
|
|
49
|
-
import J from "./Space/pages/
|
|
50
|
-
import Y from "./Space/
|
|
51
|
-
import X from "./Space/resources/
|
|
52
|
-
import Z from "./Space/resources/
|
|
53
|
-
import Q from "./Space/
|
|
54
|
-
import $ from "./Space/runtime/
|
|
55
|
-
import ee from "./Space/runtime/
|
|
56
|
-
import te from "./Space/runtime/
|
|
57
|
-
import ne from "./Space/runtime/
|
|
58
|
-
import re from "./Space/runtime/
|
|
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 "./Space/
|
|
72
|
-
import _e from "./Space/
|
|
73
|
-
import ve from "./Space/
|
|
74
|
-
import ye from "./Space/
|
|
75
|
-
import be from "./Space/
|
|
76
|
-
import xe from "./Space/
|
|
77
|
-
import Se from "./Space/variables/
|
|
78
|
-
import Ce from "./Space/variables/
|
|
79
|
-
import we from "./Space/
|
|
80
|
-
import Te from "./Space/visitors/
|
|
81
|
-
import Ee from "./
|
|
82
|
-
import De from "./Style/fonts/
|
|
83
|
-
import Oe from "./Style/fonts/
|
|
84
|
-
import ke from "./Style/
|
|
85
|
-
import Ae from "./Style/selectors/
|
|
86
|
-
import je from "./Style/selectors/
|
|
87
|
-
import Me from "./Style/selectors/
|
|
88
|
-
import Ne from "./Style/
|
|
89
|
-
import Pe from "./Style/selectorVariables/
|
|
90
|
-
import Fe from "./Style/selectorVariables/
|
|
91
|
-
import Ie from "./Style/
|
|
92
|
-
import Le from "./Style/
|
|
93
|
-
import Re from "./Style/
|
|
94
|
-
import ze from "./Style/variables/
|
|
95
|
-
import Be from "./Style/variables/
|
|
43
|
+
import H from "./Space/functions/SpaceInstallTemplateFunctionsMutation.mjs";
|
|
44
|
+
import U from "./Space/functions/SpaceRemoveFunctionsMutation.mjs";
|
|
45
|
+
import W from "./Space/functions/SpaceSaveFunctionsMutation.mjs";
|
|
46
|
+
import G from "./Space/functions/SpaceTryFunctionMutation.mjs";
|
|
47
|
+
import K from "./Space/pages/SpaceAddPageMutation.mjs";
|
|
48
|
+
import q from "./Space/pages/SpaceHomePageMutation.mjs";
|
|
49
|
+
import J from "./Space/pages/SpaceRemovePageMutation.mjs";
|
|
50
|
+
import Y from "./Space/pages/SpaceUpdatePageMutation.mjs";
|
|
51
|
+
import X from "./Space/resources/SpaceAddResourceMutation.mjs";
|
|
52
|
+
import Z from "./Space/resources/SpaceMoveResourceMutation.mjs";
|
|
53
|
+
import Q from "./Space/resources/SpaceRemoveResourceMutation.mjs";
|
|
54
|
+
import $ from "./Space/runtime/SpaceRemoveRuntimeMutation.mjs";
|
|
55
|
+
import ee from "./Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs";
|
|
56
|
+
import te from "./Space/runtime/SpaceSetRuntimeSizeMutation.mjs";
|
|
57
|
+
import ne from "./Space/runtime/SpaceSetRuntimeVariableMutation.mjs";
|
|
58
|
+
import re from "./Space/runtime/SpaceStartRuntimeMutation.mjs";
|
|
59
|
+
import ie from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
60
|
+
import ae from "./Space/SpaceAddElementMutation.mjs";
|
|
61
|
+
import oe from "./Space/SpaceAddPluginMutation.mjs";
|
|
62
|
+
import se from "./Space/SpaceAddTemplateMutation.mjs";
|
|
63
|
+
import ce from "./Space/SpaceCloneElementMutation.mjs";
|
|
64
|
+
import le from "./Space/SpaceDeployMutation.mjs";
|
|
65
|
+
import ue from "./Space/SpaceFixIssuesMutation.mjs";
|
|
66
|
+
import de from "./Space/SpaceMoveElementMutation.mjs";
|
|
67
|
+
import fe from "./Space/SpacePublishMutation.mjs";
|
|
68
|
+
import pe from "./Space/SpaceRemoveElementMutation.mjs";
|
|
69
|
+
import me from "./Space/SpaceRemovePluginMutation.mjs";
|
|
70
|
+
import he from "./Space/SpaceRenameElementMutation.mjs";
|
|
71
|
+
import ge from "./Space/SpaceUpdateElementMutation.mjs";
|
|
72
|
+
import _e from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
73
|
+
import ve from "./Space/SpaceUpdateMutation.mjs";
|
|
74
|
+
import ye from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
75
|
+
import be from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
76
|
+
import xe from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
77
|
+
import Se from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
78
|
+
import Ce from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
79
|
+
import we from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
80
|
+
import Te from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
81
|
+
import Ee from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
82
|
+
import De from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
83
|
+
import Oe from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
84
|
+
import ke from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
85
|
+
import Ae from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
86
|
+
import je from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
87
|
+
import Me from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
88
|
+
import Ne from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
89
|
+
import Pe from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
90
|
+
import Fe from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
91
|
+
import Ie from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
92
|
+
import Le from "./Style/StyleUpdateMutation.mjs";
|
|
93
|
+
import Re from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
94
|
+
import ze from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
95
|
+
import Be from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
96
|
+
import Ve from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
96
97
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
97
|
-
var
|
|
98
|
-
SpaceUpdate:
|
|
99
|
-
SpaceUpdateSchema:
|
|
100
|
-
SpaceAddPage:
|
|
101
|
-
SpaceHomePage:
|
|
102
|
-
SpaceUpdatePage:
|
|
103
|
-
SpaceRemovePage:
|
|
98
|
+
var He = {
|
|
99
|
+
SpaceUpdate: ve,
|
|
100
|
+
SpaceUpdateSchema: be,
|
|
101
|
+
SpaceAddPage: K,
|
|
102
|
+
SpaceHomePage: q,
|
|
103
|
+
SpaceUpdatePage: Y,
|
|
104
|
+
SpaceRemovePage: J,
|
|
104
105
|
SpaceAddPageFolder: z,
|
|
105
106
|
SpaceUpdatePageFolder: V,
|
|
106
107
|
SpaceRemovePageFolder: B,
|
|
107
|
-
SpaceAddVariable:
|
|
108
|
-
SpaceUpdateVariable:
|
|
109
|
-
SpaceRemoveVariable:
|
|
110
|
-
SpaceAddElement:
|
|
111
|
-
SpaceUpdateElement:
|
|
112
|
-
SpaceRenameElement:
|
|
113
|
-
SpaceUpdateElements:
|
|
114
|
-
SpaceRemoveElement:
|
|
115
|
-
SpaceMoveElement:
|
|
116
|
-
SpaceCloneElement:
|
|
117
|
-
SpaceAddTemplate:
|
|
118
|
-
SpaceAddPlugin:
|
|
119
|
-
SpaceUpdatePlugin:
|
|
120
|
-
SpaceRemovePlugin:
|
|
121
|
-
SpaceAddResource:
|
|
122
|
-
SpaceMoveResource:
|
|
123
|
-
SpaceRemoveResource:
|
|
108
|
+
SpaceAddVariable: Se,
|
|
109
|
+
SpaceUpdateVariable: we,
|
|
110
|
+
SpaceRemoveVariable: Ce,
|
|
111
|
+
SpaceAddElement: ae,
|
|
112
|
+
SpaceUpdateElement: ge,
|
|
113
|
+
SpaceRenameElement: he,
|
|
114
|
+
SpaceUpdateElements: _e,
|
|
115
|
+
SpaceRemoveElement: pe,
|
|
116
|
+
SpaceMoveElement: de,
|
|
117
|
+
SpaceCloneElement: ce,
|
|
118
|
+
SpaceAddTemplate: se,
|
|
119
|
+
SpaceAddPlugin: oe,
|
|
120
|
+
SpaceUpdatePlugin: ye,
|
|
121
|
+
SpaceRemovePlugin: me,
|
|
122
|
+
SpaceAddResource: X,
|
|
123
|
+
SpaceMoveResource: Z,
|
|
124
|
+
SpaceRemoveResource: Q,
|
|
124
125
|
SpaceAddCdn: k,
|
|
125
126
|
SpaceUpdateCdn: M,
|
|
126
127
|
SpaceSetCdnCredential: j,
|
|
@@ -129,42 +130,43 @@ var Ve = {
|
|
|
129
130
|
SpaceUpdateAction: O,
|
|
130
131
|
SpaceRemoveAction: E,
|
|
131
132
|
SpaceRunAction: D,
|
|
132
|
-
SpaceSaveFunctions:
|
|
133
|
-
SpaceRemoveFunctions:
|
|
134
|
-
|
|
133
|
+
SpaceSaveFunctions: W,
|
|
134
|
+
SpaceRemoveFunctions: U,
|
|
135
|
+
SpaceInstallTemplateFunctions: H,
|
|
136
|
+
SpaceTryFunction: G,
|
|
135
137
|
SpaceAddConnector: N,
|
|
136
138
|
SpaceUpdateConnector: F,
|
|
137
139
|
SpaceRemoveConnector: P,
|
|
138
140
|
SpaceAddCredential: I,
|
|
139
141
|
SpaceUpdateCredential: R,
|
|
140
142
|
SpaceRemoveCredential: L,
|
|
141
|
-
SpaceAddVisitor:
|
|
142
|
-
SpaceRemoveVisitor:
|
|
143
|
-
SpaceSetRuntimeVariable:
|
|
144
|
-
SpaceSetRuntimeSize:
|
|
145
|
-
SpaceStartRuntime:
|
|
146
|
-
SpaceStopRuntime:
|
|
147
|
-
SpaceRemoveRuntimeVariable:
|
|
148
|
-
SpaceRemoveRuntime:
|
|
149
|
-
SpacePublish:
|
|
150
|
-
SpaceFixIssues:
|
|
151
|
-
SpaceDeploy:
|
|
152
|
-
SpaceUpdateSettings:
|
|
153
|
-
StyleAddSelector:
|
|
154
|
-
StyleUpdateSelector:
|
|
155
|
-
StyleRemoveSelector:
|
|
156
|
-
StyleRemoveSelectors:
|
|
157
|
-
StyleAddSelectorVariable:
|
|
158
|
-
StyleUpdateSelectorVariable:
|
|
159
|
-
StyleRemoveSelectorVariable:
|
|
160
|
-
StyleAddFont:
|
|
161
|
-
StyleUpdateFont:
|
|
162
|
-
StyleRemoveFont:
|
|
163
|
-
StyleAddVariable:
|
|
164
|
-
StyleUpdateVariable:
|
|
165
|
-
StyleRemoveVariable:
|
|
166
|
-
StyleUpdate:
|
|
167
|
-
StyleUpdateSettings:
|
|
143
|
+
SpaceAddVisitor: Te,
|
|
144
|
+
SpaceRemoveVisitor: Ee,
|
|
145
|
+
SpaceSetRuntimeVariable: ne,
|
|
146
|
+
SpaceSetRuntimeSize: te,
|
|
147
|
+
SpaceStartRuntime: re,
|
|
148
|
+
SpaceStopRuntime: ie,
|
|
149
|
+
SpaceRemoveRuntimeVariable: ee,
|
|
150
|
+
SpaceRemoveRuntime: $,
|
|
151
|
+
SpacePublish: fe,
|
|
152
|
+
SpaceFixIssues: ue,
|
|
153
|
+
SpaceDeploy: le,
|
|
154
|
+
SpaceUpdateSettings: xe,
|
|
155
|
+
StyleAddSelector: Ae,
|
|
156
|
+
StyleUpdateSelector: Ne,
|
|
157
|
+
StyleRemoveSelector: je,
|
|
158
|
+
StyleRemoveSelectors: Me,
|
|
159
|
+
StyleAddSelectorVariable: Pe,
|
|
160
|
+
StyleUpdateSelectorVariable: Ie,
|
|
161
|
+
StyleRemoveSelectorVariable: Fe,
|
|
162
|
+
StyleAddFont: De,
|
|
163
|
+
StyleUpdateFont: ke,
|
|
164
|
+
StyleRemoveFont: Oe,
|
|
165
|
+
StyleAddVariable: ze,
|
|
166
|
+
StyleUpdateVariable: Ve,
|
|
167
|
+
StyleRemoveVariable: Be,
|
|
168
|
+
StyleUpdate: Le,
|
|
169
|
+
StyleUpdateSettings: Re,
|
|
168
170
|
SegmentAdd: e,
|
|
169
171
|
SegmentUpdate: i,
|
|
170
172
|
SegmentRemove: r,
|
|
@@ -192,4 +194,4 @@ var Ve = {
|
|
|
192
194
|
SegmentPublish: n
|
|
193
195
|
};
|
|
194
196
|
//#endregion
|
|
195
|
-
export {
|
|
197
|
+
export { He as default };
|
|
@@ -5,5 +5,5 @@ export type TSpaceCdnsQuery = {
|
|
|
5
5
|
pageInfo: PageInfo;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
declare const SpaceCdnsQuery = "\n query SpaceCdnsQuery($filter: CdnInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceCdns(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n edges {\n identifier\n name\n domain\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n from\n to\n total\n }\n }\n }\n";
|
|
8
|
+
declare const SpaceCdnsQuery = "\n query SpaceCdnsQuery($filter: CdnInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceCdns(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n edges {\n identifier\n name\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n from\n to\n total\n }\n }\n }\n";
|
|
9
9
|
export default SpaceCdnsQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Queries/Space/SpaceCdnsQuery.ts
|
|
2
|
-
var e = "\n query SpaceCdnsQuery($filter: CdnInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceCdns(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n edges {\n identifier\n name\n domain\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n from\n to\n total\n }\n }\n }\n";
|
|
2
|
+
var e = "\n query SpaceCdnsQuery($filter: CdnInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceCdns(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n edges {\n identifier\n name\n domain\n visibility\n provider\n region\n endpoint\n bucketName\n prefix\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n from\n to\n total\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -2,5 +2,5 @@ import { FunctionsDraft } from '../../../../../types';
|
|
|
2
2
|
export type TSpaceFunctionsQuery = {
|
|
3
3
|
SpaceFunctions: FunctionsDraft;
|
|
4
4
|
};
|
|
5
|
-
declare const SpaceFunctionsQuery = "\n query SpaceFunctionsQuery {\n SpaceFunctions {\n files\n version\n manifest\n }\n }\n";
|
|
5
|
+
declare const SpaceFunctionsQuery = "\n query SpaceFunctionsQuery {\n SpaceFunctions {\n files\n version\n manifest\n offer {\n template\n }\n }\n }\n";
|
|
6
6
|
export default SpaceFunctionsQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.ts
|
|
2
|
-
var e = "\n query SpaceFunctionsQuery {\n SpaceFunctions {\n files\n version\n manifest\n }\n }\n";
|
|
2
|
+
var e = "\n query SpaceFunctionsQuery {\n SpaceFunctions {\n files\n version\n manifest\n offer {\n template\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -4,5 +4,5 @@ export type TSpaceResourcesQuery = {
|
|
|
4
4
|
resources: Resource[];
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
declare const SpaceResourcesQuery = "\n query SpaceResourcesQuery($cdnIdentifier: String!, $filter: ResourceInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceResources(cdnIdentifier: $cdnIdentifier, filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n resources {\n id\n cdnIdentifier\n name\n type\n size\n path\n createdAt\n updatedAt\n }\n }\n }\n";
|
|
7
|
+
declare const SpaceResourcesQuery = "\n query SpaceResourcesQuery($cdnIdentifier: String!, $filter: ResourceInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceResources(cdnIdentifier: $cdnIdentifier, filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n resources {\n id\n cdnIdentifier\n name\n type\n size\n path\n usedBy\n createdAt\n updatedAt\n }\n }\n }\n";
|
|
8
8
|
export default SpaceResourcesQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Queries/Space/SpaceResourcesQuery.ts
|
|
2
|
-
var e = "\n query SpaceResourcesQuery($cdnIdentifier: String!, $filter: ResourceInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceResources(cdnIdentifier: $cdnIdentifier, filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n resources {\n id\n cdnIdentifier\n name\n type\n size\n path\n createdAt\n updatedAt\n }\n }\n }\n";
|
|
2
|
+
var e = "\n query SpaceResourcesQuery($cdnIdentifier: String!, $filter: ResourceInput, $page: Int, $pageSize: Int, $offset: Int) {\n SpaceResources(cdnIdentifier: $cdnIdentifier, filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {\n resources {\n id\n cdnIdentifier\n name\n type\n size\n path\n usedBy\n createdAt\n updatedAt\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -32,12 +32,23 @@ export type FunctionsDraft = {
|
|
|
32
32
|
/** Hand it back as `base` when saving: a draft that moved on since is refused rather than overwritten. */
|
|
33
33
|
version: string;
|
|
34
34
|
manifest: FunctionsManifest | null;
|
|
35
|
+
/**
|
|
36
|
+
* The functions the space's template brought, not installed yet: server code is kept on the space's own private CDN,
|
|
37
|
+
* and a space created from a template has none at first. `template` names it, for the notice that offers to install
|
|
38
|
+
* them.
|
|
39
|
+
*/
|
|
40
|
+
offer: {
|
|
41
|
+
template: string;
|
|
42
|
+
} | null;
|
|
35
43
|
};
|
|
36
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Why nothing was saved: `version`, the draft moved on since the copy this save started from; `storage`, the space has
|
|
46
|
+
* no private CDN to keep server code on (the error says how to add one).
|
|
47
|
+
*/
|
|
37
48
|
export type FunctionsRefusal = {
|
|
38
49
|
status: 409;
|
|
39
50
|
error: string;
|
|
40
|
-
limit: 'version';
|
|
51
|
+
limit: 'version' | 'storage';
|
|
41
52
|
};
|
|
42
53
|
export type FunctionsSaveResult = {
|
|
43
54
|
ok: true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PluginManifest } from './PluginTypes';
|
|
2
2
|
import { SpaceCredential } from './SpaceTypes';
|
|
3
|
-
|
|
3
|
+
/** `server`: a file of the space's server code — its functions or runtime — on a private CDN. */
|
|
4
|
+
export type ResourceType = 'image' | 'video' | 'document' | 'application' | 'plugin' | 'template' | 'server';
|
|
4
5
|
export type Resource = {
|
|
5
6
|
id: string;
|
|
6
7
|
cdnIdentifier: string;
|
|
@@ -8,6 +9,8 @@ export type Resource = {
|
|
|
8
9
|
path: string;
|
|
9
10
|
type: Exclude<ResourceType, 'plugin'>;
|
|
10
11
|
size: number;
|
|
12
|
+
/** For server code, the versions of the space that run it (`draft`, `production r3`); it cannot be removed while any do. */
|
|
13
|
+
usedBy: string[];
|
|
11
14
|
} | {
|
|
12
15
|
id: string;
|
|
13
16
|
cdnIdentifier: string;
|
|
@@ -16,6 +19,7 @@ export type Resource = {
|
|
|
16
19
|
type: 'plugin';
|
|
17
20
|
size: number;
|
|
18
21
|
metadata: PluginManifest;
|
|
22
|
+
usedBy: string[];
|
|
19
23
|
};
|
|
20
24
|
export type ResourceWithFile = Resource & {
|
|
21
25
|
file: File;
|
|
@@ -25,10 +29,16 @@ export type ResourceFile = File & {
|
|
|
25
29
|
resourceType: ResourceType;
|
|
26
30
|
metadata?: PluginManifest;
|
|
27
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Who may read a CDN's files. `public`: anybody, at its domain — plugins, images, templates. `private`: only the platform,
|
|
34
|
+
* with its credential — the space's server code. A private CDN has no domain.
|
|
35
|
+
*/
|
|
36
|
+
export type CdnVisibility = 'public' | 'private';
|
|
28
37
|
export type Cdn = {
|
|
29
38
|
identifier: string;
|
|
30
39
|
name: string;
|
|
31
40
|
domain: string;
|
|
41
|
+
visibility: CdnVisibility;
|
|
32
42
|
provider: 's3' | 'r2';
|
|
33
43
|
region: string;
|
|
34
44
|
endpoint?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.6",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -795,6 +795,10 @@
|
|
|
795
795
|
"types": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.d.ts",
|
|
796
796
|
"import": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs"
|
|
797
797
|
},
|
|
798
|
+
"./network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation": {
|
|
799
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.d.ts",
|
|
800
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.mjs"
|
|
801
|
+
},
|
|
798
802
|
"./network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation": {
|
|
799
803
|
"types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts",
|
|
800
804
|
"import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs"
|