@ancon/wildcat-utils 1.22.2 → 1.23.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/api/index.d.ts +3 -1
- package/api/index.js +1 -1
- package/api/index.mjs +10 -6
- package/api/isAcceptedResponse.d.ts +3 -0
- package/api/isAcceptedResponse.js +1 -0
- package/api/isAcceptedResponse.mjs +6 -0
- package/api/isNoContentResponse.d.ts +3 -0
- package/api/isNoContentResponse.js +1 -0
- package/api/isNoContentResponse.mjs +6 -0
- package/hangfire/createHangfirePoller.d.ts +45 -0
- package/hangfire/createHangfirePoller.js +2 -0
- package/hangfire/createHangfirePoller.mjs +1053 -0
- package/hangfire/createMakeHangfireRequest.d.ts +10 -0
- package/hangfire/createMakeHangfireRequest.js +1 -0
- package/hangfire/createMakeHangfireRequest.mjs +21 -0
- package/hangfire/index.d.ts +4 -0
- package/hangfire/index.js +1 -0
- package/hangfire/index.mjs +12 -0
- package/hangfire/isHangfireResponse.d.ts +6 -0
- package/hangfire/isHangfireResponse.js +1 -0
- package/hangfire/isHangfireResponse.mjs +7 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +101 -91
- package/package.json +31 -1
- package/signalr/createUseSignalRHook.d.ts +2 -2
- package/signalr/types.d.ts +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { APIParams, APIPostRequest, APIPutRequest } from '@ancon/wildcat-types';
|
|
2
|
+
import type { AxiosResponse } from 'axios';
|
|
3
|
+
import { HangfirePoller } from './createHangfirePoller';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param hangfirePoller `HangfirePoller` instance from `createHangfirePoller()`
|
|
7
|
+
* @returns `makeHangfireRequest()` callback function
|
|
8
|
+
*/
|
|
9
|
+
declare function createMakeHangfireRequest(hangfirePoller: HangfirePoller): <TData extends Record<string, any>, TParams extends APIParams>(request: APIPostRequest<unknown, TData, TParams> | APIPutRequest<unknown, TData, TParams>, data: TData, params: TParams, groupId: string) => Promise<AxiosResponse>;
|
|
10
|
+
export default createMakeHangfireRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./isHangfireResponse.js");require("../api/isAcceptedResponse.js");function c(e,t){return`${e.config.baseURL??""}/${e.config.url??""}/status/${t}`}function f(e){return async function(i,a,s,u){const r=await i(a,s);if(o(r)){const n=r.data.id;return e.createWorker(u,{workerId:n,url:c(r,n)})}return r}}module.exports=f;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import s from "./isHangfireResponse.mjs";
|
|
2
|
+
import "../api/isAcceptedResponse.mjs";
|
|
3
|
+
function f(e, t) {
|
|
4
|
+
return `${e.config.baseURL ?? ""}/${e.config.url ?? ""}/status/${t}`;
|
|
5
|
+
}
|
|
6
|
+
function k(e) {
|
|
7
|
+
return async function(a, o, i, u) {
|
|
8
|
+
const r = await a(o, i);
|
|
9
|
+
if (s(r)) {
|
|
10
|
+
const n = r.data.id;
|
|
11
|
+
return e.createWorker(u, {
|
|
12
|
+
workerId: n,
|
|
13
|
+
url: f(r, n)
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return r;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
k as default
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./isHangfireResponse.js"),r=require("./createHangfirePoller.js"),i=require("./createMakeHangfireRequest.js");require("../api/isAcceptedResponse.js");require("@ancon/wildcat-types");require("../error/createCodedError.js");require("../api/isNoContentResponse.js");exports.isHangfireResponse=e;exports.createHangfirePoller=r.default;exports.createMakeHangfireRequest=i;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as i } from "./isHangfireResponse.mjs";
|
|
2
|
+
import { default as m } from "./createHangfirePoller.mjs";
|
|
3
|
+
import { default as l } from "./createMakeHangfireRequest.mjs";
|
|
4
|
+
import "../api/isAcceptedResponse.mjs";
|
|
5
|
+
import "@ancon/wildcat-types";
|
|
6
|
+
import "../error/createCodedError.mjs";
|
|
7
|
+
import "../api/isNoContentResponse.mjs";
|
|
8
|
+
export {
|
|
9
|
+
m as createHangfirePoller,
|
|
10
|
+
l as createMakeHangfireRequest,
|
|
11
|
+
i as isHangfireResponse
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("../api/isAcceptedResponse.js");function s(e){return i(e)&&e.data.id!=null}module.exports=s;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.js"),r=require("./shared/isWithinFlag.js"),i=require("./shared/generateId.js"),o=require("./shared/wait.js"),n=require("./outlet/getListOutletOpeningHoursTable.js"),u=require("./outlet/getOutletTagInformation.js"),s=require("./outlet/getOutletAvailabilityInfo.js"),a=require("./outlet/getOutletOfflineOrderFormats.js"),c=require("./outlet/getOutletAvailableOrderFormats.js"),l=require("./outlet/getOutletFormattedDistance.js"),g=require("./outlet/isOutletAcceptingPreOrders.js"),d=require("./outlet/getOutletDeliveryFee.js"),q=require("./outlet/getOutletTodayOpeningTimes.js"),O=require("./outlet/getOutletOrderFormats.js"),_=require("./outlet/serviceDateTimesFromOpeningHours.js"),k=require("./versioning/isVersionALessThanB.js"),m=require("./versioning/cleanVersionString.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.js"),r=require("./shared/isWithinFlag.js"),i=require("./shared/generateId.js"),o=require("./shared/wait.js"),n=require("./outlet/getListOutletOpeningHoursTable.js"),u=require("./outlet/getOutletTagInformation.js"),s=require("./outlet/getOutletAvailabilityInfo.js"),a=require("./outlet/getOutletOfflineOrderFormats.js"),c=require("./outlet/getOutletAvailableOrderFormats.js"),l=require("./outlet/getOutletFormattedDistance.js"),g=require("./outlet/isOutletAcceptingPreOrders.js"),d=require("./outlet/getOutletDeliveryFee.js"),q=require("./outlet/getOutletTodayOpeningTimes.js"),O=require("./outlet/getOutletOrderFormats.js"),_=require("./outlet/serviceDateTimesFromOpeningHours.js"),k=require("./versioning/isVersionALessThanB.js"),m=require("./versioning/cleanVersionString.js"),f=require("./api/getUrlAndParams.js"),p=require("./api/getEndpointWithVersion.js"),S=require("./api/generateBackoffWithEqualJitter.js"),y=require("./api/isAcceptedResponse.js"),P=require("./api/isNoContentResponse.js"),h=require("./string/slugify.js"),T=require("./string/truncate.js"),v=require("./color/lighten.js"),F=require("./color/brighten.js"),D=require("./color/darken.js"),C=require("./color/isDarkBackground.js"),I=require("./user/getFullName.js"),A=require("./user/getFullAddressString.js"),V=require("./logger/Logger.js"),b=require("./logger/types.js"),R=require("./logger/sanitizeAsStringDict.js"),H=require("./printing/getPrinterType.js"),L=require("./printing/isValidPrinter.js"),M=require("./printing/isValidNetworkPrinter.js"),B=require("./printing/isValidStarCloudPrinter.js"),E=require("./printing/isTerminalPrinter.js"),N=require("./number/randomIntFromInterval.js"),U=require("./tables/decodeTableQRPayload.js"),W=require("./checkout/getCheckoutItemModifications.js"),w=require("./checkout/getCheckoutProductName.js"),t=require("./checkout/getCheckoutOrderStatusTexts.js"),x=require("./checkout/getCheckoutItemsMappedByTicketItemStatus.js"),z=require("./checkout/isCheckoutOrderSummary.js"),J=require("./currency/getFormattedCurrency.js"),K=require("./inventory/isDetailedProductOutOfStock.js"),Q=require("./inventory/isDetailedProductVariantOutOfStocks.js"),j=require("./inventory/isMenuTreeProductOutOfStock.js"),G=require("./inventory/isDetailedProductUpSellsOutOfStock.js"),X=require("./inventory/isUpSellProductOutStock.js"),Y=require("./inventory/isDetailedProductOutletStockOutOfStock.js"),Z=require("./inventory/getDetailedProductVariantStock.js"),$=require("./signalr/createUseSignalRHook.js"),ee=require("./signalr/SignalR.js"),te=require("./error/createCodedError.js"),re=require("./error/isCodedError.js"),ie=require("./hangfire/isHangfireResponse.js"),oe=require("./hangfire/createHangfirePoller.js"),ne=require("./hangfire/createMakeHangfireRequest.js");require("moment");require("@ancon/wildcat-types");require("./outlet/types.js");require("./outlet/constants.js");require("./outlet/getOutletCurrentActiveOperatingHour.js");require("./outlet/getMomentFromDateAndTimeString.js");require("./outlet/searchNextOpeningMoment.js");require("lodash");require("compare-versions");require("tinycolor2");require("@ancon/wildcat-printing");require("./currency/getFormattedCurrencyPostfix.js");require("react");require("react-redux");require("@microsoft/signalr");exports.DayOfWeek=e.DayOfWeek;exports.IntervalState=e.IntervalState;exports.IntervalType=e.IntervalType;exports.OrderFormat=e.OrderFormat;exports.isWithinFlag=r;exports.generateId=i;exports.wait=o;exports.getListOutletOpeningHoursTable=n;exports.getOutletTagInformation=u.default;exports.getOutletAvailabilityInfo=s.default;exports.getOutletOfflineOrderFormats=a;exports.getOutletAvailableOrderFormats=c;exports.getOutletFormattedDistance=l;exports.isOutletAcceptingPreOrders=g;exports.getOutletDeliveryFee=d;exports.getOutletTodayOpeningTimes=q;exports.getOutletOrderFormats=O;exports.serviceDateTimesFromOpeningHours=_;exports.isVersionALessThanB=k;exports.cleanVersionString=m;exports.getUrlAndParams=f;exports.getEndpointWithVersion=p;exports.generateBackoffWithEqualJitter=S;exports.isAcceptedResponse=y;exports.isNoContentResponse=P;exports.slugify=h;exports.truncate=T;exports.lighten=v;exports.brighten=F;exports.darken=D;exports.isDarkBackground=C;exports.getFullName=I;exports.getFullAddressString=A;exports.Logger=V;exports.LogLevel=b.LogLevel;exports.sanitizeAsStringDict=R;exports.getPrinterType=H;exports.isValidPrinter=L;exports.isValidNetworkPrinter=M;exports.isValidStarCloudPrinter=B;exports.isTerminalPrinter=E;exports.randomIntFromInterval=N;exports.decodeTableQRPayload=U;exports.getCheckoutGroupedModifications=W;exports.getCheckoutProductName=w;exports.TranslationKey=t.TranslationKey;exports.getCheckoutOrderStatusTexts=t.default;exports.getCheckoutItemsMappedByTicketItemStatus=x;exports.isCheckoutOrderSummary=z;exports.getFormattedCurrency=J;exports.isDetailedProductOutOfStock=K;exports.isDetailedProductVariantOutOfStocks=Q;exports.isMenuTreeProductOutOfStock=j;exports.isDetailedProductUpSellsOutOfStock=G;exports.isUpSellProductOutOfStock=X;exports.isDetailedProductOutletStockOutOfStock=Y;exports.getDetailedProductVariantStock=Z;exports.createUseSignalRHook=$;exports.SignalR=ee;exports.createCodedError=te;exports.isCodedError=re;exports.isHangfireResponse=ie;exports.createHangfirePoller=oe.default;exports.createMakeHangfireRequest=ne;
|
package/index.mjs
CHANGED
|
@@ -3,56 +3,61 @@ import { default as y } from "./shared/isWithinFlag.mjs";
|
|
|
3
3
|
import { default as h } from "./shared/generateId.mjs";
|
|
4
4
|
import { default as C } from "./shared/wait.mjs";
|
|
5
5
|
import { default as v } from "./outlet/getListOutletOpeningHoursTable.mjs";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
6
|
+
import { default as V } from "./outlet/getOutletTagInformation.mjs";
|
|
7
|
+
import { default as H } from "./outlet/getOutletAvailabilityInfo.mjs";
|
|
8
|
+
import { default as L } from "./outlet/getOutletOfflineOrderFormats.mjs";
|
|
9
|
+
import { default as E } from "./outlet/getOutletAvailableOrderFormats.mjs";
|
|
10
|
+
import { default as N } from "./outlet/getOutletFormattedDistance.mjs";
|
|
11
|
+
import { default as W } from "./outlet/isOutletAcceptingPreOrders.mjs";
|
|
12
|
+
import { default as w } from "./outlet/getOutletDeliveryFee.mjs";
|
|
13
13
|
import { default as G } from "./outlet/getOutletTodayOpeningTimes.mjs";
|
|
14
14
|
import { default as K } from "./outlet/getOutletOrderFormats.mjs";
|
|
15
15
|
import { default as j } from "./outlet/serviceDateTimesFromOpeningHours.mjs";
|
|
16
16
|
import { default as Y } from "./versioning/isVersionALessThanB.mjs";
|
|
17
17
|
import { default as _ } from "./versioning/cleanVersionString.mjs";
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import {
|
|
31
|
-
import { default as
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import {
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as $
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
18
|
+
import { default as ee } from "./api/getUrlAndParams.mjs";
|
|
19
|
+
import { default as re } from "./api/getEndpointWithVersion.mjs";
|
|
20
|
+
import { default as ae } from "./api/generateBackoffWithEqualJitter.mjs";
|
|
21
|
+
import { default as se } from "./api/isAcceptedResponse.mjs";
|
|
22
|
+
import { default as de } from "./api/isNoContentResponse.mjs";
|
|
23
|
+
import { default as ie } from "./string/slugify.mjs";
|
|
24
|
+
import { default as pe } from "./string/truncate.mjs";
|
|
25
|
+
import { default as ne } from "./color/lighten.mjs";
|
|
26
|
+
import { default as ce } from "./color/brighten.mjs";
|
|
27
|
+
import { default as ke } from "./color/darken.mjs";
|
|
28
|
+
import { default as Pe } from "./color/isDarkBackground.mjs";
|
|
29
|
+
import { default as ye } from "./user/getFullName.mjs";
|
|
30
|
+
import { default as he } from "./user/getFullAddressString.mjs";
|
|
31
|
+
import { default as Ce } from "./logger/Logger.mjs";
|
|
32
|
+
import { LogLevel as ve } from "./logger/types.mjs";
|
|
33
|
+
import { default as Ve } from "./logger/sanitizeAsStringDict.mjs";
|
|
34
|
+
import { default as He } from "./printing/getPrinterType.mjs";
|
|
35
|
+
import { default as Le } from "./printing/isValidPrinter.mjs";
|
|
36
|
+
import { default as Ee } from "./printing/isValidNetworkPrinter.mjs";
|
|
37
|
+
import { default as Ne } from "./printing/isValidStarCloudPrinter.mjs";
|
|
38
|
+
import { default as We } from "./printing/isTerminalPrinter.mjs";
|
|
39
|
+
import { default as we } from "./number/randomIntFromInterval.mjs";
|
|
40
|
+
import { default as Ge } from "./tables/decodeTableQRPayload.mjs";
|
|
41
|
+
import { default as Ke } from "./checkout/getCheckoutItemModifications.mjs";
|
|
42
|
+
import { default as je } from "./checkout/getCheckoutProductName.mjs";
|
|
43
|
+
import { TranslationKey as Ye, default as Ze } from "./checkout/getCheckoutOrderStatusTexts.mjs";
|
|
44
|
+
import { default as $e } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
45
|
+
import { default as tt } from "./checkout/isCheckoutOrderSummary.mjs";
|
|
46
|
+
import { default as ot } from "./currency/getFormattedCurrency.mjs";
|
|
47
|
+
import { default as ft } from "./inventory/isDetailedProductOutOfStock.mjs";
|
|
48
|
+
import { default as lt } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
|
|
49
|
+
import { default as ut } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
50
|
+
import { default as mt } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
|
|
51
|
+
import { default as xt } from "./inventory/isUpSellProductOutStock.mjs";
|
|
52
|
+
import { default as gt } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
|
|
53
|
+
import { default as Ot } from "./inventory/getDetailedProductVariantStock.mjs";
|
|
54
|
+
import { default as St } from "./signalr/createUseSignalRHook.mjs";
|
|
55
|
+
import { default as Tt } from "./signalr/SignalR.mjs";
|
|
56
|
+
import { default as Ft } from "./error/createCodedError.mjs";
|
|
57
|
+
import { default as Dt } from "./error/isCodedError.mjs";
|
|
58
|
+
import { default as It } from "./hangfire/isHangfireResponse.mjs";
|
|
59
|
+
import { default as At } from "./hangfire/createHangfirePoller.mjs";
|
|
60
|
+
import { default as Rt } from "./hangfire/createMakeHangfireRequest.mjs";
|
|
56
61
|
import "moment";
|
|
57
62
|
import "@ancon/wildcat-types";
|
|
58
63
|
import "./outlet/types.mjs";
|
|
@@ -72,60 +77,65 @@ export {
|
|
|
72
77
|
O as DayOfWeek,
|
|
73
78
|
k as IntervalState,
|
|
74
79
|
S as IntervalType,
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
ve as LogLevel,
|
|
81
|
+
Ce as Logger,
|
|
77
82
|
P as OrderFormat,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
Tt as SignalR,
|
|
84
|
+
Ye as TranslationKey,
|
|
85
|
+
ce as brighten,
|
|
81
86
|
_ as cleanVersionString,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
Ft as createCodedError,
|
|
88
|
+
At as createHangfirePoller,
|
|
89
|
+
Rt as createMakeHangfireRequest,
|
|
90
|
+
St as createUseSignalRHook,
|
|
91
|
+
ke as darken,
|
|
92
|
+
Ge as decodeTableQRPayload,
|
|
93
|
+
ae as generateBackoffWithEqualJitter,
|
|
87
94
|
h as generateId,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
Ke as getCheckoutGroupedModifications,
|
|
96
|
+
$e as getCheckoutItemsMappedByTicketItemStatus,
|
|
97
|
+
Ze as getCheckoutOrderStatusTexts,
|
|
98
|
+
je as getCheckoutProductName,
|
|
99
|
+
Ot as getDetailedProductVariantStock,
|
|
100
|
+
re as getEndpointWithVersion,
|
|
101
|
+
ot as getFormattedCurrency,
|
|
102
|
+
he as getFullAddressString,
|
|
103
|
+
ye as getFullName,
|
|
97
104
|
v as getListOutletOpeningHoursTable,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
H as getOutletAvailabilityInfo,
|
|
106
|
+
E as getOutletAvailableOrderFormats,
|
|
107
|
+
w as getOutletDeliveryFee,
|
|
108
|
+
N as getOutletFormattedDistance,
|
|
109
|
+
L as getOutletOfflineOrderFormats,
|
|
103
110
|
K as getOutletOrderFormats,
|
|
104
|
-
|
|
111
|
+
V as getOutletTagInformation,
|
|
105
112
|
G as getOutletTodayOpeningTimes,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
He as getPrinterType,
|
|
114
|
+
ee as getUrlAndParams,
|
|
115
|
+
se as isAcceptedResponse,
|
|
116
|
+
tt as isCheckoutOrderSummary,
|
|
117
|
+
Dt as isCodedError,
|
|
118
|
+
Pe as isDarkBackground,
|
|
119
|
+
ft as isDetailedProductOutOfStock,
|
|
120
|
+
gt as isDetailedProductOutletStockOutOfStock,
|
|
121
|
+
mt as isDetailedProductUpSellsOutOfStock,
|
|
122
|
+
lt as isDetailedProductVariantOutOfStocks,
|
|
123
|
+
It as isHangfireResponse,
|
|
124
|
+
ut as isMenuTreeProductOutOfStock,
|
|
125
|
+
de as isNoContentResponse,
|
|
126
|
+
W as isOutletAcceptingPreOrders,
|
|
127
|
+
We as isTerminalPrinter,
|
|
128
|
+
xt as isUpSellProductOutOfStock,
|
|
129
|
+
Ee as isValidNetworkPrinter,
|
|
130
|
+
Le as isValidPrinter,
|
|
131
|
+
Ne as isValidStarCloudPrinter,
|
|
122
132
|
Y as isVersionALessThanB,
|
|
123
133
|
y as isWithinFlag,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
134
|
+
ne as lighten,
|
|
135
|
+
we as randomIntFromInterval,
|
|
136
|
+
Ve as sanitizeAsStringDict,
|
|
127
137
|
j as serviceDateTimesFromOpeningHours,
|
|
128
|
-
|
|
129
|
-
|
|
138
|
+
ie as slugify,
|
|
139
|
+
pe as truncate,
|
|
130
140
|
C as wait
|
|
131
141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancon/wildcat-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
"require": "./api/index.js",
|
|
27
27
|
"types": "./api/index.d.ts"
|
|
28
28
|
},
|
|
29
|
+
"./api/isAcceptedResponse": {
|
|
30
|
+
"import": "./api/isAcceptedResponse.mjs",
|
|
31
|
+
"require": "./api/isAcceptedResponse.js",
|
|
32
|
+
"types": "./api/isAcceptedResponse.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./api/isNoContentResponse": {
|
|
35
|
+
"import": "./api/isNoContentResponse.mjs",
|
|
36
|
+
"require": "./api/isNoContentResponse.js",
|
|
37
|
+
"types": "./api/isNoContentResponse.d.ts"
|
|
38
|
+
},
|
|
29
39
|
"./checkout/getCheckoutItemModifications": {
|
|
30
40
|
"import": "./checkout/getCheckoutItemModifications.mjs",
|
|
31
41
|
"require": "./checkout/getCheckoutItemModifications.js",
|
|
@@ -111,6 +121,26 @@
|
|
|
111
121
|
"require": "./error/isCodedError.js",
|
|
112
122
|
"types": "./error/isCodedError.d.ts"
|
|
113
123
|
},
|
|
124
|
+
"./hangfire/createHangfirePoller": {
|
|
125
|
+
"import": "./hangfire/createHangfirePoller.mjs",
|
|
126
|
+
"require": "./hangfire/createHangfirePoller.js",
|
|
127
|
+
"types": "./hangfire/createHangfirePoller.d.ts"
|
|
128
|
+
},
|
|
129
|
+
"./hangfire/createMakeHangfireRequest": {
|
|
130
|
+
"import": "./hangfire/createMakeHangfireRequest.mjs",
|
|
131
|
+
"require": "./hangfire/createMakeHangfireRequest.js",
|
|
132
|
+
"types": "./hangfire/createMakeHangfireRequest.d.ts"
|
|
133
|
+
},
|
|
134
|
+
"./hangfire": {
|
|
135
|
+
"import": "./hangfire/index.mjs",
|
|
136
|
+
"require": "./hangfire/index.js",
|
|
137
|
+
"types": "./hangfire/index.d.ts"
|
|
138
|
+
},
|
|
139
|
+
"./hangfire/isHangfireResponse": {
|
|
140
|
+
"import": "./hangfire/isHangfireResponse.mjs",
|
|
141
|
+
"require": "./hangfire/isHangfireResponse.js",
|
|
142
|
+
"types": "./hangfire/isHangfireResponse.d.ts"
|
|
143
|
+
},
|
|
114
144
|
".": {
|
|
115
145
|
"import": "./index.mjs",
|
|
116
146
|
"require": "./index.js",
|
|
@@ -21,8 +21,8 @@ declare function createUseSignalRHook<RootState = unknown>(signalRConfig: Signal
|
|
|
21
21
|
isHubConnected: boolean;
|
|
22
22
|
join: (group: string) => Promise<void>;
|
|
23
23
|
leave: (group: string) => Promise<void>;
|
|
24
|
-
subscribe:
|
|
25
|
-
unsubscribe:
|
|
24
|
+
subscribe: (signal: SignalRSignalName, listener: SignalREventListener, shouldSkipOwnClient?: boolean) => () => void;
|
|
25
|
+
unsubscribe: (signal: SignalRSignalName, listener: SignalREventListener) => void;
|
|
26
26
|
getHubConnectionId: () => string | null;
|
|
27
27
|
};
|
|
28
28
|
export default createUseSignalRHook;
|
package/signalr/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SignalRHubName } from '@ancon/wildcat-types';
|
|
2
2
|
import Logger from '../logger/Logger';
|
|
3
|
-
export declare type SignalREventListener<T =
|
|
3
|
+
export declare type SignalREventListener<T = any> = (data: T) => void;
|
|
4
4
|
export declare type SignalRConfig = {
|
|
5
5
|
/** @example "https://notification-api.ancon.io" */
|
|
6
6
|
signalRApiUrl: string;
|