@plitzi/sdk-shared 0.37.6 → 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 +23 -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/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 +6 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +142 -136
- 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/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 +4 -4
- package/dist/types/ResourceTypes.d.ts +20 -7
- package/package.json +17 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
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
|
+
|
|
3
26
|
## 0.37.6
|
|
4
27
|
|
|
5
28
|
### 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 };
|
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';
|
|
@@ -64,6 +67,9 @@ export type BuilderMutationsMap = {
|
|
|
64
67
|
SpaceUpdateCdn: TSpaceUpdateCdnMutation;
|
|
65
68
|
SpaceSetCdnCredential: TSpaceSetCdnCredentialMutation;
|
|
66
69
|
SpaceRemoveCdn: TSpaceRemoveCdnMutation;
|
|
70
|
+
SpaceAddCdnBucket: TSpaceAddCdnBucketMutation;
|
|
71
|
+
SpaceUpdateCdnBucket: TSpaceUpdateCdnBucketMutation;
|
|
72
|
+
SpaceRemoveCdnBucket: TSpaceRemoveCdnBucketMutation;
|
|
67
73
|
SpaceAddAction: TSpaceAddActionMutation;
|
|
68
74
|
SpaceUpdateAction: TSpaceUpdateActionMutation;
|
|
69
75
|
SpaceRemoveAction: TSpaceRemoveActionMutation;
|
|
@@ -27,146 +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/functions/
|
|
47
|
-
import K from "./Space/
|
|
48
|
-
import q from "./Space/
|
|
49
|
-
import J from "./Space/
|
|
50
|
-
import Y from "./Space/pages/
|
|
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/runtime/
|
|
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 "./Space/
|
|
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/selectors/
|
|
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/
|
|
96
|
-
import Ve 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";
|
|
97
100
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
98
|
-
var
|
|
99
|
-
SpaceUpdate:
|
|
100
|
-
SpaceUpdateSchema:
|
|
101
|
-
SpaceAddPage:
|
|
102
|
-
SpaceHomePage:
|
|
103
|
-
SpaceUpdatePage:
|
|
104
|
-
SpaceRemovePage:
|
|
105
|
-
SpaceAddPageFolder:
|
|
106
|
-
SpaceUpdatePageFolder:
|
|
107
|
-
SpaceRemovePageFolder:
|
|
108
|
-
SpaceAddVariable:
|
|
109
|
-
SpaceUpdateVariable:
|
|
110
|
-
SpaceRemoveVariable:
|
|
111
|
-
SpaceAddElement:
|
|
112
|
-
SpaceUpdateElement:
|
|
113
|
-
SpaceRenameElement:
|
|
114
|
-
SpaceUpdateElements:
|
|
115
|
-
SpaceRemoveElement:
|
|
116
|
-
SpaceMoveElement:
|
|
117
|
-
SpaceCloneElement:
|
|
118
|
-
SpaceAddTemplate:
|
|
119
|
-
SpaceAddPlugin:
|
|
120
|
-
SpaceUpdatePlugin:
|
|
121
|
-
SpaceRemovePlugin:
|
|
122
|
-
SpaceAddResource:
|
|
123
|
-
SpaceMoveResource:
|
|
124
|
-
SpaceRemoveResource:
|
|
125
|
-
SpaceAddCdn:
|
|
126
|
-
SpaceUpdateCdn:
|
|
127
|
-
SpaceSetCdnCredential:
|
|
128
|
-
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,
|
|
129
135
|
SpaceAddAction: T,
|
|
130
136
|
SpaceUpdateAction: O,
|
|
131
137
|
SpaceRemoveAction: E,
|
|
132
138
|
SpaceRunAction: D,
|
|
133
|
-
SpaceSaveFunctions:
|
|
134
|
-
SpaceRemoveFunctions:
|
|
135
|
-
SpaceInstallTemplateFunctions:
|
|
136
|
-
SpaceTryFunction:
|
|
137
|
-
SpaceAddConnector:
|
|
138
|
-
SpaceUpdateConnector:
|
|
139
|
-
SpaceRemoveConnector:
|
|
140
|
-
SpaceAddCredential:
|
|
141
|
-
SpaceUpdateCredential:
|
|
142
|
-
SpaceRemoveCredential:
|
|
143
|
-
SpaceAddVisitor:
|
|
144
|
-
SpaceRemoveVisitor:
|
|
145
|
-
SpaceSetRuntimeVariable:
|
|
146
|
-
SpaceSetRuntimeSize:
|
|
147
|
-
SpaceStartRuntime:
|
|
148
|
-
SpaceStopRuntime:
|
|
149
|
-
SpaceRemoveRuntimeVariable:
|
|
150
|
-
SpaceRemoveRuntime:
|
|
151
|
-
SpacePublish:
|
|
152
|
-
SpaceFixIssues:
|
|
153
|
-
SpaceDeploy:
|
|
154
|
-
SpaceUpdateSettings:
|
|
155
|
-
StyleAddSelector:
|
|
156
|
-
StyleUpdateSelector:
|
|
157
|
-
StyleRemoveSelector:
|
|
158
|
-
StyleRemoveSelectors:
|
|
159
|
-
StyleAddSelectorVariable:
|
|
160
|
-
StyleUpdateSelectorVariable:
|
|
161
|
-
StyleRemoveSelectorVariable:
|
|
162
|
-
StyleAddFont:
|
|
163
|
-
StyleUpdateFont:
|
|
164
|
-
StyleRemoveFont:
|
|
165
|
-
StyleAddVariable:
|
|
166
|
-
StyleUpdateVariable:
|
|
167
|
-
StyleRemoveVariable:
|
|
168
|
-
StyleUpdate:
|
|
169
|
-
StyleUpdateSettings:
|
|
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,
|
|
170
176
|
SegmentAdd: e,
|
|
171
177
|
SegmentUpdate: i,
|
|
172
178
|
SegmentRemove: r,
|
|
@@ -194,4 +200,4 @@ var He = {
|
|
|
194
200
|
SegmentPublish: n
|
|
195
201
|
};
|
|
196
202
|
//#endregion
|
|
197
|
-
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 };
|
|
@@ -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 };
|
|
@@ -33,9 +33,9 @@ export type FunctionsDraft = {
|
|
|
33
33
|
version: string;
|
|
34
34
|
manifest: FunctionsManifest | null;
|
|
35
35
|
/**
|
|
36
|
-
* The functions the space's template brought, not installed yet: server code is kept
|
|
37
|
-
* and a space created from a template has none at first. `template` names it, for the notice that offers to
|
|
38
|
-
* them.
|
|
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
39
|
*/
|
|
40
40
|
offer: {
|
|
41
41
|
template: string;
|
|
@@ -43,7 +43,7 @@ export type FunctionsDraft = {
|
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* Why nothing was saved: `version`, the draft moved on since the copy this save started from; `storage`, the space has
|
|
46
|
-
* no private
|
|
46
|
+
* no private bucket to keep server code in (the error says how to add one).
|
|
47
47
|
*/
|
|
48
48
|
export type FunctionsRefusal = {
|
|
49
49
|
status: 409;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PluginManifest } from './PluginTypes';
|
|
2
2
|
import { SpaceCredential } from './SpaceTypes';
|
|
3
|
-
/** `server`: a file of the space's server code — its functions or runtime —
|
|
3
|
+
/** `server`: a file of the space's server code — its functions or runtime — in a private bucket. */
|
|
4
4
|
export type ResourceType = 'image' | 'video' | 'document' | 'application' | 'plugin' | 'template' | 'server';
|
|
5
5
|
export type Resource = {
|
|
6
6
|
id: string;
|
|
7
7
|
cdnIdentifier: string;
|
|
8
|
+
/** Which of the CDN's buckets it is in. */
|
|
9
|
+
bucketIdentifier: string;
|
|
8
10
|
name: string;
|
|
9
11
|
path: string;
|
|
10
12
|
type: Exclude<ResourceType, 'plugin'>;
|
|
@@ -14,6 +16,7 @@ export type Resource = {
|
|
|
14
16
|
} | {
|
|
15
17
|
id: string;
|
|
16
18
|
cdnIdentifier: string;
|
|
19
|
+
bucketIdentifier: string;
|
|
17
20
|
name: string;
|
|
18
21
|
path: string;
|
|
19
22
|
type: 'plugin';
|
|
@@ -30,21 +33,31 @@ export type ResourceFile = File & {
|
|
|
30
33
|
metadata?: PluginManifest;
|
|
31
34
|
};
|
|
32
35
|
/**
|
|
33
|
-
* Who may read a
|
|
34
|
-
* with its credential — the space's server code. A private
|
|
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.
|
|
35
38
|
*/
|
|
36
39
|
export type CdnVisibility = 'public' | 'private';
|
|
37
|
-
|
|
40
|
+
/** One bucket of a CDN, with its own configuration. */
|
|
41
|
+
export type CdnBucket = {
|
|
38
42
|
identifier: string;
|
|
39
43
|
name: string;
|
|
40
|
-
|
|
44
|
+
/** The bucket as the provider knows it. */
|
|
45
|
+
bucketName: string;
|
|
46
|
+
/** An S3 bucket's own region; `auto` on R2. */
|
|
47
|
+
region: string;
|
|
41
48
|
visibility: CdnVisibility;
|
|
49
|
+
/** Where a public bucket's files are served; empty for a private one. */
|
|
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;
|
|
42
56
|
provider: 's3' | 'r2';
|
|
43
|
-
region: string;
|
|
44
57
|
endpoint?: string;
|
|
45
|
-
bucketName: string;
|
|
46
58
|
prefix: string;
|
|
47
59
|
credential?: SpaceCredential;
|
|
60
|
+
buckets: CdnBucket[];
|
|
48
61
|
createdAt: number;
|
|
49
62
|
updatedAt: number;
|
|
50
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"
|
|
@@ -1043,6 +1055,10 @@
|
|
|
1043
1055
|
"types": "./dist/network/graphql/builder/Subscriptions/index.d.ts",
|
|
1044
1056
|
"import": "./dist/network/graphql/builder/Subscriptions/index.mjs"
|
|
1045
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
|
+
},
|
|
1046
1062
|
"./network/graphql/builder/index": {
|
|
1047
1063
|
"types": "./dist/network/graphql/builder/index.d.ts",
|
|
1048
1064
|
"import": "./dist/network/graphql/builder/index.mjs"
|