@road-labs/map-sdk 0.0.28-rc.3 → 0.0.28-rc.6

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/types.d.ts CHANGED
@@ -263,6 +263,7 @@ export type OcpiLocation = {
263
263
  country_code: string;
264
264
  party_id: string;
265
265
  id: string;
266
+ externalId?: string;
266
267
  publish: boolean;
267
268
  publish_allowed_to?: Array<{
268
269
  uid: string;
@@ -16,6 +16,8 @@ export type OpeningTimes = {
16
16
  };
17
17
  type Translate = (key: keyof LabelsType, args?: Record<string, string>) => string;
18
18
  export declare function getWeekdayLabel(t: Translate, weekday: number): string;
19
+ export declare function getWeekdayFullLabel(language: string, weekday: number): string;
20
+ export declare function getTodayWeekday(now?: Date): number;
19
21
  export declare function groupRegularHoursByWeekday(regularHours: RegularHours[] | undefined): Record<number, RegularHours[]>;
20
22
  export declare function formatPeriod(begin: string, end: string): string;
21
23
  export type OpenStatus = {
@@ -23,9 +25,11 @@ export type OpenStatus = {
23
25
  nextChange?: {
24
26
  time: string;
25
27
  label: "opens" | "closes";
28
+ day?: number;
26
29
  };
27
30
  };
28
31
  export declare function isOpenNow(openingTimes: OpeningTimes | undefined, now?: Date): OpenStatus;
29
32
  export declare function getFutureExceptionalPeriods(periods: ExceptionalPeriod[] | undefined, now?: Date): ExceptionalPeriod[];
30
- export declare function formatExceptionalRange(p: ExceptionalPeriod): string;
33
+ export declare function formatExceptionalDate(language: string, dateStr: string): string;
34
+ export declare function formatExceptionalTime(p: ExceptionalPeriod): string;
31
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@road-labs/map-sdk",
3
- "version": "0.0.28-rc.3",
3
+ "version": "0.0.28-rc.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",