Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appwrite-utils

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appwrite-utils - npm Package Compare versions

Comparing version 0.1.21 to 0.1.22

2

dist/functions/afterImportActions.d.ts

@@ -1,4 +0,4 @@

import { type AppwriteConfig } from "../schemas/appwriteConfig";
import { type AppwriteConfig } from "../schemas/appwriteConfig.js";
export interface AfterImportActions {
[key: string]: (config: AppwriteConfig, ...args: any[]) => Promise<any>;
}

@@ -1,4 +0,4 @@

import { type Attribute } from "../schemas/attribute";
import { type Attribute } from "../schemas/attribute.js";
export declare const parseAttribute: (attribute: Attribute & {
default?: undefined | null | string | number | boolean;
}) => Attribute;

@@ -1,11 +0,11 @@

import { stringAttributeSchema } from "../schemas/stringAttribute";
import { integerAttributeSchema } from "../schemas/integerAttribute";
import { floatAttributeSchema } from "../schemas/floatAttribute";
import { booleanAttributeSchema } from "../schemas/booleanAttribute";
import { datetimeAttributeSchema } from "../schemas/datetimeAttribute";
import { emailAttributeSchema } from "../schemas/emailAttribute";
import { ipAttributeSchema } from "../schemas/ipAttribute";
import { urlAttributeSchema } from "../schemas/urlAttribute";
import { enumAttributeSchema } from "../schemas/enumAttribute";
import { relationshipAttributeSchema } from "../schemas/relationshipAttribute";
import { stringAttributeSchema } from "../schemas/stringAttribute.js";
import { integerAttributeSchema } from "../schemas/integerAttribute.js";
import { floatAttributeSchema } from "../schemas/floatAttribute.js";
import { booleanAttributeSchema } from "../schemas/booleanAttribute.js";
import { datetimeAttributeSchema } from "../schemas/datetimeAttribute.js";
import { emailAttributeSchema } from "../schemas/emailAttribute.js";
import { ipAttributeSchema } from "../schemas/ipAttribute.js";
import { urlAttributeSchema } from "../schemas/urlAttribute.js";
import { enumAttributeSchema } from "../schemas/enumAttribute.js";
import { relationshipAttributeSchema } from "../schemas/relationshipAttribute.js";
export const parseAttribute = (attribute) => {

@@ -12,0 +12,0 @@ let attributeToParse = { ...attribute };

import { z } from "zod";
import { Collections } from "./collection";
import { Collections } from "./collection.js";
export declare const AppwriteConfigSchema: z.ZodObject<{

@@ -4,0 +4,0 @@ appwriteEndpoint: z.ZodDefault<z.ZodString>;

import { z } from "zod";
import { CollectionCreateSchema } from "./collection";
import { CollectionCreateSchema } from "./collection.js";
export const AppwriteConfigSchema = z.object({

@@ -4,0 +4,0 @@ appwriteEndpoint: z.string().default("https://cloud.appwrite.io/v1"),

import { z } from "zod";
import { stringAttributeSchema, } from "../schemas/stringAttribute";
import { integerAttributeSchema, } from "../schemas/integerAttribute";
import { floatAttributeSchema, } from "../schemas/floatAttribute";
import { booleanAttributeSchema, } from "../schemas/booleanAttribute";
import { datetimeAttributeSchema, } from "../schemas/datetimeAttribute";
import { emailAttributeSchema, } from "../schemas/emailAttribute";
import { ipAttributeSchema } from "../schemas/ipAttribute";
import { urlAttributeSchema } from "../schemas/urlAttribute";
import { enumAttributeSchema, } from "../schemas/enumAttribute";
import { relationshipAttributeSchema, } from "../schemas/relationshipAttribute";
import { stringAttributeSchema, } from "../schemas/stringAttribute.js";
import { integerAttributeSchema, } from "../schemas/integerAttribute.js";
import { floatAttributeSchema, } from "../schemas/floatAttribute.js";
import { booleanAttributeSchema, } from "../schemas/booleanAttribute.js";
import { datetimeAttributeSchema, } from "../schemas/datetimeAttribute.js";
import { emailAttributeSchema, } from "../schemas/emailAttribute.js";
import { ipAttributeSchema } from "../schemas/ipAttribute.js";
import { urlAttributeSchema, } from "../schemas/urlAttribute.js";
import { enumAttributeSchema, } from "../schemas/enumAttribute.js";
import { relationshipAttributeSchema, } from "../schemas/relationshipAttribute.js";
export const attributeSchema = z.discriminatedUnion("type", [

@@ -13,0 +13,0 @@ stringAttributeSchema,

import { z } from "zod";
import { ulid } from "ulid";
import { importDefSchemas } from "./importDef";
import { attributeSchema } from "./attribute";
import { indexSchema } from "./index";
import { importDefSchemas } from "./importDef.js";
import { attributeSchema } from "./attribute.js";
import { indexSchema } from "./index.js";
export const collectionSchema = z.object({

@@ -7,0 +7,0 @@ name: z.string().describe("The name of the collection"),

{
"name": "appwrite-utils",
"module": "src/index.ts",
"version": "0.1.21",
"version": "0.1.22",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

@@ -1,4 +0,4 @@

import { type AppwriteConfig } from "../schemas/appwriteConfig";
import { type AppwriteConfig } from "../schemas/appwriteConfig.js";
export interface AfterImportActions {
[key: string]: (config: AppwriteConfig, ...args: any[]) => Promise<any>;
}
import { DateTime } from "luxon";
import _ from "lodash";
import type { AttributeMappings } from "../schemas/attributeMappings";
import type { AttributeMappings } from "../schemas/attributeMappings.js";

@@ -5,0 +5,0 @@ const { cloneDeep, isObject } = _;

import { ID, IndexType, Permission } from "node-appwrite";
import { z } from "zod";
import { type Attribute, attributeSchema } from "../schemas/attribute";
import { stringAttributeSchema } from "../schemas/stringAttribute";
import { integerAttributeSchema } from "../schemas/integerAttribute";
import { floatAttributeSchema } from "../schemas/floatAttribute";
import { booleanAttributeSchema } from "../schemas/booleanAttribute";
import { datetimeAttributeSchema } from "../schemas/datetimeAttribute";
import { emailAttributeSchema } from "../schemas/emailAttribute";
import { ipAttributeSchema } from "../schemas/ipAttribute";
import { urlAttributeSchema } from "../schemas/urlAttribute";
import { enumAttributeSchema } from "../schemas/enumAttribute";
import { relationshipAttributeSchema } from "../schemas/relationshipAttribute";
import { type Attribute, attributeSchema } from "../schemas/attribute.js";
import { stringAttributeSchema } from "../schemas/stringAttribute.js";
import { integerAttributeSchema } from "../schemas/integerAttribute.js";
import { floatAttributeSchema } from "../schemas/floatAttribute.js";
import { booleanAttributeSchema } from "../schemas/booleanAttribute.js";
import { datetimeAttributeSchema } from "../schemas/datetimeAttribute.js";
import { emailAttributeSchema } from "../schemas/emailAttribute.js";
import { ipAttributeSchema } from "../schemas/ipAttribute.js";
import { urlAttributeSchema } from "../schemas/urlAttribute.js";
import { enumAttributeSchema } from "../schemas/enumAttribute.js";
import { relationshipAttributeSchema } from "../schemas/relationshipAttribute.js";

@@ -15,0 +15,0 @@ export const parseAttribute = (

import { z } from "zod";
import { CollectionCreateSchema, Collections } from "./collection";
import { CollectionCreateSchema, Collections } from "./collection.js";

@@ -4,0 +4,0 @@ export const AppwriteConfigSchema = z.object({

@@ -5,33 +5,36 @@ import { z } from "zod";

type StringAttribute,
} from "../schemas/stringAttribute";
} from "../schemas/stringAttribute.js";
import {
integerAttributeSchema,
type IntegerAttribute,
} from "../schemas/integerAttribute";
} from "../schemas/integerAttribute.js";
import {
floatAttributeSchema,
type FloatAttribute,
} from "../schemas/floatAttribute";
} from "../schemas/floatAttribute.js";
import {
booleanAttributeSchema,
type BooleanAttribute,
} from "../schemas/booleanAttribute";
} from "../schemas/booleanAttribute.js";
import {
datetimeAttributeSchema,
type DatetimeAttribute,
} from "../schemas/datetimeAttribute";
} from "../schemas/datetimeAttribute.js";
import {
emailAttributeSchema,
type EmailAttribute,
} from "../schemas/emailAttribute";
import { ipAttributeSchema, type IpAttribute } from "../schemas/ipAttribute";
import { urlAttributeSchema, type UrlAttribute } from "../schemas/urlAttribute";
} from "../schemas/emailAttribute.js";
import { ipAttributeSchema, type IpAttribute } from "../schemas/ipAttribute.js";
import {
urlAttributeSchema,
type UrlAttribute,
} from "../schemas/urlAttribute.js";
import {
enumAttributeSchema,
type EnumAttribute,
} from "../schemas/enumAttribute";
} from "../schemas/enumAttribute.js";
import {
relationshipAttributeSchema,
type RelationshipAttribute,
} from "../schemas/relationshipAttribute";
} from "../schemas/relationshipAttribute.js";

@@ -38,0 +41,0 @@ export const attributeSchema = z.discriminatedUnion("type", [

import { z } from "zod";
import { ulid } from "ulid";
import { importDefSchemas } from "./importDef";
import { attributeSchema } from "./attribute";
import { indexSchema } from "./index";
import { importDefSchemas } from "./importDef.js";
import { attributeSchema } from "./attribute.js";
import { indexSchema } from "./index.js";

@@ -7,0 +7,0 @@ export const collectionSchema = z.object({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc