@juhuu/sdk-ts 1.2.247 → 1.2.249

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
@@ -295,6 +295,7 @@ declare namespace Layout {
295
295
  icon: string;
296
296
  title: LocaleString;
297
297
  buttonName: string;
298
+ flowId: string | null | undefined;
298
299
  };
299
300
  export namespace Text {
300
301
  interface TextBlock extends Block {
@@ -321,6 +322,7 @@ declare namespace Layout {
321
322
  interface General extends Block {
322
323
  text: LocaleString;
323
324
  buttonName: string;
325
+ flowId: string | null | undefined;
324
326
  }
325
327
  interface Small extends General {
326
328
  type: "button.small";
@@ -358,6 +360,7 @@ declare namespace Layout {
358
360
  type: "card";
359
361
  elementArray: Array<CardElement>;
360
362
  buttonName: string | null;
363
+ flowId: string | null | undefined;
361
364
  }
362
365
  export type CardElement = {
363
366
  type: "text.plain";
@@ -365,9 +368,7 @@ declare namespace Layout {
365
368
  };
366
369
  export interface Toggle extends FormElementBlock {
367
370
  type: "toggle";
368
- onButtonName: string;
369
- offButtonName: string;
370
- defaultValueParameterName: string;
371
+ parameterId: string | null;
371
372
  }
372
373
  export { };
373
374
  }
@@ -1181,6 +1182,7 @@ declare class Service {
1181
1182
  setAccessToken: (accessToken: string) => Promise<void>;
1182
1183
  getRefreshToken: () => Promise<string | null>;
1183
1184
  setRefreshToken: (refreshToken: string) => Promise<void>;
1185
+ logger: (message: string, ...args: any[]) => void;
1184
1186
  sendRequest<T>({ url, method, body, authenticationNotOptional, }: {
1185
1187
  method: "GET";
1186
1188
  url: string;
@@ -1212,6 +1214,15 @@ declare class Service {
1212
1214
  disconnectFromWebsocket(socket: Socket): void;
1213
1215
  }
1214
1216
 
1217
+ declare class AchievementsService extends Service {
1218
+ constructor(config: JUHUU.SetupConfig);
1219
+ create(params: JUHUU.Achievement.Create.Params, options?: JUHUU.Achievement.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Achievement.Create.Response>>;
1220
+ list(params: JUHUU.Achievement.List.Params, options?: JUHUU.Achievement.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Achievement.List.Response>>;
1221
+ retrieve(params: JUHUU.Achievement.Retrieve.Params, options?: JUHUU.Achievement.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Achievement.Retrieve.Response>>;
1222
+ update(params: JUHUU.Achievement.Update.Params, options?: JUHUU.Achievement.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Achievement.Update.Response>>;
1223
+ delete(params: JUHUU.Achievement.Delete.Params, options?: JUHUU.Achievement.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Achievement.Delete.Response>>;
1224
+ }
1225
+
1215
1226
  declare class SessionService extends Service {
1216
1227
  constructor(config: JUHUU.SetupConfig);
1217
1228
  create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
@@ -1559,11 +1570,102 @@ declare class MqttTopicsService extends Service {
1559
1570
  delete(params: JUHUU.MqttTopic.Delete.Params, options?: JUHUU.MqttTopic.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Delete.Response>>;
1560
1571
  }
1561
1572
 
1573
+ declare class LicensePlatesService extends Service {
1574
+ constructor(config: JUHUU.SetupConfig);
1575
+ create(params: JUHUU.LicensePlate.Create.Params, options?: JUHUU.LicensePlate.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.LicensePlate.Create.Response>>;
1576
+ list(params: JUHUU.LicensePlate.List.Params, options?: JUHUU.LicensePlate.List.Options): Promise<JUHUU.HttpResponse<JUHUU.LicensePlate.List.Response>>;
1577
+ retrieve(params: JUHUU.LicensePlate.Retrieve.Params, options?: JUHUU.LicensePlate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.LicensePlate.Retrieve.Response>>;
1578
+ update(params: JUHUU.LicensePlate.Update.Params, options?: JUHUU.LicensePlate.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.LicensePlate.Update.Response>>;
1579
+ delete(params: JUHUU.LicensePlate.Delete.Params, options?: JUHUU.LicensePlate.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.LicensePlate.Delete.Response>>;
1580
+ }
1581
+
1582
+ declare class VehiclesService extends Service {
1583
+ constructor(config: JUHUU.SetupConfig);
1584
+ create(params: JUHUU.Vehicle.Create.Params, options?: JUHUU.Vehicle.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Vehicle.Create.Response>>;
1585
+ list(params: JUHUU.Vehicle.List.Params, options?: JUHUU.Vehicle.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Vehicle.List.Response>>;
1586
+ retrieve(params: JUHUU.Vehicle.Retrieve.Params, options?: JUHUU.Vehicle.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Vehicle.Retrieve.Response>>;
1587
+ update(params: JUHUU.Vehicle.Update.Params, options?: JUHUU.Vehicle.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Vehicle.Update.Response>>;
1588
+ delete(params: JUHUU.Vehicle.Delete.Params, options?: JUHUU.Vehicle.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Vehicle.Delete.Response>>;
1589
+ }
1590
+
1591
+ declare class OrdersService extends Service {
1592
+ constructor(config: JUHUU.SetupConfig);
1593
+ create(params: JUHUU.Order.Create.Params, options?: JUHUU.Order.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Order.Create.Response>>;
1594
+ list(params: JUHUU.Order.List.Params, options?: JUHUU.Order.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Order.List.Response>>;
1595
+ retrieve(params: JUHUU.Order.Retrieve.Params, options?: JUHUU.Order.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Order.Retrieve.Response>>;
1596
+ update(params: JUHUU.Order.Update.Params, options?: JUHUU.Order.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Order.Update.Response>>;
1597
+ delete(params: JUHUU.Order.Delete.Params, options?: JUHUU.Order.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Order.Delete.Response>>;
1598
+ }
1599
+
1600
+ declare class BasketsService extends Service {
1601
+ constructor(config: JUHUU.SetupConfig);
1602
+ create(params: JUHUU.Basket.Create.Params, options?: JUHUU.Basket.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Basket.Create.Response>>;
1603
+ list(params: JUHUU.Basket.List.Params, options?: JUHUU.Basket.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Basket.List.Response>>;
1604
+ retrieve(params: JUHUU.Basket.Retrieve.Params, options?: JUHUU.Basket.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Basket.Retrieve.Response>>;
1605
+ update(params: JUHUU.Basket.Update.Params, options?: JUHUU.Basket.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Basket.Update.Response>>;
1606
+ delete(params: JUHUU.Basket.Delete.Params, options?: JUHUU.Basket.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Basket.Delete.Response>>;
1607
+ }
1608
+
1609
+ declare class BenefitCardsService extends Service {
1610
+ constructor(config: JUHUU.SetupConfig);
1611
+ create(params: JUHUU.BenefitCard.Create.Params, options?: JUHUU.BenefitCard.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Create.Response>>;
1612
+ list(params: JUHUU.BenefitCard.List.Params, options?: JUHUU.BenefitCard.List.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.List.Response>>;
1613
+ retrieve(params: JUHUU.BenefitCard.Retrieve.Params, options?: JUHUU.BenefitCard.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Retrieve.Response>>;
1614
+ update(params: JUHUU.BenefitCard.Update.Params, options?: JUHUU.BenefitCard.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Update.Response>>;
1615
+ delete(params: JUHUU.BenefitCard.Delete.Params, options?: JUHUU.BenefitCard.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.BenefitCard.Delete.Response>>;
1616
+ }
1617
+
1618
+ declare class CatalogsService extends Service {
1619
+ constructor(config: JUHUU.SetupConfig);
1620
+ create(params: JUHUU.Catalog.Create.Params, options?: JUHUU.Catalog.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Catalog.Create.Response>>;
1621
+ list(params: JUHUU.Catalog.List.Params, options?: JUHUU.Catalog.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Catalog.List.Response>>;
1622
+ retrieve(params: JUHUU.Catalog.Retrieve.Params, options?: JUHUU.Catalog.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Catalog.Retrieve.Response>>;
1623
+ update(params: JUHUU.Catalog.Update.Params, options?: JUHUU.Catalog.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Catalog.Update.Response>>;
1624
+ delete(params: JUHUU.Catalog.Delete.Params, options?: JUHUU.Catalog.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Catalog.Delete.Response>>;
1625
+ }
1626
+
1627
+ declare class OffersService extends Service {
1628
+ constructor(config: JUHUU.SetupConfig);
1629
+ create(params: JUHUU.Offer.Create.Params, options?: JUHUU.Offer.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Offer.Create.Response>>;
1630
+ list(params: JUHUU.Offer.List.Params, options?: JUHUU.Offer.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Offer.List.Response>>;
1631
+ retrieve(params: JUHUU.Offer.Retrieve.Params, options?: JUHUU.Offer.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Offer.Retrieve.Response>>;
1632
+ update(params: JUHUU.Offer.Update.Params, options?: JUHUU.Offer.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Offer.Update.Response>>;
1633
+ delete(params: JUHUU.Offer.Delete.Params, options?: JUHUU.Offer.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Offer.Delete.Response>>;
1634
+ }
1635
+
1636
+ declare class KitsService extends Service {
1637
+ constructor(config: JUHUU.SetupConfig);
1638
+ create(params: JUHUU.Kit.Create.Params, options?: JUHUU.Kit.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Create.Response>>;
1639
+ list(params: JUHUU.Kit.List.Params, options?: JUHUU.Kit.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.List.Response>>;
1640
+ retrieve(params: JUHUU.Kit.Retrieve.Params, options?: JUHUU.Kit.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Retrieve.Response>>;
1641
+ update(params: JUHUU.Kit.Update.Params, options?: JUHUU.Kit.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Update.Response>>;
1642
+ delete(params: JUHUU.Kit.Delete.Params, options?: JUHUU.Kit.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Delete.Response>>;
1643
+ }
1644
+
1645
+ declare class PanelsService extends Service {
1646
+ constructor(config: JUHUU.SetupConfig);
1647
+ create(params: JUHUU.Panel.Create.Params, options?: JUHUU.Panel.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Panel.Create.Response>>;
1648
+ list(params: JUHUU.Panel.List.Params, options?: JUHUU.Panel.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Panel.List.Response>>;
1649
+ retrieve(params: JUHUU.Panel.Retrieve.Params, options?: JUHUU.Panel.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Panel.Retrieve.Response>>;
1650
+ update(params: JUHUU.Panel.Update.Params, options?: JUHUU.Panel.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Panel.Update.Response>>;
1651
+ delete(params: JUHUU.Panel.Delete.Params, options?: JUHUU.Panel.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Panel.Delete.Response>>;
1652
+ }
1653
+
1654
+ declare class PricesService extends Service {
1655
+ constructor(config: JUHUU.SetupConfig);
1656
+ create(params: JUHUU.Price.Create.Params, options?: JUHUU.Price.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.Create.Response>>;
1657
+ list(params: JUHUU.Price.List.Params, options?: JUHUU.Price.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.List.Response>>;
1658
+ retrieve(params: JUHUU.Price.Retrieve.Params, options?: JUHUU.Price.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.Retrieve.Response>>;
1659
+ update(params: JUHUU.Price.Update.Params, options?: JUHUU.Price.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.Update.Response>>;
1660
+ delete(params: JUHUU.Price.Delete.Params, options?: JUHUU.Price.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Price.Delete.Response>>;
1661
+ }
1662
+
1562
1663
  declare class Juhuu {
1563
1664
  constructor(config: JUHUU.SetupConfig);
1564
1665
  /**
1565
1666
  * Top Level Resources
1566
1667
  */
1668
+ readonly achievements: AchievementsService;
1567
1669
  readonly sessions: SessionService;
1568
1670
  readonly links: LinkService;
1569
1671
  readonly users: UsersService;
@@ -1600,8 +1702,157 @@ declare class Juhuu {
1600
1702
  readonly flows: FlowsService;
1601
1703
  readonly flowTraces: FlowTracesService;
1602
1704
  readonly mqttTopics: MqttTopicsService;
1705
+ readonly licensePlates: LicensePlatesService;
1706
+ readonly vehicles: VehiclesService;
1707
+ readonly orders: OrdersService;
1708
+ readonly baskets: BasketsService;
1709
+ readonly benefitCards: BenefitCardsService;
1710
+ readonly catalogs: CatalogsService;
1711
+ readonly offers: OffersService;
1712
+ readonly kits: KitsService;
1713
+ readonly panels: PanelsService;
1714
+ readonly prices: PricesService;
1603
1715
  }
1604
1716
  declare namespace JUHUU {
1717
+ namespace Achievement {
1718
+ type AchievementType = "progress" | "milestone" | "badge" | "trophy" | "streak" | "challenge";
1719
+ type AchievementStatus = "locked" | "unlocked" | "in_progress" | "completed" | "expired";
1720
+ type AchievementCategory = "gaming" | "learning" | "social" | "productivity" | "fitness" | "general";
1721
+ type AchievementDifficulty = "easy" | "medium" | "hard" | "expert";
1722
+ type AchievementCriteria = {
1723
+ type: string;
1724
+ target: number;
1725
+ current: number;
1726
+ unit: string;
1727
+ description: string;
1728
+ };
1729
+ type AchievementReward = {
1730
+ type: "points" | "badge" | "title" | "unlock" | "currency";
1731
+ value: number | string;
1732
+ description: string;
1733
+ };
1734
+ type AchievementMetadata = {
1735
+ icon: string | null;
1736
+ color: string | null;
1737
+ rarity: "common" | "rare" | "epic" | "legendary";
1738
+ displayOrder: number;
1739
+ tags: string[];
1740
+ prerequisites: string[];
1741
+ };
1742
+ type Object = {
1743
+ id: string;
1744
+ readonly object: "achievement";
1745
+ userId: string;
1746
+ name: string;
1747
+ title: string | null;
1748
+ description: string;
1749
+ type: AchievementType;
1750
+ status: AchievementStatus;
1751
+ category: AchievementCategory;
1752
+ difficulty: AchievementDifficulty;
1753
+ criteria: AchievementCriteria[];
1754
+ rewards: AchievementReward[];
1755
+ metadata: AchievementMetadata;
1756
+ progressPercentage: number;
1757
+ pointsAwarded: number;
1758
+ createdAt: string;
1759
+ updatedAt: string;
1760
+ unlockedAt: string | null;
1761
+ completedAt: string | null;
1762
+ expiresAt: string | null;
1763
+ isHidden: boolean;
1764
+ isRepeatable: boolean;
1765
+ timesCompleted: number;
1766
+ lastCompletedAt: string | null;
1767
+ };
1768
+ namespace Create {
1769
+ type Params = {
1770
+ userId: string;
1771
+ name: string;
1772
+ title?: string | null;
1773
+ description: string;
1774
+ type: AchievementType;
1775
+ status: AchievementStatus;
1776
+ category: AchievementCategory;
1777
+ difficulty: AchievementDifficulty;
1778
+ criteria: AchievementCriteria[];
1779
+ rewards: AchievementReward[];
1780
+ metadata: AchievementMetadata;
1781
+ progressPercentage?: number;
1782
+ pointsAwarded?: number;
1783
+ isHidden?: boolean;
1784
+ isRepeatable?: boolean;
1785
+ timesCompleted?: number;
1786
+ };
1787
+ type Options = JUHUU.RequestOptions;
1788
+ type Response = {
1789
+ achievement: JUHUU.Achievement.Object;
1790
+ };
1791
+ }
1792
+ namespace Retrieve {
1793
+ type Params = {
1794
+ achievementId: string;
1795
+ };
1796
+ type Options = JUHUU.RequestOptions;
1797
+ type Response = {
1798
+ achievement: JUHUU.Achievement.Object;
1799
+ };
1800
+ }
1801
+ namespace List {
1802
+ type Params = {
1803
+ userId?: string;
1804
+ name?: string;
1805
+ type?: AchievementType;
1806
+ status?: AchievementStatus;
1807
+ category?: AchievementCategory;
1808
+ difficulty?: AchievementDifficulty;
1809
+ isHidden?: boolean;
1810
+ isRepeatable?: boolean;
1811
+ rarity?: "common" | "rare" | "epic" | "legendary";
1812
+ };
1813
+ type Options = {
1814
+ limit?: number;
1815
+ skip?: number;
1816
+ } & JUHUU.RequestOptions;
1817
+ type Response = {
1818
+ achievementArray: JUHUU.Achievement.Object[];
1819
+ count: number;
1820
+ hasMore: boolean;
1821
+ };
1822
+ }
1823
+ namespace Update {
1824
+ type Params = {
1825
+ achievementId: string;
1826
+ userId?: string;
1827
+ name?: string;
1828
+ title?: string | null;
1829
+ description?: string;
1830
+ type?: AchievementType;
1831
+ status?: AchievementStatus;
1832
+ category?: AchievementCategory;
1833
+ difficulty?: AchievementDifficulty;
1834
+ criteria?: AchievementCriteria[];
1835
+ rewards?: AchievementReward[];
1836
+ metadata?: AchievementMetadata;
1837
+ progressPercentage?: number;
1838
+ pointsAwarded?: number;
1839
+ isHidden?: boolean;
1840
+ isRepeatable?: boolean;
1841
+ timesCompleted?: number;
1842
+ };
1843
+ type Options = JUHUU.RequestOptions;
1844
+ type Response = {
1845
+ achievement: JUHUU.Achievement.Object;
1846
+ };
1847
+ }
1848
+ namespace Delete {
1849
+ type Params = {
1850
+ achievementId: string;
1851
+ };
1852
+ type Options = JUHUU.RequestOptions;
1853
+ type Response = JUHUU.Achievement.Object;
1854
+ }
1855
+ }
1605
1856
  interface SetupConfig {
1606
1857
  environment?: Environment;
1607
1858
  getAccessToken?: () => Promise<string | null>;
@@ -1609,6 +1860,7 @@ declare namespace JUHUU {
1609
1860
  setAccessToken?: (accessToken: string) => Promise<void>;
1610
1861
  getRefreshToken?: () => Promise<string | null>;
1611
1862
  setRefreshToken?: (refreshToken: string) => Promise<void>;
1863
+ logger?: (message: string, ...args: any[]) => void;
1612
1864
  clientVersion: string;
1613
1865
  apiKey?: string;
1614
1866
  defaultRequestOptions?: JUHUU.RequestOptions;
@@ -3519,12 +3771,12 @@ declare namespace JUHUU {
3519
3771
  export { };
3520
3772
  }
3521
3773
  namespace Product {
3522
- type Object = {
3774
+ type ProductType = "benefitCard" | "session" | "marketplace" | "default";
3775
+ type BaseProduct = {
3523
3776
  id: string;
3524
3777
  readonly object: "product";
3525
3778
  name: string;
3526
3779
  propertyId: string;
3527
- version: number;
3528
3780
  previewText: LocaleString;
3529
3781
  description: LocaleString;
3530
3782
  bannerImageDark: string[];
@@ -3536,20 +3788,40 @@ declare namespace JUHUU {
3536
3788
  technologyArray: Technology[];
3537
3789
  articleId: string | null;
3538
3790
  };
3791
+ type BenefitCardProduct = BaseProduct & {
3792
+ type: "benefitCard";
3793
+ benefitCardConfig: string;
3794
+ };
3795
+ type SessionProduct = BaseProduct & {
3796
+ type: "session";
3797
+ sessionConfig: string;
3798
+ };
3799
+ type MarketplaceProduct = BaseProduct & {
3800
+ type: "marketplace";
3801
+ marketplaceConfig: string;
3802
+ };
3803
+ type DefaultProduct = BaseProduct & {
3804
+ type: "default";
3805
+ defaultConfig: string;
3806
+ };
3807
+ type Object = BenefitCardProduct | SessionProduct | MarketplaceProduct | DefaultProduct;
3539
3808
  namespace Create {
3540
3809
  type Params = {
3541
- propertyId: string;
3542
3810
  name?: string;
3543
- previewText?: LocaleString;
3544
- description?: LocaleString;
3545
- highlightArray?: LocaleString[];
3546
- purposeArray?: Purpose[];
3547
- technologyArray?: Technology[];
3548
- articleId?: string | null;
3549
- bannerImageDark?: string[];
3550
- bannerImageLight?: string[];
3551
- model3d?: string | null;
3552
- datasheet?: DeepNullable<LocaleString>;
3811
+ propertyId: string;
3812
+ template: {
3813
+ type: "benefitCard";
3814
+ benefitCardConfig: string;
3815
+ } | {
3816
+ type: "session";
3817
+ sessionConfig: string;
3818
+ } | {
3819
+ type: "marketplace";
3820
+ marketplaceConfig: string;
3821
+ } | {
3822
+ type: "default";
3823
+ defaultConfig: string;
3824
+ };
3553
3825
  };
3554
3826
  type Options = JUHUU.RequestOptions;
3555
3827
  type Response = {
@@ -3561,7 +3833,7 @@ declare namespace JUHUU {
3561
3833
  productId: string;
3562
3834
  };
3563
3835
  type Options = {
3564
- expand: Array<"property">;
3836
+ expand?: Array<"property">;
3565
3837
  } & JUHUU.RequestOptions;
3566
3838
  type Response = {
3567
3839
  product: Product.Object;
@@ -3570,13 +3842,18 @@ declare namespace JUHUU {
3570
3842
  namespace List {
3571
3843
  type Params = {
3572
3844
  propertyId?: string;
3845
+ type?: ProductType;
3573
3846
  categoryArray?: Category[];
3574
3847
  modalityArray?: Modality[];
3575
3848
  sectorArray?: Sector[];
3576
3849
  technologyArray?: Technology[];
3577
3850
  };
3578
3851
  type Options = JUHUU.RequestOptions;
3579
- type Response = Product.Object[];
3852
+ type Response = {
3853
+ productArray: Product.Object[];
3854
+ count: number;
3855
+ hasMore: boolean;
3856
+ };
3580
3857
  }
3581
3858
  namespace Update {
3582
3859
  type Params = {
@@ -4647,6 +4924,1447 @@ declare namespace JUHUU {
4647
4924
  type Response = JUHUU.MqttTopic.Object;
4648
4925
  }
4649
4926
  }
4927
+ namespace LicensePlate {
4928
+ type Object = {
4929
+ id: string;
4930
+ readonly object: "licensePlate";
4931
+ userId: string | null;
4932
+ name: string;
4933
+ };
4934
+ namespace Create {
4935
+ type Params = {
4936
+ userId?: string | null;
4937
+ name: string;
4938
+ };
4939
+ type Options = JUHUU.RequestOptions;
4940
+ type Response = {
4941
+ licensePlate: JUHUU.LicensePlate.Object;
4942
+ };
4943
+ }
4944
+ namespace Retrieve {
4945
+ type Params = {
4946
+ licensePlateId: string;
4947
+ };
4948
+ type Options = JUHUU.RequestOptions;
4949
+ type Response = {
4950
+ licensePlate: JUHUU.LicensePlate.Object;
4951
+ };
4952
+ }
4953
+ namespace List {
4954
+ type Params = {
4955
+ userId?: string;
4956
+ };
4957
+ type Options = {
4958
+ limit?: number;
4959
+ skip?: number;
4960
+ } & JUHUU.RequestOptions;
4961
+ type Response = {
4962
+ licensePlateArray: JUHUU.LicensePlate.Object[];
4963
+ count: number;
4964
+ hasMore: boolean;
4965
+ };
4966
+ }
4967
+ namespace Update {
4968
+ type Params = {
4969
+ licensePlateId: string;
4970
+ userId?: string | null;
4971
+ name?: string;
4972
+ };
4973
+ type Options = JUHUU.RequestOptions;
4974
+ type Response = {
4975
+ licensePlate: JUHUU.LicensePlate.Object;
4976
+ };
4977
+ }
4978
+ namespace Delete {
4979
+ type Params = {
4980
+ licensePlateId: string;
4981
+ };
4982
+ type Options = JUHUU.RequestOptions;
4983
+ type Response = JUHUU.LicensePlate.Object;
4984
+ }
4985
+ }
4986
+ namespace Vehicle {
4987
+ type BaseVehicle = {
4988
+ id: string;
4989
+ readonly object: "vehicle";
4990
+ userId: string;
4991
+ licensePlateNumber: string;
4992
+ make: string;
4993
+ model: string;
4994
+ year: number;
4995
+ color: string | null;
4996
+ vin: string | null;
4997
+ };
4998
+ type CarVehicle = BaseVehicle & {
4999
+ type: "car";
5000
+ doorCount: number;
5001
+ engineSize: number | null;
5002
+ fuelType: "gasoline" | "diesel" | "electric" | "hybrid" | "lpg";
5003
+ transmission: "manual" | "automatic" | "cvt";
5004
+ drivetrain: "fwd" | "rwd" | "awd" | "4wd";
5005
+ };
5006
+ type BikeVehicle = BaseVehicle & {
5007
+ type: "bike";
5008
+ bikeType: "road" | "mountain" | "hybrid" | "electric" | "bmx" | "cruiser" | "folding";
5009
+ wheelSize: number;
5010
+ frameSize: string | null;
5011
+ gearCount: number;
5012
+ hasElectricMotor: boolean;
5013
+ batteryCapacity: number | null;
5014
+ };
5015
+ type ScooterVehicle = BaseVehicle & {
5016
+ type: "scooter";
5017
+ engineSize: number;
5018
+ maxSpeed: number;
5019
+ fuelType: "gasoline" | "electric";
5020
+ batteryCapacity: number | null;
5021
+ wheelSize: number;
5022
+ hasStorage: boolean;
5023
+ storageCapacity: number | null;
5024
+ };
5025
+ type MopedVehicle = BaseVehicle & {
5026
+ type: "moped";
5027
+ engineSize: number;
5028
+ maxSpeed: number;
5029
+ fuelType: "gasoline" | "electric";
5030
+ batteryCapacity: number | null;
5031
+ hasPedals: boolean;
5032
+ licensePlateRequired: boolean;
5033
+ insuranceRequired: boolean;
5034
+ };
5035
+ type Object = CarVehicle | BikeVehicle | ScooterVehicle | MopedVehicle;
5036
+ type CarTemplate = {
5037
+ type: "car";
5038
+ doorCount: number;
5039
+ engineSize: number | null;
5040
+ fuelType: "gasoline" | "diesel" | "electric" | "hybrid" | "lpg";
5041
+ transmission: "manual" | "automatic" | "cvt";
5042
+ drivetrain: "fwd" | "rwd" | "awd" | "4wd";
5043
+ };
5044
+ type BikeTemplate = {
5045
+ type: "bike";
5046
+ bikeType: "road" | "mountain" | "hybrid" | "electric" | "bmx" | "cruiser" | "folding";
5047
+ wheelSize: number;
5048
+ frameSize: string | null;
5049
+ gearCount: number;
5050
+ hasElectricMotor: boolean;
5051
+ batteryCapacity: number | null;
5052
+ };
5053
+ type ScooterTemplate = {
5054
+ type: "scooter";
5055
+ engineSize: number;
5056
+ maxSpeed: number;
5057
+ fuelType: "gasoline" | "electric";
5058
+ batteryCapacity: number | null;
5059
+ wheelSize: number;
5060
+ hasStorage: boolean;
5061
+ storageCapacity: number | null;
5062
+ };
5063
+ type MopedTemplate = {
5064
+ type: "moped";
5065
+ engineSize: number;
5066
+ maxSpeed: number;
5067
+ fuelType: "gasoline" | "electric";
5068
+ batteryCapacity: number | null;
5069
+ hasPedals: boolean;
5070
+ licensePlateRequired: boolean;
5071
+ insuranceRequired: boolean;
5072
+ };
5073
+ type VehicleTemplate = CarTemplate | BikeTemplate | ScooterTemplate | MopedTemplate;
5074
+ namespace Create {
5075
+ type Params = {
5076
+ userId: string;
5077
+ licensePlateNumber: string;
5078
+ make: string;
5079
+ model: string;
5080
+ year: number;
5081
+ color?: string | null;
5082
+ vin?: string | null;
5083
+ template: VehicleTemplate;
5084
+ };
5085
+ type Options = JUHUU.RequestOptions;
5086
+ type Response = {
5087
+ vehicle: JUHUU.Vehicle.Object;
5088
+ };
5089
+ }
5090
+ namespace Retrieve {
5091
+ type Params = {
5092
+ vehicleId: string;
5093
+ };
5094
+ type Options = JUHUU.RequestOptions;
5095
+ type Response = {
5096
+ vehicle: JUHUU.Vehicle.Object;
5097
+ };
5098
+ }
5099
+ namespace List {
5100
+ type Params = {
5101
+ userId?: string;
5102
+ licensePlateNumber?: string;
5103
+ make?: string;
5104
+ model?: string;
5105
+ };
5106
+ type Options = {
5107
+ limit?: number;
5108
+ skip?: number;
5109
+ } & JUHUU.RequestOptions;
5110
+ type Response = {
5111
+ vehicleArray: JUHUU.Vehicle.Object[];
5112
+ count: number;
5113
+ hasMore: boolean;
5114
+ };
5115
+ }
5116
+ namespace Update {
5117
+ type Params = {
5118
+ vehicleId: string;
5119
+ userId?: string;
5120
+ licensePlateNumber?: string;
5121
+ make?: string;
5122
+ model?: string;
5123
+ year?: number;
5124
+ color?: string | null;
5125
+ vin?: string | null;
5126
+ };
5127
+ type Options = JUHUU.RequestOptions;
5128
+ type Response = {
5129
+ vehicle: JUHUU.Vehicle.Object;
5130
+ };
5131
+ }
5132
+ namespace Delete {
5133
+ type Params = {
5134
+ vehicleId: string;
5135
+ };
5136
+ type Options = JUHUU.RequestOptions;
5137
+ type Response = JUHUU.Vehicle.Object;
5138
+ }
5139
+ }
5140
+ namespace Order {
5141
+ type OrderStatus = "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded";
5142
+ type PaymentStatus = "pending" | "paid" | "failed" | "refunded";
5143
+ type OrderItem = {
5144
+ productId: string;
5145
+ productName: string;
5146
+ quantity: number;
5147
+ unitPrice: number;
5148
+ totalPrice: number;
5149
+ };
5150
+ type OrderAddress = {
5151
+ street: string;
5152
+ city: string;
5153
+ state: string;
5154
+ postalCode: string;
5155
+ country: string;
5156
+ };
5157
+ type Object = {
5158
+ id: string;
5159
+ readonly object: "order";
5160
+ userId: string;
5161
+ orderNumber: string;
5162
+ status: OrderStatus;
5163
+ paymentStatus: PaymentStatus;
5164
+ items: OrderItem[];
5165
+ subtotal: number;
5166
+ tax: number;
5167
+ shipping: number;
5168
+ total: number;
5169
+ currency: string;
5170
+ shippingAddress: OrderAddress;
5171
+ billingAddress: OrderAddress;
5172
+ orderDate: string;
5173
+ estimatedDeliveryDate: string | null;
5174
+ actualDeliveryDate: string | null;
5175
+ notes: string | null;
5176
+ };
5177
+ namespace Create {
5178
+ type Params = {
5179
+ userId: string;
5180
+ orderNumber: string;
5181
+ status: OrderStatus;
5182
+ paymentStatus: PaymentStatus;
5183
+ items: OrderItem[];
5184
+ subtotal: number;
5185
+ tax: number;
5186
+ shipping: number;
5187
+ total: number;
5188
+ currency: string;
5189
+ shippingAddress: OrderAddress;
5190
+ billingAddress: OrderAddress;
5191
+ orderDate: string;
5192
+ estimatedDeliveryDate?: string | null;
5193
+ actualDeliveryDate?: string | null;
5194
+ notes?: string | null;
5195
+ };
5196
+ type Options = JUHUU.RequestOptions;
5197
+ type Response = {
5198
+ order: JUHUU.Order.Object;
5199
+ };
5200
+ }
5201
+ namespace Retrieve {
5202
+ type Params = {
5203
+ orderId: string;
5204
+ };
5205
+ type Options = JUHUU.RequestOptions;
5206
+ type Response = {
5207
+ order: JUHUU.Order.Object;
5208
+ };
5209
+ }
5210
+ namespace List {
5211
+ type Params = {
5212
+ userId?: string;
5213
+ orderNumber?: string;
5214
+ status?: OrderStatus;
5215
+ paymentStatus?: PaymentStatus;
5216
+ currency?: string;
5217
+ };
5218
+ type Options = {
5219
+ limit?: number;
5220
+ skip?: number;
5221
+ } & JUHUU.RequestOptions;
5222
+ type Response = {
5223
+ orderArray: JUHUU.Order.Object[];
5224
+ count: number;
5225
+ hasMore: boolean;
5226
+ };
5227
+ }
5228
+ namespace Update {
5229
+ type Params = {
5230
+ orderId: string;
5231
+ userId?: string;
5232
+ orderNumber?: string;
5233
+ status?: OrderStatus;
5234
+ paymentStatus?: PaymentStatus;
5235
+ items?: OrderItem[];
5236
+ subtotal?: number;
5237
+ tax?: number;
5238
+ shipping?: number;
5239
+ total?: number;
5240
+ currency?: string;
5241
+ shippingAddress?: Partial<OrderAddress>;
5242
+ billingAddress?: Partial<OrderAddress>;
5243
+ orderDate?: string;
5244
+ estimatedDeliveryDate?: string | null;
5245
+ actualDeliveryDate?: string | null;
5246
+ notes?: string | null;
5247
+ };
5248
+ type Options = JUHUU.RequestOptions;
5249
+ type Response = {
5250
+ order: JUHUU.Order.Object;
5251
+ };
5252
+ }
5253
+ namespace Delete {
5254
+ type Params = {
5255
+ orderId: string;
5256
+ };
5257
+ type Options = JUHUU.RequestOptions;
5258
+ type Response = JUHUU.Order.Object;
5259
+ }
5260
+ }
5261
+ namespace Basket {
5262
+ type BasketStatus = "active" | "abandoned" | "converted" | "expired";
5263
+ type BasketItem = {
5264
+ productId: string;
5265
+ productName: string;
5266
+ quantity: number;
5267
+ unitPrice: number;
5268
+ totalPrice: number;
5269
+ discountAmount?: number;
5270
+ };
5271
+ type Object = {
5272
+ id: string;
5273
+ readonly object: "basket";
5274
+ userId: string;
5275
+ sessionId: string | null;
5276
+ status: BasketStatus;
5277
+ items: BasketItem[];
5278
+ itemCount: number;
5279
+ subtotal: number;
5280
+ discountTotal: number;
5281
+ taxEstimate: number;
5282
+ shippingEstimate: number;
5283
+ total: number;
5284
+ currency: string;
5285
+ expiresAt: string | null;
5286
+ notes: string | null;
5287
+ };
5288
+ namespace Create {
5289
+ type Params = {
5290
+ userId: string;
5291
+ sessionId?: string | null;
5292
+ status: BasketStatus;
5293
+ items: BasketItem[];
5294
+ itemCount: number;
5295
+ subtotal: number;
5296
+ discountTotal: number;
5297
+ taxEstimate: number;
5298
+ shippingEstimate: number;
5299
+ total: number;
5300
+ currency: string;
5301
+ expiresAt?: string | null;
5302
+ notes?: string | null;
5303
+ };
5304
+ type Options = JUHUU.RequestOptions;
5305
+ type Response = {
5306
+ basket: JUHUU.Basket.Object;
5307
+ };
5308
+ }
5309
+ namespace Retrieve {
5310
+ type Params = {
5311
+ basketId: string;
5312
+ };
5313
+ type Options = JUHUU.RequestOptions;
5314
+ type Response = {
5315
+ basket: JUHUU.Basket.Object;
5316
+ };
5317
+ }
5318
+ namespace List {
5319
+ type Params = {
5320
+ userId?: string;
5321
+ sessionId?: string;
5322
+ status?: BasketStatus;
5323
+ currency?: string;
5324
+ };
5325
+ type Options = {
5326
+ limit?: number;
5327
+ skip?: number;
5328
+ } & JUHUU.RequestOptions;
5329
+ type Response = {
5330
+ basketArray: JUHUU.Basket.Object[];
5331
+ count: number;
5332
+ hasMore: boolean;
5333
+ };
5334
+ }
5335
+ namespace Update {
5336
+ type Params = {
5337
+ basketId: string;
5338
+ userId?: string;
5339
+ sessionId?: string | null;
5340
+ status?: BasketStatus;
5341
+ items?: BasketItem[];
5342
+ itemCount?: number;
5343
+ subtotal?: number;
5344
+ discountTotal?: number;
5345
+ taxEstimate?: number;
5346
+ shippingEstimate?: number;
5347
+ total?: number;
5348
+ currency?: string;
5349
+ expiresAt?: string | null;
5350
+ notes?: string | null;
5351
+ };
5352
+ type Options = JUHUU.RequestOptions;
5353
+ type Response = {
5354
+ basket: JUHUU.Basket.Object;
5355
+ };
5356
+ }
5357
+ namespace Delete {
5358
+ type Params = {
5359
+ basketId: string;
5360
+ };
5361
+ type Options = JUHUU.RequestOptions;
5362
+ type Response = JUHUU.Basket.Object;
5363
+ }
5364
+ }
5365
+ namespace BenefitCard {
5366
+ type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
5367
+ type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
5368
+ type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
5369
+ type Benefit = {
5370
+ type: BenefitType;
5371
+ name: string;
5372
+ description: string;
5373
+ value: number;
5374
+ unit: string;
5375
+ conditions: string[];
5376
+ validFrom: string | null;
5377
+ validTo: string | null;
5378
+ usageLimit: number | null;
5379
+ usageCount: number;
5380
+ minimumSpend: number | null;
5381
+ maximumDiscount: number | null;
5382
+ applicableCategories: string[];
5383
+ excludedCategories: string[];
5384
+ };
5385
+ type BenefitCardLimits = {
5386
+ dailyUsageLimit: number | null;
5387
+ monthlyUsageLimit: number | null;
5388
+ yearlyUsageLimit: number | null;
5389
+ lifetimeUsageLimit: number | null;
5390
+ dailySpendLimit: number | null;
5391
+ monthlySpendLimit: number | null;
5392
+ yearlySpendLimit: number | null;
5393
+ perTransactionLimit: number | null;
5394
+ };
5395
+ type BenefitCardMetadata = {
5396
+ issuer: string;
5397
+ brand: string | null;
5398
+ level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
5399
+ renewalDate: string | null;
5400
+ memberSince: string;
5401
+ referralCode: string | null;
5402
+ partnerPrograms: string[];
5403
+ tags: string[];
5404
+ notes: string | null;
5405
+ };
5406
+ type Object = {
5407
+ id: string;
5408
+ readonly object: "benefitCard";
5409
+ userId: string;
5410
+ cardNumber: string;
5411
+ cardHolderName: string;
5412
+ type: BenefitCardType;
5413
+ status: BenefitCardStatus;
5414
+ benefits: Benefit[];
5415
+ limits: BenefitCardLimits;
5416
+ metadata: BenefitCardMetadata;
5417
+ pointsBalance: number;
5418
+ cashbackBalance: number;
5419
+ totalSavings: number;
5420
+ totalSpent: number;
5421
+ transactionCount: number;
5422
+ lastUsedAt: string | null;
5423
+ createdAt: string;
5424
+ updatedAt: string;
5425
+ activatedAt: string | null;
5426
+ expiresAt: string | null;
5427
+ isDigital: boolean;
5428
+ isTransferable: boolean;
5429
+ requiresPin: boolean;
5430
+ pin: string | null;
5431
+ qrCode: string | null;
5432
+ barcode: string | null;
5433
+ };
5434
+ namespace Create {
5435
+ type Params = {
5436
+ userId: string;
5437
+ cardNumber: string;
5438
+ cardHolderName: string;
5439
+ type: BenefitCardType;
5440
+ status: BenefitCardStatus;
5441
+ benefits: Benefit[];
5442
+ limits: BenefitCardLimits;
5443
+ metadata: BenefitCardMetadata;
5444
+ pointsBalance?: number;
5445
+ cashbackBalance?: number;
5446
+ totalSavings?: number;
5447
+ totalSpent?: number;
5448
+ transactionCount?: number;
5449
+ expiresAt?: string | null;
5450
+ isDigital?: boolean;
5451
+ isTransferable?: boolean;
5452
+ requiresPin?: boolean;
5453
+ pin?: string | null;
5454
+ qrCode?: string | null;
5455
+ barcode?: string | null;
5456
+ };
5457
+ type Options = JUHUU.RequestOptions;
5458
+ type Response = {
5459
+ benefitCard: JUHUU.BenefitCard.Object;
5460
+ };
5461
+ }
5462
+ namespace Retrieve {
5463
+ type Params = {
5464
+ benefitCardId: string;
5465
+ };
5466
+ type Options = JUHUU.RequestOptions;
5467
+ type Response = {
5468
+ benefitCard: JUHUU.BenefitCard.Object;
5469
+ };
5470
+ }
5471
+ namespace List {
5472
+ type Params = {
5473
+ userId?: string;
5474
+ cardNumber?: string;
5475
+ cardHolderName?: string;
5476
+ type?: BenefitCardType;
5477
+ status?: BenefitCardStatus;
5478
+ issuer?: string;
5479
+ brand?: string;
5480
+ level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
5481
+ isDigital?: boolean;
5482
+ isTransferable?: boolean;
5483
+ requiresPin?: boolean;
5484
+ };
5485
+ type Options = {
5486
+ limit?: number;
5487
+ skip?: number;
5488
+ } & JUHUU.RequestOptions;
5489
+ type Response = {
5490
+ benefitCardArray: JUHUU.BenefitCard.Object[];
5491
+ count: number;
5492
+ hasMore: boolean;
5493
+ };
5494
+ }
5495
+ namespace Update {
5496
+ type Params = {
5497
+ benefitCardId: string;
5498
+ userId?: string;
5499
+ cardNumber?: string;
5500
+ cardHolderName?: string;
5501
+ type?: BenefitCardType;
5502
+ status?: BenefitCardStatus;
5503
+ benefits?: Benefit[];
5504
+ limits?: BenefitCardLimits;
5505
+ metadata?: BenefitCardMetadata;
5506
+ pointsBalance?: number;
5507
+ cashbackBalance?: number;
5508
+ totalSavings?: number;
5509
+ totalSpent?: number;
5510
+ transactionCount?: number;
5511
+ expiresAt?: string | null;
5512
+ isDigital?: boolean;
5513
+ isTransferable?: boolean;
5514
+ requiresPin?: boolean;
5515
+ pin?: string | null;
5516
+ qrCode?: string | null;
5517
+ barcode?: string | null;
5518
+ };
5519
+ type Options = JUHUU.RequestOptions;
5520
+ type Response = {
5521
+ benefitCard: JUHUU.BenefitCard.Object;
5522
+ };
5523
+ }
5524
+ namespace Delete {
5525
+ type Params = {
5526
+ benefitCardId: string;
5527
+ };
5528
+ type Options = JUHUU.RequestOptions;
5529
+ type Response = JUHUU.BenefitCard.Object;
5530
+ }
5531
+ }
5532
+ namespace Catalog {
5533
+ type CatalogType = "product" | "service" | "digital" | "subscription" | "marketplace" | "internal";
5534
+ type CatalogStatus = "draft" | "published" | "archived" | "suspended" | "pending_review";
5535
+ type CatalogVisibility = "public" | "private" | "restricted" | "invitation_only";
5536
+ type CatalogCategory = {
5537
+ id: string;
5538
+ name: string;
5539
+ description: string | null;
5540
+ parentCategoryId: string | null;
5541
+ sortOrder: number;
5542
+ isActive: boolean;
5543
+ imageUrl: string | null;
5544
+ seoSlug: string;
5545
+ metadata: Record<string, any>;
5546
+ };
5547
+ type CatalogProduct = {
5548
+ productId: string;
5549
+ name: string;
5550
+ description: string | null;
5551
+ sku: string | null;
5552
+ price: number | null;
5553
+ currency: string | null;
5554
+ categoryIds: string[];
5555
+ tags: string[];
5556
+ isActive: boolean;
5557
+ isFeatured: boolean;
5558
+ sortOrder: number;
5559
+ imageUrls: string[];
5560
+ attributes: Record<string, any>;
5561
+ availability: {
5562
+ inStock: boolean;
5563
+ quantity: number | null;
5564
+ backorderAllowed: boolean;
5565
+ expectedRestockDate: string | null;
5566
+ };
5567
+ };
5568
+ type CatalogSettings = {
5569
+ allowGuestAccess: boolean;
5570
+ requiresApproval: boolean;
5571
+ enableSearch: boolean;
5572
+ enableFiltering: boolean;
5573
+ enableSorting: boolean;
5574
+ enableWishlist: boolean;
5575
+ enableComparisons: boolean;
5576
+ enableReviews: boolean;
5577
+ enableRatings: boolean;
5578
+ maxProductsPerPage: number;
5579
+ defaultSortBy: "name" | "price" | "date" | "popularity" | "rating";
5580
+ defaultSortOrder: "asc" | "desc";
5581
+ supportedCurrencies: string[];
5582
+ supportedLanguages: string[];
5583
+ };
5584
+ type CatalogMetadata = {
5585
+ displayName: string;
5586
+ description: string | null;
5587
+ keywords: string[];
5588
+ industry: string | null;
5589
+ targetAudience: string[];
5590
+ region: string | null;
5591
+ language: string;
5592
+ timezone: string | null;
5593
+ brandColors: Record<string, string>;
5594
+ logoUrl: string | null;
5595
+ bannerUrl: string | null;
5596
+ customCss: string | null;
5597
+ socialLinks: Record<string, string>;
5598
+ };
5599
+ type Object = {
5600
+ id: string;
5601
+ readonly object: "catalog";
5602
+ userId: string;
5603
+ name: string;
5604
+ type: CatalogType;
5605
+ status: CatalogStatus;
5606
+ visibility: CatalogVisibility;
5607
+ categories: CatalogCategory[];
5608
+ products: CatalogProduct[];
5609
+ settings: CatalogSettings;
5610
+ metadata: CatalogMetadata;
5611
+ createdAt: string;
5612
+ updatedAt: string;
5613
+ publishedAt: string | null;
5614
+ archivedAt: string | null;
5615
+ lastSyncedAt: string | null;
5616
+ version: number;
5617
+ isDefault: boolean;
5618
+ viewCount: number;
5619
+ productCount: number;
5620
+ categoryCount: number;
5621
+ accessToken: string | null;
5622
+ externalId: string | null;
5623
+ webhookUrl: string | null;
5624
+ };
5625
+ namespace Create {
5626
+ type Params = {
5627
+ userId: string;
5628
+ name: string;
5629
+ type: CatalogType;
5630
+ status: CatalogStatus;
5631
+ visibility: CatalogVisibility;
5632
+ categories: CatalogCategory[];
5633
+ products: CatalogProduct[];
5634
+ settings: CatalogSettings;
5635
+ metadata: CatalogMetadata;
5636
+ publishedAt?: string | null;
5637
+ archivedAt?: string | null;
5638
+ lastSyncedAt?: string | null;
5639
+ version?: number;
5640
+ isDefault?: boolean;
5641
+ viewCount?: number;
5642
+ productCount?: number;
5643
+ categoryCount?: number;
5644
+ accessToken?: string | null;
5645
+ externalId?: string | null;
5646
+ webhookUrl?: string | null;
5647
+ };
5648
+ type Options = JUHUU.RequestOptions;
5649
+ type Response = {
5650
+ catalog: JUHUU.Catalog.Object;
5651
+ };
5652
+ }
5653
+ namespace Retrieve {
5654
+ type Params = {
5655
+ catalogId: string;
5656
+ };
5657
+ type Options = JUHUU.RequestOptions;
5658
+ type Response = {
5659
+ catalog: JUHUU.Catalog.Object;
5660
+ };
5661
+ }
5662
+ namespace List {
5663
+ type Params = {
5664
+ userId?: string;
5665
+ name?: string;
5666
+ type?: CatalogType;
5667
+ status?: CatalogStatus;
5668
+ visibility?: CatalogVisibility;
5669
+ isDefault?: boolean;
5670
+ industry?: string;
5671
+ region?: string;
5672
+ language?: string;
5673
+ externalId?: string;
5674
+ sortBy?: string;
5675
+ sortOrder?: string;
5676
+ };
5677
+ type Options = {
5678
+ limit?: number;
5679
+ } & JUHUU.RequestOptions;
5680
+ type Response = {
5681
+ catalogArray: JUHUU.Catalog.Object[];
5682
+ count: number;
5683
+ hasMore: boolean;
5684
+ };
5685
+ }
5686
+ namespace Update {
5687
+ type Params = {
5688
+ catalogId: string;
5689
+ userId?: string;
5690
+ name?: string;
5691
+ type?: CatalogType;
5692
+ status?: CatalogStatus;
5693
+ visibility?: CatalogVisibility;
5694
+ categories?: CatalogCategory[];
5695
+ products?: CatalogProduct[];
5696
+ settings?: CatalogSettings;
5697
+ metadata?: CatalogMetadata;
5698
+ publishedAt?: string | null;
5699
+ archivedAt?: string | null;
5700
+ lastSyncedAt?: string | null;
5701
+ version?: number;
5702
+ isDefault?: boolean;
5703
+ viewCount?: number;
5704
+ productCount?: number;
5705
+ categoryCount?: number;
5706
+ accessToken?: string | null;
5707
+ externalId?: string | null;
5708
+ webhookUrl?: string | null;
5709
+ };
5710
+ type Options = JUHUU.RequestOptions;
5711
+ type Response = {
5712
+ catalog: JUHUU.Catalog.Object;
5713
+ };
5714
+ }
5715
+ namespace Delete {
5716
+ type Params = {
5717
+ catalogId: string;
5718
+ };
5719
+ type Options = JUHUU.RequestOptions;
5720
+ type Response = JUHUU.Catalog.Object;
5721
+ }
5722
+ }
5723
+ namespace Offer {
5724
+ type OfferType = "discount" | "bundle" | "bogo" | "loyalty" | "promotional" | "seasonal" | "flash" | "coupon";
5725
+ type OfferStatus = "draft" | "active" | "paused" | "expired" | "cancelled" | "scheduled";
5726
+ type DiscountType = "percentage" | "fixed_amount" | "free_shipping" | "buy_x_get_y";
5727
+ type OfferScope = "global" | "product_specific" | "category_specific" | "user_specific" | "location_specific";
5728
+ type OfferCondition = {
5729
+ type: "minimum_purchase" | "product_count" | "user_type" | "first_time_buyer" | "location" | "time_range";
5730
+ value: any;
5731
+ operator: "greater_than" | "less_than" | "equals" | "in" | "not_in" | "between";
5732
+ description: string | null;
5733
+ };
5734
+ type OfferDiscount = {
5735
+ type: DiscountType;
5736
+ value: number;
5737
+ maxDiscount: number | null;
5738
+ currency: string | null;
5739
+ buyQuantity: number | null;
5740
+ getQuantity: number | null;
5741
+ applicableProductIds: string[];
5742
+ applicableCategoryIds: string[];
5743
+ excludedProductIds: string[];
5744
+ excludedCategoryIds: string[];
5745
+ };
5746
+ type OfferUsage = {
5747
+ totalUses: number;
5748
+ maxUses: number | null;
5749
+ maxUsesPerUser: number | null;
5750
+ maxUsesPerDay: number | null;
5751
+ currentUses: number;
5752
+ uniqueUsers: number;
5753
+ lastUsedAt: string | null;
5754
+ usageHistory: {
5755
+ userId: string;
5756
+ usedAt: string;
5757
+ orderValue: number;
5758
+ discountApplied: number;
5759
+ }[];
5760
+ };
5761
+ type OfferTargeting = {
5762
+ targetUserIds: string[];
5763
+ targetUserGroups: string[];
5764
+ targetLocations: string[];
5765
+ targetDevices: ("mobile" | "desktop" | "tablet")[];
5766
+ targetChannels: ("web" | "mobile_app" | "email" | "sms" | "social")[];
5767
+ excludeUserIds: string[];
5768
+ excludeUserGroups: string[];
5769
+ minAge: number | null;
5770
+ maxAge: number | null;
5771
+ genderTargeting: ("male" | "female" | "other" | "all")[];
5772
+ };
5773
+ type OfferScheduling = {
5774
+ startDate: string;
5775
+ endDate: string | null;
5776
+ timezone: string;
5777
+ recurringPattern: "none" | "daily" | "weekly" | "monthly" | "yearly";
5778
+ recurringEndDate: string | null;
5779
+ activeDays: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
5780
+ activeHours: {
5781
+ start: string;
5782
+ end: string;
5783
+ } | null;
5784
+ blackoutDates: string[];
5785
+ };
5786
+ type OfferMetrics = {
5787
+ impressions: number;
5788
+ clicks: number;
5789
+ conversions: number;
5790
+ revenue: number;
5791
+ clickThroughRate: number;
5792
+ conversionRate: number;
5793
+ averageOrderValue: number;
5794
+ returnOnAdSpend: number;
5795
+ customerAcquisitionCost: number;
5796
+ lifetimeValue: number;
5797
+ };
5798
+ type Object = {
5799
+ id: string;
5800
+ readonly object: "offer";
5801
+ userId: string;
5802
+ name: string;
5803
+ description: string | null;
5804
+ type: OfferType;
5805
+ status: OfferStatus;
5806
+ scope: OfferScope;
5807
+ code: string | null;
5808
+ title: string;
5809
+ subtitle: string | null;
5810
+ imageUrl: string | null;
5811
+ bannerUrl: string | null;
5812
+ landingPageUrl: string | null;
5813
+ termsAndConditions: string | null;
5814
+ conditions: OfferCondition[];
5815
+ discount: OfferDiscount;
5816
+ usage: OfferUsage;
5817
+ targeting: OfferTargeting;
5818
+ scheduling: OfferScheduling;
5819
+ metrics: OfferMetrics;
5820
+ priority: number;
5821
+ isStackable: boolean;
5822
+ requiresCouponCode: boolean;
5823
+ isPublic: boolean;
5824
+ isAutomaticallyApplied: boolean;
5825
+ notificationSettings: {
5826
+ sendEmailNotification: boolean;
5827
+ sendPushNotification: boolean;
5828
+ sendSmsNotification: boolean;
5829
+ notificationMessage: string | null;
5830
+ };
5831
+ createdAt: string;
5832
+ updatedAt: string;
5833
+ publishedAt: string | null;
5834
+ lastModifiedBy: string;
5835
+ approvedBy: string | null;
5836
+ approvedAt: string | null;
5837
+ tags: string[];
5838
+ customFields: Record<string, any>;
5839
+ integrationData: Record<string, any>;
5840
+ };
5841
+ namespace Create {
5842
+ type Params = {
5843
+ userId: string;
5844
+ name: string;
5845
+ description?: string | null;
5846
+ type: OfferType;
5847
+ status: OfferStatus;
5848
+ scope: OfferScope;
5849
+ code?: string | null;
5850
+ title: string;
5851
+ subtitle?: string | null;
5852
+ imageUrl?: string | null;
5853
+ bannerUrl?: string | null;
5854
+ landingPageUrl?: string | null;
5855
+ termsAndConditions?: string | null;
5856
+ conditions: OfferCondition[];
5857
+ discount: OfferDiscount;
5858
+ usage: OfferUsage;
5859
+ targeting: OfferTargeting;
5860
+ scheduling: OfferScheduling;
5861
+ metrics: OfferMetrics;
5862
+ priority: number;
5863
+ isStackable: boolean;
5864
+ requiresCouponCode: boolean;
5865
+ isPublic: boolean;
5866
+ isAutomaticallyApplied: boolean;
5867
+ notificationSettings: {
5868
+ sendEmailNotification: boolean;
5869
+ sendPushNotification: boolean;
5870
+ sendSmsNotification: boolean;
5871
+ notificationMessage: string | null;
5872
+ };
5873
+ lastModifiedBy: string;
5874
+ approvedBy?: string | null;
5875
+ approvedAt?: string | null;
5876
+ tags: string[];
5877
+ customFields: Record<string, any>;
5878
+ integrationData: Record<string, any>;
5879
+ };
5880
+ type Options = JUHUU.RequestOptions;
5881
+ type Response = {
5882
+ offer: JUHUU.Offer.Object;
5883
+ };
5884
+ }
5885
+ namespace Retrieve {
5886
+ type Params = {
5887
+ offerId: string;
5888
+ };
5889
+ type Options = JUHUU.RequestOptions;
5890
+ type Response = {
5891
+ offer: JUHUU.Offer.Object;
5892
+ };
5893
+ }
5894
+ namespace List {
5895
+ type Params = {
5896
+ userId?: string;
5897
+ name?: string;
5898
+ type?: OfferType;
5899
+ status?: OfferStatus;
5900
+ scope?: OfferScope;
5901
+ code?: string;
5902
+ isPublic?: boolean;
5903
+ isActive?: boolean;
5904
+ requiresCouponCode?: boolean;
5905
+ priority?: number;
5906
+ tags?: string[];
5907
+ sortBy?: string;
5908
+ sortOrder?: string;
5909
+ };
5910
+ type Options = {
5911
+ limit?: number;
5912
+ } & JUHUU.RequestOptions;
5913
+ type Response = {
5914
+ offerArray: JUHUU.Offer.Object[];
5915
+ count: number;
5916
+ hasMore: boolean;
5917
+ };
5918
+ }
5919
+ namespace Update {
5920
+ type Params = {
5921
+ offerId: string;
5922
+ userId?: string;
5923
+ name?: string;
5924
+ description?: string | null;
5925
+ type?: OfferType;
5926
+ status?: OfferStatus;
5927
+ scope?: OfferScope;
5928
+ code?: string | null;
5929
+ title?: string;
5930
+ subtitle?: string | null;
5931
+ imageUrl?: string | null;
5932
+ bannerUrl?: string | null;
5933
+ landingPageUrl?: string | null;
5934
+ termsAndConditions?: string | null;
5935
+ conditions?: OfferCondition[];
5936
+ discount?: OfferDiscount;
5937
+ usage?: OfferUsage;
5938
+ targeting?: OfferTargeting;
5939
+ scheduling?: OfferScheduling;
5940
+ metrics?: OfferMetrics;
5941
+ priority?: number;
5942
+ isStackable?: boolean;
5943
+ requiresCouponCode?: boolean;
5944
+ isPublic?: boolean;
5945
+ isAutomaticallyApplied?: boolean;
5946
+ notificationSettings?: {
5947
+ sendEmailNotification: boolean;
5948
+ sendPushNotification: boolean;
5949
+ sendSmsNotification: boolean;
5950
+ notificationMessage: string | null;
5951
+ };
5952
+ lastModifiedBy?: string;
5953
+ approvedBy?: string | null;
5954
+ approvedAt?: string | null;
5955
+ tags?: string[];
5956
+ customFields?: Record<string, any>;
5957
+ integrationData?: Record<string, any>;
5958
+ };
5959
+ type Options = JUHUU.RequestOptions;
5960
+ type Response = {
5961
+ offer: JUHUU.Offer.Object;
5962
+ };
5963
+ }
5964
+ namespace Delete {
5965
+ type Params = {
5966
+ offerId: string;
5967
+ };
5968
+ type Options = JUHUU.RequestOptions;
5969
+ type Response = JUHUU.Offer.Object;
5970
+ }
5971
+ }
5972
+ namespace Kit {
5973
+ type KitType = "controlKitV1" | "tapkeyV1" | "emzV1" | "survisionNanopakTotemV1";
5974
+ type BaseKit = {
5975
+ id: string;
5976
+ readonly object: "kit";
5977
+ name: string;
5978
+ propertyId: string | null;
5979
+ };
5980
+ type ControlKitV1 = BaseKit & {
5981
+ type: "controlKitV1";
5982
+ simIdArray: string[];
5983
+ };
5984
+ type TapkeyV1 = BaseKit & {
5985
+ type: "tapkeyV1";
5986
+ physicalLockId: string;
5987
+ boundLockId: string;
5988
+ ownerAccountId: string;
5989
+ ipId: string;
5990
+ };
5991
+ type EmzV1 = BaseKit & {
5992
+ type: "emzV1";
5993
+ contractId: string;
5994
+ targetHardwareId: string;
5995
+ userId: string;
5996
+ username: string;
5997
+ password: string;
5998
+ };
5999
+ type SurvisionNanopakTotemV1 = BaseKit & {
6000
+ type: "survisionNanopakTotemV1";
6001
+ anpr: string;
6002
+ };
6003
+ type Object = ControlKitV1 | TapkeyV1 | EmzV1 | SurvisionNanopakTotemV1;
6004
+ namespace Create {
6005
+ type Params = {
6006
+ name?: string;
6007
+ propertyId: string;
6008
+ template: {
6009
+ type: "controlKitV1";
6010
+ simIdArray: string[];
6011
+ } | {
6012
+ type: "tapkeyV1";
6013
+ physicalLockId: string;
6014
+ boundLockId: string;
6015
+ ownerAccountId: string;
6016
+ ipId: string;
6017
+ } | {
6018
+ type: "emzV1";
6019
+ contractId: string;
6020
+ targetHardwareId: string;
6021
+ userId: string;
6022
+ username: string;
6023
+ password: string;
6024
+ } | {
6025
+ type: "survisionNanopakTotemV1";
6026
+ anpr: string;
6027
+ };
6028
+ };
6029
+ type Options = JUHUU.RequestOptions;
6030
+ type Response = {
6031
+ kit: JUHUU.Kit.Object;
6032
+ };
6033
+ }
6034
+ namespace Retrieve {
6035
+ type Params = {
6036
+ kitId: string;
6037
+ };
6038
+ type Options = JUHUU.RequestOptions;
6039
+ type Response = {
6040
+ kit: JUHUU.Kit.Object;
6041
+ };
6042
+ }
6043
+ namespace List {
6044
+ type Params = {
6045
+ name?: string;
6046
+ propertyId?: string;
6047
+ type?: KitType;
6048
+ };
6049
+ type Options = {
6050
+ limit?: number;
6051
+ } & JUHUU.RequestOptions;
6052
+ type Response = {
6053
+ kitArray: JUHUU.Kit.Object[];
6054
+ count: number;
6055
+ hasMore: boolean;
6056
+ };
6057
+ }
6058
+ namespace Update {
6059
+ type Params = {
6060
+ kitId: string;
6061
+ name?: string;
6062
+ };
6063
+ type Options = JUHUU.RequestOptions;
6064
+ type Response = {
6065
+ kit: JUHUU.Kit.Object;
6066
+ };
6067
+ }
6068
+ namespace Delete {
6069
+ type Params = {
6070
+ kitId: string;
6071
+ };
6072
+ type Options = JUHUU.RequestOptions;
6073
+ type Response = JUHUU.Kit.Object;
6074
+ }
6075
+ }
6076
+ namespace Panel {
6077
+ type PanelType = "dashboard" | "widget" | "sidebar" | "modal" | "header" | "footer";
6078
+ type PanelStatus = "active" | "inactive" | "hidden" | "archived";
6079
+ type PanelSize = "small" | "medium" | "large" | "fullscreen";
6080
+ type PanelPosition = {
6081
+ x: number;
6082
+ y: number;
6083
+ width: number;
6084
+ height: number;
6085
+ zIndex: number;
6086
+ };
6087
+ type PanelConfig = {
6088
+ theme: string | null;
6089
+ colors: Record<string, string>;
6090
+ layout: Record<string, any>;
6091
+ settings: Record<string, any>;
6092
+ dataSource: string | null;
6093
+ refreshInterval: number | null;
6094
+ };
6095
+ type Object = {
6096
+ id: string;
6097
+ readonly object: "panel";
6098
+ userId: string;
6099
+ name: string;
6100
+ title: string | null;
6101
+ description: string | null;
6102
+ type: PanelType;
6103
+ status: PanelStatus;
6104
+ size: PanelSize;
6105
+ isResizable: boolean;
6106
+ isDraggable: boolean;
6107
+ isVisible: boolean;
6108
+ position: PanelPosition;
6109
+ config: PanelConfig;
6110
+ createdAt: string;
6111
+ updatedAt: string;
6112
+ lastAccessedAt: string | null;
6113
+ accessCount: number;
6114
+ permissions: string[];
6115
+ tags: string[];
6116
+ parentPanelId: string | null;
6117
+ order: number;
6118
+ };
6119
+ namespace Create {
6120
+ type Params = {
6121
+ userId: string;
6122
+ name: string;
6123
+ title?: string | null;
6124
+ description?: string | null;
6125
+ type: PanelType;
6126
+ status: PanelStatus;
6127
+ size: PanelSize;
6128
+ isResizable: boolean;
6129
+ isDraggable: boolean;
6130
+ isVisible: boolean;
6131
+ position: PanelPosition;
6132
+ config: PanelConfig;
6133
+ accessCount?: number;
6134
+ permissions: string[];
6135
+ tags: string[];
6136
+ parentPanelId?: string | null;
6137
+ order: number;
6138
+ };
6139
+ type Options = JUHUU.RequestOptions;
6140
+ type Response = {
6141
+ panel: JUHUU.Panel.Object;
6142
+ };
6143
+ }
6144
+ namespace Retrieve {
6145
+ type Params = {
6146
+ panelId: string;
6147
+ };
6148
+ type Options = JUHUU.RequestOptions;
6149
+ type Response = {
6150
+ panel: JUHUU.Panel.Object;
6151
+ };
6152
+ }
6153
+ namespace List {
6154
+ type Params = {
6155
+ userId?: string;
6156
+ name?: string;
6157
+ type?: PanelType;
6158
+ status?: PanelStatus;
6159
+ size?: PanelSize;
6160
+ isVisible?: boolean;
6161
+ parentPanelId?: string;
6162
+ };
6163
+ type Options = {
6164
+ limit?: number;
6165
+ skip?: number;
6166
+ } & JUHUU.RequestOptions;
6167
+ type Response = {
6168
+ panelArray: JUHUU.Panel.Object[];
6169
+ count: number;
6170
+ hasMore: boolean;
6171
+ };
6172
+ }
6173
+ namespace Update {
6174
+ type Params = {
6175
+ panelId: string;
6176
+ userId?: string;
6177
+ name?: string;
6178
+ title?: string | null;
6179
+ description?: string | null;
6180
+ type?: PanelType;
6181
+ status?: PanelStatus;
6182
+ size?: PanelSize;
6183
+ isResizable?: boolean;
6184
+ isDraggable?: boolean;
6185
+ isVisible?: boolean;
6186
+ position?: PanelPosition;
6187
+ config?: PanelConfig;
6188
+ permissions?: string[];
6189
+ tags?: string[];
6190
+ parentPanelId?: string | null;
6191
+ order?: number;
6192
+ };
6193
+ type Options = JUHUU.RequestOptions;
6194
+ type Response = {
6195
+ panel: JUHUU.Panel.Object;
6196
+ };
6197
+ }
6198
+ namespace Delete {
6199
+ type Params = {
6200
+ panelId: string;
6201
+ };
6202
+ type Options = JUHUU.RequestOptions;
6203
+ type Response = JUHUU.Panel.Object;
6204
+ }
6205
+ }
6206
+ namespace Price {
6207
+ type PriceType = "one_time" | "recurring" | "usage_based" | "tiered" | "volume" | "package";
6208
+ type PriceStatus = "active" | "inactive" | "archived" | "draft";
6209
+ type RecurringInterval = "day" | "week" | "month" | "quarter" | "year";
6210
+ type TaxBehavior = "inclusive" | "exclusive" | "unspecified";
6211
+ type PriceTier = {
6212
+ upTo: number | null;
6213
+ unitAmount: number;
6214
+ flatAmount: number;
6215
+ };
6216
+ type PriceDiscount = {
6217
+ type: "percentage" | "fixed_amount";
6218
+ value: number;
6219
+ description: string;
6220
+ validFrom: string | null;
6221
+ validTo: string | null;
6222
+ minQuantity: number | null;
6223
+ maxQuantity: number | null;
6224
+ };
6225
+ type PriceMetadata = {
6226
+ displayName: string;
6227
+ description: string | null;
6228
+ category: string | null;
6229
+ tags: string[];
6230
+ billingScheme: "per_unit" | "tiered" | "package";
6231
+ usageAggregation: "sum" | "last_during_period" | "max" | "last_ever" | null;
6232
+ };
6233
+ type Object = {
6234
+ id: string;
6235
+ readonly object: "price";
6236
+ userId: string;
6237
+ productId: string | null;
6238
+ name: string;
6239
+ type: PriceType;
6240
+ status: PriceStatus;
6241
+ amount: number;
6242
+ currency: string;
6243
+ taxBehavior: TaxBehavior;
6244
+ taxPercentage: number;
6245
+ recurringInterval: RecurringInterval | null;
6246
+ recurringIntervalCount: number | null;
6247
+ trialPeriodDays: number | null;
6248
+ usageType: "metered" | "licensed" | null;
6249
+ tiers: PriceTier[];
6250
+ discounts: PriceDiscount[];
6251
+ metadata: PriceMetadata;
6252
+ createdAt: string;
6253
+ updatedAt: string;
6254
+ activatedAt: string | null;
6255
+ deactivatedAt: string | null;
6256
+ isDefault: boolean;
6257
+ priority: number;
6258
+ minQuantity: number;
6259
+ maxQuantity: number | null;
6260
+ unitLabel: string | null;
6261
+ transformQuantityDivideBy: number | null;
6262
+ transformQuantityRound: "up" | "down" | null;
6263
+ };
6264
+ namespace Create {
6265
+ type Params = {
6266
+ userId: string;
6267
+ productId?: string | null;
6268
+ name: string;
6269
+ type: PriceType;
6270
+ status: PriceStatus;
6271
+ amount: number;
6272
+ currency: string;
6273
+ taxBehavior: TaxBehavior;
6274
+ taxPercentage?: number;
6275
+ recurringInterval?: RecurringInterval | null;
6276
+ recurringIntervalCount?: number | null;
6277
+ trialPeriodDays?: number | null;
6278
+ usageType?: "metered" | "licensed" | null;
6279
+ tiers?: PriceTier[];
6280
+ discounts?: PriceDiscount[];
6281
+ metadata: PriceMetadata;
6282
+ isDefault?: boolean;
6283
+ priority?: number;
6284
+ minQuantity?: number;
6285
+ maxQuantity?: number | null;
6286
+ unitLabel?: string | null;
6287
+ transformQuantityDivideBy?: number | null;
6288
+ transformQuantityRound?: "up" | "down" | null;
6289
+ };
6290
+ type Options = JUHUU.RequestOptions;
6291
+ type Response = {
6292
+ price: JUHUU.Price.Object;
6293
+ };
6294
+ }
6295
+ namespace Retrieve {
6296
+ type Params = {
6297
+ priceId: string;
6298
+ };
6299
+ type Options = JUHUU.RequestOptions;
6300
+ type Response = {
6301
+ price: JUHUU.Price.Object;
6302
+ };
6303
+ }
6304
+ namespace List {
6305
+ type Params = {
6306
+ userId?: string;
6307
+ productId?: string;
6308
+ name?: string;
6309
+ type?: PriceType;
6310
+ status?: PriceStatus;
6311
+ currency?: string;
6312
+ taxBehavior?: TaxBehavior;
6313
+ recurringInterval?: RecurringInterval;
6314
+ usageType?: "metered" | "licensed";
6315
+ isDefault?: boolean;
6316
+ category?: string;
6317
+ };
6318
+ type Options = {
6319
+ limit?: number;
6320
+ skip?: number;
6321
+ } & JUHUU.RequestOptions;
6322
+ type Response = {
6323
+ priceArray: JUHUU.Price.Object[];
6324
+ count: number;
6325
+ hasMore: boolean;
6326
+ };
6327
+ }
6328
+ namespace Update {
6329
+ type Params = {
6330
+ priceId: string;
6331
+ userId?: string;
6332
+ productId?: string | null;
6333
+ name?: string;
6334
+ type?: PriceType;
6335
+ status?: PriceStatus;
6336
+ amount?: number;
6337
+ currency?: string;
6338
+ taxBehavior?: TaxBehavior;
6339
+ taxPercentage?: number;
6340
+ recurringInterval?: RecurringInterval | null;
6341
+ recurringIntervalCount?: number | null;
6342
+ trialPeriodDays?: number | null;
6343
+ usageType?: "metered" | "licensed" | null;
6344
+ tiers?: PriceTier[];
6345
+ discounts?: PriceDiscount[];
6346
+ metadata?: PriceMetadata;
6347
+ isDefault?: boolean;
6348
+ priority?: number;
6349
+ minQuantity?: number;
6350
+ maxQuantity?: number | null;
6351
+ unitLabel?: string | null;
6352
+ transformQuantityDivideBy?: number | null;
6353
+ transformQuantityRound?: "up" | "down" | null;
6354
+ };
6355
+ type Options = JUHUU.RequestOptions;
6356
+ type Response = {
6357
+ price: JUHUU.Price.Object;
6358
+ };
6359
+ }
6360
+ namespace Delete {
6361
+ type Params = {
6362
+ priceId: string;
6363
+ };
6364
+ type Options = JUHUU.RequestOptions;
6365
+ type Response = JUHUU.Price.Object;
6366
+ }
6367
+ }
4650
6368
  namespace Websocket {
4651
6369
  namespace Connect {
4652
6370
  type Params = {};
@@ -4697,4 +6415,4 @@ declare namespace JUHUU {
4697
6415
  }
4698
6416
  }
4699
6417
 
4700
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type 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 TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
6418
+ export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type 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 TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };