@contember/client 2.0.0-alpha.2 → 2.0.0-alpha.21
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/api-extractor.json +3 -0
- package/dist/development/index.cjs +11 -38
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +3 -33
- package/dist/development/index.js.map +1 -1
- package/dist/development/{content/upload → src}/GenerateUploadUrlMutationBuilder.cjs +9 -14
- package/dist/development/src/GenerateUploadUrlMutationBuilder.cjs.map +1 -0
- package/dist/development/{content/upload → src}/GenerateUploadUrlMutationBuilder.js +8 -13
- package/dist/development/src/GenerateUploadUrlMutationBuilder.js.map +1 -0
- package/dist/production/index.cjs +11 -38
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +3 -33
- package/dist/production/index.js.map +1 -1
- package/dist/production/{content/upload → src}/GenerateUploadUrlMutationBuilder.cjs +9 -14
- package/dist/production/src/GenerateUploadUrlMutationBuilder.cjs.map +1 -0
- package/dist/production/{content/upload → src}/GenerateUploadUrlMutationBuilder.js +8 -13
- package/dist/production/src/GenerateUploadUrlMutationBuilder.js.map +1 -0
- package/dist/types/{content/upload/GenerateUploadUrlMutationBuilder.d.ts → GenerateUploadUrlMutationBuilder.d.ts} +1 -2
- package/dist/types/GenerateUploadUrlMutationBuilder.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -17
- package/src/{content/upload/GenerateUploadUrlMutationBuilder.ts → GenerateUploadUrlMutationBuilder.ts} +3 -7
- package/src/index.ts +2 -19
- package/src/tsconfig.json +7 -1
- package/tests/cases/unit/generateUploadUrlMutationBuilder.spec.ts +79 -0
- package/tests/tsconfig.json +10 -0
- package/tsconfig.json +8 -0
- package/tsdoc.json +6 -0
- package/vitest.config.ts +3 -0
- package/dist/development/content/formatContentApiRelativeUrl.cjs +0 -5
- package/dist/development/content/formatContentApiRelativeUrl.cjs.map +0 -1
- package/dist/development/content/formatContentApiRelativeUrl.js +0 -5
- package/dist/development/content/formatContentApiRelativeUrl.js.map +0 -1
- package/dist/development/content/params/whereToFilter.cjs +0 -17
- package/dist/development/content/params/whereToFilter.cjs.map +0 -1
- package/dist/development/content/params/whereToFilter.js +0 -17
- package/dist/development/content/params/whereToFilter.js.map +0 -1
- package/dist/development/content/replaceGraphQlLiteral.cjs +0 -15
- package/dist/development/content/replaceGraphQlLiteral.cjs.map +0 -1
- package/dist/development/content/replaceGraphQlLiteral.js +0 -15
- package/dist/development/content/replaceGraphQlLiteral.js.map +0 -1
- package/dist/development/content/upload/FileUploadError.cjs +0 -10
- package/dist/development/content/upload/FileUploadError.cjs.map +0 -1
- package/dist/development/content/upload/FileUploadError.js +0 -10
- package/dist/development/content/upload/FileUploadError.js.map +0 -1
- package/dist/development/content/upload/GenerateUploadUrlMutationBuilder.cjs.map +0 -1
- package/dist/development/content/upload/GenerateUploadUrlMutationBuilder.js.map +0 -1
- package/dist/development/content/upload/S3FileUploader.cjs +0 -107
- package/dist/development/content/upload/S3FileUploader.cjs.map +0 -1
- package/dist/development/content/upload/S3FileUploader.js +0 -107
- package/dist/development/content/upload/S3FileUploader.js.map +0 -1
- package/dist/development/graphQlBuilder/GraphQlLiteral.cjs +0 -15
- package/dist/development/graphQlBuilder/GraphQlLiteral.cjs.map +0 -1
- package/dist/development/graphQlBuilder/GraphQlLiteral.js +0 -15
- package/dist/development/graphQlBuilder/GraphQlLiteral.js.map +0 -1
- package/dist/development/graphQlClient/GraphQlClient.cjs +0 -26
- package/dist/development/graphQlClient/GraphQlClient.cjs.map +0 -1
- package/dist/development/graphQlClient/GraphQlClient.js +0 -26
- package/dist/development/graphQlClient/GraphQlClient.js.map +0 -1
- package/dist/development/system/formatSystemApiRelativeUrl.cjs +0 -5
- package/dist/development/system/formatSystemApiRelativeUrl.cjs.map +0 -1
- package/dist/development/system/formatSystemApiRelativeUrl.js +0 -5
- package/dist/development/system/formatSystemApiRelativeUrl.js.map +0 -1
- package/dist/development/tenant/loginMutation.cjs +0 -34
- package/dist/development/tenant/loginMutation.cjs.map +0 -1
- package/dist/development/tenant/loginMutation.js +0 -34
- package/dist/development/tenant/loginMutation.js.map +0 -1
- package/dist/development/tenant/tenantApiRelativeUrl.cjs +0 -5
- package/dist/development/tenant/tenantApiRelativeUrl.cjs.map +0 -1
- package/dist/development/tenant/tenantApiRelativeUrl.js +0 -5
- package/dist/development/tenant/tenantApiRelativeUrl.js.map +0 -1
- package/dist/development/tenant/tenantErrorMessages.cjs +0 -18
- package/dist/development/tenant/tenantErrorMessages.cjs.map +0 -1
- package/dist/development/tenant/tenantErrorMessages.js +0 -18
- package/dist/development/tenant/tenantErrorMessages.js.map +0 -1
- package/dist/development/utils/readFileAsArrayBuffer.cjs +0 -15
- package/dist/development/utils/readFileAsArrayBuffer.cjs.map +0 -1
- package/dist/development/utils/readFileAsArrayBuffer.js +0 -15
- package/dist/development/utils/readFileAsArrayBuffer.js.map +0 -1
- package/dist/production/content/formatContentApiRelativeUrl.cjs +0 -5
- package/dist/production/content/formatContentApiRelativeUrl.cjs.map +0 -1
- package/dist/production/content/formatContentApiRelativeUrl.js +0 -5
- package/dist/production/content/formatContentApiRelativeUrl.js.map +0 -1
- package/dist/production/content/params/whereToFilter.cjs +0 -17
- package/dist/production/content/params/whereToFilter.cjs.map +0 -1
- package/dist/production/content/params/whereToFilter.js +0 -17
- package/dist/production/content/params/whereToFilter.js.map +0 -1
- package/dist/production/content/replaceGraphQlLiteral.cjs +0 -15
- package/dist/production/content/replaceGraphQlLiteral.cjs.map +0 -1
- package/dist/production/content/replaceGraphQlLiteral.js +0 -15
- package/dist/production/content/replaceGraphQlLiteral.js.map +0 -1
- package/dist/production/content/upload/FileUploadError.cjs +0 -10
- package/dist/production/content/upload/FileUploadError.cjs.map +0 -1
- package/dist/production/content/upload/FileUploadError.js +0 -10
- package/dist/production/content/upload/FileUploadError.js.map +0 -1
- package/dist/production/content/upload/GenerateUploadUrlMutationBuilder.cjs.map +0 -1
- package/dist/production/content/upload/GenerateUploadUrlMutationBuilder.js.map +0 -1
- package/dist/production/content/upload/S3FileUploader.cjs +0 -107
- package/dist/production/content/upload/S3FileUploader.cjs.map +0 -1
- package/dist/production/content/upload/S3FileUploader.js +0 -107
- package/dist/production/content/upload/S3FileUploader.js.map +0 -1
- package/dist/production/graphQlBuilder/GraphQlLiteral.cjs +0 -12
- package/dist/production/graphQlBuilder/GraphQlLiteral.cjs.map +0 -1
- package/dist/production/graphQlBuilder/GraphQlLiteral.js +0 -12
- package/dist/production/graphQlBuilder/GraphQlLiteral.js.map +0 -1
- package/dist/production/graphQlClient/GraphQlClient.cjs +0 -26
- package/dist/production/graphQlClient/GraphQlClient.cjs.map +0 -1
- package/dist/production/graphQlClient/GraphQlClient.js +0 -26
- package/dist/production/graphQlClient/GraphQlClient.js.map +0 -1
- package/dist/production/system/formatSystemApiRelativeUrl.cjs +0 -5
- package/dist/production/system/formatSystemApiRelativeUrl.cjs.map +0 -1
- package/dist/production/system/formatSystemApiRelativeUrl.js +0 -5
- package/dist/production/system/formatSystemApiRelativeUrl.js.map +0 -1
- package/dist/production/tenant/loginMutation.cjs +0 -34
- package/dist/production/tenant/loginMutation.cjs.map +0 -1
- package/dist/production/tenant/loginMutation.js +0 -34
- package/dist/production/tenant/loginMutation.js.map +0 -1
- package/dist/production/tenant/tenantApiRelativeUrl.cjs +0 -5
- package/dist/production/tenant/tenantApiRelativeUrl.cjs.map +0 -1
- package/dist/production/tenant/tenantApiRelativeUrl.js +0 -5
- package/dist/production/tenant/tenantApiRelativeUrl.js.map +0 -1
- package/dist/production/tenant/tenantErrorMessages.cjs +0 -18
- package/dist/production/tenant/tenantErrorMessages.cjs.map +0 -1
- package/dist/production/tenant/tenantErrorMessages.js +0 -18
- package/dist/production/tenant/tenantErrorMessages.js.map +0 -1
- package/dist/production/utils/readFileAsArrayBuffer.cjs +0 -15
- package/dist/production/utils/readFileAsArrayBuffer.cjs.map +0 -1
- package/dist/production/utils/readFileAsArrayBuffer.js +0 -15
- package/dist/production/utils/readFileAsArrayBuffer.js.map +0 -1
- package/dist/types/content/formatContentApiRelativeUrl.d.ts +0 -2
- package/dist/types/content/formatContentApiRelativeUrl.d.ts.map +0 -1
- package/dist/types/content/index.d.ts +0 -5
- package/dist/types/content/index.d.ts.map +0 -1
- package/dist/types/content/params/index.d.ts +0 -2
- package/dist/types/content/params/index.d.ts.map +0 -1
- package/dist/types/content/params/whereToFilter.d.ts +0 -4
- package/dist/types/content/params/whereToFilter.d.ts.map +0 -1
- package/dist/types/content/replaceGraphQlLiteral.d.ts +0 -6
- package/dist/types/content/replaceGraphQlLiteral.d.ts.map +0 -1
- package/dist/types/content/upload/FileUploadError.d.ts +0 -9
- package/dist/types/content/upload/FileUploadError.d.ts.map +0 -1
- package/dist/types/content/upload/FileUploadProgress.d.ts +0 -4
- package/dist/types/content/upload/FileUploadProgress.d.ts.map +0 -1
- package/dist/types/content/upload/FileUploader.d.ts +0 -15
- package/dist/types/content/upload/FileUploader.d.ts.map +0 -1
- package/dist/types/content/upload/GenerateUploadUrlMutationBuilder.d.ts.map +0 -1
- package/dist/types/content/upload/S3FileUploader.d.ts +0 -33
- package/dist/types/content/upload/S3FileUploader.d.ts.map +0 -1
- package/dist/types/content/upload/SwitchFileUploader.d.ts +0 -13
- package/dist/types/content/upload/SwitchFileUploader.d.ts.map +0 -1
- package/dist/types/content/upload/UploadedFileMetadata.d.ts +0 -4
- package/dist/types/content/upload/UploadedFileMetadata.d.ts.map +0 -1
- package/dist/types/content/upload/index.d.ts +0 -8
- package/dist/types/content/upload/index.d.ts.map +0 -1
- package/dist/types/crudQueryBuilder/index.d.ts +0 -2
- package/dist/types/crudQueryBuilder/index.d.ts.map +0 -1
- package/dist/types/crudQueryBuilder/types.d.ts +0 -4
- package/dist/types/crudQueryBuilder/types.d.ts.map +0 -1
- package/dist/types/graphQlBuilder/GraphQlLiteral.d.ts +0 -9
- package/dist/types/graphQlBuilder/GraphQlLiteral.d.ts.map +0 -1
- package/dist/types/graphQlBuilder/QueryBuilder.d.ts +0 -11
- package/dist/types/graphQlBuilder/QueryBuilder.d.ts.map +0 -1
- package/dist/types/graphQlBuilder/index.d.ts +0 -3
- package/dist/types/graphQlBuilder/index.d.ts.map +0 -1
- package/dist/types/graphQlClient/GraphQlClient.d.ts +0 -17
- package/dist/types/graphQlClient/GraphQlClient.d.ts.map +0 -1
- package/dist/types/graphQlClient/index.d.ts +0 -4
- package/dist/types/graphQlClient/index.d.ts.map +0 -1
- package/dist/types/system/events/RelationFilter.d.ts +0 -5
- package/dist/types/system/events/RelationFilter.d.ts.map +0 -1
- package/dist/types/system/events/SystemEvent.d.ts +0 -10
- package/dist/types/system/events/SystemEvent.d.ts.map +0 -1
- package/dist/types/system/events/TreeFilter.d.ts +0 -7
- package/dist/types/system/events/TreeFilter.d.ts.map +0 -1
- package/dist/types/system/events/index.d.ts +0 -4
- package/dist/types/system/events/index.d.ts.map +0 -1
- package/dist/types/system/formatSystemApiRelativeUrl.d.ts +0 -2
- package/dist/types/system/formatSystemApiRelativeUrl.d.ts.map +0 -1
- package/dist/types/system/index.d.ts +0 -3
- package/dist/types/system/index.d.ts.map +0 -1
- package/dist/types/tenant/index.d.ts +0 -4
- package/dist/types/tenant/index.d.ts.map +0 -1
- package/dist/types/tenant/loginMutation.d.ts +0 -32
- package/dist/types/tenant/loginMutation.d.ts.map +0 -1
- package/dist/types/tenant/tenantApiRelativeUrl.d.ts +0 -2
- package/dist/types/tenant/tenantApiRelativeUrl.d.ts.map +0 -1
- package/dist/types/tenant/tenantErrorMessages.d.ts +0 -5
- package/dist/types/tenant/tenantErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -3
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/isEmptyObject.d.ts +0 -2
- package/dist/types/utils/isEmptyObject.d.ts.map +0 -1
- package/dist/types/utils/readFileAsArrayBuffer.d.ts +0 -2
- package/dist/types/utils/readFileAsArrayBuffer.d.ts.map +0 -1
- package/src/content/formatContentApiRelativeUrl.ts +0 -2
- package/src/content/index.ts +0 -4
- package/src/content/params/index.ts +0 -1
- package/src/content/params/whereToFilter.ts +0 -19
- package/src/content/replaceGraphQlLiteral.ts +0 -22
- package/src/content/upload/FileUploadError.ts +0 -10
- package/src/content/upload/FileUploadProgress.ts +0 -3
- package/src/content/upload/FileUploader.ts +0 -19
- package/src/content/upload/S3FileUploader.ts +0 -150
- package/src/content/upload/SwitchFileUploader.ts +0 -40
- package/src/content/upload/UploadedFileMetadata.ts +0 -3
- package/src/content/upload/index.ts +0 -7
- package/src/crudQueryBuilder/index.ts +0 -1
- package/src/crudQueryBuilder/types.ts +0 -8
- package/src/graphQlBuilder/GraphQlLiteral.ts +0 -14
- package/src/graphQlBuilder/QueryBuilder.ts +0 -13
- package/src/graphQlBuilder/index.ts +0 -2
- package/src/graphQlClient/GraphQlClient.ts +0 -39
- package/src/graphQlClient/index.ts +0 -8
- package/src/system/events/RelationFilter.ts +0 -4
- package/src/system/events/SystemEvent.ts +0 -9
- package/src/system/events/TreeFilter.ts +0 -7
- package/src/system/events/index.ts +0 -3
- package/src/system/formatSystemApiRelativeUrl.ts +0 -1
- package/src/system/index.ts +0 -2
- package/src/tenant/index.ts +0 -3
- package/src/tenant/loginMutation.ts +0 -61
- package/src/tenant/tenantApiRelativeUrl.ts +0 -1
- package/src/tenant/tenantErrorMessages.ts +0 -14
- package/src/utils/index.ts +0 -2
- package/src/utils/isEmptyObject.ts +0 -9
- package/src/utils/readFileAsArrayBuffer.ts +0 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantErrorMessages.js","sources":["../../../src/tenant/tenantErrorMessages.ts"],"sourcesContent":["export const tenantErrorMessages: { [key: string]: string } = {\n\tTOO_WEAK: 'Password is too weak.',\n\tEMAIL_ALREADY_EXISTS: 'Email already exists.',\n\tUNKNOWN_EMAIL: 'Unknown email.',\n\tINVALID_PASSWORD: 'Password is invalid.',\n\tALREADY_MEMBER: 'User is already a member of this project.',\n}\n\nexport const getTenantErrorMessage = (errorCode: string): string => {\n\tif (errorCode in tenantErrorMessages) {\n\t\treturn tenantErrorMessages[errorCode]\n\t}\n\treturn `Unknown error occurred. [${errorCode}]`\n}\n"],"names":[],"mappings":"AAAO,MAAM,sBAAiD;AAAA,EAC7D,UAAU;AAAA,EACV,sBAAsB;AAAA,EACtB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,gBAAgB;AACjB;AAEa,MAAA,wBAAwB,CAAC,cAA8B;AACnE,MAAI,aAAa,qBAAqB;AACrC,WAAO,oBAAoB,SAAS;AAAA,EACrC;AACA,SAAO,4BAA4B,SAAS;AAC7C;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const readFileAsArrayBuffer = (file) => new Promise((resolve, reject) => {
|
|
4
|
-
const reader = new FileReader();
|
|
5
|
-
reader.onload = () => {
|
|
6
|
-
if (reader.result === null) {
|
|
7
|
-
reject();
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
resolve(reader.result);
|
|
11
|
-
};
|
|
12
|
-
reader.readAsArrayBuffer(file);
|
|
13
|
-
});
|
|
14
|
-
exports.readFileAsArrayBuffer = readFileAsArrayBuffer;
|
|
15
|
-
//# sourceMappingURL=readFileAsArrayBuffer.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readFileAsArrayBuffer.cjs","sources":["../../../src/utils/readFileAsArrayBuffer.ts"],"sourcesContent":["export const readFileAsArrayBuffer = (file: File): Promise<string | ArrayBuffer> =>\n\tnew Promise((resolve, reject) => {\n\t\tconst reader = new FileReader()\n\t\treader.onload = () => {\n\t\t\tif (reader.result === null) {\n\t\t\t\treject()\n\t\t\t\treturn\n\t\t\t}\n\t\t\tresolve(reader.result)\n\t\t}\n\t\treader.readAsArrayBuffer(file)\n\t})\n"],"names":[],"mappings":";;AAAO,MAAM,wBAAwB,CAAC,SACrC,IAAI,QAAQ,CAAC,SAAS,WAAW;AAC1B,QAAA,SAAS,IAAI;AACnB,SAAO,SAAS,MAAM;AACjB,QAAA,OAAO,WAAW,MAAM;AACpB;AACP;AAAA,IACD;AACA,YAAQ,OAAO,MAAM;AAAA,EAAA;AAEtB,SAAO,kBAAkB,IAAI;AAC9B,CAAC;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const readFileAsArrayBuffer = (file) => new Promise((resolve, reject) => {
|
|
2
|
-
const reader = new FileReader();
|
|
3
|
-
reader.onload = () => {
|
|
4
|
-
if (reader.result === null) {
|
|
5
|
-
reject();
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
resolve(reader.result);
|
|
9
|
-
};
|
|
10
|
-
reader.readAsArrayBuffer(file);
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
readFileAsArrayBuffer
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=readFileAsArrayBuffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readFileAsArrayBuffer.js","sources":["../../../src/utils/readFileAsArrayBuffer.ts"],"sourcesContent":["export const readFileAsArrayBuffer = (file: File): Promise<string | ArrayBuffer> =>\n\tnew Promise((resolve, reject) => {\n\t\tconst reader = new FileReader()\n\t\treader.onload = () => {\n\t\t\tif (reader.result === null) {\n\t\t\t\treject()\n\t\t\t\treturn\n\t\t\t}\n\t\t\tresolve(reader.result)\n\t\t}\n\t\treader.readAsArrayBuffer(file)\n\t})\n"],"names":[],"mappings":"AAAO,MAAM,wBAAwB,CAAC,SACrC,IAAI,QAAQ,CAAC,SAAS,WAAW;AAC1B,QAAA,SAAS,IAAI;AACnB,SAAO,SAAS,MAAM;AACjB,QAAA,OAAO,WAAW,MAAM;AACpB;AACP;AAAA,IACD;AACA,YAAQ,OAAO,MAAM;AAAA,EAAA;AAEtB,SAAO,kBAAkB,IAAI;AAC9B,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatContentApiRelativeUrl.d.ts","sourceRoot":"","sources":["../../../src/content/formatContentApiRelativeUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,gBAAiB,MAAM,aAAa,MAAM,WAC3C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/content/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/content/params/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Input } from '@contember/schema';
|
|
2
|
-
import { GraphQlLiteral } from '../../graphQlBuilder';
|
|
3
|
-
export declare const whereToFilter: (by: Input.UniqueWhere<GraphQlLiteral>) => Input.Where<Input.Condition<Input.ColumnValue<GraphQlLiteral>>>;
|
|
4
|
-
//# sourceMappingURL=whereToFilter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"whereToFilter.d.ts","sourceRoot":"","sources":["../../../../src/content/params/whereToFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,eAAO,MAAM,aAAa,OACrB,MAAM,WAAW,CAAC,cAAc,CAAC,KACnC,MAAM,KAAK,CAAC,MAAM,SAAS,CAAC,MAAM,WAAW,CAAC,cAAc,CAAC,CAAC,CAahE,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { GraphQlLiteral } from '../graphQlBuilder';
|
|
2
|
-
export type ReplaceGraphQlLiteral<T> = T extends GraphQlLiteral<infer Value> ? Value : T extends string | number | boolean | null ? T : T extends {} ? {
|
|
3
|
-
[K in keyof T]: ReplaceGraphQlLiteral<T[K]>;
|
|
4
|
-
} : T extends any[] ? ReplaceGraphQlLiteral<T[number]>[] : T;
|
|
5
|
-
export declare const replaceGraphQlLiteral: <T>(input: T) => ReplaceGraphQlLiteral<T>;
|
|
6
|
-
//# sourceMappingURL=replaceGraphQlLiteral.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replaceGraphQlLiteral.d.ts","sourceRoot":"","sources":["../../../src/content/replaceGraphQlLiteral.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,cAAc,CAAC,MAAM,KAAK,CAAC,GACzE,KAAK,GACL,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GACzC,CAAC,GACD,CAAC,SAAS,EAAE,GACX;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC/C,CAAC,SAAS,GAAG,EAAE,GACd,qBAAqB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAClC,CAAC,CAAC;AAER,eAAO,MAAM,qBAAqB,aAAc,CAAC,KAAG,sBAAsB,CAAC,CAS1E,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface FileUploadErrorOptions {
|
|
2
|
-
developerMessage?: string;
|
|
3
|
-
endUserMessage?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class FileUploadError extends Error {
|
|
6
|
-
readonly options: FileUploadErrorOptions;
|
|
7
|
-
constructor(options?: FileUploadErrorOptions);
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=FileUploadError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadError.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/FileUploadError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,qBAAa,eAAgB,SAAQ,KAAK;aACN,OAAO,EAAE,sBAAsB;gBAA/B,OAAO,GAAE,sBAA2B;CAGvE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadProgress.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/FileUploadProgress.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { GraphQlClient } from '../../graphQlClient';
|
|
2
|
-
import type { FileUploadError } from './FileUploadError';
|
|
3
|
-
import type { FileUploadProgress } from './FileUploadProgress';
|
|
4
|
-
import type { UploadedFileMetadata } from './UploadedFileMetadata';
|
|
5
|
-
export interface FileUploader<Result = any, Error extends FileUploadError = FileUploadError> {
|
|
6
|
-
upload: (files: Map<File, UploadedFileMetadata>, options: FileUploaderInitializeOptions<Result, Error>) => Promise<void>;
|
|
7
|
-
destroy?: (files: Result[]) => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export interface FileUploaderInitializeOptions<Result = any, Error extends FileUploadError = FileUploadError> {
|
|
10
|
-
contentApiClient: GraphQlClient;
|
|
11
|
-
onSuccess: (result: Iterable<[File, Result]>) => void;
|
|
12
|
-
onError: (error: Iterable<File | [File, Error]>) => void;
|
|
13
|
-
onProgress: (progress: Iterable<[File, FileUploadProgress]>) => void;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=FileUploader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/FileUploader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,MAAM,WAAW,YAAY,CAAC,MAAM,GAAG,GAAG,EAAE,KAAK,SAAS,eAAe,GAAG,eAAe;IAC1F,MAAM,EAAE,CACP,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC,EACtC,OAAO,EAAE,6BAA6B,CAAC,MAAM,EAAE,KAAK,CAAC,KACjD,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,6BAA6B,CAAC,MAAM,GAAG,GAAG,EAAE,KAAK,SAAS,eAAe,GAAG,eAAe;IAC3G,gBAAgB,EAAE,aAAa,CAAA;IAC/B,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,KAAK,IAAI,CAAA;IACrD,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,IAAI,CAAA;IACxD,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,KAAK,IAAI,CAAA;CACpE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateUploadUrlMutationBuilder.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/GenerateUploadUrlMutationBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAgB,kBAAkB,EAAgD,MAAM,4BAA4B,CAAA;AAI3H,cAAM,gCAAgC;IACrC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAQrC;IACD;;OAEG;WACW,UAAU,CAAC,UAAU,EAAE,gCAAgC,CAAC,kBAAkB,GAAG,kBAAkB;CAqC7G;AAED,kBAAU,gCAAgC,CAAC;IAC1C,KAAY,GAAG,GACZ,aAAa,GACb,SAAS,GACT,MAAM,GACN,cAAc,CAAC,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,CAAA;IAErD,KAAY,cAAc,GAAG;QAC5B,WAAW,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,GAAG,CAAC,EAAE,GAAG,CAAA;KACT,CAAA;IAED,UAAiB,kBAAkB;QAClC,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAA;KAC/B;IAED,UAAiB,YAAY;QAC5B,GAAG,EAAE,MAAM,CAAA;QACX,SAAS,EAAE,MAAM,CAAA;QACjB,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,KAAK,CAAC;YACd,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,CAAA;SACb,CAAC,CAAA;KACF;IAED,UAAiB,gBAAgB;QAChC,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;KAC7B;CACD;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { FileUploader, FileUploaderInitializeOptions } from './FileUploader';
|
|
2
|
-
import { GenerateUploadUrlMutationBuilder } from './GenerateUploadUrlMutationBuilder';
|
|
3
|
-
import type { UploadedFileMetadata } from './UploadedFileMetadata';
|
|
4
|
-
declare class S3FileUploader implements FileUploader<S3FileUploader.SuccessMetadata> {
|
|
5
|
-
readonly options: S3FileUploader.Options;
|
|
6
|
-
private readonly uploadState;
|
|
7
|
-
constructor(options?: S3FileUploader.Options);
|
|
8
|
-
private generateNewAlias;
|
|
9
|
-
private static formatFullAlias;
|
|
10
|
-
upload(files: Map<File, UploadedFileMetadata>, options: FileUploaderInitializeOptions): Promise<void>;
|
|
11
|
-
private uploadSingleFile;
|
|
12
|
-
}
|
|
13
|
-
declare namespace S3FileUploader {
|
|
14
|
-
interface SuccessMetadata {
|
|
15
|
-
fileUrl: string;
|
|
16
|
-
}
|
|
17
|
-
interface Options {
|
|
18
|
-
getUploadOptions?: (file: File) => S3UploadOptions;
|
|
19
|
-
concurrency?: number;
|
|
20
|
-
}
|
|
21
|
-
interface S3UploadOptions {
|
|
22
|
-
fileType?: GenerateUploadUrlMutationBuilder.FileParameters['contentType'];
|
|
23
|
-
fileExpiration?: number;
|
|
24
|
-
fileSize?: number;
|
|
25
|
-
filePrefix?: string;
|
|
26
|
-
fileSuffix?: string;
|
|
27
|
-
fileName?: string;
|
|
28
|
-
fileExtension?: string;
|
|
29
|
-
fileAcl?: GenerateUploadUrlMutationBuilder.Acl;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export { S3FileUploader };
|
|
33
|
-
//# sourceMappingURL=S3FileUploader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"S3FileUploader.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/S3FileUploader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AACjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAOlE,cAAM,cAAe,YAAW,YAAY,CAAC,cAAc,CAAC,eAAe,CAAC;aAGxC,OAAO,EAAE,cAAc,CAAC,OAAO;IAFlE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;gBAEvB,OAAO,GAAE,cAAc,CAAC,OAAY;IAIvE,OAAO,CAAC,gBAAgB,CAGpB;IAEJ,OAAO,CAAC,MAAM,CAAC,eAAe;IAIjB,MAAM,CAClB,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC,EACtC,OAAO,EAAE,6BAA6B;IAqDvC,OAAO,CAAC,gBAAgB;CA0CxB;AAED,kBAAU,cAAc,CAAC;IACxB,UAAiB,eAAe;QAC/B,OAAO,EAAE,MAAM,CAAA;KACf;IAED,UAAiB,OAAO;QACvB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,eAAe,CAAA;QAClD,WAAW,CAAC,EAAE,MAAM,CAAA;KACpB;IAED,UAAiB,eAAe;QAC/B,QAAQ,CAAC,EAAE,gCAAgC,CAAC,cAAc,CAAC,aAAa,CAAC,CAAA;QACzE,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,OAAO,CAAC,EAAE,gCAAgC,CAAC,GAAG,CAAA;KAC9C;CACD;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { FileUploader, FileUploaderInitializeOptions } from './FileUploader';
|
|
2
|
-
import type { UploadedFileMetadata } from './UploadedFileMetadata';
|
|
3
|
-
declare class SwitchFileUploader implements FileUploader {
|
|
4
|
-
private readonly subUploaders;
|
|
5
|
-
constructor(subUploaders: SwitchFileUploader.SubUploaders);
|
|
6
|
-
upload(files: Map<File, UploadedFileMetadata>, options: FileUploaderInitializeOptions): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
declare namespace SwitchFileUploader {
|
|
9
|
-
type FilePredicate = (file: File) => boolean;
|
|
10
|
-
type SubUploaders = Iterable<[FilePredicate, FileUploader]>;
|
|
11
|
-
}
|
|
12
|
-
export { SwitchFileUploader };
|
|
13
|
-
//# sourceMappingURL=SwitchFileUploader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchFileUploader.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/SwitchFileUploader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,cAAM,kBAAmB,YAAW,YAAY;IAC5B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,kBAAkB,CAAC,YAAY;IAEpE,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC,EAAE,OAAO,EAAE,6BAA6B;CA0BlG;AAED,kBAAU,kBAAkB,CAAC;IAC5B,KAAY,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;IACnD,KAAY,YAAY,GAAG,QAAQ,CAAC,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAA;CAClE;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UploadedFileMetadata.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/UploadedFileMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACpC,WAAW,EAAE,WAAW,CAAA;CACxB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './FileUploader';
|
|
2
|
-
export * from './FileUploadError';
|
|
3
|
-
export * from './FileUploadProgress';
|
|
4
|
-
export * from './GenerateUploadUrlMutationBuilder';
|
|
5
|
-
export * from './UploadedFileMetadata';
|
|
6
|
-
export * from './S3FileUploader';
|
|
7
|
-
export * from './UploadedFileMetadata';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/content/upload/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oCAAoC,CAAA;AAClD,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crudQueryBuilder/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/crudQueryBuilder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,cAAc,GACvB,cAAc,CAAC,KAAK,CAAC,GACrB,cAAc,CAAC,MAAM,CAAC,GACtB,GAAG,KAAK,CAAC,cAAc,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlLiteral.d.ts","sourceRoot":"","sources":["../../../src/graphQlBuilder/GraphQlLiteral.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAc,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;aAC5B,KAAK,EAAE,KAAK;gBAAZ,KAAK,EAAE,KAAK;IAMjC,QAAQ;CAGf"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { GraphQlLiteral } from './GraphQlLiteral';
|
|
2
|
-
export declare namespace QueryBuilder {
|
|
3
|
-
interface Object {
|
|
4
|
-
[key: string]: Value;
|
|
5
|
-
}
|
|
6
|
-
interface List extends Array<Value> {
|
|
7
|
-
}
|
|
8
|
-
type AtomicValue = string | null | number | boolean | GraphQlLiteral;
|
|
9
|
-
type Value = AtomicValue | Object | List;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=QueryBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/graphQlBuilder/QueryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,yBAAiB,YAAY,CAAC;IAC7B,UAAiB,MAAM;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;KACpB;IAED,UAAiB,IAAK,SAAQ,KAAK,CAAC,KAAK,CAAC;KAAG;IAE7C,KAAY,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,CAAA;IAC3E,KAAY,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;CAC/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphQlBuilder/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { GraphQlClient as BaseGraphQLClient, GraphQlClientRequestOptions as BaseGraphQlClientRequestOptions } from '@contember/graphql-client';
|
|
2
|
-
export interface GraphQlClientRequestOptions extends BaseGraphQlClientRequestOptions {
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated use apiToken
|
|
5
|
-
*/
|
|
6
|
-
apiTokenOverride?: string;
|
|
7
|
-
}
|
|
8
|
-
export type GraphQlClientFailedRequestMetadata = Pick<Response, 'status' | 'statusText'> & {
|
|
9
|
-
responseText: string;
|
|
10
|
-
};
|
|
11
|
-
export declare class GraphQlClient extends BaseGraphQLClient {
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated use execute
|
|
14
|
-
*/
|
|
15
|
-
sendRequest<T = unknown>(query: string, options?: GraphQlClientRequestOptions): Promise<T>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=GraphQlClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.d.ts","sourceRoot":"","sources":["../../../src/graphQlClient/GraphQlClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,2BAA2B,IAAI,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAE9I,MAAM,WAAW,2BAA4B,SAAQ,+BAA+B;IACnF;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAAC,GAAG;IAC1F,YAAY,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,qBAAa,aAAc,SAAQ,iBAAiB;IACnD;;OAEG;IACG,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,2BAAgC,GAAG,OAAO,CAAC,CAAC,CAAC;CAqBpG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphQlClient/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,YAAY,EACX,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,GACnB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelationFilter.d.ts","sourceRoot":"","sources":["../../../../src/system/events/RelationFilter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,cAAc,EAAE,CAAA;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemEvent.d.ts","sourceRoot":"","sources":["../../../../src/system/events/SystemEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACpC,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeFilter.d.ts","sourceRoot":"","sources":["../../../../src/system/events/TreeFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,SAAS,EAAE,cAAc,EAAE,CAAA;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/system/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatSystemApiRelativeUrl.d.ts","sourceRoot":"","sources":["../../../src/system/formatSystemApiRelativeUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,gBAAiB,MAAM,WAA6B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,8BAA8B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tenant/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface LoginMutationResponse {
|
|
2
|
-
data: {
|
|
3
|
-
signIn: {
|
|
4
|
-
ok: boolean;
|
|
5
|
-
errors: Array<{
|
|
6
|
-
endUserMessage: string | null;
|
|
7
|
-
code: string;
|
|
8
|
-
}>;
|
|
9
|
-
result: {
|
|
10
|
-
token: string;
|
|
11
|
-
person: {
|
|
12
|
-
id: string;
|
|
13
|
-
email: string;
|
|
14
|
-
identity: {
|
|
15
|
-
id: string;
|
|
16
|
-
projects: Array<{
|
|
17
|
-
project: {
|
|
18
|
-
id: string;
|
|
19
|
-
slug: string;
|
|
20
|
-
};
|
|
21
|
-
memberships: Array<{
|
|
22
|
-
role: string;
|
|
23
|
-
}>;
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
} | null;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare const loginMutation = "\n\tmutation($email: String!, $password: String!, $expiration: Int) {\n\t\tsignIn(email: $email, password: $password, expiration: $expiration) {\n\t\t\tok\n\t\t\terrors {\n\t\t\t\tendUserMessage\n\t\t\t\tcode\n\t\t\t}\n\t\t\tresult {\n\t\t\t\ttoken\n\t\t\t\tperson {\n\t\t\t\t\tid\n\t\t\t\t\temail\n\t\t\t\t\tidentity {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tprojects {\n\t\t\t\t\t\t\tproject {\n\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\tslug\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmemberships {\n\t\t\t\t\t\t\t\trole\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
32
|
-
//# sourceMappingURL=loginMutation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loginMutation.d.ts","sourceRoot":"","sources":["../../../src/tenant/loginMutation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACrC,IAAI,EAAE;QACL,MAAM,EAAE;YACP,EAAE,EAAE,OAAO,CAAA;YACX,MAAM,EAAE,KAAK,CAAC;gBACb,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;gBAC7B,IAAI,EAAE,MAAM,CAAA;aACZ,CAAC,CAAA;YACF,MAAM,EAAE;gBACP,KAAK,EAAE,MAAM,CAAA;gBACb,MAAM,EAAE;oBACP,EAAE,EAAE,MAAM,CAAA;oBACV,KAAK,EAAE,MAAM,CAAA;oBACb,QAAQ,EAAE;wBACT,EAAE,EAAE,MAAM,CAAA;wBACV,QAAQ,EAAE,KAAK,CAAC;4BACf,OAAO,EAAE;gCACR,EAAE,EAAE,MAAM,CAAA;gCACV,IAAI,EAAE,MAAM,CAAA;6BACZ,CAAA;4BACD,WAAW,EAAE,KAAK,CAAC;gCAClB,IAAI,EAAE,MAAM,CAAA;6BACZ,CAAC,CAAA;yBACF,CAAC,CAAA;qBACF,CAAA;iBACD,CAAA;aACD,GAAG,IAAI,CAAA;SACR,CAAA;KACD,CAAA;CACD;AAED,eAAO,MAAM,aAAa,kkBA6BzB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantApiRelativeUrl.d.ts","sourceRoot":"","sources":["../../../src/tenant/tenantApiRelativeUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantErrorMessages.d.ts","sourceRoot":"","sources":["../../../src/tenant/tenantErrorMessages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAMxD,CAAA;AAED,eAAO,MAAM,qBAAqB,cAAe,MAAM,KAAG,MAKzD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isEmptyObject.d.ts","sourceRoot":"","sources":["../../../src/utils/isEmptyObject.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,OAQ3C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readFileAsArrayBuffer.d.ts","sourceRoot":"","sources":["../../../src/utils/readFileAsArrayBuffer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,SAAU,IAAI,KAAG,QAAQ,MAAM,GAAG,WAAW,CAW5E,CAAA"}
|
package/src/content/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './whereToFilter'
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Input, Writable } from '@contember/schema'
|
|
2
|
-
import { GraphQlLiteral } from '../../graphQlBuilder'
|
|
3
|
-
|
|
4
|
-
export const whereToFilter = (
|
|
5
|
-
by: Input.UniqueWhere<GraphQlLiteral>,
|
|
6
|
-
): Input.Where<Input.Condition<Input.ColumnValue<GraphQlLiteral>>> => {
|
|
7
|
-
const where: Writable<Input.Where<Input.Condition<Input.ColumnValue<GraphQlLiteral>>>> = {}
|
|
8
|
-
for (const key in by) {
|
|
9
|
-
const value = by[key]
|
|
10
|
-
|
|
11
|
-
if (value instanceof GraphQlLiteral || typeof value === 'string' || typeof value === 'number') {
|
|
12
|
-
where[key] = { eq: value }
|
|
13
|
-
} else {
|
|
14
|
-
where[key] = whereToFilter(value)
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return where
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GraphQlLiteral } from '../graphQlBuilder'
|
|
2
|
-
|
|
3
|
-
export type ReplaceGraphQlLiteral<T> = T extends GraphQlLiteral<infer Value>
|
|
4
|
-
? Value
|
|
5
|
-
: T extends string | number | boolean | null
|
|
6
|
-
? T // Keep primitives as is
|
|
7
|
-
: T extends {}
|
|
8
|
-
? { [K in keyof T]: ReplaceGraphQlLiteral<T[K]> } // Recursively apply to objects
|
|
9
|
-
: T extends any[]
|
|
10
|
-
? ReplaceGraphQlLiteral<T[number]>[] // Recursively apply to array elements
|
|
11
|
-
: T;
|
|
12
|
-
|
|
13
|
-
export const replaceGraphQlLiteral = <T>(input: T): ReplaceGraphQlLiteral<T> => {
|
|
14
|
-
if (input instanceof GraphQlLiteral) {
|
|
15
|
-
return input.value as any
|
|
16
|
-
} else if (Array.isArray(input)) {
|
|
17
|
-
return input.map(replaceGraphQlLiteral) as any
|
|
18
|
-
} else if (typeof input === 'object' && input !== null) {
|
|
19
|
-
return Object.fromEntries(Object.entries(input).map(([key, value]) => value !== undefined ? [key, replaceGraphQlLiteral(value)] : undefined).filter(Boolean) as any) as any
|
|
20
|
-
}
|
|
21
|
-
return input as any
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface FileUploadErrorOptions {
|
|
2
|
-
developerMessage?: string
|
|
3
|
-
endUserMessage?: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class FileUploadError extends Error {
|
|
7
|
-
public constructor(public readonly options: FileUploadErrorOptions = {}) {
|
|
8
|
-
super(options.developerMessage)
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { GraphQlClient } from '../../graphQlClient'
|
|
2
|
-
import type { FileUploadError } from './FileUploadError'
|
|
3
|
-
import type { FileUploadProgress } from './FileUploadProgress'
|
|
4
|
-
import type { UploadedFileMetadata } from './UploadedFileMetadata'
|
|
5
|
-
|
|
6
|
-
export interface FileUploader<Result = any, Error extends FileUploadError = FileUploadError> {
|
|
7
|
-
upload: (
|
|
8
|
-
files: Map<File, UploadedFileMetadata>,
|
|
9
|
-
options: FileUploaderInitializeOptions<Result, Error>,
|
|
10
|
-
) => Promise<void>
|
|
11
|
-
destroy?: (files: Result[]) => Promise<void> // TODO Note that admin uploaders don'T actually invoke this yet.
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface FileUploaderInitializeOptions<Result = any, Error extends FileUploadError = FileUploadError> {
|
|
15
|
-
contentApiClient: GraphQlClient
|
|
16
|
-
onSuccess: (result: Iterable<[File, Result]>) => void
|
|
17
|
-
onError: (error: Iterable<File | [File, Error]>) => void
|
|
18
|
-
onProgress: (progress: Iterable<[File, FileUploadProgress]>) => void
|
|
19
|
-
}
|