@juhuu/sdk-ts 1.2.2656 → 1.3.1

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 CHANGED
@@ -11,18 +11,15 @@ type ProximityStrategy = {
11
11
  type: "location";
12
12
  radius: number | null;
13
13
  };
14
+ type KitStatus = "setupComplete" | "waitingForAssignmentToProperty" | "waitingForSetup";
14
15
  type Platform = "ios" | "android" | "windows" | "macos" | "web";
15
16
  type DeviceStatus = "running" | "sleeping" | "shutdown";
16
- type PushToken = {
17
- platform: Platform;
18
- token: string;
19
- };
20
17
  type ExtractType<T> = T extends {
21
18
  type: infer U;
22
19
  } ? U : never;
23
20
  type UserGroup = "retailer" | "engineer" | "operator" | "user";
24
21
  type Frontend = "dashboard" | "app";
25
- type FlowExecutionEnvironment = "dashboard" | "app" | "backend";
22
+ type FlowExecutionEnvironment = "dashboard" | "app" | "backend" | "controlKit";
26
23
  type ApiKeyStatus = "enabled" | "disabled";
27
24
  type FlowStatus = "error" | "ready";
28
25
  type License = {
@@ -54,6 +51,11 @@ type Capability = {
54
51
  stripePriceId: string | null;
55
52
  grantedAt: Date;
56
53
  requestedByUserId: string;
54
+ } | {
55
+ type: "identityVerification";
56
+ stripePriceId: string | null;
57
+ grantedAt: Date;
58
+ requestedByUserId: string;
57
59
  };
58
60
  interface Offer {
59
61
  tariffId: string;
@@ -67,6 +69,7 @@ interface Offer {
67
69
  */
68
70
  licenseTemplateCascadeArray?: string[][];
69
71
  offerTime: OfferTime;
72
+ flowId?: string | null;
70
73
  }
71
74
  type DevicePermission = {
72
75
  type: "bluetooth";
@@ -176,12 +179,12 @@ interface SessionSettings {
176
179
  interface EnvironmentSettings {
177
180
  }
178
181
  type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
179
- type PaymentReason = "session";
182
+ type PaymentReason = "custom" | "session";
180
183
  type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "fraudulent" | "duplicate" | "unknown";
181
- type SessionStatus = "waitingForPayment" | "ready" | "completed";
184
+ type SessionStatus = "waitingForPayment" | "waitingForReady" | "ready" | "completed";
182
185
  type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
183
186
  type RefundStatus = "inTransitToUser" | "succeeded";
184
- type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray";
187
+ type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray" | "flow" | "apiKey";
185
188
  type PermissionTypes = "UserManagement" | "PropertyManagement" | "PayoutManagement" | "InvoiceManagement" | "TarifManagement" | "SessionManagement" | "PaymentManagement" | "LocationManagement" | "LinkManagement" | "TermsManagement" | "LicenseManagement";
186
189
  interface CustomClaims {
187
190
  UserManagement: boolean;
@@ -212,6 +215,7 @@ interface PostingRow {
212
215
  quantity: number;
213
216
  unitPrice: number;
214
217
  unitPriceIsFlexible: boolean;
218
+ taxPercentage?: number;
215
219
  total: number;
216
220
  }
217
221
  interface Person {
@@ -282,6 +286,101 @@ declare const TimeZoneArray: readonly ["Europe/Andorra", "Asia/Dubai", "Asia/Kab
282
286
  type TimeZone = (typeof TimeZoneArray)[number];
283
287
  type StarRating = 1 | 2 | 3 | 4 | 5;
284
288
  type Unit = "meter" | "centimeter" | "millimeter" | "kilogram" | "gram" | "milligram" | "liter" | "milliliter" | "percent" | "volt" | "watt" | "ampere" | "joule" | "hertz" | "kelvin" | "celsius" | "fahrenheit" | "byte" | "bit" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year";
289
+ interface PlotData {
290
+ volume: {
291
+ series: Array<{
292
+ groupId: string;
293
+ isOutlier: boolean;
294
+ points: Array<{
295
+ timestamp: string;
296
+ value: number;
297
+ isOutlier: boolean;
298
+ }>;
299
+ }>;
300
+ } | null;
301
+ violin: {
302
+ features: Array<{
303
+ featureName: string;
304
+ color: string;
305
+ values: number[];
306
+ outlierFlags: boolean[];
307
+ }>;
308
+ } | null;
309
+ std: {
310
+ series: Array<{
311
+ groupId: string;
312
+ groupName: string;
313
+ color: string;
314
+ lineWidth: number;
315
+ dataPoints: Array<[number, number]>;
316
+ }>;
317
+ } | null;
318
+ heatmap: {
319
+ data: number[][];
320
+ rowLabels: string[];
321
+ columnLabels: string[];
322
+ colorScale: {
323
+ min: number;
324
+ max: number;
325
+ colors: string[];
326
+ };
327
+ } | null;
328
+ boxPlot: {
329
+ boxes: Array<{
330
+ groupId: string;
331
+ groupName: string;
332
+ color: string;
333
+ min: number;
334
+ q1: number;
335
+ median: number;
336
+ q3: number;
337
+ max: number;
338
+ mean: number;
339
+ outliers: number[];
340
+ }>;
341
+ } | null;
342
+ shapValues: {
343
+ groups: Array<{
344
+ groupId: string;
345
+ isOutlier: boolean;
346
+ features: Array<{
347
+ featureName: string;
348
+ slope: number;
349
+ maxDrop: number;
350
+ derivative: number;
351
+ }>;
352
+ }>;
353
+ } | null;
354
+ scatter: {
355
+ points: Array<{
356
+ groupId: string;
357
+ groupName: string;
358
+ x: number;
359
+ y: number;
360
+ color: string;
361
+ size: number;
362
+ isOutlier: boolean;
363
+ }>;
364
+ axisLabels?: {
365
+ x: string;
366
+ y: string;
367
+ };
368
+ } | null;
369
+ featureImportance: {
370
+ features: Array<{
371
+ featureName: string;
372
+ importance: number;
373
+ color: string;
374
+ affectedGroups: number;
375
+ }>;
376
+ } | null;
377
+ distribution: {
378
+ scores: number[];
379
+ groupIds: string[];
380
+ isOutlier: boolean[];
381
+ threshold: number;
382
+ } | null;
383
+ }
285
384
  type AccessControlListElement = {
286
385
  topic: string;
287
386
  acc: number;
@@ -318,6 +417,23 @@ declare namespace Layout {
318
417
  urlLight: string;
319
418
  height: number;
320
419
  }
420
+ export namespace Input {
421
+ interface InputBlock extends Block {
422
+ title: LocaleString | null;
423
+ placeholder: LocaleString | null;
424
+ description: LocaleString | null;
425
+ variable: string | null;
426
+ }
427
+ export interface Text extends InputBlock {
428
+ type: "input.text";
429
+ validationRegex: string | null;
430
+ }
431
+ export interface Number extends InputBlock {
432
+ type: "input.number";
433
+ validationRegex: string | null;
434
+ }
435
+ export { };
436
+ }
321
437
  export namespace Button {
322
438
  interface General extends Block {
323
439
  text: LocaleString;
@@ -336,7 +452,7 @@ declare namespace Layout {
336
452
  }
337
453
  export interface General extends FormBlock {
338
454
  type: "form";
339
- columnArray: Array<Column.One>;
455
+ columnArray: Array<AnyColumn>;
340
456
  }
341
457
  export type AnyColumn = Column.One | Column.Two;
342
458
  export namespace Column {
@@ -378,7 +494,7 @@ declare namespace Layout {
378
494
  }
379
495
  export { };
380
496
  }
381
- type LayoutBlock = Layout.Text.Plain | Layout.Text.Heading | Layout.Text.Subtitle | Layout.Image | Layout.Button.Small | Layout.Button.Large | Layout.Form.General;
497
+ type LayoutBlock = Layout.Text.Plain | Layout.Text.Heading | Layout.Text.Subtitle | Layout.Image | Layout.Input.Text | Layout.Input.Number | Layout.Button.Small | Layout.Button.Large | Layout.Form.General;
382
498
  type GraphNode = {
383
499
  id: string;
384
500
  type: "flow.start";
@@ -577,6 +693,7 @@ interface StartSessionUpdateBlock extends BaseBlock {
577
693
  out: {
578
694
  before: DataEdgeConnection;
579
695
  after: DataEdgeConnection;
696
+ changedFields: DataEdgeConnection;
580
697
  };
581
698
  }
582
699
  interface StartLocationUpdateBlock extends BaseBlock {
@@ -585,6 +702,7 @@ interface StartLocationUpdateBlock extends BaseBlock {
585
702
  out: {
586
703
  before: DataEdgeConnection;
587
704
  after: DataEdgeConnection;
705
+ changedFields: DataEdgeConnection;
588
706
  };
589
707
  }
590
708
  interface StartParameterUpdateBlock extends BaseBlock {
@@ -593,6 +711,7 @@ interface StartParameterUpdateBlock extends BaseBlock {
593
711
  out: {
594
712
  beforeParameter: DataEdgeConnection;
595
713
  afterParameter: DataEdgeConnection;
714
+ changedFields: DataEdgeConnection;
596
715
  };
597
716
  }
598
717
  interface ParameterRetrieveBlock extends BaseBlock {
@@ -724,6 +843,129 @@ interface IncidentRetrieveBlock extends BaseBlock {
724
843
  interface IncidentRetrieveBlockInputs {
725
844
  incidentId: string;
726
845
  }
846
+ interface BenefitCardRetrieveBlock extends BaseBlock {
847
+ type: "benefitCard.retrieve";
848
+ in: {
849
+ benefitCardId: DataEdgeConnection;
850
+ };
851
+ out: {
852
+ benefitCard: DataEdgeConnection;
853
+ };
854
+ data: {
855
+ benefitCardId?: string;
856
+ };
857
+ }
858
+ interface BenefitCardRetrieveBlockInputs {
859
+ benefitCardId: string;
860
+ }
861
+ interface BenefitCardListBlock extends BaseBlock {
862
+ type: "benefitCard.list";
863
+ in: {
864
+ userId: DataEdgeConnection;
865
+ reference: DataEdgeConnection;
866
+ text: DataEdgeConnection;
867
+ limit: DataEdgeConnection;
868
+ skip: DataEdgeConnection;
869
+ };
870
+ out: {
871
+ benefitCardArray: DataEdgeConnection;
872
+ count: DataEdgeConnection;
873
+ hasMore: DataEdgeConnection;
874
+ };
875
+ data: {
876
+ userId?: string;
877
+ reference?: string | null;
878
+ text?: string | null;
879
+ limit?: number;
880
+ skip?: number;
881
+ };
882
+ }
883
+ interface BenefitCardListBlockInputs {
884
+ userId?: string;
885
+ reference?: string | null;
886
+ text?: string | null;
887
+ limit?: number;
888
+ skip?: number;
889
+ }
890
+ interface BenefitCardCopyBlock extends BaseBlock {
891
+ type: "benefitCard.copy";
892
+ in: {
893
+ benefitCardId: DataEdgeConnection;
894
+ };
895
+ out: {
896
+ benefitCard: DataEdgeConnection;
897
+ };
898
+ data: {
899
+ benefitCardId?: string;
900
+ };
901
+ }
902
+ interface BenefitCardCopyBlockInputs {
903
+ benefitCardId: string;
904
+ }
905
+ interface BenefitCardUpdateBlock extends BaseBlock {
906
+ type: "benefitCard.update";
907
+ in: {
908
+ benefitCardId: DataEdgeConnection;
909
+ name: DataEdgeConnection;
910
+ userId: DataEdgeConnection;
911
+ reference: DataEdgeConnection;
912
+ text: DataEdgeConnection;
913
+ metadata: DataEdgeConnection;
914
+ };
915
+ out: {
916
+ beforeBenefitCard: DataEdgeConnection;
917
+ afterBenefitCard: DataEdgeConnection;
918
+ changedFields: DataEdgeConnection;
919
+ };
920
+ data: {
921
+ benefitCardId?: string;
922
+ name?: LocaleString;
923
+ userId?: string | null;
924
+ reference?: string | null;
925
+ text?: string | null;
926
+ metadata?: Record<string, any>;
927
+ };
928
+ }
929
+ interface BenefitCardUpdateBlockInputs {
930
+ benefitCardId: string;
931
+ name?: LocaleString;
932
+ userId?: string | null;
933
+ reference?: string | null;
934
+ text?: string | null;
935
+ metadata?: Record<string, any>;
936
+ }
937
+ interface TextMatchBlock extends BaseBlock {
938
+ type: "text.match";
939
+ in: {
940
+ text: DataEdgeConnection;
941
+ pattern: DataEdgeConnection;
942
+ };
943
+ out: {
944
+ isMatch: DataEdgeConnection;
945
+ matchArray: DataEdgeConnection;
946
+ };
947
+ data: {
948
+ text?: string;
949
+ pattern?: string;
950
+ };
951
+ }
952
+ interface TextMatchBlockInputs {
953
+ text?: string;
954
+ pattern?: string;
955
+ }
956
+ interface TextTemplateBlock extends BaseBlock {
957
+ type: "text.template";
958
+ in: Record<string, DataEdgeConnection>;
959
+ out: {
960
+ text: DataEdgeConnection;
961
+ };
962
+ data: {
963
+ template?: string;
964
+ };
965
+ }
966
+ interface TextTemplateBlockInputs {
967
+ [key: string]: any;
968
+ }
727
969
  interface ParameterUpdateBlock extends BaseBlock {
728
970
  type: "parameter.update";
729
971
  in: {
@@ -914,19 +1156,19 @@ interface SystemLogBlockInputs {
914
1156
  interface UiNavigateScreenBlock extends BaseBlock {
915
1157
  type: "ui.navigate.screen";
916
1158
  in: {
917
- target: DataEdgeConnection;
1159
+ screenName: DataEdgeConnection;
918
1160
  transition: DataEdgeConnection;
919
1161
  params: DataEdgeConnection;
920
1162
  };
921
1163
  out: Record<string, never>;
922
1164
  data: {
923
- target?: "panel" | "location";
1165
+ screenName?: string;
924
1166
  transition?: "push" | "replace";
925
1167
  params?: Record<string, any>;
926
1168
  };
927
1169
  }
928
1170
  interface UiNavigateScreenBlockInputs {
929
- target: "panel" | "location";
1171
+ screenName: string;
930
1172
  transition: "push" | "replace";
931
1173
  params: Record<string, any>;
932
1174
  }
@@ -1085,6 +1327,53 @@ interface MapDestructureBlockInputs {
1085
1327
  map: Record<string, string | number | boolean>;
1086
1328
  keys: string[];
1087
1329
  }
1330
+ interface MapConstructBlock extends BaseBlock {
1331
+ type: "map.construct";
1332
+ data: {
1333
+ keys?: string[];
1334
+ };
1335
+ in: Record<string, DataEdgeConnection>;
1336
+ out: {
1337
+ map: DataEdgeConnection;
1338
+ };
1339
+ }
1340
+ interface MapConstructBlockInputs {
1341
+ [key: string]: any;
1342
+ }
1343
+ interface ArrayLengthBlock extends BaseBlock {
1344
+ type: "array.length";
1345
+ in: {
1346
+ array: DataEdgeConnection;
1347
+ };
1348
+ out: {
1349
+ length: DataEdgeConnection;
1350
+ };
1351
+ data: {
1352
+ array?: any[];
1353
+ };
1354
+ }
1355
+ interface ArrayLengthBlockInputs {
1356
+ array: any[];
1357
+ }
1358
+ interface ArrayGetBlock extends BaseBlock {
1359
+ type: "array.get";
1360
+ in: {
1361
+ array: DataEdgeConnection;
1362
+ index: DataEdgeConnection;
1363
+ };
1364
+ out: {
1365
+ value: DataEdgeConnection;
1366
+ exists: DataEdgeConnection;
1367
+ };
1368
+ data: {
1369
+ array?: any[];
1370
+ index?: number;
1371
+ };
1372
+ }
1373
+ interface ArrayGetBlockInputs {
1374
+ array: any[];
1375
+ index: number;
1376
+ }
1088
1377
  interface IfBlock extends BaseBlock {
1089
1378
  type: "control.if";
1090
1379
  in: Record<string, DataEdgeConnection>;
@@ -1245,6 +1534,54 @@ interface FlowExecuteBlockInputs {
1245
1534
  flowId: string;
1246
1535
  [key: string]: any;
1247
1536
  }
1537
+ interface VariableSetBlock extends BaseBlock {
1538
+ type: "variable.set";
1539
+ in: {
1540
+ key: DataEdgeConnection;
1541
+ value: DataEdgeConnection;
1542
+ };
1543
+ out: {
1544
+ success: DataEdgeConnection;
1545
+ };
1546
+ data: {
1547
+ key?: string;
1548
+ value?: any;
1549
+ };
1550
+ }
1551
+ interface VariableSetBlockInputs {
1552
+ key: string;
1553
+ value: any;
1554
+ }
1555
+ interface VariableGetBlock extends BaseBlock {
1556
+ type: "variable.get";
1557
+ in: {
1558
+ key: DataEdgeConnection;
1559
+ };
1560
+ out: {
1561
+ value: DataEdgeConnection;
1562
+ };
1563
+ data: {
1564
+ key?: string;
1565
+ };
1566
+ }
1567
+ interface VariableGetBlockInputs {
1568
+ key: string;
1569
+ }
1570
+ interface DelaySleepBlock extends BaseBlock {
1571
+ type: "delay.sleep";
1572
+ in: {
1573
+ milliseconds: DataEdgeConnection;
1574
+ };
1575
+ out: {
1576
+ done: DataEdgeConnection;
1577
+ };
1578
+ data: {
1579
+ milliseconds?: number;
1580
+ };
1581
+ }
1582
+ interface DelaySleepBlockInputs {
1583
+ milliseconds: number;
1584
+ }
1248
1585
  interface EndCustomBlock extends BaseBlock {
1249
1586
  type: "end.custom";
1250
1587
  in: Record<string, DataEdgeConnection>;
@@ -1253,8 +1590,8 @@ interface EndCustomBlock extends BaseBlock {
1253
1590
  outputParamDefinitionArray: ParamDefinition[];
1254
1591
  };
1255
1592
  }
1256
- type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | EndCustomBlock;
1257
- type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
1593
+ type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | ArrayLengthBlock | ArrayGetBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | BenefitCardRetrieveBlock | BenefitCardListBlock | BenefitCardCopyBlock | BenefitCardUpdateBlock | TextMatchBlock | TextTemplateBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | VariableSetBlock | VariableGetBlock | DelaySleepBlock | EndCustomBlock;
1594
+ type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | BenefitCardRetrieveBlockInputs | BenefitCardListBlockInputs | BenefitCardCopyBlockInputs | BenefitCardUpdateBlockInputs | TextMatchBlockInputs | TextTemplateBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | MapConstructBlockInputs | ArrayLengthBlockInputs | ArrayGetBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | DelaySleepBlockInputs | Record<string, unknown>;
1258
1595
  interface FlowDataEdge {
1259
1596
  id: string;
1260
1597
  type: "data";
@@ -1291,6 +1628,11 @@ type FlowLog = {
1291
1628
  message: string;
1292
1629
  createdAt: Date;
1293
1630
  };
1631
+ type BlockExecutor = (inputs: FlowBlockInput, block: FlowBlock, context: Record<string, any>) => Promise<{
1632
+ output: Record<string, any>;
1633
+ logArray?: FlowLog[];
1634
+ flowBranch?: string | null;
1635
+ }>;
1294
1636
  type DataEdgeConnection = string | null;
1295
1637
  type ControlEdgeConnection = string | null;
1296
1638
  type QuickAction = {
@@ -1305,13 +1647,21 @@ type QuickView = {
1305
1647
  icon: string | null;
1306
1648
  visibleCondition: Condition | null;
1307
1649
  };
1308
- type LocalParameter = {
1309
- id: string;
1310
- name: string;
1311
- value: any;
1312
- type: string;
1313
- };
1314
1650
  type PanelDisplay = "modal" | "dialog" | "screen";
1651
+ type AppStatus = "active" | "disabled";
1652
+ interface AdditionalSubscriptionItem {
1653
+ stripePriceId: string;
1654
+ quantity: number;
1655
+ }
1656
+ interface PropertyAgreement {
1657
+ isAccepted: boolean;
1658
+ currentAgreement: string | null;
1659
+ previousAgreements: string[];
1660
+ acceptedAt: Date | null;
1661
+ acceptedByUserId: string | null;
1662
+ acceptedByUserEmail: string | null;
1663
+ acceptedByUserName: string | null;
1664
+ }
1315
1665
 
1316
1666
  declare class Service {
1317
1667
  constructor(config: JUHUU.SetupConfig);
@@ -1382,6 +1732,7 @@ declare class SessionService extends Service {
1382
1732
  detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
1383
1733
  delete(SessionDeleteUserParams: JUHUU.Session.Delete.Params, SessionDeleteUserOptions?: JUHUU.Session.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Delete.Response>>;
1384
1734
  listen(SessionRealtimeParams: JUHUU.Session.Realtime.Params, SessionRealtimeOptions?: JUHUU.Session.Realtime.Options): JUHUU.Session.Realtime.Response;
1735
+ checkAvailability(SessionCheckAvailabilityParams: JUHUU.Session.CheckAvailability.Params, SessionCheckAvailabilityOptions?: JUHUU.Session.CheckAvailability.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.CheckAvailability.Response>>;
1385
1736
  }
1386
1737
 
1387
1738
  declare class LinkService extends Service {
@@ -1407,10 +1758,12 @@ declare class UsersService extends Service {
1407
1758
  memberCreate(UserInviteMemberParams: JUHUU.User.InviteMember.Params, UserInviteMemberOptions?: JUHUU.User.InviteMember.Options): Promise<JUHUU.HttpResponse<JUHUU.User.InviteMember.Response>>;
1408
1759
  memberDelete(UserRemoveMemberParams: JUHUU.User.RemoveMember.Params, UserRemoveMemberOptions?: JUHUU.User.RemoveMember.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveMember.Response>>;
1409
1760
  delete(UserDeleteParams: JUHUU.User.Delete.Params, UserDeleteOptions?: JUHUU.User.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Delete.Response>>;
1761
+ createIdentityVerificationUrl(UserCreateIdentityVerificationUrlParams: JUHUU.User.CreateIdentityVerificationUrl.Params, UserCreateIdentityVerificationUrlOptions?: JUHUU.User.CreateIdentityVerificationUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.User.CreateIdentityVerificationUrl.Response>>;
1410
1762
  }
1411
1763
 
1412
1764
  declare class PaymentsService extends Service {
1413
1765
  constructor(config: JUHUU.SetupConfig);
1766
+ create(PaymentCreateParams: JUHUU.Payment.Create.Params, PaymentCreateOptions?: JUHUU.Payment.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Create.Response>>;
1414
1767
  list(PaymentListParams: JUHUU.Payment.List.Params, PaymentListOptions?: JUHUU.Payment.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.List.Response>>;
1415
1768
  retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
1416
1769
  search(PaymentSearchParams: JUHUU.Payment.Search.Params, PaymentSearchOptions?: JUHUU.Payment.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Search.Response>>;
@@ -1572,6 +1925,7 @@ declare class ArticlesService extends Service {
1572
1925
  delete(ArticleDeleteParams: JUHUU.Article.Delete.Params, ArticleDeleteOptions?: JUHUU.Article.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Delete.Response>>;
1573
1926
  search(ArticleSearchParams: JUHUU.Article.Search.Params, ArticleSearchOptions?: JUHUU.Article.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Search.Response>>;
1574
1927
  translate(ArticleTranslateParams: JUHUU.Article.Translate.Params, ArticleTranslateOptions?: JUHUU.Article.Translate.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Translate.Response>>;
1928
+ pdf(ArticlePdfParams: JUHUU.Article.Pdf.Params, ArticlePdfOptions?: JUHUU.Article.Pdf.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Pdf.Response>>;
1575
1929
  }
1576
1930
 
1577
1931
  declare class ChatsService extends Service {
@@ -1662,6 +2016,7 @@ declare class IncidentsService extends Service {
1662
2016
  list(IncidentListParams: JUHUU.Incident.List.Params, IncidentListOptions?: JUHUU.Incident.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.List.Response>>;
1663
2017
  retrieve(IncidentRetrieveParams: JUHUU.Incident.Retrieve.Params, IncidentRetrieveOptions?: JUHUU.Incident.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Retrieve.Response>>;
1664
2018
  update(IncidentUpdateParams: JUHUU.Incident.Update.Params, IncidentUpdateOptions?: JUHUU.Incident.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Update.Response>>;
2019
+ notifyAffected(IncidentNotifyAffectedParams: JUHUU.Incident.NotifyAffected.Params, IncidentNotifyAffectedOptions?: JUHUU.Incident.NotifyAffected.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.NotifyAffected.Response>>;
1665
2020
  }
1666
2021
 
1667
2022
  declare class ParameterAnomalyGroupsService extends Service {
@@ -1683,6 +2038,13 @@ declare class ParameterAnomalyGroupTrackersService extends Service {
1683
2038
  analyze(ParameterAnomalyGroupTrackerAnalyzeParams: JUHUU.ParameterAnomalyGroupTracker.Analyze.Params, ParameterAnomalyGroupTrackerAnalyzeOptions?: JUHUU.ParameterAnomalyGroupTracker.Analyze.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterAnomalyGroupTracker.Analyze.Response>>;
1684
2039
  }
1685
2040
 
2041
+ declare class ParameterAnomalyGroupTrackerTracesService extends Service {
2042
+ constructor(config: JUHUU.SetupConfig);
2043
+ list(ParameterAnomalyGroupTrackerTraceListParams: JUHUU.ParameterAnomalyGroupTrackerTrace.List.Params, ParameterAnomalyGroupTrackerTraceListOptions?: JUHUU.ParameterAnomalyGroupTrackerTrace.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterAnomalyGroupTrackerTrace.List.Response>>;
2044
+ retrieve(ParameterAnomalyGroupTrackerTraceRetrieveParams: JUHUU.ParameterAnomalyGroupTrackerTrace.Retrieve.Params, ParameterAnomalyGroupTrackerTraceRetrieveOptions?: JUHUU.ParameterAnomalyGroupTrackerTrace.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterAnomalyGroupTrackerTrace.Retrieve.Response>>;
2045
+ delete(ParameterAnomalyGroupTrackerTraceDeleteParams: JUHUU.ParameterAnomalyGroupTrackerTrace.Delete.Params, ParameterAnomalyGroupTrackerTraceDeleteOptions?: JUHUU.ParameterAnomalyGroupTrackerTrace.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterAnomalyGroupTrackerTrace.Delete.Response>>;
2046
+ }
2047
+
1686
2048
  declare class EmzService extends Service {
1687
2049
  constructor(config: JUHUU.SetupConfig);
1688
2050
  credentials(EmzCredentialsParams: JUHUU.Emz.Credentials.Params, EmzCredentialsOptions?: JUHUU.Emz.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.Emz.Credentials.Response>>;
@@ -1697,14 +2059,10 @@ declare class FlowsService extends Service {
1697
2059
  update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
1698
2060
  delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
1699
2061
  execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
1700
- private areInputsAvailable;
1701
2062
  private resolveInputs;
1702
- private isInputConnected;
1703
- private blockExecutors;
1704
- executeLocally(flowId: string, context?: Record<string, any>): Promise<{
1705
- output: Record<string, any>;
1706
- logArray: FlowLog[];
1707
- }>;
2063
+ isInputConnected(block: FlowBlock, inputName: string): boolean;
2064
+ blockExecutors: Partial<Record<FlowBlock["type"], BlockExecutor>>;
2065
+ executeLocally(FlowExecuteLocallyParams: JUHUU.Flow.ExecuteLocally.Params, FlowExecuteLocallyOptions?: JUHUU.Flow.ExecuteLocally.Options): Promise<JUHUU.Flow.ExecuteLocally.Response>;
1708
2066
  }
1709
2067
 
1710
2068
  declare class FlowTracesService extends Service {
@@ -1766,6 +2124,7 @@ declare class BenefitCardsService extends Service {
1766
2124
  retrieve(params: JUHUU.BenefitCard.Retrieve.Params, options?: JUHUU.BenefitCard.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Retrieve.Response>>;
1767
2125
  update(params: JUHUU.BenefitCard.Update.Params, options?: JUHUU.BenefitCard.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Update.Response>>;
1768
2126
  delete(params: JUHUU.BenefitCard.Delete.Params, options?: JUHUU.BenefitCard.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Delete.Response>>;
2127
+ copy(params: JUHUU.BenefitCard.Copy.Params, options?: JUHUU.BenefitCard.Copy.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Copy.Response>>;
1769
2128
  }
1770
2129
 
1771
2130
  declare class CatalogsService extends Service {
@@ -1793,6 +2152,8 @@ declare class KitsService extends Service {
1793
2152
  retrieve(params: JUHUU.Kit.Retrieve.Params, options?: JUHUU.Kit.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Retrieve.Response>>;
1794
2153
  update(params: JUHUU.Kit.Update.Params, options?: JUHUU.Kit.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Update.Response>>;
1795
2154
  delete(params: JUHUU.Kit.Delete.Params, options?: JUHUU.Kit.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Delete.Response>>;
2155
+ attachProperty(params: JUHUU.Kit.AttachProperty.Params, options?: JUHUU.Kit.AttachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.AttachProperty.Response>>;
2156
+ detachProperty(params: JUHUU.Kit.DetachProperty.Params, options?: JUHUU.Kit.DetachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.DetachProperty.Response>>;
1796
2157
  }
1797
2158
 
1798
2159
  declare class PanelsService extends Service {
@@ -1813,6 +2174,15 @@ declare class PricesService extends Service {
1813
2174
  delete(params: JUHUU.Price.Delete.Params, options?: JUHUU.Price.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.Delete.Response>>;
1814
2175
  }
1815
2176
 
2177
+ declare class ApplicationsService extends Service {
2178
+ constructor(config: JUHUU.SetupConfig);
2179
+ create(ApplicationCreateParams: JUHUU.Application.Create.Params, ApplicationOptions?: JUHUU.Application.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Application.Create.Response>>;
2180
+ retrieve(ApplicationRetrieveParams: JUHUU.Application.Retrieve.Params, ApplicationRetrieveOptions?: JUHUU.Application.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Application.Retrieve.Response>>;
2181
+ list(ApplicationListParams: JUHUU.Application.List.Params, ApplicationListOptions?: JUHUU.Application.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Application.List.Response>>;
2182
+ update(ApplicationUpdateParams: JUHUU.Application.Update.Params, ApplicationUpdateOptions?: JUHUU.Application.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Application.Update.Response>>;
2183
+ delete(ApplicationDeleteParams: JUHUU.Application.Delete.Params, ApplicationDeleteOptions?: JUHUU.Application.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Application.Delete.Response>>;
2184
+ }
2185
+
1816
2186
  declare class Juhuu {
1817
2187
  constructor(config: JUHUU.SetupConfig);
1818
2188
  /**
@@ -1851,6 +2221,7 @@ declare class Juhuu {
1851
2221
  readonly incidents: IncidentsService;
1852
2222
  readonly parameterAnomalyGroups: ParameterAnomalyGroupsService;
1853
2223
  readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
2224
+ readonly parameterAnomalyGroupTrackerTraces: ParameterAnomalyGroupTrackerTracesService;
1854
2225
  readonly emz: EmzService;
1855
2226
  readonly flows: FlowsService;
1856
2227
  readonly flowTraces: FlowTracesService;
@@ -1865,6 +2236,7 @@ declare class Juhuu {
1865
2236
  readonly kits: KitsService;
1866
2237
  readonly panels: PanelsService;
1867
2238
  readonly prices: PricesService;
2239
+ readonly applications: ApplicationsService;
1868
2240
  }
1869
2241
  declare namespace JUHUU {
1870
2242
  namespace Achievement {
@@ -2093,7 +2465,7 @@ declare namespace JUHUU {
2093
2465
  namespace Session {
2094
2466
  type Base = {
2095
2467
  id: string;
2096
- status: "waitingForPayment" | "ready" | "completed";
2468
+ status: SessionStatus;
2097
2469
  paymentId: string | null;
2098
2470
  userId: string | null;
2099
2471
  propertyId: string;
@@ -2119,6 +2491,9 @@ declare namespace JUHUU {
2119
2491
  locationName: string | null;
2120
2492
  locationGroupId: string | null;
2121
2493
  locationGroupName: string | null;
2494
+ scheduledReadyAt: Date;
2495
+ readyAt: Date | null;
2496
+ metadata: Record<string, any>;
2122
2497
  };
2123
2498
  export interface Rent extends Base {
2124
2499
  type: "rent";
@@ -2141,6 +2516,9 @@ declare namespace JUHUU {
2141
2516
  sessionType: Object["type"];
2142
2517
  isOffSession: boolean;
2143
2518
  userId: string;
2519
+ propertyId?: string;
2520
+ scheduledReadyAt?: Date;
2521
+ metadata: Record<string, any>;
2144
2522
  };
2145
2523
  type Options = JUHUU.RequestOptions;
2146
2524
  type Response = {
@@ -2267,6 +2645,18 @@ declare namespace JUHUU {
2267
2645
  close: () => void;
2268
2646
  };
2269
2647
  }
2648
+ export namespace CheckAvailability {
2649
+ type Params = {
2650
+ locationId: string;
2651
+ tariffId: string;
2652
+ autoRenew: boolean;
2653
+ };
2654
+ type Options = JUHUU.RequestOptions;
2655
+ type Response = {
2656
+ available: boolean;
2657
+ conflictingSessions: JUHUU.Session.Object[];
2658
+ };
2659
+ }
2270
2660
  export { };
2271
2661
  }
2272
2662
  namespace User {
@@ -2287,22 +2677,14 @@ declare namespace JUHUU {
2287
2677
  billingEmail: string | null;
2288
2678
  billingEmailVerified: boolean;
2289
2679
  taxCodeArray: TaxCode[];
2290
- notifications: {
2291
- email: {
2292
- enabled: boolean;
2293
- emailArray: string[];
2294
- };
2295
- sms: {
2296
- enabled: boolean;
2297
- phoneNumberArray: string[];
2298
- };
2299
- push: {
2300
- enabled: boolean;
2301
- pushTokenArray: PushToken[];
2302
- };
2303
- };
2680
+ expoPushTokenArray: string[];
2304
2681
  group: UserGroup;
2305
2682
  createdByPropertyId: string | null;
2683
+ identity: {
2684
+ status: "unverified" | "pending" | "verified";
2685
+ verifiedAt: Date | null;
2686
+ expiresAt: Date | null;
2687
+ };
2306
2688
  };
2307
2689
  export interface Standard extends Base {
2308
2690
  type: "standard";
@@ -2373,6 +2755,7 @@ declare namespace JUHUU {
2373
2755
  taxCodeArray?: TaxCode[];
2374
2756
  acceptedTermIdArray?: string[];
2375
2757
  group?: UserGroup;
2758
+ expoPushTokenArray?: string[];
2376
2759
  };
2377
2760
  type Options = JUHUU.RequestOptions;
2378
2761
  type Response = {
@@ -2457,6 +2840,16 @@ declare namespace JUHUU {
2457
2840
  type Options = JUHUU.RequestOptions;
2458
2841
  type Response = JUHUU.User.Object;
2459
2842
  }
2843
+ export namespace CreateIdentityVerificationUrl {
2844
+ type Params = {
2845
+ userId: string;
2846
+ propertyId: string;
2847
+ };
2848
+ type Options = JUHUU.RequestOptions;
2849
+ type Response = {
2850
+ url: string;
2851
+ };
2852
+ }
2460
2853
  export { };
2461
2854
  }
2462
2855
  namespace Emz {
@@ -2758,6 +3151,7 @@ declare namespace JUHUU {
2758
3151
  embeddingsGenerationEnabled: boolean;
2759
3152
  order: number;
2760
3153
  articleGroupIdArray: string[];
3154
+ pdfUrls: LocaleString;
2761
3155
  };
2762
3156
  namespace Create {
2763
3157
  type Params = {
@@ -2853,6 +3247,16 @@ declare namespace JUHUU {
2853
3247
  article: JUHUU.Article.Object;
2854
3248
  };
2855
3249
  }
3250
+ namespace Pdf {
3251
+ type Params = {
3252
+ articleId: string;
3253
+ languageCodeArray: LanguageCode[];
3254
+ };
3255
+ type Options = JUHUU.RequestOptions;
3256
+ type Response = {
3257
+ article: JUHUU.Article.Object;
3258
+ };
3259
+ }
2856
3260
  }
2857
3261
  namespace ArticleGroup {
2858
3262
  type Object = {
@@ -3268,7 +3672,7 @@ declare namespace JUHUU {
3268
3672
  export { };
3269
3673
  }
3270
3674
  namespace Property {
3271
- type Base = {
3675
+ type Object = {
3272
3676
  id: string;
3273
3677
  readonly object: "property";
3274
3678
  email: string | null;
@@ -3284,8 +3688,6 @@ declare namespace JUHUU {
3284
3688
  version: number;
3285
3689
  colorScheme: ColorScheme;
3286
3690
  contactUrl: string | null;
3287
- };
3288
- export interface Internal extends Base {
3289
3691
  type: "internal";
3290
3692
  legalName: string | null;
3291
3693
  emailSignature: string | null;
@@ -3300,6 +3702,9 @@ declare namespace JUHUU {
3300
3702
  automaticPayoutsEnabled: boolean;
3301
3703
  payoutCurrencyCode: CurrencyCode;
3302
3704
  timeZone: TimeZone;
3705
+ defaultServiceFeeMax: number;
3706
+ defaultServiceFeeMin: number;
3707
+ defaultServiceFeePercentage: number;
3303
3708
  /**
3304
3709
  * Used to charge the property
3305
3710
  */
@@ -3321,33 +3726,21 @@ declare namespace JUHUU {
3321
3726
  */
3322
3727
  stripeSubscriptionId: string | null;
3323
3728
  subscriptionStatus: "manual" | "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
3729
+ additionalSubscriptionItemArray: AdditionalSubscriptionItem[];
3324
3730
  capabilityArray: Capability[];
3325
- agreement: {
3326
- isAccepted: boolean;
3327
- currentAgreement: string | null;
3328
- previousAgreements: string[];
3329
- acceptedAt: Date | null;
3330
- acceptedByUserId: string | null;
3331
- acceptedByUserEmail: string | null;
3332
- acceptedByUserName: string | null;
3333
- };
3334
- }
3335
- export interface External extends Base {
3336
- type: "external";
3337
- }
3338
- export type Object = Internal | External;
3339
- export namespace Create {
3731
+ agreement: PropertyAgreement;
3732
+ };
3733
+ namespace Create {
3340
3734
  type Params = {
3341
3735
  userId?: string;
3342
3736
  name: string;
3343
- type?: JUHUU.Property.Object["type"];
3344
3737
  };
3345
3738
  type Options = {};
3346
3739
  type Response = {
3347
3740
  property: JUHUU.Property.Object;
3348
3741
  };
3349
3742
  }
3350
- export namespace Retrieve {
3743
+ namespace Retrieve {
3351
3744
  type Params = {
3352
3745
  propertyId: string;
3353
3746
  };
@@ -3356,14 +3749,14 @@ declare namespace JUHUU {
3356
3749
  property: JUHUU.Property.Object;
3357
3750
  };
3358
3751
  }
3359
- export namespace List {
3752
+ namespace List {
3360
3753
  type Params = {
3361
3754
  userId?: string;
3362
3755
  };
3363
3756
  type Options = JUHUU.RequestOptions;
3364
3757
  type Response = JUHUU.Property.Object[];
3365
3758
  }
3366
- export namespace RetrieveStripeConnectPortalUrl {
3759
+ namespace RetrieveStripeConnectPortalUrl {
3367
3760
  type Params = {
3368
3761
  propertyId: string;
3369
3762
  };
@@ -3372,7 +3765,7 @@ declare namespace JUHUU {
3372
3765
  url: string;
3373
3766
  };
3374
3767
  }
3375
- export namespace RetrieveStripeCustomerPortalUrl {
3768
+ namespace RetrieveStripeCustomerPortalUrl {
3376
3769
  type Params = {
3377
3770
  propertyId: string;
3378
3771
  };
@@ -3381,7 +3774,7 @@ declare namespace JUHUU {
3381
3774
  url: string;
3382
3775
  };
3383
3776
  }
3384
- export namespace RetrieveStripeSubscriptionStartUrl {
3777
+ namespace RetrieveStripeSubscriptionStartUrl {
3385
3778
  type Params = {
3386
3779
  propertyId: string;
3387
3780
  };
@@ -3390,7 +3783,7 @@ declare namespace JUHUU {
3390
3783
  url: string;
3391
3784
  };
3392
3785
  }
3393
- export namespace EnableCapability {
3786
+ namespace EnableCapability {
3394
3787
  type Params = {
3395
3788
  propertyId: string;
3396
3789
  capabilityType: Capability["type"];
@@ -3401,7 +3794,7 @@ declare namespace JUHUU {
3401
3794
  property: JUHUU.Property.Object;
3402
3795
  };
3403
3796
  }
3404
- export namespace AcceptLatestAgreement {
3797
+ namespace AcceptLatestAgreement {
3405
3798
  type Params = {
3406
3799
  propertyId: string;
3407
3800
  };
@@ -3410,7 +3803,7 @@ declare namespace JUHUU {
3410
3803
  property: JUHUU.Property.Object;
3411
3804
  };
3412
3805
  }
3413
- export namespace Update {
3806
+ namespace Update {
3414
3807
  type Params = {
3415
3808
  propertyId: string;
3416
3809
  name?: string;
@@ -3435,7 +3828,7 @@ declare namespace JUHUU {
3435
3828
  property: JUHUU.Property.Object;
3436
3829
  };
3437
3830
  }
3438
- export namespace Onboarding {
3831
+ namespace Onboarding {
3439
3832
  type Params = {
3440
3833
  logo: string;
3441
3834
  primaryColor: string;
@@ -3448,14 +3841,13 @@ declare namespace JUHUU {
3448
3841
  property: JUHUU.Property.Object;
3449
3842
  };
3450
3843
  }
3451
- export namespace Delete {
3844
+ namespace Delete {
3452
3845
  type Params = {
3453
3846
  propertyId: string;
3454
3847
  };
3455
3848
  type Options = JUHUU.RequestOptions;
3456
3849
  type Response = JUHUU.Property.Object;
3457
3850
  }
3458
- export { };
3459
3851
  }
3460
3852
  namespace Point {
3461
3853
  type Base = {
@@ -3498,6 +3890,7 @@ declare namespace JUHUU {
3498
3890
  export namespace List {
3499
3891
  type Params = {
3500
3892
  propertyId?: string;
3893
+ invalidAt?: Date | null;
3501
3894
  };
3502
3895
  type Options = JUHUU.RequestOptions;
3503
3896
  type Response = JUHUU.Point.Object[];
@@ -3631,6 +4024,22 @@ declare namespace JUHUU {
3631
4024
  property?: JUHUU.Property.Object;
3632
4025
  };
3633
4026
  }
4027
+ namespace Create {
4028
+ type Params = {
4029
+ accountingAreaId: string;
4030
+ amountWithoutServiceFee: number;
4031
+ currencyCode: string;
4032
+ propertyId: string;
4033
+ isOffSession: boolean;
4034
+ salesTaxPercentage: number;
4035
+ userId: string;
4036
+ postingRowArray: PostingRow[];
4037
+ };
4038
+ type Options = JUHUU.RequestOptions;
4039
+ type Response = {
4040
+ payout: JUHUU.Payment.Object;
4041
+ };
4042
+ }
3634
4043
  namespace Search {
3635
4044
  type Params = {
3636
4045
  providerPaymentId?: string;
@@ -4019,8 +4428,8 @@ declare namespace JUHUU {
4019
4428
  id: string;
4020
4429
  readonly object: "link";
4021
4430
  propertyId: string | null;
4022
- referenceObject: "location";
4023
- referenceObjectId: string;
4431
+ referenceObject: "location" | "panel";
4432
+ referenceObjectId: string | null;
4024
4433
  name: string;
4025
4434
  image: string | null;
4026
4435
  };
@@ -4035,6 +4444,8 @@ declare namespace JUHUU {
4035
4444
  name?: string;
4036
4445
  fiveLetterQr?: string;
4037
4446
  type: JUHUU.Link.Object["type"];
4447
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4448
+ referenceObjectId?: string | null;
4038
4449
  };
4039
4450
  type Options = JUHUU.RequestOptions;
4040
4451
  type Response = {
@@ -4068,7 +4479,7 @@ declare namespace JUHUU {
4068
4479
  type Params = {
4069
4480
  fiveLetterQr?: string;
4070
4481
  propertyId?: string;
4071
- referenceObjectId?: string;
4482
+ referenceObjectId?: string | null;
4072
4483
  };
4073
4484
  type Options = {};
4074
4485
  type Response = JUHUU.Link.Object[];
@@ -4077,6 +4488,8 @@ declare namespace JUHUU {
4077
4488
  type Params = {
4078
4489
  linkId: string;
4079
4490
  name?: string;
4491
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4492
+ referenceObjectId?: string | null;
4080
4493
  };
4081
4494
  type Options = JUHUU.RequestOptions;
4082
4495
  type Response = {
@@ -4113,6 +4526,8 @@ declare namespace JUHUU {
4113
4526
  proximityStrategyArray: ProximityStrategy[];
4114
4527
  adminQuickViewArray: QuickView[];
4115
4528
  simIdArray: string[];
4529
+ panelId: string | null;
4530
+ adminQuickActionArray: QuickAction[];
4116
4531
  };
4117
4532
  namespace Create {
4118
4533
  type Params = {
@@ -4120,6 +4535,7 @@ declare namespace JUHUU {
4120
4535
  acceptTerms: boolean;
4121
4536
  name?: string;
4122
4537
  deviceTemplateId: string;
4538
+ panelId?: string;
4123
4539
  };
4124
4540
  type Options = JUHUU.RequestOptions;
4125
4541
  type Response = {
@@ -4170,6 +4586,8 @@ declare namespace JUHUU {
4170
4586
  simIdArray?: string[];
4171
4587
  permissionArray?: DevicePermission[];
4172
4588
  parameterIdArray?: string[];
4589
+ panelId?: string | null;
4590
+ adminQuickActionArray?: QuickAction[];
4173
4591
  };
4174
4592
  type Options = JUHUU.RequestOptions;
4175
4593
  type Response = {
@@ -4268,6 +4686,8 @@ declare namespace JUHUU {
4268
4686
  description: string;
4269
4687
  imageUrlArray: string[];
4270
4688
  incidentTemplateId: string | null;
4689
+ responsiblesNotified: boolean;
4690
+ affectedNotified: boolean;
4271
4691
  };
4272
4692
  export interface Location extends Base {
4273
4693
  type: "location";
@@ -4281,7 +4701,11 @@ declare namespace JUHUU {
4281
4701
  type: "parameterAnomalyGroup";
4282
4702
  parameterAnomalyGroupId: string;
4283
4703
  }
4284
- export type Object = Location | Device | ParameterAnomalyGroup;
4704
+ export interface Sim extends Base {
4705
+ type: "sim";
4706
+ simId: string;
4707
+ }
4708
+ export type Object = Location | Device | ParameterAnomalyGroup | Sim;
4285
4709
  export namespace Create {
4286
4710
  type Params = {
4287
4711
  propertyId: string;
@@ -4289,6 +4713,8 @@ declare namespace JUHUU {
4289
4713
  severity?: JUHUU.Incident.Object["severity"];
4290
4714
  deviceId?: string;
4291
4715
  locationId?: string;
4716
+ parameterAnomalyGroupId?: string;
4717
+ simId?: string;
4292
4718
  incidentTemplateId?: string;
4293
4719
  title?: JUHUU.Incident.Object["title"];
4294
4720
  type: JUHUU.Incident.Object["type"];
@@ -4336,6 +4762,16 @@ declare namespace JUHUU {
4336
4762
  incident: JUHUU.Incident.Object;
4337
4763
  };
4338
4764
  }
4765
+ export namespace NotifyAffected {
4766
+ type Params = {
4767
+ incidentId: string;
4768
+ message: string;
4769
+ };
4770
+ type Options = JUHUU.RequestOptions;
4771
+ type Response = {
4772
+ incident: JUHUU.Incident.Object;
4773
+ };
4774
+ }
4339
4775
  export { };
4340
4776
  }
4341
4777
  namespace IncidentTemplate {
@@ -4421,6 +4857,7 @@ declare namespace JUHUU {
4421
4857
  lastUpdatedAt: Date | null;
4422
4858
  createdAt: Date | null;
4423
4859
  reference: string | null;
4860
+ history: boolean;
4424
4861
  };
4425
4862
  export interface Text extends Base {
4426
4863
  type: "text";
@@ -4428,7 +4865,10 @@ declare namespace JUHUU {
4428
4865
  }
4429
4866
  export interface Number extends Base {
4430
4867
  type: "number";
4868
+ unit: Unit | null;
4431
4869
  currentValue: number;
4870
+ min: number | null;
4871
+ max: number | null;
4432
4872
  }
4433
4873
  export interface Enum extends Base {
4434
4874
  type: "enum";
@@ -4545,6 +4985,7 @@ declare namespace JUHUU {
4545
4985
  featureReference: string;
4546
4986
  shapValues: [number, number, number] | null;
4547
4987
  isOutlier: boolean;
4988
+ unit: Unit | null;
4548
4989
  }>;
4549
4990
  anomalyDescription: string | null;
4550
4991
  };
@@ -4589,6 +5030,12 @@ declare namespace JUHUU {
4589
5030
  namespace Update {
4590
5031
  type Params = {
4591
5032
  parameterAnomalyGroupId: string;
5033
+ parameterAnomalyGroupTrackerId?: string;
5034
+ name?: string;
5035
+ featureReferenceParameterIdArray?: Array<{
5036
+ parameterId: string;
5037
+ featureReference: string;
5038
+ }>;
4592
5039
  };
4593
5040
  type Options = JUHUU.RequestOptions;
4594
5041
  type Response = {
@@ -4614,6 +5061,7 @@ declare namespace JUHUU {
4614
5061
  propertyId: string;
4615
5062
  featureReferenceArray: string[];
4616
5063
  description: null | string;
5064
+ dataType: "time-series" | "cross-sectional";
4617
5065
  };
4618
5066
  namespace Create {
4619
5067
  type Params = {
@@ -4653,7 +5101,9 @@ declare namespace JUHUU {
4653
5101
  namespace Update {
4654
5102
  type Params = {
4655
5103
  parameterAnomalyGroupTrackerId: string;
4656
- name: string;
5104
+ name?: string;
5105
+ description?: string;
5106
+ dataType?: "time-series" | "cross-sectional";
4657
5107
  };
4658
5108
  type Options = JUHUU.RequestOptions;
4659
5109
  type Response = {
@@ -4679,38 +5129,102 @@ declare namespace JUHUU {
4679
5129
  };
4680
5130
  }
4681
5131
  }
5132
+ namespace ParameterAnomalyGroupTrackerTrace {
5133
+ type Object = {
5134
+ id: string;
5135
+ readonly object: "parameterAnomalyGroupTrackerTrace";
5136
+ parameterAnomalyGroupTrackerId: string;
5137
+ propertyId: string;
5138
+ plotData: PlotData;
5139
+ metadata: {
5140
+ totalGroups: number;
5141
+ outlierGroups: number;
5142
+ normalGroups: number;
5143
+ featuresAnalyzed: number;
5144
+ detectionMethod: string;
5145
+ executionTimeMs: number;
5146
+ };
5147
+ executedAt: Date;
5148
+ };
5149
+ namespace Retrieve {
5150
+ type Params = {
5151
+ parameterAnomalyGroupTrackerTraceId: string;
5152
+ };
5153
+ type Options = {
5154
+ expand?: Array<"property">;
5155
+ } & JUHUU.RequestOptions;
5156
+ type Response = {
5157
+ parameterAnomalyGroupTrackerTrace: JUHUU.ParameterAnomalyGroupTrackerTrace.Object;
5158
+ };
5159
+ }
5160
+ namespace List {
5161
+ type Params = {
5162
+ propertyId?: string;
5163
+ parameterAnomalyGroupTrackerId?: string;
5164
+ };
5165
+ type Options = {
5166
+ skip?: number;
5167
+ limit?: number;
5168
+ } & JUHUU.RequestOptions;
5169
+ type Response = {
5170
+ parameterAnomalyGroupTrackerTraceArray: JUHUU.ParameterAnomalyGroupTrackerTrace.Object[];
5171
+ count: number;
5172
+ hasMore: boolean;
5173
+ };
5174
+ }
5175
+ namespace Delete {
5176
+ type Params = {
5177
+ parameterAnomalyGroupTrackerTraceId: string;
5178
+ };
5179
+ type Options = JUHUU.RequestOptions;
5180
+ type Response = {
5181
+ parameterAnomalyGroupTrackerTrace: JUHUU.ParameterAnomalyGroupTrackerTrace.Object;
5182
+ };
5183
+ }
5184
+ }
4682
5185
  namespace ParameterHistory {
4683
5186
  type Base = {
4684
5187
  id: string;
4685
- readonly object: "parameter";
4686
- description: string | null;
4687
- name: string | null;
4688
- propertyId: string;
5188
+ readonly object: "parameterHistory";
4689
5189
  createdAt: Date;
4690
- reference: string | null;
4691
- parameterId: string;
4692
- isOutlier: boolean;
4693
- shapAnomalyArray: Array<{
4694
- parameterAnomalyGroupId: string;
4695
- shapScore: number | null;
4696
- }>;
4697
5190
  };
4698
5191
  export interface Text extends Base {
4699
- type: "text";
4700
5192
  currentValue: string;
5193
+ static: {
5194
+ type: "text";
5195
+ propertyId: string;
5196
+ reference: string | null;
5197
+ parameterId: string;
5198
+ };
4701
5199
  }
4702
5200
  export interface Number extends Base {
4703
- type: "number";
5201
+ unit: Unit | null;
4704
5202
  currentValue: number;
5203
+ static: {
5204
+ type: "number";
5205
+ propertyId: string;
5206
+ reference: string | null;
5207
+ parameterId: string;
5208
+ };
4705
5209
  }
4706
5210
  export interface Enum extends Base {
4707
- type: "enum";
4708
5211
  currentValue: string;
4709
5212
  enumArray: string[];
5213
+ static: {
5214
+ type: "enum";
5215
+ propertyId: string;
5216
+ reference: string | null;
5217
+ parameterId: string;
5218
+ };
4710
5219
  }
4711
5220
  export interface Boolean extends Base {
4712
- type: "boolean";
4713
5221
  currentValue: boolean;
5222
+ static: {
5223
+ type: "boolean";
5224
+ propertyId: string;
5225
+ reference: string | null;
5226
+ parameterId: string;
5227
+ };
4714
5228
  }
4715
5229
  export type Object = Number | Boolean | Enum | Text;
4716
5230
  export namespace Retrieve {
@@ -4824,6 +5338,19 @@ declare namespace JUHUU {
4824
5338
  output: Record<string, any>;
4825
5339
  };
4826
5340
  }
5341
+ namespace ExecuteLocally {
5342
+ type Params = {
5343
+ flowId: string;
5344
+ input?: Record<string, any>;
5345
+ };
5346
+ type Options = JUHUU.RequestOptions & {
5347
+ blockExecutors?: Partial<Record<FlowBlock["type"], BlockExecutor>>;
5348
+ };
5349
+ type Response = {
5350
+ output: Record<string, any>;
5351
+ logArray: FlowLog[];
5352
+ };
5353
+ }
4827
5354
  }
4828
5355
  namespace FlowTrace {
4829
5356
  type Object = {
@@ -4927,7 +5454,7 @@ declare namespace JUHUU {
4927
5454
  provider: "1nce" | null;
4928
5455
  countryCode: CountryCode | null;
4929
5456
  imei: string | null;
4930
- propertyId: string;
5457
+ propertyId: string | null;
4931
5458
  description: string | null;
4932
5459
  name: string;
4933
5460
  dataQuotaMax: number | null;
@@ -4935,6 +5462,7 @@ declare namespace JUHUU {
4935
5462
  dataQuotaThresholdPercentage: number | null;
4936
5463
  providerUsername: string | null;
4937
5464
  providerPassword: string | null;
5465
+ lastProviderUpdateAt: Date | null;
4938
5466
  };
4939
5467
  namespace Create {
4940
5468
  type Params = {
@@ -5506,96 +6034,31 @@ declare namespace JUHUU {
5506
6034
  }
5507
6035
  }
5508
6036
  namespace BenefitCard {
5509
- type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
5510
- type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
5511
- type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
5512
- type Benefit = {
5513
- type: BenefitType;
5514
- name: string;
5515
- description: string;
5516
- value: number;
5517
- unit: string;
5518
- conditions: string[];
5519
- validFrom: string | null;
5520
- validTo: string | null;
5521
- usageLimit: number | null;
5522
- usageCount: number;
5523
- minimumSpend: number | null;
5524
- maximumDiscount: number | null;
5525
- applicableCategories: string[];
5526
- excludedCategories: string[];
5527
- };
5528
- type BenefitCardLimits = {
5529
- dailyUsageLimit: number | null;
5530
- monthlyUsageLimit: number | null;
5531
- yearlyUsageLimit: number | null;
5532
- lifetimeUsageLimit: number | null;
5533
- dailySpendLimit: number | null;
5534
- monthlySpendLimit: number | null;
5535
- yearlySpendLimit: number | null;
5536
- perTransactionLimit: number | null;
5537
- };
5538
- type BenefitCardMetadata = {
5539
- issuer: string;
5540
- brand: string | null;
5541
- level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
5542
- renewalDate: string | null;
5543
- memberSince: string;
5544
- referralCode: string | null;
5545
- partnerPrograms: string[];
5546
- tags: string[];
5547
- notes: string | null;
5548
- };
5549
6037
  type Object = {
5550
6038
  id: string;
6039
+ version: number;
5551
6040
  readonly object: "benefitCard";
5552
- userId: string;
5553
- cardNumber: string;
5554
- cardHolderName: string;
5555
- type: BenefitCardType;
5556
- status: BenefitCardStatus;
5557
- benefits: Benefit[];
5558
- limits: BenefitCardLimits;
5559
- metadata: BenefitCardMetadata;
5560
- pointsBalance: number;
5561
- cashbackBalance: number;
5562
- totalSavings: number;
5563
- totalSpent: number;
5564
- transactionCount: number;
5565
- lastUsedAt: string | null;
5566
- createdAt: string;
5567
- updatedAt: string;
5568
- activatedAt: string | null;
5569
- expiresAt: string | null;
5570
- isDigital: boolean;
5571
- isTransferable: boolean;
5572
- requiresPin: boolean;
5573
- pin: string | null;
5574
- qrCode: string | null;
5575
- barcode: string | null;
6041
+ readonly objectType: "dto";
6042
+ createdAt: Date;
6043
+ name: LocaleString;
6044
+ imageLight: string | null;
6045
+ imageDark: string | null;
6046
+ userId: string | null;
6047
+ propertyId: string;
6048
+ reference: string | null;
6049
+ text: string | null;
6050
+ metadata: Record<string, any>;
5576
6051
  };
5577
6052
  namespace Create {
5578
6053
  type Params = {
5579
- userId: string;
5580
- cardNumber: string;
5581
- cardHolderName: string;
5582
- type: BenefitCardType;
5583
- status: BenefitCardStatus;
5584
- benefits: Benefit[];
5585
- limits: BenefitCardLimits;
5586
- metadata: BenefitCardMetadata;
5587
- pointsBalance?: number;
5588
- cashbackBalance?: number;
5589
- totalSavings?: number;
5590
- totalSpent?: number;
5591
- transactionCount?: number;
5592
- expiresAt?: string | null;
5593
- isDigital?: boolean;
5594
- isTransferable?: boolean;
5595
- requiresPin?: boolean;
5596
- pin?: string | null;
5597
- qrCode?: string | null;
5598
- barcode?: string | null;
6054
+ propertyId: string;
6055
+ name?: LocaleString;
6056
+ imageLight?: string | null;
6057
+ imageDark?: string | null;
6058
+ userId?: string | null;
6059
+ reference?: string | null;
6060
+ text?: string | null;
6061
+ metadata?: Record<string, any>;
5599
6062
  };
5600
6063
  type Options = JUHUU.RequestOptions;
5601
6064
  type Response = {
@@ -5613,17 +6076,9 @@ declare namespace JUHUU {
5613
6076
  }
5614
6077
  namespace List {
5615
6078
  type Params = {
6079
+ propertyId?: string;
5616
6080
  userId?: string;
5617
- cardNumber?: string;
5618
- cardHolderName?: string;
5619
- type?: BenefitCardType;
5620
- status?: BenefitCardStatus;
5621
- issuer?: string;
5622
- brand?: string;
5623
- level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
5624
- isDigital?: boolean;
5625
- isTransferable?: boolean;
5626
- requiresPin?: boolean;
6081
+ text?: string;
5627
6082
  };
5628
6083
  type Options = {
5629
6084
  limit?: number;
@@ -5638,26 +6093,13 @@ declare namespace JUHUU {
5638
6093
  namespace Update {
5639
6094
  type Params = {
5640
6095
  benefitCardId: string;
5641
- userId?: string;
5642
- cardNumber?: string;
5643
- cardHolderName?: string;
5644
- type?: BenefitCardType;
5645
- status?: BenefitCardStatus;
5646
- benefits?: Benefit[];
5647
- limits?: BenefitCardLimits;
5648
- metadata?: BenefitCardMetadata;
5649
- pointsBalance?: number;
5650
- cashbackBalance?: number;
5651
- totalSavings?: number;
5652
- totalSpent?: number;
5653
- transactionCount?: number;
5654
- expiresAt?: string | null;
5655
- isDigital?: boolean;
5656
- isTransferable?: boolean;
5657
- requiresPin?: boolean;
5658
- pin?: string | null;
5659
- qrCode?: string | null;
5660
- barcode?: string | null;
6096
+ name?: LocaleString;
6097
+ imageLight?: string | null;
6098
+ imageDark?: string | null;
6099
+ userId?: string | null;
6100
+ reference?: string | null;
6101
+ text?: string | null;
6102
+ metadata?: Record<string, any>;
5661
6103
  };
5662
6104
  type Options = JUHUU.RequestOptions;
5663
6105
  type Response = {
@@ -5669,7 +6111,18 @@ declare namespace JUHUU {
5669
6111
  benefitCardId: string;
5670
6112
  };
5671
6113
  type Options = JUHUU.RequestOptions;
5672
- type Response = JUHUU.BenefitCard.Object;
6114
+ type Response = {
6115
+ benefitCard: JUHUU.BenefitCard.Object;
6116
+ };
6117
+ }
6118
+ namespace Copy {
6119
+ type Params = {
6120
+ benefitCardId: string;
6121
+ };
6122
+ type Options = JUHUU.RequestOptions;
6123
+ type Response = {
6124
+ benefitCard: JUHUU.BenefitCard.Object;
6125
+ };
5673
6126
  }
5674
6127
  }
5675
6128
  namespace Catalog {
@@ -6113,16 +6566,20 @@ declare namespace JUHUU {
6113
6566
  }
6114
6567
  }
6115
6568
  namespace Kit {
6116
- type KitType = "controlKitV1" | "tapkeyV1" | "emzV1";
6117
6569
  type BaseKit = {
6118
6570
  id: string;
6119
6571
  readonly object: "kit";
6120
6572
  name: string;
6121
6573
  propertyId: string | null;
6574
+ status: KitStatus;
6122
6575
  };
6123
6576
  type ControlKitV1 = BaseKit & {
6124
6577
  type: "controlKitV1";
6125
6578
  simIdArray: string[];
6579
+ mqttTopicId: string;
6580
+ signalStrengthPercentage: number;
6581
+ teltonikaSerialNumber: string;
6582
+ flowIdArray: string[];
6126
6583
  };
6127
6584
  type TapkeyV1 = BaseKit & {
6128
6585
  type: "tapkeyV1";
@@ -6143,24 +6600,28 @@ declare namespace JUHUU {
6143
6600
  namespace Create {
6144
6601
  type Params = {
6145
6602
  name?: string;
6146
- propertyId: string;
6147
- template: {
6148
- type: "controlKitV1";
6149
- simIdArray: string[];
6150
- } | {
6151
- type: "tapkeyV1";
6152
- physicalLockId: string;
6153
- boundLockId: string;
6154
- ownerAccountId: string;
6155
- ipId: string;
6156
- } | {
6157
- type: "emzV1";
6158
- contractId: string;
6159
- targetHardwareId: string;
6160
- userId: string;
6161
- username: string;
6162
- password: string;
6163
- };
6603
+ propertyId?: string;
6604
+ type: "controlKitV1";
6605
+ simIdArray: string[];
6606
+ signalStrengthPercentage: number;
6607
+ teltonikaSerialNumber: string;
6608
+ } | {
6609
+ name?: string;
6610
+ propertyId?: string;
6611
+ type: "tapkeyV1";
6612
+ physicalLockId: string;
6613
+ boundLockId: string;
6614
+ ownerAccountId: string;
6615
+ ipId: string;
6616
+ } | {
6617
+ name?: string;
6618
+ propertyId?: string;
6619
+ type: "emzV1";
6620
+ contractId: string;
6621
+ targetHardwareId: string;
6622
+ userId: string;
6623
+ username: string;
6624
+ password: string;
6164
6625
  };
6165
6626
  type Options = JUHUU.RequestOptions;
6166
6627
  type Response = {
@@ -6180,7 +6641,7 @@ declare namespace JUHUU {
6180
6641
  type Params = {
6181
6642
  name?: string;
6182
6643
  propertyId?: string;
6183
- type?: KitType;
6644
+ type?: JUHUU.Kit.Object["type"];
6184
6645
  };
6185
6646
  type Options = {
6186
6647
  limit?: number;
@@ -6195,6 +6656,7 @@ declare namespace JUHUU {
6195
6656
  type Params = {
6196
6657
  kitId: string;
6197
6658
  name?: string;
6659
+ flowIdArray?: string[];
6198
6660
  };
6199
6661
  type Options = JUHUU.RequestOptions;
6200
6662
  type Response = {
@@ -6208,6 +6670,25 @@ declare namespace JUHUU {
6208
6670
  type Options = JUHUU.RequestOptions;
6209
6671
  type Response = JUHUU.Kit.Object;
6210
6672
  }
6673
+ namespace AttachProperty {
6674
+ type Params = {
6675
+ kitId: string;
6676
+ propertyId: string;
6677
+ };
6678
+ type Options = JUHUU.RequestOptions;
6679
+ type Response = {
6680
+ kit: JUHUU.Kit.Object;
6681
+ };
6682
+ }
6683
+ namespace DetachProperty {
6684
+ type Params = {
6685
+ kitId: string;
6686
+ };
6687
+ type Options = JUHUU.RequestOptions;
6688
+ type Response = {
6689
+ kit: JUHUU.Kit.Object;
6690
+ };
6691
+ }
6211
6692
  }
6212
6693
  namespace Panel {
6213
6694
  type Object = {
@@ -6219,8 +6700,10 @@ declare namespace JUHUU {
6219
6700
  propertyId: string;
6220
6701
  layoutBlockArray: LayoutBlock[];
6221
6702
  highlightLayoutBlockArray: LayoutBlock[];
6222
- localParameterArray: LocalParameter[];
6703
+ variables: Record<string, any>;
6223
6704
  display: PanelDisplay;
6705
+ permissionArray: DevicePermission[];
6706
+ proximityStrategyArray: ProximityStrategy[];
6224
6707
  };
6225
6708
  namespace Create {
6226
6709
  type Params = {
@@ -6228,8 +6711,10 @@ declare namespace JUHUU {
6228
6711
  name?: string;
6229
6712
  layoutBlockArray?: LayoutBlock[];
6230
6713
  highlightLayoutBlockArray?: LayoutBlock[];
6231
- localParameterArray?: LocalParameter[];
6714
+ variables?: Record<string, any>;
6232
6715
  display?: PanelDisplay;
6716
+ permissionArray?: DevicePermission[];
6717
+ proximityStrategyArray?: ProximityStrategy[];
6233
6718
  };
6234
6719
  type Options = JUHUU.RequestOptions;
6235
6720
  type Response = {
@@ -6240,9 +6725,12 @@ declare namespace JUHUU {
6240
6725
  type Params = {
6241
6726
  panelId: string;
6242
6727
  };
6243
- type Options = JUHUU.RequestOptions;
6728
+ type Options = {
6729
+ expand?: Array<"property">;
6730
+ } & JUHUU.RequestOptions;
6244
6731
  type Response = {
6245
6732
  panel: JUHUU.Panel.Object;
6733
+ property?: JUHUU.Property.Object;
6246
6734
  };
6247
6735
  }
6248
6736
  namespace List {
@@ -6263,8 +6751,10 @@ declare namespace JUHUU {
6263
6751
  name?: string;
6264
6752
  layoutBlockArray?: LayoutBlock[];
6265
6753
  highlightLayoutBlockArray?: LayoutBlock[];
6266
- localParameterArray?: LocalParameter[];
6754
+ variables?: Record<string, any>;
6267
6755
  display?: PanelDisplay;
6756
+ permissionArray?: DevicePermission[];
6757
+ proximityStrategyArray?: ProximityStrategy[];
6268
6758
  };
6269
6759
  type Options = JUHUU.RequestOptions;
6270
6760
  type Response = {
@@ -6448,49 +6938,148 @@ declare namespace JUHUU {
6448
6938
  type Params = {};
6449
6939
  type Options = JUHUU.RequestOptions;
6450
6940
  type Response = {
6451
- subscribe: (rooms: string[]) => void;
6452
- unsubscribe: (rooms: string[]) => void;
6453
- subscribeQuery: (payload: JUHUU.Websocket.SubscribeQuery.Params) => void;
6454
- unsubscribeQuery: (payload: JUHUU.Websocket.UnsubscribeQuery.Params) => void;
6455
- rpc: (payload: JUHUU.Websocket.Rpc.Params) => Promise<JUHUU.Websocket.Rpc.Response>;
6456
- onQueryUpdate: (callback: (message: JUHUU.Websocket.QueryUpdate) => void) => void;
6941
+ subscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
6942
+ unsubscribeFromLocations: (locationIdArray: string[]) => void;
6943
+ unsubscribeFromParameters: (parameterIdArray: string[]) => void;
6944
+ unsubscribeFromSessions: (sessionIdArray: string[]) => void;
6945
+ unsubscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
6946
+ ping: (data?: any) => void;
6947
+ onLocationUpdate: (callback: (message: JUHUU.Websocket.LocationUpdate) => void) => void;
6948
+ onParameterUpdate: (callback: (message: JUHUU.Websocket.ParameterUpdate) => void) => void;
6949
+ onSessionUpdate: (callback: (message: JUHUU.Websocket.SessionUpdate) => void) => void;
6950
+ onConnect: (callback: () => void) => void;
6951
+ onDisconnect: (callback: (reason: string) => void) => void;
6952
+ onReconnect: (callback: (attemptNumber: number) => void) => void;
6953
+ onConnectError: (callback: (error: any) => void) => void;
6954
+ onReconnectAttempt: (callback: (attemptNumber: number) => void) => void;
6955
+ onReconnectError: (callback: (error: any) => void) => void;
6956
+ onReconnectFailed: (callback: () => void) => void;
6957
+ onPong: (callback: (message: any) => void) => void;
6958
+ isConnected: () => boolean;
6457
6959
  close: () => void;
6458
6960
  };
6459
6961
  }
6460
- namespace SubscribeQuery {
6962
+ type LocationUpdate = {
6963
+ locationId: string;
6964
+ before: JUHUU.Location.Object;
6965
+ after: JUHUU.Location.Object;
6966
+ changedFields: string[];
6967
+ };
6968
+ type ParameterUpdate = {
6969
+ parameterId: string;
6970
+ before: JUHUU.Parameter.Object;
6971
+ after: JUHUU.Parameter.Object;
6972
+ changedFields: string[];
6973
+ initiatedAt?: Date;
6974
+ };
6975
+ type SessionUpdate = {
6976
+ sessionId: string;
6977
+ before: JUHUU.Session.Object;
6978
+ after: JUHUU.Session.Object;
6979
+ changedFields: string[];
6980
+ };
6981
+ type SubscriptionSuccess = {
6982
+ locationIdArray: string[];
6983
+ parameterIdArray: string[];
6984
+ sessionIdArray: string[];
6985
+ subscriptionResultArray: Array<{
6986
+ type: "location" | "parameter" | "session";
6987
+ id: string;
6988
+ roomName: string;
6989
+ success: boolean;
6990
+ }>;
6991
+ message: string;
6992
+ };
6993
+ type UnsubscriptionSuccess = {
6994
+ locationIdArray: string[];
6995
+ parameterIdArray: string[];
6996
+ sessionIdArray: string[];
6997
+ unsubscriptionResultArray: Array<{
6998
+ type: "location" | "parameter" | "session";
6999
+ id: string;
7000
+ roomName: string;
7001
+ success: boolean;
7002
+ }>;
7003
+ message: string;
7004
+ };
7005
+ }
7006
+ namespace Application {
7007
+ type Base = {
7008
+ id: string;
7009
+ version: number;
7010
+ readonly object: "application";
7011
+ readonly objectType: "dto";
7012
+ propertyId: string;
7013
+ colorScheme: ColorScheme | null;
7014
+ appIconLight: string | null;
7015
+ appIconDark: string | null;
7016
+ status: AppStatus;
7017
+ };
7018
+ interface Android extends Base {
7019
+ type: "android";
7020
+ }
7021
+ interface Ios extends Base {
7022
+ type: "ios";
7023
+ }
7024
+ type Object = Android | Ios;
7025
+ namespace Create {
7026
+ type Params = {
7027
+ propertyId: string;
7028
+ colorScheme?: ColorScheme | null;
7029
+ appIconLight?: string | null;
7030
+ appIconDark?: string | null;
7031
+ };
7032
+ type Options = JUHUU.RequestOptions;
7033
+ type Response = {
7034
+ application: JUHUU.Application.Object;
7035
+ };
7036
+ }
7037
+ namespace Retrieve {
6461
7038
  type Params = {
6462
- subId: string;
6463
- method: "GET";
6464
- path: string;
6465
- query?: Record<string, unknown>;
7039
+ applicationId: string;
7040
+ };
7041
+ type Options = JUHUU.RequestOptions;
7042
+ type Response = {
7043
+ application: JUHUU.Application.Object;
6466
7044
  };
6467
7045
  }
6468
- namespace UnsubscribeQuery {
7046
+ namespace List {
6469
7047
  type Params = {
6470
- subId: string;
7048
+ propertyId: string;
7049
+ };
7050
+ type Options = {
7051
+ limit?: number;
7052
+ skip?: number;
7053
+ } & JUHUU.RequestOptions;
7054
+ type Response = {
7055
+ applicationArray: JUHUU.Application.Object[];
7056
+ count: number;
7057
+ hasMore: boolean;
6471
7058
  };
6472
7059
  }
6473
- namespace Rpc {
7060
+ namespace Update {
6474
7061
  type Params = {
6475
- id: string;
6476
- method: "GET" | "POST" | "PATCH" | "DELETE";
6477
- path: string;
6478
- query?: Record<string, unknown>;
6479
- body?: unknown;
6480
- headers?: Record<string, unknown>;
7062
+ applicationId: string;
7063
+ colorScheme?: ColorScheme | null;
7064
+ appIconLight?: string | null;
7065
+ appIconDark?: string | null;
7066
+ status?: AppStatus;
6481
7067
  };
7068
+ type Options = JUHUU.RequestOptions;
6482
7069
  type Response = {
6483
- id: string;
6484
- status: number;
6485
- data?: unknown;
6486
- error?: unknown;
7070
+ application: JUHUU.Application.Object;
7071
+ };
7072
+ }
7073
+ namespace Delete {
7074
+ type Params = {
7075
+ applicationId: string;
7076
+ };
7077
+ type Options = JUHUU.RequestOptions;
7078
+ type Response = {
7079
+ application: JUHUU.Application.Object;
6487
7080
  };
6488
7081
  }
6489
- type QueryUpdate = {
6490
- subId: string;
6491
- data: unknown;
6492
- };
6493
7082
  }
6494
7083
  }
6495
7084
 
6496
- 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocalParameter, 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, Offer, type OfferTime, type PanelDisplay, 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 ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, 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 SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
7085
+ export { type AccessControlListElement, type AdditionalSubscriptionItem, type Address, type ApiKeyScope, type ApiKeyStatus, type AppStatus, type ArrayGetBlock, type ArrayGetBlockInputs, type ArrayLengthBlock, type ArrayLengthBlockInputs, type AutoRenewMode, type BaseBlock, type BenefitCardCopyBlock, type BenefitCardCopyBlockInputs, type BenefitCardListBlock, type BenefitCardListBlockInputs, type BenefitCardRetrieveBlock, type BenefitCardRetrieveBlockInputs, type BenefitCardUpdateBlock, type BenefitCardUpdateBlockInputs, type BlockExecutor, 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 DelaySleepBlock, type DelaySleepBlockInputs, 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, 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, Offer, type OfferTime, type PanelDisplay, 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 PlotData, type PostingRow, type PropertyAgreement, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type ProximityStrategy, type Purpose, type QuickAction, type QuickView, 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 SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TextMatchBlock, type TextMatchBlockInputs, type TextTemplateBlock, type TextTemplateBlockInputs, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };