@juhuu/sdk-ts 1.2.206 → 1.2.208

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,16 +546,119 @@ 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
- };
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>;
559
662
  type FlowEdge = {
560
663
  id: string;
561
664
  from: {
@@ -567,6 +670,13 @@ type FlowEdge = {
567
670
  input: string;
568
671
  };
569
672
  };
673
+ type ParamType = "string" | "number" | "boolean" | "null" | "session" | "sessionArray";
674
+ interface ParamDefinition {
675
+ name: string;
676
+ type: ParamType[];
677
+ required: boolean;
678
+ description: string | null;
679
+ }
570
680
 
571
681
  declare class Service {
572
682
  constructor(config: JUHUU.SetupConfig);
@@ -3295,7 +3405,6 @@ declare namespace JUHUU {
3295
3405
  name: string | null;
3296
3406
  propertyId: string;
3297
3407
  lastUpdatedAt: Date | null;
3298
- parameterAnomalyGroupIdArray: string[];
3299
3408
  createdAt: Date | null;
3300
3409
  reference: string | null;
3301
3410
  };
@@ -3409,6 +3518,7 @@ declare namespace JUHUU {
3409
3518
  id: string;
3410
3519
  readonly object: "parameterAnomalyGroup";
3411
3520
  parameterAnomalyGroupTrackerId: string | null;
3521
+ parameterIdArray: string[];
3412
3522
  propertyId: string;
3413
3523
  name: string;
3414
3524
  };
@@ -3832,4 +3942,4 @@ declare namespace JUHUU {
3832
3942
  }
3833
3943
  }
3834
3944
 
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 };
3945
+ 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 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,16 +546,119 @@ 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
- };
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>;
559
662
  type FlowEdge = {
560
663
  id: string;
561
664
  from: {
@@ -567,6 +670,13 @@ type FlowEdge = {
567
670
  input: string;
568
671
  };
569
672
  };
673
+ type ParamType = "string" | "number" | "boolean" | "null" | "session" | "sessionArray";
674
+ interface ParamDefinition {
675
+ name: string;
676
+ type: ParamType[];
677
+ required: boolean;
678
+ description: string | null;
679
+ }
570
680
 
571
681
  declare class Service {
572
682
  constructor(config: JUHUU.SetupConfig);
@@ -3295,7 +3405,6 @@ declare namespace JUHUU {
3295
3405
  name: string | null;
3296
3406
  propertyId: string;
3297
3407
  lastUpdatedAt: Date | null;
3298
- parameterAnomalyGroupIdArray: string[];
3299
3408
  createdAt: Date | null;
3300
3409
  reference: string | null;
3301
3410
  };
@@ -3409,6 +3518,7 @@ declare namespace JUHUU {
3409
3518
  id: string;
3410
3519
  readonly object: "parameterAnomalyGroup";
3411
3520
  parameterAnomalyGroupTrackerId: string | null;
3521
+ parameterIdArray: string[];
3412
3522
  propertyId: string;
3413
3523
  name: string;
3414
3524
  };
@@ -3832,4 +3942,4 @@ declare namespace JUHUU {
3832
3942
  }
3833
3943
  }
3834
3944
 
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 };
3945
+ 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 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.js CHANGED
@@ -3276,7 +3276,7 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
3276
3276
  return await super.sendRequest(
3277
3277
  {
3278
3278
  method: "GET",
3279
- url: "articles?" + queryArray.join("&"),
3279
+ url: "parameterAnomalyGroupTrackers?" + queryArray.join("&"),
3280
3280
  body: void 0,
3281
3281
  authenticationNotOptional: false
3282
3282
  },
@@ -3293,7 +3293,7 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
3293
3293
  return await super.sendRequest(
3294
3294
  {
3295
3295
  method: "GET",
3296
- url: "articles/" + ParameterAnomalyGroupTrackerRetrieveParams.parameterAnomalyGroupTrackerId + "?" + queryArray.join("&"),
3296
+ url: "parameterAnomalyGroupTrackers/" + ParameterAnomalyGroupTrackerRetrieveParams.parameterAnomalyGroupTrackerId + "?" + queryArray.join("&"),
3297
3297
  body: void 0,
3298
3298
  authenticationNotOptional: false
3299
3299
  },
package/dist/index.mjs CHANGED
@@ -3232,7 +3232,7 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
3232
3232
  return await super.sendRequest(
3233
3233
  {
3234
3234
  method: "GET",
3235
- url: "articles?" + queryArray.join("&"),
3235
+ url: "parameterAnomalyGroupTrackers?" + queryArray.join("&"),
3236
3236
  body: void 0,
3237
3237
  authenticationNotOptional: false
3238
3238
  },
@@ -3249,7 +3249,7 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
3249
3249
  return await super.sendRequest(
3250
3250
  {
3251
3251
  method: "GET",
3252
- url: "articles/" + ParameterAnomalyGroupTrackerRetrieveParams.parameterAnomalyGroupTrackerId + "?" + queryArray.join("&"),
3252
+ url: "parameterAnomalyGroupTrackers/" + ParameterAnomalyGroupTrackerRetrieveParams.parameterAnomalyGroupTrackerId + "?" + queryArray.join("&"),
3253
3253
  body: void 0,
3254
3254
  authenticationNotOptional: false
3255
3255
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.206",
3
+ "version": "1.2.208",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",