@ankhorage/templates 1.5.0 → 1.7.0
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/CHANGELOG.md +12 -0
- package/dist/internal/zora-nodes.d.ts +19 -1
- package/dist/internal/zora-nodes.d.ts.map +1 -1
- package/dist/internal/zora-nodes.js.map +1 -1
- package/dist/templates/starter/categories/food-drink/data.nutrition-catalog-scan.d.ts +294 -0
- package/dist/templates/starter/categories/food-drink/data.nutrition-catalog-scan.d.ts.map +1 -0
- package/dist/templates/starter/categories/food-drink/data.nutrition-catalog-scan.js +211 -0
- package/dist/templates/starter/categories/food-drink/data.nutrition-catalog-scan.js.map +1 -0
- package/dist/templates/starter/categories/food-drink/nutrition-catalog-scan.template.d.ts.map +1 -1
- package/dist/templates/starter/categories/food-drink/nutrition-catalog-scan.template.js +4 -2
- package/dist/templates/starter/categories/food-drink/nutrition-catalog-scan.template.js.map +1 -1
- package/dist/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.d.ts.map +1 -1
- package/dist/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.js +6 -33
- package/dist/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.js.map +1 -1
- package/dist/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.d.ts.map +1 -1
- package/dist/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.js +82 -91
- package/dist/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ankhorage/templates
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 368456f: Make the nutrition scanner starter useful with Products, Scan, Stats, and Profile tabs plus direct ZORA scanner and product grid nodes.
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 870ebf3: Add generated domain data API declarations to the nutrition catalog scan starter.
|
|
14
|
+
|
|
3
15
|
## 1.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiNode } from '@ankhorage/contracts';
|
|
2
|
-
import type { ButtonProps, CardProps, InputProps } from '@ankhorage/zora';
|
|
2
|
+
import type { ButtonProps, CardProps, GridProps, InputProps } from '@ankhorage/zora';
|
|
3
3
|
import type { EmptyStateProps, NoticeProps, OAuthProviderListProps, PanelProps } from '@ankhorage/zora';
|
|
4
4
|
import type { ScreenProps, ScreenSectionProps } from '@ankhorage/zora';
|
|
5
5
|
import type { SectionHeaderProps, SettingsRowProps } from '@ankhorage/zora';
|
|
@@ -54,6 +54,22 @@ type SerializableEmptyStateProps = Omit<EmptyStateProps, 'description' | 'eyebro
|
|
|
54
54
|
eyebrow?: string;
|
|
55
55
|
footer?: string;
|
|
56
56
|
};
|
|
57
|
+
type SerializableGridProps = SerializableProps<Omit<GridProps, 'children'>>;
|
|
58
|
+
type SerializableBarcodeScannerViewProps = SerializableProps<{
|
|
59
|
+
permissionStatus: 'unknown' | 'requesting' | 'granted' | 'denied';
|
|
60
|
+
title?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
overlayTitle?: string;
|
|
63
|
+
overlayDescription?: string;
|
|
64
|
+
cornerLabel?: string;
|
|
65
|
+
requestPermissionLabel?: string;
|
|
66
|
+
deniedPermissionLabel?: string;
|
|
67
|
+
manualEntryLabel?: string;
|
|
68
|
+
onBarcodeScanned?: string;
|
|
69
|
+
onManualEntry?: string;
|
|
70
|
+
onRequestPermission?: string;
|
|
71
|
+
testID?: string;
|
|
72
|
+
}>;
|
|
57
73
|
interface SerializableOAuthProviderIconSpec {
|
|
58
74
|
name: string;
|
|
59
75
|
provider?: string;
|
|
@@ -86,11 +102,13 @@ type SerializableChessBoardProps = SerializableProps<{
|
|
|
86
102
|
testID?: string;
|
|
87
103
|
}>;
|
|
88
104
|
export interface ZoraNodePropsByType {
|
|
105
|
+
BarcodeScannerView: SerializableBarcodeScannerViewProps;
|
|
89
106
|
Button: SerializableButtonProps;
|
|
90
107
|
Card: SerializableCardProps;
|
|
91
108
|
ChessBoard: SerializableChessBoardProps;
|
|
92
109
|
EmptyState: SerializableEmptyStateProps;
|
|
93
110
|
FormField: SerializableFormFieldProps;
|
|
111
|
+
Grid: SerializableGridProps;
|
|
94
112
|
Input: SerializableInputProps;
|
|
95
113
|
Notice: SerializableNoticeProps;
|
|
96
114
|
OAuthProviderList: SerializableOAuthProviderListProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zora-nodes.d.ts","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"zora-nodes.d.ts","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,sBAAsB,EACtB,UAAU,EACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvE,KAAK,uBAAuB,G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QAAQ,EAAE,CAAC;CACvB,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,SAAS,YAAY,EACvD,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,KAAK,EACX,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAClC,QAAQ,CAAC,EAAE,QAAQ,EAAE,GACpB,QAAQ,CAAC,KAAK,CAAC,CAOjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zora-nodes.js","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zora-nodes.js","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAmLA,MAAM,UAAU,cAAc,CAC5B,EAAU,EACV,IAAW,EACX,KAAkC,EAClC,QAAqB;IAErB,OAAO;QACL,EAAE;QACF,IAAI;QACJ,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3B,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
export declare const nutritionCatalogScanData: {
|
|
2
|
+
apis: {
|
|
3
|
+
nutritionProducts: {
|
|
4
|
+
id: string;
|
|
5
|
+
kind: "generated";
|
|
6
|
+
preset: "crud";
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
basePath: string;
|
|
10
|
+
auth: {
|
|
11
|
+
readonly required: true;
|
|
12
|
+
};
|
|
13
|
+
resource: {
|
|
14
|
+
kind: "collection";
|
|
15
|
+
collection: {
|
|
16
|
+
name: string;
|
|
17
|
+
schema: string;
|
|
18
|
+
primaryKey: string;
|
|
19
|
+
fields: ({
|
|
20
|
+
name: string;
|
|
21
|
+
type: "uuid";
|
|
22
|
+
required: true;
|
|
23
|
+
unique?: never;
|
|
24
|
+
defaultValue?: never;
|
|
25
|
+
} | {
|
|
26
|
+
name: string;
|
|
27
|
+
type: "text";
|
|
28
|
+
required: true;
|
|
29
|
+
unique: true;
|
|
30
|
+
defaultValue?: never;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
type: "text";
|
|
34
|
+
required: true;
|
|
35
|
+
unique?: never;
|
|
36
|
+
defaultValue?: never;
|
|
37
|
+
} | {
|
|
38
|
+
name: string;
|
|
39
|
+
type: "text";
|
|
40
|
+
required?: never;
|
|
41
|
+
unique?: never;
|
|
42
|
+
defaultValue?: never;
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
type: "text";
|
|
46
|
+
required: true;
|
|
47
|
+
defaultValue: string;
|
|
48
|
+
unique?: never;
|
|
49
|
+
} | {
|
|
50
|
+
name: string;
|
|
51
|
+
type: "json";
|
|
52
|
+
required?: never;
|
|
53
|
+
unique?: never;
|
|
54
|
+
defaultValue?: never;
|
|
55
|
+
} | {
|
|
56
|
+
name: string;
|
|
57
|
+
type: "number";
|
|
58
|
+
defaultValue: number;
|
|
59
|
+
required?: never;
|
|
60
|
+
unique?: never;
|
|
61
|
+
} | {
|
|
62
|
+
name: string;
|
|
63
|
+
type: "datetime";
|
|
64
|
+
required: true;
|
|
65
|
+
unique?: never;
|
|
66
|
+
defaultValue?: never;
|
|
67
|
+
})[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
endpoints: ({
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
method: "GET";
|
|
74
|
+
path: string;
|
|
75
|
+
intent: "list";
|
|
76
|
+
auth: {
|
|
77
|
+
readonly required: true;
|
|
78
|
+
};
|
|
79
|
+
} | {
|
|
80
|
+
id: string;
|
|
81
|
+
label: string;
|
|
82
|
+
method: "GET";
|
|
83
|
+
path: string;
|
|
84
|
+
intent: "read";
|
|
85
|
+
auth: {
|
|
86
|
+
readonly required: true;
|
|
87
|
+
};
|
|
88
|
+
})[];
|
|
89
|
+
};
|
|
90
|
+
nutritionProductCaptures: {
|
|
91
|
+
id: string;
|
|
92
|
+
kind: "generated";
|
|
93
|
+
preset: "crud";
|
|
94
|
+
label: string;
|
|
95
|
+
description: string;
|
|
96
|
+
basePath: string;
|
|
97
|
+
auth: {
|
|
98
|
+
readonly required: true;
|
|
99
|
+
};
|
|
100
|
+
resource: {
|
|
101
|
+
kind: "collection";
|
|
102
|
+
collection: {
|
|
103
|
+
name: string;
|
|
104
|
+
schema: string;
|
|
105
|
+
primaryKey: string;
|
|
106
|
+
fields: ({
|
|
107
|
+
name: string;
|
|
108
|
+
type: "uuid";
|
|
109
|
+
required: true;
|
|
110
|
+
defaultValue?: never;
|
|
111
|
+
} | {
|
|
112
|
+
name: string;
|
|
113
|
+
type: "text";
|
|
114
|
+
required: true;
|
|
115
|
+
defaultValue?: never;
|
|
116
|
+
} | {
|
|
117
|
+
name: string;
|
|
118
|
+
type: "text";
|
|
119
|
+
required?: never;
|
|
120
|
+
defaultValue?: never;
|
|
121
|
+
} | {
|
|
122
|
+
name: string;
|
|
123
|
+
type: "text";
|
|
124
|
+
required: true;
|
|
125
|
+
defaultValue: string;
|
|
126
|
+
} | {
|
|
127
|
+
name: string;
|
|
128
|
+
type: "json";
|
|
129
|
+
required?: never;
|
|
130
|
+
defaultValue?: never;
|
|
131
|
+
} | {
|
|
132
|
+
name: string;
|
|
133
|
+
type: "datetime";
|
|
134
|
+
required: true;
|
|
135
|
+
defaultValue?: never;
|
|
136
|
+
})[];
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
endpoints: ({
|
|
140
|
+
id: string;
|
|
141
|
+
label: string;
|
|
142
|
+
method: "GET";
|
|
143
|
+
path: string;
|
|
144
|
+
intent: "list";
|
|
145
|
+
auth: {
|
|
146
|
+
readonly required: true;
|
|
147
|
+
};
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
label: string;
|
|
151
|
+
method: "POST";
|
|
152
|
+
path: string;
|
|
153
|
+
intent: "create";
|
|
154
|
+
auth: {
|
|
155
|
+
readonly required: true;
|
|
156
|
+
};
|
|
157
|
+
})[];
|
|
158
|
+
};
|
|
159
|
+
nutritionScanChallenges: {
|
|
160
|
+
id: string;
|
|
161
|
+
kind: "generated";
|
|
162
|
+
preset: "crud";
|
|
163
|
+
label: string;
|
|
164
|
+
description: string;
|
|
165
|
+
basePath: string;
|
|
166
|
+
auth: {
|
|
167
|
+
readonly required: true;
|
|
168
|
+
};
|
|
169
|
+
resource: {
|
|
170
|
+
kind: "collection";
|
|
171
|
+
collection: {
|
|
172
|
+
name: string;
|
|
173
|
+
schema: string;
|
|
174
|
+
primaryKey: string;
|
|
175
|
+
fields: ({
|
|
176
|
+
name: string;
|
|
177
|
+
type: "uuid";
|
|
178
|
+
required: true;
|
|
179
|
+
defaultValue?: never;
|
|
180
|
+
} | {
|
|
181
|
+
name: string;
|
|
182
|
+
type: "text";
|
|
183
|
+
required: true;
|
|
184
|
+
defaultValue?: never;
|
|
185
|
+
} | {
|
|
186
|
+
name: string;
|
|
187
|
+
type: "text";
|
|
188
|
+
required?: never;
|
|
189
|
+
defaultValue?: never;
|
|
190
|
+
} | {
|
|
191
|
+
name: string;
|
|
192
|
+
type: "datetime";
|
|
193
|
+
required: true;
|
|
194
|
+
defaultValue?: never;
|
|
195
|
+
} | {
|
|
196
|
+
name: string;
|
|
197
|
+
type: "boolean";
|
|
198
|
+
required: true;
|
|
199
|
+
defaultValue: true;
|
|
200
|
+
} | {
|
|
201
|
+
name: string;
|
|
202
|
+
type: "json";
|
|
203
|
+
required?: never;
|
|
204
|
+
defaultValue?: never;
|
|
205
|
+
})[];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
endpoints: ({
|
|
209
|
+
id: string;
|
|
210
|
+
label: string;
|
|
211
|
+
method: "GET";
|
|
212
|
+
path: string;
|
|
213
|
+
intent: "list";
|
|
214
|
+
auth: {
|
|
215
|
+
readonly required: true;
|
|
216
|
+
};
|
|
217
|
+
} | {
|
|
218
|
+
id: string;
|
|
219
|
+
label: string;
|
|
220
|
+
method: "GET";
|
|
221
|
+
path: string;
|
|
222
|
+
intent: "read";
|
|
223
|
+
auth: {
|
|
224
|
+
readonly required: true;
|
|
225
|
+
};
|
|
226
|
+
})[];
|
|
227
|
+
};
|
|
228
|
+
nutritionScanEvents: {
|
|
229
|
+
id: string;
|
|
230
|
+
kind: "generated";
|
|
231
|
+
preset: "crud";
|
|
232
|
+
label: string;
|
|
233
|
+
description: string;
|
|
234
|
+
basePath: string;
|
|
235
|
+
auth: {
|
|
236
|
+
readonly required: true;
|
|
237
|
+
};
|
|
238
|
+
resource: {
|
|
239
|
+
kind: "collection";
|
|
240
|
+
collection: {
|
|
241
|
+
name: string;
|
|
242
|
+
schema: string;
|
|
243
|
+
primaryKey: string;
|
|
244
|
+
fields: ({
|
|
245
|
+
name: string;
|
|
246
|
+
type: "uuid";
|
|
247
|
+
required: true;
|
|
248
|
+
defaultValue?: never;
|
|
249
|
+
} | {
|
|
250
|
+
name: string;
|
|
251
|
+
type: "text";
|
|
252
|
+
required: true;
|
|
253
|
+
defaultValue?: never;
|
|
254
|
+
} | {
|
|
255
|
+
name: string;
|
|
256
|
+
type: "uuid";
|
|
257
|
+
required?: never;
|
|
258
|
+
defaultValue?: never;
|
|
259
|
+
} | {
|
|
260
|
+
name: string;
|
|
261
|
+
type: "number";
|
|
262
|
+
required: true;
|
|
263
|
+
defaultValue: number;
|
|
264
|
+
} | {
|
|
265
|
+
name: string;
|
|
266
|
+
type: "datetime";
|
|
267
|
+
required: true;
|
|
268
|
+
defaultValue?: never;
|
|
269
|
+
})[];
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
endpoints: ({
|
|
273
|
+
id: string;
|
|
274
|
+
label: string;
|
|
275
|
+
method: "GET";
|
|
276
|
+
path: string;
|
|
277
|
+
intent: "list";
|
|
278
|
+
auth: {
|
|
279
|
+
readonly required: true;
|
|
280
|
+
};
|
|
281
|
+
} | {
|
|
282
|
+
id: string;
|
|
283
|
+
label: string;
|
|
284
|
+
method: "POST";
|
|
285
|
+
path: string;
|
|
286
|
+
intent: "create";
|
|
287
|
+
auth: {
|
|
288
|
+
readonly required: true;
|
|
289
|
+
};
|
|
290
|
+
})[];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
//# sourceMappingURL=data.nutrition-catalog-scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.nutrition-catalog-scan.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/data.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgNN,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
const authRequired = { required: true };
|
|
2
|
+
export const nutritionCatalogScanData = {
|
|
3
|
+
apis: {
|
|
4
|
+
nutritionProducts: {
|
|
5
|
+
id: 'nutritionProducts',
|
|
6
|
+
kind: 'generated',
|
|
7
|
+
preset: 'crud',
|
|
8
|
+
label: 'Nutrition products',
|
|
9
|
+
description: 'Published product catalog entries available to signed-in challenge scanners.',
|
|
10
|
+
basePath: '/v1/nutrition/products',
|
|
11
|
+
auth: authRequired,
|
|
12
|
+
resource: {
|
|
13
|
+
kind: 'collection',
|
|
14
|
+
collection: {
|
|
15
|
+
name: 'nutrition_products',
|
|
16
|
+
schema: 'public',
|
|
17
|
+
primaryKey: 'id',
|
|
18
|
+
fields: [
|
|
19
|
+
{ name: 'id', type: 'uuid', required: true },
|
|
20
|
+
{ name: 'barcode', type: 'text', required: true, unique: true },
|
|
21
|
+
{ name: 'name', type: 'text', required: true },
|
|
22
|
+
{ name: 'brand', type: 'text' },
|
|
23
|
+
{ name: 'quantity', type: 'text' },
|
|
24
|
+
{ name: 'country', type: 'text', required: true, defaultValue: 'CH' },
|
|
25
|
+
{ name: 'nutritionFacts', type: 'json' },
|
|
26
|
+
{ name: 'confidence', type: 'number', defaultValue: 0 },
|
|
27
|
+
{ name: 'createdAt', type: 'datetime', required: true },
|
|
28
|
+
{ name: 'updatedAt', type: 'datetime', required: true },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
endpoints: [
|
|
33
|
+
{
|
|
34
|
+
id: 'listNutritionProducts',
|
|
35
|
+
label: 'List products',
|
|
36
|
+
method: 'GET',
|
|
37
|
+
path: '/',
|
|
38
|
+
intent: 'list',
|
|
39
|
+
auth: authRequired,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'getNutritionProductById',
|
|
43
|
+
label: 'Get product',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
path: '/:id',
|
|
46
|
+
intent: 'read',
|
|
47
|
+
auth: authRequired,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: 'getNutritionProductByBarcode',
|
|
51
|
+
label: 'Get product by barcode',
|
|
52
|
+
method: 'GET',
|
|
53
|
+
path: '/by-barcode/:barcode',
|
|
54
|
+
intent: 'read',
|
|
55
|
+
auth: authRequired,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
nutritionProductCaptures: {
|
|
60
|
+
id: 'nutritionProductCaptures',
|
|
61
|
+
kind: 'generated',
|
|
62
|
+
preset: 'crud',
|
|
63
|
+
label: 'Nutrition product captures',
|
|
64
|
+
description: 'Queued missing-product submissions created by signed-in scanners.',
|
|
65
|
+
basePath: '/v1/nutrition/products/captures',
|
|
66
|
+
auth: authRequired,
|
|
67
|
+
resource: {
|
|
68
|
+
kind: 'collection',
|
|
69
|
+
collection: {
|
|
70
|
+
name: 'nutrition_product_captures',
|
|
71
|
+
schema: 'public',
|
|
72
|
+
primaryKey: 'id',
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: 'id', type: 'uuid', required: true },
|
|
75
|
+
{ name: 'userId', type: 'uuid', required: true },
|
|
76
|
+
{ name: 'barcode', type: 'text', required: true },
|
|
77
|
+
{ name: 'productName', type: 'text', required: true },
|
|
78
|
+
{ name: 'brand', type: 'text' },
|
|
79
|
+
{ name: 'quantity', type: 'text' },
|
|
80
|
+
{ name: 'storeChain', type: 'text' },
|
|
81
|
+
{ name: 'country', type: 'text', required: true, defaultValue: 'CH' },
|
|
82
|
+
{ name: 'status', type: 'text', required: true, defaultValue: 'queued' },
|
|
83
|
+
{ name: 'photoRefs', type: 'json' },
|
|
84
|
+
{ name: 'clientCapturedAt', type: 'datetime', required: true },
|
|
85
|
+
{ name: 'createdAt', type: 'datetime', required: true },
|
|
86
|
+
{ name: 'updatedAt', type: 'datetime', required: true },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
endpoints: [
|
|
91
|
+
{
|
|
92
|
+
id: 'listNutritionProductCaptures',
|
|
93
|
+
label: 'List captures',
|
|
94
|
+
method: 'GET',
|
|
95
|
+
path: '/',
|
|
96
|
+
intent: 'list',
|
|
97
|
+
auth: authRequired,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'createNutritionProductCapture',
|
|
101
|
+
label: 'Create capture',
|
|
102
|
+
method: 'POST',
|
|
103
|
+
path: '/',
|
|
104
|
+
intent: 'create',
|
|
105
|
+
auth: authRequired,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
nutritionScanChallenges: {
|
|
110
|
+
id: 'nutritionScanChallenges',
|
|
111
|
+
kind: 'generated',
|
|
112
|
+
preset: 'crud',
|
|
113
|
+
label: 'Nutrition scan challenges',
|
|
114
|
+
description: 'Friends-only challenge windows, scoring rules, and leaderboard context.',
|
|
115
|
+
basePath: '/v1/nutrition/challenges',
|
|
116
|
+
auth: authRequired,
|
|
117
|
+
resource: {
|
|
118
|
+
kind: 'collection',
|
|
119
|
+
collection: {
|
|
120
|
+
name: 'nutrition_scan_challenges',
|
|
121
|
+
schema: 'public',
|
|
122
|
+
primaryKey: 'id',
|
|
123
|
+
fields: [
|
|
124
|
+
{ name: 'id', type: 'uuid', required: true },
|
|
125
|
+
{ name: 'title', type: 'text', required: true },
|
|
126
|
+
{ name: 'description', type: 'text' },
|
|
127
|
+
{ name: 'startsAt', type: 'datetime', required: true },
|
|
128
|
+
{ name: 'endsAt', type: 'datetime', required: true },
|
|
129
|
+
{ name: 'isActive', type: 'boolean', required: true, defaultValue: true },
|
|
130
|
+
{ name: 'scoringRules', type: 'json' },
|
|
131
|
+
{ name: 'createdAt', type: 'datetime', required: true },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
endpoints: [
|
|
136
|
+
{
|
|
137
|
+
id: 'listNutritionScanChallenges',
|
|
138
|
+
label: 'List challenges',
|
|
139
|
+
method: 'GET',
|
|
140
|
+
path: '/',
|
|
141
|
+
intent: 'list',
|
|
142
|
+
auth: authRequired,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'getCurrentNutritionScanChallenge',
|
|
146
|
+
label: 'Get current challenge',
|
|
147
|
+
method: 'GET',
|
|
148
|
+
path: '/current',
|
|
149
|
+
intent: 'read',
|
|
150
|
+
auth: authRequired,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: 'getCurrentNutritionScanLeaderboard',
|
|
154
|
+
label: 'Get current leaderboard',
|
|
155
|
+
method: 'GET',
|
|
156
|
+
path: '/current/leaderboard',
|
|
157
|
+
intent: 'read',
|
|
158
|
+
auth: authRequired,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
nutritionScanEvents: {
|
|
163
|
+
id: 'nutritionScanEvents',
|
|
164
|
+
kind: 'generated',
|
|
165
|
+
preset: 'crud',
|
|
166
|
+
label: 'Nutrition scan events',
|
|
167
|
+
description: 'Signed-in scanner actions used for points, duplicate rules, and rankings.',
|
|
168
|
+
basePath: '/v1/nutrition/scan-events',
|
|
169
|
+
auth: authRequired,
|
|
170
|
+
resource: {
|
|
171
|
+
kind: 'collection',
|
|
172
|
+
collection: {
|
|
173
|
+
name: 'nutrition_scan_events',
|
|
174
|
+
schema: 'public',
|
|
175
|
+
primaryKey: 'id',
|
|
176
|
+
fields: [
|
|
177
|
+
{ name: 'id', type: 'uuid', required: true },
|
|
178
|
+
{ name: 'challengeId', type: 'uuid', required: true },
|
|
179
|
+
{ name: 'userId', type: 'uuid', required: true },
|
|
180
|
+
{ name: 'barcode', type: 'text', required: true },
|
|
181
|
+
{ name: 'productId', type: 'uuid' },
|
|
182
|
+
{ name: 'captureId', type: 'uuid' },
|
|
183
|
+
{ name: 'eventType', type: 'text', required: true },
|
|
184
|
+
{ name: 'points', type: 'number', required: true, defaultValue: 0 },
|
|
185
|
+
{ name: 'clientCapturedAt', type: 'datetime', required: true },
|
|
186
|
+
{ name: 'createdAt', type: 'datetime', required: true },
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
endpoints: [
|
|
191
|
+
{
|
|
192
|
+
id: 'listNutritionScanEvents',
|
|
193
|
+
label: 'List scan events',
|
|
194
|
+
method: 'GET',
|
|
195
|
+
path: '/',
|
|
196
|
+
intent: 'list',
|
|
197
|
+
auth: authRequired,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: 'createNutritionScanEvent',
|
|
201
|
+
label: 'Create scan event',
|
|
202
|
+
method: 'POST',
|
|
203
|
+
path: '/',
|
|
204
|
+
intent: 'create',
|
|
205
|
+
auth: authRequired,
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
//# sourceMappingURL=data.nutrition-catalog-scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.nutrition-catalog-scan.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/data.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAW,CAAC;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE;QACJ,iBAAiB,EAAE;YACjB,EAAE,EAAE,mBAAmB;YACvB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,8EAA8E;YAC3F,QAAQ,EAAE,wBAAwB;YAClC,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE;gBACR,IAAI,EAAE,YAAY;gBAClB,UAAU,EAAE;oBACV,IAAI,EAAE,oBAAoB;oBAC1B,MAAM,EAAE,QAAQ;oBAChB,UAAU,EAAE,IAAI;oBAChB,MAAM,EAAE;wBACN,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;wBAC5C,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;wBAC/D,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;wBAC9C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE;wBAClC,EAAE,IAAI,EAAE,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AM,EAAE,QAAQ,EAAE,IAAI,EAAE;wBAChD,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;wBACjD,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE;wBACnC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE;wBACnC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;wBACnD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE;wBACnE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;wBAC9D,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;qBACxD;iBACF;aACF;YACD,SAAS,EAAE;gBACT;oBACE,EAAE,EAAE,yBAAyB;oBAC7B,KAAK,EAAE,kBAAkB;oBACzB,MAAM,EAAE,KAAK;oBACb,IAAI,EAAE,GAAG;oBACT,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE,YAAY;iBACnB;gBACD;oBACE,EAAE,EAAE,0BAA0B;oBAC9B,KAAK,EAAE,mBAAmB;oBAC1B,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE,GAAG;oBACT,MAAM,EAAE,QAAQ;oBAChB,IAAI,EAAE,YAAY;iBACnB;aACF;SACF;KACF;CAC4B,CAAC"}
|
package/dist/templates/starter/categories/food-drink/nutrition-catalog-scan.template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition-catalog-scan.template.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/nutrition-catalog-scan.template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"nutrition-catalog-scan.template.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/nutrition-catalog-scan.template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,YAAY,GAAG,WAAW,CA0DzF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_TEMPLATE_VERSION } from '../../../../internal/defaults';
|
|
2
2
|
import { createManifestShell, createTheme } from '../../../shared';
|
|
3
|
+
import { nutritionCatalogScanData } from './data.nutrition-catalog-scan';
|
|
3
4
|
import { createNutritionCatalogScanNavigator, createNutritionCatalogScanScreenIds, } from './routes.nutrition-catalog-scan';
|
|
4
5
|
import { createNutritionCatalogScanScreens } from './screens.nutrition-catalog-scan';
|
|
5
6
|
export function createNutritionCatalogScanStarterTemplate(seed) {
|
|
@@ -15,6 +16,7 @@ export function createNutritionCatalogScanStarterTemplate(seed) {
|
|
|
15
16
|
});
|
|
16
17
|
return {
|
|
17
18
|
...manifest,
|
|
19
|
+
data: nutritionCatalogScanData,
|
|
18
20
|
infra: {
|
|
19
21
|
...manifest.infra,
|
|
20
22
|
auth: {
|
|
@@ -28,7 +30,7 @@ export function createNutritionCatalogScanStarterTemplate(seed) {
|
|
|
28
30
|
signInRoute: 'sign-in',
|
|
29
31
|
signUpRoute: 'sign-up',
|
|
30
32
|
signOutRoute: 'sign-out',
|
|
31
|
-
postSignInRoute: '
|
|
33
|
+
postSignInRoute: 'index',
|
|
32
34
|
unauthorizedRoute: 'sign-in',
|
|
33
35
|
},
|
|
34
36
|
signIn: {
|
|
@@ -53,7 +55,7 @@ export function createNutritionCatalogScanStarterTemplate(seed) {
|
|
|
53
55
|
signInRoute: 'sign-in',
|
|
54
56
|
signUpRoute: 'sign-up',
|
|
55
57
|
signOutRoute: 'sign-out',
|
|
56
|
-
postSignInRoute: '
|
|
58
|
+
postSignInRoute: 'index',
|
|
57
59
|
unauthorizedRoute: 'sign-in',
|
|
58
60
|
},
|
|
59
61
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition-catalog-scan.template.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/nutrition-catalog-scan.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EACL,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,MAAM,UAAU,yCAAyC,CAAC,IAAkB;IAC1E,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,QAAQ,yBAAyB,CAAC;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,mBAAmB,CAAC;QACnC,IAAI;QACJ,KAAK;QACL,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,wBAAwB;QACjD,SAAS,EAAE,mCAAmC,CAAC,SAAS,CAAC;QACzD,OAAO,EAAE,iCAAiC,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC;KACtE,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,QAAQ;QACX,KAAK,EAAE;YACL,GAAG,QAAQ,CAAC,KAAK;YACjB,IAAI,EAAE;gBACJ,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,UAAU;gBACpB,aAAa,EAAE;oBACb,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,QAAQ;iBACjB;gBACD,IAAI,EAAE;oBACJ,WAAW,EAAE,SAAS;oBACtB,WAAW,EAAE,SAAS;oBACtB,YAAY,EAAE,UAAU;oBACxB,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"nutrition-catalog-scan.template.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/nutrition-catalog-scan.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,MAAM,UAAU,yCAAyC,CAAC,IAAkB;IAC1E,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,QAAQ,yBAAyB,CAAC;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,mBAAmB,CAAC;QACnC,IAAI;QACJ,KAAK;QACL,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,wBAAwB;QACjD,SAAS,EAAE,mCAAmC,CAAC,SAAS,CAAC;QACzD,OAAO,EAAE,iCAAiC,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC;KACtE,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,QAAQ;QACX,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE;YACL,GAAG,QAAQ,CAAC,KAAK;YACjB,IAAI,EAAE;gBACJ,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,UAAU;gBACpB,aAAa,EAAE;oBACb,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,QAAQ;iBACjB;gBACD,IAAI,EAAE;oBACJ,WAAW,EAAE,SAAS;oBACtB,WAAW,EAAE,SAAS;oBACtB,YAAY,EAAE,UAAU;oBACxB,eAAe,EAAE,OAAO;oBACxB,iBAAiB,EAAE,SAAS;iBAC7B;gBACD,MAAM,EAAE;oBACN,WAAW,EAAE,CAAC,OAAO,CAAC;iBACvB;gBACD,MAAM,EAAE;oBACN,cAAc,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC;oBACpD,YAAY,EAAE,qBAAqB;iBACpC;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC;oBAC7C,KAAK,EAAE,UAAU;oBACjB,UAAU,EAAE,YAAY;oBACxB,cAAc,EAAE,SAAS;oBACzB,cAAc,EAAE,KAAK;iBACtB;aACF;SACF;QACD,QAAQ,EAAE;YACR,GAAG,QAAQ,CAAC,QAAQ;YACpB,QAAQ,EAAE;gBACR,WAAW,EAAE,SAAS;gBACtB,WAAW,EAAE,SAAS;gBACtB,YAAY,EAAE,UAAU;gBACxB,eAAe,EAAE,OAAO;gBACxB,iBAAiB,EAAE,SAAS;aAC7B;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.nutrition-catalog-scan.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,MAAM,GACf,6BAA6B,CAe/B;AAED,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,6BAA6B,GACvC,WAAW,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"routes.nutrition-catalog-scan.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,MAAM,GACf,6BAA6B,CAe/B;AAED,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,6BAA6B,GACvC,WAAW,CAAC,WAAW,CAAC,CA+B1B"}
|
|
@@ -18,31 +18,25 @@ export function createNutritionCatalogScanScreenIds(idPrefix) {
|
|
|
18
18
|
export function createNutritionCatalogScanNavigator(screenIds) {
|
|
19
19
|
return {
|
|
20
20
|
type: 'tabs',
|
|
21
|
-
initialRouteName: '
|
|
21
|
+
initialRouteName: 'index',
|
|
22
22
|
routes: [
|
|
23
|
-
createRoute({
|
|
24
|
-
name: 'challenge',
|
|
25
|
-
screenId: screenIds.challenge,
|
|
26
|
-
label: 'Challenge',
|
|
27
|
-
icon: { provider: 'material-community', name: 'trophy-outline' },
|
|
28
|
-
}),
|
|
29
23
|
createRoute({
|
|
30
24
|
name: 'index',
|
|
31
25
|
screenId: screenIds.catalog,
|
|
32
26
|
label: 'Products',
|
|
33
|
-
icon: { provider: 'material-community', name: '
|
|
27
|
+
icon: { provider: 'material-community', name: 'package-variant-closed' },
|
|
34
28
|
}),
|
|
35
29
|
createRoute({
|
|
36
30
|
name: 'scan',
|
|
37
31
|
screenId: screenIds.scan,
|
|
38
32
|
label: 'Scan',
|
|
39
|
-
icon: { provider: 'material-community', name: '
|
|
33
|
+
icon: { provider: 'material-community', name: 'barcode-scan' },
|
|
40
34
|
}),
|
|
41
35
|
createRoute({
|
|
42
|
-
name: '
|
|
36
|
+
name: 'stats',
|
|
43
37
|
screenId: screenIds.leaderboard,
|
|
44
|
-
label: '
|
|
45
|
-
icon: { provider: 'material-community', name: '
|
|
38
|
+
label: 'Stats',
|
|
39
|
+
icon: { provider: 'material-community', name: 'chart-bar' },
|
|
46
40
|
}),
|
|
47
41
|
createRoute({
|
|
48
42
|
name: 'profile',
|
|
@@ -50,27 +44,6 @@ export function createNutritionCatalogScanNavigator(screenIds) {
|
|
|
50
44
|
label: 'Profile',
|
|
51
45
|
icon: { provider: 'material-community', name: 'account-circle-outline' },
|
|
52
46
|
}),
|
|
53
|
-
createRoute({
|
|
54
|
-
name: 'capture',
|
|
55
|
-
screenId: screenIds.capture,
|
|
56
|
-
label: 'Capture',
|
|
57
|
-
icon: { provider: 'material-community', name: 'package-variant-plus' },
|
|
58
|
-
hideInTabBar: true,
|
|
59
|
-
}),
|
|
60
|
-
createRoute({
|
|
61
|
-
name: 'queue',
|
|
62
|
-
screenId: screenIds.queue,
|
|
63
|
-
label: 'Queue',
|
|
64
|
-
icon: { provider: 'material-community', name: 'tray-full' },
|
|
65
|
-
hideInTabBar: true,
|
|
66
|
-
}),
|
|
67
|
-
createRoute({
|
|
68
|
-
name: 'settings',
|
|
69
|
-
screenId: screenIds.settings,
|
|
70
|
-
label: 'Settings',
|
|
71
|
-
icon: { provider: 'material-community', name: 'cog-outline' },
|
|
72
|
-
hideInTabBar: true,
|
|
73
|
-
}),
|
|
74
47
|
],
|
|
75
48
|
};
|
|
76
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.nutrition-catalog-scan.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAiB9C,MAAM,UAAU,mCAAmC,CACjD,QAAgB;IAEhB,OAAO;QACL,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,MAAM,EAAE,GAAG,QAAQ,SAAS;QAC5B,IAAI,EAAE,GAAG,QAAQ,OAAO;QACxB,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,KAAK,EAAE,GAAG,QAAQ,QAAQ;QAC1B,SAAS,EAAE,GAAG,QAAQ,YAAY;QAClC,WAAW,EAAE,GAAG,QAAQ,cAAc;QACtC,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,MAAM,EAAE,GAAG,QAAQ,UAAU;QAC7B,MAAM,EAAE,GAAG,QAAQ,UAAU;QAC7B,QAAQ,EAAE,GAAG,QAAQ,WAAW;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,SAAwC;IAExC,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"routes.nutrition-catalog-scan.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/routes.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAiB9C,MAAM,UAAU,mCAAmC,CACjD,QAAgB;IAEhB,OAAO;QACL,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,MAAM,EAAE,GAAG,QAAQ,SAAS;QAC5B,IAAI,EAAE,GAAG,QAAQ,OAAO;QACxB,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,KAAK,EAAE,GAAG,QAAQ,QAAQ;QAC1B,SAAS,EAAE,GAAG,QAAQ,YAAY;QAClC,WAAW,EAAE,GAAG,QAAQ,cAAc;QACtC,OAAO,EAAE,GAAG,QAAQ,UAAU;QAC9B,MAAM,EAAE,GAAG,QAAQ,UAAU;QAC7B,MAAM,EAAE,GAAG,QAAQ,UAAU;QAC7B,QAAQ,EAAE,GAAG,QAAQ,WAAW;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,SAAwC;IAExC,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,gBAAgB,EAAE,OAAO;QACzB,MAAM,EAAE;YACN,WAAW,CAAC;gBACV,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,SAAS,CAAC,OAAO;gBAC3B,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,wBAAwB,EAAE;aACzE,CAAC;YACF,WAAW,CAAC;gBACV,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,SAAS,CAAC,IAAI;gBACxB,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,EAAE;aAC/D,CAAC;YACF,WAAW,CAAC;gBACV,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,SAAS,CAAC,WAAW;gBAC/B,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,WAAW,EAAE;aAC5D,CAAC;YACF,WAAW,CAAC;gBACV,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,SAAS,CAAC,OAAO;gBAC3B,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,wBAAwB,EAAE;aACzE,CAAC;SACH;KACF,CAAC;AACJ,CAAC"}
|
package/dist/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.nutrition-catalog-scan.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"screens.nutrition-catalog-scan.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAmLrF,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,6BAA6B,GACvC,WAAW,CAAC,SAAS,CAAC,CA8GxB"}
|
|
@@ -2,14 +2,7 @@ import { createScreen, createScreenRoot, createSection, createSettingsSection, c
|
|
|
2
2
|
import { nutritionCatalogScanContent } from './content.nutrition-catalog-scan';
|
|
3
3
|
function createContentScreen(args) {
|
|
4
4
|
const idSegment = args.name.toLowerCase().replaceAll(' ', '-');
|
|
5
|
-
const
|
|
6
|
-
createZoraNode(`${args.idPrefix}-${idSegment}-panel-${sectionIndex + 1}`, 'Panel', { title: section.title, description: section.description, tone: 'subtle' }, section.cards.map((card, cardIndex) => createZoraNode(`${args.idPrefix}-${idSegment}-card-${sectionIndex + 1}-${cardIndex + 1}`, 'Card', {
|
|
7
|
-
eyebrow: card.eyebrow,
|
|
8
|
-
title: card.title,
|
|
9
|
-
description: card.description,
|
|
10
|
-
tone: 'outline',
|
|
11
|
-
}))),
|
|
12
|
-
]));
|
|
5
|
+
const body = args.body ?? createSectionCards(args.idPrefix, idSegment, args.content.sections);
|
|
13
6
|
return createScreen({
|
|
14
7
|
id: args.screenId,
|
|
15
8
|
name: args.name,
|
|
@@ -21,36 +14,74 @@ function createContentScreen(args) {
|
|
|
21
14
|
title: args.content.title,
|
|
22
15
|
description: args.content.description,
|
|
23
16
|
}),
|
|
24
|
-
...
|
|
25
|
-
...sectionNodes,
|
|
17
|
+
...body,
|
|
26
18
|
]),
|
|
27
19
|
});
|
|
28
20
|
}
|
|
29
|
-
function
|
|
21
|
+
function createSectionCards(idPrefix, idSegment, sections) {
|
|
22
|
+
return sections.map((section, sectionIndex) => createSection(`${idPrefix}-${idSegment}-section-${sectionIndex + 1}`, { title: section.title, description: section.description }, [
|
|
23
|
+
createZoraNode(`${idPrefix}-${idSegment}-panel-${sectionIndex + 1}`, 'Panel', { title: section.title, description: section.description, tone: 'subtle' }, section.cards.map((card, cardIndex) => createZoraNode(`${idPrefix}-${idSegment}-card-${sectionIndex + 1}-${cardIndex + 1}`, 'Card', {
|
|
24
|
+
eyebrow: card.eyebrow,
|
|
25
|
+
title: card.title,
|
|
26
|
+
description: card.description,
|
|
27
|
+
tone: 'outline',
|
|
28
|
+
}))),
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
function createProductsBody(idPrefix) {
|
|
30
32
|
return [
|
|
31
|
-
createZoraNode(`${idPrefix}-
|
|
32
|
-
label: 'Search
|
|
33
|
+
createZoraNode(`${idPrefix}-products-search-field`, 'FormField', {
|
|
34
|
+
label: 'Search products',
|
|
33
35
|
description: 'Search by product name, brand, barcode, or store chain.',
|
|
34
36
|
}),
|
|
35
|
-
createZoraNode(`${idPrefix}-
|
|
37
|
+
createZoraNode(`${idPrefix}-products-search-input`, 'Input', {
|
|
36
38
|
placeholder: 'Search Migros, Coop, barcode...',
|
|
37
39
|
autoCapitalize: 'none',
|
|
38
40
|
size: 'm',
|
|
39
41
|
}),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
createSection(`${idPrefix}-products-grid-section`, {
|
|
43
|
+
title: 'Products',
|
|
44
|
+
description: 'Available products in the shared challenge catalog.',
|
|
45
|
+
}, [
|
|
46
|
+
createZoraNode(`${idPrefix}-products-grid`, 'Grid', undefined, [
|
|
47
|
+
createZoraNode(`${idPrefix}-product-card-yogurt`, 'Card', {
|
|
48
|
+
eyebrow: 'Known product',
|
|
49
|
+
title: 'Bio Greek Yogurt 250 g',
|
|
50
|
+
description: 'Migros · 7612345678901 · confidence 92%',
|
|
51
|
+
tone: 'outline',
|
|
52
|
+
}),
|
|
53
|
+
createZoraNode(`${idPrefix}-product-card-oat-drink`, 'Card', {
|
|
54
|
+
eyebrow: 'Known product',
|
|
55
|
+
title: 'Haferdrink Barista 1 l',
|
|
56
|
+
description: 'Coop · 7612345678918 · confidence 88%',
|
|
57
|
+
tone: 'outline',
|
|
58
|
+
}),
|
|
59
|
+
createZoraNode(`${idPrefix}-product-card-missing`, 'Card', {
|
|
60
|
+
eyebrow: 'Contribution target',
|
|
61
|
+
title: 'Missing supermarket product',
|
|
62
|
+
description: 'Scan a missing barcode to add a capture and earn points.',
|
|
63
|
+
tone: 'outline',
|
|
64
|
+
}),
|
|
65
|
+
]),
|
|
66
|
+
]),
|
|
46
67
|
];
|
|
47
68
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
69
|
+
function createScanBody(idPrefix) {
|
|
70
|
+
return [
|
|
71
|
+
createZoraNode(`${idPrefix}-scan-scanner`, 'BarcodeScannerView', {
|
|
72
|
+
permissionStatus: 'unknown',
|
|
73
|
+
title: 'Scan product barcode',
|
|
74
|
+
description: 'Point the camera at a barcode to look up or add a product.',
|
|
75
|
+
overlayTitle: 'Align barcode',
|
|
76
|
+
overlayDescription: 'Hold the barcode inside the frame. Scanning starts automatically.',
|
|
77
|
+
cornerLabel: 'EAN',
|
|
78
|
+
requestPermissionLabel: 'Allow camera access',
|
|
79
|
+
manualEntryLabel: 'Enter barcode manually',
|
|
80
|
+
onBarcodeScanned: 'nutrition.scanBarcode',
|
|
81
|
+
onManualEntry: 'nutrition.enterBarcodeManually',
|
|
82
|
+
onRequestPermission: 'camera.requestPermission',
|
|
83
|
+
}),
|
|
84
|
+
];
|
|
54
85
|
}
|
|
55
86
|
function createCaptureFormPreview(idPrefix) {
|
|
56
87
|
return createZoraNode(`${idPrefix}-capture-form-panel`, 'Panel', {
|
|
@@ -87,43 +118,24 @@ function createCaptureFormPreview(idPrefix) {
|
|
|
87
118
|
}
|
|
88
119
|
export function createNutritionCatalogScanScreens(seed, idPrefix, screenIds) {
|
|
89
120
|
return {
|
|
90
|
-
[screenIds.challenge]: createContentScreen({
|
|
91
|
-
idPrefix,
|
|
92
|
-
screenId: screenIds.challenge,
|
|
93
|
-
name: 'Challenge',
|
|
94
|
-
content: nutritionCatalogScanContent.challenge,
|
|
95
|
-
}),
|
|
96
121
|
[screenIds.catalog]: createContentScreen({
|
|
97
122
|
idPrefix,
|
|
98
123
|
screenId: screenIds.catalog,
|
|
99
124
|
name: 'Products',
|
|
100
125
|
content: nutritionCatalogScanContent.catalog,
|
|
101
|
-
|
|
102
|
-
}),
|
|
103
|
-
[screenIds.detail]: createContentScreen({
|
|
104
|
-
idPrefix,
|
|
105
|
-
screenId: screenIds.detail,
|
|
106
|
-
name: 'Product Detail',
|
|
107
|
-
content: nutritionCatalogScanContent.detail,
|
|
126
|
+
body: createProductsBody(idPrefix),
|
|
108
127
|
}),
|
|
109
128
|
[screenIds.scan]: createContentScreen({
|
|
110
129
|
idPrefix,
|
|
111
130
|
screenId: screenIds.scan,
|
|
112
131
|
name: 'Scan',
|
|
113
132
|
content: nutritionCatalogScanContent.scan,
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
[screenIds.capture]: createContentScreen({
|
|
117
|
-
idPrefix,
|
|
118
|
-
screenId: screenIds.capture,
|
|
119
|
-
name: 'Capture',
|
|
120
|
-
content: nutritionCatalogScanContent.capture,
|
|
121
|
-
headerActions: [createCaptureFormPreview(idPrefix)],
|
|
133
|
+
body: createScanBody(idPrefix),
|
|
122
134
|
}),
|
|
123
135
|
[screenIds.leaderboard]: createContentScreen({
|
|
124
136
|
idPrefix,
|
|
125
137
|
screenId: screenIds.leaderboard,
|
|
126
|
-
name: '
|
|
138
|
+
name: 'Stats',
|
|
127
139
|
content: nutritionCatalogScanContent.leaderboard,
|
|
128
140
|
}),
|
|
129
141
|
[screenIds.profile]: createContentScreen({
|
|
@@ -132,6 +144,25 @@ export function createNutritionCatalogScanScreens(seed, idPrefix, screenIds) {
|
|
|
132
144
|
name: 'Profile',
|
|
133
145
|
content: nutritionCatalogScanContent.profile,
|
|
134
146
|
}),
|
|
147
|
+
[screenIds.challenge]: createContentScreen({
|
|
148
|
+
idPrefix,
|
|
149
|
+
screenId: screenIds.challenge,
|
|
150
|
+
name: 'Challenge',
|
|
151
|
+
content: nutritionCatalogScanContent.challenge,
|
|
152
|
+
}),
|
|
153
|
+
[screenIds.detail]: createContentScreen({
|
|
154
|
+
idPrefix,
|
|
155
|
+
screenId: screenIds.detail,
|
|
156
|
+
name: 'Product Detail',
|
|
157
|
+
content: nutritionCatalogScanContent.detail,
|
|
158
|
+
}),
|
|
159
|
+
[screenIds.capture]: createContentScreen({
|
|
160
|
+
idPrefix,
|
|
161
|
+
screenId: screenIds.capture,
|
|
162
|
+
name: 'Capture',
|
|
163
|
+
content: nutritionCatalogScanContent.capture,
|
|
164
|
+
body: [createCaptureFormPreview(idPrefix)],
|
|
165
|
+
}),
|
|
135
166
|
[screenIds.success]: createContentScreen({
|
|
136
167
|
idPrefix,
|
|
137
168
|
screenId: screenIds.success,
|
|
@@ -167,26 +198,6 @@ export function createNutritionCatalogScanScreens(seed, idPrefix, screenIds) {
|
|
|
167
198
|
title: nutritionCatalogScanContent.settings.title,
|
|
168
199
|
description: nutritionCatalogScanContent.settings.description,
|
|
169
200
|
}),
|
|
170
|
-
createSettingsSection(`${idPrefix}-settings-auth`, 'Restricted challenge auth', 'The whole app is protected with global Supabase auth and native RBAC.', [
|
|
171
|
-
{
|
|
172
|
-
id: 'auth-scope-row',
|
|
173
|
-
title: 'Auth scope',
|
|
174
|
-
description: 'Global auth means friends sign in before entering the app.',
|
|
175
|
-
meta: 'global',
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
id: 'profile-table-row',
|
|
179
|
-
title: 'Profile table',
|
|
180
|
-
description: 'Use an app-facing profiles table linked to Supabase Auth users.',
|
|
181
|
-
meta: 'profiles',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
id: 'challenge-row',
|
|
185
|
-
title: 'Challenge participation',
|
|
186
|
-
description: 'Scan events, captures, and leaderboard rows belong to signed-in scanners.',
|
|
187
|
-
meta: 'scanner',
|
|
188
|
-
},
|
|
189
|
-
]),
|
|
190
201
|
createSettingsSection(`${idPrefix}-settings-api`, 'API Gateway', 'Runtime product, scan, capture, challenge, and leaderboard data should go through the API Gateway.', [
|
|
191
202
|
{
|
|
192
203
|
id: 'base-url-row',
|
|
@@ -201,31 +212,11 @@ export function createNutritionCatalogScanScreens(seed, idPrefix, screenIds) {
|
|
|
201
212
|
meta: 'auth',
|
|
202
213
|
},
|
|
203
214
|
{
|
|
204
|
-
id: '
|
|
205
|
-
title: '
|
|
206
|
-
description:
|
|
207
|
-
meta: 'ranking',
|
|
208
|
-
},
|
|
209
|
-
]),
|
|
210
|
-
createSettingsSection(`${idPrefix}-settings-client`, 'Client defaults', `${seed.appName} should send appVersion, platform, locale, user id, and clientCapturedAt with challenge actions.`, [
|
|
211
|
-
{
|
|
212
|
-
id: 'locale-row',
|
|
213
|
-
title: 'Default locale',
|
|
214
|
-
description: 'de-CH for the Swiss retail MVP.',
|
|
215
|
+
id: 'client-row',
|
|
216
|
+
title: 'Client defaults',
|
|
217
|
+
description: `${seed.appName} sends de-CH locale, CH country, platform, user id, and clientCapturedAt.`,
|
|
215
218
|
meta: 'de-CH',
|
|
216
219
|
},
|
|
217
|
-
{
|
|
218
|
-
id: 'country-row',
|
|
219
|
-
title: 'Default country',
|
|
220
|
-
description: 'Store observations default to CH.',
|
|
221
|
-
meta: 'CH',
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
id: 'camera-row',
|
|
225
|
-
title: 'Camera dependency',
|
|
226
|
-
description: 'Use ZORA scanner UI with an app camera adapter such as expo-camera.',
|
|
227
|
-
meta: 'ZORA-first',
|
|
228
|
-
},
|
|
229
220
|
]),
|
|
230
221
|
]),
|
|
231
222
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.nutrition-catalog-scan.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,GAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAsB/E,SAAS,mBAAmB,CAAC,IAM5B;IACC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/D,MAAM,
|
|
1
|
+
{"version":3,"file":"screens.nutrition-catalog-scan.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.nutrition-catalog-scan.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,GAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAsB/E,SAAS,mBAAmB,CAAC,IAM5B;IACC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9F,OAAO,YAAY,CAAC;QAClB,EAAE,EAAE,IAAI,CAAC,QAAQ;QACjB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;QACzB,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;QACrC,IAAI,EAAE,gBAAgB,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM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