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