@contember/client
Advanced tools
Comparing version 1.0.0-rc.22 to 1.0.0-rc.23
const formatContentApiRelativeUrl = (projectSlug, stageSlug) => `/content/${projectSlug}/${stageSlug}`; | ||
export { formatContentApiRelativeUrl }; | ||
//# sourceMappingURL=formatContentApiRelativeUrl.js.map |
@@ -1,3 +0,2 @@ | ||
import { GraphQlLiteral } from '../../graphQlBuilder/GraphQlLiteral.js'; | ||
import { GraphQlLiteral } from "../../graphQlBuilder/GraphQlLiteral.js"; | ||
const whereToFilter = (by) => { | ||
@@ -15,4 +14,3 @@ const where = {}; | ||
}; | ||
export { whereToFilter }; | ||
//# sourceMappingURL=whereToFilter.js.map |
@@ -7,4 +7,3 @@ class FileUploadError extends Error { | ||
} | ||
export { FileUploadError }; | ||
//# sourceMappingURL=FileUploadError.js.map |
@@ -1,6 +0,10 @@ | ||
import { ObjectBuilder } from '../../graphQlBuilder/ObjectBuilder.js'; | ||
import { QueryBuilder } from '../../graphQlBuilder/QueryBuilder.js'; | ||
class GenerateUploadUrlMutationBuilder { | ||
static generateUploadUrlFields = new ObjectBuilder().name("generateUploadUrl").field("url").field("publicUrl").field("method").object("headers", (builder) => builder.field("key").field("value")); | ||
var __defProp = Object.defineProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
import { ObjectBuilder } from "../../graphQlBuilder/ObjectBuilder.js"; | ||
import { QueryBuilder } from "../../graphQlBuilder/QueryBuilder.js"; | ||
const _GenerateUploadUrlMutationBuilder = class { | ||
static buildQuery(parameters) { | ||
@@ -10,3 +14,3 @@ return new QueryBuilder().mutation((builder) => { | ||
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)); | ||
} | ||
@@ -16,5 +20,6 @@ return builder; | ||
} | ||
} | ||
}; | ||
let GenerateUploadUrlMutationBuilder = _GenerateUploadUrlMutationBuilder; | ||
__publicField(GenerateUploadUrlMutationBuilder, "generateUploadUrlFields", new ObjectBuilder().name("generateUploadUrl").field("url").field("publicUrl").field("method").object("headers", (builder) => builder.field("key").field("value"))); | ||
export { GenerateUploadUrlMutationBuilder }; | ||
//# sourceMappingURL=GenerateUploadUrlMutationBuilder.js.map |
@@ -1,14 +0,19 @@ | ||
import { GenerateUploadUrlMutationBuilder } from './GenerateUploadUrlMutationBuilder.js'; | ||
import { readFileAsArrayBuffer } from '../../utils/readFileAsArrayBuffer.js'; | ||
var __defProp = Object.defineProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
import { GenerateUploadUrlMutationBuilder } from "./GenerateUploadUrlMutationBuilder.js"; | ||
import { readFileAsArrayBuffer } from "../../utils/readFileAsArrayBuffer.js"; | ||
class S3FileUploader { | ||
constructor(options = {}) { | ||
__publicField(this, "uploadState"); | ||
__publicField(this, "generateNewAlias", (() => { | ||
let alias = 1; | ||
return () => alias++; | ||
})()); | ||
this.options = options; | ||
this.uploadState = /* @__PURE__ */ new WeakMap(); | ||
} | ||
uploadState; | ||
generateNewAlias = (() => { | ||
let alias = 1; | ||
return () => alias++; | ||
})(); | ||
static formatFullAlias(alias) { | ||
@@ -79,4 +84,3 @@ return `file${alias}`; | ||
} | ||
export { S3FileUploader }; | ||
//# sourceMappingURL=S3FileUploader.js.map |
@@ -1,9 +0,8 @@ | ||
import { CrudQueryBuilderError } from './CrudQueryBuilderError.js'; | ||
import { ReadBuilder } from './ReadBuilder.js'; | ||
import { WriteBuilder } from './WriteBuilder.js'; | ||
import { RootObjectBuilder } from '../graphQlBuilder/RootObjectBuilder.js'; | ||
import { QueryBuilder } from '../graphQlBuilder/QueryBuilder.js'; | ||
import { isEmptyObject } from '../utils/isEmptyObject.js'; | ||
import { ObjectBuilder } from '../graphQlBuilder/ObjectBuilder.js'; | ||
import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js"; | ||
import { ReadBuilder } from "./ReadBuilder.js"; | ||
import { WriteBuilder } from "./WriteBuilder.js"; | ||
import { RootObjectBuilder } from "../graphQlBuilder/RootObjectBuilder.js"; | ||
import { QueryBuilder } from "../graphQlBuilder/QueryBuilder.js"; | ||
import { isEmptyObject } from "../utils/isEmptyObject.js"; | ||
import { ObjectBuilder } from "../graphQlBuilder/ObjectBuilder.js"; | ||
class CrudQueryBuilder { | ||
@@ -95,4 +94,3 @@ constructor(type = void 0, rootObjectBuilder = new RootObjectBuilder()) { | ||
} | ||
export { CrudQueryBuilder }; | ||
//# sourceMappingURL=CrudQueryBuilder.js.map |
class CrudQueryBuilderError extends Error { | ||
} | ||
export { CrudQueryBuilderError }; | ||
//# sourceMappingURL=CrudQueryBuilderError.js.map |
@@ -6,4 +6,3 @@ class ErrorsRelationBuilder { | ||
} | ||
export { ErrorsRelationBuilder }; | ||
//# sourceMappingURL=ErrorsRelationBuilder.js.map |
@@ -1,8 +0,8 @@ | ||
export { CrudQueryBuilder } from './CrudQueryBuilder.js'; | ||
export { ReadBuilder } from './ReadBuilder.js'; | ||
export { WriteOperation } from './types.js'; | ||
export { WriteBuilder } from './WriteBuilder.js'; | ||
export { WriteDataBuilder } from './WriteDataBuilder.js'; | ||
export { WriteManyRelationBuilder } from './WriteManyRelationBuilder.js'; | ||
export { WriteOneRelationBuilder } from './WriteOneRelationBuilder.js'; | ||
export { CrudQueryBuilder } from "./CrudQueryBuilder.js"; | ||
export { ReadBuilder } from "./ReadBuilder.js"; | ||
export { WriteOperation } from "./types.js"; | ||
export { WriteBuilder } from "./WriteBuilder.js"; | ||
export { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
export { WriteManyRelationBuilder } from "./WriteManyRelationBuilder.js"; | ||
export { WriteOneRelationBuilder } from "./WriteOneRelationBuilder.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
import { ObjectBuilder } from '../graphQlBuilder/ObjectBuilder.js'; | ||
import { ObjectBuilder } from "../graphQlBuilder/ObjectBuilder.js"; | ||
class ReadBuilder { | ||
@@ -68,4 +67,3 @@ constructor(objectBuilder = new ObjectBuilder()) { | ||
} | ||
export { ReadBuilder }; | ||
//# sourceMappingURL=ReadBuilder.js.map |
@@ -0,1 +1,7 @@ | ||
var __defProp = Object.defineProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
var WriteOperation; | ||
@@ -10,16 +16,24 @@ ((WriteOperation2) => { | ||
class Update extends ContentfulOperation { | ||
op = "update"; | ||
constructor() { | ||
super(...arguments); | ||
__publicField(this, "op", "update"); | ||
} | ||
} | ||
WriteOperation2.Update = Update; | ||
class Create extends ContentfulOperation { | ||
op = "create"; | ||
constructor() { | ||
super(...arguments); | ||
__publicField(this, "op", "create"); | ||
} | ||
} | ||
WriteOperation2.Create = Create; | ||
class Delete extends Operation { | ||
op = "delete"; | ||
constructor() { | ||
super(...arguments); | ||
__publicField(this, "op", "delete"); | ||
} | ||
} | ||
WriteOperation2.Delete = Delete; | ||
})(WriteOperation || (WriteOperation = {})); | ||
export { WriteOperation }; | ||
//# sourceMappingURL=types.js.map |
@@ -6,4 +6,3 @@ class ValidationRelationBuilder { | ||
} | ||
export { ValidationRelationBuilder }; | ||
//# sourceMappingURL=ValidationRelationBuilder.js.map |
@@ -1,7 +0,6 @@ | ||
import { ErrorsRelationBuilder } from './ErrorsRelationBuilder.js'; | ||
import { ReadBuilder } from './ReadBuilder.js'; | ||
import { ValidationRelationBuilder } from './ValidationRelationBuilder.js'; | ||
import { WriteDataBuilder } from './WriteDataBuilder.js'; | ||
import { ObjectBuilder } from '../graphQlBuilder/ObjectBuilder.js'; | ||
import { ErrorsRelationBuilder } from "./ErrorsRelationBuilder.js"; | ||
import { ReadBuilder } from "./ReadBuilder.js"; | ||
import { ValidationRelationBuilder } from "./ValidationRelationBuilder.js"; | ||
import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
import { ObjectBuilder } from "../graphQlBuilder/ObjectBuilder.js"; | ||
class WriteBuilder { | ||
@@ -44,4 +43,3 @@ constructor(objectBuilder = new ObjectBuilder()) { | ||
} | ||
export { WriteBuilder }; | ||
//# sourceMappingURL=WriteBuilder.js.map |
@@ -1,10 +0,15 @@ | ||
import { CrudQueryBuilderError } from './CrudQueryBuilderError.js'; | ||
import { WriteManyRelationBuilder } from './WriteManyRelationBuilder.js'; | ||
import { WriteOneRelationBuilder } from './WriteOneRelationBuilder.js'; | ||
import { GraphQlLiteral } from '../graphQlBuilder/GraphQlLiteral.js'; | ||
import { isEmptyObject } from '../utils/isEmptyObject.js'; | ||
var __defProp = Object.defineProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js"; | ||
import { WriteManyRelationBuilder } from "./WriteManyRelationBuilder.js"; | ||
import { WriteOneRelationBuilder } from "./WriteOneRelationBuilder.js"; | ||
import { GraphQlLiteral } from "../graphQlBuilder/GraphQlLiteral.js"; | ||
import { isEmptyObject } from "../utils/isEmptyObject.js"; | ||
class WriteDataBuilder { | ||
data; | ||
constructor(data) { | ||
__publicField(this, "data"); | ||
this.data = data || {}; | ||
@@ -102,4 +107,3 @@ } | ||
} | ||
export { WriteDataBuilder }; | ||
//# sourceMappingURL=WriteDataBuilder.js.map |
@@ -1,3 +0,2 @@ | ||
import { WriteDataBuilder } from './WriteDataBuilder.js'; | ||
import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
class WriteManyRelationBuilder { | ||
@@ -72,4 +71,3 @@ constructor(data = []) { | ||
} | ||
export { WriteManyRelationBuilder }; | ||
//# sourceMappingURL=WriteManyRelationBuilder.js.map |
@@ -1,3 +0,2 @@ | ||
import { WriteDataBuilder } from './WriteDataBuilder.js'; | ||
import { WriteDataBuilder } from "./WriteDataBuilder.js"; | ||
class WriteOneRelationBuilder { | ||
@@ -49,4 +48,3 @@ constructor(data = void 0) { | ||
} | ||
export { WriteOneRelationBuilder }; | ||
//# sourceMappingURL=WriteOneRelationBuilder.js.map |
class GraphQlBuilderError extends Error { | ||
} | ||
export { GraphQlBuilderError }; | ||
//# sourceMappingURL=GraphQlBuilderError.js.map |
@@ -9,4 +9,3 @@ class GraphQlLiteral { | ||
} | ||
export { GraphQlLiteral }; | ||
//# sourceMappingURL=GraphQlLiteral.js.map |
@@ -1,6 +0,6 @@ | ||
export { GraphQlLiteral } from './GraphQlLiteral.js'; | ||
export { ObjectBuilder } from './ObjectBuilder.js'; | ||
export { QueryBuilder } from './QueryBuilder.js'; | ||
export { QueryCompiler } from './QueryCompiler.js'; | ||
export { RootObjectBuilder } from './RootObjectBuilder.js'; | ||
export { GraphQlLiteral } from "./GraphQlLiteral.js"; | ||
export { ObjectBuilder } from "./ObjectBuilder.js"; | ||
export { QueryBuilder } from "./QueryBuilder.js"; | ||
export { QueryCompiler } from "./QueryCompiler.js"; | ||
export { RootObjectBuilder } from "./RootObjectBuilder.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -35,4 +35,3 @@ class ObjectBuilder { | ||
} | ||
export { ObjectBuilder }; | ||
//# sourceMappingURL=ObjectBuilder.js.map |
@@ -1,4 +0,3 @@ | ||
import { QueryCompiler } from './QueryCompiler.js'; | ||
import { RootObjectBuilder } from './RootObjectBuilder.js'; | ||
import { QueryCompiler } from "./QueryCompiler.js"; | ||
import { RootObjectBuilder } from "./RootObjectBuilder.js"; | ||
class QueryBuilder { | ||
@@ -20,4 +19,3 @@ query(builder) { | ||
} | ||
export { QueryBuilder }; | ||
//# sourceMappingURL=QueryBuilder.js.map |
@@ -1,3 +0,2 @@ | ||
import { GraphQlLiteral } from './GraphQlLiteral.js'; | ||
import { GraphQlLiteral } from "./GraphQlLiteral.js"; | ||
class QueryCompiler { | ||
@@ -99,4 +98,3 @@ constructor(operation, builder) { | ||
} | ||
export { QueryCompiler }; | ||
//# sourceMappingURL=QueryCompiler.js.map |
@@ -1,5 +0,4 @@ | ||
import { GraphQlBuilderError } from './GraphQlBuilderError.js'; | ||
import { ObjectBuilder } from './ObjectBuilder.js'; | ||
import { isEmptyObject } from '../utils/isEmptyObject.js'; | ||
import { GraphQlBuilderError } from "./GraphQlBuilderError.js"; | ||
import { ObjectBuilder } from "./ObjectBuilder.js"; | ||
import { isEmptyObject } from "../utils/isEmptyObject.js"; | ||
class RootObjectBuilder { | ||
@@ -29,4 +28,3 @@ constructor(objects = {}, fragmentDefinitions = {}) { | ||
} | ||
export { RootObjectBuilder }; | ||
//# sourceMappingURL=RootObjectBuilder.js.map |
@@ -30,4 +30,3 @@ class GraphQlClient { | ||
} | ||
export { GraphQlClient }; | ||
//# sourceMappingURL=GraphQlClient.js.map |
@@ -1,16 +0,16 @@ | ||
import * as index$1 from './crudQueryBuilder/index.js'; | ||
import * as index$1 from "./crudQueryBuilder/index.js"; | ||
export { index$1 as CrudQueryBuilder }; | ||
import * as index from './graphQlBuilder/index.js'; | ||
import * as index from "./graphQlBuilder/index.js"; | ||
export { index as GraphQlBuilder }; | ||
export { GraphQlLiteral } from './graphQlBuilder/GraphQlLiteral.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'; | ||
export { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.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"; | ||
//# sourceMappingURL=index.js.map |
const formatSystemApiRelativeUrl = (projectSlug) => `/system/${projectSlug}`; | ||
export { formatSystemApiRelativeUrl }; | ||
//# sourceMappingURL=formatSystemApiRelativeUrl.js.map |
@@ -31,4 +31,3 @@ const loginMutation = ` | ||
`; | ||
export { loginMutation }; | ||
//# sourceMappingURL=loginMutation.js.map |
const tenantApiRelativeUrl = "/tenant"; | ||
export { tenantApiRelativeUrl }; | ||
//# sourceMappingURL=tenantApiRelativeUrl.js.map |
@@ -14,4 +14,3 @@ const tenantErrorMessages = { | ||
}; | ||
export { getTenantErrorMessage, tenantErrorMessages }; | ||
//# sourceMappingURL=tenantErrorMessages.js.map |
@@ -9,4 +9,3 @@ const isEmptyObject = (arg) => { | ||
}; | ||
export { isEmptyObject }; | ||
//# sourceMappingURL=isEmptyObject.js.map |
@@ -12,4 +12,3 @@ const readFileAsArrayBuffer = (file) => new Promise((resolve, reject) => { | ||
}); | ||
export { readFileAsArrayBuffer }; | ||
//# sourceMappingURL=readFileAsArrayBuffer.js.map |
{ | ||
"name": "@contember/client", | ||
"license": "Apache-2.0", | ||
"version": "1.0.0-rc.22", | ||
"version": "1.0.0-rc.23", | ||
"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
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
401420
3826