diff --git a/apps/trip-tick/verdant/src/client/client.d.ts b/apps/trip-tick/verdant/src/client/client.d.ts index 1c556dec..f286b6cc 100644 --- a/apps/trip-tick/verdant/src/client/client.d.ts +++ b/apps/trip-tick/verdant/src/client/client.d.ts @@ -88,13 +88,6 @@ export type ListItemsItemQuantity = number; export type ListItemsItemPerDays = number; export type ListItemsItemAdditional = number; export type ListItemsItemRoundDown = boolean; -export type ListItemsItemCondition = ObjectEntity< - ListItemsItemConditionInit, - ListItemsItemConditionDestructured, - ListItemsItemConditionSnapshot -> | null; -export type ListItemsItemConditionType = string; -export type ListItemsItemConditionValue = any; export type ListInit = { id?: string; createdAt?: number; @@ -102,10 +95,6 @@ export type ListInit = { items?: ListItemsInit; }; -export type ListItemsItemConditionInit = { - type: string; - value?: any | null; -} | null; export type ListItemsItemInit = { id?: string; description?: string; @@ -113,7 +102,6 @@ export type ListItemsItemInit = { perDays?: number; additional?: number; roundDown?: boolean; - condition?: ListItemsItemConditionInit; }; export type ListItemsInit = ListItemsItemInit[]; export type ListDestructured = { @@ -123,10 +111,6 @@ export type ListDestructured = { items: ListItems; }; -export type ListItemsItemConditionDestructured = { - type: string; - value: any | null; -}; export type ListItemsItemDestructured = { id: string; description: string; @@ -134,7 +118,6 @@ export type ListItemsItemDestructured = { perDays: number; additional: number; roundDown: boolean; - condition: ListItemsItemCondition; }; export type ListItemsDestructured = ListItemsItem[]; export type ListSnapshot = { @@ -144,10 +127,6 @@ export type ListSnapshot = { items: ListItemsSnapshot; }; -export type ListItemsItemConditionSnapshot = { - type: string; - value: any | null; -} | null; export type ListItemsItemSnapshot = { id: string; description: string; @@ -155,7 +134,6 @@ export type ListItemsItemSnapshot = { perDays: number; additional: number; roundDown: boolean; - condition: ListItemsItemConditionSnapshot; }; export type ListItemsSnapshot = ListItemsItemSnapshot[]; diff --git a/apps/trip-tick/verdant/src/client/schema.js b/apps/trip-tick/verdant/src/client/schema.js index 9d36c80f..def6a239 100644 --- a/apps/trip-tick/verdant/src/client/schema.js +++ b/apps/trip-tick/verdant/src/client/schema.js @@ -1,3 +1,3 @@ import schema from './schemaVersions/v3.js'; - const finalSchema = { wip: true, ...schema }; + const finalSchema = { wip: false, ...schema }; export default finalSchema; \ No newline at end of file diff --git a/apps/trip-tick/verdant/src/client/schemaVersions/v3.d.ts b/apps/trip-tick/verdant/src/client/schemaVersions/v3.d.ts index 5a0f7b5d..cf906483 100644 --- a/apps/trip-tick/verdant/src/client/schemaVersions/v3.d.ts +++ b/apps/trip-tick/verdant/src/client/schemaVersions/v3.d.ts @@ -9,10 +9,6 @@ export type ListSnapshot = { items: ListItemsSnapshot; }; -export type ListItemsItemConditionSnapshot = { - type: string; - value: any | null; -} | null; export type ListItemsItemSnapshot = { id: string; description: string; @@ -20,7 +16,6 @@ export type ListItemsItemSnapshot = { perDays: number; additional: number; roundDown: boolean; - condition: ListItemsItemConditionSnapshot; }; export type ListItemsSnapshot = ListItemsItemSnapshot[]; export type ListInit = { @@ -30,10 +25,6 @@ export type ListInit = { items?: ListItemsInit; }; -export type ListItemsItemConditionInit = { - type: string; - value?: any | null; -} | null; export type ListItemsItemInit = { id?: string; description?: string; @@ -41,7 +32,6 @@ export type ListItemsItemInit = { perDays?: number; additional?: number; roundDown?: boolean; - condition?: ListItemsItemConditionInit; }; export type ListItemsInit = ListItemsItemInit[]; diff --git a/apps/trip-tick/verdant/src/client/schemaVersions/v3.js b/apps/trip-tick/verdant/src/client/schemaVersions/v3.js index 1b2f8873..df1bc455 100644 --- a/apps/trip-tick/verdant/src/client/schemaVersions/v3.js +++ b/apps/trip-tick/verdant/src/client/schemaVersions/v3.js @@ -36,13 +36,6 @@ var lists = schema.collection({ }), roundDown: schema.fields.boolean({ default: false - }), - condition: schema.fields.object({ - nullable: true, - properties: { - type: schema.fields.string(), - value: schema.fields.any() - } }) } }) diff --git a/apps/trip-tick/verdant/src/schema.ts b/apps/trip-tick/verdant/src/schema.ts index b6821a6b..4f804f1e 100644 --- a/apps/trip-tick/verdant/src/schema.ts +++ b/apps/trip-tick/verdant/src/schema.ts @@ -35,13 +35,6 @@ const lists = schema.collection({ roundDown: schema.fields.boolean({ default: false, }), - condition: schema.fields.object({ - nullable: true, - properties: { - type: schema.fields.string(), - value: schema.fields.any(), - }, - }), }, }), }),