@feedmepos/mf-feedback-poc 0.0.1-rc.1

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.
Files changed (84) hide show
  1. package/README.md +46 -0
  2. package/dist/App-0fc71fe6.js +11 -0
  3. package/dist/Feedback-183fcf19.js +14235 -0
  4. package/dist/app.js +219 -0
  5. package/dist/apps/mf-feedback/src/App.vue.d.ts +2 -0
  6. package/dist/apps/mf-feedback/src/Entry.vue.d.ts +2 -0
  7. package/dist/apps/mf-feedback/src/View/Feedback.vue.d.ts +2 -0
  8. package/dist/apps/mf-feedback/src/api/feedback.d.ts +14 -0
  9. package/dist/apps/mf-feedback/src/api/index.d.ts +7 -0
  10. package/dist/apps/mf-feedback/src/api/marketing.d.ts +12 -0
  11. package/dist/apps/mf-feedback/src/app.d.ts +146 -0
  12. package/dist/apps/mf-feedback/src/components/NavigationTab.vue.d.ts +2 -0
  13. package/dist/apps/mf-feedback/src/components/feedback/FeedbackCard.vue.d.ts +26 -0
  14. package/dist/apps/mf-feedback/src/components/feedback/FeedbackSummary.vue.d.ts +14 -0
  15. package/dist/apps/mf-feedback/src/components/feedback/GiveVoucherDialog.vue.d.ts +15 -0
  16. package/dist/apps/mf-feedback/src/components/feedback/PercentageIndicator.vue.d.ts +17 -0
  17. package/dist/apps/mf-feedback/src/components/feedback/RatingSelector.vue.d.ts +6 -0
  18. package/dist/apps/mf-feedback/src/main.d.ts +2 -0
  19. package/dist/apps/mf-feedback/src/plugins/r2Storage.d.ts +12 -0
  20. package/dist/apps/mf-feedback/src/router/index.d.ts +2 -0
  21. package/dist/apps/mf-feedback/src/router/shared.d.ts +2 -0
  22. package/dist/apps/mf-feedback/src/types/feedback.d.ts +24 -0
  23. package/dist/apps/mf-feedback/src/types/marketing.d.ts +87 -0
  24. package/dist/apps/mf-feedback/tsconfig.app.tsbuildinfo +1 -0
  25. package/dist/favicon.ico +0 -0
  26. package/dist/packages/shared/src/api/index.d.ts +3 -0
  27. package/dist/packages/shared/src/api/public.d.ts +5 -0
  28. package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
  29. package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
  30. package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
  31. package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
  32. package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
  33. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +126 -0
  34. package/dist/packages/shared/src/components/info/CustomAttributeChip.vue.d.ts +29 -0
  35. package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
  36. package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
  37. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +36 -0
  38. package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
  39. package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +23 -0
  40. package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
  41. package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
  42. package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +45 -0
  43. package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
  44. package/dist/packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts +2 -0
  45. package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
  46. package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
  47. package/dist/packages/shared/src/components/layout/LottieAnimation.vue.d.ts +39 -0
  48. package/dist/packages/shared/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  49. package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
  50. package/dist/packages/shared/src/components/loading/AppLoading.vue.d.ts +20 -0
  51. package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
  52. package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
  53. package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
  54. package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +10 -0
  55. package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +24 -0
  56. package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
  57. package/dist/packages/shared/src/components/table/EmptyDataTemplate/Icon.vue.d.ts +2 -0
  58. package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.d.ts +1 -0
  59. package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.vue.d.ts +27 -0
  60. package/dist/packages/shared/src/components/types.d.ts +95 -0
  61. package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
  62. package/dist/packages/shared/src/composable/dateRange.d.ts +18 -0
  63. package/dist/packages/shared/src/composable/discardConfirm.d.ts +1 -0
  64. package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
  65. package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
  66. package/dist/packages/shared/src/composable/loading.d.ts +29 -0
  67. package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
  68. package/dist/packages/shared/src/composable/search.d.ts +5 -0
  69. package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
  70. package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
  71. package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
  72. package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
  73. package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
  74. package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
  75. package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
  76. package/dist/packages/shared/src/helpers/iteration.d.ts +11 -0
  77. package/dist/packages/shared/src/helpers/map.d.ts +370 -0
  78. package/dist/packages/shared/src/helpers/object.d.ts +6 -0
  79. package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
  80. package/dist/packages/shared/src/helpers/string.d.ts +12 -0
  81. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  82. package/dist/packages/shared/src/stores/app.d.ts +217 -0
  83. package/dist/packages/shared/src/types/types.d.ts +5 -0
  84. package/package.json +85 -0
