Skip to content

Commit

Permalink
[gn] staple foods
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jan 8, 2025
1 parent 7dbb9d8 commit 0994c27
Show file tree
Hide file tree
Showing 14 changed files with 1,121 additions and 139 deletions.
25 changes: 25 additions & 0 deletions apps/gnocchi/verdant/src/client/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ export type FoodPurchaseCount = number;
export type FoodDefaultListId = string;
export type FoodPluralizeName = boolean;
export type FoodDoNotSuggest = boolean;
/** When a staple item is depleted, it is automatically added to the list */
export type FoodIsStaple = boolean;
export type FoodInit = {
canonicalName: string;
alternateNames?: FoodAlternateNamesInit;
Expand All @@ -467,6 +469,7 @@ export type FoodInit = {
defaultListId?: string | null;
pluralizeName?: boolean;
doNotSuggest?: boolean;
isStaple?: boolean;
};

export type FoodAlternateNamesInit = string[];
Expand All @@ -485,6 +488,7 @@ export type FoodDestructured = {
defaultListId: string | null;
pluralizeName: boolean;
doNotSuggest: boolean;
isStaple: boolean;
};

export type FoodAlternateNamesDestructured = string[];
Expand All @@ -503,6 +507,7 @@ export type FoodSnapshot = {
defaultListId: string | null;
pluralizeName: boolean;
doNotSuggest: boolean;
isStaple: boolean;
};

export type FoodAlternateNamesSnapshot = string[];
Expand Down Expand Up @@ -660,6 +665,23 @@ export interface FoodPurchaseCountRangeFilter {
lt?: number;
order?: "asc" | "desc";
}
export interface FoodIsStapleSortFilter {
where: "isStaple";
order: "asc" | "desc";
}
export interface FoodIsStapleMatchFilter {
where: "isStaple";
equals: boolean;
order?: "asc" | "desc";
}
export interface FoodIsStapleRangeFilter {
where: "isStaple";
gte?: boolean;
gt?: boolean;
lte?: boolean;
lt?: boolean;
order?: "asc" | "desc";
}
export interface FoodCategoryIdLastPurchasedAtCompoundFilter {
where: "categoryId_lastPurchasedAt";
match: {
Expand Down Expand Up @@ -705,6 +727,9 @@ export type FoodFilter =
| FoodPurchaseCountSortFilter
| FoodPurchaseCountMatchFilter
| FoodPurchaseCountRangeFilter
| FoodIsStapleSortFilter
| FoodIsStapleMatchFilter
| FoodIsStapleRangeFilter
| FoodCategoryIdLastPurchasedAtCompoundFilter
| FoodInInventoryCategoryIdLastPurchasedAtCompoundFilter;

Expand Down
7 changes: 6 additions & 1 deletion apps/gnocchi/verdant/src/client/react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ export interface GeneratedHooks<Presence, Profile> {
useSyncStatus: () => boolean;
useWatch<T extends AnyEntity<any, any, any> | null>(
entity: T,
options?: { deep?: boolean },
options?: {
/** Observes changes to all sub-objects */
deep?: boolean;
/** Disables performance enhancements that prevent re-renders if the changed keys aren't used in the component */
untracked?: boolean;
},
): EntityDestructured<T>;
useWatch<T extends EntityFile | null>(file: T): string | null;
useOnChange<T extends AnyEntity<any, any, any> | null>(
Expand Down
4 changes: 2 additions & 2 deletions apps/gnocchi/verdant/src/client/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./schemaVersions/v43.js";
export { default } from "./schemaVersions/v43.js";
export * from "./schemaVersions/v44.js";
export { default } from "./schemaVersions/v44.js";
2 changes: 1 addition & 1 deletion apps/gnocchi/verdant/src/client/schema.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import schema from './schemaVersions/v43.js';
import schema from './schemaVersions/v44.js';
const finalSchema = { wip: false, ...schema };
export default finalSchema;
47 changes: 45 additions & 2 deletions apps/gnocchi/verdant/src/client/schemaVersions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,50 @@
/**
* @generated - do not modify this file.
*/
import v1 from './v1.js';
import v2 from './v2.js';
import v3 from './v3.js';
import v4 from './v4.js';
import v5 from './v5.js';
import v6 from './v6.js';
import v7 from './v7.js';
import v8 from './v8.js';
import v9 from './v9.js';
import v10 from './v10.js';
import v11 from './v11.js';
import v12 from './v12.js';
import v13 from './v13.js';
import v14 from './v14.js';
import v15 from './v15.js';
import v16 from './v16.js';
import v17 from './v17.js';
import v18 from './v18.js';
import v19 from './v19.js';
import v20 from './v20.js';
import v21 from './v21.js';
import v22 from './v22.js';
import v23 from './v23.js';
import v24 from './v24.js';
import v25 from './v25.js';
import v26 from './v26.js';
import v27 from './v27.js';
import v28 from './v28.js';
import v29 from './v29.js';
import v30 from './v30.js';
import v31 from './v31.js';
import v32 from './v32.js';
import v33 from './v33.js';
import v34 from './v34.js';
import v35 from './v35.js';
import v36 from './v36.js';
import v37 from './v37.js';
import v38 from './v38.js';
import v39 from './v39.js';
import v40 from './v40.js';
import v41 from './v41.js';
import v42 from './v42.js';
import v43 from './v43.js';
import v44 from './v44.js';


export default []
export default [v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44]

Loading

0 comments on commit 0994c27

Please sign in to comment.