@plitzi/sdk-shared 0.37.5 → 0.37.7
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 +41 -0
- package/dist/builder/contexts/BuilderContext.d.ts +5 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.mjs +25 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.d.ts +2 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +9 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +9 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.d.ts +5 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.mjs +27 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts +2 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +9 -2
- 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/Space/resources/SpaceAddResourceMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.d.ts +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/index.d.ts +8 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +142 -134
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +20 -2
- 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/network/graphql/builder/fragments/cdnFields.d.ts +5 -0
- package/dist/network/graphql/builder/fragments/cdnFields.mjs +4 -0
- package/dist/types/FunctionTypes.d.ts +13 -2
- package/dist/types/ResourceTypes.d.ts +27 -4
- package/package.json +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @plitzi/sdk-shared
|
|
2
2
|
|
|
3
|
+
## 0.37.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4d10e0a: ## CDNs with several buckets
|
|
8
|
+
|
|
9
|
+
A CDN is the customer's own storage account — S3 or R2, which they run and pay for — and now holds any number of
|
|
10
|
+
buckets, each with its own configuration: its name at the provider, its region, `public` (served at its domain) or
|
|
11
|
+
`private` (no domain, read only by the platform with the CDN's credential).
|
|
12
|
+
|
|
13
|
+
- `Cdn` carries `buckets: CdnBucket[]`; `domain`, `visibility`, `bucketName` and `region` moved from the CDN to its
|
|
14
|
+
buckets. `Resource.bucketIdentifier` names the bucket a file is in.
|
|
15
|
+
- `SpaceAddCdn(name, provider, endpoint, buckets)` creates the account with its buckets; `SpaceUpdateCdn` changes the
|
|
16
|
+
account only. New `SpaceAddCdnBucket`, `SpaceUpdateCdnBucket` and `SpaceRemoveCdnBucket`.
|
|
17
|
+
- `SpaceResources`, `SpaceAddResource`, `SpaceRemoveResource` and `SpaceMoveResource` take `bucketIdentifier`.
|
|
18
|
+
- Server code — functions and runtime — goes in the space's oldest private bucket. A bucket that keeps code a version
|
|
19
|
+
runs can be neither made public, pointed at another bucket nor removed, and neither can its CDN.
|
|
20
|
+
- Builder: Resources shows each CDN with its buckets — add, edit and remove buckets, upload and browse per bucket; the
|
|
21
|
+
account (name, provider, endpoint, credential) is edited apart. Saving an element as a template picks a public
|
|
22
|
+
bucket (`elementAsTemplate({ cdnIdentifier, bucketIdentifier }, …)`).
|
|
23
|
+
- CLI: `plitzi upload plugin --bucket <identifier>` (with `--cdn` to narrow); only public buckets are offered, a private
|
|
24
|
+
one is refused.
|
|
25
|
+
|
|
26
|
+
## 0.37.6
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- d6c2a21: ## Server code on a private CDN
|
|
31
|
+
|
|
32
|
+
- **A CDN has a visibility**: `public` (the default — its files served at its domain: plugins, images, templates) or
|
|
33
|
+
`private` (no domain, read only by the platform with its credential). The builder's CDN form asks for it, and every
|
|
34
|
+
CDN now has **Settings** in Resources to change its configuration — until now a CDN could not be edited at all.
|
|
35
|
+
- **A space's server code is kept on its private CDN**, not in the platform's database: its functions' source and
|
|
36
|
+
bundle, and its runtime's packed code, named by what they hold. Saving functions or pushing a runtime to a space with
|
|
37
|
+
no private CDN is refused with how to add one (`FunctionsRefusal.limit: 'storage'`). Resources lists them under
|
|
38
|
+
**Server code** with the versions that run each (`Resource.usedBy`, `ResourceType` `server`); one in use cannot be
|
|
39
|
+
removed. A private CDN cannot take a page's file, and `plitzi upload plugin` offers only public CDNs.
|
|
40
|
+
- **A space made from a template** gets the template's functions as an offer (`FunctionsDraft.offer`): the Functions
|
|
41
|
+
panel installs them (`SpaceInstallTemplateFunctions`) once the space has a private CDN.
|
|
42
|
+
- Types: `Cdn.visibility`, `CdnVisibility`; `SpaceAddCdn` / `SpaceUpdateCdn` take `visibility` and a nullable `domain`.
|
|
43
|
+
|
|
3
44
|
## 0.37.5
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
|
@@ -18,7 +18,11 @@ export type BuilderContextValue = {
|
|
|
18
18
|
};
|
|
19
19
|
builderHandler: (event: EventBridgeEvent, ...data: unknown[]) => void;
|
|
20
20
|
updateElement: (elementId: string, attributeKey: string, attributeValue: unknown, category?: 'attributes' | 'definition') => void;
|
|
21
|
-
|
|
21
|
+
/** Saves an element as a template file in a public bucket of one of the space's CDNs. */
|
|
22
|
+
elementAsTemplate: (target: {
|
|
23
|
+
cdnIdentifier: string;
|
|
24
|
+
bucketIdentifier: string;
|
|
25
|
+
}, schema: Schema, style: Style, name: string, description: string, element: Element) => Promise<void>;
|
|
22
26
|
builderGetBaseElement: (otherBaseElementId?: string) => undefined | {
|
|
23
27
|
data: Element;
|
|
24
28
|
Plugin: ComponentPluginWithHOC | Record<string, ComponentPluginWithHOC>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Cdn } from '../../../../../../types';
|
|
2
|
+
export type TSpaceAddCdnBucketMutation = Cdn;
|
|
3
|
+
/** Adds a bucket to a CDN, with its own configuration; answers the CDN with all its buckets. */
|
|
4
|
+
declare const SpaceAddCdnBucketMutation = "\n mutation SpaceAddCdnBucketMutation(\n $cdnIdentifier: String!\n $name: String\n $bucketName: String!\n $region: String\n $visibility: String\n $domain: String\n ) {\n SpaceAddCdnBucket(\n cdnIdentifier: $cdnIdentifier\n name: $name\n bucketName: $bucketName\n region: $region\n visibility: $visibility\n domain: $domain\n ) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
5
|
+
export default SpaceAddCdnBucketMutation;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.ts
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceAddCdnBucketMutation(
|
|
5
|
+
$cdnIdentifier: String!
|
|
6
|
+
$name: String
|
|
7
|
+
$bucketName: String!
|
|
8
|
+
$region: String
|
|
9
|
+
$visibility: String
|
|
10
|
+
$domain: String
|
|
11
|
+
) {
|
|
12
|
+
SpaceAddCdnBucket(
|
|
13
|
+
cdnIdentifier: $cdnIdentifier
|
|
14
|
+
name: $name
|
|
15
|
+
bucketName: $bucketName
|
|
16
|
+
region: $region
|
|
17
|
+
visibility: $visibility
|
|
18
|
+
domain: $domain
|
|
19
|
+
) {
|
|
20
|
+
${e}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Cdn } from '../../../../../../types';
|
|
2
2
|
export type TSpaceAddCdnMutation = Cdn;
|
|
3
|
-
|
|
3
|
+
/** A CDN — the customer's storage account — with its buckets, each with its own configuration. */
|
|
4
|
+
declare const SpaceAddCdnMutation = "\n mutation SpaceAddCdnMutation($name: String!, $provider: String!, $endpoint: String, $buckets: [SpaceCdnBucketInput!]!) {\n SpaceAddCdn(name: $name, provider: $provider, endpoint: $endpoint, buckets: $buckets) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
4
5
|
export default SpaceAddCdnMutation;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
1
2
|
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.ts
|
|
2
|
-
var
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceAddCdnMutation($name: String!, $provider: String!, $endpoint: String, $buckets: [SpaceCdnBucketInput!]!) {
|
|
5
|
+
SpaceAddCdn(name: $name, provider: $provider, endpoint: $endpoint, buckets: $buckets) {
|
|
6
|
+
${e}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
3
10
|
//#endregion
|
|
4
|
-
export {
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Cdn } from '../../../../../../types';
|
|
2
|
+
export type TSpaceRemoveCdnBucketMutation = Cdn;
|
|
3
|
+
/** Takes a bucket off its CDN — its files stay in the provider's bucket; answers the CDN with the buckets left. */
|
|
4
|
+
declare const SpaceRemoveCdnBucketMutation = "\n mutation SpaceRemoveCdnBucketMutation($cdnIdentifier: String!, $identifier: String!) {\n SpaceRemoveCdnBucket(cdnIdentifier: $cdnIdentifier, identifier: $identifier) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
5
|
+
export default SpaceRemoveCdnBucketMutation;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.ts
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceRemoveCdnBucketMutation($cdnIdentifier: String!, $identifier: String!) {
|
|
5
|
+
SpaceRemoveCdnBucket(cdnIdentifier: $cdnIdentifier, identifier: $identifier) {
|
|
6
|
+
${e}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Cdn } from '../../../../../../types';
|
|
2
2
|
export type TSpaceSetCdnCredentialMutation = Cdn;
|
|
3
|
-
declare const SpaceSetCdnCredentialMutation = "\n mutation SpaceSetCdnCredentialMutation($identifier: String!, $credentialIdentifier: String!) {\n SpaceSetCdnCredential(identifier: $identifier, credentialIdentifier: $credentialIdentifier) {\n
|
|
3
|
+
declare const SpaceSetCdnCredentialMutation = "\n mutation SpaceSetCdnCredentialMutation($identifier: String!, $credentialIdentifier: String!) {\n SpaceSetCdnCredential(identifier: $identifier, credentialIdentifier: $credentialIdentifier) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
4
4
|
export default SpaceSetCdnCredentialMutation;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
1
2
|
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.ts
|
|
2
|
-
var
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceSetCdnCredentialMutation($identifier: String!, $credentialIdentifier: String!) {
|
|
5
|
+
SpaceSetCdnCredential(identifier: $identifier, credentialIdentifier: $credentialIdentifier) {
|
|
6
|
+
${e}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
3
10
|
//#endregion
|
|
4
|
-
export {
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Cdn } from '../../../../../../types';
|
|
2
|
+
export type TSpaceUpdateCdnBucketMutation = Cdn;
|
|
3
|
+
/** Changes a bucket’s configuration; answers the CDN with all its buckets. */
|
|
4
|
+
declare const SpaceUpdateCdnBucketMutation = "\n mutation SpaceUpdateCdnBucketMutation(\n $cdnIdentifier: String!\n $identifier: String!\n $name: String\n $bucketName: String!\n $region: String\n $visibility: String\n $domain: String\n ) {\n SpaceUpdateCdnBucket(\n cdnIdentifier: $cdnIdentifier\n identifier: $identifier\n name: $name\n bucketName: $bucketName\n region: $region\n visibility: $visibility\n domain: $domain\n ) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
5
|
+
export default SpaceUpdateCdnBucketMutation;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.ts
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceUpdateCdnBucketMutation(
|
|
5
|
+
$cdnIdentifier: String!
|
|
6
|
+
$identifier: String!
|
|
7
|
+
$name: String
|
|
8
|
+
$bucketName: String!
|
|
9
|
+
$region: String
|
|
10
|
+
$visibility: String
|
|
11
|
+
$domain: String
|
|
12
|
+
) {
|
|
13
|
+
SpaceUpdateCdnBucket(
|
|
14
|
+
cdnIdentifier: $cdnIdentifier
|
|
15
|
+
identifier: $identifier
|
|
16
|
+
name: $name
|
|
17
|
+
bucketName: $bucketName
|
|
18
|
+
region: $region
|
|
19
|
+
visibility: $visibility
|
|
20
|
+
domain: $domain
|
|
21
|
+
) {
|
|
22
|
+
${e}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Cdn } from '../../../../../../types';
|
|
2
2
|
export type TSpaceUpdateCdnMutation = Cdn;
|
|
3
|
-
|
|
3
|
+
/** A CDN's account — name, provider, endpoint. Its buckets change one by one. */
|
|
4
|
+
declare const SpaceUpdateCdnMutation = "\n mutation SpaceUpdateCdnMutation($identifier: String!, $name: String!, $provider: String!, $endpoint: String) {\n SpaceUpdateCdn(identifier: $identifier, name: $name, provider: $provider, endpoint: $endpoint) {\n \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n\n }\n }\n";
|
|
4
5
|
export default SpaceUpdateCdnMutation;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
1
2
|
//#region src/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.ts
|
|
2
|
-
var
|
|
3
|
+
var t = `
|
|
4
|
+
mutation SpaceUpdateCdnMutation($identifier: String!, $name: String!, $provider: String!, $endpoint: String) {
|
|
5
|
+
SpaceUpdateCdn(identifier: $identifier, name: $name, provider: $provider, endpoint: $endpoint) {
|
|
6
|
+
${e}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
3
10
|
//#endregion
|
|
4
|
-
export {
|
|
11
|
+
export { t 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 };
|
package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Resource } from '../../../../../../types';
|
|
2
2
|
export type TSpaceAddResourceMutation = Resource;
|
|
3
|
-
declare const SpaceAddResourceMutation = "\n mutation SpaceAddResourceMutation(\n $cdnIdentifier: String!\n $resource: Upload!\n $type: String!\n $compression: String\n $prefix: String\n ) {\n SpaceAddResource(\n cdnIdentifier: $cdnIdentifier\n resource: $resource\n type: $type\n compression: $compression\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
3
|
+
declare const SpaceAddResourceMutation = "\n mutation SpaceAddResourceMutation(\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $resource: Upload!\n $type: String!\n $compression: String\n $prefix: String\n ) {\n SpaceAddResource(\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n resource: $resource\n type: $type\n compression: $compression\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
4
4
|
export default SpaceAddResourceMutation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceAddResourceMutation(\n $cdnIdentifier: String!\n $resource: Upload!\n $type: String!\n $compression: String\n $prefix: String\n ) {\n SpaceAddResource(\n cdnIdentifier: $cdnIdentifier\n resource: $resource\n type: $type\n compression: $compression\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
2
|
+
var e = "\n mutation SpaceAddResourceMutation(\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $resource: Upload!\n $type: String!\n $compression: String\n $prefix: String\n ) {\n SpaceAddResource(\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n resource: $resource\n type: $type\n compression: $compression\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Resource } from '../../../../../../types';
|
|
2
2
|
export type TSpaceMoveResourceMutation = Resource;
|
|
3
|
-
declare const SpaceMoveResourceMutation = "\n mutation SpaceMoveResourceMutation($identifier: String
|
|
3
|
+
declare const SpaceMoveResourceMutation = "\n mutation SpaceMoveResourceMutation(\n $identifier: String!\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $prefix: String!\n ) {\n SpaceMoveResource(\n identifier: $identifier\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
4
4
|
export default SpaceMoveResourceMutation;
|
package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceMoveResourceMutation($identifier: String
|
|
2
|
+
var e = "\n mutation SpaceMoveResourceMutation(\n $identifier: String!\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $prefix: String!\n ) {\n SpaceMoveResource(\n identifier: $identifier\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n prefix: $prefix\n ) {\n id\n name\n path\n size\n type\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Resource } from '../../../../../../types';
|
|
2
2
|
export type TSpaceRemoveResourceMutation = Resource;
|
|
3
|
-
declare const SpaceRemoveResourceMutation = "\n mutation SpaceRemoveResourceMutation($identifier: String!, $cdnIdentifier: String!) {\n SpaceRemoveResource(identifier: $identifier, cdnIdentifier: $cdnIdentifier) {\n id\n }\n }\n";
|
|
3
|
+
declare const SpaceRemoveResourceMutation = "\n mutation SpaceRemoveResourceMutation($identifier: String!, $cdnIdentifier: String!, $bucketIdentifier: String!) {\n SpaceRemoveResource(identifier: $identifier, cdnIdentifier: $cdnIdentifier, bucketIdentifier: $bucketIdentifier) {\n id\n }\n }\n";
|
|
4
4
|
export default SpaceRemoveResourceMutation;
|
package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceRemoveResourceMutation($identifier: String!, $cdnIdentifier: String!) {\n SpaceRemoveResource(identifier: $identifier, cdnIdentifier: $cdnIdentifier) {\n id\n }\n }\n";
|
|
2
|
+
var e = "\n mutation SpaceRemoveResourceMutation($identifier: String!, $cdnIdentifier: String!, $bucketIdentifier: String!) {\n SpaceRemoveResource(identifier: $identifier, cdnIdentifier: $cdnIdentifier, bucketIdentifier: $bucketIdentifier) {\n id\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -6,9 +6,12 @@ import { TSpaceAddActionMutation } from './Space/actions/SpaceAddActionMutation'
|
|
|
6
6
|
import { TSpaceRemoveActionMutation } from './Space/actions/SpaceRemoveActionMutation';
|
|
7
7
|
import { TSpaceRunActionMutation } from './Space/actions/SpaceRunActionMutation';
|
|
8
8
|
import { TSpaceUpdateActionMutation } from './Space/actions/SpaceUpdateActionMutation';
|
|
9
|
+
import { TSpaceAddCdnBucketMutation } from './Space/cdns/SpaceAddCdnBucketMutation';
|
|
9
10
|
import { TSpaceAddCdnMutation } from './Space/cdns/SpaceAddCdnMutation';
|
|
11
|
+
import { TSpaceRemoveCdnBucketMutation } from './Space/cdns/SpaceRemoveCdnBucketMutation';
|
|
10
12
|
import { TSpaceRemoveCdnMutation } from './Space/cdns/SpaceRemoveCdnMutation';
|
|
11
13
|
import { TSpaceSetCdnCredentialMutation } from './Space/cdns/SpaceSetCdnCredentialMutation';
|
|
14
|
+
import { TSpaceUpdateCdnBucketMutation } from './Space/cdns/SpaceUpdateCdnBucketMutation';
|
|
12
15
|
import { TSpaceUpdateCdnMutation } from './Space/cdns/SpaceUpdateCdnMutation';
|
|
13
16
|
import { TSpaceAddConnectorMutation } from './Space/connectors/SpaceAddConnectorMutation';
|
|
14
17
|
import { TSpaceRemoveConnectorMutation } from './Space/connectors/SpaceRemoveConnectorMutation';
|
|
@@ -16,6 +19,7 @@ import { TSpaceUpdateConnectorMutation } from './Space/connectors/SpaceUpdateCon
|
|
|
16
19
|
import { TSpaceAddPageFolderMutation } from './Space/folders/SpaceAddPageFolderMutation';
|
|
17
20
|
import { TSpaceRemovePageFolderMutation } from './Space/folders/SpaceRemovePageFolderMutation';
|
|
18
21
|
import { TSpaceUpdatePageFolderMutation } from './Space/folders/SpaceUpdatePageFolderMutation';
|
|
22
|
+
import { TSpaceInstallTemplateFunctionsMutation } from './Space/functions/SpaceInstallTemplateFunctionsMutation';
|
|
19
23
|
import { TSpaceRemoveFunctionsMutation } from './Space/functions/SpaceRemoveFunctionsMutation';
|
|
20
24
|
import { TSpaceSaveFunctionsMutation } from './Space/functions/SpaceSaveFunctionsMutation';
|
|
21
25
|
import { TSpaceTryFunctionMutation } from './Space/functions/SpaceTryFunctionMutation';
|
|
@@ -63,12 +67,16 @@ export type BuilderMutationsMap = {
|
|
|
63
67
|
SpaceUpdateCdn: TSpaceUpdateCdnMutation;
|
|
64
68
|
SpaceSetCdnCredential: TSpaceSetCdnCredentialMutation;
|
|
65
69
|
SpaceRemoveCdn: TSpaceRemoveCdnMutation;
|
|
70
|
+
SpaceAddCdnBucket: TSpaceAddCdnBucketMutation;
|
|
71
|
+
SpaceUpdateCdnBucket: TSpaceUpdateCdnBucketMutation;
|
|
72
|
+
SpaceRemoveCdnBucket: TSpaceRemoveCdnBucketMutation;
|
|
66
73
|
SpaceAddAction: TSpaceAddActionMutation;
|
|
67
74
|
SpaceUpdateAction: TSpaceUpdateActionMutation;
|
|
68
75
|
SpaceRemoveAction: TSpaceRemoveActionMutation;
|
|
69
76
|
SpaceRunAction: TSpaceRunActionMutation;
|
|
70
77
|
SpaceSaveFunctions: TSpaceSaveFunctionsMutation;
|
|
71
78
|
SpaceRemoveFunctions: TSpaceRemoveFunctionsMutation;
|
|
79
|
+
SpaceInstallTemplateFunctions: TSpaceInstallTemplateFunctionsMutation;
|
|
72
80
|
SpaceTryFunction: TSpaceTryFunctionMutation;
|
|
73
81
|
SpaceAddConnector: TSpaceAddConnectorMutation;
|
|
74
82
|
SpaceUpdateConnector: TSpaceUpdateConnectorMutation;
|
|
@@ -27,144 +27,152 @@ import T from "./Space/actions/SpaceAddActionMutation.mjs";
|
|
|
27
27
|
import E from "./Space/actions/SpaceRemoveActionMutation.mjs";
|
|
28
28
|
import D from "./Space/actions/SpaceRunActionMutation.mjs";
|
|
29
29
|
import O from "./Space/actions/SpaceUpdateActionMutation.mjs";
|
|
30
|
-
import k from "./Space/cdns/
|
|
31
|
-
import A from "./Space/cdns/
|
|
32
|
-
import j from "./Space/cdns/
|
|
33
|
-
import M from "./Space/cdns/
|
|
34
|
-
import N from "./Space/
|
|
35
|
-
import P from "./Space/
|
|
36
|
-
import F from "./Space/
|
|
37
|
-
import I from "./Space/
|
|
38
|
-
import L from "./Space/
|
|
39
|
-
import R from "./Space/
|
|
40
|
-
import z from "./Space/
|
|
41
|
-
import B from "./Space/
|
|
42
|
-
import V from "./Space/
|
|
43
|
-
import H from "./Space/
|
|
44
|
-
import U from "./Space/
|
|
45
|
-
import W from "./Space/
|
|
46
|
-
import G from "./Space/
|
|
47
|
-
import K from "./Space/
|
|
48
|
-
import q from "./Space/
|
|
49
|
-
import J from "./Space/
|
|
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/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/
|
|
78
|
-
import Ce from "./Space/
|
|
79
|
-
import we from "./Space/
|
|
80
|
-
import Te from "./Space/
|
|
81
|
-
import Ee from "./
|
|
82
|
-
import De from "./
|
|
83
|
-
import Oe from "./
|
|
84
|
-
import ke from "./
|
|
85
|
-
import Ae from "./Style/
|
|
86
|
-
import je from "./Style/
|
|
87
|
-
import Me from "./Style/
|
|
88
|
-
import Ne from "./Style/
|
|
89
|
-
import Pe from "./Style/
|
|
90
|
-
import Fe from "./Style/
|
|
91
|
-
import Ie from "./Style/
|
|
92
|
-
import Le from "./Style/
|
|
93
|
-
import Re from "./Style/
|
|
94
|
-
import ze from "./Style/
|
|
95
|
-
import Be from "./Style/
|
|
30
|
+
import k from "./Space/cdns/SpaceAddCdnBucketMutation.mjs";
|
|
31
|
+
import A from "./Space/cdns/SpaceAddCdnMutation.mjs";
|
|
32
|
+
import j from "./Space/cdns/SpaceRemoveCdnBucketMutation.mjs";
|
|
33
|
+
import M from "./Space/cdns/SpaceRemoveCdnMutation.mjs";
|
|
34
|
+
import N from "./Space/cdns/SpaceSetCdnCredentialMutation.mjs";
|
|
35
|
+
import P from "./Space/cdns/SpaceUpdateCdnBucketMutation.mjs";
|
|
36
|
+
import F from "./Space/cdns/SpaceUpdateCdnMutation.mjs";
|
|
37
|
+
import I from "./Space/connectors/SpaceAddConnectorMutation.mjs";
|
|
38
|
+
import L from "./Space/connectors/SpaceRemoveConnectorMutation.mjs";
|
|
39
|
+
import R from "./Space/connectors/SpaceUpdateConnectorMutation.mjs";
|
|
40
|
+
import z from "./Space/credentials/SpaceAddCredentialMutation.mjs";
|
|
41
|
+
import B from "./Space/credentials/SpaceRemoveCredentialMutation.mjs";
|
|
42
|
+
import V from "./Space/credentials/SpaceUpdateCredentialMutation.mjs";
|
|
43
|
+
import H from "./Space/folders/SpaceAddPageFolderMutation.mjs";
|
|
44
|
+
import U from "./Space/folders/SpaceRemovePageFolderMutation.mjs";
|
|
45
|
+
import W from "./Space/folders/SpaceUpdatePageFolderMutation.mjs";
|
|
46
|
+
import G from "./Space/functions/SpaceInstallTemplateFunctionsMutation.mjs";
|
|
47
|
+
import K from "./Space/functions/SpaceRemoveFunctionsMutation.mjs";
|
|
48
|
+
import q from "./Space/functions/SpaceSaveFunctionsMutation.mjs";
|
|
49
|
+
import J from "./Space/functions/SpaceTryFunctionMutation.mjs";
|
|
50
|
+
import Y from "./Space/pages/SpaceAddPageMutation.mjs";
|
|
51
|
+
import X from "./Space/pages/SpaceHomePageMutation.mjs";
|
|
52
|
+
import Z from "./Space/pages/SpaceRemovePageMutation.mjs";
|
|
53
|
+
import Q from "./Space/pages/SpaceUpdatePageMutation.mjs";
|
|
54
|
+
import $ from "./Space/resources/SpaceAddResourceMutation.mjs";
|
|
55
|
+
import ee from "./Space/resources/SpaceMoveResourceMutation.mjs";
|
|
56
|
+
import te from "./Space/resources/SpaceRemoveResourceMutation.mjs";
|
|
57
|
+
import ne from "./Space/runtime/SpaceRemoveRuntimeMutation.mjs";
|
|
58
|
+
import re from "./Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs";
|
|
59
|
+
import ie from "./Space/runtime/SpaceSetRuntimeSizeMutation.mjs";
|
|
60
|
+
import ae from "./Space/runtime/SpaceSetRuntimeVariableMutation.mjs";
|
|
61
|
+
import oe from "./Space/runtime/SpaceStartRuntimeMutation.mjs";
|
|
62
|
+
import se from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
63
|
+
import ce from "./Space/SpaceAddElementMutation.mjs";
|
|
64
|
+
import le from "./Space/SpaceAddPluginMutation.mjs";
|
|
65
|
+
import ue from "./Space/SpaceAddTemplateMutation.mjs";
|
|
66
|
+
import de from "./Space/SpaceCloneElementMutation.mjs";
|
|
67
|
+
import fe from "./Space/SpaceDeployMutation.mjs";
|
|
68
|
+
import pe from "./Space/SpaceFixIssuesMutation.mjs";
|
|
69
|
+
import me from "./Space/SpaceMoveElementMutation.mjs";
|
|
70
|
+
import he from "./Space/SpacePublishMutation.mjs";
|
|
71
|
+
import ge from "./Space/SpaceRemoveElementMutation.mjs";
|
|
72
|
+
import _e from "./Space/SpaceRemovePluginMutation.mjs";
|
|
73
|
+
import ve from "./Space/SpaceRenameElementMutation.mjs";
|
|
74
|
+
import ye from "./Space/SpaceUpdateElementMutation.mjs";
|
|
75
|
+
import be from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
76
|
+
import xe from "./Space/SpaceUpdateMutation.mjs";
|
|
77
|
+
import Se from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
78
|
+
import Ce from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
79
|
+
import we from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
80
|
+
import Te from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
81
|
+
import Ee from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
82
|
+
import De from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
83
|
+
import Oe from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
84
|
+
import ke from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
85
|
+
import Ae from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
86
|
+
import je from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
87
|
+
import Me from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
88
|
+
import Ne from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
89
|
+
import Pe from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
90
|
+
import Fe from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
91
|
+
import Ie from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
92
|
+
import Le from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
93
|
+
import Re from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
94
|
+
import ze from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
95
|
+
import Be from "./Style/StyleUpdateMutation.mjs";
|
|
96
|
+
import Ve from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
97
|
+
import He from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
98
|
+
import Ue from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
99
|
+
import We from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
96
100
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
97
|
-
var
|
|
98
|
-
SpaceUpdate:
|
|
99
|
-
SpaceUpdateSchema:
|
|
100
|
-
SpaceAddPage:
|
|
101
|
-
SpaceHomePage:
|
|
102
|
-
SpaceUpdatePage:
|
|
103
|
-
SpaceRemovePage:
|
|
104
|
-
SpaceAddPageFolder:
|
|
105
|
-
SpaceUpdatePageFolder:
|
|
106
|
-
SpaceRemovePageFolder:
|
|
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:
|
|
124
|
-
SpaceAddCdn:
|
|
125
|
-
SpaceUpdateCdn:
|
|
126
|
-
SpaceSetCdnCredential:
|
|
127
|
-
SpaceRemoveCdn:
|
|
101
|
+
var Ge = {
|
|
102
|
+
SpaceUpdate: xe,
|
|
103
|
+
SpaceUpdateSchema: Ce,
|
|
104
|
+
SpaceAddPage: Y,
|
|
105
|
+
SpaceHomePage: X,
|
|
106
|
+
SpaceUpdatePage: Q,
|
|
107
|
+
SpaceRemovePage: Z,
|
|
108
|
+
SpaceAddPageFolder: H,
|
|
109
|
+
SpaceUpdatePageFolder: W,
|
|
110
|
+
SpaceRemovePageFolder: U,
|
|
111
|
+
SpaceAddVariable: Te,
|
|
112
|
+
SpaceUpdateVariable: De,
|
|
113
|
+
SpaceRemoveVariable: Ee,
|
|
114
|
+
SpaceAddElement: ce,
|
|
115
|
+
SpaceUpdateElement: ye,
|
|
116
|
+
SpaceRenameElement: ve,
|
|
117
|
+
SpaceUpdateElements: be,
|
|
118
|
+
SpaceRemoveElement: ge,
|
|
119
|
+
SpaceMoveElement: me,
|
|
120
|
+
SpaceCloneElement: de,
|
|
121
|
+
SpaceAddTemplate: ue,
|
|
122
|
+
SpaceAddPlugin: le,
|
|
123
|
+
SpaceUpdatePlugin: Se,
|
|
124
|
+
SpaceRemovePlugin: _e,
|
|
125
|
+
SpaceAddResource: $,
|
|
126
|
+
SpaceMoveResource: ee,
|
|
127
|
+
SpaceRemoveResource: te,
|
|
128
|
+
SpaceAddCdn: A,
|
|
129
|
+
SpaceUpdateCdn: F,
|
|
130
|
+
SpaceSetCdnCredential: N,
|
|
131
|
+
SpaceRemoveCdn: M,
|
|
132
|
+
SpaceAddCdnBucket: k,
|
|
133
|
+
SpaceUpdateCdnBucket: P,
|
|
134
|
+
SpaceRemoveCdnBucket: j,
|
|
128
135
|
SpaceAddAction: T,
|
|
129
136
|
SpaceUpdateAction: O,
|
|
130
137
|
SpaceRemoveAction: E,
|
|
131
138
|
SpaceRunAction: D,
|
|
132
|
-
SpaceSaveFunctions:
|
|
133
|
-
SpaceRemoveFunctions:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
139
|
+
SpaceSaveFunctions: q,
|
|
140
|
+
SpaceRemoveFunctions: K,
|
|
141
|
+
SpaceInstallTemplateFunctions: G,
|
|
142
|
+
SpaceTryFunction: J,
|
|
143
|
+
SpaceAddConnector: I,
|
|
144
|
+
SpaceUpdateConnector: R,
|
|
145
|
+
SpaceRemoveConnector: L,
|
|
146
|
+
SpaceAddCredential: z,
|
|
147
|
+
SpaceUpdateCredential: V,
|
|
148
|
+
SpaceRemoveCredential: B,
|
|
149
|
+
SpaceAddVisitor: Oe,
|
|
150
|
+
SpaceRemoveVisitor: ke,
|
|
151
|
+
SpaceSetRuntimeVariable: ae,
|
|
152
|
+
SpaceSetRuntimeSize: ie,
|
|
153
|
+
SpaceStartRuntime: oe,
|
|
154
|
+
SpaceStopRuntime: se,
|
|
155
|
+
SpaceRemoveRuntimeVariable: re,
|
|
156
|
+
SpaceRemoveRuntime: ne,
|
|
157
|
+
SpacePublish: he,
|
|
158
|
+
SpaceFixIssues: pe,
|
|
159
|
+
SpaceDeploy: fe,
|
|
160
|
+
SpaceUpdateSettings: we,
|
|
161
|
+
StyleAddSelector: Ne,
|
|
162
|
+
StyleUpdateSelector: Ie,
|
|
163
|
+
StyleRemoveSelector: Pe,
|
|
164
|
+
StyleRemoveSelectors: Fe,
|
|
165
|
+
StyleAddSelectorVariable: Le,
|
|
166
|
+
StyleUpdateSelectorVariable: ze,
|
|
167
|
+
StyleRemoveSelectorVariable: Re,
|
|
168
|
+
StyleAddFont: Ae,
|
|
169
|
+
StyleUpdateFont: Me,
|
|
170
|
+
StyleRemoveFont: je,
|
|
171
|
+
StyleAddVariable: He,
|
|
172
|
+
StyleUpdateVariable: We,
|
|
173
|
+
StyleRemoveVariable: Ue,
|
|
174
|
+
StyleUpdate: Be,
|
|
175
|
+
StyleUpdateSettings: Ve,
|
|
168
176
|
SegmentAdd: e,
|
|
169
177
|
SegmentUpdate: i,
|
|
170
178
|
SegmentRemove: r,
|
|
@@ -192,4 +200,4 @@ var Ve = {
|
|
|
192
200
|
SegmentPublish: n
|
|
193
201
|
};
|
|
194
202
|
//#endregion
|
|
195
|
-
export {
|
|
203
|
+
export { Ge 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
|
|
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 \n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\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,22 @@
|
|
|
1
|
+
import { CDN_FIELDS as e } from "../../fragments/cdnFields.mjs";
|
|
1
2
|
//#region src/network/graphql/builder/Queries/Space/SpaceCdnsQuery.ts
|
|
2
|
-
var
|
|
3
|
+
var t = `
|
|
4
|
+
query SpaceCdnsQuery($filter: CdnInput, $page: Int, $pageSize: Int, $offset: Int) {
|
|
5
|
+
SpaceCdns(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {
|
|
6
|
+
edges {
|
|
7
|
+
${e}
|
|
8
|
+
createdAt
|
|
9
|
+
updatedAt
|
|
10
|
+
}
|
|
11
|
+
pageInfo {
|
|
12
|
+
hasPrevPage
|
|
13
|
+
hasNextPage
|
|
14
|
+
from
|
|
15
|
+
to
|
|
16
|
+
total
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
3
21
|
//#endregion
|
|
4
|
-
export {
|
|
22
|
+
export { t 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
|
|
7
|
+
declare const SpaceResourcesQuery = "\n query SpaceResourcesQuery(\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $filter: ResourceInput\n $page: Int\n $pageSize: Int\n $offset: Int\n ) {\n SpaceResources(\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n filter: $filter\n page: $page\n pageSize: $pageSize\n offset: $offset\n ) {\n resources {\n id\n cdnIdentifier\n bucketIdentifier\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
|
|
2
|
+
var e = "\n query SpaceResourcesQuery(\n $cdnIdentifier: String!\n $bucketIdentifier: String!\n $filter: ResourceInput\n $page: Int\n $pageSize: Int\n $offset: Int\n ) {\n SpaceResources(\n cdnIdentifier: $cdnIdentifier\n bucketIdentifier: $bucketIdentifier\n filter: $filter\n page: $page\n pageSize: $pageSize\n offset: $offset\n ) {\n resources {\n id\n cdnIdentifier\n bucketIdentifier\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 };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every CDN document selects of a CDN — its account and its buckets — so the list and every mutation that answers
|
|
3
|
+
* a CDN read it the same way.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CDN_FIELDS = "\n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/fragments/cdnFields.ts
|
|
2
|
+
var e = "\n identifier\n name\n provider\n endpoint\n prefix\n credential {\n identifier\n }\n buckets {\n identifier\n name\n bucketName\n region\n visibility\n domain\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as CDN_FIELDS };
|
|
@@ -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 in the space's own private
|
|
37
|
+
* bucket, and a space created from a template has none at first. `template` names it, for the notice that offers to
|
|
38
|
+
* install 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 bucket to keep server code in (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,21 +1,28 @@
|
|
|
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 — in a private bucket. */
|
|
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
|
+
/** Which of the CDN's buckets it is in. */
|
|
9
|
+
bucketIdentifier: string;
|
|
7
10
|
name: string;
|
|
8
11
|
path: string;
|
|
9
12
|
type: Exclude<ResourceType, 'plugin'>;
|
|
10
13
|
size: number;
|
|
14
|
+
/** For server code, the versions of the space that run it (`draft`, `production r3`); it cannot be removed while any do. */
|
|
15
|
+
usedBy: string[];
|
|
11
16
|
} | {
|
|
12
17
|
id: string;
|
|
13
18
|
cdnIdentifier: string;
|
|
19
|
+
bucketIdentifier: string;
|
|
14
20
|
name: string;
|
|
15
21
|
path: string;
|
|
16
22
|
type: 'plugin';
|
|
17
23
|
size: number;
|
|
18
24
|
metadata: PluginManifest;
|
|
25
|
+
usedBy: string[];
|
|
19
26
|
};
|
|
20
27
|
export type ResourceWithFile = Resource & {
|
|
21
28
|
file: File;
|
|
@@ -25,16 +32,32 @@ export type ResourceFile = File & {
|
|
|
25
32
|
resourceType: ResourceType;
|
|
26
33
|
metadata?: PluginManifest;
|
|
27
34
|
};
|
|
28
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Who may read a bucket's files. `public`: anybody, at its domain — plugins, images, templates. `private`: only the
|
|
37
|
+
* platform, with its CDN's credential — the space's server code. A private bucket has no domain.
|
|
38
|
+
*/
|
|
39
|
+
export type CdnVisibility = 'public' | 'private';
|
|
40
|
+
/** One bucket of a CDN, with its own configuration. */
|
|
41
|
+
export type CdnBucket = {
|
|
29
42
|
identifier: string;
|
|
30
43
|
name: string;
|
|
44
|
+
/** The bucket as the provider knows it. */
|
|
45
|
+
bucketName: string;
|
|
46
|
+
/** An S3 bucket's own region; `auto` on R2. */
|
|
47
|
+
region: string;
|
|
48
|
+
visibility: CdnVisibility;
|
|
49
|
+
/** Where a public bucket's files are served; empty for a private one. */
|
|
31
50
|
domain: string;
|
|
51
|
+
};
|
|
52
|
+
/** A space's storage account — the customer's own, which they run and pay for — and its buckets. */
|
|
53
|
+
export type Cdn = {
|
|
54
|
+
identifier: string;
|
|
55
|
+
name: string;
|
|
32
56
|
provider: 's3' | 'r2';
|
|
33
|
-
region: string;
|
|
34
57
|
endpoint?: string;
|
|
35
|
-
bucketName: string;
|
|
36
58
|
prefix: string;
|
|
37
59
|
credential?: SpaceCredential;
|
|
60
|
+
buckets: CdnBucket[];
|
|
38
61
|
createdAt: number;
|
|
39
62
|
updatedAt: number;
|
|
40
63
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.7",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -743,10 +743,18 @@
|
|
|
743
743
|
"types": "./dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.d.ts",
|
|
744
744
|
"import": "./dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs"
|
|
745
745
|
},
|
|
746
|
+
"./network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation": {
|
|
747
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.d.ts",
|
|
748
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.mjs"
|
|
749
|
+
},
|
|
746
750
|
"./network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation": {
|
|
747
751
|
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.d.ts",
|
|
748
752
|
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs"
|
|
749
753
|
},
|
|
754
|
+
"./network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation": {
|
|
755
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.d.ts",
|
|
756
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.mjs"
|
|
757
|
+
},
|
|
750
758
|
"./network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation": {
|
|
751
759
|
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.d.ts",
|
|
752
760
|
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs"
|
|
@@ -755,6 +763,10 @@
|
|
|
755
763
|
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.d.ts",
|
|
756
764
|
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs"
|
|
757
765
|
},
|
|
766
|
+
"./network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation": {
|
|
767
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.d.ts",
|
|
768
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.mjs"
|
|
769
|
+
},
|
|
758
770
|
"./network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation": {
|
|
759
771
|
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts",
|
|
760
772
|
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs"
|
|
@@ -795,6 +807,10 @@
|
|
|
795
807
|
"types": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.d.ts",
|
|
796
808
|
"import": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs"
|
|
797
809
|
},
|
|
810
|
+
"./network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation": {
|
|
811
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.d.ts",
|
|
812
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.mjs"
|
|
813
|
+
},
|
|
798
814
|
"./network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation": {
|
|
799
815
|
"types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts",
|
|
800
816
|
"import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs"
|
|
@@ -1039,6 +1055,10 @@
|
|
|
1039
1055
|
"types": "./dist/network/graphql/builder/Subscriptions/index.d.ts",
|
|
1040
1056
|
"import": "./dist/network/graphql/builder/Subscriptions/index.mjs"
|
|
1041
1057
|
},
|
|
1058
|
+
"./network/graphql/builder/fragments/cdnFields": {
|
|
1059
|
+
"types": "./dist/network/graphql/builder/fragments/cdnFields.d.ts",
|
|
1060
|
+
"import": "./dist/network/graphql/builder/fragments/cdnFields.mjs"
|
|
1061
|
+
},
|
|
1042
1062
|
"./network/graphql/builder/index": {
|
|
1043
1063
|
"types": "./dist/network/graphql/builder/index.d.ts",
|
|
1044
1064
|
"import": "./dist/network/graphql/builder/index.mjs"
|