@juhuu/sdk-ts 1.2.207 → 1.2.209

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
@@ -546,18 +546,122 @@ interface LocaleString {
546
546
  cs?: string;
547
547
  et?: string;
548
548
  }
549
- type FlowBlock = {
549
+ interface BaseBlock {
550
550
  id: string;
551
- type: string;
551
+ }
552
+ interface TriggerManualBlock extends BaseBlock {
553
+ type: "trigger.manual";
554
+ in: Record<string, never>;
555
+ out: Record<string, never>;
556
+ }
557
+ interface TriggerCustomBlock extends BaseBlock {
558
+ type: "trigger.custom";
559
+ in: Record<string, never>;
560
+ out: Record<string, string>;
561
+ inputParamDefinitionArray: ParamDefinition[];
562
+ }
563
+ interface TriggerQuickActionLocationBlock extends BaseBlock {
564
+ type: "trigger.quickAction.location";
565
+ in: Record<string, never>;
566
+ out: {
567
+ locationId: string;
568
+ propertyId: string;
569
+ };
570
+ }
571
+ interface ConstNumberBlock extends BaseBlock {
572
+ type: "const.number";
573
+ in: Record<string, never>;
574
+ out: {
575
+ value: string;
576
+ };
577
+ data: {
578
+ value: number;
579
+ };
580
+ }
581
+ interface ConstStringBlock extends BaseBlock {
582
+ type: "const.string";
583
+ in: Record<string, never>;
584
+ out: {
585
+ value: string;
586
+ };
587
+ data: {
588
+ value: string;
589
+ };
590
+ }
591
+ interface ConstBooleanBlock extends BaseBlock {
592
+ type: "const.boolean";
593
+ in: Record<string, never>;
594
+ out: {
595
+ value: string;
596
+ };
597
+ data: {
598
+ value: boolean;
599
+ };
600
+ }
601
+ interface MathAddBlock extends BaseBlock {
602
+ type: "math.add";
552
603
  in: {
553
- [key: string]: string;
604
+ a: string;
605
+ b: string;
554
606
  };
555
607
  out: {
556
- [key: string]: string;
608
+ result: string;
557
609
  };
558
- };
559
- type FlowEdge = {
610
+ }
611
+ interface MathAddBlockInputs {
612
+ a: number;
613
+ b: number;
614
+ }
615
+ interface FlowIfBlock extends BaseBlock {
616
+ type: "flow.if";
617
+ in: {
618
+ condition: string;
619
+ };
620
+ out: {
621
+ true: string;
622
+ false: string;
623
+ };
624
+ }
625
+ interface FlowSwitchBlock extends BaseBlock {
626
+ type: "flow.switch";
627
+ in: {
628
+ key: string;
629
+ };
630
+ out: Record<string, string>;
631
+ }
632
+ interface UtilLogBlock extends BaseBlock {
633
+ type: "util.log";
634
+ in: Record<string, string>;
635
+ out: Record<string, never>;
636
+ }
637
+ interface UtilEchoBlock extends BaseBlock {
638
+ type: "util.echo";
639
+ in: Record<string, string>;
640
+ out: Record<string, string>;
641
+ }
642
+ interface HttpsPatchBlock extends BaseBlock {
643
+ type: "https.patch";
644
+ in: {
645
+ url: string;
646
+ body?: string;
647
+ headers?: string;
648
+ };
649
+ out: {
650
+ status: string;
651
+ data: string;
652
+ };
653
+ }
654
+ interface EndBlock extends BaseBlock {
655
+ type: "end";
656
+ in: Record<string, string>;
657
+ out: Record<string, never>;
658
+ outputParamDefintionArray: ParamDefinition[];
659
+ }
660
+ type FlowBlock = TriggerManualBlock | TriggerCustomBlock | TriggerQuickActionLocationBlock | ConstNumberBlock | ConstStringBlock | ConstBooleanBlock | MathAddBlock | FlowIfBlock | FlowSwitchBlock | UtilLogBlock | UtilEchoBlock | HttpsPatchBlock | EndBlock;
661
+ type FlowBlockInput = MathAddBlockInputs | Record<string, unknown>;
662
+ interface FlowDataEdge {
560
663
  id: string;
664
+ type: "data";
561
665
  from: {
562
666
  blockId: string;
563
667
  output: string;
@@ -566,7 +670,26 @@ type FlowEdge = {
566
670
  blockId: string;
567
671
  input: string;
568
672
  };
569
- };
673
+ }
674
+ interface FlowControlEdge {
675
+ id: string;
676
+ type: "control";
677
+ from: {
678
+ blockId: string;
679
+ output: string | null;
680
+ };
681
+ to: {
682
+ blockId: string;
683
+ };
684
+ }
685
+ type FlowEdge = FlowDataEdge | FlowControlEdge;
686
+ type ParamType = "string" | "number" | "boolean" | "null" | "session" | "sessionArray";
687
+ interface ParamDefinition {
688
+ name: string;
689
+ type: ParamType[];
690
+ required: boolean;
691
+ description: string | null;
692
+ }
570
693
 
571
694
  declare class Service {
572
695
  constructor(config: JUHUU.SetupConfig);
@@ -3832,4 +3955,4 @@ declare namespace JUHUU {
3832
3955
  }
3833
3956
  }
3834
3957
 
3835
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type FlowExecutionEnvironment, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, 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 Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3958
+ 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 ConstStringBlock, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type EndBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowIfBlock, type FlowStatus, type FlowSwitchBlock, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpsPatchBlock, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type Modality, type Offer, type OfferTime, type ParamDefinition, type ParamType, 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 Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type TriggerCustomBlock, type TriggerManualBlock, type TriggerQuickActionLocationBlock, type Unit, type UserGroup, type UserType, type UtilEchoBlock, type UtilLogBlock, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.d.ts CHANGED
@@ -546,18 +546,122 @@ interface LocaleString {
546
546
  cs?: string;
547
547
  et?: string;
548
548
  }
549
- type FlowBlock = {
549
+ interface BaseBlock {
550
550
  id: string;
551
- type: string;
551
+ }
552
+ interface TriggerManualBlock extends BaseBlock {
553
+ type: "trigger.manual";
554
+ in: Record<string, never>;
555
+ out: Record<string, never>;
556
+ }
557
+ interface TriggerCustomBlock extends BaseBlock {
558
+ type: "trigger.custom";
559
+ in: Record<string, never>;
560
+ out: Record<string, string>;
561
+ inputParamDefinitionArray: ParamDefinition[];
562
+ }
563
+ interface TriggerQuickActionLocationBlock extends BaseBlock {
564
+ type: "trigger.quickAction.location";
565
+ in: Record<string, never>;
566
+ out: {
567
+ locationId: string;
568
+ propertyId: string;
569
+ };
570
+ }
571
+ interface ConstNumberBlock extends BaseBlock {
572
+ type: "const.number";
573
+ in: Record<string, never>;
574
+ out: {
575
+ value: string;
576
+ };
577
+ data: {
578
+ value: number;
579
+ };
580
+ }
581
+ interface ConstStringBlock extends BaseBlock {
582
+ type: "const.string";
583
+ in: Record<string, never>;
584
+ out: {
585
+ value: string;
586
+ };
587
+ data: {
588
+ value: string;
589
+ };
590
+ }
591
+ interface ConstBooleanBlock extends BaseBlock {
592
+ type: "const.boolean";
593
+ in: Record<string, never>;
594
+ out: {
595
+ value: string;
596
+ };
597
+ data: {
598
+ value: boolean;
599
+ };
600
+ }
601
+ interface MathAddBlock extends BaseBlock {
602
+ type: "math.add";
552
603
  in: {
553
- [key: string]: string;
604
+ a: string;
605
+ b: string;
554
606
  };
555
607
  out: {
556
- [key: string]: string;
608
+ result: string;
557
609
  };
558
- };
559
- type FlowEdge = {
610
+ }
611
+ interface MathAddBlockInputs {
612
+ a: number;
613
+ b: number;
614
+ }
615
+ interface FlowIfBlock extends BaseBlock {
616
+ type: "flow.if";
617
+ in: {
618
+ condition: string;
619
+ };
620
+ out: {
621
+ true: string;
622
+ false: string;
623
+ };
624
+ }
625
+ interface FlowSwitchBlock extends BaseBlock {
626
+ type: "flow.switch";
627
+ in: {
628
+ key: string;
629
+ };
630
+ out: Record<string, string>;
631
+ }
632
+ interface UtilLogBlock extends BaseBlock {
633
+ type: "util.log";
634
+ in: Record<string, string>;
635
+ out: Record<string, never>;
636
+ }
637
+ interface UtilEchoBlock extends BaseBlock {
638
+ type: "util.echo";
639
+ in: Record<string, string>;
640
+ out: Record<string, string>;
641
+ }
642
+ interface HttpsPatchBlock extends BaseBlock {
643
+ type: "https.patch";
644
+ in: {
645
+ url: string;
646
+ body?: string;
647
+ headers?: string;
648
+ };
649
+ out: {
650
+ status: string;
651
+ data: string;
652
+ };
653
+ }
654
+ interface EndBlock extends BaseBlock {
655
+ type: "end";
656
+ in: Record<string, string>;
657
+ out: Record<string, never>;
658
+ outputParamDefintionArray: ParamDefinition[];
659
+ }
660
+ type FlowBlock = TriggerManualBlock | TriggerCustomBlock | TriggerQuickActionLocationBlock | ConstNumberBlock | ConstStringBlock | ConstBooleanBlock | MathAddBlock | FlowIfBlock | FlowSwitchBlock | UtilLogBlock | UtilEchoBlock | HttpsPatchBlock | EndBlock;
661
+ type FlowBlockInput = MathAddBlockInputs | Record<string, unknown>;
662
+ interface FlowDataEdge {
560
663
  id: string;
664
+ type: "data";
561
665
  from: {
562
666
  blockId: string;
563
667
  output: string;
@@ -566,7 +670,26 @@ type FlowEdge = {
566
670
  blockId: string;
567
671
  input: string;
568
672
  };
569
- };
673
+ }
674
+ interface FlowControlEdge {
675
+ id: string;
676
+ type: "control";
677
+ from: {
678
+ blockId: string;
679
+ output: string | null;
680
+ };
681
+ to: {
682
+ blockId: string;
683
+ };
684
+ }
685
+ type FlowEdge = FlowDataEdge | FlowControlEdge;
686
+ type ParamType = "string" | "number" | "boolean" | "null" | "session" | "sessionArray";
687
+ interface ParamDefinition {
688
+ name: string;
689
+ type: ParamType[];
690
+ required: boolean;
691
+ description: string | null;
692
+ }
570
693
 
571
694
  declare class Service {
572
695
  constructor(config: JUHUU.SetupConfig);
@@ -3832,4 +3955,4 @@ declare namespace JUHUU {
3832
3955
  }
3833
3956
  }
3834
3957
 
3835
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type FlowExecutionEnvironment, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, 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 Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3958
+ 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 ConstStringBlock, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type EndBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowIfBlock, type FlowStatus, type FlowSwitchBlock, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpsPatchBlock, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type Modality, type Offer, type OfferTime, type ParamDefinition, type ParamType, 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 Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type TriggerCustomBlock, type TriggerManualBlock, type TriggerQuickActionLocationBlock, type Unit, type UserGroup, type UserType, type UtilEchoBlock, type UtilLogBlock, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.207",
3
+ "version": "1.2.209",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",