@juhuu/sdk-ts 1.2.237 → 1.2.239
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/index.d.mts +118 -8
- package/dist/index.d.ts +118 -8
- package/dist/index.js +49 -0
- package/dist/index.mjs +49 -0
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -736,14 +736,46 @@ interface LocationUpdateBlock extends BaseBlock {
|
|
|
736
736
|
type: "location.update";
|
|
737
737
|
in: {
|
|
738
738
|
locationId: DataEdgeConnection;
|
|
739
|
-
|
|
739
|
+
latitude: DataEdgeConnection;
|
|
740
|
+
longitude: DataEdgeConnection;
|
|
741
|
+
purposeArray: DataEdgeConnection;
|
|
742
|
+
circumstanceArray: DataEdgeConnection;
|
|
743
|
+
rentOfferArray: DataEdgeConnection;
|
|
744
|
+
reservationOfferArray: DataEdgeConnection;
|
|
745
|
+
address: DataEdgeConnection;
|
|
746
|
+
name: DataEdgeConnection;
|
|
747
|
+
termId: DataEdgeConnection;
|
|
748
|
+
deviceId: DataEdgeConnection;
|
|
749
|
+
useableDeviceGroupLocationId: DataEdgeConnection;
|
|
750
|
+
maximumConcurrentSessions: DataEdgeConnection;
|
|
751
|
+
surveyEnabled: DataEdgeConnection;
|
|
752
|
+
disabled: DataEdgeConnection;
|
|
753
|
+
accountingAreaId: DataEdgeConnection;
|
|
754
|
+
deviceIdArray: DataEdgeConnection;
|
|
755
|
+
rentableDeviceGroupLocationId: DataEdgeConnection;
|
|
740
756
|
};
|
|
741
757
|
out: {
|
|
742
758
|
location: DataEdgeConnection;
|
|
743
759
|
};
|
|
744
760
|
data: {
|
|
745
761
|
locationId?: string;
|
|
746
|
-
|
|
762
|
+
latitude?: number | null;
|
|
763
|
+
longitude?: number | null;
|
|
764
|
+
purposeArray?: Purpose[] | null;
|
|
765
|
+
circumstanceArray?: Circumstance[] | null;
|
|
766
|
+
rentOfferArray?: Offer[] | null;
|
|
767
|
+
reservationOfferArray?: Offer[] | null;
|
|
768
|
+
address?: Address | null;
|
|
769
|
+
name?: string | null;
|
|
770
|
+
termId?: string | null;
|
|
771
|
+
deviceId?: string | null;
|
|
772
|
+
useableDeviceGroupLocationId?: string | null;
|
|
773
|
+
maximumConcurrentSessions?: number | null;
|
|
774
|
+
surveyEnabled?: boolean | null;
|
|
775
|
+
disabled?: boolean | null;
|
|
776
|
+
accountingAreaId?: string | null;
|
|
777
|
+
deviceIdArray?: string[] | null;
|
|
778
|
+
rentableDeviceGroupLocationId?: string | null;
|
|
747
779
|
};
|
|
748
780
|
}
|
|
749
781
|
interface LocationUpdateBlockInputs {
|
|
@@ -908,12 +940,20 @@ interface MapDestructureBlockInputs {
|
|
|
908
940
|
}
|
|
909
941
|
interface IfBlock extends BaseBlock {
|
|
910
942
|
type: "control.if";
|
|
911
|
-
in: Record<string,
|
|
943
|
+
in: Record<string, DataEdgeConnection>;
|
|
912
944
|
out: Record<string, ControlEdgeConnection>;
|
|
913
945
|
data: {
|
|
914
946
|
condition: JsonLogic;
|
|
915
947
|
};
|
|
916
948
|
}
|
|
949
|
+
interface SwitchBlock extends BaseBlock {
|
|
950
|
+
type: "control.switch";
|
|
951
|
+
in: Record<string, DataEdgeConnection>;
|
|
952
|
+
out: Record<string, ControlEdgeConnection>;
|
|
953
|
+
data: {
|
|
954
|
+
expression: JsonLogic;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
917
957
|
interface HttpPatchBlock extends BaseBlock {
|
|
918
958
|
type: "http.patch";
|
|
919
959
|
in: {
|
|
@@ -1043,6 +1083,20 @@ interface MqttSendBlockInputs {
|
|
|
1043
1083
|
password: string | null;
|
|
1044
1084
|
connectUrl: string;
|
|
1045
1085
|
}
|
|
1086
|
+
interface FlowExecuteBlock extends BaseBlock {
|
|
1087
|
+
type: "flow.execute";
|
|
1088
|
+
in: {
|
|
1089
|
+
flowId: DataEdgeConnection;
|
|
1090
|
+
} & Record<string, DataEdgeConnection>;
|
|
1091
|
+
out: Record<string, DataEdgeConnection>;
|
|
1092
|
+
data: {
|
|
1093
|
+
flowId?: string;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
interface FlowExecuteBlockInputs {
|
|
1097
|
+
flowId: string;
|
|
1098
|
+
[key: string]: any;
|
|
1099
|
+
}
|
|
1046
1100
|
interface EndCustomBlock extends BaseBlock {
|
|
1047
1101
|
type: "end.custom";
|
|
1048
1102
|
in: Record<string, DataEdgeConnection>;
|
|
@@ -1051,8 +1105,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1051
1105
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1052
1106
|
};
|
|
1053
1107
|
}
|
|
1054
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
1055
|
-
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1108
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | EndCustomBlock;
|
|
1109
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1056
1110
|
interface FlowDataEdge {
|
|
1057
1111
|
id: string;
|
|
1058
1112
|
type: "data";
|
|
@@ -1291,6 +1345,11 @@ declare class ProductService extends Service {
|
|
|
1291
1345
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
|
1292
1346
|
}
|
|
1293
1347
|
|
|
1348
|
+
declare class WebsocketsService extends Service {
|
|
1349
|
+
constructor(config: JUHUU.SetupConfig);
|
|
1350
|
+
connect(WebsocketConnectOptions?: JUHUU.Websocket.Connect.Options): JUHUU.Websocket.Connect.Response;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1294
1353
|
declare class SettingsService extends Service {
|
|
1295
1354
|
constructor(config: JUHUU.SetupConfig);
|
|
1296
1355
|
retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
|
|
@@ -1508,6 +1567,7 @@ declare class Juhuu {
|
|
|
1508
1567
|
readonly terms: TermsService;
|
|
1509
1568
|
readonly tariffs: TariffsService;
|
|
1510
1569
|
readonly products: ProductService;
|
|
1570
|
+
readonly websockets: WebsocketsService;
|
|
1511
1571
|
readonly settings: SettingsService;
|
|
1512
1572
|
readonly accountingAreas: AccountingAreasService;
|
|
1513
1573
|
readonly payouts: PayoutsService;
|
|
@@ -3393,10 +3453,10 @@ declare namespace JUHUU {
|
|
|
3393
3453
|
name?: string;
|
|
3394
3454
|
address?: Partial<Address>;
|
|
3395
3455
|
deviceIdArray?: string[];
|
|
3396
|
-
deviceId?: string;
|
|
3456
|
+
deviceId?: string | null;
|
|
3397
3457
|
maximumConcurrentSessions?: number;
|
|
3398
3458
|
surveyEnabled?: boolean;
|
|
3399
|
-
accountingAreaId?: string;
|
|
3459
|
+
accountingAreaId?: string | null;
|
|
3400
3460
|
latitude?: number;
|
|
3401
3461
|
longitude?: number;
|
|
3402
3462
|
purposeArray?: Purpose[];
|
|
@@ -3404,6 +3464,8 @@ declare namespace JUHUU {
|
|
|
3404
3464
|
rentOfferArray?: Offer[];
|
|
3405
3465
|
reservationOfferArray?: Offer[];
|
|
3406
3466
|
disabled?: boolean;
|
|
3467
|
+
rentableDeviceGroupLocationId?: string | null;
|
|
3468
|
+
termId?: string | null;
|
|
3407
3469
|
};
|
|
3408
3470
|
type Options = JUHUU.RequestOptions;
|
|
3409
3471
|
type Response = {
|
|
@@ -4573,6 +4635,54 @@ declare namespace JUHUU {
|
|
|
4573
4635
|
type Response = JUHUU.ConnectorMessage.Object[];
|
|
4574
4636
|
}
|
|
4575
4637
|
}
|
|
4638
|
+
namespace Websocket {
|
|
4639
|
+
namespace Connect {
|
|
4640
|
+
type Params = {};
|
|
4641
|
+
type Options = JUHUU.RequestOptions;
|
|
4642
|
+
type Response = {
|
|
4643
|
+
subscribe: (rooms: string[]) => void;
|
|
4644
|
+
unsubscribe: (rooms: string[]) => void;
|
|
4645
|
+
subscribeQuery: (payload: JUHUU.Websocket.SubscribeQuery.Params) => void;
|
|
4646
|
+
unsubscribeQuery: (payload: JUHUU.Websocket.UnsubscribeQuery.Params) => void;
|
|
4647
|
+
rpc: (payload: JUHUU.Websocket.Rpc.Params) => Promise<JUHUU.Websocket.Rpc.Response>;
|
|
4648
|
+
onQueryUpdate: (callback: (message: JUHUU.Websocket.QueryUpdate) => void) => void;
|
|
4649
|
+
close: () => void;
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
namespace SubscribeQuery {
|
|
4653
|
+
type Params = {
|
|
4654
|
+
subId: string;
|
|
4655
|
+
method: "GET";
|
|
4656
|
+
path: string;
|
|
4657
|
+
query?: Record<string, unknown>;
|
|
4658
|
+
};
|
|
4659
|
+
}
|
|
4660
|
+
namespace UnsubscribeQuery {
|
|
4661
|
+
type Params = {
|
|
4662
|
+
subId: string;
|
|
4663
|
+
};
|
|
4664
|
+
}
|
|
4665
|
+
namespace Rpc {
|
|
4666
|
+
type Params = {
|
|
4667
|
+
id: string;
|
|
4668
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
4669
|
+
path: string;
|
|
4670
|
+
query?: Record<string, unknown>;
|
|
4671
|
+
body?: unknown;
|
|
4672
|
+
headers?: Record<string, unknown>;
|
|
4673
|
+
};
|
|
4674
|
+
type Response = {
|
|
4675
|
+
id: string;
|
|
4676
|
+
status: number;
|
|
4677
|
+
data?: unknown;
|
|
4678
|
+
error?: unknown;
|
|
4679
|
+
};
|
|
4680
|
+
}
|
|
4681
|
+
type QueryUpdate = {
|
|
4682
|
+
subId: string;
|
|
4683
|
+
data: unknown;
|
|
4684
|
+
};
|
|
4685
|
+
}
|
|
4576
4686
|
}
|
|
4577
4687
|
|
|
4578
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
4688
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -736,14 +736,46 @@ interface LocationUpdateBlock extends BaseBlock {
|
|
|
736
736
|
type: "location.update";
|
|
737
737
|
in: {
|
|
738
738
|
locationId: DataEdgeConnection;
|
|
739
|
-
|
|
739
|
+
latitude: DataEdgeConnection;
|
|
740
|
+
longitude: DataEdgeConnection;
|
|
741
|
+
purposeArray: DataEdgeConnection;
|
|
742
|
+
circumstanceArray: DataEdgeConnection;
|
|
743
|
+
rentOfferArray: DataEdgeConnection;
|
|
744
|
+
reservationOfferArray: DataEdgeConnection;
|
|
745
|
+
address: DataEdgeConnection;
|
|
746
|
+
name: DataEdgeConnection;
|
|
747
|
+
termId: DataEdgeConnection;
|
|
748
|
+
deviceId: DataEdgeConnection;
|
|
749
|
+
useableDeviceGroupLocationId: DataEdgeConnection;
|
|
750
|
+
maximumConcurrentSessions: DataEdgeConnection;
|
|
751
|
+
surveyEnabled: DataEdgeConnection;
|
|
752
|
+
disabled: DataEdgeConnection;
|
|
753
|
+
accountingAreaId: DataEdgeConnection;
|
|
754
|
+
deviceIdArray: DataEdgeConnection;
|
|
755
|
+
rentableDeviceGroupLocationId: DataEdgeConnection;
|
|
740
756
|
};
|
|
741
757
|
out: {
|
|
742
758
|
location: DataEdgeConnection;
|
|
743
759
|
};
|
|
744
760
|
data: {
|
|
745
761
|
locationId?: string;
|
|
746
|
-
|
|
762
|
+
latitude?: number | null;
|
|
763
|
+
longitude?: number | null;
|
|
764
|
+
purposeArray?: Purpose[] | null;
|
|
765
|
+
circumstanceArray?: Circumstance[] | null;
|
|
766
|
+
rentOfferArray?: Offer[] | null;
|
|
767
|
+
reservationOfferArray?: Offer[] | null;
|
|
768
|
+
address?: Address | null;
|
|
769
|
+
name?: string | null;
|
|
770
|
+
termId?: string | null;
|
|
771
|
+
deviceId?: string | null;
|
|
772
|
+
useableDeviceGroupLocationId?: string | null;
|
|
773
|
+
maximumConcurrentSessions?: number | null;
|
|
774
|
+
surveyEnabled?: boolean | null;
|
|
775
|
+
disabled?: boolean | null;
|
|
776
|
+
accountingAreaId?: string | null;
|
|
777
|
+
deviceIdArray?: string[] | null;
|
|
778
|
+
rentableDeviceGroupLocationId?: string | null;
|
|
747
779
|
};
|
|
748
780
|
}
|
|
749
781
|
interface LocationUpdateBlockInputs {
|
|
@@ -908,12 +940,20 @@ interface MapDestructureBlockInputs {
|
|
|
908
940
|
}
|
|
909
941
|
interface IfBlock extends BaseBlock {
|
|
910
942
|
type: "control.if";
|
|
911
|
-
in: Record<string,
|
|
943
|
+
in: Record<string, DataEdgeConnection>;
|
|
912
944
|
out: Record<string, ControlEdgeConnection>;
|
|
913
945
|
data: {
|
|
914
946
|
condition: JsonLogic;
|
|
915
947
|
};
|
|
916
948
|
}
|
|
949
|
+
interface SwitchBlock extends BaseBlock {
|
|
950
|
+
type: "control.switch";
|
|
951
|
+
in: Record<string, DataEdgeConnection>;
|
|
952
|
+
out: Record<string, ControlEdgeConnection>;
|
|
953
|
+
data: {
|
|
954
|
+
expression: JsonLogic;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
917
957
|
interface HttpPatchBlock extends BaseBlock {
|
|
918
958
|
type: "http.patch";
|
|
919
959
|
in: {
|
|
@@ -1043,6 +1083,20 @@ interface MqttSendBlockInputs {
|
|
|
1043
1083
|
password: string | null;
|
|
1044
1084
|
connectUrl: string;
|
|
1045
1085
|
}
|
|
1086
|
+
interface FlowExecuteBlock extends BaseBlock {
|
|
1087
|
+
type: "flow.execute";
|
|
1088
|
+
in: {
|
|
1089
|
+
flowId: DataEdgeConnection;
|
|
1090
|
+
} & Record<string, DataEdgeConnection>;
|
|
1091
|
+
out: Record<string, DataEdgeConnection>;
|
|
1092
|
+
data: {
|
|
1093
|
+
flowId?: string;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
interface FlowExecuteBlockInputs {
|
|
1097
|
+
flowId: string;
|
|
1098
|
+
[key: string]: any;
|
|
1099
|
+
}
|
|
1046
1100
|
interface EndCustomBlock extends BaseBlock {
|
|
1047
1101
|
type: "end.custom";
|
|
1048
1102
|
in: Record<string, DataEdgeConnection>;
|
|
@@ -1051,8 +1105,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1051
1105
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1052
1106
|
};
|
|
1053
1107
|
}
|
|
1054
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
1055
|
-
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1108
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | EndCustomBlock;
|
|
1109
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1056
1110
|
interface FlowDataEdge {
|
|
1057
1111
|
id: string;
|
|
1058
1112
|
type: "data";
|
|
@@ -1291,6 +1345,11 @@ declare class ProductService extends Service {
|
|
|
1291
1345
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
|
1292
1346
|
}
|
|
1293
1347
|
|
|
1348
|
+
declare class WebsocketsService extends Service {
|
|
1349
|
+
constructor(config: JUHUU.SetupConfig);
|
|
1350
|
+
connect(WebsocketConnectOptions?: JUHUU.Websocket.Connect.Options): JUHUU.Websocket.Connect.Response;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1294
1353
|
declare class SettingsService extends Service {
|
|
1295
1354
|
constructor(config: JUHUU.SetupConfig);
|
|
1296
1355
|
retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
|
|
@@ -1508,6 +1567,7 @@ declare class Juhuu {
|
|
|
1508
1567
|
readonly terms: TermsService;
|
|
1509
1568
|
readonly tariffs: TariffsService;
|
|
1510
1569
|
readonly products: ProductService;
|
|
1570
|
+
readonly websockets: WebsocketsService;
|
|
1511
1571
|
readonly settings: SettingsService;
|
|
1512
1572
|
readonly accountingAreas: AccountingAreasService;
|
|
1513
1573
|
readonly payouts: PayoutsService;
|
|
@@ -3393,10 +3453,10 @@ declare namespace JUHUU {
|
|
|
3393
3453
|
name?: string;
|
|
3394
3454
|
address?: Partial<Address>;
|
|
3395
3455
|
deviceIdArray?: string[];
|
|
3396
|
-
deviceId?: string;
|
|
3456
|
+
deviceId?: string | null;
|
|
3397
3457
|
maximumConcurrentSessions?: number;
|
|
3398
3458
|
surveyEnabled?: boolean;
|
|
3399
|
-
accountingAreaId?: string;
|
|
3459
|
+
accountingAreaId?: string | null;
|
|
3400
3460
|
latitude?: number;
|
|
3401
3461
|
longitude?: number;
|
|
3402
3462
|
purposeArray?: Purpose[];
|
|
@@ -3404,6 +3464,8 @@ declare namespace JUHUU {
|
|
|
3404
3464
|
rentOfferArray?: Offer[];
|
|
3405
3465
|
reservationOfferArray?: Offer[];
|
|
3406
3466
|
disabled?: boolean;
|
|
3467
|
+
rentableDeviceGroupLocationId?: string | null;
|
|
3468
|
+
termId?: string | null;
|
|
3407
3469
|
};
|
|
3408
3470
|
type Options = JUHUU.RequestOptions;
|
|
3409
3471
|
type Response = {
|
|
@@ -4573,6 +4635,54 @@ declare namespace JUHUU {
|
|
|
4573
4635
|
type Response = JUHUU.ConnectorMessage.Object[];
|
|
4574
4636
|
}
|
|
4575
4637
|
}
|
|
4638
|
+
namespace Websocket {
|
|
4639
|
+
namespace Connect {
|
|
4640
|
+
type Params = {};
|
|
4641
|
+
type Options = JUHUU.RequestOptions;
|
|
4642
|
+
type Response = {
|
|
4643
|
+
subscribe: (rooms: string[]) => void;
|
|
4644
|
+
unsubscribe: (rooms: string[]) => void;
|
|
4645
|
+
subscribeQuery: (payload: JUHUU.Websocket.SubscribeQuery.Params) => void;
|
|
4646
|
+
unsubscribeQuery: (payload: JUHUU.Websocket.UnsubscribeQuery.Params) => void;
|
|
4647
|
+
rpc: (payload: JUHUU.Websocket.Rpc.Params) => Promise<JUHUU.Websocket.Rpc.Response>;
|
|
4648
|
+
onQueryUpdate: (callback: (message: JUHUU.Websocket.QueryUpdate) => void) => void;
|
|
4649
|
+
close: () => void;
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
namespace SubscribeQuery {
|
|
4653
|
+
type Params = {
|
|
4654
|
+
subId: string;
|
|
4655
|
+
method: "GET";
|
|
4656
|
+
path: string;
|
|
4657
|
+
query?: Record<string, unknown>;
|
|
4658
|
+
};
|
|
4659
|
+
}
|
|
4660
|
+
namespace UnsubscribeQuery {
|
|
4661
|
+
type Params = {
|
|
4662
|
+
subId: string;
|
|
4663
|
+
};
|
|
4664
|
+
}
|
|
4665
|
+
namespace Rpc {
|
|
4666
|
+
type Params = {
|
|
4667
|
+
id: string;
|
|
4668
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
4669
|
+
path: string;
|
|
4670
|
+
query?: Record<string, unknown>;
|
|
4671
|
+
body?: unknown;
|
|
4672
|
+
headers?: Record<string, unknown>;
|
|
4673
|
+
};
|
|
4674
|
+
type Response = {
|
|
4675
|
+
id: string;
|
|
4676
|
+
status: number;
|
|
4677
|
+
data?: unknown;
|
|
4678
|
+
error?: unknown;
|
|
4679
|
+
};
|
|
4680
|
+
}
|
|
4681
|
+
type QueryUpdate = {
|
|
4682
|
+
subId: string;
|
|
4683
|
+
data: unknown;
|
|
4684
|
+
};
|
|
4685
|
+
}
|
|
4576
4686
|
}
|
|
4577
4687
|
|
|
4578
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
4688
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.js
CHANGED
|
@@ -1838,6 +1838,53 @@ var ProductService = class extends Service {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
};
|
|
1840
1840
|
|
|
1841
|
+
// src/websockets/websockets.service.ts
|
|
1842
|
+
var WebsocketsService = class extends Service {
|
|
1843
|
+
constructor(config) {
|
|
1844
|
+
super(config);
|
|
1845
|
+
}
|
|
1846
|
+
connect(WebsocketConnectOptions) {
|
|
1847
|
+
const socket = super.connectToWebsocket({ url: "websocket" });
|
|
1848
|
+
const pendingRpcResponses = /* @__PURE__ */ new Map();
|
|
1849
|
+
socket.on("rpc.response", (message) => {
|
|
1850
|
+
const resolver = pendingRpcResponses.get(message.id);
|
|
1851
|
+
if (resolver !== void 0) {
|
|
1852
|
+
resolver(message);
|
|
1853
|
+
pendingRpcResponses.delete(message.id);
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
const onQueryUpdate = (callback) => {
|
|
1857
|
+
socket.on("query.update", (message) => {
|
|
1858
|
+
callback(message);
|
|
1859
|
+
});
|
|
1860
|
+
};
|
|
1861
|
+
return {
|
|
1862
|
+
subscribe: (rooms) => {
|
|
1863
|
+
socket.emit("subscribe", { rooms });
|
|
1864
|
+
},
|
|
1865
|
+
unsubscribe: (rooms) => {
|
|
1866
|
+
socket.emit("unsubscribe", { rooms });
|
|
1867
|
+
},
|
|
1868
|
+
subscribeQuery: (payload) => {
|
|
1869
|
+
socket.emit("subscribeQuery", payload);
|
|
1870
|
+
},
|
|
1871
|
+
unsubscribeQuery: (payload) => {
|
|
1872
|
+
socket.emit("unsubscribeQuery", payload);
|
|
1873
|
+
},
|
|
1874
|
+
rpc: async (payload) => {
|
|
1875
|
+
return await new Promise((resolve) => {
|
|
1876
|
+
pendingRpcResponses.set(payload.id, resolve);
|
|
1877
|
+
socket.emit("rpc", payload);
|
|
1878
|
+
});
|
|
1879
|
+
},
|
|
1880
|
+
onQueryUpdate,
|
|
1881
|
+
close: () => {
|
|
1882
|
+
socket.close();
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1841
1888
|
// src/settings/settings.service.ts
|
|
1842
1889
|
var SettingsService = class extends Service {
|
|
1843
1890
|
constructor(config) {
|
|
@@ -3805,6 +3852,7 @@ var Juhuu = class {
|
|
|
3805
3852
|
this.terms = new TermsService(config);
|
|
3806
3853
|
this.tariffs = new TariffsService(config);
|
|
3807
3854
|
this.products = new ProductService(config);
|
|
3855
|
+
this.websockets = new WebsocketsService(config);
|
|
3808
3856
|
this.settings = new SettingsService(config);
|
|
3809
3857
|
this.accountingAreas = new AccountingAreasService(config);
|
|
3810
3858
|
this.payouts = new PayoutsService(config);
|
|
@@ -3846,6 +3894,7 @@ var Juhuu = class {
|
|
|
3846
3894
|
terms;
|
|
3847
3895
|
tariffs;
|
|
3848
3896
|
products;
|
|
3897
|
+
websockets;
|
|
3849
3898
|
settings;
|
|
3850
3899
|
accountingAreas;
|
|
3851
3900
|
payouts;
|
package/dist/index.mjs
CHANGED
|
@@ -1794,6 +1794,53 @@ var ProductService = class extends Service {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
|
|
1797
|
+
// src/websockets/websockets.service.ts
|
|
1798
|
+
var WebsocketsService = class extends Service {
|
|
1799
|
+
constructor(config) {
|
|
1800
|
+
super(config);
|
|
1801
|
+
}
|
|
1802
|
+
connect(WebsocketConnectOptions) {
|
|
1803
|
+
const socket = super.connectToWebsocket({ url: "websocket" });
|
|
1804
|
+
const pendingRpcResponses = /* @__PURE__ */ new Map();
|
|
1805
|
+
socket.on("rpc.response", (message) => {
|
|
1806
|
+
const resolver = pendingRpcResponses.get(message.id);
|
|
1807
|
+
if (resolver !== void 0) {
|
|
1808
|
+
resolver(message);
|
|
1809
|
+
pendingRpcResponses.delete(message.id);
|
|
1810
|
+
}
|
|
1811
|
+
});
|
|
1812
|
+
const onQueryUpdate = (callback) => {
|
|
1813
|
+
socket.on("query.update", (message) => {
|
|
1814
|
+
callback(message);
|
|
1815
|
+
});
|
|
1816
|
+
};
|
|
1817
|
+
return {
|
|
1818
|
+
subscribe: (rooms) => {
|
|
1819
|
+
socket.emit("subscribe", { rooms });
|
|
1820
|
+
},
|
|
1821
|
+
unsubscribe: (rooms) => {
|
|
1822
|
+
socket.emit("unsubscribe", { rooms });
|
|
1823
|
+
},
|
|
1824
|
+
subscribeQuery: (payload) => {
|
|
1825
|
+
socket.emit("subscribeQuery", payload);
|
|
1826
|
+
},
|
|
1827
|
+
unsubscribeQuery: (payload) => {
|
|
1828
|
+
socket.emit("unsubscribeQuery", payload);
|
|
1829
|
+
},
|
|
1830
|
+
rpc: async (payload) => {
|
|
1831
|
+
return await new Promise((resolve) => {
|
|
1832
|
+
pendingRpcResponses.set(payload.id, resolve);
|
|
1833
|
+
socket.emit("rpc", payload);
|
|
1834
|
+
});
|
|
1835
|
+
},
|
|
1836
|
+
onQueryUpdate,
|
|
1837
|
+
close: () => {
|
|
1838
|
+
socket.close();
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1797
1844
|
// src/settings/settings.service.ts
|
|
1798
1845
|
var SettingsService = class extends Service {
|
|
1799
1846
|
constructor(config) {
|
|
@@ -3761,6 +3808,7 @@ var Juhuu = class {
|
|
|
3761
3808
|
this.terms = new TermsService(config);
|
|
3762
3809
|
this.tariffs = new TariffsService(config);
|
|
3763
3810
|
this.products = new ProductService(config);
|
|
3811
|
+
this.websockets = new WebsocketsService(config);
|
|
3764
3812
|
this.settings = new SettingsService(config);
|
|
3765
3813
|
this.accountingAreas = new AccountingAreasService(config);
|
|
3766
3814
|
this.payouts = new PayoutsService(config);
|
|
@@ -3802,6 +3850,7 @@ var Juhuu = class {
|
|
|
3802
3850
|
terms;
|
|
3803
3851
|
tariffs;
|
|
3804
3852
|
products;
|
|
3853
|
+
websockets;
|
|
3805
3854
|
settings;
|
|
3806
3855
|
accountingAreas;
|
|
3807
3856
|
payouts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juhuu/sdk-ts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.239",
|
|
4
4
|
"description": "Typescript wrapper for JUHUU services",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"typescript": "^5.4.5"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"@types/node": "^24.1.0",
|
|
33
34
|
"socket.io-client": "^4.7.5"
|
|
34
35
|
}
|
|
35
36
|
}
|