@feedmepos/mf-common 1.29.36-dev.1 → 1.29.36-dev.2

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.
@@ -0,0 +1,18 @@
1
+ import type { FdoFoodCourtMemberV2 } from "@feedmepos/entity/ordering";
2
+ export interface FoodCourtMemberGroups {
3
+ active: FdoFoodCourtMemberV2[];
4
+ invited: FdoFoodCourtMemberV2[];
5
+ }
6
+ /**
7
+ * The restaurants currently in a food court: joined ones, and invites still
8
+ * pending. Declined, revoked and removed rows are history, and an invite past
9
+ * `inviteExpiresAt` counts as expired although the service never stores that.
10
+ */
11
+ export declare function groupFoodCourtMembers(members: FdoFoodCourtMemberV2[], now?: number): FoodCourtMemberGroups;
12
+ /**
13
+ * What a member row is called. A member carries only its restaurant's id, and the
14
+ * portal cannot read restaurants of other businesses, so the stall's own name in
15
+ * this court comes first, then its unit number.
16
+ */
17
+ export declare function foodCourtMemberTitle(member: FdoFoodCourtMemberV2): string;
18
+ //# sourceMappingURL=foodCourtMembers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foodCourtMembers.d.ts","sourceRoot":"","sources":["../../../src/utils/foodCourtMembers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,oBAAoB,EAAE,CAAA;IAC9B,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC;AAmBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,oBAAoB,EAAE,EAC/B,GAAG,SAAa,GACf,qBAAqB,CAMvB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAEzE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-common",
3
- "version": "1.29.36-dev.1",
3
+ "version": "1.29.36-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"