@juhuu/sdk-ts 1.1.8 → 1.1.9

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
@@ -251,6 +251,10 @@ declare const TimeZoneArray: readonly ["Europe/Andorra", "Asia/Dubai", "Asia/Kab
251
251
  type TimeZone = (typeof TimeZoneArray)[number];
252
252
  type StarRating = 1 | 2 | 3 | 4 | 5;
253
253
  type Unit = "meter" | "centimeter" | "millimeter" | "kilogram" | "gram" | "milligram" | "liter" | "milliliter" | "percent" | "volt" | "watt" | "ampere" | "joule" | "hertz" | "kelvin" | "celsius" | "fahrenheit" | "byte" | "bit" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year";
254
+ type AccessControlListElement = {
255
+ topic: string;
256
+ acc: number;
257
+ };
254
258
  type Parameter = {
255
259
  name: string;
256
260
  type: "number";
@@ -626,12 +630,15 @@ declare class LocationsService extends Service {
626
630
  declare class TermsService extends Service {
627
631
  constructor(config: JUHUU.SetupConfig);
628
632
  retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
633
+ list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
629
634
  accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
630
635
  }
631
636
 
632
637
  declare class TariffsService extends Service {
633
638
  constructor(config: JUHUU.SetupConfig);
634
639
  create(): Promise<void>;
640
+ retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
641
+ list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
635
642
  update(): Promise<void>;
636
643
  delete(): Promise<void>;
637
644
  terminate(): Promise<void>;
@@ -661,6 +668,18 @@ declare class SettingsService extends Service {
661
668
  retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
662
669
  }
663
670
 
671
+ declare class AccountingAreasService extends Service {
672
+ constructor(config: JUHUU.SetupConfig);
673
+ retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
674
+ list(AccountingAreaListParams: JUHUU.AccountingArea.List.Params, AccountingAreaListOptions?: JUHUU.AccountingArea.List.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.List.Response>>;
675
+ }
676
+
677
+ declare class ConnectorsService extends Service {
678
+ constructor(config: JUHUU.SetupConfig);
679
+ retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
680
+ list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
681
+ }
682
+
664
683
  declare class Juhuu {
665
684
  constructor(config: JUHUU.SetupConfig);
666
685
  /**
@@ -679,6 +698,8 @@ declare class Juhuu {
679
698
  readonly tariffs: TariffsService;
680
699
  readonly products: ProductService;
681
700
  readonly settings: SettingsService;
701
+ readonly accountingAreas: AccountingAreasService;
702
+ readonly connectors: ConnectorsService;
682
703
  }
683
704
  declare namespace JUHUU {
684
705
  interface SetupConfig {
@@ -1024,6 +1045,13 @@ declare namespace JUHUU {
1024
1045
  property?: JUHUU.Property.Object;
1025
1046
  };
1026
1047
  }
1048
+ namespace List {
1049
+ type Params = {
1050
+ propertyId?: string;
1051
+ };
1052
+ type Options = JUHUU.RequestOptions;
1053
+ type Response = JUHUU.Term.Object[];
1054
+ }
1027
1055
  namespace Accept {
1028
1056
  type Params = {
1029
1057
  termId: string;
@@ -1035,6 +1063,37 @@ declare namespace JUHUU {
1035
1063
  };
1036
1064
  }
1037
1065
  }
1066
+ namespace AccountingArea {
1067
+ type Object = {
1068
+ id: string;
1069
+ name: string;
1070
+ propertyId: string;
1071
+ creditPostingRowDescription: string;
1072
+ orderNumber: string;
1073
+ BKTXT: string | null;
1074
+ SGTXT: string | null;
1075
+ ZUONR: string | null;
1076
+ };
1077
+ namespace Retrieve {
1078
+ type Params = {
1079
+ accountingAreaId: string;
1080
+ };
1081
+ type Options = {
1082
+ expand?: Array<"property">;
1083
+ } & JUHUU.RequestOptions;
1084
+ type Response = {
1085
+ accountingArea: JUHUU.AccountingArea.Object;
1086
+ property?: JUHUU.Property.Object;
1087
+ };
1088
+ }
1089
+ namespace List {
1090
+ type Params = {
1091
+ propertyId?: string;
1092
+ };
1093
+ type Options = JUHUU.RequestOptions;
1094
+ type Response = JUHUU.AccountingArea.Object[];
1095
+ }
1096
+ }
1038
1097
  namespace Tariff {
1039
1098
  type Object = {
1040
1099
  id: string;
@@ -1056,6 +1115,25 @@ declare namespace JUHUU {
1056
1115
  serviceFeeMin: number;
1057
1116
  serviceFeeMax: number;
1058
1117
  };
1118
+ namespace Retrieve {
1119
+ type Params = {
1120
+ tariffId: string;
1121
+ };
1122
+ type Options = {
1123
+ expand?: Array<"property">;
1124
+ } & JUHUU.RequestOptions;
1125
+ type Response = {
1126
+ tariff: JUHUU.Tariff.Object;
1127
+ property?: JUHUU.Property.Object;
1128
+ };
1129
+ }
1130
+ namespace List {
1131
+ type Params = {
1132
+ propertyId?: string;
1133
+ };
1134
+ type Options = JUHUU.RequestOptions;
1135
+ type Response = JUHUU.Tariff.Object[];
1136
+ }
1059
1137
  }
1060
1138
  namespace Survey {
1061
1139
  type Object = {
@@ -1211,29 +1289,54 @@ declare namespace JUHUU {
1211
1289
  id: string;
1212
1290
  status: PayoutStatus;
1213
1291
  propertyId: string;
1214
- createdAt: string;
1215
- serviceMonth: ServiceMonth;
1216
- serviceYear: number;
1217
- amountCaptured: number;
1218
- amountToPayout: number;
1292
+ createdAt: Date;
1293
+ fromDate: Date;
1294
+ toDate: Date;
1295
+ amountCapturedTotal: number;
1296
+ amountToPayoutTotal: number;
1297
+ serviceFeeTotal: number;
1298
+ transactionFeeTotal: number;
1219
1299
  transferPaymentIdArray: string[];
1220
1300
  periodPaymentIdArray: string[];
1221
1301
  stripePayoutFee: number | null;
1222
- stripePaymentIntentFees: number;
1223
1302
  stripeTransferId: string | null;
1303
+ stripeTransferFee: number | null;
1224
1304
  stripeTransferBalanceTransactionId: string | null;
1225
1305
  stripePayoutId: string | null;
1226
1306
  stripePayoutBalanceTransactionId: string | null;
1227
- lowestInvoiceNumber: number;
1228
- highestInvoiceNumber: number;
1229
- previousPayoutId: string | null;
1230
- approvedBy: string | null;
1231
- statementDescriptor: string;
1232
- items: PostingRow[];
1307
+ lowestTransferPaymentNumber: number;
1308
+ highestTransferPaymentNumber: number;
1309
+ approvedByUserId: string | null;
1310
+ createdBy: "propertyAdmin" | "system";
1311
+ createdByUserId: string | null;
1312
+ statementDescription: string;
1313
+ postingRowArray: PostingRow[];
1233
1314
  receiver: Party;
1234
- number: number | null;
1315
+ number: number;
1235
1316
  currencyCode: CurrencyCode;
1317
+ version: number;
1318
+ creditNotePdfId: string;
1319
+ stripeConnectedAccountId: string;
1236
1320
  };
1321
+ namespace Retrieve {
1322
+ type Params = {
1323
+ payoutId: string;
1324
+ };
1325
+ type Options = {
1326
+ expand?: Array<"property">;
1327
+ } & JUHUU.RequestOptions;
1328
+ type Response = {
1329
+ payout: JUHUU.Payout.Object;
1330
+ property?: JUHUU.Property.Object;
1331
+ };
1332
+ }
1333
+ namespace List {
1334
+ type Params = {
1335
+ propertyId?: string;
1336
+ };
1337
+ type Options = JUHUU.RequestOptions;
1338
+ type Response = JUHUU.Payout.Object[];
1339
+ }
1237
1340
  }
1238
1341
  namespace Payment {
1239
1342
  type Object = {
@@ -1586,26 +1689,45 @@ declare namespace JUHUU {
1586
1689
  namespace Connector {
1587
1690
  type Base = {
1588
1691
  id: string;
1692
+ readonly object: "connector";
1589
1693
  connectionStatus: "online" | "offline";
1590
1694
  description: string | null;
1591
1695
  name: string;
1592
1696
  propertyId: string;
1593
- lastOutboundAt: Date;
1594
- lastInboundAt: Date;
1697
+ lastOutboundAt: Date | null;
1698
+ lastInboundAt: Date | null;
1595
1699
  connectionMode: "alwaysOnline" | "temporaryOnline";
1700
+ version: number;
1701
+ simId: string | null;
1596
1702
  };
1597
1703
  export interface Mqtt extends Base {
1598
1704
  type: "mqtt";
1599
1705
  username: string;
1600
1706
  password: string;
1601
- simId: string;
1602
1707
  clientId: string;
1603
1708
  host: string;
1604
1709
  port: number;
1605
1710
  mqttRetain: boolean;
1606
1711
  mqttQos: "0" | "1" | "2";
1712
+ acls: AccessControlListElement[];
1607
1713
  }
1608
1714
  export type Object = Mqtt;
1715
+ export namespace Retrieve {
1716
+ type Params = {
1717
+ connectorId: string;
1718
+ };
1719
+ type Options = JUHUU.RequestOptions;
1720
+ type Response = {
1721
+ connector: JUHUU.Connector.Object;
1722
+ };
1723
+ }
1724
+ export namespace List {
1725
+ type Params = {
1726
+ propertyId?: string;
1727
+ };
1728
+ type Options = JUHUU.RequestOptions;
1729
+ type Response = JUHUU.Connector.Object[];
1730
+ }
1609
1731
  export { };
1610
1732
  }
1611
1733
  namespace DeviceTemplate {
@@ -1649,4 +1771,4 @@ declare namespace JUHUU {
1649
1771
  }
1650
1772
  }
1651
1773
 
1652
- export { type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
1774
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
package/dist/index.d.ts CHANGED
@@ -251,6 +251,10 @@ declare const TimeZoneArray: readonly ["Europe/Andorra", "Asia/Dubai", "Asia/Kab
251
251
  type TimeZone = (typeof TimeZoneArray)[number];
252
252
  type StarRating = 1 | 2 | 3 | 4 | 5;
253
253
  type Unit = "meter" | "centimeter" | "millimeter" | "kilogram" | "gram" | "milligram" | "liter" | "milliliter" | "percent" | "volt" | "watt" | "ampere" | "joule" | "hertz" | "kelvin" | "celsius" | "fahrenheit" | "byte" | "bit" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year";
254
+ type AccessControlListElement = {
255
+ topic: string;
256
+ acc: number;
257
+ };
254
258
  type Parameter = {
255
259
  name: string;
256
260
  type: "number";
@@ -626,12 +630,15 @@ declare class LocationsService extends Service {
626
630
  declare class TermsService extends Service {
627
631
  constructor(config: JUHUU.SetupConfig);
628
632
  retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
633
+ list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
629
634
  accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
630
635
  }
631
636
 
632
637
  declare class TariffsService extends Service {
633
638
  constructor(config: JUHUU.SetupConfig);
634
639
  create(): Promise<void>;
640
+ retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
641
+ list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
635
642
  update(): Promise<void>;
636
643
  delete(): Promise<void>;
637
644
  terminate(): Promise<void>;
@@ -661,6 +668,18 @@ declare class SettingsService extends Service {
661
668
  retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
662
669
  }
663
670
 
671
+ declare class AccountingAreasService extends Service {
672
+ constructor(config: JUHUU.SetupConfig);
673
+ retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
674
+ list(AccountingAreaListParams: JUHUU.AccountingArea.List.Params, AccountingAreaListOptions?: JUHUU.AccountingArea.List.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.List.Response>>;
675
+ }
676
+
677
+ declare class ConnectorsService extends Service {
678
+ constructor(config: JUHUU.SetupConfig);
679
+ retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
680
+ list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
681
+ }
682
+
664
683
  declare class Juhuu {
665
684
  constructor(config: JUHUU.SetupConfig);
666
685
  /**
@@ -679,6 +698,8 @@ declare class Juhuu {
679
698
  readonly tariffs: TariffsService;
680
699
  readonly products: ProductService;
681
700
  readonly settings: SettingsService;
701
+ readonly accountingAreas: AccountingAreasService;
702
+ readonly connectors: ConnectorsService;
682
703
  }
683
704
  declare namespace JUHUU {
684
705
  interface SetupConfig {
@@ -1024,6 +1045,13 @@ declare namespace JUHUU {
1024
1045
  property?: JUHUU.Property.Object;
1025
1046
  };
1026
1047
  }
1048
+ namespace List {
1049
+ type Params = {
1050
+ propertyId?: string;
1051
+ };
1052
+ type Options = JUHUU.RequestOptions;
1053
+ type Response = JUHUU.Term.Object[];
1054
+ }
1027
1055
  namespace Accept {
1028
1056
  type Params = {
1029
1057
  termId: string;
@@ -1035,6 +1063,37 @@ declare namespace JUHUU {
1035
1063
  };
1036
1064
  }
1037
1065
  }
1066
+ namespace AccountingArea {
1067
+ type Object = {
1068
+ id: string;
1069
+ name: string;
1070
+ propertyId: string;
1071
+ creditPostingRowDescription: string;
1072
+ orderNumber: string;
1073
+ BKTXT: string | null;
1074
+ SGTXT: string | null;
1075
+ ZUONR: string | null;
1076
+ };
1077
+ namespace Retrieve {
1078
+ type Params = {
1079
+ accountingAreaId: string;
1080
+ };
1081
+ type Options = {
1082
+ expand?: Array<"property">;
1083
+ } & JUHUU.RequestOptions;
1084
+ type Response = {
1085
+ accountingArea: JUHUU.AccountingArea.Object;
1086
+ property?: JUHUU.Property.Object;
1087
+ };
1088
+ }
1089
+ namespace List {
1090
+ type Params = {
1091
+ propertyId?: string;
1092
+ };
1093
+ type Options = JUHUU.RequestOptions;
1094
+ type Response = JUHUU.AccountingArea.Object[];
1095
+ }
1096
+ }
1038
1097
  namespace Tariff {
1039
1098
  type Object = {
1040
1099
  id: string;
@@ -1056,6 +1115,25 @@ declare namespace JUHUU {
1056
1115
  serviceFeeMin: number;
1057
1116
  serviceFeeMax: number;
1058
1117
  };
1118
+ namespace Retrieve {
1119
+ type Params = {
1120
+ tariffId: string;
1121
+ };
1122
+ type Options = {
1123
+ expand?: Array<"property">;
1124
+ } & JUHUU.RequestOptions;
1125
+ type Response = {
1126
+ tariff: JUHUU.Tariff.Object;
1127
+ property?: JUHUU.Property.Object;
1128
+ };
1129
+ }
1130
+ namespace List {
1131
+ type Params = {
1132
+ propertyId?: string;
1133
+ };
1134
+ type Options = JUHUU.RequestOptions;
1135
+ type Response = JUHUU.Tariff.Object[];
1136
+ }
1059
1137
  }
1060
1138
  namespace Survey {
1061
1139
  type Object = {
@@ -1211,29 +1289,54 @@ declare namespace JUHUU {
1211
1289
  id: string;
1212
1290
  status: PayoutStatus;
1213
1291
  propertyId: string;
1214
- createdAt: string;
1215
- serviceMonth: ServiceMonth;
1216
- serviceYear: number;
1217
- amountCaptured: number;
1218
- amountToPayout: number;
1292
+ createdAt: Date;
1293
+ fromDate: Date;
1294
+ toDate: Date;
1295
+ amountCapturedTotal: number;
1296
+ amountToPayoutTotal: number;
1297
+ serviceFeeTotal: number;
1298
+ transactionFeeTotal: number;
1219
1299
  transferPaymentIdArray: string[];
1220
1300
  periodPaymentIdArray: string[];
1221
1301
  stripePayoutFee: number | null;
1222
- stripePaymentIntentFees: number;
1223
1302
  stripeTransferId: string | null;
1303
+ stripeTransferFee: number | null;
1224
1304
  stripeTransferBalanceTransactionId: string | null;
1225
1305
  stripePayoutId: string | null;
1226
1306
  stripePayoutBalanceTransactionId: string | null;
1227
- lowestInvoiceNumber: number;
1228
- highestInvoiceNumber: number;
1229
- previousPayoutId: string | null;
1230
- approvedBy: string | null;
1231
- statementDescriptor: string;
1232
- items: PostingRow[];
1307
+ lowestTransferPaymentNumber: number;
1308
+ highestTransferPaymentNumber: number;
1309
+ approvedByUserId: string | null;
1310
+ createdBy: "propertyAdmin" | "system";
1311
+ createdByUserId: string | null;
1312
+ statementDescription: string;
1313
+ postingRowArray: PostingRow[];
1233
1314
  receiver: Party;
1234
- number: number | null;
1315
+ number: number;
1235
1316
  currencyCode: CurrencyCode;
1317
+ version: number;
1318
+ creditNotePdfId: string;
1319
+ stripeConnectedAccountId: string;
1236
1320
  };
1321
+ namespace Retrieve {
1322
+ type Params = {
1323
+ payoutId: string;
1324
+ };
1325
+ type Options = {
1326
+ expand?: Array<"property">;
1327
+ } & JUHUU.RequestOptions;
1328
+ type Response = {
1329
+ payout: JUHUU.Payout.Object;
1330
+ property?: JUHUU.Property.Object;
1331
+ };
1332
+ }
1333
+ namespace List {
1334
+ type Params = {
1335
+ propertyId?: string;
1336
+ };
1337
+ type Options = JUHUU.RequestOptions;
1338
+ type Response = JUHUU.Payout.Object[];
1339
+ }
1237
1340
  }
1238
1341
  namespace Payment {
1239
1342
  type Object = {
@@ -1586,26 +1689,45 @@ declare namespace JUHUU {
1586
1689
  namespace Connector {
1587
1690
  type Base = {
1588
1691
  id: string;
1692
+ readonly object: "connector";
1589
1693
  connectionStatus: "online" | "offline";
1590
1694
  description: string | null;
1591
1695
  name: string;
1592
1696
  propertyId: string;
1593
- lastOutboundAt: Date;
1594
- lastInboundAt: Date;
1697
+ lastOutboundAt: Date | null;
1698
+ lastInboundAt: Date | null;
1595
1699
  connectionMode: "alwaysOnline" | "temporaryOnline";
1700
+ version: number;
1701
+ simId: string | null;
1596
1702
  };
1597
1703
  export interface Mqtt extends Base {
1598
1704
  type: "mqtt";
1599
1705
  username: string;
1600
1706
  password: string;
1601
- simId: string;
1602
1707
  clientId: string;
1603
1708
  host: string;
1604
1709
  port: number;
1605
1710
  mqttRetain: boolean;
1606
1711
  mqttQos: "0" | "1" | "2";
1712
+ acls: AccessControlListElement[];
1607
1713
  }
1608
1714
  export type Object = Mqtt;
1715
+ export namespace Retrieve {
1716
+ type Params = {
1717
+ connectorId: string;
1718
+ };
1719
+ type Options = JUHUU.RequestOptions;
1720
+ type Response = {
1721
+ connector: JUHUU.Connector.Object;
1722
+ };
1723
+ }
1724
+ export namespace List {
1725
+ type Params = {
1726
+ propertyId?: string;
1727
+ };
1728
+ type Options = JUHUU.RequestOptions;
1729
+ type Response = JUHUU.Connector.Object[];
1730
+ }
1609
1731
  export { };
1610
1732
  }
1611
1733
  namespace DeviceTemplate {
@@ -1649,4 +1771,4 @@ declare namespace JUHUU {
1649
1771
  }
1650
1772
  }
1651
1773
 
1652
- export { type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
1774
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
package/dist/index.js CHANGED
@@ -992,6 +992,21 @@ var TermsService = class extends Service {
992
992
  TermRetrieveOptions
993
993
  );
994
994
  }
995
+ async list(TermListParams, TermListOptions) {
996
+ const queryArray = [];
997
+ if (TermListParams?.propertyId !== void 0) {
998
+ queryArray.push("propertyId=" + TermListParams.propertyId);
999
+ }
1000
+ return await super.sendRequest(
1001
+ {
1002
+ method: "GET",
1003
+ url: "terms?" + queryArray.join("&"),
1004
+ body: void 0,
1005
+ useAuthentication: false
1006
+ },
1007
+ TermListOptions
1008
+ );
1009
+ }
995
1010
  async accept(TermAcceptParams, TermAcceptOptions) {
996
1011
  return await super.sendRequest(
997
1012
  {
@@ -1014,37 +1029,36 @@ var TariffsService = class extends Service {
1014
1029
  }
1015
1030
  async create() {
1016
1031
  }
1017
- // async retrieve(
1018
- // TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params,
1019
- // TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options,
1020
- // ): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>> {
1021
- // const queryArray: string[] = [];
1022
- // return await super.sendRequest<JUHUU.Tariff.Retrieve.Response>({
1023
- // method: "GET",
1024
- // url:
1025
- // "tariffs/" +
1026
- // TariffRetrieveParams.propertyId +
1027
- // "?" +
1028
- // queryArray.join("&"),
1029
- // body: undefined,
1030
- // useAuthentication: false,
1031
- // });
1032
- // }
1033
- // async list(
1034
- // TariffListParams: JUHUU.Tariff.List.Params,
1035
- // TariffListOptions?: JUHUU.Tariff.List.Options,
1036
- // ): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>> {
1037
- // const queryArray: string[] = [];
1038
- // return await super.sendRequest<JUHUU.Tariff.List.Response>(
1039
- // {
1040
- // method: "GET",
1041
- // url: "tariffs?" + queryArray.join("&"),
1042
- // body: undefined,
1043
- // useAuthentication: false,
1044
- // },
1045
- // TariffListOptions,
1046
- // );
1047
- // }
1032
+ async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
1033
+ const queryArray = [];
1034
+ if (TariffRetrieveOptions?.expand !== void 0) {
1035
+ queryArray.push("expand=" + TariffRetrieveOptions.expand.join(","));
1036
+ }
1037
+ return await super.sendRequest(
1038
+ {
1039
+ method: "GET",
1040
+ url: "tariffs/" + TariffRetrieveParams.tariffId + "?" + queryArray.join("&"),
1041
+ body: void 0,
1042
+ useAuthentication: false
1043
+ },
1044
+ TariffRetrieveOptions
1045
+ );
1046
+ }
1047
+ async list(TariffListParams, TariffListOptions) {
1048
+ const queryArray = [];
1049
+ if (TariffListParams?.propertyId !== void 0) {
1050
+ queryArray.push("propertyId=" + TariffListParams.propertyId);
1051
+ }
1052
+ return await super.sendRequest(
1053
+ {
1054
+ method: "GET",
1055
+ url: "tariffs?" + queryArray.join("&"),
1056
+ body: void 0,
1057
+ useAuthentication: false
1058
+ },
1059
+ TariffListOptions
1060
+ );
1061
+ }
1048
1062
  async update() {
1049
1063
  }
1050
1064
  async delete() {
@@ -1137,6 +1151,9 @@ var ProductService = class extends Service {
1137
1151
  "technologyArray=" + ProductListParams.technologyArray.join(",")
1138
1152
  );
1139
1153
  }
1154
+ if (ProductListParams?.propertyId !== void 0) {
1155
+ queryArray.push("propertyId=" + ProductListParams.propertyId);
1156
+ }
1140
1157
  return await super.sendRequest(
1141
1158
  {
1142
1159
  method: "GET",
@@ -1179,6 +1196,82 @@ var SettingsService = class extends Service {
1179
1196
  }
1180
1197
  };
1181
1198
 
1199
+ // src/accountingAreas/accountingAreas.service.ts
1200
+ var AccountingAreasService = class extends Service {
1201
+ constructor(config) {
1202
+ super(config);
1203
+ }
1204
+ async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1205
+ const queryArray = [];
1206
+ if (AccountingAreaRetrieveOptions?.expand !== void 0) {
1207
+ queryArray.push(
1208
+ "expand=" + AccountingAreaRetrieveOptions.expand.join(",")
1209
+ );
1210
+ }
1211
+ return await super.sendRequest(
1212
+ {
1213
+ method: "GET",
1214
+ url: "accountingAreas/" + AccountingAreaRetrieveParams.accountingAreaId + "?" + queryArray.join("&"),
1215
+ body: void 0,
1216
+ useAuthentication: false
1217
+ },
1218
+ AccountingAreaRetrieveOptions
1219
+ );
1220
+ }
1221
+ async list(AccountingAreaListParams, AccountingAreaListOptions) {
1222
+ const queryArray = [];
1223
+ if (AccountingAreaListParams?.propertyId !== void 0) {
1224
+ queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
1225
+ }
1226
+ return await super.sendRequest(
1227
+ {
1228
+ method: "GET",
1229
+ url: "accountingAreas?" + queryArray.join("&"),
1230
+ body: void 0,
1231
+ useAuthentication: false
1232
+ },
1233
+ AccountingAreaListOptions
1234
+ );
1235
+ }
1236
+ };
1237
+
1238
+ // src/connectors/connectors.service.ts
1239
+ var ConnectorsService = class extends Service {
1240
+ constructor(config) {
1241
+ super(config);
1242
+ }
1243
+ async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1244
+ const queryArray = [];
1245
+ if (ConnectorRetrieveOptions?.expand !== void 0) {
1246
+ queryArray.push("expand=" + ConnectorRetrieveOptions.expand.join(","));
1247
+ }
1248
+ return await super.sendRequest(
1249
+ {
1250
+ method: "GET",
1251
+ url: "connectors/" + ConnectorRetrieveParams.connectorId + "?" + queryArray.join("&"),
1252
+ body: void 0,
1253
+ useAuthentication: false
1254
+ },
1255
+ ConnectorRetrieveOptions
1256
+ );
1257
+ }
1258
+ async list(ConnectorListParams, ConnectorListOptions) {
1259
+ const queryArray = [];
1260
+ if (ConnectorListParams?.propertyId !== void 0) {
1261
+ queryArray.push("propertyId=" + ConnectorListParams.propertyId);
1262
+ }
1263
+ return await super.sendRequest(
1264
+ {
1265
+ method: "GET",
1266
+ url: "connectors?" + queryArray.join("&"),
1267
+ body: void 0,
1268
+ useAuthentication: false
1269
+ },
1270
+ ConnectorListOptions
1271
+ );
1272
+ }
1273
+ };
1274
+
1182
1275
  // src/types/types.ts
1183
1276
  var LanguageCodeArray = [
1184
1277
  "en",
@@ -1346,6 +1439,8 @@ var Juhuu = class {
1346
1439
  this.tariffs = new TariffsService(config);
1347
1440
  this.products = new ProductService(config);
1348
1441
  this.settings = new SettingsService(config);
1442
+ this.accountingAreas = new AccountingAreasService(config);
1443
+ this.connectors = new ConnectorsService(config);
1349
1444
  }
1350
1445
  /**
1351
1446
  * Top Level Resources
@@ -1363,6 +1458,8 @@ var Juhuu = class {
1363
1458
  tariffs;
1364
1459
  products;
1365
1460
  settings;
1461
+ accountingAreas;
1462
+ connectors;
1366
1463
  };
1367
1464
  var JUHUU;
1368
1465
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -947,6 +947,21 @@ var TermsService = class extends Service {
947
947
  TermRetrieveOptions
948
948
  );
949
949
  }
950
+ async list(TermListParams, TermListOptions) {
951
+ const queryArray = [];
952
+ if (TermListParams?.propertyId !== void 0) {
953
+ queryArray.push("propertyId=" + TermListParams.propertyId);
954
+ }
955
+ return await super.sendRequest(
956
+ {
957
+ method: "GET",
958
+ url: "terms?" + queryArray.join("&"),
959
+ body: void 0,
960
+ useAuthentication: false
961
+ },
962
+ TermListOptions
963
+ );
964
+ }
950
965
  async accept(TermAcceptParams, TermAcceptOptions) {
951
966
  return await super.sendRequest(
952
967
  {
@@ -969,37 +984,36 @@ var TariffsService = class extends Service {
969
984
  }
970
985
  async create() {
971
986
  }
972
- // async retrieve(
973
- // TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params,
974
- // TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options,
975
- // ): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>> {
976
- // const queryArray: string[] = [];
977
- // return await super.sendRequest<JUHUU.Tariff.Retrieve.Response>({
978
- // method: "GET",
979
- // url:
980
- // "tariffs/" +
981
- // TariffRetrieveParams.propertyId +
982
- // "?" +
983
- // queryArray.join("&"),
984
- // body: undefined,
985
- // useAuthentication: false,
986
- // });
987
- // }
988
- // async list(
989
- // TariffListParams: JUHUU.Tariff.List.Params,
990
- // TariffListOptions?: JUHUU.Tariff.List.Options,
991
- // ): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>> {
992
- // const queryArray: string[] = [];
993
- // return await super.sendRequest<JUHUU.Tariff.List.Response>(
994
- // {
995
- // method: "GET",
996
- // url: "tariffs?" + queryArray.join("&"),
997
- // body: undefined,
998
- // useAuthentication: false,
999
- // },
1000
- // TariffListOptions,
1001
- // );
1002
- // }
987
+ async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
988
+ const queryArray = [];
989
+ if (TariffRetrieveOptions?.expand !== void 0) {
990
+ queryArray.push("expand=" + TariffRetrieveOptions.expand.join(","));
991
+ }
992
+ return await super.sendRequest(
993
+ {
994
+ method: "GET",
995
+ url: "tariffs/" + TariffRetrieveParams.tariffId + "?" + queryArray.join("&"),
996
+ body: void 0,
997
+ useAuthentication: false
998
+ },
999
+ TariffRetrieveOptions
1000
+ );
1001
+ }
1002
+ async list(TariffListParams, TariffListOptions) {
1003
+ const queryArray = [];
1004
+ if (TariffListParams?.propertyId !== void 0) {
1005
+ queryArray.push("propertyId=" + TariffListParams.propertyId);
1006
+ }
1007
+ return await super.sendRequest(
1008
+ {
1009
+ method: "GET",
1010
+ url: "tariffs?" + queryArray.join("&"),
1011
+ body: void 0,
1012
+ useAuthentication: false
1013
+ },
1014
+ TariffListOptions
1015
+ );
1016
+ }
1003
1017
  async update() {
1004
1018
  }
1005
1019
  async delete() {
@@ -1092,6 +1106,9 @@ var ProductService = class extends Service {
1092
1106
  "technologyArray=" + ProductListParams.technologyArray.join(",")
1093
1107
  );
1094
1108
  }
1109
+ if (ProductListParams?.propertyId !== void 0) {
1110
+ queryArray.push("propertyId=" + ProductListParams.propertyId);
1111
+ }
1095
1112
  return await super.sendRequest(
1096
1113
  {
1097
1114
  method: "GET",
@@ -1134,6 +1151,82 @@ var SettingsService = class extends Service {
1134
1151
  }
1135
1152
  };
1136
1153
 
1154
+ // src/accountingAreas/accountingAreas.service.ts
1155
+ var AccountingAreasService = class extends Service {
1156
+ constructor(config) {
1157
+ super(config);
1158
+ }
1159
+ async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1160
+ const queryArray = [];
1161
+ if (AccountingAreaRetrieveOptions?.expand !== void 0) {
1162
+ queryArray.push(
1163
+ "expand=" + AccountingAreaRetrieveOptions.expand.join(",")
1164
+ );
1165
+ }
1166
+ return await super.sendRequest(
1167
+ {
1168
+ method: "GET",
1169
+ url: "accountingAreas/" + AccountingAreaRetrieveParams.accountingAreaId + "?" + queryArray.join("&"),
1170
+ body: void 0,
1171
+ useAuthentication: false
1172
+ },
1173
+ AccountingAreaRetrieveOptions
1174
+ );
1175
+ }
1176
+ async list(AccountingAreaListParams, AccountingAreaListOptions) {
1177
+ const queryArray = [];
1178
+ if (AccountingAreaListParams?.propertyId !== void 0) {
1179
+ queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
1180
+ }
1181
+ return await super.sendRequest(
1182
+ {
1183
+ method: "GET",
1184
+ url: "accountingAreas?" + queryArray.join("&"),
1185
+ body: void 0,
1186
+ useAuthentication: false
1187
+ },
1188
+ AccountingAreaListOptions
1189
+ );
1190
+ }
1191
+ };
1192
+
1193
+ // src/connectors/connectors.service.ts
1194
+ var ConnectorsService = class extends Service {
1195
+ constructor(config) {
1196
+ super(config);
1197
+ }
1198
+ async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1199
+ const queryArray = [];
1200
+ if (ConnectorRetrieveOptions?.expand !== void 0) {
1201
+ queryArray.push("expand=" + ConnectorRetrieveOptions.expand.join(","));
1202
+ }
1203
+ return await super.sendRequest(
1204
+ {
1205
+ method: "GET",
1206
+ url: "connectors/" + ConnectorRetrieveParams.connectorId + "?" + queryArray.join("&"),
1207
+ body: void 0,
1208
+ useAuthentication: false
1209
+ },
1210
+ ConnectorRetrieveOptions
1211
+ );
1212
+ }
1213
+ async list(ConnectorListParams, ConnectorListOptions) {
1214
+ const queryArray = [];
1215
+ if (ConnectorListParams?.propertyId !== void 0) {
1216
+ queryArray.push("propertyId=" + ConnectorListParams.propertyId);
1217
+ }
1218
+ return await super.sendRequest(
1219
+ {
1220
+ method: "GET",
1221
+ url: "connectors?" + queryArray.join("&"),
1222
+ body: void 0,
1223
+ useAuthentication: false
1224
+ },
1225
+ ConnectorListOptions
1226
+ );
1227
+ }
1228
+ };
1229
+
1137
1230
  // src/types/types.ts
1138
1231
  var LanguageCodeArray = [
1139
1232
  "en",
@@ -1301,6 +1394,8 @@ var Juhuu = class {
1301
1394
  this.tariffs = new TariffsService(config);
1302
1395
  this.products = new ProductService(config);
1303
1396
  this.settings = new SettingsService(config);
1397
+ this.accountingAreas = new AccountingAreasService(config);
1398
+ this.connectors = new ConnectorsService(config);
1304
1399
  }
1305
1400
  /**
1306
1401
  * Top Level Resources
@@ -1318,6 +1413,8 @@ var Juhuu = class {
1318
1413
  tariffs;
1319
1414
  products;
1320
1415
  settings;
1416
+ accountingAreas;
1417
+ connectors;
1321
1418
  };
1322
1419
  var JUHUU;
1323
1420
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.1.008",
3
+ "version": "1.1.9",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",