@@ -0,0 +1,370 @@
1
+ /// <reference types="googlemaps" />
2
+ /// <reference types="googlemaps" />
3
+ /// <reference types="googlemaps" />
4
+ /// <reference types="googlemaps" />
5
+ /// <reference types="googlemaps" />
6
+ /// <reference types="googlemaps" />
7
+ /// <reference types="googlemaps" />
8
+ /// <reference types="googlemaps" />
9
+ /// <reference types="googlemaps" />
10
+ /// <reference types="googlemaps" />
11
+ /// <reference types="googlemaps" />
12
+ /// <reference types="googlemaps" />
13
+ /// <reference types="googlemaps" />
14
+ /// <reference types="googlemaps" />
15
+ /// <reference types="googlemaps" />
16
+ /// <reference types="googlemaps" />
17
+ /// <reference types="googlemaps" />
18
+ /// <reference types="googlemaps" />
19
+ /// <reference types="googlemaps" />
20
+ /// <reference types="googlemaps" />
21
+ /// <reference types="googlemaps" />
22
+ /// <reference types="googlemaps" />
23
+ /// <reference types="googlemaps" />
24
+ /// <reference types="googlemaps" />
25
+ /// <reference types="googlemaps" />
26
+ import { type MapCoordinate } from "../components/types";
27
+ declare const googleMap: () => {
28
+ maps: {
29
+ Map: typeof google.maps.Map;
30
+ MapTypeId: {
31
+ readonly HYBRID: google.maps.MapTypeId.HYBRID;
32
+ readonly ROADMAP: google.maps.MapTypeId.ROADMAP;
33
+ readonly SATELLITE: google.maps.MapTypeId.SATELLITE;
34
+ readonly TERRAIN: google.maps.MapTypeId.TERRAIN;
35
+ };
36
+ MapTypeRegistry: typeof google.maps.MapTypeRegistry;
37
+ TrafficLayer: typeof google.maps.TrafficLayer;
38
+ TransitLayer: typeof google.maps.TransitLayer;
39
+ BicyclingLayer: typeof google.maps.BicyclingLayer;
40
+ LatLng: typeof google.maps.LatLng;
41
+ LatLngBounds: typeof google.maps.LatLngBounds;
42
+ Point: typeof google.maps.Point;
43
+ Size: typeof google.maps.Size;
44
+ event: {
45
+ addDomListener: typeof google.maps.event.addDomListener;
46
+ addDomListenerOnce: typeof google.maps.event.addDomListenerOnce;
47
+ addListener: typeof google.maps.event.addListener;
48
+ addListenerOnce: typeof google.maps.event.addListenerOnce;
49
+ clearInstanceListeners: typeof google.maps.event.clearInstanceListeners;
50
+ clearListeners: typeof google.maps.event.clearListeners;
51
+ removeListener: typeof google.maps.event.removeListener;
52
+ trigger: typeof google.maps.event.trigger;
53
+ };
54
+ MVCObject: typeof google.maps.MVCObject;
55
+ MVCArray: typeof google.maps.MVCArray;
56
+ MapTypeControlStyle: {
57
+ [x: number]: string;
58
+ readonly DEFAULT: google.maps.MapTypeControlStyle.DEFAULT;
59
+ readonly HORIZONTAL_BAR: google.maps.MapTypeControlStyle.HORIZONTAL_BAR;
60
+ readonly DROPDOWN_MENU: google.maps.MapTypeControlStyle.DROPDOWN_MENU;
61
+ readonly INSET: google.maps.MapTypeControlStyle.INSET;
62
+ readonly INSET_LARGE: google.maps.MapTypeControlStyle.INSET_LARGE;
63
+ };
64
+ ScaleControlStyle: {
65
+ [x: number]: string;
66
+ readonly DEFAULT: google.maps.ScaleControlStyle.DEFAULT;
67
+ };
68
+ ZoomControlStyle: {
69
+ [x: number]: string;
70
+ readonly DEFAULT: google.maps.ZoomControlStyle.DEFAULT;
71
+ readonly SMALL: google.maps.ZoomControlStyle.SMALL;
72
+ readonly LARGE: google.maps.ZoomControlStyle.LARGE;
73
+ };
74
+ ControlPosition: {
75
+ [x: number]: string;
76
+ readonly BOTTOM_CENTER: google.maps.ControlPosition.BOTTOM_CENTER;
77
+ readonly BOTTOM_LEFT: google.maps.ControlPosition.BOTTOM_LEFT;
78
+ readonly BOTTOM_RIGHT: google.maps.ControlPosition.BOTTOM_RIGHT;
79
+ readonly LEFT_BOTTOM: google.maps.ControlPosition.LEFT_BOTTOM;
80
+ readonly LEFT_CENTER: google.maps.ControlPosition.LEFT_CENTER;
81
+ readonly LEFT_TOP: google.maps.ControlPosition.LEFT_TOP;
82
+ readonly RIGHT_BOTTOM: google.maps.ControlPosition.RIGHT_BOTTOM;
83
+ readonly RIGHT_CENTER: google.maps.ControlPosition.RIGHT_CENTER;
84
+ readonly RIGHT_TOP: google.maps.ControlPosition.RIGHT_TOP;
85
+ readonly TOP_CENTER: google.maps.ControlPosition.TOP_CENTER;
86
+ readonly TOP_LEFT: google.maps.ControlPosition.TOP_LEFT;
87
+ readonly TOP_RIGHT: google.maps.ControlPosition.TOP_RIGHT;
88
+ };
89
+ geometry: {
90
+ encoding: {
91
+ decodePath: typeof google.maps.geometry.encoding.decodePath;
92
+ encodePath: typeof google.maps.geometry.encoding.encodePath;
93
+ };
94
+ spherical: {
95
+ computeArea: typeof google.maps.geometry.spherical.computeArea;
96
+ computeDistanceBetween: typeof google.maps.geometry.spherical.computeDistanceBetween;
97
+ computeHeading: typeof google.maps.geometry.spherical.computeHeading;
98
+ computeLength: typeof google.maps.geometry.spherical.computeLength;
99
+ computeOffset: typeof google.maps.geometry.spherical.computeOffset;
100
+ computeOffsetOrigin: typeof google.maps.geometry.spherical.computeOffsetOrigin;
101
+ computeSignedArea: typeof google.maps.geometry.spherical.computeSignedArea;
102
+ interpolate: typeof google.maps.geometry.spherical.interpolate;
103
+ };
104
+ poly: {
105
+ containsLocation: typeof google.maps.geometry.poly.containsLocation;
106
+ isLocationOnEdge: typeof google.maps.geometry.poly.isLocationOnEdge;
107
+ };
108
+ };
109
+ Marker: typeof google.maps.Marker;
110
+ SymbolPath: {
111
+ [x: number]: string;
112
+ readonly BACKWARD_CLOSED_ARROW: google.maps.SymbolPath.BACKWARD_CLOSED_ARROW;
113
+ readonly BACKWARD_OPEN_ARROW: google.maps.SymbolPath.BACKWARD_OPEN_ARROW;
114
+ readonly CIRCLE: google.maps.SymbolPath.CIRCLE;
115
+ readonly FORWARD_CLOSED_ARROW: google.maps.SymbolPath.FORWARD_CLOSED_ARROW;
116
+ readonly FORWARD_OPEN_ARROW: google.maps.SymbolPath.FORWARD_OPEN_ARROW;
117
+ };
118
+ Animation: {
119
+ [x: number]: string;
120
+ readonly BOUNCE: google.maps.Animation.BOUNCE;
121
+ readonly DROP: google.maps.Animation.DROP;
122
+ };
123
+ InfoWindow: typeof google.maps.InfoWindow;
124
+ Polyline: typeof google.maps.Polyline;
125
+ Polygon: typeof google.maps.Polygon;
126
+ Rectangle: typeof google.maps.Rectangle;
127
+ Circle: typeof google.maps.Circle;
128
+ StrokePosition: {
129
+ [x: number]: string;
130
+ readonly CENTER: google.maps.StrokePosition.CENTER;
131
+ readonly INSIDE: google.maps.StrokePosition.INSIDE;
132
+ readonly OUTSIDE: google.maps.StrokePosition.OUTSIDE;
133
+ };
134
+ Data: typeof google.maps.Data;
135
+ OverlayView: typeof google.maps.OverlayView;
136
+ MapCanvasProjection: typeof google.maps.MapCanvasProjection;
137
+ KmlLayer: typeof google.maps.KmlLayer;
138
+ KmlLayerStatus: {
139
+ readonly DOCUMENT_NOT_FOUND: google.maps.KmlLayerStatus.DOCUMENT_NOT_FOUND;
140
+ readonly DOCUMENT_TOO_LARGE: google.maps.KmlLayerStatus.DOCUMENT_TOO_LARGE;
141
+ readonly FETCH_ERROR: google.maps.KmlLayerStatus.FETCH_ERROR;
142
+ readonly INVALID_DOCUMENT: google.maps.KmlLayerStatus.INVALID_DOCUMENT;
143
+ readonly INVALID_REQUEST: google.maps.KmlLayerStatus.INVALID_REQUEST;
144
+ readonly LIMITS_EXCEEDED: google.maps.KmlLayerStatus.LIMITS_EXCEEDED;
145
+ readonly OK: google.maps.KmlLayerStatus.OK;
146
+ readonly TIMED_OUT: google.maps.KmlLayerStatus.TIMED_OUT;
147
+ readonly UNKNOWN: google.maps.KmlLayerStatus.UNKNOWN;
148
+ };
149
+ ImageMapType: typeof google.maps.ImageMapType;
150
+ GroundOverlay: typeof google.maps.GroundOverlay;
151
+ StyledMapType: typeof google.maps.StyledMapType;
152
+ drawing: {
153
+ DrawingManager: typeof google.maps.drawing.DrawingManager;
154
+ OverlayType: {
155
+ readonly CIRCLE: google.maps.drawing.OverlayType.CIRCLE;
156
+ readonly MARKER: google.maps.drawing.OverlayType.MARKER;
157
+ readonly POLYGON: google.maps.drawing.OverlayType.POLYGON;
158
+ readonly POLYLINE: google.maps.drawing.OverlayType.POLYLINE;
159
+ readonly RECTANGLE: google.maps.drawing.OverlayType.RECTANGLE;
160
+ };
161
+ };
162
+ visualization: {
163
+ HeatmapLayer: typeof google.maps.visualization.HeatmapLayer;
164
+ MapsEngineLayer: typeof google.maps.visualization.MapsEngineLayer;
165
+ MapsEngineStatus: {
166
+ readonly INVALID_LAYER: google.maps.visualization.MapsEngineStatus.INVALID_LAYER;
167
+ readonly OK: google.maps.visualization.MapsEngineStatus.OK;
168
+ readonly UNKNOWN_ERROR: google.maps.visualization.MapsEngineStatus.UNKNOWN_ERROR;
169
+ };
170
+ MouseEvent: typeof google.maps.visualization.MouseEvent;
171
+ MapsEventListener: typeof google.maps.visualization.MapsEventListener;
172
+ };
173
+ MaxZoomService: typeof google.maps.MaxZoomService;
174
+ MaxZoomStatus: {
175
+ readonly ERROR: google.maps.MaxZoomStatus.ERROR;
176
+ readonly OK: google.maps.MaxZoomStatus.OK;
177
+ };
178
+ StreetViewPanorama: typeof google.maps.StreetViewPanorama;
179
+ StreetViewCoverageLayer: typeof google.maps.StreetViewCoverageLayer;
180
+ StreetViewService: typeof google.maps.StreetViewService;
181
+ StreetViewStatus: {
182
+ readonly OK: google.maps.StreetViewStatus.OK;
183
+ readonly UNKNOWN_ERROR: google.maps.StreetViewStatus.UNKNOWN_ERROR;
184
+ readonly ZERO_RESULTS: google.maps.StreetViewStatus.ZERO_RESULTS;
185
+ };
186
+ StreetViewPreference: {
187
+ readonly BEST: google.maps.StreetViewPreference.BEST;
188
+ readonly NEAREST: google.maps.StreetViewPreference.NEAREST;
189
+ };
190
+ StreetViewSource: {
191
+ readonly DEFAULT: google.maps.StreetViewSource.DEFAULT;
192
+ readonly OUTDOOR: google.maps.StreetViewSource.OUTDOOR;
193
+ };
194
+ places: {
195
+ Autocomplete: typeof google.maps.places.Autocomplete;
196
+ SearchBox: typeof google.maps.places.SearchBox;
197
+ PlacesService: typeof google.maps.places.PlacesService;
198
+ RankBy: {
199
+ [x: number]: string;
200
+ readonly PROMINENCE: google.maps.places.RankBy.PROMINENCE;
201
+ readonly DISTANCE: google.maps.places.RankBy.DISTANCE;
202
+ };
203
+ PlacesServiceStatus: {
204
+ readonly INVALID_REQUEST: google.maps.places.PlacesServiceStatus.INVALID_REQUEST;
205
+ readonly NOT_FOUND: google.maps.places.PlacesServiceStatus.NOT_FOUND;
206
+ readonly OK: google.maps.places.PlacesServiceStatus.OK;
207
+ readonly OVER_QUERY_LIMIT: google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT;
208
+ readonly REQUEST_DENIED: google.maps.places.PlacesServiceStatus.REQUEST_DENIED;
209
+ readonly UNKNOWN_ERROR: google.maps.places.PlacesServiceStatus.UNKNOWN_ERROR;
210
+ readonly ZERO_RESULTS: google.maps.places.PlacesServiceStatus.ZERO_RESULTS;
211
+ };
212
+ AutocompleteService: typeof google.maps.places.AutocompleteService;
213
+ AutocompleteSessionToken: typeof google.maps.places.AutocompleteSessionToken;
214
+ };
215
+ Geocoder: typeof google.maps.Geocoder;
216
+ GeocoderStatus: {
217
+ readonly ERROR: google.maps.GeocoderStatus.ERROR;
218
+ readonly INVALID_REQUEST: google.maps.GeocoderStatus.INVALID_REQUEST;
219
+ readonly OK: google.maps.GeocoderStatus.OK;
220
+ readonly OVER_QUERY_LIMIT: google.maps.GeocoderStatus.OVER_QUERY_LIMIT;
221
+ readonly REQUEST_DENIED: google.maps.GeocoderStatus.REQUEST_DENIED;
222
+ readonly UNKNOWN_ERROR: google.maps.GeocoderStatus.UNKNOWN_ERROR;
223
+ readonly ZERO_RESULTS: google.maps.GeocoderStatus.ZERO_RESULTS;
224
+ };
225
+ GeocoderLocationType: {
226
+ readonly APPROXIMATE: google.maps.GeocoderLocationType.APPROXIMATE;
227
+ readonly GEOMETRIC_CENTER: google.maps.GeocoderLocationType.GEOMETRIC_CENTER;
228
+ readonly RANGE_INTERPOLATED: google.maps.GeocoderLocationType.RANGE_INTERPOLATED;
229
+ readonly ROOFTOP: google.maps.GeocoderLocationType.ROOFTOP;
230
+ };
231
+ DirectionsService: typeof google.maps.DirectionsService;
232
+ DirectionsStatus: {
233
+ readonly INVALID_REQUEST: google.maps.DirectionsStatus.INVALID_REQUEST;
234
+ readonly MAX_WAYPOINTS_EXCEEDED: google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED;
235
+ readonly NOT_FOUND: google.maps.DirectionsStatus.NOT_FOUND;
236
+ readonly OK: google.maps.DirectionsStatus.OK;
237
+ readonly OVER_QUERY_LIMIT: google.maps.DirectionsStatus.OVER_QUERY_LIMIT;
238
+ readonly REQUEST_DENIED: google.maps.DirectionsStatus.REQUEST_DENIED;
239
+ readonly UNKNOWN_ERROR: google.maps.DirectionsStatus.UNKNOWN_ERROR;
240
+ readonly ZERO_RESULTS: google.maps.DirectionsStatus.ZERO_RESULTS;
241
+ };
242
+ DirectionsRenderer: typeof google.maps.DirectionsRenderer;
243
+ TravelMode: {
244
+ readonly BICYCLING: google.maps.TravelMode.BICYCLING;
245
+ readonly DRIVING: google.maps.TravelMode.DRIVING;
246
+ readonly TRANSIT: google.maps.TravelMode.TRANSIT;
247
+ readonly TWO_WHEELER: google.maps.TravelMode.TWO_WHEELER;
248
+ readonly WALKING: google.maps.TravelMode.WALKING;
249
+ };
250
+ TrafficModel: {
251
+ readonly BEST_GUESS: google.maps.TrafficModel.BEST_GUESS;
252
+ readonly OPTIMISTIC: google.maps.TrafficModel.OPTIMISTIC;
253
+ readonly PESSIMISTIC: google.maps.TrafficModel.PESSIMISTIC;
254
+ };
255
+ TransitMode: {
256
+ readonly BUS: google.maps.TransitMode.BUS;
257
+ readonly RAIL: google.maps.TransitMode.RAIL;
258
+ readonly SUBWAY: google.maps.TransitMode.SUBWAY;
259
+ readonly TRAIN: google.maps.TransitMode.TRAIN;
260
+ readonly TRAM: google.maps.TransitMode.TRAM;
261
+ };
262
+ TransitRoutePreference: {
263
+ readonly FEWER_TRANSFERS: google.maps.TransitRoutePreference.FEWER_TRANSFERS;
264
+ readonly LESS_WALKING: google.maps.TransitRoutePreference.LESS_WALKING;
265
+ };
266
+ VehicleType: {
267
+ [x: number]: string;
268
+ readonly BUS: google.maps.VehicleType.BUS;
269
+ readonly CABLE_CAR: google.maps.VehicleType.CABLE_CAR;
270
+ readonly COMMUTER_TRAIN: google.maps.VehicleType.COMMUTER_TRAIN;
271
+ readonly FERRY: google.maps.VehicleType.FERRY;
272
+ readonly FUNICULAR: google.maps.VehicleType.FUNICULAR;
273
+ readonly GONDOLA_LIFT: google.maps.VehicleType.GONDOLA_LIFT;
274
+ readonly HEAVY_RAIL: google.maps.VehicleType.HEAVY_RAIL;
275
+ readonly HIGH_SPEED_TRAIN: google.maps.VehicleType.HIGH_SPEED_TRAIN;
276
+ readonly INTERCITY_BUS: google.maps.VehicleType.INTERCITY_BUS;
277
+ readonly METRO_RAIL: google.maps.VehicleType.METRO_RAIL;
278
+ readonly MONORAIL: google.maps.VehicleType.MONORAIL;
279
+ readonly OTHER: google.maps.VehicleType.OTHER;
280
+ readonly RAIL: google.maps.VehicleType.RAIL;
281
+ readonly SHARE_TAXI: google.maps.VehicleType.SHARE_TAXI;
282
+ readonly SUBWAY: google.maps.VehicleType.SUBWAY;
283
+ readonly TRAM: google.maps.VehicleType.TRAM;
284
+ readonly TROLLEYBUS: google.maps.VehicleType.TROLLEYBUS;
285
+ };
286
+ UnitSystem: {
287
+ [x: number]: string;
288
+ readonly METRIC: google.maps.UnitSystem.METRIC;
289
+ readonly IMPERIAL: google.maps.UnitSystem.IMPERIAL;
290
+ };
291
+ DistanceMatrixService: typeof google.maps.DistanceMatrixService;
292
+ DistanceMatrixStatus: {
293
+ readonly INVALID_REQUEST: google.maps.DistanceMatrixStatus.INVALID_REQUEST;
294
+ readonly MAX_DIMENSIONS_EXCEEDED: google.maps.DistanceMatrixStatus.MAX_DIMENSIONS_EXCEEDED;
295
+ readonly MAX_ELEMENTS_EXCEEDED: google.maps.DistanceMatrixStatus.MAX_ELEMENTS_EXCEEDED;
296
+ readonly OK: google.maps.DistanceMatrixStatus.OK;
297
+ readonly OVER_QUERY_LIMIT: google.maps.DistanceMatrixStatus.OVER_QUERY_LIMIT;
298
+ readonly REQUEST_DENIED: google.maps.DistanceMatrixStatus.REQUEST_DENIED;
299
+ readonly UNKNOWN_ERROR: google.maps.DistanceMatrixStatus.UNKNOWN_ERROR;
300
+ };
301
+ DistanceMatrixElementStatus: {
302
+ readonly NOT_FOUND: google.maps.DistanceMatrixElementStatus.NOT_FOUND;
303
+ readonly OK: google.maps.DistanceMatrixElementStatus.OK;
304
+ readonly ZERO_RESULTS: google.maps.DistanceMatrixElementStatus.ZERO_RESULTS;
305
+ };
306
+ ElevationService: typeof google.maps.ElevationService;
307
+ ElevationStatus: {
308
+ readonly INVALID_REQUEST: google.maps.ElevationStatus.INVALID_REQUEST;
309
+ readonly OK: google.maps.ElevationStatus.OK;
310
+ readonly OVER_QUERY_LIMIT: google.maps.ElevationStatus.OVER_QUERY_LIMIT;
311
+ readonly REQUEST_DENIED: google.maps.ElevationStatus.REQUEST_DENIED;
312
+ readonly UNKNOWN_ERROR: google.maps.ElevationStatus.UNKNOWN_ERROR;
313
+ };
314
+ readonly version: string;
315
+ SaveWidget: typeof google.maps.SaveWidget;
316
+ FusionTablesLayer: typeof google.maps.FusionTablesLayer;
317
+ adsense: {
318
+ AdUnit: typeof google.maps.adsense.AdUnit;
319
+ AdFormat: {
320
+ readonly BANNER: google.maps.adsense.AdFormat.BANNER;
321
+ readonly BUTTON: google.maps.adsense.AdFormat.BUTTON;
322
+ readonly HALF_BANNER: google.maps.adsense.AdFormat.HALF_BANNER;
323
+ readonly LARGE_HORIZONTAL_LINK_UNIT: google.maps.adsense.AdFormat.LARGE_HORIZONTAL_LINK_UNIT;
324
+ readonly LARGE_RECTANGLE: google.maps.adsense.AdFormat.LARGE_RECTANGLE;
325
+ readonly LARGE_VERTICAL_LINK_UNIT: google.maps.adsense.AdFormat.LARGE_VERTICAL_LINK_UNIT;
326
+ readonly LEADERBOARD: google.maps.adsense.AdFormat.LEADERBOARD;
327
+ readonly MEDIUM_RECTANGLE: google.maps.adsense.AdFormat.MEDIUM_RECTANGLE;
328
+ readonly MEDIUM_VERTICAL_LINK_UNIT: google.maps.adsense.AdFormat.MEDIUM_VERTICAL_LINK_UNIT;
329
+ readonly SKYSCRAPER: google.maps.adsense.AdFormat.SKYSCRAPER;
330
+ readonly SMALL_HORIZONTAL_LINK_UNIT: google.maps.adsense.AdFormat.SMALL_HORIZONTAL_LINK_UNIT;
331
+ readonly SMALL_RECTANGLE: google.maps.adsense.AdFormat.SMALL_RECTANGLE;
332
+ readonly SMALL_SQUARE: google.maps.adsense.AdFormat.SMALL_SQUARE;
333
+ readonly SMALL_VERTICAL_LINK_UNIT: google.maps.adsense.AdFormat.SMALL_VERTICAL_LINK_UNIT;
334
+ readonly SQUARE: google.maps.adsense.AdFormat.SQUARE;
335
+ readonly VERTICAL_BANNER: google.maps.adsense.AdFormat.VERTICAL_BANNER;
336
+ readonly WIDE_SKYSCRAPER: google.maps.adsense.AdFormat.WIDE_SKYSCRAPER;
337
+ readonly X_LARGE_VERTICAL_LINK_UNIT: google.maps.adsense.AdFormat.X_LARGE_VERTICAL_LINK_UNIT;
338
+ };
339
+ };
340
+ };
341
+ };
342
+ export declare function setGoogleMap(map: typeof google): void;
343
+ declare const coordinates: Readonly<{
344
+ jb: {
345
+ lat: number;
346
+ lng: number;
347
+ };
348
+ }>;
349
+ declare function coordinateToArray(v: {
350
+ lat: number;
351
+ lng: number;
352
+ }): number[];
353
+ declare function arrayToCoordinate(arr: number[]): {
354
+ lat: number;
355
+ lng: number;
356
+ };
357
+ declare function generateAreaPaths({ center, radius }: {
358
+ radius: number;
359
+ center: {
360
+ lng: number;
361
+ lat: number;
362
+ };
363
+ }): {
364
+ lat: number;
365
+ lng: number;
366
+ }[];
367
+ declare function pathToPolygon(path: MapCoordinate[]): number[][];
368
+ declare function polygonToPath(polygon: number[][]): MapCoordinate[];
369
+ declare function getPolygonCenter(polygon: number[][]): MapCoordinate | undefined;
370
+ export { googleMap, coordinates, coordinateToArray, arrayToCoordinate, generateAreaPaths, pathToPolygon, polygonToPath, getPolygonCenter };
@@ -0,0 +1,6 @@
1
+ export declare function clone<T>(value: T): T;
2
+ export declare function arrayToObject<T extends {
3
+ [key: string]: any;
4
+ }, K extends keyof T>(array: T[], idKey?: K): {
5
+ [key: string]: T;
6
+ };
@@ -0,0 +1 @@
1
+ export declare function required(value: string | null | undefined | any[], message?: string): boolean | string;
@@ -0,0 +1,12 @@
1
+ declare function randomString(length: number, config?: {
2
+ includeSpecialCase: boolean;
3
+ }): string;
4
+ declare const filter: {
5
+ alphabetOnly(word: string): string;
6
+ alphaNumeric(word: string): string;
7
+ numericOnly(word: string): string;
8
+ };
9
+ declare const validate: {
10
+ email(input: string): RegExpMatchArray | null;
11
+ };
12
+ export { filter, validate, randomString };
@@ -0,0 +1,6 @@
1
+ import type { FdoPermissionRule } from "@feedmepos/core/entity";
2
+ /**
3
+ * TODO:Previously, it's exported from @feedmepos/core, but it's removed under new versions
4
+ * So we redefine here temporarily
5
+ */
6
+ export declare const fullPosPermissions: FdoPermissionRule[];
@@ -0,0 +1,217 @@
1
+ import type { FdoPublicSetting } from "@feedmepos/core/entity";
2
+ export type PublicSettingApi = FdoPublicSetting & {
3
+ aiSettings: {
4
+ remy: {
5
+ enable: boolean;
6
+ };
7
+ };
8
+ };
9
+ interface AppState {
10
+ loadingQueue: LoadingQueue[];
11
+ publicSetting: PublicSettingApi;
12
+ }
13
+ interface LoadingQueue {
14
+ id: string;
15
+ isGlobal: boolean;
16
+ }
17
+ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-store", AppState, {}, {
18
+ addLoadingQueues(queues: LoadingQueue[]): void;
19
+ clearLoadingQueue(): void;
20
+ resolveQueues(queueIds: string[]): void;
21
+ promise<F extends (...args: any[]) => any>(callback: F, isGlobal?: boolean): Promise<ReturnType<F>>;
22
+ getPublicSetting(): Promise<{
23
+ delivery: {
24
+ feedMe: {
25
+ operatingHours?: {
26
+ 0: {
27
+ hours: {
28
+ end: string;
29
+ start: string;
30
+ }[];
31
+ enable: boolean;
32
+ };
33
+ 2: {
34
+ hours: {
35
+ end: string;
36
+ start: string;
37
+ }[];
38
+ enable: boolean;
39
+ };
40
+ 1: {
41
+ hours: {
42
+ end: string;
43
+ start: string;
44
+ }[];
45
+ enable: boolean;
46
+ };
47
+ 3: {
48
+ hours: {
49
+ end: string;
50
+ start: string;
51
+ }[];
52
+ enable: boolean;
53
+ };
54
+ 4: {
55
+ hours: {
56
+ end: string;
57
+ start: string;
58
+ }[];
59
+ enable: boolean;
60
+ };
61
+ 5: {
62
+ hours: {
63
+ end: string;
64
+ start: string;
65
+ }[];
66
+ enable: boolean;
67
+ };
68
+ 6: {
69
+ hours: {
70
+ end: string;
71
+ start: string;
72
+ }[];
73
+ enable: boolean;
74
+ };
75
+ } | null | undefined;
76
+ maxDistance: number;
77
+ enable: boolean;
78
+ areas: {
79
+ polygon: number[][];
80
+ }[];
81
+ };
82
+ };
83
+ assets: {
84
+ groups: {
85
+ key: "portal" | "pos";
86
+ assets: {
87
+ type: "image" | "lottie";
88
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
89
+ path: string;
90
+ files: {
91
+ responsive?: {
92
+ mobile?: string | null | undefined;
93
+ tablet?: string | null | undefined;
94
+ desktop?: string | null | undefined;
95
+ } | null | undefined;
96
+ url: string;
97
+ createdAt: string;
98
+ config: {
99
+ useWhen: {
100
+ end: string;
101
+ start: string;
102
+ };
103
+ recurring: boolean;
104
+ };
105
+ lastUpdate: string;
106
+ }[];
107
+ }[];
108
+ }[];
109
+ };
110
+ sms: {
111
+ firebase: boolean;
112
+ };
113
+ aiSettings: {
114
+ remy: {
115
+ enable: boolean;
116
+ };
117
+ };
118
+ }>;
119
+ updatePublicSetting(setting: Partial<FdoPublicSetting>): Promise<{
120
+ delivery: {
121
+ feedMe: {
122
+ operatingHours?: {
123
+ 0: {
124
+ hours: {
125
+ end: string;
126
+ start: string;
127
+ }[];
128
+ enable: boolean;
129
+ };
130
+ 2: {
131
+ hours: {
132
+ end: string;
133
+ start: string;
134
+ }[];
135
+ enable: boolean;
136
+ };
137
+ 1: {
138
+ hours: {
139
+ end: string;
140
+ start: string;
141
+ }[];
142
+ enable: boolean;
143
+ };
144
+ 3: {
145
+ hours: {
146
+ end: string;
147
+ start: string;
148
+ }[];
149
+ enable: boolean;
150
+ };
151
+ 4: {
152
+ hours: {
153
+ end: string;
154
+ start: string;
155
+ }[];
156
+ enable: boolean;
157
+ };
158
+ 5: {
159
+ hours: {
160
+ end: string;
161
+ start: string;
162
+ }[];
163
+ enable: boolean;
164
+ };
165
+ 6: {
166
+ hours: {
167
+ end: string;
168
+ start: string;
169
+ }[];
170
+ enable: boolean;
171
+ };
172
+ } | null | undefined;
173
+ maxDistance: number;
174
+ enable: boolean;
175
+ areas: {
176
+ polygon: number[][];
177
+ }[];
178
+ };
179
+ };
180
+ assets: {
181
+ groups: {
182
+ key: "portal" | "pos";
183
+ assets: {
184
+ type: "image" | "lottie";
185
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
186
+ path: string;
187
+ files: {
188
+ responsive?: {
189
+ mobile?: string | null | undefined;
190
+ tablet?: string | null | undefined;
191
+ desktop?: string | null | undefined;
192
+ } | null | undefined;
193
+ url: string;
194
+ createdAt: string;
195
+ config: {
196
+ useWhen: {
197
+ end: string;
198
+ start: string;
199
+ };
200
+ recurring: boolean;
201
+ };
202
+ lastUpdate: string;
203
+ }[];
204
+ }[];
205
+ }[];
206
+ };
207
+ sms: {
208
+ firebase: boolean;
209
+ };
210
+ aiSettings: {
211
+ remy: {
212
+ enable: boolean;
213
+ };
214
+ };
215
+ }>;
216
+ }>;
217
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface EntityDocument {
2
+ _rev: string;
3
+ _id: string;
4
+ _deleted?: boolean;
5
+ }