@distilled.cloud/core 1.0.0-rc.1 → 1.0.0-rc.10
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/LICENSE +201 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +16 -4
- package/lib/api.js.map +1 -1
- package/lib/category.d.ts +4 -4
- package/lib/category.js +4 -4
- package/lib/codegen/boolean-string-enums.d.ts +36 -0
- package/lib/codegen/boolean-string-enums.d.ts.map +1 -0
- package/lib/codegen/boolean-string-enums.js +94 -0
- package/lib/codegen/boolean-string-enums.js.map +1 -0
- package/lib/codegen/boolean-string-enums.test.d.ts +2 -0
- package/lib/codegen/boolean-string-enums.test.d.ts.map +1 -0
- package/lib/codegen/boolean-string-enums.test.js +147 -0
- package/lib/codegen/boolean-string-enums.test.js.map +1 -0
- package/lib/codegen/cli.d.ts +56 -6
- package/lib/codegen/cli.d.ts.map +1 -1
- package/lib/codegen/cli.js +59 -75
- package/lib/codegen/cli.js.map +1 -1
- package/lib/codegen/emit.d.ts +3 -7
- package/lib/codegen/emit.d.ts.map +1 -1
- package/lib/codegen/emit.js +6 -10
- package/lib/codegen/emit.js.map +1 -1
- package/lib/codegen/generator.d.ts.map +1 -1
- package/lib/codegen/generator.js +142 -20
- package/lib/codegen/generator.js.map +1 -1
- package/lib/codegen/graphql-client.d.ts +62 -0
- package/lib/codegen/graphql-client.d.ts.map +1 -0
- package/lib/codegen/graphql-client.js +294 -0
- package/lib/codegen/graphql-client.js.map +1 -0
- package/lib/codegen/graphql-client.test.d.ts +2 -0
- package/lib/codegen/graphql-client.test.d.ts.map +1 -0
- package/lib/codegen/graphql-client.test.js +311 -0
- package/lib/codegen/graphql-client.test.js.map +1 -0
- package/lib/codegen/graphql.d.ts +207 -0
- package/lib/codegen/graphql.d.ts.map +1 -0
- package/lib/codegen/graphql.js +799 -0
- package/lib/codegen/graphql.js.map +1 -0
- package/lib/codegen/openapi-cli.d.ts +17 -3
- package/lib/codegen/openapi-cli.d.ts.map +1 -1
- package/lib/codegen/openapi-cli.js +50 -48
- package/lib/codegen/openapi-cli.js.map +1 -1
- package/lib/codegen/openapi.d.ts +69 -6
- package/lib/codegen/openapi.d.ts.map +1 -1
- package/lib/codegen/openapi.js +173 -16
- package/lib/codegen/openapi.js.map +1 -1
- package/lib/codegen/patches.d.ts +65 -0
- package/lib/codegen/patches.d.ts.map +1 -0
- package/lib/codegen/patches.js +236 -0
- package/lib/codegen/patches.js.map +1 -0
- package/lib/codegen/patches.test.d.ts +2 -0
- package/lib/codegen/patches.test.d.ts.map +1 -0
- package/lib/codegen/patches.test.js +105 -0
- package/lib/codegen/patches.test.js.map +1 -0
- package/lib/codegen/proto.d.ts +121 -0
- package/lib/codegen/proto.d.ts.map +1 -0
- package/lib/codegen/proto.js +962 -0
- package/lib/codegen/proto.js.map +1 -0
- package/lib/codegen/rewrite-operation-ids.d.ts +131 -0
- package/lib/codegen/rewrite-operation-ids.d.ts.map +1 -0
- package/lib/codegen/rewrite-operation-ids.js +1079 -0
- package/lib/codegen/rewrite-operation-ids.js.map +1 -0
- package/lib/codegen/rewrite-operation-ids.test.d.ts +2 -0
- package/lib/codegen/rewrite-operation-ids.test.d.ts.map +1 -0
- package/lib/codegen/rewrite-operation-ids.test.js +533 -0
- package/lib/codegen/rewrite-operation-ids.test.js.map +1 -0
- package/lib/codegen/spec-path.d.ts +16 -0
- package/lib/codegen/spec-path.d.ts.map +1 -0
- package/lib/codegen/spec-path.js +101 -0
- package/lib/codegen/spec-path.js.map +1 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +17 -13
- package/lib/errors.js.map +1 -1
- package/lib/graphql.d.ts +284 -0
- package/lib/graphql.d.ts.map +1 -0
- package/lib/graphql.fixture.d.ts +249 -0
- package/lib/graphql.fixture.d.ts.map +1 -0
- package/lib/graphql.fixture.js +240 -0
- package/lib/graphql.fixture.js.map +1 -0
- package/lib/graphql.js +718 -0
- package/lib/graphql.js.map +1 -0
- package/lib/graphql.test.d.ts +2 -0
- package/lib/graphql.test.d.ts.map +1 -0
- package/lib/graphql.test.js +780 -0
- package/lib/graphql.test.js.map +1 -0
- package/lib/graphql.types.d.ts +2 -0
- package/lib/graphql.types.d.ts.map +1 -0
- package/lib/graphql.types.js +45 -0
- package/lib/graphql.types.js.map +1 -0
- package/lib/json-patch.d.ts +18 -11
- package/lib/json-patch.d.ts.map +1 -1
- package/lib/json-patch.js +63 -25
- package/lib/json-patch.js.map +1 -1
- package/lib/pagination.d.ts +43 -3
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +91 -5
- package/lib/pagination.js.map +1 -1
- package/lib/protocol-http.d.ts.map +1 -1
- package/lib/protocol-http.js +62 -26
- package/lib/protocol-http.js.map +1 -1
- package/lib/protocol-http.test.d.ts +2 -0
- package/lib/protocol-http.test.d.ts.map +1 -0
- package/lib/protocol-http.test.js +88 -0
- package/lib/protocol-http.test.js.map +1 -0
- package/lib/protocol-rest.d.ts +12 -2
- package/lib/protocol-rest.d.ts.map +1 -1
- package/lib/protocol-rest.js +17 -3
- package/lib/protocol-rest.js.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/schema.d.ts +1 -1
- package/lib/schema.d.ts.map +1 -1
- package/lib/schema.js +1 -1
- package/lib/schema.js.map +1 -1
- package/lib/trait.d.ts +27 -3
- package/lib/trait.d.ts.map +1 -1
- package/lib/trait.js +17 -1
- package/lib/trait.js.map +1 -1
- package/package.json +13 -10
- package/src/api.ts +18 -4
- package/src/category.ts +4 -4
- package/src/codegen/boolean-string-enums.test.ts +168 -0
- package/src/codegen/boolean-string-enums.ts +106 -0
- package/src/codegen/cli.ts +127 -110
- package/src/codegen/emit.ts +6 -10
- package/src/codegen/generator.ts +151 -21
- package/src/codegen/graphql-client.test.ts +386 -0
- package/src/codegen/graphql-client.ts +419 -0
- package/src/codegen/graphql.ts +1217 -0
- package/src/codegen/openapi-cli.ts +75 -59
- package/src/codegen/openapi.ts +255 -16
- package/src/codegen/patches.test.ts +130 -0
- package/src/codegen/patches.ts +291 -0
- package/src/codegen/proto.ts +1128 -0
- package/src/codegen/rewrite-operation-ids.test.ts +563 -0
- package/src/codegen/rewrite-operation-ids.ts +1206 -0
- package/src/codegen/spec-path.ts +115 -0
- package/src/errors.ts +20 -25
- package/src/graphql.fixture.ts +371 -0
- package/src/graphql.test.ts +974 -0
- package/src/graphql.ts +1321 -0
- package/src/graphql.types.ts +185 -0
- package/src/json-patch.ts +82 -25
- package/src/pagination.ts +134 -7
- package/src/protocol-http.test.ts +107 -0
- package/src/protocol-http.ts +67 -31
- package/src/protocol-rest.ts +28 -4
- package/src/retry.ts +1 -1
- package/src/schema.ts +2 -2
- package/src/trait.ts +39 -3
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import * as G from "./graphql.ts";
|
|
3
|
+
import type { GraphQLModel } from "./codegen/graphql-client.ts";
|
|
4
|
+
declare const ProjectNotFound_base: Schema.Class<ProjectNotFound, Schema.TaggedStruct<"ProjectNotFound", {
|
|
5
|
+
message: Schema.String;
|
|
6
|
+
code: Schema.optional<Schema.String>;
|
|
7
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
8
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
9
|
+
readonly line: Schema.Number;
|
|
10
|
+
readonly column: Schema.Number;
|
|
11
|
+
}>>>;
|
|
12
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
13
|
+
traceId: Schema.optional<Schema.String>;
|
|
14
|
+
status: Schema.optional<Schema.Number>;
|
|
15
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
16
|
+
}>, import("effect/Cause").YieldableError>;
|
|
17
|
+
export declare class ProjectNotFound extends ProjectNotFound_base {
|
|
18
|
+
}
|
|
19
|
+
declare const ServicesUnavailable_base: Schema.Class<ServicesUnavailable, Schema.TaggedStruct<"ServicesUnavailable", {
|
|
20
|
+
message: Schema.String;
|
|
21
|
+
code: Schema.optional<Schema.String>;
|
|
22
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
23
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
24
|
+
readonly line: Schema.Number;
|
|
25
|
+
readonly column: Schema.Number;
|
|
26
|
+
}>>>;
|
|
27
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
28
|
+
traceId: Schema.optional<Schema.String>;
|
|
29
|
+
status: Schema.optional<Schema.Number>;
|
|
30
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
31
|
+
}>, import("effect/Cause").YieldableError>;
|
|
32
|
+
export declare class ServicesUnavailable extends ServicesUnavailable_base {
|
|
33
|
+
}
|
|
34
|
+
declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<"Unauthorized", {
|
|
35
|
+
message: Schema.String;
|
|
36
|
+
code: Schema.optional<Schema.String>;
|
|
37
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
38
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
39
|
+
readonly line: Schema.Number;
|
|
40
|
+
readonly column: Schema.Number;
|
|
41
|
+
}>>>;
|
|
42
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
43
|
+
traceId: Schema.optional<Schema.String>;
|
|
44
|
+
status: Schema.optional<Schema.Number>;
|
|
45
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
46
|
+
}>, import("effect/Cause").YieldableError>;
|
|
47
|
+
export declare class Unauthorized extends Unauthorized_base {
|
|
48
|
+
}
|
|
49
|
+
declare const ProjectDescriptionUnavailable_base: Schema.Class<ProjectDescriptionUnavailable, Schema.TaggedStruct<"ProjectDescriptionUnavailable", {
|
|
50
|
+
message: Schema.String;
|
|
51
|
+
code: Schema.optional<Schema.String>;
|
|
52
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
53
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
54
|
+
readonly line: Schema.Number;
|
|
55
|
+
readonly column: Schema.Number;
|
|
56
|
+
}>>>;
|
|
57
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
58
|
+
traceId: Schema.optional<Schema.String>;
|
|
59
|
+
status: Schema.optional<Schema.Number>;
|
|
60
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
61
|
+
}>, import("effect/Cause").YieldableError>;
|
|
62
|
+
export declare class ProjectDescriptionUnavailable extends ProjectDescriptionUnavailable_base {
|
|
63
|
+
}
|
|
64
|
+
declare const ServiceDescriptionUnavailable_base: Schema.Class<ServiceDescriptionUnavailable, Schema.TaggedStruct<"ServiceDescriptionUnavailable", {
|
|
65
|
+
message: Schema.String;
|
|
66
|
+
code: Schema.optional<Schema.String>;
|
|
67
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
68
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
69
|
+
readonly line: Schema.Number;
|
|
70
|
+
readonly column: Schema.Number;
|
|
71
|
+
}>>>;
|
|
72
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
73
|
+
traceId: Schema.optional<Schema.String>;
|
|
74
|
+
status: Schema.optional<Schema.Number>;
|
|
75
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
76
|
+
}>, import("effect/Cause").YieldableError>;
|
|
77
|
+
export declare class ServiceDescriptionUnavailable extends ServiceDescriptionUnavailable_base {
|
|
78
|
+
}
|
|
79
|
+
declare const PageInfoUnavailable_base: Schema.Class<PageInfoUnavailable, Schema.TaggedStruct<"PageInfoUnavailable", {
|
|
80
|
+
message: Schema.String;
|
|
81
|
+
code: Schema.optional<Schema.String>;
|
|
82
|
+
path: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>>;
|
|
83
|
+
locations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
84
|
+
readonly line: Schema.Number;
|
|
85
|
+
readonly column: Schema.Number;
|
|
86
|
+
}>>>;
|
|
87
|
+
extensions: Schema.optional<Schema.Unknown>;
|
|
88
|
+
traceId: Schema.optional<Schema.String>;
|
|
89
|
+
status: Schema.optional<Schema.Number>;
|
|
90
|
+
retryAfter: Schema.optional<Schema.Number>;
|
|
91
|
+
}>, import("effect/Cause").YieldableError>;
|
|
92
|
+
export declare class PageInfoUnavailable extends PageInfoUnavailable_base {
|
|
93
|
+
}
|
|
94
|
+
export declare const errorClasses: {
|
|
95
|
+
ProjectNotFound: typeof ProjectNotFound;
|
|
96
|
+
ServicesUnavailable: typeof ServicesUnavailable;
|
|
97
|
+
Unauthorized: typeof Unauthorized;
|
|
98
|
+
ProjectDescriptionUnavailable: typeof ProjectDescriptionUnavailable;
|
|
99
|
+
ServiceDescriptionUnavailable: typeof ServiceDescriptionUnavailable;
|
|
100
|
+
PageInfoUnavailable: typeof PageInfoUnavailable;
|
|
101
|
+
};
|
|
102
|
+
export type FixtureSchema = {
|
|
103
|
+
query: "Query";
|
|
104
|
+
mutation: "Mutation";
|
|
105
|
+
subscription: never;
|
|
106
|
+
globalErrors: "Unauthorized";
|
|
107
|
+
errors: {
|
|
108
|
+
ProjectNotFound: ProjectNotFound;
|
|
109
|
+
ServicesUnavailable: ServicesUnavailable;
|
|
110
|
+
Unauthorized: Unauthorized;
|
|
111
|
+
ProjectDescriptionUnavailable: ProjectDescriptionUnavailable;
|
|
112
|
+
ServiceDescriptionUnavailable: ServiceDescriptionUnavailable;
|
|
113
|
+
PageInfoUnavailable: PageInfoUnavailable;
|
|
114
|
+
};
|
|
115
|
+
scalars: {
|
|
116
|
+
ID: string;
|
|
117
|
+
String: string;
|
|
118
|
+
Int: number;
|
|
119
|
+
Boolean: boolean;
|
|
120
|
+
JSON: unknown;
|
|
121
|
+
Status: "ACTIVE" | "ARCHIVED";
|
|
122
|
+
};
|
|
123
|
+
possibleTypes: {
|
|
124
|
+
Node: "Project" | "Service";
|
|
125
|
+
SearchResult: "Project" | "Service";
|
|
126
|
+
};
|
|
127
|
+
types: {
|
|
128
|
+
Query: {
|
|
129
|
+
project: G.Field<{
|
|
130
|
+
id: string;
|
|
131
|
+
}, "Project", "ProjectNotFound">;
|
|
132
|
+
projects: G.Field<{
|
|
133
|
+
filter?: {
|
|
134
|
+
name?: string | null;
|
|
135
|
+
statuses?: Array<"ACTIVE" | "ARCHIVED"> | null;
|
|
136
|
+
metadata?: unknown;
|
|
137
|
+
} | null;
|
|
138
|
+
}, "[Project]!">;
|
|
139
|
+
node: G.Field<{
|
|
140
|
+
id: string;
|
|
141
|
+
}, "Node">;
|
|
142
|
+
search: G.Field<{
|
|
143
|
+
text: string;
|
|
144
|
+
}, "[SearchResult!]!">;
|
|
145
|
+
services: G.Field<{
|
|
146
|
+
first?: number | null;
|
|
147
|
+
after?: string | null;
|
|
148
|
+
}, "ServiceConnection!", "ServicesUnavailable">;
|
|
149
|
+
ping: G.Field<{}, "Boolean!">;
|
|
150
|
+
};
|
|
151
|
+
Mutation: {
|
|
152
|
+
editProject: G.Field<{
|
|
153
|
+
id: string;
|
|
154
|
+
name: string;
|
|
155
|
+
}, "Project!", "ProjectNotFound">;
|
|
156
|
+
deleteProject: G.Field<{
|
|
157
|
+
id: string;
|
|
158
|
+
}, "Boolean!", "ProjectNotFound">;
|
|
159
|
+
};
|
|
160
|
+
Project: {
|
|
161
|
+
id: G.Field<{}, "ID!">;
|
|
162
|
+
name: G.Field<{}, "String!">;
|
|
163
|
+
description: G.Field<{}, "String", "ProjectDescriptionUnavailable">;
|
|
164
|
+
parent: G.Field<{}, "Project">;
|
|
165
|
+
services: G.Field<{
|
|
166
|
+
first?: number | null;
|
|
167
|
+
after?: string | null;
|
|
168
|
+
filter?: {
|
|
169
|
+
name?: string | null;
|
|
170
|
+
} | null;
|
|
171
|
+
}, "ServiceConnection", "ServicesUnavailable">;
|
|
172
|
+
};
|
|
173
|
+
Service: {
|
|
174
|
+
id: G.Field<{}, "ID!">;
|
|
175
|
+
parent: G.Field<{}, "Project">;
|
|
176
|
+
name: G.Field<{}, "String!">;
|
|
177
|
+
description: G.Field<{}, "String", "ServiceDescriptionUnavailable">;
|
|
178
|
+
project: G.Field<{}, "Project!">;
|
|
179
|
+
status: G.Field<{}, "Status!">;
|
|
180
|
+
};
|
|
181
|
+
ServiceConnection: {
|
|
182
|
+
edges: G.Field<{}, "[ServiceEdge!]!">;
|
|
183
|
+
pageInfo: G.Field<{}, "PageInfo!">;
|
|
184
|
+
};
|
|
185
|
+
ServiceEdge: {
|
|
186
|
+
cursor: G.Field<{}, "String!">;
|
|
187
|
+
node: G.Field<{}, "Service!">;
|
|
188
|
+
};
|
|
189
|
+
PageInfo: {
|
|
190
|
+
endCursor: G.Field<{}, "String">;
|
|
191
|
+
hasNextPage: G.Field<{}, "Boolean!", "PageInfoUnavailable">;
|
|
192
|
+
};
|
|
193
|
+
Node: {
|
|
194
|
+
id: G.Field<{}, "ID!">;
|
|
195
|
+
parent: G.Field<{}, "Project">;
|
|
196
|
+
};
|
|
197
|
+
SearchResult: {};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export declare const fixtureModel: GraphQLModel;
|
|
201
|
+
/** A deliberately small recursive schema for GraphQL compiler/runtime tests. */
|
|
202
|
+
export declare const fixtureSDL = "\n scalar JSON\n\n enum Status {\n ACTIVE\n ARCHIVED\n }\n\n input ProjectFilter {\n name: String\n statuses: [Status!] = [ACTIVE]\n metadata: JSON\n }\n\n interface Node {\n id: ID!\n parent: Project\n }\n\n type Project implements Node {\n id: ID!\n name: String!\n description: String\n parent: Project\n services(\n first: Int = 20\n after: String\n filter: ProjectFilter\n ): ServiceConnection\n }\n\n type Service implements Node {\n id: ID!\n parent: Project\n name: String!\n description: String\n project: Project!\n status: Status!\n }\n\n type ServiceConnection {\n edges: [ServiceEdge!]!\n pageInfo: PageInfo!\n }\n\n type ServiceEdge {\n cursor: String!\n node: Service!\n }\n\n type PageInfo {\n endCursor: String\n hasNextPage: Boolean!\n }\n\n union SearchResult = Project | Service\n\n type Query {\n project(id: ID!): Project\n projects(filter: ProjectFilter): [Project]!\n node(id: ID!): Node\n search(text: String!): [SearchResult!]!\n services(first: Int = 20, after: String): ServiceConnection!\n ping: Boolean!\n }\n\n type Mutation {\n editProject(id: ID!, name: String!): Project!\n deleteProject(id: ID!): Boolean!\n }\n";
|
|
203
|
+
/** Includes characters that must travel in variables, never in GraphQL text. */
|
|
204
|
+
export declare const adversarialArgument = "quoted \"value\" \\ path\nline\t\0 \uD83D\uDE00";
|
|
205
|
+
export declare const partialProjectEnvelope: {
|
|
206
|
+
readonly data: {
|
|
207
|
+
readonly project: {
|
|
208
|
+
readonly id: "p1";
|
|
209
|
+
readonly services: null;
|
|
210
|
+
};
|
|
211
|
+
readonly ping: true;
|
|
212
|
+
};
|
|
213
|
+
readonly errors: readonly [{
|
|
214
|
+
readonly message: "Services temporarily unavailable";
|
|
215
|
+
readonly path: readonly ["project", "services"];
|
|
216
|
+
readonly locations: readonly [{
|
|
217
|
+
readonly line: 1;
|
|
218
|
+
readonly column: 25;
|
|
219
|
+
}];
|
|
220
|
+
readonly extensions: {
|
|
221
|
+
readonly code: "UNAVAILABLE";
|
|
222
|
+
readonly incident: "incident-1";
|
|
223
|
+
};
|
|
224
|
+
}];
|
|
225
|
+
};
|
|
226
|
+
export declare const multipleErrorEnvelope: {
|
|
227
|
+
readonly data: {
|
|
228
|
+
readonly production: null;
|
|
229
|
+
readonly staging: {
|
|
230
|
+
readonly id: "p2";
|
|
231
|
+
readonly services: null;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
readonly errors: readonly [{
|
|
235
|
+
readonly message: "Project not found";
|
|
236
|
+
readonly path: readonly ["production"];
|
|
237
|
+
readonly extensions: {
|
|
238
|
+
readonly code: "NOT_FOUND";
|
|
239
|
+
};
|
|
240
|
+
}, {
|
|
241
|
+
readonly message: "Services temporarily unavailable";
|
|
242
|
+
readonly path: readonly ["staging", "services"];
|
|
243
|
+
readonly extensions: {
|
|
244
|
+
readonly code: "UNAVAILABLE";
|
|
245
|
+
};
|
|
246
|
+
}];
|
|
247
|
+
};
|
|
248
|
+
export {};
|
|
249
|
+
//# sourceMappingURL=graphql.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.fixture.d.ts","sourceRoot":"","sources":["../src/graphql.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;;;;;;;AAE9E,qBAAa,eAAgB,SAAQ,oBAGpC;CAAG;;;;;;;;;;;;;;AACJ,qBAAa,mBAAoB,SAAQ,wBAGxC;CAAG;;;;;;;;;;;;;;AACJ,qBAAa,YAAa,SAAQ,iBAGjC;CAAG;;;;;;;;;;;;;;AACJ,qBAAa,6BAA8B,SAAQ,kCAGlD;CAAG;;;;;;;;;;;;;;AACJ,qBAAa,6BAA8B,SAAQ,kCAGlD;CAAG;;;;;;;;;;;;;;AACJ,qBAAa,mBAAoB,SAAQ,wBAGxC;CAAG;AAEJ,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC;IACrB,YAAY,EAAE,KAAK,CAAC;IACpB,YAAY,EAAE,cAAc,CAAC;IAC7B,MAAM,EAAE;QACN,eAAe,EAAE,eAAe,CAAC;QACjC,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,YAAY,EAAE,YAAY,CAAC;QAC3B,6BAA6B,EAAE,6BAA6B,CAAC;QAC7D,6BAA6B,EAAE,6BAA6B,CAAC;QAC7D,mBAAmB,EAAE,mBAAmB,CAAC;KAC1C,CAAC;IACF,OAAO,EAAE;QACP,EAAE,EAA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AAI,YAAG,SAAS,EAAE,UAAU;iBAC5B,SAAS;qBAAK,IAAI,EAAE,CAAC;qBAAE,MAAM,EAAE,EAAE;;iBACjC,UAAU;qBAAI,IAAI,EAAE,aAAa;qBAAE,QAAQ,EAAE,YAAY;;;CAGrD,CAAC;AAEX,eAAO,MAAM,qBAAqB;aAChC,IAAI;iBACF,UAAU;iBACV,OAAO;qBAAI,EAAE,EAAE,IAAI;qBAAE,QAAQ;;;aAE/B,MAAM;iBAEF,OAAO,EAAE,mBAAmB;iBAC5B,IAAI,YAAG,YAAY;iBACnB,UAAU;qBAAI,IAAI,EAAE,WAAW;;;iBAG/B,OAAO,EAAE,kCAAkC;iBAC3C,IAAI,YAAG,SAAS,EAAE,UAAU;iBAC5B,UAAU;qBAAI,IAAI,EAAE,aAAa;;;CAG7B,CAAC"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import * as G from "./graphql.js";
|
|
3
|
+
export class ProjectNotFound extends Schema.TaggedError()("ProjectNotFound", G.errorFields) {
|
|
4
|
+
}
|
|
5
|
+
export class ServicesUnavailable extends Schema.TaggedError()("ServicesUnavailable", G.errorFields) {
|
|
6
|
+
}
|
|
7
|
+
export class Unauthorized extends Schema.TaggedError()("Unauthorized", G.errorFields) {
|
|
8
|
+
}
|
|
9
|
+
export class ProjectDescriptionUnavailable extends Schema.TaggedError()("ProjectDescriptionUnavailable", G.errorFields) {
|
|
10
|
+
}
|
|
11
|
+
export class ServiceDescriptionUnavailable extends Schema.TaggedError()("ServiceDescriptionUnavailable", G.errorFields) {
|
|
12
|
+
}
|
|
13
|
+
export class PageInfoUnavailable extends Schema.TaggedError()("PageInfoUnavailable", G.errorFields) {
|
|
14
|
+
}
|
|
15
|
+
export const errorClasses = {
|
|
16
|
+
ProjectNotFound,
|
|
17
|
+
ServicesUnavailable,
|
|
18
|
+
Unauthorized,
|
|
19
|
+
ProjectDescriptionUnavailable,
|
|
20
|
+
ServiceDescriptionUnavailable,
|
|
21
|
+
PageInfoUnavailable,
|
|
22
|
+
};
|
|
23
|
+
const field = (type, args = {}, errors = []) => ({ type, args, errors });
|
|
24
|
+
export const fixtureModel = {
|
|
25
|
+
version: 1,
|
|
26
|
+
queryType: "Query",
|
|
27
|
+
mutationType: "Mutation",
|
|
28
|
+
errors: {
|
|
29
|
+
ProjectNotFound: { matchers: [{ code: "NOT_FOUND" }] },
|
|
30
|
+
ServicesUnavailable: { matchers: [{ code: "UNAVAILABLE" }] },
|
|
31
|
+
ProjectDescriptionUnavailable: {
|
|
32
|
+
matchers: [{ code: "DESCRIPTION_UNAVAILABLE" }],
|
|
33
|
+
},
|
|
34
|
+
ServiceDescriptionUnavailable: {
|
|
35
|
+
matchers: [{ code: "DESCRIPTION_UNAVAILABLE" }],
|
|
36
|
+
},
|
|
37
|
+
PageInfoUnavailable: { matchers: [{ code: "PAGE_INFO_UNAVAILABLE" }] },
|
|
38
|
+
Unauthorized: {
|
|
39
|
+
matchers: [
|
|
40
|
+
{ code: "UNAUTHENTICATED" },
|
|
41
|
+
{ code: "INTERNAL_SERVER_ERROR", message: "Not Authorized" },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
globalErrors: ["Unauthorized"],
|
|
46
|
+
types: {
|
|
47
|
+
ID: { kind: "SCALAR", scalar: "string" },
|
|
48
|
+
String: { kind: "SCALAR", scalar: "string" },
|
|
49
|
+
Int: { kind: "SCALAR", scalar: "number" },
|
|
50
|
+
Boolean: { kind: "SCALAR", scalar: "boolean" },
|
|
51
|
+
JSON: { kind: "SCALAR", scalar: "unknown" },
|
|
52
|
+
Status: { kind: "ENUM", enumValues: ["ACTIVE", "ARCHIVED"] },
|
|
53
|
+
ProjectFilter: {
|
|
54
|
+
kind: "INPUT_OBJECT",
|
|
55
|
+
inputFields: {
|
|
56
|
+
name: { type: "String" },
|
|
57
|
+
statuses: { type: "[Status!]", defaultValue: "[ACTIVE]" },
|
|
58
|
+
metadata: { type: "JSON" },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
Query: {
|
|
62
|
+
kind: "OBJECT",
|
|
63
|
+
fields: {
|
|
64
|
+
project: field("Project", { id: { type: "ID!" } }, ["ProjectNotFound"]),
|
|
65
|
+
projects: field("[Project]!", { filter: { type: "ProjectFilter" } }),
|
|
66
|
+
node: field("Node", { id: { type: "ID!" } }),
|
|
67
|
+
search: field("[SearchResult!]!", { text: { type: "String!" } }),
|
|
68
|
+
services: field("ServiceConnection!", {
|
|
69
|
+
first: { type: "Int", defaultValue: "20" },
|
|
70
|
+
after: { type: "String" },
|
|
71
|
+
}, ["ServicesUnavailable"]),
|
|
72
|
+
ping: field("Boolean!"),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
Mutation: {
|
|
76
|
+
kind: "OBJECT",
|
|
77
|
+
fields: {
|
|
78
|
+
editProject: field("Project!", { id: { type: "ID!" }, name: { type: "String!" } }, ["ProjectNotFound"]),
|
|
79
|
+
deleteProject: field("Boolean!", { id: { type: "ID!" } }, [
|
|
80
|
+
"ProjectNotFound",
|
|
81
|
+
]),
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
Project: {
|
|
85
|
+
kind: "OBJECT",
|
|
86
|
+
interfaces: ["Node"],
|
|
87
|
+
fields: {
|
|
88
|
+
id: field("ID!"),
|
|
89
|
+
name: field("String!"),
|
|
90
|
+
description: field("String", {}, ["ProjectDescriptionUnavailable"]),
|
|
91
|
+
parent: field("Project"),
|
|
92
|
+
services: field("ServiceConnection", {
|
|
93
|
+
first: { type: "Int", defaultValue: "20" },
|
|
94
|
+
after: { type: "String" },
|
|
95
|
+
filter: { type: "ProjectFilter" },
|
|
96
|
+
}, ["ServicesUnavailable"]),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
Service: {
|
|
100
|
+
kind: "OBJECT",
|
|
101
|
+
interfaces: ["Node"],
|
|
102
|
+
fields: {
|
|
103
|
+
id: field("ID!"),
|
|
104
|
+
parent: field("Project"),
|
|
105
|
+
name: field("String!"),
|
|
106
|
+
description: field("String", {}, ["ServiceDescriptionUnavailable"]),
|
|
107
|
+
project: field("Project!"),
|
|
108
|
+
status: field("Status!"),
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
ServiceConnection: {
|
|
112
|
+
kind: "OBJECT",
|
|
113
|
+
fields: { edges: field("[ServiceEdge!]!"), pageInfo: field("PageInfo!") },
|
|
114
|
+
},
|
|
115
|
+
ServiceEdge: {
|
|
116
|
+
kind: "OBJECT",
|
|
117
|
+
fields: { cursor: field("String!"), node: field("Service!") },
|
|
118
|
+
},
|
|
119
|
+
PageInfo: {
|
|
120
|
+
kind: "OBJECT",
|
|
121
|
+
fields: {
|
|
122
|
+
endCursor: field("String"),
|
|
123
|
+
hasNextPage: field("Boolean!", {}, ["PageInfoUnavailable"]),
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
Node: {
|
|
127
|
+
kind: "INTERFACE",
|
|
128
|
+
fields: { id: field("ID!"), parent: field("Project") },
|
|
129
|
+
possibleTypes: ["Project", "Service"],
|
|
130
|
+
},
|
|
131
|
+
SearchResult: { kind: "UNION", possibleTypes: ["Project", "Service"] },
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
/** A deliberately small recursive schema for GraphQL compiler/runtime tests. */
|
|
135
|
+
export const fixtureSDL = /* GraphQL */ `
|
|
136
|
+
scalar JSON
|
|
137
|
+
|
|
138
|
+
enum Status {
|
|
139
|
+
ACTIVE
|
|
140
|
+
ARCHIVED
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
input ProjectFilter {
|
|
144
|
+
name: String
|
|
145
|
+
statuses: [Status!] = [ACTIVE]
|
|
146
|
+
metadata: JSON
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface Node {
|
|
150
|
+
id: ID!
|
|
151
|
+
parent: Project
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type Project implements Node {
|
|
155
|
+
id: ID!
|
|
156
|
+
name: String!
|
|
157
|
+
description: String
|
|
158
|
+
parent: Project
|
|
159
|
+
services(
|
|
160
|
+
first: Int = 20
|
|
161
|
+
after: String
|
|
162
|
+
filter: ProjectFilter
|
|
163
|
+
): ServiceConnection
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
type Service implements Node {
|
|
167
|
+
id: ID!
|
|
168
|
+
parent: Project
|
|
169
|
+
name: String!
|
|
170
|
+
description: String
|
|
171
|
+
project: Project!
|
|
172
|
+
status: Status!
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type ServiceConnection {
|
|
176
|
+
edges: [ServiceEdge!]!
|
|
177
|
+
pageInfo: PageInfo!
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
type ServiceEdge {
|
|
181
|
+
cursor: String!
|
|
182
|
+
node: Service!
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
type PageInfo {
|
|
186
|
+
endCursor: String
|
|
187
|
+
hasNextPage: Boolean!
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
union SearchResult = Project | Service
|
|
191
|
+
|
|
192
|
+
type Query {
|
|
193
|
+
project(id: ID!): Project
|
|
194
|
+
projects(filter: ProjectFilter): [Project]!
|
|
195
|
+
node(id: ID!): Node
|
|
196
|
+
search(text: String!): [SearchResult!]!
|
|
197
|
+
services(first: Int = 20, after: String): ServiceConnection!
|
|
198
|
+
ping: Boolean!
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
type Mutation {
|
|
202
|
+
editProject(id: ID!, name: String!): Project!
|
|
203
|
+
deleteProject(id: ID!): Boolean!
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
206
|
+
/** Includes characters that must travel in variables, never in GraphQL text. */
|
|
207
|
+
export const adversarialArgument = 'quoted "value" \\ path\nline\t\u0000 😀';
|
|
208
|
+
export const partialProjectEnvelope = {
|
|
209
|
+
data: {
|
|
210
|
+
project: { id: "p1", services: null },
|
|
211
|
+
ping: true,
|
|
212
|
+
},
|
|
213
|
+
errors: [
|
|
214
|
+
{
|
|
215
|
+
message: "Services temporarily unavailable",
|
|
216
|
+
path: ["project", "services"],
|
|
217
|
+
locations: [{ line: 1, column: 25 }],
|
|
218
|
+
extensions: { code: "UNAVAILABLE", incident: "incident-1" },
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
};
|
|
222
|
+
export const multipleErrorEnvelope = {
|
|
223
|
+
data: {
|
|
224
|
+
production: null,
|
|
225
|
+
staging: { id: "p2", services: null },
|
|
226
|
+
},
|
|
227
|
+
errors: [
|
|
228
|
+
{
|
|
229
|
+
message: "Project not found",
|
|
230
|
+
path: ["production"],
|
|
231
|
+
extensions: { code: "NOT_FOUND" },
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
message: "Services temporarily unavailable",
|
|
235
|
+
path: ["staging", "services"],
|
|
236
|
+
extensions: { code: "UNAVAILABLE" },
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=graphql.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.fixture.js","sourceRoot":"","sources":["../src/graphql.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,WAAW,EAAmB,CACxE,iBAAiB,EACjB,CAAC,CAAC,WAAW,CACd;CAAG;AACJ,MAAM,OAAO,mBAAoB,SAAQ,MAAM,CAAC,WAAW,EAAuB,CAChF,qBAAqB,EACrB,CAAC,CAAC,WAAW,CACd;CAAG;AACJ,MAAM,OAAO,YAAa,SAAQ,MAAM,CAAC,WAAW,EAAgB,CAClE,cAAc,EACd,CAAC,CAAC,WAAW,CACd;CAAG;AACJ,MAAM,OAAO,6BAA8B,SAAQ,MAAM,CAAC,WAAW,EAAiC,CACpG,+BAA+B,EAC/B,C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