@uniteverses/shared 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/politicians/community/residents/explore/constants.d.ts +5 -0
- package/dist/politicians/community/residents/explore/constants.js +11 -0
- package/dist/politicians/community/residents/explore/types.d.ts +24 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./politicians/community/residents/explore/types"), exports);
|
|
18
|
+
__exportStar(require("./politicians/community/residents/explore/constants"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.POSTS_PAGE_SIZE = void 0;
|
|
4
|
+
// Pagination
|
|
5
|
+
exports.POSTS_PAGE_SIZE = 20;
|
|
6
|
+
// Food group recursive query depth
|
|
7
|
+
exports.FOOD_GROUP_NESTING_DEPTH = 3;
|
|
8
|
+
// Comment reply nesting
|
|
9
|
+
exports.COMMENT_MAX_REPLY_DEPTH = 2;
|
|
10
|
+
exports.COMMENT_INDENT_PX = 16;
|
|
11
|
+
exports.COMMENT_MAX_INDENT_PX = 48;
|
|
@@ -181,6 +181,18 @@ export interface FoodGroupWithChildren {
|
|
|
181
181
|
foodItems: FoodGroupItem[];
|
|
182
182
|
childGroups: FoodGroupWithChildren[];
|
|
183
183
|
}
|
|
184
|
+
export interface Unit {
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
label: string;
|
|
188
|
+
createdAt: string | Date;
|
|
189
|
+
}
|
|
190
|
+
export interface Size {
|
|
191
|
+
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
label: string;
|
|
194
|
+
createdAt: string | Date;
|
|
195
|
+
}
|
|
184
196
|
export interface OrgFoodGroup {
|
|
185
197
|
id: string;
|
|
186
198
|
organizationId: string;
|
|
@@ -199,6 +211,17 @@ export interface OrgFoodItemType {
|
|
|
199
211
|
createdAt: string | Date;
|
|
200
212
|
foodItem: FoodItem;
|
|
201
213
|
}
|
|
214
|
+
export interface OrgFoodItemPrice {
|
|
215
|
+
id: string;
|
|
216
|
+
orgFoodItemId: string;
|
|
217
|
+
price: string;
|
|
218
|
+
unitId: string;
|
|
219
|
+
sizeId: string | null;
|
|
220
|
+
quantityPerUnit: number | null;
|
|
221
|
+
createdAt: string | Date;
|
|
222
|
+
unit: Unit;
|
|
223
|
+
size: Size | null;
|
|
224
|
+
}
|
|
202
225
|
export interface OrgFoodItem {
|
|
203
226
|
id: string;
|
|
204
227
|
organizationId: string;
|
|
@@ -208,6 +231,7 @@ export interface OrgFoodItem {
|
|
|
208
231
|
foodGroups: number;
|
|
209
232
|
};
|
|
210
233
|
foodItemTypes?: OrgFoodItemType[];
|
|
234
|
+
prices?: OrgFoodItemPrice[];
|
|
211
235
|
}
|
|
212
236
|
export interface OrgFoodGroupItem {
|
|
213
237
|
id: string;
|