@open-tender/utils 0.0.34 → 0.0.36
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.
|
@@ -50,7 +50,7 @@ export declare const isoToDateStrMinutes: (iso: string, tz: Timezone | TimezoneP
|
|
|
50
50
|
};
|
|
51
51
|
export declare const makeReadableDateStrFromIso: (iso: string, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
52
52
|
export declare const makeRequestedIso: (requestedAt: string) => string;
|
|
53
|
-
export declare const makeRequestedAtStr: (requestedAt: string, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
53
|
+
export declare const makeRequestedAtStr: (requestedAt: string | null, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
54
54
|
export declare const makeEstimatedTime: (requestedAt: ISOString | string, revenueCenter: Partial<CustomerRevenueCenter>, serviceType: ServiceType, verbose?: boolean) => string | null;
|
|
55
55
|
export declare const makeOppositeTimes: (times: Array<number>, interval: number, min?: number, max?: number) => Array<number>;
|
|
56
56
|
export declare const makeWeekdaysExcluded: (validTimes: {
|
|
@@ -3,7 +3,7 @@ export declare const isString: (str: any) => boolean;
|
|
|
3
3
|
export declare const isObject: (obj: any) => boolean;
|
|
4
4
|
export declare const isEmpty: (obj?: Record<string | number, unknown> | null) => boolean;
|
|
5
5
|
export declare const isNum: (s: string) => boolean;
|
|
6
|
-
export declare const contains: (arr: Array<any
|
|
6
|
+
export declare const contains: (arr: Array<any> | string, values: Array<any>) => boolean;
|
|
7
7
|
export declare const slugify: (text: string) => string;
|
|
8
8
|
export declare const stripTags: (s: string) => string;
|
|
9
9
|
export declare const serialize: (obj: Record<string | number, string | number | boolean>) => string;
|
|
@@ -50,7 +50,7 @@ export declare const isoToDateStrMinutes: (iso: string, tz: Timezone | TimezoneP
|
|
|
50
50
|
};
|
|
51
51
|
export declare const makeReadableDateStrFromIso: (iso: string, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
52
52
|
export declare const makeRequestedIso: (requestedAt: string) => string;
|
|
53
|
-
export declare const makeRequestedAtStr: (requestedAt: string, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
53
|
+
export declare const makeRequestedAtStr: (requestedAt: string | null, tz: Timezone | TimezonePython, verbose?: boolean) => string;
|
|
54
54
|
export declare const makeEstimatedTime: (requestedAt: ISOString | string, revenueCenter: Partial<CustomerRevenueCenter>, serviceType: ServiceType, verbose?: boolean) => string | null;
|
|
55
55
|
export declare const makeOppositeTimes: (times: Array<number>, interval: number, min?: number, max?: number) => Array<number>;
|
|
56
56
|
export declare const makeWeekdaysExcluded: (validTimes: {
|
|
@@ -3,7 +3,7 @@ export declare const isString: (str: any) => boolean;
|
|
|
3
3
|
export declare const isObject: (obj: any) => boolean;
|
|
4
4
|
export declare const isEmpty: (obj?: Record<string | number, unknown> | null) => boolean;
|
|
5
5
|
export declare const isNum: (s: string) => boolean;
|
|
6
|
-
export declare const contains: (arr: Array<any
|
|
6
|
+
export declare const contains: (arr: Array<any> | string, values: Array<any>) => boolean;
|
|
7
7
|
export declare const slugify: (text: string) => string;
|
|
8
8
|
export declare const stripTags: (s: string) => string;
|
|
9
9
|
export declare const serialize: (obj: Record<string | number, string | number | boolean>) => string;
|
package/package.json
CHANGED