diff --git a/packages/validations/src/index.d.ts b/packages/validations/src/index.d.ts deleted file mode 100644 index e2141618c..000000000 --- a/packages/validations/src/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './validations'; -export * from './utils'; -export { ZodSchema } from 'zod'; diff --git a/packages/validations/src/index.js b/packages/validations/src/index.js deleted file mode 100644 index 06a998996..000000000 --- a/packages/validations/src/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from './validations'; -export * from './utils'; -export { ZodSchema } from 'zod'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/validations/src/index.js.map b/packages/validations/src/index.js.map deleted file mode 100644 index 634b03ee5..000000000 --- a/packages/validations/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/utils.d.ts b/packages/validations/src/utils.d.ts deleted file mode 100644 index 33fb93473..000000000 --- a/packages/validations/src/utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ZodSchema, z } from 'zod'; -export type ValidationType = z.infer; diff --git a/packages/validations/src/utils.js b/packages/validations/src/utils.js deleted file mode 100644 index e6c75f0b7..000000000 --- a/packages/validations/src/utils.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/packages/validations/src/utils.js.map b/packages/validations/src/utils.js.map deleted file mode 100644 index 9e95c93e8..000000000 --- a/packages/validations/src/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/validations/src/validations/authTokenValidator.d.ts b/packages/validations/src/validations/authTokenValidator.d.ts deleted file mode 100644 index d5c75a663..000000000 --- a/packages/validations/src/validations/authTokenValidator.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { z } from 'zod'; -export declare const TokenSchema: z.ZodObject<{ - id: z.ZodString; -}, "strip", z.ZodTypeAny, { - id?: string; -}, { - id?: string; -}>; -export declare const googleSignin: z.ZodObject<{ - idToken: z.ZodString; -}, "strip", z.ZodTypeAny, { - idToken?: string; -}, { - idToken?: string; -}>; diff --git a/packages/validations/src/validations/authTokenValidator.js b/packages/validations/src/validations/authTokenValidator.js deleted file mode 100644 index e2e0126d7..000000000 --- a/packages/validations/src/validations/authTokenValidator.js +++ /dev/null @@ -1,8 +0,0 @@ -import { z } from 'zod'; -export const TokenSchema = z.object({ - id: z.string(), -}); -export const googleSignin = z.object({ - idToken: z.string().nonempty(), -}); -//# sourceMappingURL=authTokenValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/authTokenValidator.js.map b/packages/validations/src/validations/authTokenValidator.js.map deleted file mode 100644 index 8c8a7be1f..000000000 --- a/packages/validations/src/validations/authTokenValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authTokenValidator.js","sourceRoot":"","sources":["authTokenValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/destinationValidator.d.ts b/packages/validations/src/validations/destinationValidator.d.ts deleted file mode 100644 index eb5313eac..000000000 --- a/packages/validations/src/validations/destinationValidator.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { z } from 'zod'; -export declare const getDestinationByid: z.ZodObject<{ - id: z.ZodString; -}, "strip", z.ZodTypeAny, { - id?: string; -}, { - id?: string; -}>; diff --git a/packages/validations/src/validations/destinationValidator.js b/packages/validations/src/validations/destinationValidator.js deleted file mode 100644 index 559c8b8fb..000000000 --- a/packages/validations/src/validations/destinationValidator.js +++ /dev/null @@ -1,5 +0,0 @@ -import { z } from 'zod'; -export const getDestinationByid = z.object({ - id: z.string(), -}); -//# sourceMappingURL=destinationValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/destinationValidator.js.map b/packages/validations/src/validations/destinationValidator.js.map deleted file mode 100644 index ae0d9f0c7..000000000 --- a/packages/validations/src/validations/destinationValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"destinationValidator.js","sourceRoot":"","sources":["destinationValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/extrasValidator.d.ts b/packages/validations/src/validations/extrasValidator.d.ts deleted file mode 100644 index b680a72c1..000000000 --- a/packages/validations/src/validations/extrasValidator.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { z } from 'zod'; -export declare const AddressArray: z.ZodObject<{ - addressArray: z.ZodString; -}, "strip", z.ZodTypeAny, { - addressArray?: string; -}, { - addressArray?: string; -}>; -export declare const handlePasswordReset: z.ZodObject<{ - token: z.ZodString; -}, "strip", z.ZodTypeAny, { - token?: string; -}, { - token?: string; -}>; diff --git a/packages/validations/src/validations/extrasValidator.js b/packages/validations/src/validations/extrasValidator.js deleted file mode 100644 index 818efd8ec..000000000 --- a/packages/validations/src/validations/extrasValidator.js +++ /dev/null @@ -1,8 +0,0 @@ -import { z } from 'zod'; -export const AddressArray = z.object({ - addressArray: z.string(), -}); -export const handlePasswordReset = z.object({ - token: z.string(), -}); -//# sourceMappingURL=extrasValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/extrasValidator.js.map b/packages/validations/src/validations/extrasValidator.js.map deleted file mode 100644 index 6f6a643e5..000000000 --- a/packages/validations/src/validations/extrasValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extrasValidator.js","sourceRoot":"","sources":["extrasValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/index.d.ts b/packages/validations/src/validations/index.d.ts deleted file mode 100644 index 0d21d0029..000000000 --- a/packages/validations/src/validations/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './userRoutesValidator'; -export * from './tripRoutesValidator'; -export * from './packRoutesValidator'; -export * from './itemRoutesValidator'; -export * from './destinationValidator'; -export * from './osmValidator'; -export * from './parksRouteValidator'; -export * from './trailsRouteValidator'; -export * from './openAIRoutesValidator'; -export * from './extrasValidator'; -export * from './templateRouteValidator'; -export * from './weatherRoutesValidator'; -export * from './roleValidator'; -export * from './authTokenValidator'; diff --git a/packages/validations/src/validations/index.js b/packages/validations/src/validations/index.js deleted file mode 100644 index 4b714963d..000000000 --- a/packages/validations/src/validations/index.js +++ /dev/null @@ -1,16 +0,0 @@ -// export default userRoutesValidator; -export * from './userRoutesValidator'; -export * from './tripRoutesValidator'; -export * from './packRoutesValidator'; -export * from './itemRoutesValidator'; -export * from './destinationValidator'; -export * from './osmValidator'; -export * from './parksRouteValidator'; -export * from './trailsRouteValidator'; -export * from './openAIRoutesValidator'; -export * from './extrasValidator'; -export * from './templateRouteValidator'; -export * from './weatherRoutesValidator'; -export * from './roleValidator'; -export * from './authTokenValidator'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/index.js.map b/packages/validations/src/validations/index.js.map deleted file mode 100644 index 38c546543..000000000 --- a/packages/validations/src/validations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/itemRoutesValidator.d.ts b/packages/validations/src/validations/itemRoutesValidator.d.ts deleted file mode 100644 index c8a5a76c4..000000000 --- a/packages/validations/src/validations/itemRoutesValidator.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { PackAndItemVisibilityFilter } from '@packrat/shared-types'; -import { z } from 'zod'; -export declare const getItemByName: z.ZodObject<{ - name: z.ZodString; -}, "strip", z.ZodTypeAny, { - name?: string; -}, { - name?: string; -}>; -export declare const getItems: z.ZodObject<{ - packId: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - packId?: string; -}, { - packId?: string; -}>; -export declare const getItemById: z.ZodObject<{ - id: z.ZodString; -}, "strip", z.ZodTypeAny, { - id?: string; -}, { - id?: string; -}>; -export declare const addItem: z.ZodObject<{ - name: z.ZodString; - weight: z.ZodNumber; - quantity: z.ZodNumber; - unit: z.ZodString; - packId: z.ZodString; - type: z.ZodString; - ownerId: z.ZodString; - id: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - id?: string; - name?: string; - type?: string; - packId?: string; - weight?: number; - quantity?: number; - unit?: string; - ownerId?: string; -}, { - id?: string; - name?: string; - type?: string; - packId?: string; - weight?: number; - quantity?: number; - unit?: string; - ownerId?: string; -}>; -export declare const importItem: z.ZodObject<{ - content: z.ZodString; - packId: z.ZodString; - ownerId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; - ownerId?: string; - content?: string; -}, { - packId?: string; - ownerId?: string; - content?: string; -}>; -export type Item = z.infer; -export declare const editItem: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - weight: z.ZodNumber; - quantity: z.ZodNumber; - unit: z.ZodString; - type: z.ZodString; -}, "strip", z.ZodTypeAny, { - id?: string; - name?: string; - type?: string; - weight?: number; - quantity?: number; - unit?: string; -}, { - id?: string; - name?: string; - type?: string; - weight?: number; - quantity?: number; - unit?: string; -}>; -export declare const addGlobalItemToPack: z.ZodObject<{ - packId: z.ZodString; - itemId: z.ZodString; - ownerId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; - ownerId?: string; - itemId?: string; -}, { - packId?: string; - ownerId?: string; - itemId?: string; -}>; -export declare const deleteGlobalItem: z.ZodObject<{ - itemId: z.ZodString; -}, "strip", z.ZodTypeAny, { - itemId?: string; -}, { - itemId?: string; -}>; -export declare const editGlobalItemAsDuplicate: z.ZodObject<{ - itemId: z.ZodString; - packId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; - itemId?: string; -}, { - packId?: string; - itemId?: string; -}>; -export declare const deleteItem: z.ZodObject<{ - itemId: z.ZodString; - packId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; - itemId?: string; -}, { - packId?: string; - itemId?: string; -}>; -export declare const addItemGlobal: z.ZodObject<{ - name: z.ZodString; - weight: z.ZodNumber; - quantity: z.ZodNumber; - unit: z.ZodString; - type: z.ZodString; - ownerId: z.ZodString; -}, "strip", z.ZodTypeAny, { - name?: string; - type?: string; - weight?: number; - quantity?: number; - unit?: string; - ownerId?: string; -}, { - name?: string; - type?: string; - weight?: number; - quantity?: number; - unit?: string; - ownerId?: string; -}>; -export declare const importItemsGlobal: z.ZodObject<{ - content: z.ZodString; - ownerId: z.ZodString; -}, "strip", z.ZodTypeAny, { - ownerId?: string; - content?: string; -}, { - ownerId?: string; - content?: string; -}>; -export declare const getItemsGlobally: z.ZodObject<{ - limit: z.ZodNumber; - page: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - limit?: number; - page?: number; -}, { - limit?: number; - page?: number; -}>; -export declare const getSimilarItems: z.ZodObject<{ - id: z.ZodString; - limit: z.ZodNumber; - visibility: z.ZodDefault>; -}, "strip", z.ZodTypeAny, { - id?: string; - limit?: number; - visibility?: PackAndItemVisibilityFilter; -}, { - id?: string; - limit?: number; - visibility?: PackAndItemVisibilityFilter; -}>; -export declare const importItemHeaders: z.ZodObject<{ - Name: z.ZodString; - Weight: z.ZodString; - Unit: z.ZodString; - Quantity: z.ZodString; - Category: z.ZodString; -}, "strip", z.ZodTypeAny, { - Name?: string; - Weight?: string; - Unit?: string; - Quantity?: string; - Category?: string; -}, { - Name?: string; - Weight?: string; - Unit?: string; - Quantity?: string; - Category?: string; -}>; -export type ImportItemHeaders = z.infer; diff --git a/packages/validations/src/validations/itemRoutesValidator.js b/packages/validations/src/validations/itemRoutesValidator.js deleted file mode 100644 index b823eb59f..000000000 --- a/packages/validations/src/validations/itemRoutesValidator.js +++ /dev/null @@ -1,81 +0,0 @@ -import { PackAndItemVisibilityFilter } from '@packrat/shared-types'; -import { z } from 'zod'; -export const getItemByName = z.object({ - name: z.string(), -}); -export const getItems = z.object({ - packId: z.string().optional(), -}); -export const getItemById = z.object({ - id: z.string(), -}); -export const addItem = z.object({ - name: z.string(), - weight: z.number(), - quantity: z.number(), - unit: z.string(), - packId: z.string(), - type: z.string(), - ownerId: z.string(), - id: z.string().optional(), -}); -export const importItem = z.object({ - content: z.string(), - packId: z.string(), - ownerId: z.string(), -}); -export const editItem = z.object({ - id: z.string(), - name: z.string().nonempty(), - weight: z.number(), - quantity: z.number(), - unit: z.string(), - type: z.string(), -}); -export const addGlobalItemToPack = z.object({ - packId: z.string(), - itemId: z.string(), - ownerId: z.string(), -}); -export const deleteGlobalItem = z.object({ - itemId: z.string(), -}); -export const editGlobalItemAsDuplicate = z.object({ - itemId: z.string(), - packId: z.string(), -}); -export const deleteItem = z.object({ - itemId: z.string(), - packId: z.string(), -}); -export const addItemGlobal = z.object({ - name: z.string(), - weight: z.number(), - quantity: z.number(), - unit: z.string(), - type: z.string(), - ownerId: z.string(), -}); -export const importItemsGlobal = z.object({ - content: z.string(), - ownerId: z.string(), -}); -export const getItemsGlobally = z.object({ - limit: z.number(), - page: z.number(), -}); -export const getSimilarItems = z.object({ - id: z.string(), - limit: z.number(), - visibility: z - .nativeEnum(PackAndItemVisibilityFilter) - .default(PackAndItemVisibilityFilter.ALL), -}); -export const importItemHeaders = z.object({ - Name: z.string(), - Weight: z.string(), - Unit: z.string(), - Quantity: z.string(), - Category: z.string(), -}); -//# sourceMappingURL=itemRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/itemRoutesValidator.js.map b/packages/validations/src/validations/itemRoutesValidator.js.map deleted file mode 100644 index 8f49490dd..000000000 --- a/packages/validations/src/validations/itemRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"itemRoutesValidator.js","sourceRoot":"","sources":["itemRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH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,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC;SACV,UAAU,CAAC,2BAA2B,CAAC;SACvC,OAAO,CAAC,2BAA2B,CAAC,GAAG,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/openAIRoutesValidator.d.ts b/packages/validations/src/validations/openAIRoutesValidator.d.ts deleted file mode 100644 index 70ae14918..000000000 --- a/packages/validations/src/validations/openAIRoutesValidator.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { z } from 'zod'; -export declare const getAIResponse: z.ZodObject<{ - userId: z.ZodString; - itemTypeId: z.ZodString; - userInput: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; - itemTypeId?: string; - userInput?: string; -}, { - userId?: string; - itemTypeId?: string; - userInput?: string; -}>; -export declare const getUserChats: z.ZodObject<{ - userId: z.ZodString; - itemTypeId: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; - itemTypeId?: string; -}, { - userId?: string; - itemTypeId?: string; -}>; -export declare const getAISuggestions: z.ZodObject<{ - userId: z.ZodString; - itemTypeId: z.ZodString; - type: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; - type?: string; - itemTypeId?: string; -}, { - userId?: string; - type?: string; - itemTypeId?: string; -}>; diff --git a/packages/validations/src/validations/openAIRoutesValidator.js b/packages/validations/src/validations/openAIRoutesValidator.js deleted file mode 100644 index f92dbdf5b..000000000 --- a/packages/validations/src/validations/openAIRoutesValidator.js +++ /dev/null @@ -1,16 +0,0 @@ -import { z } from 'zod'; -export const getAIResponse = z.object({ - userId: z.string(), - itemTypeId: z.string(), - userInput: z.string(), -}); -export const getUserChats = z.object({ - userId: z.string(), - itemTypeId: z.string(), -}); -export const getAISuggestions = z.object({ - userId: z.string(), - itemTypeId: z.string(), - type: z.string(), -}); -//# sourceMappingURL=openAIRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/openAIRoutesValidator.js.map b/packages/validations/src/validations/openAIRoutesValidator.js.map deleted file mode 100644 index f342c7851..000000000 --- a/packages/validations/src/validations/openAIRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"openAIRoutesValidator.js","sourceRoot":"","sources":["openAIRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/osmValidator.d.ts b/packages/validations/src/validations/osmValidator.d.ts deleted file mode 100644 index ef831f1a4..000000000 --- a/packages/validations/src/validations/osmValidator.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { z } from 'zod'; -export declare const getOsm: z.ZodObject<{ - activityType: z.ZodString; - startPoint: z.ZodObject<{ - latitude: z.ZodNumber; - longitude: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - latitude?: number; - longitude?: number; - }, { - latitude?: number; - longitude?: number; - }>; - endPoint: z.ZodObject<{ - latitude: z.ZodNumber; - longitude: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - latitude?: number; - longitude?: number; - }, { - latitude?: number; - longitude?: number; - }>; -}, "strip", z.ZodTypeAny, { - activityType?: string; - startPoint?: { - latitude?: number; - longitude?: number; - }; - endPoint?: { - latitude?: number; - longitude?: number; - }; -}, { - activityType?: string; - startPoint?: { - latitude?: number; - longitude?: number; - }; - endPoint?: { - latitude?: number; - longitude?: number; - }; -}>; -export declare const getParksOSM: z.ZodObject<{ - lat: z.ZodNumber; - lon: z.ZodNumber; - radius: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - lat?: number; - lon?: number; - radius?: number; -}, { - lat?: number; - lon?: number; - radius?: number; -}>; -export declare const getPhotonDetails: z.ZodObject<{ - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - type: z.ZodString; -}, "strip", z.ZodTypeAny, { - id?: string | number; - type?: string; -}, { - id?: string | number; - type?: string; -}>; -export declare const getPhotonResults: z.ZodObject<{ - searchString: z.ZodString; -}, "strip", z.ZodTypeAny, { - searchString?: string; -}, { - searchString?: string; -}>; -export declare const getTrailsOSM: z.ZodObject<{ - lat: z.ZodNumber; - lon: z.ZodNumber; - radius: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - lat?: number; - lon?: number; - radius?: number; -}, { - lat?: number; - lon?: number; - radius?: number; -}>; -export declare const postSingleGeoJSON: z.ZodObject<{ - geojson: z.ZodAny; -}, "strip", z.ZodTypeAny, { - geojson?: any; -}, { - geojson?: any; -}>; diff --git a/packages/validations/src/validations/osmValidator.js b/packages/validations/src/validations/osmValidator.js deleted file mode 100644 index b2789ae6b..000000000 --- a/packages/validations/src/validations/osmValidator.js +++ /dev/null @@ -1,27 +0,0 @@ -import { z } from 'zod'; -export const getOsm = z.object({ - activityType: z.string(), - startPoint: z.object({ latitude: z.number(), longitude: z.number() }), - endPoint: z.object({ latitude: z.number(), longitude: z.number() }), -}); -export const getParksOSM = z.object({ - lat: z.number(), - lon: z.number(), - radius: z.number().optional(), -}); -export const getPhotonDetails = z.object({ - id: z.union([z.string(), z.number()]), - type: z.string(), -}); -export const getPhotonResults = z.object({ - searchString: z.string(), -}); -export const getTrailsOSM = z.object({ - lat: z.number(), - lon: z.number(), - radius: z.number().optional(), -}); -export const postSingleGeoJSON = z.object({ - geojson: z.any(), -}); -//# sourceMappingURL=osmValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/osmValidator.js.map b/packages/validations/src/validations/osmValidator.js.map deleted file mode 100644 index 25330308f..000000000 --- a/packages/validations/src/validations/osmValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"osmValidator.js","sourceRoot":"","sources":["osmValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE;CACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/packRoutesValidator.d.ts b/packages/validations/src/validations/packRoutesValidator.d.ts deleted file mode 100644 index 7f88b979f..000000000 --- a/packages/validations/src/validations/packRoutesValidator.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { z } from 'zod'; -import { PackAndItemVisibilityFilter } from '@packrat/shared-types'; -export declare const getPacks: z.ZodObject<{ - ownerId: z.ZodString; - queryBy: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - ownerId?: string; - queryBy?: string; -}, { - ownerId?: string; - queryBy?: string; -}>; -export declare const getPackById: z.ZodObject<{ - packId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; -}, { - packId?: string; -}>; -export declare const addPack: z.ZodObject<{ - name: z.ZodString; - owner_id: z.ZodString; - is_public: z.ZodBoolean; -}, "strip", z.ZodTypeAny, { - name?: string; - owner_id?: string; - is_public?: boolean; -}, { - name?: string; - owner_id?: string; - is_public?: boolean; -}>; -export declare const editPack: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - is_public: z.ZodBoolean; -}, "strip", z.ZodTypeAny, { - id?: string; - name?: string; - is_public?: boolean; -}, { - id?: string; - name?: string; - is_public?: boolean; -}>; -export declare const deletePack: z.ZodObject<{ - packId: z.ZodString; -}, "strip", z.ZodTypeAny, { - packId?: string; -}, { - packId?: string; -}>; -export declare const getPublicPacks: z.ZodObject<{ - queryBy: z.ZodString; -}, "strip", z.ZodTypeAny, { - queryBy?: string; -}, { - queryBy?: string; -}>; -export declare const sendMessage: z.ZodObject<{ - message: z.ZodString; -}, "strip", z.ZodTypeAny, { - message?: string; -}, { - message?: string; -}>; -export declare const addPackSchema: z.ZodObject<{ - name: z.ZodString; - isPublic: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>; -}, "strip", z.ZodTypeAny, { - name?: string; - isPublic?: "1" | "0"; -}, { - name?: string; - isPublic?: "1" | "0"; -}>; -export declare const duplicatePublicPack: z.ZodObject<{ - packId: z.ZodString; - ownerId: z.ZodString; - items: z.ZodArray; -}, "strip", z.ZodTypeAny, { - packId?: string; - ownerId?: string; - items?: string[]; -}, { - packId?: string; - ownerId?: string; - items?: string[]; -}>; -export declare const getSimilarPacks: z.ZodObject<{ - id: z.ZodString; - limit: z.ZodNumber; - visibility: z.ZodDefault>; -}, "strip", z.ZodTypeAny, { - id?: string; - limit?: number; - visibility?: PackAndItemVisibilityFilter; -}, { - id?: string; - limit?: number; - visibility?: PackAndItemVisibilityFilter; -}>; diff --git a/packages/validations/src/validations/packRoutesValidator.js b/packages/validations/src/validations/packRoutesValidator.js deleted file mode 100644 index 350616d53..000000000 --- a/packages/validations/src/validations/packRoutesValidator.js +++ /dev/null @@ -1,45 +0,0 @@ -import { z } from 'zod'; -import { PackAndItemVisibilityFilter } from '@packrat/shared-types'; -export const getPacks = z.object({ - ownerId: z.string(), - queryBy: z.string().optional(), -}); -export const getPackById = z.object({ - packId: z.string(), -}); -export const addPack = z.object({ - name: z.string(), - owner_id: z.string(), - is_public: z.boolean(), -}); -export const editPack = z.object({ - id: z.string(), - name: z.string(), - is_public: z.boolean(), -}); -export const deletePack = z.object({ - packId: z.string(), -}); -export const getPublicPacks = z.object({ - queryBy: z.string(), -}); -export const sendMessage = z.object({ - message: z.string().nonempty(), -}); -export const addPackSchema = z.object({ - name: z.string().nonempty(), - isPublic: z.union([z.literal('0'), z.literal('1')]), -}); -export const duplicatePublicPack = z.object({ - packId: z.string(), - ownerId: z.string(), - items: z.array(z.string()), -}); -export const getSimilarPacks = z.object({ - id: z.string(), - limit: z.number(), - visibility: z - .nativeEnum(PackAndItemVisibilityFilter) - .default(PackAndItemVisibilityFilter.ALL), -}); -//# sourceMappingURL=packRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/packRoutesValidator.js.map b/packages/validations/src/validations/packRoutesValidator.js.map deleted file mode 100644 index e5914b8bf..000000000 --- a/packages/validations/src/validations/packRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"packRoutesValidator.js","sourceRoot":"","sources":["packRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,MAAM,CAAC,MAAM,Q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K,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC;SACV,UAAU,CAAC,2BAA2B,CAAC;SACvC,OAAO,CAAC,2BAA2B,CAAC,GAAG,CAAC;CAC5C,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/parksRouteValidator.d.ts b/packages/validations/src/validations/parksRouteValidator.d.ts deleted file mode 100644 index 9b00234ac..000000000 --- a/packages/validations/src/validations/parksRouteValidator.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { z } from 'zod'; -export declare const getParks: z.ZodObject<{ - abbrState: z.ZodString; -}, "strip", z.ZodTypeAny, { - abbrState?: string; -}, { - abbrState?: string; -}>; diff --git a/packages/validations/src/validations/parksRouteValidator.js b/packages/validations/src/validations/parksRouteValidator.js deleted file mode 100644 index 39653c5db..000000000 --- a/packages/validations/src/validations/parksRouteValidator.js +++ /dev/null @@ -1,5 +0,0 @@ -import { z } from 'zod'; -export const getParks = z.object({ - abbrState: z.string(), -}); -//# sourceMappingURL=parksRouteValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/parksRouteValidator.js.map b/packages/validations/src/validations/parksRouteValidator.js.map deleted file mode 100644 index be1d53e90..000000000 --- a/packages/validations/src/validations/parksRouteValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parksRouteValidator.js","sourceRoot":"","sources":["parksRouteValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/roleValidator.d.ts b/packages/validations/src/validations/roleValidator.d.ts deleted file mode 100644 index 677fd86a6..000000000 --- a/packages/validations/src/validations/roleValidator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { z } from 'zod'; -export declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"admin">]>; diff --git a/packages/validations/src/validations/roleValidator.js b/packages/validations/src/validations/roleValidator.js deleted file mode 100644 index a562e5a5b..000000000 --- a/packages/validations/src/validations/roleValidator.js +++ /dev/null @@ -1,3 +0,0 @@ -import { z } from 'zod'; -export const RoleSchema = z.union([z.literal('user'), z.literal('admin')]); -//# sourceMappingURL=roleValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/roleValidator.js.map b/packages/validations/src/validations/roleValidator.js.map deleted file mode 100644 index 4803e92dd..000000000 --- a/packages/validations/src/validations/roleValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"roleValidator.js","sourceRoot":"","sources":["roleValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/templateRouteValidator.d.ts b/packages/validations/src/validations/templateRouteValidator.d.ts deleted file mode 100644 index 4f49d1cfd..000000000 --- a/packages/validations/src/validations/templateRouteValidator.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { z } from 'zod'; -export declare const addTemplate: z.ZodObject<{ - type: z.ZodAny; - templateId: z.ZodString; - isGlobalTemplate: z.ZodBoolean; - createdBy: z.ZodString; -}, "strip", z.ZodTypeAny, { - type?: any; - templateId?: string; - isGlobalTemplate?: boolean; - createdBy?: string; -}, { - type?: any; - templateId?: string; - isGlobalTemplate?: boolean; - createdBy?: string; -}>; -export declare const editTemplate: z.ZodObject<{ - templateId: z.ZodString; - type: z.ZodString; - isGlobalTemplate: z.ZodBoolean; -}, "strip", z.ZodTypeAny, { - type?: string; - templateId?: string; - isGlobalTemplate?: boolean; -}, { - type?: string; - templateId?: string; - isGlobalTemplate?: boolean; -}>; -export declare const deleteTemplate: z.ZodObject<{ - templateId: z.ZodString; -}, "strip", z.ZodTypeAny, { - templateId?: string; -}, { - templateId?: string; -}>; -export declare const getTemplateById: z.ZodObject<{ - templateId: z.ZodString; -}, "strip", z.ZodTypeAny, { - templateId?: string; -}, { - templateId?: string; -}>; diff --git a/packages/validations/src/validations/templateRouteValidator.js b/packages/validations/src/validations/templateRouteValidator.js deleted file mode 100644 index 1ce85f1e5..000000000 --- a/packages/validations/src/validations/templateRouteValidator.js +++ /dev/null @@ -1,19 +0,0 @@ -import { z } from 'zod'; -export const addTemplate = z.object({ - type: z.any(), - templateId: z.string(), - isGlobalTemplate: z.boolean(), - createdBy: z.string(), -}); -export const editTemplate = z.object({ - templateId: z.string(), - type: z.string(), - isGlobalTemplate: z.boolean(), -}); -export const deleteTemplate = z.object({ - templateId: z.string(), -}); -export const getTemplateById = z.object({ - templateId: z.string(), -}); -//# sourceMappingURL=templateRouteValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/templateRouteValidator.js.map b/packages/validations/src/validations/templateRouteValidator.js.map deleted file mode 100644 index 9a37c8821..000000000 --- a/packages/validations/src/validations/templateRouteValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"templateRouteValidator.js","sourceRoot":"","sources":["templateRouteValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE;IACb,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/trailsRouteValidator.d.ts b/packages/validations/src/validations/trailsRouteValidator.d.ts deleted file mode 100644 index 413d17f4a..000000000 --- a/packages/validations/src/validations/trailsRouteValidator.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { z } from 'zod'; -export declare const getTrails: z.ZodObject<{ - administrative_area_level_1: z.ZodString; - country: z.ZodString; - locality: z.ZodString; - latitude: z.ZodNumber; - longitude: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - latitude?: number; - longitude?: number; - administrative_area_level_1?: string; - country?: string; - locality?: string; -}, { - latitude?: number; - longitude?: number; - administrative_area_level_1?: string; - country?: string; - locality?: string; -}>; diff --git a/packages/validations/src/validations/trailsRouteValidator.js b/packages/validations/src/validations/trailsRouteValidator.js deleted file mode 100644 index ebf0f2e51..000000000 --- a/packages/validations/src/validations/trailsRouteValidator.js +++ /dev/null @@ -1,9 +0,0 @@ -import { z } from 'zod'; -export const getTrails = z.object({ - administrative_area_level_1: z.string(), - country: z.string(), - locality: z.string(), - latitude: z.number(), - longitude: z.number(), -}); -//# sourceMappingURL=trailsRouteValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/trailsRouteValidator.js.map b/packages/validations/src/validations/trailsRouteValidator.js.map deleted file mode 100644 index 8f09c54d9..000000000 --- a/packages/validations/src/validations/trailsRouteValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trailsRouteValidator.js","sourceRoot":"","sources":["trailsRouteValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/enums.d.ts b/packages/validations/src/validations/tripRoutesValidator/enums.d.ts deleted file mode 100644 index aab2c9ed4..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/enums.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare enum TripActivity { - TRIP = "trip", - RUNNING = "running", - BIKING = "biking", - CAMPING = "camping", - FISHING = "fishing", - TREKKING = "trekking", - ROCK_CLIMBING = "rock-climbing", - HIKING = "hiking", - SWIMMING = "swimming" -} diff --git a/packages/validations/src/validations/tripRoutesValidator/enums.js b/packages/validations/src/validations/tripRoutesValidator/enums.js deleted file mode 100644 index bccf33a95..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/enums.js +++ /dev/null @@ -1,13 +0,0 @@ -export var TripActivity; -(function (TripActivity) { - TripActivity["TRIP"] = "trip"; - TripActivity["RUNNING"] = "running"; - TripActivity["BIKING"] = "biking"; - TripActivity["CAMPING"] = "camping"; - TripActivity["FISHING"] = "fishing"; - TripActivity["TREKKING"] = "trekking"; - TripActivity["ROCK_CLIMBING"] = "rock-climbing"; - TripActivity["HIKING"] = "hiking"; - TripActivity["SWIMMING"] = "swimming"; -})(TripActivity || (TripActivity = {})); -//# sourceMappingURL=enums.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/enums.js.map b/packages/validations/src/validations/tripRoutesValidator/enums.js.map deleted file mode 100644 index 98e05579d..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/enums.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enums.js","sourceRoot":"","sources":["enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAVW,YAAY,KAAZ,YAAY,QAUvB"} \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/index.d.ts b/packages/validations/src/validations/tripRoutesValidator/index.d.ts deleted file mode 100644 index 8982e4e59..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './tripRoutesValidator'; -export * from './enums'; diff --git a/packages/validations/src/validations/tripRoutesValidator/index.js b/packages/validations/src/validations/tripRoutesValidator/index.js deleted file mode 100644 index 8c831362d..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from './tripRoutesValidator'; -export * from './enums'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/index.js.map b/packages/validations/src/validations/tripRoutesValidator/index.js.map deleted file mode 100644 index f9a060e4c..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.d.ts b/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.d.ts deleted file mode 100644 index 8fbb7b641..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.d.ts +++ /dev/null @@ -1,422 +0,0 @@ -import { z } from 'zod'; -export declare const addTripForm: z.ZodObject<{ - name: z.ZodString; - description: z.ZodString; - is_public: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>; -}, "strip", z.ZodTypeAny, { - name?: string; - is_public?: "1" | "0"; - description?: string; -}, { - name?: string; - is_public?: "1" | "0"; - description?: string; -}>; -export declare const getTrips: z.ZodObject<{ - owner_id: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - owner_id?: string; -}, { - owner_id?: string; -}>; -export declare const getTripById: z.ZodObject<{ - tripId: z.ZodString; -}, "strip", z.ZodTypeAny, { - tripId?: string; -}, { - tripId?: string; -}>; -export declare const addTripDetails: z.ZodObject<{ - duration: z.ZodString; - start_date: z.ZodString; - end_date: z.ZodString; - destination: z.ZodString; - type: z.ZodEnum<[string, ...string[]]>; - park: z.ZodOptional; - trail: z.ZodOptional; - geoJSON: z.ZodObject<{ - type: z.ZodLiteral<"FeatureCollection">; - features: z.ZodArray; - id: z.ZodString; - properties: z.ZodRecord>; - geometry: z.ZodUnion<[z.ZodObject<{ - type: z.ZodString; - coordinates: any; - }, "strip", z.ZodTypeAny, { - type?: string; - coordinates?: any; - }, { - type?: string; - coordinates?: any; - }>, z.ZodObject<{ - type: z.ZodLiteral<"GeometryCollection">; - geometries: z.ZodArray, "many">; - }, "strip", z.ZodTypeAny, { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }, { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }>]>; - }, "strip", z.ZodTypeAny, { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }, { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }>, "many">; - }, "strip", z.ZodTypeAny, { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }, { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }>; - owner_id: z.ZodString; - pack_id: z.ZodString; -}, "strip", z.ZodTypeAny, { - pack_id?: string; - owner_id?: string; - type?: string; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; - geoJSON?: { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }; - park?: string; - trail?: string; -}, { - pack_id?: string; - owner_id?: string; - type?: string; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; - geoJSON?: { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }; - park?: string; - trail?: string; -}>; -export declare const addTrip: z.ZodObject; - park: z.ZodOptional; - trail: z.ZodOptional; - geoJSON: z.ZodObject<{ - type: z.ZodLiteral<"FeatureCollection">; - features: z.ZodArray; - id: z.ZodString; - properties: z.ZodRecord>; - geometry: z.ZodUnion<[z.ZodObject<{ - type: z.ZodString; - coordinates: any; - }, "strip", z.ZodTypeAny, { - type?: string; - coordinates?: any; - }, { - type?: string; - coordinates?: any; - }>, z.ZodObject<{ - type: z.ZodLiteral<"GeometryCollection">; - geometries: z.ZodArray, "many">; - }, "strip", z.ZodTypeAny, { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }, { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }>]>; - }, "strip", z.ZodTypeAny, { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }, { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }>, "many">; - }, "strip", z.ZodTypeAny, { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }, { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }>; - owner_id: z.ZodString; - pack_id: z.ZodString; -}, { - name: z.ZodString; - description: z.ZodString; - is_public: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>; -}>, "strip", z.ZodTypeAny, { - name?: string; - pack_id?: string; - owner_id?: string; - is_public?: "1" | "0"; - type?: string; - description?: string; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; - geoJSON?: { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }; - park?: string; - trail?: string; -}, { - name?: string; - pack_id?: string; - owner_id?: string; - is_public?: "1" | "0"; - type?: string; - description?: string; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; - geoJSON?: { - type?: "FeatureCollection"; - features?: { - id?: string; - type?: "Feature"; - properties?: Record; - geometry?: { - type?: string; - coordinates?: any; - } | { - type?: "GeometryCollection"; - geometries?: { - type?: string; - coordinates?: any; - }[]; - }; - }[]; - }; - park?: string; - trail?: string; -}>; -export declare const editTrip: z.ZodObject<{ - id: z.ZodString; - name: z.ZodOptional; - duration: z.ZodOptional; - start_date: z.ZodOptional; - end_date: z.ZodOptional; - destination: z.ZodOptional; - is_public: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - id?: string; - name?: string; - is_public?: boolean; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; -}, { - id?: string; - name?: string; - is_public?: boolean; - duration?: string; - start_date?: string; - end_date?: string; - destination?: string; -}>; -export declare const deleteTrip: z.ZodObject<{ - tripId: z.ZodString; -}, "strip", z.ZodTypeAny, { - tripId?: string; -}, { - tripId?: string; -}>; -export declare const queryTrip: z.ZodObject<{ - queryBy: z.ZodString; - tripId: z.ZodString; -}, "strip", z.ZodTypeAny, { - tripId?: string; - queryBy?: string; -}, { - tripId?: string; - queryBy?: string; -}>; diff --git a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js b/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js deleted file mode 100644 index 18e058e70..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js +++ /dev/null @@ -1,65 +0,0 @@ -import { z } from 'zod'; -import { TripActivity } from './enums'; -const tripActivityValues = Object.values(TripActivity); -export const addTripForm = z.object({ - name: z.string().nonempty(), - description: z.string().nonempty(), - is_public: z.union([z.literal('0'), z.literal('1')]), -}); -// @ts-ignore -const coordinateSchema = z.lazy(() => z.union([z.number(), z.array(coordinateSchema)])); -const baseGeometrySchema = z.object({ - type: z.string(), - coordinates: coordinateSchema, -}); -const geometryCollectionSchema = z.object({ - type: z.literal('GeometryCollection'), - geometries: z.array(baseGeometrySchema), -}); -const geometrySchema = z.union([baseGeometrySchema, geometryCollectionSchema]); -const featurePropertiesSchema = z.record(z.union([z.string(), z.number(), z.boolean()])); -const featureSchema = z.object({ - type: z.literal('Feature'), - id: z.string(), - properties: featurePropertiesSchema, - geometry: geometrySchema, -}); -export const getTrips = z.object({ - owner_id: z.string().optional(), -}); -export const getTripById = z.object({ - tripId: z.string(), -}); -export const addTripDetails = z.object({ - duration: z.string(), - start_date: z.string(), - end_date: z.string(), - destination: z.string(), - type: z.enum(tripActivityValues), - park: z.string().optional(), - trail: z.string().optional(), - geoJSON: z.object({ - type: z.literal('FeatureCollection'), - features: z.array(featureSchema), - }), - owner_id: z.string(), - pack_id: z.string(), -}); -export const addTrip = addTripDetails.merge(addTripForm); -export const editTrip = z.object({ - id: z.string(), - name: z.string().optional(), - duration: z.string().optional(), - start_date: z.string().optional(), - end_date: z.string().optional(), - destination: z.string().optional(), - is_public: z.boolean().optional(), -}); -export const deleteTrip = z.object({ - tripId: z.string().nonempty(), -}); -export const queryTrip = z.object({ - queryBy: z.string(), - tripId: z.string(), -}); -//# sourceMappingURL=tripRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js.map b/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js.map deleted file mode 100644 index 4d490a05a..000000000 --- a/packages/validations/src/validations/tripRoutesValidator/tripRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tripRoutesValidator.js","sourceRoot":"","sources":["tripRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAA0B,CAAC;AAEhF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC;AAEH,aAAa;AACb,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACnC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACjD,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,UAA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Q,EAAE;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;KACjC,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/userRoutesValidator.d.ts b/packages/validations/src/validations/userRoutesValidator.d.ts deleted file mode 100644 index 8a7796059..000000000 --- a/packages/validations/src/validations/userRoutesValidator.d.ts +++ /dev/null @@ -1,268 +0,0 @@ -import { z } from 'zod'; -export declare const userSignUp: z.ZodObject<{ - name: z.ZodString; - email: z.ZodEffects; - password: z.ZodEffects; - username: z.ZodString; -}, "strip", z.ZodTypeAny, { - name?: string; - password?: string; - email?: string; - username?: string; -}, { - name?: string; - password?: string; - email?: string; - username?: string; -}>; -export declare const userSignIn: z.ZodObject<{ - email: z.ZodEffects; - password: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - password?: string; - email?: string; -}, { - password?: string; - email?: string; -}>; -export declare const sentEmail: z.ZodObject<{ - email: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - email?: string; -}, { - email?: string; -}>; -export declare const resetPassword: z.ZodObject<{ - resetToken: z.ZodString; - password: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - password?: string; - resetToken?: string; -}, { - password?: string; - resetToken?: string; -}>; -export declare const getFirebaseUserByEmail: z.ZodObject<{ - email: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - email?: string; -}, { - email?: string; -}>; -export declare const checkCode: z.ZodObject<{ - email: z.ZodEffects; - code: z.ZodString; -}, "strip", z.ZodTypeAny, { - email?: string; - code?: string; -}, { - email?: string; - code?: string; -}>; -export declare const emailExists: z.ZodObject<{ - email: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - email?: string; -}, { - email?: string; -}>; -export declare const getUserById: z.ZodObject<{ - userId: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; -}, { - userId?: string; -}>; -export declare const addToFavorite: z.ZodObject<{ - packId: z.ZodString; - userId: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; - packId?: string; -}, { - userId?: string; - packId?: string; -}>; -export declare const editUser: z.ZodObject<{ - id: z.ZodString; - name: z.ZodOptional; - password: z.ZodOptional>; - email: z.ZodOptional; - code: z.ZodOptional; - role: z.ZodOptional>; - username: z.ZodOptional; - offlineMaps: z.ZodNullable; - bounds: z.ZodArray, "many">; - minZoom: z.ZodNumber; - maxZoom: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - metadata?: { - shape?: string; - }; - name?: string; - styleURL?: string; - bounds?: number[][]; - minZoom?: number; - maxZoom?: number; - }, { - metadata?: { - shape?: string; - }; - name?: string; - styleURL?: string; - bounds?: number[][]; - minZoom?: number; - maxZoom?: number; - }>>>>; - profileImage: z.ZodNullable>; - preferredWeather: z.ZodOptional; - preferredWeight: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - id?: string; - name?: string; - password?: string; - email?: string; - code?: string; - offlineMaps?: Record; - role?: "user" | "admin"; - username?: string; - profileImage?: string; - preferredWeather?: string; - preferredWeight?: string; -}, { - id?: string; - name?: string; - password?: string; - email?: string; - code?: string; - offlineMaps?: Record; - role?: "user" | "admin"; - username?: string; - profileImage?: string; - preferredWeather?: string; - preferredWeight?: string; -}>; -export declare const deleteUser: z.ZodObject<{ - userId: z.ZodString; -}, "strip", z.ZodTypeAny, { - userId?: string; -}, { - userId?: string; -}>; -export declare const deleteUserForm: z.ZodObject<{ - confirmText: z.ZodLiteral<"delete">; -}, "strip", z.ZodTypeAny, { - confirmText?: "delete"; -}, { - confirmText?: "delete"; -}>; -export declare const linkFirebaseAuth: z.ZodObject<{ - firebaseAuthToken: z.ZodString; -}, "strip", z.ZodTypeAny, { - firebaseAuthToken?: string; -}, { - firebaseAuthToken?: string; -}>; -export declare const createMongoDBUser: z.ZodObject<{ - email: z.ZodString; - name: z.ZodString; - password: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - name?: string; - password?: string; - email?: string; -}, { - name?: string; - password?: string; - email?: string; -}>; -export declare const login: z.ZodObject<{ - email: z.ZodString; - password: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - password?: string; - email?: string; -}, { - password?: string; - email?: string; -}>; -export declare const updatePassword: z.ZodObject<{ - email: z.ZodEffects; - password: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - password?: string; - email?: string; -}, { - password?: string; - email?: string; -}>; -export declare const userSettingsSchema: z.ZodObject<{ - name: z.ZodString; - email: z.ZodEffects; - username: z.ZodString; - profileImage: z.ZodOptional; - preferredWeather: z.ZodUnion<[z.ZodLiteral<"celsius">, z.ZodLiteral<"fahrenheit">]>; - preferredWeight: z.ZodUnion<[z.ZodLiteral<"lb">, z.ZodLiteral<"oz">, z.ZodLiteral<"kg">, z.ZodLiteral<"g">]>; -}, "strip", z.ZodTypeAny, { - name?: string; - email?: string; - username?: string; - profileImage?: string; - preferredWeather?: "celsius" | "fahrenheit"; - preferredWeight?: "lb" | "g" | "kg" | "oz"; -}, { - name?: string; - email?: string; - username?: string; - profileImage?: string; - preferredWeather?: "celsius" | "fahrenheit"; - preferredWeight?: "lb" | "g" | "kg" | "oz"; -}>; -export declare const passwordChangeSchema: z.ZodEffects; - newPassword: z.ZodEffects; - confirmPassword: z.ZodEffects; -}, "strip", z.ZodTypeAny, { - oldPassword?: string; - newPassword?: string; - confirmPassword?: string; -}, { - oldPassword?: string; - newPassword?: string; - confirmPassword?: string; -}>, { - oldPassword?: string; - newPassword?: string; - confirmPassword?: string; -}, { - oldPassword?: string; - newPassword?: string; - confirmPassword?: string; -}>; diff --git a/packages/validations/src/validations/userRoutesValidator.js b/packages/validations/src/validations/userRoutesValidator.js deleted file mode 100644 index 62336fd0e..000000000 --- a/packages/validations/src/validations/userRoutesValidator.js +++ /dev/null @@ -1,116 +0,0 @@ -import { z } from 'zod'; -const emailValidator = z - .string({ required_error: 'Email is required' }) - .email() - .transform((str) => str.trim().toLowerCase()); -const passwordValidator = z - .string({ required_error: 'Password is required' }) - .min(7) - .refine((str) => !str.includes('password'), { - message: `The password cannot contain the word 'password'`, -}); -export const userSignUp = z.object({ - name: z.string().min(1).nonempty(), - email: emailValidator, - password: passwordValidator, - username: z.string().nonempty(), -}); -export const userSignIn = z.object({ - email: emailValidator, - password: passwordValidator, -}); -export const sentEmail = z.object({ - email: emailValidator, -}); -export const resetPassword = z.object({ - resetToken: z.string().nonempty(), - password: passwordValidator, -}); -export const getFirebaseUserByEmail = z.object({ - email: emailValidator, -}); -export const checkCode = z.object({ - email: emailValidator, - code: z.string().nonempty(), -}); -export const emailExists = z.object({ - email: emailValidator, -}); -export const getUserById = z.object({ - userId: z.string().nonempty(), -}); -export const addToFavorite = z.object({ - packId: z.string(), - userId: z.string(), -}); -export const editUser = z.object({ - id: z.string(), - name: z.string().optional(), - password: passwordValidator.optional(), - email: z.string().optional(), - code: z.string().optional(), - role: z.enum(['user', 'admin']).optional(), - username: z.string().optional(), - offlineMaps: z - .record(z.string(), z.object({ - name: z.string(), - styleURL: z.string(), - metadata: z.object({ - shape: z.string(), - }), - bounds: z.array(z.array(z.number())), - minZoom: z.number(), - maxZoom: z.number(), - })) - .optional() - .nullable(), - profileImage: z.string().optional().nullable(), - preferredWeather: z.string().optional(), - preferredWeight: z.string().optional(), -}); -export const deleteUser = z.object({ - userId: z.string(), -}); -export const deleteUserForm = z.object({ - confirmText: z.literal('delete'), -}); -export const linkFirebaseAuth = z.object({ - firebaseAuthToken: z.string(), -}); -export const createMongoDBUser = z.object({ - email: z.string().email(), - name: z.string().min(1), - password: passwordValidator, -}); -export const login = z.object({ - email: z.string().email(), - password: passwordValidator, -}); -export const updatePassword = z.object({ - email: emailValidator, - password: passwordValidator, -}); -export const userSettingsSchema = z.object({ - name: z.string().min(1).nonempty(), - email: emailValidator, - username: z.string().nonempty(), - profileImage: z.string().optional(), - preferredWeather: z.union([z.literal('celsius'), z.literal('fahrenheit')]), - preferredWeight: z.union([ - z.literal('lb'), - z.literal('oz'), - z.literal('kg'), - z.literal('g'), - ]), -}); -export const passwordChangeSchema = z - .object({ - oldPassword: passwordValidator, - newPassword: passwordValidator, - confirmPassword: passwordValidator, -}) - .refine((data) => data.newPassword === data.confirmPassword, { - message: 'New password and confirmation must match', - path: ['confirmPassword'], // This will attach the error to `passwordConfirm` field -}); -//# sourceMappingURL=userRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/userRoutesValidator.js.map b/packages/validations/src/validations/userRoutesValidator.js.map deleted file mode 100644 index 1f4385a08..000000000 --- a/packages/validations/src/validations/userRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"userRoutesValidator.js","sourceRoot":"","sources":["userRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,CAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;KAC/C,KAAK,EAAE;KACP,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;AAEhD,MAAM,iBAAiB,GAAG,CAAC;KACxB,MAAM,CAAC,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAC;KAClD,GAAG,CAAC,CAAC,CAAC;KACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;IAC1C,OAAO,EAAE,iDAAiD;CAC3D,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,iBAAiB;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,iBAAiB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,cA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C,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,iBAAiB;IAC9B,eAAe,EAAE,iBAAiB;CACnC,CAAC;KACD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,eAAe,EAAE;IAC3D,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,CAAC,iBAAiB,CAAC,EAAE,wDAAwD;CACpF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/validations/src/validations/weatherRoutesValidator.d.ts b/packages/validations/src/validations/weatherRoutesValidator.d.ts deleted file mode 100644 index 47ac66b67..000000000 --- a/packages/validations/src/validations/weatherRoutesValidator.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { z } from 'zod'; -export declare const getWeatherWeek: z.ZodObject<{ - lat: z.ZodNumber; - lon: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - lat?: number; - lon?: number; -}, { - lat?: number; - lon?: number; -}>; -export declare const getWeather: z.ZodObject<{ - lat: z.ZodNumber; - lon: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - lat?: number; - lon?: number; -}, { - lat?: number; - lon?: number; -}>; diff --git a/packages/validations/src/validations/weatherRoutesValidator.js b/packages/validations/src/validations/weatherRoutesValidator.js deleted file mode 100644 index 975be056b..000000000 --- a/packages/validations/src/validations/weatherRoutesValidator.js +++ /dev/null @@ -1,10 +0,0 @@ -import { z } from 'zod'; -export const getWeatherWeek = z.object({ - lat: z.number(), - lon: z.number(), -}); -export const getWeather = z.object({ - lat: z.number(), - lon: z.number(), -}); -//# sourceMappingURL=weatherRoutesValidator.js.map \ No newline at end of file diff --git a/packages/validations/src/validations/weatherRoutesValidator.js.map b/packages/validations/src/validations/weatherRoutesValidator.js.map deleted file mode 100644 index b2fd13f39..000000000 --- a/packages/validations/src/validations/weatherRoutesValidator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"weatherRoutesValidator.js","sourceRoot":"","sources":["weatherRoutesValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"} \ No newline at end of file