@contember/client
Advanced tools
Comparing version 1.1.0-alpha.13 to 1.1.0-alpha.14
const formatContentApiRelativeUrl = (projectSlug, stageSlug) => `/content/${projectSlug}/${stageSlug}`; | ||
export { formatContentApiRelativeUrl }; | ||
export { | ||
formatContentApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=formatContentApiRelativeUrl.js.map |
@@ -14,3 +14,5 @@ import { GraphQlLiteral } from "../../graphQlBuilder/GraphQlLiteral.js"; | ||
}; | ||
export { whereToFilter }; | ||
export { | ||
whereToFilter | ||
}; | ||
//# sourceMappingURL=whereToFilter.js.map |
@@ -7,3 +7,5 @@ class FileUploadError extends Error { | ||
} | ||
export { FileUploadError }; | ||
export { | ||
FileUploadError | ||
}; | ||
//# sourceMappingURL=FileUploadError.js.map |
@@ -14,3 +14,6 @@ var __defProp = Object.defineProperty; | ||
const fileParameters = parameters[alias]; | ||
builder = builder.object(alias, _GenerateUploadUrlMutationBuilder.generateUploadUrlFields.argument("contentType", fileParameters.contentType).argument("expiration", fileParameters.expiration).argument("prefix", fileParameters.prefix).argument("acl", fileParameters.acl)); | ||
builder = builder.object( | ||
alias, | ||
_GenerateUploadUrlMutationBuilder.generateUploadUrlFields.argument("contentType", fileParameters.contentType).argument("expiration", fileParameters.expiration).argument("prefix", fileParameters.prefix).argument("acl", fileParameters.acl) | ||
); | ||
} | ||
@@ -23,3 +26,5 @@ return builder; | ||
__publicField(GenerateUploadUrlMutationBuilder, "generateUploadUrlFields", new ObjectBuilder().name("generateUploadUrl").field("url").field("publicUrl").field("method").object("headers", (builder) => builder.field("key").field("value"))); | ||
export { GenerateUploadUrlMutationBuilder }; | ||
export { | ||
GenerateUploadUrlMutationBuilder | ||
}; | ||
//# sourceMappingURL=GenerateUploadUrlMutationBuilder.js.map |
@@ -90,3 +90,5 @@ var __defProp = Object.defineProperty; | ||
} | ||
export { S3FileUploader }; | ||
export { | ||
S3FileUploader | ||
}; | ||
//# sourceMappingURL=S3FileUploader.js.map |
@@ -79,3 +79,10 @@ import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js"; | ||
inTransaction(alias = "transaction", options = {}) { | ||
const objectBuilder = new ObjectBuilder(["ok", "errorMessage"], { ...this.rootObjectBuilder.objects }, { options }, void 0, void 0, "transaction"); | ||
const objectBuilder = new ObjectBuilder( | ||
["ok", "errorMessage"], | ||
{ ...this.rootObjectBuilder.objects }, | ||
{ options }, | ||
void 0, | ||
void 0, | ||
"transaction" | ||
); | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions)); | ||
@@ -95,3 +102,5 @@ } | ||
} | ||
export { CrudQueryBuilder }; | ||
export { | ||
CrudQueryBuilder | ||
}; | ||
//# sourceMappingURL=CrudQueryBuilder.js.map |
class CrudQueryBuilderError extends Error { | ||
} | ||
export { CrudQueryBuilderError }; | ||
export { | ||
CrudQueryBuilderError | ||
}; | ||
//# sourceMappingURL=CrudQueryBuilderError.js.map |
class ErrorsRelationBuilder { | ||
static errorsRelation(objectBuilder) { | ||
return objectBuilder.object("errors", (builder) => builder.field("type").field("message").object("path", (builder2) => builder2.inlineFragment("_FieldPathFragment", (builder3) => builder3.field("field")).inlineFragment("_IndexPathFragment", (builder3) => builder3.field("index").field("alias")))); | ||
return objectBuilder.object( | ||
"errors", | ||
(builder) => builder.field("type").field("message").object( | ||
"path", | ||
(builder2) => builder2.inlineFragment("_FieldPathFragment", (builder3) => builder3.field("field")).inlineFragment("_IndexPathFragment", (builder3) => builder3.field("index").field("alias")) | ||
) | ||
); | ||
} | ||
} | ||
export { ErrorsRelationBuilder }; | ||
export { | ||
ErrorsRelationBuilder | ||
}; | ||
//# sourceMappingURL=ErrorsRelationBuilder.js.map |
@@ -67,3 +67,5 @@ import { ObjectBuilder } from "../graphQlBuilder/ObjectBuilder.js"; | ||
} | ||
export { ReadBuilder }; | ||
export { | ||
ReadBuilder | ||
}; | ||
//# sourceMappingURL=ReadBuilder.js.map |
@@ -37,3 +37,5 @@ var __defProp = Object.defineProperty; | ||
})(WriteOperation || (WriteOperation = {})); | ||
export { WriteOperation }; | ||
export { | ||
WriteOperation | ||
}; | ||
//# sourceMappingURL=types.js.map |
class ValidationRelationBuilder { | ||
static validationRelation(objectBuilder) { | ||
return objectBuilder.object("validation", (builder) => builder.field("valid").object("errors", (builder2) => builder2.object("path", (builder3) => builder3.inlineFragment("_FieldPathFragment", (builder4) => builder4.field("field")).inlineFragment("_IndexPathFragment", (builder4) => builder4.field("index").field("alias"))).object("message", (builder3) => builder3.field("text")))); | ||
return objectBuilder.object( | ||
"validation", | ||
(builder) => builder.field("valid").object( | ||
"errors", | ||
(builder2) => builder2.object( | ||
"path", | ||
(builder3) => builder3.inlineFragment("_FieldPathFragment", (builder4) => builder4.field("field")).inlineFragment("_IndexPathFragment", (builder4) => builder4.field("index").field("alias")) | ||
).object("message", (builder3) => builder3.field("text")) | ||
) | ||
); | ||
} | ||
} | ||
export { ValidationRelationBuilder }; | ||
export { | ||
ValidationRelationBuilder | ||
}; | ||
//# sourceMappingURL=ValidationRelationBuilder.js.map |
@@ -21,3 +21,5 @@ import { ErrorsRelationBuilder } from "./ErrorsRelationBuilder.js"; | ||
const resolvedData = WriteDataBuilder.resolveData(data); | ||
return WriteBuilder.instantiate(resolvedData === void 0 ? this.objectBuilder : this.objectBuilder.argument("data", resolvedData)); | ||
return WriteBuilder.instantiate( | ||
resolvedData === void 0 ? this.objectBuilder : this.objectBuilder.argument("data", resolvedData) | ||
); | ||
} | ||
@@ -34,13 +36,21 @@ by(by) { | ||
validation() { | ||
return WriteBuilder.instantiate(ValidationRelationBuilder.validationRelation(this.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
ValidationRelationBuilder.validationRelation(this.objectBuilder) | ||
); | ||
} | ||
errors() { | ||
return WriteBuilder.instantiate(ErrorsRelationBuilder.errorsRelation(this.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
ErrorsRelationBuilder.errorsRelation(this.objectBuilder) | ||
); | ||
} | ||
node(builder) { | ||
const readBuilder = ReadBuilder.instantiateFromFactory(builder); | ||
return WriteBuilder.instantiate(this.objectBuilder.object("node", readBuilder.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
this.objectBuilder.object("node", readBuilder.objectBuilder) | ||
); | ||
} | ||
} | ||
export { WriteBuilder }; | ||
export { | ||
WriteBuilder | ||
}; | ||
//# sourceMappingURL=WriteBuilder.js.map |
@@ -107,3 +107,5 @@ var __defProp = Object.defineProperty; | ||
} | ||
export { WriteDataBuilder }; | ||
export { | ||
WriteDataBuilder | ||
}; | ||
//# sourceMappingURL=WriteDataBuilder.js.map |
@@ -55,9 +55,12 @@ import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
...this.data, | ||
this.withAlias({ | ||
upsert: { | ||
by: where, | ||
update: resolvedUpdate || {}, | ||
create: resolvedCreate || {} | ||
} | ||
}, alias) | ||
this.withAlias( | ||
{ | ||
upsert: { | ||
by: where, | ||
update: resolvedUpdate || {}, | ||
create: resolvedCreate || {} | ||
} | ||
}, | ||
alias | ||
) | ||
]); | ||
@@ -72,3 +75,5 @@ } | ||
} | ||
export { WriteManyRelationBuilder }; | ||
export { | ||
WriteManyRelationBuilder | ||
}; | ||
//# sourceMappingURL=WriteManyRelationBuilder.js.map |
@@ -48,3 +48,5 @@ import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
} | ||
export { WriteOneRelationBuilder }; | ||
export { | ||
WriteOneRelationBuilder | ||
}; | ||
//# sourceMappingURL=WriteOneRelationBuilder.js.map |
class GraphQlBuilderError extends Error { | ||
} | ||
export { GraphQlBuilderError }; | ||
export { | ||
GraphQlBuilderError | ||
}; | ||
//# sourceMappingURL=GraphQlBuilderError.js.map |
@@ -9,3 +9,5 @@ class GraphQlLiteral { | ||
} | ||
export { GraphQlLiteral }; | ||
export { | ||
GraphQlLiteral | ||
}; | ||
//# sourceMappingURL=GraphQlLiteral.js.map |
@@ -11,9 +11,30 @@ class ObjectBuilder { | ||
argument(name, value) { | ||
return new ObjectBuilder(this.fields, this.objects, { ...this.args, [name]: value }, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
{ ...this.args, [name]: value }, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
name(name) { | ||
return new ObjectBuilder(this.fields, this.objects, this.args, this.fragmentApplications, this.inlineFragments, name); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
name | ||
); | ||
} | ||
field(name) { | ||
return new ObjectBuilder([...this.fields, name], this.objects, this.args, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
[...this.fields, name], | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
@@ -24,3 +45,10 @@ object(name, builder) { | ||
} | ||
return new ObjectBuilder(this.fields, { ...this.objects, [name]: builder }, this.args, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
{ ...this.objects, [name]: builder }, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
@@ -31,9 +59,25 @@ inlineFragment(typeName, builder) { | ||
} | ||
return new ObjectBuilder(this.fields, this.objects, this.args, this.fragmentApplications, { ...this.inlineFragments, [typeName]: builder }, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
{ ...this.inlineFragments, [typeName]: builder }, | ||
this.objectName | ||
); | ||
} | ||
applyFragment(fragmentName) { | ||
return new ObjectBuilder(this.fields, this.objects, this.args, [...this.fragmentApplications, fragmentName], this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
[...this.fragmentApplications, fragmentName], | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
} | ||
export { ObjectBuilder }; | ||
export { | ||
ObjectBuilder | ||
}; | ||
//# sourceMappingURL=ObjectBuilder.js.map |
@@ -19,3 +19,5 @@ import { QueryCompiler } from "./QueryCompiler.js"; | ||
} | ||
export { QueryBuilder }; | ||
export { | ||
QueryBuilder | ||
}; | ||
//# sourceMappingURL=QueryBuilder.js.map |
@@ -98,3 +98,5 @@ import { GraphQlLiteral } from "./GraphQlLiteral.js"; | ||
} | ||
export { QueryCompiler }; | ||
export { | ||
QueryCompiler | ||
}; | ||
//# sourceMappingURL=QueryCompiler.js.map |
@@ -28,3 +28,5 @@ import { GraphQlBuilderError } from "./GraphQlBuilderError.js"; | ||
} | ||
export { RootObjectBuilder }; | ||
export { | ||
RootObjectBuilder | ||
}; | ||
//# sourceMappingURL=RootObjectBuilder.js.map |
@@ -30,3 +30,5 @@ class GraphQlClient { | ||
} | ||
export { GraphQlClient }; | ||
export { | ||
GraphQlClient | ||
}; | ||
//# sourceMappingURL=GraphQlClient.js.map |
import { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
export { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
import { GraphQlLiteral as GraphQlLiteral2 } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
import { ObjectBuilder } from "./graphQlBuilder/ObjectBuilder.js"; | ||
@@ -14,12 +14,12 @@ import { QueryCompiler } from "./graphQlBuilder/QueryCompiler.js"; | ||
import { WriteOperation } from "./crudQueryBuilder/types.js"; | ||
export { FileUploadError } from "./content/upload/FileUploadError.js"; | ||
export { GenerateUploadUrlMutationBuilder } from "./content/upload/GenerateUploadUrlMutationBuilder.js"; | ||
export { S3FileUploader } from "./content/upload/S3FileUploader.js"; | ||
export { whereToFilter } from "./content/params/whereToFilter.js"; | ||
export { formatContentApiRelativeUrl } from "./content/formatContentApiRelativeUrl.js"; | ||
export { GraphQlClient } from "./graphQlClient/GraphQlClient.js"; | ||
export { formatSystemApiRelativeUrl } from "./system/formatSystemApiRelativeUrl.js"; | ||
export { loginMutation } from "./tenant/loginMutation.js"; | ||
export { tenantApiRelativeUrl } from "./tenant/tenantApiRelativeUrl.js"; | ||
export { getTenantErrorMessage, tenantErrorMessages } from "./tenant/tenantErrorMessages.js"; | ||
import { FileUploadError } from "./content/upload/FileUploadError.js"; | ||
import { GenerateUploadUrlMutationBuilder } from "./content/upload/GenerateUploadUrlMutationBuilder.js"; | ||
import { S3FileUploader } from "./content/upload/S3FileUploader.js"; | ||
import { whereToFilter } from "./content/params/whereToFilter.js"; | ||
import { formatContentApiRelativeUrl } from "./content/formatContentApiRelativeUrl.js"; | ||
import { GraphQlClient } from "./graphQlClient/GraphQlClient.js"; | ||
import { formatSystemApiRelativeUrl } from "./system/formatSystemApiRelativeUrl.js"; | ||
import { loginMutation } from "./tenant/loginMutation.js"; | ||
import { tenantApiRelativeUrl } from "./tenant/tenantApiRelativeUrl.js"; | ||
import { getTenantErrorMessage, tenantErrorMessages } from "./tenant/tenantErrorMessages.js"; | ||
var GraphQlBuilder; | ||
@@ -44,3 +44,18 @@ ((GraphQlBuilder2) => { | ||
})(CrudQueryBuilder || (CrudQueryBuilder = {})); | ||
export { CrudQueryBuilder, GraphQlBuilder }; | ||
export { | ||
CrudQueryBuilder, | ||
FileUploadError, | ||
GenerateUploadUrlMutationBuilder, | ||
GraphQlBuilder, | ||
GraphQlClient, | ||
GraphQlLiteral2 as GraphQlLiteral, | ||
S3FileUploader, | ||
formatContentApiRelativeUrl, | ||
formatSystemApiRelativeUrl, | ||
getTenantErrorMessage, | ||
loginMutation, | ||
tenantApiRelativeUrl, | ||
tenantErrorMessages, | ||
whereToFilter | ||
}; | ||
//# sourceMappingURL=index.js.map |
const formatSystemApiRelativeUrl = (projectSlug) => `/system/${projectSlug}`; | ||
export { formatSystemApiRelativeUrl }; | ||
export { | ||
formatSystemApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=formatSystemApiRelativeUrl.js.map |
@@ -31,3 +31,5 @@ const loginMutation = ` | ||
`; | ||
export { loginMutation }; | ||
export { | ||
loginMutation | ||
}; | ||
//# sourceMappingURL=loginMutation.js.map |
const tenantApiRelativeUrl = "/tenant"; | ||
export { tenantApiRelativeUrl }; | ||
export { | ||
tenantApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=tenantApiRelativeUrl.js.map |
@@ -14,3 +14,6 @@ const tenantErrorMessages = { | ||
}; | ||
export { getTenantErrorMessage, tenantErrorMessages }; | ||
export { | ||
getTenantErrorMessage, | ||
tenantErrorMessages | ||
}; | ||
//# sourceMappingURL=tenantErrorMessages.js.map |
@@ -9,3 +9,5 @@ const isEmptyObject = (arg) => { | ||
}; | ||
export { isEmptyObject }; | ||
export { | ||
isEmptyObject | ||
}; | ||
//# sourceMappingURL=isEmptyObject.js.map |
@@ -12,3 +12,5 @@ const readFileAsArrayBuffer = (file) => new Promise((resolve, reject) => { | ||
}); | ||
export { readFileAsArrayBuffer }; | ||
export { | ||
readFileAsArrayBuffer | ||
}; | ||
//# sourceMappingURL=readFileAsArrayBuffer.js.map |
const formatContentApiRelativeUrl = (projectSlug, stageSlug) => `/content/${projectSlug}/${stageSlug}`; | ||
export { formatContentApiRelativeUrl }; | ||
export { | ||
formatContentApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=formatContentApiRelativeUrl.js.map |
@@ -14,3 +14,5 @@ import { GraphQlLiteral } from "../../graphQlBuilder/GraphQlLiteral.js"; | ||
}; | ||
export { whereToFilter }; | ||
export { | ||
whereToFilter | ||
}; | ||
//# sourceMappingURL=whereToFilter.js.map |
@@ -7,3 +7,5 @@ class FileUploadError extends Error { | ||
} | ||
export { FileUploadError }; | ||
export { | ||
FileUploadError | ||
}; | ||
//# sourceMappingURL=FileUploadError.js.map |
@@ -14,3 +14,6 @@ var __defProp = Object.defineProperty; | ||
const fileParameters = parameters[alias]; | ||
builder = builder.object(alias, _GenerateUploadUrlMutationBuilder.generateUploadUrlFields.argument("contentType", fileParameters.contentType).argument("expiration", fileParameters.expiration).argument("prefix", fileParameters.prefix).argument("acl", fileParameters.acl)); | ||
builder = builder.object( | ||
alias, | ||
_GenerateUploadUrlMutationBuilder.generateUploadUrlFields.argument("contentType", fileParameters.contentType).argument("expiration", fileParameters.expiration).argument("prefix", fileParameters.prefix).argument("acl", fileParameters.acl) | ||
); | ||
} | ||
@@ -23,3 +26,5 @@ return builder; | ||
__publicField(GenerateUploadUrlMutationBuilder, "generateUploadUrlFields", new ObjectBuilder().name("generateUploadUrl").field("url").field("publicUrl").field("method").object("headers", (builder) => builder.field("key").field("value"))); | ||
export { GenerateUploadUrlMutationBuilder }; | ||
export { | ||
GenerateUploadUrlMutationBuilder | ||
}; | ||
//# sourceMappingURL=GenerateUploadUrlMutationBuilder.js.map |
@@ -90,3 +90,5 @@ var __defProp = Object.defineProperty; | ||
} | ||
export { S3FileUploader }; | ||
export { | ||
S3FileUploader | ||
}; | ||
//# sourceMappingURL=S3FileUploader.js.map |
@@ -79,3 +79,10 @@ import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js"; | ||
inTransaction(alias = "transaction", options = {}) { | ||
const objectBuilder = new ObjectBuilder(["ok", "errorMessage"], { ...this.rootObjectBuilder.objects }, { options }, void 0, void 0, "transaction"); | ||
const objectBuilder = new ObjectBuilder( | ||
["ok", "errorMessage"], | ||
{ ...this.rootObjectBuilder.objects }, | ||
{ options }, | ||
void 0, | ||
void 0, | ||
"transaction" | ||
); | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions)); | ||
@@ -95,3 +102,5 @@ } | ||
} | ||
export { CrudQueryBuilder }; | ||
export { | ||
CrudQueryBuilder | ||
}; | ||
//# sourceMappingURL=CrudQueryBuilder.js.map |
class CrudQueryBuilderError extends Error { | ||
} | ||
export { CrudQueryBuilderError }; | ||
export { | ||
CrudQueryBuilderError | ||
}; | ||
//# sourceMappingURL=CrudQueryBuilderError.js.map |
class ErrorsRelationBuilder { | ||
static errorsRelation(objectBuilder) { | ||
return objectBuilder.object("errors", (builder) => builder.field("type").field("message").object("path", (builder2) => builder2.inlineFragment("_FieldPathFragment", (builder3) => builder3.field("field")).inlineFragment("_IndexPathFragment", (builder3) => builder3.field("index").field("alias")))); | ||
return objectBuilder.object( | ||
"errors", | ||
(builder) => builder.field("type").field("message").object( | ||
"path", | ||
(builder2) => builder2.inlineFragment("_FieldPathFragment", (builder3) => builder3.field("field")).inlineFragment("_IndexPathFragment", (builder3) => builder3.field("index").field("alias")) | ||
) | ||
); | ||
} | ||
} | ||
export { ErrorsRelationBuilder }; | ||
export { | ||
ErrorsRelationBuilder | ||
}; | ||
//# sourceMappingURL=ErrorsRelationBuilder.js.map |
@@ -67,3 +67,5 @@ import { ObjectBuilder } from "../graphQlBuilder/ObjectBuilder.js"; | ||
} | ||
export { ReadBuilder }; | ||
export { | ||
ReadBuilder | ||
}; | ||
//# sourceMappingURL=ReadBuilder.js.map |
@@ -37,3 +37,5 @@ var __defProp = Object.defineProperty; | ||
})(WriteOperation || (WriteOperation = {})); | ||
export { WriteOperation }; | ||
export { | ||
WriteOperation | ||
}; | ||
//# sourceMappingURL=types.js.map |
class ValidationRelationBuilder { | ||
static validationRelation(objectBuilder) { | ||
return objectBuilder.object("validation", (builder) => builder.field("valid").object("errors", (builder2) => builder2.object("path", (builder3) => builder3.inlineFragment("_FieldPathFragment", (builder4) => builder4.field("field")).inlineFragment("_IndexPathFragment", (builder4) => builder4.field("index").field("alias"))).object("message", (builder3) => builder3.field("text")))); | ||
return objectBuilder.object( | ||
"validation", | ||
(builder) => builder.field("valid").object( | ||
"errors", | ||
(builder2) => builder2.object( | ||
"path", | ||
(builder3) => builder3.inlineFragment("_FieldPathFragment", (builder4) => builder4.field("field")).inlineFragment("_IndexPathFragment", (builder4) => builder4.field("index").field("alias")) | ||
).object("message", (builder3) => builder3.field("text")) | ||
) | ||
); | ||
} | ||
} | ||
export { ValidationRelationBuilder }; | ||
export { | ||
ValidationRelationBuilder | ||
}; | ||
//# sourceMappingURL=ValidationRelationBuilder.js.map |
@@ -21,3 +21,5 @@ import { ErrorsRelationBuilder } from "./ErrorsRelationBuilder.js"; | ||
const resolvedData = WriteDataBuilder.resolveData(data); | ||
return WriteBuilder.instantiate(resolvedData === void 0 ? this.objectBuilder : this.objectBuilder.argument("data", resolvedData)); | ||
return WriteBuilder.instantiate( | ||
resolvedData === void 0 ? this.objectBuilder : this.objectBuilder.argument("data", resolvedData) | ||
); | ||
} | ||
@@ -34,13 +36,21 @@ by(by) { | ||
validation() { | ||
return WriteBuilder.instantiate(ValidationRelationBuilder.validationRelation(this.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
ValidationRelationBuilder.validationRelation(this.objectBuilder) | ||
); | ||
} | ||
errors() { | ||
return WriteBuilder.instantiate(ErrorsRelationBuilder.errorsRelation(this.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
ErrorsRelationBuilder.errorsRelation(this.objectBuilder) | ||
); | ||
} | ||
node(builder) { | ||
const readBuilder = ReadBuilder.instantiateFromFactory(builder); | ||
return WriteBuilder.instantiate(this.objectBuilder.object("node", readBuilder.objectBuilder)); | ||
return WriteBuilder.instantiate( | ||
this.objectBuilder.object("node", readBuilder.objectBuilder) | ||
); | ||
} | ||
} | ||
export { WriteBuilder }; | ||
export { | ||
WriteBuilder | ||
}; | ||
//# sourceMappingURL=WriteBuilder.js.map |
@@ -107,3 +107,5 @@ var __defProp = Object.defineProperty; | ||
} | ||
export { WriteDataBuilder }; | ||
export { | ||
WriteDataBuilder | ||
}; | ||
//# sourceMappingURL=WriteDataBuilder.js.map |
@@ -55,9 +55,12 @@ import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
...this.data, | ||
this.withAlias({ | ||
upsert: { | ||
by: where, | ||
update: resolvedUpdate || {}, | ||
create: resolvedCreate || {} | ||
} | ||
}, alias) | ||
this.withAlias( | ||
{ | ||
upsert: { | ||
by: where, | ||
update: resolvedUpdate || {}, | ||
create: resolvedCreate || {} | ||
} | ||
}, | ||
alias | ||
) | ||
]); | ||
@@ -72,3 +75,5 @@ } | ||
} | ||
export { WriteManyRelationBuilder }; | ||
export { | ||
WriteManyRelationBuilder | ||
}; | ||
//# sourceMappingURL=WriteManyRelationBuilder.js.map |
@@ -48,3 +48,5 @@ import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
} | ||
export { WriteOneRelationBuilder }; | ||
export { | ||
WriteOneRelationBuilder | ||
}; | ||
//# sourceMappingURL=WriteOneRelationBuilder.js.map |
class GraphQlBuilderError extends Error { | ||
} | ||
export { GraphQlBuilderError }; | ||
export { | ||
GraphQlBuilderError | ||
}; | ||
//# sourceMappingURL=GraphQlBuilderError.js.map |
@@ -9,3 +9,5 @@ class GraphQlLiteral { | ||
} | ||
export { GraphQlLiteral }; | ||
export { | ||
GraphQlLiteral | ||
}; | ||
//# sourceMappingURL=GraphQlLiteral.js.map |
@@ -11,9 +11,30 @@ class ObjectBuilder { | ||
argument(name, value) { | ||
return new ObjectBuilder(this.fields, this.objects, { ...this.args, [name]: value }, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
{ ...this.args, [name]: value }, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
name(name) { | ||
return new ObjectBuilder(this.fields, this.objects, this.args, this.fragmentApplications, this.inlineFragments, name); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
name | ||
); | ||
} | ||
field(name) { | ||
return new ObjectBuilder([...this.fields, name], this.objects, this.args, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
[...this.fields, name], | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
@@ -24,3 +45,10 @@ object(name, builder) { | ||
} | ||
return new ObjectBuilder(this.fields, { ...this.objects, [name]: builder }, this.args, this.fragmentApplications, this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
{ ...this.objects, [name]: builder }, | ||
this.args, | ||
this.fragmentApplications, | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
@@ -31,9 +59,25 @@ inlineFragment(typeName, builder) { | ||
} | ||
return new ObjectBuilder(this.fields, this.objects, this.args, this.fragmentApplications, { ...this.inlineFragments, [typeName]: builder }, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
this.fragmentApplications, | ||
{ ...this.inlineFragments, [typeName]: builder }, | ||
this.objectName | ||
); | ||
} | ||
applyFragment(fragmentName) { | ||
return new ObjectBuilder(this.fields, this.objects, this.args, [...this.fragmentApplications, fragmentName], this.inlineFragments, this.objectName); | ||
return new ObjectBuilder( | ||
this.fields, | ||
this.objects, | ||
this.args, | ||
[...this.fragmentApplications, fragmentName], | ||
this.inlineFragments, | ||
this.objectName | ||
); | ||
} | ||
} | ||
export { ObjectBuilder }; | ||
export { | ||
ObjectBuilder | ||
}; | ||
//# sourceMappingURL=ObjectBuilder.js.map |
@@ -19,3 +19,5 @@ import { QueryCompiler } from "./QueryCompiler.js"; | ||
} | ||
export { QueryBuilder }; | ||
export { | ||
QueryBuilder | ||
}; | ||
//# sourceMappingURL=QueryBuilder.js.map |
@@ -98,3 +98,5 @@ import { GraphQlLiteral } from "./GraphQlLiteral.js"; | ||
} | ||
export { QueryCompiler }; | ||
export { | ||
QueryCompiler | ||
}; | ||
//# sourceMappingURL=QueryCompiler.js.map |
@@ -28,3 +28,5 @@ import { GraphQlBuilderError } from "./GraphQlBuilderError.js"; | ||
} | ||
export { RootObjectBuilder }; | ||
export { | ||
RootObjectBuilder | ||
}; | ||
//# sourceMappingURL=RootObjectBuilder.js.map |
@@ -30,3 +30,5 @@ class GraphQlClient { | ||
} | ||
export { GraphQlClient }; | ||
export { | ||
GraphQlClient | ||
}; | ||
//# sourceMappingURL=GraphQlClient.js.map |
import { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
export { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
import { GraphQlLiteral as GraphQlLiteral2 } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
import { ObjectBuilder } from "./graphQlBuilder/ObjectBuilder.js"; | ||
@@ -14,12 +14,12 @@ import { QueryCompiler } from "./graphQlBuilder/QueryCompiler.js"; | ||
import { WriteOperation } from "./crudQueryBuilder/types.js"; | ||
export { FileUploadError } from "./content/upload/FileUploadError.js"; | ||
export { GenerateUploadUrlMutationBuilder } from "./content/upload/GenerateUploadUrlMutationBuilder.js"; | ||
export { S3FileUploader } from "./content/upload/S3FileUploader.js"; | ||
export { whereToFilter } from "./content/params/whereToFilter.js"; | ||
export { formatContentApiRelativeUrl } from "./content/formatContentApiRelativeUrl.js"; | ||
export { GraphQlClient } from "./graphQlClient/GraphQlClient.js"; | ||
export { formatSystemApiRelativeUrl } from "./system/formatSystemApiRelativeUrl.js"; | ||
export { loginMutation } from "./tenant/loginMutation.js"; | ||
export { tenantApiRelativeUrl } from "./tenant/tenantApiRelativeUrl.js"; | ||
export { getTenantErrorMessage, tenantErrorMessages } from "./tenant/tenantErrorMessages.js"; | ||
import { FileUploadError } from "./content/upload/FileUploadError.js"; | ||
import { GenerateUploadUrlMutationBuilder } from "./content/upload/GenerateUploadUrlMutationBuilder.js"; | ||
import { S3FileUploader } from "./content/upload/S3FileUploader.js"; | ||
import { whereToFilter } from "./content/params/whereToFilter.js"; | ||
import { formatContentApiRelativeUrl } from "./content/formatContentApiRelativeUrl.js"; | ||
import { GraphQlClient } from "./graphQlClient/GraphQlClient.js"; | ||
import { formatSystemApiRelativeUrl } from "./system/formatSystemApiRelativeUrl.js"; | ||
import { loginMutation } from "./tenant/loginMutation.js"; | ||
import { tenantApiRelativeUrl } from "./tenant/tenantApiRelativeUrl.js"; | ||
import { getTenantErrorMessage, tenantErrorMessages } from "./tenant/tenantErrorMessages.js"; | ||
var GraphQlBuilder; | ||
@@ -44,3 +44,18 @@ ((GraphQlBuilder2) => { | ||
})(CrudQueryBuilder || (CrudQueryBuilder = {})); | ||
export { CrudQueryBuilder, GraphQlBuilder }; | ||
export { | ||
CrudQueryBuilder, | ||
FileUploadError, | ||
GenerateUploadUrlMutationBuilder, | ||
GraphQlBuilder, | ||
GraphQlClient, | ||
GraphQlLiteral2 as GraphQlLiteral, | ||
S3FileUploader, | ||
formatContentApiRelativeUrl, | ||
formatSystemApiRelativeUrl, | ||
getTenantErrorMessage, | ||
loginMutation, | ||
tenantApiRelativeUrl, | ||
tenantErrorMessages, | ||
whereToFilter | ||
}; | ||
//# sourceMappingURL=index.js.map |
const formatSystemApiRelativeUrl = (projectSlug) => `/system/${projectSlug}`; | ||
export { formatSystemApiRelativeUrl }; | ||
export { | ||
formatSystemApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=formatSystemApiRelativeUrl.js.map |
@@ -31,3 +31,5 @@ const loginMutation = ` | ||
`; | ||
export { loginMutation }; | ||
export { | ||
loginMutation | ||
}; | ||
//# sourceMappingURL=loginMutation.js.map |
const tenantApiRelativeUrl = "/tenant"; | ||
export { tenantApiRelativeUrl }; | ||
export { | ||
tenantApiRelativeUrl | ||
}; | ||
//# sourceMappingURL=tenantApiRelativeUrl.js.map |
@@ -14,3 +14,6 @@ const tenantErrorMessages = { | ||
}; | ||
export { getTenantErrorMessage, tenantErrorMessages }; | ||
export { | ||
getTenantErrorMessage, | ||
tenantErrorMessages | ||
}; | ||
//# sourceMappingURL=tenantErrorMessages.js.map |
@@ -9,3 +9,5 @@ const isEmptyObject = (arg) => { | ||
}; | ||
export { isEmptyObject }; | ||
export { | ||
isEmptyObject | ||
}; | ||
//# sourceMappingURL=isEmptyObject.js.map |
@@ -12,3 +12,5 @@ const readFileAsArrayBuffer = (file) => new Promise((resolve, reject) => { | ||
}); | ||
export { readFileAsArrayBuffer }; | ||
export { | ||
readFileAsArrayBuffer | ||
}; | ||
//# sourceMappingURL=readFileAsArrayBuffer.js.map |
{ | ||
"name": "@contember/client", | ||
"license": "Apache-2.0", | ||
"version": "1.1.0-alpha.13", | ||
"version": "1.1.0-alpha.14", | ||
"main": "./dist/production/index.js", | ||
@@ -6,0 +6,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421150
4241