appwrite-utils
Version:
`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. This library provides a suite of utilities and helper functions that facilitate data manipulation, schema management, YAML configu
147 lines (145 loc) • 4.13 kB
text/typescript
import { z } from "zod";
import { FunctionScopes } from "./schemas/functionScopes.js";
export { areCollectionNamesSame } from "./functions/collections.js";
export {
converterFunctions,
type ConverterFunctions,
} from "./functions/converters.js";
export { getFileDownloadUrl, getFileViewUrl, getFilePreviewUrl } from "./functions/files.js";
export {
validationRules,
type ValidationRules,
} from "./functions/validationRules.js";
export { type AfterImportActions } from "./functions/afterImportActions.js";
export {
type BooleanAttribute,
booleanAttributeSchema,
} from "./schemas/booleanAttribute.js";
export {
type DatetimeAttribute,
datetimeAttributeSchema,
} from "./schemas/datetimeAttribute.js";
export {
type EmailAttribute,
emailAttributeSchema,
} from "./schemas/emailAttribute.js";
export {
type EnumAttribute,
enumAttributeSchema,
} from "./schemas/enumAttribute.js";
export {
type DoubleAttribute,
type FloatAttribute,
doubleAttributeSchema,
floatAttributeSchema,
} from "./schemas/doubleAttribute.js";
export {
type IntegerAttribute,
integerAttributeSchema,
} from "./schemas/integerAttribute.js";
export { type IpAttribute, ipAttributeSchema } from "./schemas/ipAttribute.js";
export {
type StringAttribute,
stringAttributeSchema,
} from "./schemas/stringAttribute.js";
export {
type RelationshipAttribute,
relationshipAttributeSchema,
} from "./schemas/relationshipAttribute.js";
export {
type UrlAttribute,
urlAttributeSchema,
} from "./schemas/urlAttribute.js";
export {
type AppwriteConfig,
AppwriteConfigSchema,
type ConfigCollection,
type ConfigCollections,
type ConfigTable,
type ConfigTables,
type ConfigDatabase,
type ConfigDatabases,
getVersionAwareDirectory,
resolveDirectoryForApiMode,
getDualDirectoryPaths,
} from "./schemas/appwriteConfig.js";
export {
type CollectionCreate,
type CollectionCreateInput,
type CollectionInput,
CollectionCreateSchema,
CollectionSchema,
type Collection,
type Collections,
} from "./schemas/collection.js";
export {
type TableCreate,
TableCreateSchema,
TableSchema,
type Table,
type Tables,
type TableInput,
type TableCreateInput,
type TableWithAttributes,
type TableWithColumns,
type TableDefinition,
} from "./schemas/table.js";
export {
type Attribute,
attributeSchema,
type Attributes,
attributesSchema,
} from "./schemas/attribute.js";
export {
indexSchema,
type Index,
indexesSchema,
type Indexes,
} from "./schemas/index.js";
export {
type Permission,
permissionSchema,
type Permissions,
permissionsSchema,
PermissionToAppwritePermission,
} from "./schemas/permissions.js";
export {
type IdMapping,
idMappingSchema,
type IdMappings,
idMappingsSchema,
} from "./schemas/idMapping.js";
export {
type AttributeMapping,
AttributeMappingSchema,
type AttributeMappings,
AttributeMappingsSchema,
} from "./schemas/attributeMappings.js";
export {
type ImportDef,
importDefSchema,
type ImportDefs,
importDefSchemas,
} from "./schemas/importDef.js";
export { parseAttribute } from "./functions/schema.js";
export {
type AuthUser,
AuthUserSchema,
AuthUserCreateSchema,
type AuthUserCreate,
} from "./schemas/authUser.js";
export {
tryAwaitWithRetry,
objectNeedsUpdate,
cleanObjectForAppwrite,
listDocumentsBatched
} from "./functions/helpers.js";
export { getAppwriteClient } from "./functions/appwriteHelpers.js";
export { SpecificationSchema, type Specification } from "./schemas/specifications.js";
export { AppwriteRequest } from "./schemas/appwriteRequest.js";
export { AppwriteResponse } from "./schemas/appwriteResponse.js";
export { AppwriteFunctionSchema, type AppwriteFunction } from "./schemas/functions.js";
export { FunctionScopes, type FunctionScope } from "./schemas/functionScopes.js";
export { FunctionSpecifications, type FunctionSpecification } from "./schemas/functionSpecifications.js";
export { RuntimeSchema, type Runtime } from "./schemas/runtime.js";
export { EventTypeSchema, DocumentEventTypeSchema, type EventType, type DocumentEventType } from "./schemas/eventTypes.js";