@distilled.cloud/fly-io 1.0.0-rc.15 → 1.0.0-rc.16
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/lib/credentials.d.ts +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +43 -38
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -24
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +37 -37
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +31 -31
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +3 -3
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +89 -66
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +26 -25
- package/lib/retry.js.map +1 -1
- package/lib/services/addons.d.ts +0 -65
- package/lib/services/addons.d.ts.map +1 -1
- package/lib/services/addons.js +54 -561
- package/lib/services/machines.d.ts +25 -444
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +317 -2726
- package/lib/services/mpg.d.ts +1 -67
- package/lib/services/mpg.d.ts.map +1 -1
- package/lib/services/mpg.js +75 -448
- package/lib/services/sprites.d.ts +1 -125
- package/lib/services/sprites.d.ts.map +1 -1
- package/lib/services/sprites.js +146 -884
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +14 -14
- package/lib/traits.js.map +1 -1
- package/package.json +13 -9
- package/src/credentials.ts +18 -15
- package/src/errors.ts +26 -28
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +67 -36
- package/src/retry.ts +6 -4
- package/src/services/addons.ts +593 -692
- package/src/services/machines.ts +3332 -3364
- package/src/services/mpg.ts +582 -519
- package/src/services/sprites.ts +1008 -948
- package/src/traits.ts +8 -4
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -126
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/addons.js.map +0 -1
- package/lib/services/machines.js.map +0 -1
- package/lib/services/mpg.js.map +0 -1
- package/lib/services/sprites.js.map +0 -1
- package/lib/sprites-mint.test.d.ts +0 -2
- package/lib/sprites-mint.test.d.ts.map +0 -1
- package/lib/sprites-mint.test.js +0 -169
- package/lib/sprites-mint.test.js.map +0 -1
- package/src/protocol.test.ts +0 -214
- package/src/sprites-mint.test.ts +0 -228
package/lib/services/addons.js
CHANGED
|
@@ -1,568 +1,61 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (Fly GraphQL add-ons introspection
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (Fly GraphQL add-ons introspection -> smithy). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { CreateExtensionTosAgreementNotAuthorized, FlyIoParseError, UnknownFlyIoError, } from "../errors.js";
|
|
5
6
|
import { paginateRelay } from "../pagination.js";
|
|
6
7
|
import { FlyGraphqlProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
description: S.NullOr(S.String),
|
|
26
|
-
maxDataSize: S.NullOr(S.String),
|
|
27
|
-
pricePerMonth: S.NullOr(S.Number),
|
|
28
|
-
})).annotate({ identifier: "AddOnResponseAddOnPlan" });
|
|
29
|
-
export const AddOnResponseAddOnProvider = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
-
id: S.String,
|
|
31
|
-
name: S.NullOr(S.String),
|
|
32
|
-
displayName: S.NullOr(S.String),
|
|
33
|
-
tosUrl: S.NullOr(S.String),
|
|
34
|
-
tosAgreement: S.NullOr(S.String),
|
|
35
|
-
asyncProvisioning: S.Boolean,
|
|
36
|
-
autoProvision: S.Boolean,
|
|
37
|
-
beta: S.Boolean,
|
|
38
|
-
internal: S.Boolean,
|
|
39
|
-
selectName: S.Boolean,
|
|
40
|
-
selectRegion: S.Boolean,
|
|
41
|
-
selectReplicaRegions: S.Boolean,
|
|
42
|
-
detectPlatform: S.Boolean,
|
|
43
|
-
resourceName: S.String,
|
|
44
|
-
nameSuffix: S.NullOr(S.String),
|
|
45
|
-
provisioningInstructions: S.NullOr(S.String),
|
|
46
|
-
})).annotate({
|
|
47
|
-
identifier: "AddOnResponseAddOnProvider",
|
|
48
|
-
});
|
|
49
|
-
export const AddOnResponseOrganization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
-
id: S.String,
|
|
51
|
-
name: S.String,
|
|
52
|
-
slug: S.String,
|
|
53
|
-
rawSlug: S.String,
|
|
54
|
-
paidPlan: S.Boolean,
|
|
55
|
-
billable: S.Boolean,
|
|
56
|
-
provisionsBetaExtensions: S.Boolean,
|
|
57
|
-
})).annotate({
|
|
58
|
-
identifier: "AddOnResponseOrganization",
|
|
59
|
-
});
|
|
60
|
-
export const AddOnResponseApp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
61
|
-
id: S.String,
|
|
62
|
-
name: S.String,
|
|
63
|
-
})).annotate({ identifier: "AddOnResponseApp" });
|
|
64
|
-
export const AddOnResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
id: S.String,
|
|
66
|
-
name: S.NullOr(S.String),
|
|
67
|
-
primaryRegion: S.NullOr(S.String),
|
|
68
|
-
readRegions: S.NullOr(AddOnResponseReadRegionsList),
|
|
69
|
-
status: S.NullOr(S.String),
|
|
70
|
-
errorMessage: S.NullOr(S.String),
|
|
71
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
72
|
-
privateIp: S.NullOr(S.String),
|
|
73
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
74
|
-
ssoLink: S.NullOr(S.String),
|
|
75
|
-
environment: S.NullOr(S.Unknown),
|
|
76
|
-
options: S.NullOr(S.Unknown),
|
|
77
|
-
metadata: S.NullOr(S.Unknown),
|
|
78
|
-
createdAt: S.String,
|
|
79
|
-
updatedAt: S.String,
|
|
80
|
-
addOnPlan: S.NullOr(AddOnResponseAddOnPlan),
|
|
81
|
-
addOnPlanName: S.NullOr(S.String),
|
|
82
|
-
addOnProvider: S.NullOr(AddOnResponseAddOnProvider),
|
|
83
|
-
organization: AddOnResponseOrganization,
|
|
84
|
-
app: S.NullOr(AddOnResponseApp),
|
|
85
|
-
}).pipe(T.ResponsePath("addOn"))).annotate({ identifier: "AddOnResponse" });
|
|
86
|
-
export const AddOnType = S.String;
|
|
87
|
-
export const AddOnPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
88
|
-
after: S.optional(S.NullOr(S.String)),
|
|
89
|
-
before: S.optional(S.NullOr(S.String)),
|
|
90
|
-
first: S.optional(S.NullOr(S.Number)),
|
|
91
|
-
last: S.optional(S.NullOr(S.Number)),
|
|
92
|
-
type: S.optional(S.NullOr(AddOnType)),
|
|
93
|
-
})
|
|
94
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
95
|
-
.pipe(T.GraphQLOp({
|
|
96
|
-
query: "query addOnPlans($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOnPlans(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n }\n nodes {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
|
|
97
|
-
operationName: "addOnPlans",
|
|
98
|
-
type: "query",
|
|
99
|
-
}))).annotate({ identifier: "AddOnPlansRequest" });
|
|
100
|
-
export const AddOnPlansResponseEdgesItemNode = AddOnResponseAddOnPlan;
|
|
101
|
-
export const AddOnPlansResponseEdgesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
-
cursor: S.String,
|
|
103
|
-
node: S.NullOr(AddOnResponseAddOnPlan),
|
|
104
|
-
})).annotate({
|
|
105
|
-
identifier: "AddOnPlansResponseEdgesItem",
|
|
106
|
-
});
|
|
107
|
-
export const AddOnPlansResponseEdgesList = /*@__PURE__*/ S.Array(S.NullOr(AddOnPlansResponseEdgesItem));
|
|
108
|
-
export const AddOnPlansResponseNodesItem = AddOnResponseAddOnPlan;
|
|
109
|
-
export const AddOnPlansResponseNodesList = /*@__PURE__*/ S.Array(S.NullOr(AddOnResponseAddOnPlan));
|
|
110
|
-
export const AddOnPlansResponsePageInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
hasNextPage: S.Boolean,
|
|
112
|
-
hasPreviousPage: S.Boolean,
|
|
113
|
-
startCursor: S.NullOr(S.String),
|
|
114
|
-
endCursor: S.NullOr(S.String),
|
|
115
|
-
})).annotate({
|
|
116
|
-
identifier: "AddOnPlansResponsePageInfo",
|
|
117
|
-
});
|
|
118
|
-
export const AddOnPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
edges: S.NullOr(AddOnPlansResponseEdgesList),
|
|
120
|
-
nodes: S.NullOr(AddOnPlansResponseNodesList),
|
|
121
|
-
pageInfo: AddOnPlansResponsePageInfo,
|
|
122
|
-
totalCount: S.Number,
|
|
123
|
-
}).pipe(T.ResponsePath("addOnPlans"))).annotate({ identifier: "AddOnPlansResponse" });
|
|
124
|
-
export const AddOnProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
name: S.String,
|
|
126
|
-
})
|
|
127
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
128
|
-
.pipe(T.GraphQLOp({
|
|
129
|
-
query: "query addOnProvider($name: String!) {\n addOnProvider(name: $name) {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n}",
|
|
130
|
-
operationName: "addOnProvider",
|
|
131
|
-
type: "query",
|
|
132
|
-
}))).annotate({ identifier: "AddOnProviderRequest" });
|
|
133
|
-
export const AddOnProviderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
id: S.String,
|
|
135
|
-
name: S.NullOr(S.String),
|
|
136
|
-
displayName: S.NullOr(S.String),
|
|
137
|
-
tosUrl: S.NullOr(S.String),
|
|
138
|
-
tosAgreement: S.NullOr(S.String),
|
|
139
|
-
asyncProvisioning: S.Boolean,
|
|
140
|
-
autoProvision: S.Boolean,
|
|
141
|
-
beta: S.Boolean,
|
|
142
|
-
internal: S.Boolean,
|
|
143
|
-
selectName: S.Boolean,
|
|
144
|
-
selectRegion: S.Boolean,
|
|
145
|
-
selectReplicaRegions: S.Boolean,
|
|
146
|
-
detectPlatform: S.Boolean,
|
|
147
|
-
resourceName: S.String,
|
|
148
|
-
nameSuffix: S.NullOr(S.String),
|
|
149
|
-
provisioningInstructions: S.NullOr(S.String),
|
|
150
|
-
}).pipe(T.ResponsePath("addOnProvider"))).annotate({ identifier: "AddOnProviderResponse" });
|
|
151
|
-
export const AddOnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
-
after: S.optional(S.NullOr(S.String)),
|
|
153
|
-
before: S.optional(S.NullOr(S.String)),
|
|
154
|
-
first: S.optional(S.NullOr(S.Number)),
|
|
155
|
-
last: S.optional(S.NullOr(S.Number)),
|
|
156
|
-
type: S.optional(S.NullOr(AddOnType)),
|
|
157
|
-
})
|
|
158
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
159
|
-
.pipe(T.GraphQLOp({
|
|
160
|
-
query: "query addOns($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOns(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlan {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n addOnPlanName\n addOnProvider {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n organization {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n }\n app {\n id\n name\n }\n }\n }\n nodes {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
|
|
161
|
-
operationName: "addOns",
|
|
162
|
-
type: "query",
|
|
163
|
-
}))).annotate({ identifier: "AddOnsRequest" });
|
|
164
|
-
export const AddOnsResponseEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
165
|
-
export const AddOnsResponseEdgesItemNodeAddOnPlan = AddOnResponseAddOnPlan;
|
|
166
|
-
export const AddOnsResponseEdgesItemNodeAddOnProvider = AddOnResponseAddOnProvider;
|
|
167
|
-
export const AddOnsResponseEdgesItemNodeOrganization = AddOnResponseOrganization;
|
|
168
|
-
export const AddOnsResponseEdgesItemNodeApp = AddOnResponseApp;
|
|
169
|
-
export const AddOnsResponseEdgesItemNode = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
-
id: S.String,
|
|
171
|
-
name: S.NullOr(S.String),
|
|
172
|
-
primaryRegion: S.NullOr(S.String),
|
|
173
|
-
readRegions: S.NullOr(AddOnsResponseEdgesItemNodeReadRegionsList),
|
|
174
|
-
status: S.NullOr(S.String),
|
|
175
|
-
errorMessage: S.NullOr(S.String),
|
|
176
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
177
|
-
privateIp: S.NullOr(S.String),
|
|
178
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
179
|
-
ssoLink: S.NullOr(S.String),
|
|
180
|
-
environment: S.NullOr(S.Unknown),
|
|
181
|
-
options: S.NullOr(S.Unknown),
|
|
182
|
-
metadata: S.NullOr(S.Unknown),
|
|
183
|
-
createdAt: S.String,
|
|
184
|
-
updatedAt: S.String,
|
|
185
|
-
addOnPlan: S.NullOr(AddOnResponseAddOnPlan),
|
|
186
|
-
addOnPlanName: S.NullOr(S.String),
|
|
187
|
-
addOnProvider: S.NullOr(AddOnResponseAddOnProvider),
|
|
188
|
-
organization: AddOnResponseOrganization,
|
|
189
|
-
app: S.NullOr(AddOnResponseApp),
|
|
190
|
-
})).annotate({
|
|
191
|
-
identifier: "AddOnsResponseEdgesItemNode",
|
|
192
|
-
});
|
|
193
|
-
export const AddOnsResponseEdgesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
-
cursor: S.String,
|
|
195
|
-
node: S.NullOr(AddOnsResponseEdgesItemNode),
|
|
196
|
-
})).annotate({ identifier: "AddOnsResponseEdgesItem" });
|
|
197
|
-
export const AddOnsResponseEdgesList = /*@__PURE__*/ S.Array(S.NullOr(AddOnsResponseEdgesItem));
|
|
198
|
-
export const AddOnsResponseNodesItemReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
199
|
-
export const AddOnsResponseNodesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
200
|
-
id: S.String,
|
|
201
|
-
name: S.NullOr(S.String),
|
|
202
|
-
primaryRegion: S.NullOr(S.String),
|
|
203
|
-
readRegions: S.NullOr(AddOnsResponseNodesItemReadRegionsList),
|
|
204
|
-
status: S.NullOr(S.String),
|
|
205
|
-
errorMessage: S.NullOr(S.String),
|
|
206
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
207
|
-
privateIp: S.NullOr(S.String),
|
|
208
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
209
|
-
ssoLink: S.NullOr(S.String),
|
|
210
|
-
environment: S.NullOr(S.Unknown),
|
|
211
|
-
options: S.NullOr(S.Unknown),
|
|
212
|
-
metadata: S.NullOr(S.Unknown),
|
|
213
|
-
createdAt: S.String,
|
|
214
|
-
updatedAt: S.String,
|
|
215
|
-
addOnPlanName: S.NullOr(S.String),
|
|
216
|
-
})).annotate({ identifier: "AddOnsResponseNodesItem" });
|
|
217
|
-
export const AddOnsResponseNodesList = /*@__PURE__*/ S.Array(S.NullOr(AddOnsResponseNodesItem));
|
|
218
|
-
export const AddOnsResponsePageInfo = AddOnPlansResponsePageInfo;
|
|
219
|
-
export const AddOnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
220
|
-
edges: S.NullOr(AddOnsResponseEdgesList),
|
|
221
|
-
nodes: S.NullOr(AddOnsResponseNodesList),
|
|
222
|
-
pageInfo: AddOnPlansResponsePageInfo,
|
|
223
|
-
totalCount: S.Number,
|
|
224
|
-
}).pipe(T.ResponsePath("addOns"))).annotate({ identifier: "AddOnsResponse" });
|
|
225
|
-
export const AgreedToProviderTosRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
226
|
-
slug: S.String,
|
|
227
|
-
providerName: S.String,
|
|
228
|
-
})
|
|
229
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
230
|
-
.pipe(T.GraphQLOp({
|
|
231
|
-
query: "query agreedToProviderTos($slug: String!, $providerName: String!) {\n organization(slug: $slug) {\n agreedToProviderTos(providerName: $providerName)\n }\n}",
|
|
232
|
-
operationName: "agreedToProviderTos",
|
|
233
|
-
type: "query",
|
|
234
|
-
}))).annotate({
|
|
235
|
-
identifier: "AgreedToProviderTosRequest",
|
|
236
|
-
});
|
|
237
|
-
export const AgreedToProviderTosResponse = /*@__PURE__*/ S.suspend(() => S.NullOr(S.Boolean).pipe(T.GraphQLPayloadRoot(), T.ResponsePath("organization.agreedToProviderTos"))).annotate({
|
|
238
|
-
identifier: "AgreedToProviderTosResponse",
|
|
239
|
-
});
|
|
240
|
-
export const StringList = /*@__PURE__*/ S.Array(S.String);
|
|
241
|
-
export const CreateAddOnInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
-
type: AddOnType,
|
|
243
|
-
name: S.optional(S.NullOr(S.String)),
|
|
244
|
-
organizationId: S.optional(S.NullOr(S.String)),
|
|
245
|
-
appId: S.optional(S.NullOr(S.String)),
|
|
246
|
-
planId: S.optional(S.NullOr(S.String)),
|
|
247
|
-
primaryRegion: S.optional(S.NullOr(S.String)),
|
|
248
|
-
readRegions: S.optional(S.NullOr(StringList)),
|
|
249
|
-
options: S.optional(S.NullOr(S.Unknown)),
|
|
250
|
-
organizationPlanId: S.optional(S.NullOr(S.String)),
|
|
251
|
-
clientMutationId: S.optional(S.NullOr(S.String)),
|
|
252
|
-
})).annotate({ identifier: "CreateAddOnInput" });
|
|
253
|
-
export const CreateAddOnRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
-
input: CreateAddOnInput,
|
|
255
|
-
})
|
|
256
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
257
|
-
.pipe(T.GraphQLOp({
|
|
258
|
-
query: "mutation createAddOn($input: CreateAddOnInput!) {\n createAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
|
|
259
|
-
operationName: "createAddOn",
|
|
260
|
-
type: "mutation",
|
|
261
|
-
}))).annotate({ identifier: "CreateAddOnRequest" });
|
|
262
|
-
export const CreateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
263
|
-
export const CreateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
264
|
-
id: S.String,
|
|
265
|
-
name: S.NullOr(S.String),
|
|
266
|
-
primaryRegion: S.NullOr(S.String),
|
|
267
|
-
readRegions: S.NullOr(CreateAddOnResponseAddOnReadRegionsList),
|
|
268
|
-
status: S.NullOr(S.String),
|
|
269
|
-
errorMessage: S.NullOr(S.String),
|
|
270
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
271
|
-
privateIp: S.NullOr(S.String),
|
|
272
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
273
|
-
ssoLink: S.NullOr(S.String),
|
|
274
|
-
environment: S.NullOr(S.Unknown),
|
|
275
|
-
options: S.NullOr(S.Unknown),
|
|
276
|
-
metadata: S.NullOr(S.Unknown),
|
|
277
|
-
createdAt: S.String,
|
|
278
|
-
updatedAt: S.String,
|
|
279
|
-
addOnPlanName: S.NullOr(S.String),
|
|
280
|
-
})).annotate({ identifier: "CreateAddOnResponseAddOn" });
|
|
281
|
-
export const CreateAddOnResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
-
addOn: CreateAddOnResponseAddOn,
|
|
283
|
-
clientMutationId: S.NullOr(S.String),
|
|
284
|
-
}).pipe(T.ResponsePath("createAddOn"))).annotate({ identifier: "CreateAddOnResponse" });
|
|
285
|
-
export const CreateExtensionTosAgreementInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
286
|
-
addOnProviderName: S.String,
|
|
287
|
-
organizationId: S.optional(S.NullOr(S.String)),
|
|
288
|
-
clientMutationId: S.optional(S.NullOr(S.String)),
|
|
289
|
-
})).annotate({
|
|
290
|
-
identifier: "CreateExtensionTosAgreementInput",
|
|
291
|
-
});
|
|
292
|
-
export const CreateExtensionTosAgreementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
293
|
-
input: CreateExtensionTosAgreementInput,
|
|
294
|
-
})
|
|
295
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
296
|
-
.pipe(T.GraphQLOp({
|
|
297
|
-
query: "mutation createExtensionTosAgreement($input: CreateExtensionTosAgreementInput!) {\n createExtensionTosAgreement(input: $input) {\n clientMutationId\n }\n}",
|
|
298
|
-
operationName: "createExtensionTosAgreement",
|
|
299
|
-
type: "mutation",
|
|
300
|
-
}))).annotate({
|
|
301
|
-
identifier: "CreateExtensionTosAgreementRequest",
|
|
302
|
-
});
|
|
303
|
-
export const CreateExtensionTosAgreementResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
-
clientMutationId: S.NullOr(S.String),
|
|
305
|
-
}).pipe(T.ResponsePath("createExtensionTosAgreement"))).annotate({
|
|
306
|
-
identifier: "CreateExtensionTosAgreementResponse",
|
|
307
|
-
});
|
|
308
|
-
export const DeleteAddOnInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
-
addOnId: S.optional(S.NullOr(S.String)),
|
|
310
|
-
name: S.optional(S.NullOr(S.String)),
|
|
311
|
-
provider: S.optional(S.NullOr(S.String)),
|
|
312
|
-
clientMutationId: S.optional(S.NullOr(S.String)),
|
|
313
|
-
})).annotate({ identifier: "DeleteAddOnInput" });
|
|
314
|
-
export const DeleteAddOnRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
-
input: DeleteAddOnInput,
|
|
316
|
-
})
|
|
317
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
318
|
-
.pipe(T.GraphQLOp({
|
|
319
|
-
query: "mutation deleteAddOn($input: DeleteAddOnInput!) {\n deleteAddOn(input: $input) {\n deletedAddOnName\n clientMutationId\n }\n}",
|
|
320
|
-
operationName: "deleteAddOn",
|
|
321
|
-
type: "mutation",
|
|
322
|
-
}))).annotate({ identifier: "DeleteAddOnRequest" });
|
|
323
|
-
export const DeleteAddOnResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
324
|
-
deletedAddOnName: S.NullOr(S.String),
|
|
325
|
-
clientMutationId: S.NullOr(S.String),
|
|
326
|
-
}).pipe(T.ResponsePath("deleteAddOn"))).annotate({ identifier: "DeleteAddOnResponse" });
|
|
327
|
-
export const OrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
|
-
id: S.optional(S.NullOr(S.String)),
|
|
329
|
-
name: S.optional(S.NullOr(S.String)),
|
|
330
|
-
slug: S.optional(S.NullOr(S.String)),
|
|
331
|
-
})
|
|
332
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
333
|
-
.pipe(T.GraphQLOp({
|
|
334
|
-
query: "query organization($id: ID, $name: String, $slug: String) {\n organization(id: $id, name: $name, slug: $slug) {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n addOns {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n }\n}",
|
|
335
|
-
operationName: "organization",
|
|
336
|
-
type: "query",
|
|
337
|
-
}))).annotate({ identifier: "OrganizationRequest" });
|
|
338
|
-
export const OrganizationResponseAddOnsEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
339
|
-
export const OrganizationResponseAddOnsEdgesItemNode = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
-
id: S.String,
|
|
341
|
-
name: S.NullOr(S.String),
|
|
342
|
-
primaryRegion: S.NullOr(S.String),
|
|
343
|
-
readRegions: S.NullOr(OrganizationResponseAddOnsEdgesItemNodeReadRegionsList),
|
|
344
|
-
status: S.NullOr(S.String),
|
|
345
|
-
errorMessage: S.NullOr(S.String),
|
|
346
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
347
|
-
privateIp: S.NullOr(S.String),
|
|
348
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
349
|
-
ssoLink: S.NullOr(S.String),
|
|
350
|
-
environment: S.NullOr(S.Unknown),
|
|
351
|
-
options: S.NullOr(S.Unknown),
|
|
352
|
-
metadata: S.NullOr(S.Unknown),
|
|
353
|
-
createdAt: S.String,
|
|
354
|
-
updatedAt: S.String,
|
|
355
|
-
addOnPlanName: S.NullOr(S.String),
|
|
356
|
-
})).annotate({
|
|
357
|
-
identifier: "OrganizationResponseAddOnsEdgesItemNode",
|
|
358
|
-
});
|
|
359
|
-
export const OrganizationResponseAddOnsEdgesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
360
|
-
cursor: S.String,
|
|
361
|
-
node: S.NullOr(OrganizationResponseAddOnsEdgesItemNode),
|
|
362
|
-
})).annotate({
|
|
363
|
-
identifier: "OrganizationResponseAddOnsEdgesItem",
|
|
364
|
-
});
|
|
365
|
-
export const OrganizationResponseAddOnsEdgesList = /*@__PURE__*/ S.Array(S.NullOr(OrganizationResponseAddOnsEdgesItem));
|
|
366
|
-
export const OrganizationResponseAddOnsPageInfo = AddOnPlansResponsePageInfo;
|
|
367
|
-
export const OrganizationResponseAddOns = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
-
edges: S.NullOr(OrganizationResponseAddOnsEdgesList),
|
|
369
|
-
pageInfo: AddOnPlansResponsePageInfo,
|
|
370
|
-
totalCount: S.Number,
|
|
371
|
-
})).annotate({
|
|
372
|
-
identifier: "OrganizationResponseAddOns",
|
|
373
|
-
});
|
|
374
|
-
export const OrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
375
|
-
id: S.String,
|
|
376
|
-
name: S.String,
|
|
377
|
-
slug: S.String,
|
|
378
|
-
rawSlug: S.String,
|
|
379
|
-
paidPlan: S.Boolean,
|
|
380
|
-
billable: S.Boolean,
|
|
381
|
-
provisionsBetaExtensions: S.Boolean,
|
|
382
|
-
addOns: OrganizationResponseAddOns,
|
|
383
|
-
}).pipe(T.ResponsePath("organization"))).annotate({ identifier: "OrganizationResponse" });
|
|
384
|
-
export const ResetAddOnPasswordInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
385
|
-
name: S.String,
|
|
386
|
-
clientMutationId: S.optional(S.NullOr(S.String)),
|
|
387
|
-
})).annotate({ identifier: "ResetAddOnPasswordInput" });
|
|
388
|
-
export const ResetAddOnPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
389
|
-
input: ResetAddOnPasswordInput,
|
|
390
|
-
})
|
|
391
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
392
|
-
.pipe(T.GraphQLOp({
|
|
393
|
-
query: "mutation resetAddOnPassword($input: ResetAddOnPasswordInput!) {\n resetAddOnPassword(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
|
|
394
|
-
operationName: "resetAddOnPassword",
|
|
395
|
-
type: "mutation",
|
|
396
|
-
}))).annotate({
|
|
397
|
-
identifier: "ResetAddOnPasswordRequest",
|
|
398
|
-
});
|
|
399
|
-
export const ResetAddOnPasswordResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
400
|
-
export const ResetAddOnPasswordResponseAddOn = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
-
id: S.String,
|
|
402
|
-
name: S.NullOr(S.String),
|
|
403
|
-
primaryRegion: S.NullOr(S.String),
|
|
404
|
-
readRegions: S.NullOr(ResetAddOnPasswordResponseAddOnReadRegionsList),
|
|
405
|
-
status: S.NullOr(S.String),
|
|
406
|
-
errorMessage: S.NullOr(S.String),
|
|
407
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
408
|
-
privateIp: S.NullOr(S.String),
|
|
409
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
410
|
-
ssoLink: S.NullOr(S.String),
|
|
411
|
-
environment: S.NullOr(S.Unknown),
|
|
412
|
-
options: S.NullOr(S.Unknown),
|
|
413
|
-
metadata: S.NullOr(S.Unknown),
|
|
414
|
-
createdAt: S.String,
|
|
415
|
-
updatedAt: S.String,
|
|
416
|
-
addOnPlanName: S.NullOr(S.String),
|
|
417
|
-
})).annotate({
|
|
418
|
-
identifier: "ResetAddOnPasswordResponseAddOn",
|
|
419
|
-
});
|
|
420
|
-
export const ResetAddOnPasswordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
421
|
-
addOn: ResetAddOnPasswordResponseAddOn,
|
|
422
|
-
clientMutationId: S.NullOr(S.String),
|
|
423
|
-
}).pipe(T.ResponsePath("resetAddOnPassword"))).annotate({
|
|
424
|
-
identifier: "ResetAddOnPasswordResponse",
|
|
425
|
-
});
|
|
426
|
-
export const UpdateAddOnInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
427
|
-
addOnId: S.optional(S.NullOr(S.String)),
|
|
428
|
-
name: S.optional(S.NullOr(S.String)),
|
|
429
|
-
provider: S.optional(S.NullOr(S.String)),
|
|
430
|
-
planId: S.optional(S.NullOr(S.String)),
|
|
431
|
-
readRegions: S.optional(S.NullOr(StringList)),
|
|
432
|
-
options: S.optional(S.NullOr(S.Unknown)),
|
|
433
|
-
metadata: S.optional(S.NullOr(S.Unknown)),
|
|
434
|
-
prodPack: S.optional(S.NullOr(S.Boolean)),
|
|
435
|
-
clientMutationId: S.optional(S.NullOr(S.String)),
|
|
436
|
-
})).annotate({ identifier: "UpdateAddOnInput" });
|
|
437
|
-
export const UpdateAddOnRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
438
|
-
input: UpdateAddOnInput,
|
|
439
|
-
})
|
|
440
|
-
.pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
|
|
441
|
-
.pipe(T.GraphQLOp({
|
|
442
|
-
query: "mutation updateAddOn($input: UpdateAddOnInput!) {\n updateAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
|
|
443
|
-
operationName: "updateAddOn",
|
|
444
|
-
type: "mutation",
|
|
445
|
-
}))).annotate({ identifier: "UpdateAddOnRequest" });
|
|
446
|
-
export const UpdateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
447
|
-
export const UpdateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
448
|
-
id: S.String,
|
|
449
|
-
name: S.NullOr(S.String),
|
|
450
|
-
primaryRegion: S.NullOr(S.String),
|
|
451
|
-
readRegions: S.NullOr(UpdateAddOnResponseAddOnReadRegionsList),
|
|
452
|
-
status: S.NullOr(S.String),
|
|
453
|
-
errorMessage: S.NullOr(S.String),
|
|
454
|
-
publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
455
|
-
privateIp: S.NullOr(S.String),
|
|
456
|
-
password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
457
|
-
ssoLink: S.NullOr(S.String),
|
|
458
|
-
environment: S.NullOr(S.Unknown),
|
|
459
|
-
options: S.NullOr(S.Unknown),
|
|
460
|
-
metadata: S.NullOr(S.Unknown),
|
|
461
|
-
createdAt: S.String,
|
|
462
|
-
updatedAt: S.String,
|
|
463
|
-
addOnPlanName: S.NullOr(S.String),
|
|
464
|
-
})).annotate({ identifier: "UpdateAddOnResponseAddOn" });
|
|
465
|
-
export const UpdateAddOnResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
466
|
-
addOn: UpdateAddOnResponseAddOn,
|
|
467
|
-
clientMutationId: S.NullOr(S.String),
|
|
468
|
-
}).pipe(T.ResponsePath("updateAddOn"))).annotate({ identifier: "UpdateAddOnResponse" });
|
|
469
|
-
/** Find an add-on by ID or name */
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.GraphQLOp;
|
|
12
|
+
const __2 = T.Http;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.NullOr;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = T.ResponsePath;
|
|
19
|
+
const __9 = T.SensitiveValue;
|
|
20
|
+
const __10 = S.Unknown;
|
|
21
|
+
const __11 = S.Number;
|
|
22
|
+
const __12 = S.Boolean;
|
|
23
|
+
const __13 = S.Array;
|
|
24
|
+
const __14 = T.GraphQLPayloadRoot;
|
|
25
|
+
|
|
470
26
|
export const addOn =
|
|
471
|
-
/*@__PURE__*/ API.
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
export const
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
protocol: FlyGraphqlProtocol,
|
|
507
|
-
retry: Retry.Retry,
|
|
508
|
-
pagination: {
|
|
509
|
-
mode: "relay",
|
|
510
|
-
inputToken: "after",
|
|
511
|
-
outputToken: "pageInfo.endCursor",
|
|
512
|
-
hasNextPage: "pageInfo.hasNextPage",
|
|
513
|
-
items: "edges.node",
|
|
514
|
-
pageSize: "first",
|
|
515
|
-
},
|
|
516
|
-
}), paginateRelay);
|
|
517
|
-
/** Whether the organization has agreed to an add-on provider's ToS. */
|
|
518
|
-
export const agreedToProviderTos = /*@__PURE__*/ API.make(() => ({
|
|
519
|
-
input: AgreedToProviderTosRequest,
|
|
520
|
-
output: AgreedToProviderTosResponse,
|
|
521
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
522
|
-
protocol: FlyGraphqlProtocol,
|
|
523
|
-
retry: Retry.Retry,
|
|
524
|
-
}));
|
|
525
|
-
export const createAddOn = /*@__PURE__*/ API.make(() => ({
|
|
526
|
-
input: CreateAddOnRequest,
|
|
527
|
-
output: CreateAddOnResponse,
|
|
528
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
529
|
-
protocol: FlyGraphqlProtocol,
|
|
530
|
-
retry: Retry.Retry,
|
|
531
|
-
}));
|
|
532
|
-
export const createExtensionTosAgreement = /*@__PURE__*/ API.make(() => ({
|
|
533
|
-
input: CreateExtensionTosAgreementRequest,
|
|
534
|
-
output: CreateExtensionTosAgreementResponse,
|
|
535
|
-
errors: [CreateExtensionTosAgreementNotAuthorized, UnknownFlyIoError, FlyIoParseError],
|
|
536
|
-
protocol: FlyGraphqlProtocol,
|
|
537
|
-
retry: Retry.Retry,
|
|
538
|
-
}));
|
|
539
|
-
export const deleteAddOn = /*@__PURE__*/ API.make(() => ({
|
|
540
|
-
input: DeleteAddOnRequest,
|
|
541
|
-
output: DeleteAddOnResponse,
|
|
542
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
543
|
-
protocol: FlyGraphqlProtocol,
|
|
544
|
-
retry: Retry.Retry,
|
|
545
|
-
}));
|
|
546
|
-
/** Find an organization by ID */
|
|
547
|
-
export const organization = /*@__PURE__*/ API.make(() => ({
|
|
548
|
-
input: OrganizationRequest,
|
|
549
|
-
output: OrganizationResponse,
|
|
550
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
551
|
-
protocol: FlyGraphqlProtocol,
|
|
552
|
-
retry: Retry.Retry,
|
|
553
|
-
}));
|
|
554
|
-
export const resetAddOnPassword = /*@__PURE__*/ API.make(() => ({
|
|
555
|
-
input: ResetAddOnPasswordRequest,
|
|
556
|
-
output: ResetAddOnPasswordResponse,
|
|
557
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
558
|
-
protocol: FlyGraphqlProtocol,
|
|
559
|
-
retry: Retry.Retry,
|
|
560
|
-
}));
|
|
561
|
-
export const updateAddOn = /*@__PURE__*/ API.make(() => ({
|
|
562
|
-
input: UpdateAddOnRequest,
|
|
563
|
-
output: UpdateAddOnResponse,
|
|
564
|
-
errors: [UnknownFlyIoError, FlyIoParseError],
|
|
565
|
-
protocol: FlyGraphqlProtocol,
|
|
566
|
-
retry: Retry.Retry,
|
|
567
|
-
}));
|
|
568
|
-
//# sourceMappingURL=addons.js.map
|
|
27
|
+
/*@__PURE__*/ API.op((i) => i === API.D ? API.named("addOn", '{input:#1,output:#2,errors:[$14,$15],protocol:$16,retry:$17};$7(>3)@"AddOnRequest";$7(>4)@"AddOnResponse";$6({id:$5($4($3)),name:$5($4($3)),provider:$5($4($3))}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query %($id: ID, $name: String, $provider: String) {\\n %(id: $id, name: $name, provider: $provider) {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n %Plan {\\n id\\n name\\n displayName\\n description\\n maxDataSize\\n pricePerMonth\\n }\\n %PlanName\\n %Provider {\\n id\\n name\\n displayName\\n tosUrl\\n tosAgreement\\n asyncProvisioning\\n autoProvision\\n beta\\n internal\\n selectName\\n selectRegion\\n selectReplicaRegions\\n detectPlatform\\n resourceName\\n nameSuffix\\n provisioningInstructions\\n }\\n organization {\\n id\\n name\\n slug\\n rawSlug\\n paidPlan\\n billable\\n provisionsBetaExtensions\\n }\\n app {\\n id\\n name\\n }\\n }\\n}",operationName:"%",type:"query"}));$6({id:$3,name:$4($3),primaryRegion:$4($3),readRegions:$4(#9:0),status:$4($3),errorMessage:$4($3),publicUrl:$4($3).pipe($10({})),privateIp:$4($3),password:$4($3).pipe($10({})),ssoLink:$4($3),environment:$4($11),options:$4($11),metadata:$4($11),createdAt:$3,updatedAt:$3,addOnPlan:$4(#12:0),addOnPlanName:$4($3),addOnProvider:$4(#13:0),organization:#13:1,app:$4(#13:2)}).pipe($8("%"))', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __d2, __9, __10, __d0, __d1, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(addOn, i));
|
|
28
|
+
|
|
29
|
+
export const addOnPlans = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("addOnPlans", '{input:#1,output:#5,errors:[$13,$14],protocol:$15,retry:$16,pagination:{mode:"relay",inputToken:"after",outputToken:"pageInfo.endCursor",hasNextPage:"pageInfo.hasNextPage",items:"edges.node",pageSize:"first"},strategy:$17};$8(>6)@"AddOnPlansRequest";$8(>7)@"AddOnPlansResponseEdgesItem";$10($4(#2));$10($4(#9:0));$8(>8)@"AddOnPlansResponse";$7({after:$5($4($3)),before:$5($4($3)),first:$5($4($6)),last:$5($4($6)),type:$5($4($3))}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query %($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\\n %(after: $after, before: $before, first: $first, last: $last, type: $type) {\\n edges {\\n cursor\\n node {\\n id\\n name\\n displayName\\n description\\n maxDataSize\\n pricePerMonth\\n }\\n }\\n nodes {\\n id\\n name\\n displayName\\n description\\n maxDataSize\\n pricePerMonth\\n }\\n pageInfo {\\n hasNextPage\\n hasPreviousPage\\n startCursor\\n endCursor\\n }\\n totalCount\\n }\\n}",operationName:"%",type:"query"}));$7({cursor:$3,node:$4(#9:0)});$7({edges:$4(#3),nodes:$4(#4),pageInfo:#12:0,totalCount:$6}).pipe($11("%"))', [__0, __1, __2, __3, __4, __5, __11, __6, __7, __d0, __13, __8, __d3, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry, paginateRelay]) : API.call(addOnPlans, i));
|
|
30
|
+
export const addOnProvider = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("addOnProvider", '{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$5(>3)@"AddOnProviderRequest";$5(>4)@"AddOnProviderResponse";$4({name:$3}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query %($name: String!) {\\n %(name: $name) {\\n id\\n name\\n displayName\\n tosUrl\\n tosAgreement\\n asyncProvisioning\\n autoProvision\\n beta\\n internal\\n selectName\\n selectRegion\\n selectReplicaRegions\\n detectPlatform\\n resourceName\\n nameSuffix\\n provisioningInstructions\\n }\\n}",operationName:"%",type:"query"}));$4({id:$3,name:$7($3),displayName:$7($3),tosUrl:$7($3),tosAgreement:$7($3),asyncProvisioning:$8,autoProvision:$8,beta:$8,internal:$8,selectName:$8,selectRegion:$8,selectReplicaRegions:$8,detectPlatform:$8,resourceName:$3,nameSuffix:$7($3),provisioningInstructions:$7($3)}).pipe($6("%"))', [__0, __1, __2, __3, __6, __7, __8, __4, __12, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(addOnProvider, i));
|
|
31
|
+
|
|
32
|
+
export const addOns = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("AddOnsResponse", '{input:#1,output:#6,errors:[$18,$19],protocol:$20,retry:$21,pagination:{mode:"relay",inputToken:"after",outputToken:"pageInfo.endCursor",hasNextPage:"pageInfo.hasNextPage",items:"edges.node",pageSize:"first"},strategy:$22};$8(>7)@"AddOnsRequest";$8(>8)@"%EdgesItemNode";$8(>9)@"%EdgesItem";$14($4(#3));$14($4(#15:0));$8(>10)@"%";$7({after:$5($4($3)),before:$5($4($3)),first:$5($4($6)),last:$5($4($6)),type:$5($4($3))}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query addOns($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\\n addOns(after: $after, before: $before, first: $first, last: $last, type: $type) {\\n edges {\\n cursor\\n node {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlan {\\n id\\n name\\n displayName\\n description\\n maxDataSize\\n pricePerMonth\\n }\\n addOnPlanName\\n addOnProvider {\\n id\\n name\\n displayName\\n tosUrl\\n tosAgreement\\n asyncProvisioning\\n autoProvision\\n beta\\n internal\\n selectName\\n selectRegion\\n selectReplicaRegions\\n detectPlatform\\n resourceName\\n nameSuffix\\n provisioningInstructions\\n }\\n organization {\\n id\\n name\\n slug\\n rawSlug\\n paidPlan\\n billable\\n provisionsBetaExtensions\\n }\\n app {\\n id\\n name\\n }\\n }\\n }\\n nodes {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlanName\\n }\\n pageInfo {\\n hasNextPage\\n hasPreviousPage\\n startCursor\\n endCursor\\n }\\n totalCount\\n }\\n}",operationName:"addOns",type:"query"}));$7({id:$3,name:$4($3),primaryRegion:$4($3),readRegions:$4(#9:0),status:$4($3),errorMessage:$4($3),publicUrl:$4($3).pipe($10({})),privateIp:$4($3),password:$4($3).pipe($10({})),ssoLink:$4($3),environment:$4($11),options:$4($11),metadata:$4($11),createdAt:$3,updatedAt:$3,addOnPlan:$4(#12:0),addOnPlanName:$4($3),addOnProvider:$4(#13:0),organization:#13:1,app:$4(#13:2)});$7({cursor:$3,node:$4(#2)});$7({edges:$4(#4),nodes:$4(#5),pageInfo:#17:0,totalCount:$6}).pipe($16("addOns"))', [__0, __1, __2, __3, __4, __5, __11, __6, __7, __d2, __9, __10, __d0, __d1, __13, __d4, __8, __d3, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry, paginateRelay]) : API.call(addOns, i));
|
|
33
|
+
|
|
34
|
+
export const agreedToProviderTos = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("agreedToProviderTos", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13};$5(>3)@"AgreedToProviderTosRequest";$5(>4)@"AgreedToProviderTosResponse";$4({slug:$3,providerName:$3}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query %($slug: String!, $providerName: String!) {\\n organization(slug: $slug) {\\n %(providerName: $providerName)\\n }\\n}",operationName:"%",type:"query"}));$9($8).pipe($6(),$7("organization.%"))', [__0, __1, __2, __3, __6, __7, __14, __8, __12, __4, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(agreedToProviderTos, i));
|
|
35
|
+
export const createAddOn = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("createAddOn", '{input:#2,output:#3,errors:[$12,$13],protocol:$14,retry:$15};$7(>4)@"CreateAddOnInput";$7(>5)@"CreateAddOnRequest";$7(>6)@"CreateAddOnResponse";$6({type:$1,name:$3($2($1)),organizationId:$3($2($1)),appId:$3($2($1)),planId:$3($2($1)),primaryRegion:$3($2($1)),readRegions:$3($2(#4:0)),options:$3($2($5)),organizationPlanId:$3($2($1)),clientMutationId:$3($2($1))});$6({input:#1}).pipe($9({method:"POST",uri:"/graphql",code:200})).pipe($8({query:"mutation %($input: CreateAddOnInput!) {\\n %(input: $input) {\\n addOn {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlanName\\n }\\n clientMutationId\\n }\\n}",operationName:"%",type:"mutation"}));$6({addOn:#11:0,clientMutationId:$2($1)}).pipe($10("%"))', [__0, __3, __4, __5, __d2, __10, __6, __7, __1, __2, __8, __d4, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(createAddOn, i));
|
|
36
|
+
export const createExtensionTosAgreement = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("createExtensionTosAgreement", '{input:#2,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"CreateExtensionTosAgreementInput";$5(>5)@"CreateExtensionTosAgreementRequest";$5(>6)@"CreateExtensionTosAgreementResponse";$4({addOnProviderName:$1,organizationId:$3($2($1)),clientMutationId:$3($2($1))});$4({input:#1}).pipe($7({method:"POST",uri:"/graphql",code:200})).pipe($6({query:"mutation %($input: CreateExtensionTosAgreementInput!) {\\n %(input: $input) {\\n clientMutationId\\n }\\n}",operationName:"%",type:"mutation"}));$4({clientMutationId:$2($1)}).pipe($8("%"))', [__0, __3, __4, __5, __6, __7, __1, __2, __8, CreateExtensionTosAgreementNotAuthorized, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(createExtensionTosAgreement, i));
|
|
37
|
+
export const deleteAddOn = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("deleteAddOn", '{input:#2,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"DeleteAddOnInput";$5(>5)@"DeleteAddOnRequest";$5(>6)@"DeleteAddOnResponse";$4({addOnId:$3($2($1)),name:$3($2($1)),provider:$3($2($1)),clientMutationId:$3($2($1))});$4({input:#1}).pipe($7({method:"POST",uri:"/graphql",code:200})).pipe($6({query:"mutation %($input: DeleteAddOnInput!) {\\n %(input: $input) {\\n deletedAddOnName\\n clientMutationId\\n }\\n}",operationName:"%",type:"mutation"}));$4({deletedAddOnName:$2($1),clientMutationId:$2($1)}).pipe($8("%"))', [__0, __3, __4, __5, __6, __7, __1, __2, __8, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(deleteAddOn, i));
|
|
38
|
+
|
|
39
|
+
export const organization = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("OrganizationResponse", '{input:#1,output:#5,errors:[$14,$15],protocol:$16,retry:$17};$7(>6)@"OrganizationRequest";$7(>7)@"%AddOnsEdgesItem";$9($4(#2));$7(>8)@"%AddOns";$7(>9)@"%";$6({id:$5($4($3)),name:$5($4($3)),slug:$5($4($3))}).pipe($2({method:"POST",uri:"/graphql",code:200})).pipe($1({query:"query organization($id: ID, $name: String, $slug: String) {\\n organization(id: $id, name: $name, slug: $slug) {\\n id\\n name\\n slug\\n rawSlug\\n paidPlan\\n billable\\n provisionsBetaExtensions\\n addOns {\\n edges {\\n cursor\\n node {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlanName\\n }\\n }\\n pageInfo {\\n hasNextPage\\n hasPreviousPage\\n startCursor\\n endCursor\\n }\\n totalCount\\n }\\n }\\n}",operationName:"organization",type:"query"}));$6({cursor:$3,node:$4(#8:0)});$6({edges:$4(#3),pageInfo:#10:0,totalCount:$11});$6({id:$3,name:$3,slug:$3,rawSlug:$3,paidPlan:$13,billable:$13,provisionsBetaExtensions:$13,addOns:#4}).pipe($12("organization"))', [__0, __1, __2, __3, __4, __5, __6, __7, __d4, __13, __d3, __11, __8, __12, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(organization, i));
|
|
40
|
+
export const resetAddOnPassword = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("resetAddOnPassword", '{input:#2,output:#3,errors:[$10,$11],protocol:$12,retry:$13};$5(>4)@"ResetAddOnPasswordInput";$5(>5)@"ResetAddOnPasswordRequest";$5(>6)@"ResetAddOnPasswordResponse";$4({name:$1,clientMutationId:$3($2($1))});$4({input:#1}).pipe($7({method:"POST",uri:"/graphql",code:200})).pipe($6({query:"mutation %($input: ResetAddOnPasswordInput!) {\\n %(input: $input) {\\n addOn {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlanName\\n }\\n clientMutationId\\n }\\n}",operationName:"%",type:"mutation"}));$4({addOn:#9:0,clientMutationId:$2($1)}).pipe($8("%"))', [__0, __3, __4, __5, __6, __7, __1, __2, __8, __d4, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(resetAddOnPassword, i));
|
|
41
|
+
export const updateAddOn = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("updateAddOn", '{input:#2,output:#3,errors:[$13,$14],protocol:$15,retry:$16};$8(>4)@"UpdateAddOnInput";$8(>5)@"UpdateAddOnRequest";$8(>6)@"UpdateAddOnResponse";$7({addOnId:$3($2($1)),name:$3($2($1)),provider:$3($2($1)),planId:$3($2($1)),readRegions:$3($2(#4:0)),options:$3($2($5)),metadata:$3($2($5)),prodPack:$3($2($6)),clientMutationId:$3($2($1))});$7({input:#1}).pipe($10({method:"POST",uri:"/graphql",code:200})).pipe($9({query:"mutation %($input: UpdateAddOnInput!) {\\n %(input: $input) {\\n addOn {\\n id\\n name\\n primaryRegion\\n readRegions\\n status\\n errorMessage\\n publicUrl\\n privateIp\\n password\\n ssoLink\\n environment\\n options\\n metadata\\n createdAt\\n updatedAt\\n addOnPlanName\\n }\\n clientMutationId\\n }\\n}",operationName:"%",type:"mutation"}));$7({addOn:#12:0,clientMutationId:$2($1)}).pipe($11("%"))', [__0, __3, __4, __5, __d2, __10, __12, __6, __7, __1, __2, __8, __d4, UnknownFlyIoError, FlyIoParseError, FlyGraphqlProtocol, Retry.Retry]) : API.call(updateAddOn, i));
|
|
42
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
43
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
// Shared schema data (see `op` in core/api).
|
|
47
|
+
function __d0() {
|
|
48
|
+
return ['$5(>1)@"AddOnResponseAddOnPlan";$4({id:$1,name:$2($1),displayName:$2($1),description:$2($1),maxDataSize:$2($1),pricePerMonth:$2($3)})', [__0, __3, __4, __11, __6, __7]];
|
|
49
|
+
}
|
|
50
|
+
function __d1() {
|
|
51
|
+
return ['$5(>3)@"AddOnResponseAddOnProvider";$5(>4)@"AddOnResponseOrganization";$5(>5)@"AddOnResponseApp";$4({id:$1,name:$2($1),displayName:$2($1),tosUrl:$2($1),tosAgreement:$2($1),asyncProvisioning:$3,autoProvision:$3,beta:$3,internal:$3,selectName:$3,selectRegion:$3,selectReplicaRegions:$3,detectPlatform:$3,resourceName:$1,nameSuffix:$2($1),provisioningInstructions:$2($1)});$4({id:$1,name:$1,slug:$1,rawSlug:$1,paidPlan:$3,billable:$3,provisionsBetaExtensions:$3});$4({id:$1,name:$1})', [__0, __3, __4, __12, __6, __7]];
|
|
52
|
+
}
|
|
53
|
+
function __d2() {
|
|
54
|
+
return ['$2($1)', [__0, __3, __13]];
|
|
55
|
+
}
|
|
56
|
+
function __d3() {
|
|
57
|
+
return ['$5(>1)@"AddOnPlansResponsePageInfo";$4({hasNextPage:$1,hasPreviousPage:$1,startCursor:$3($2),endCursor:$3($2)})', [__0, __12, __3, __4, __6, __7]];
|
|
58
|
+
}
|
|
59
|
+
function __d4() {
|
|
60
|
+
return ['$7(>1)@"AddOnsResponseNodesItem";$6({id:$1,name:$2($1),primaryRegion:$2($1),readRegions:$2(#3:0),status:$2($1),errorMessage:$2($1),publicUrl:$2($1).pipe($4({})),privateIp:$2($1),password:$2($1).pipe($4({})),ssoLink:$2($1),environment:$2($5),options:$2($5),metadata:$2($5),createdAt:$1,updatedAt:$1,addOnPlanName:$2($1)})', [__0, __3, __4, __d2, __9, __10, __6, __7]];
|
|
61
|
+
}
|