@juhuu/sdk-ts 1.1.9 → 1.2.1

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
@@ -255,6 +255,7 @@ type AccessControlListElement = {
255
255
  topic: string;
256
256
  acc: number;
257
257
  };
258
+ type SimStatus = "online" | "offline";
258
259
  type Parameter = {
259
260
  name: string;
260
261
  type: "number";
@@ -680,6 +681,12 @@ declare class ConnectorsService extends Service {
680
681
  list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
681
682
  }
682
683
 
684
+ declare class PayoutsService extends Service {
685
+ constructor(config: JUHUU.SetupConfig);
686
+ retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
687
+ list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
688
+ }
689
+
683
690
  declare class Juhuu {
684
691
  constructor(config: JUHUU.SetupConfig);
685
692
  /**
@@ -700,6 +707,7 @@ declare class Juhuu {
700
707
  readonly settings: SettingsService;
701
708
  readonly accountingAreas: AccountingAreasService;
702
709
  readonly connectors: ConnectorsService;
710
+ readonly payouts: PayoutsService;
703
711
  }
704
712
  declare namespace JUHUU {
705
713
  interface SetupConfig {
@@ -1769,6 +1777,64 @@ declare namespace JUHUU {
1769
1777
  type Response = JUHUU.DeviceTemplate.Object[];
1770
1778
  }
1771
1779
  }
1780
+ namespace Sim {
1781
+ type Object = {
1782
+ id: string;
1783
+ readonly object: "sim";
1784
+ iccid: string;
1785
+ status: SimStatus;
1786
+ provider: "1nce" | null;
1787
+ countryCode: CountryCode | null;
1788
+ imei: string | null;
1789
+ propertyId: string;
1790
+ description: string | null;
1791
+ name: string;
1792
+ };
1793
+ namespace Retrieve {
1794
+ type Params = {
1795
+ simId: string;
1796
+ };
1797
+ type Options = JUHUU.RequestOptions;
1798
+ type Response = {
1799
+ sim: JUHUU.Sim.Object;
1800
+ };
1801
+ }
1802
+ namespace List {
1803
+ type Params = {
1804
+ propertyId?: string;
1805
+ };
1806
+ type Options = JUHUU.RequestOptions;
1807
+ type Response = JUHUU.Sim.Object[];
1808
+ }
1809
+ }
1810
+ namespace ConnectorMessage {
1811
+ type Object = {
1812
+ id: string;
1813
+ readonly object: "connectorMessage";
1814
+ message: string;
1815
+ connectorId: string;
1816
+ direction: "inbound" | "outbound";
1817
+ createdAt: Date;
1818
+ deviceId: string | null;
1819
+ propertyId: string;
1820
+ };
1821
+ namespace Retrieve {
1822
+ type Params = {
1823
+ connectorMessageId: string;
1824
+ };
1825
+ type Options = JUHUU.RequestOptions;
1826
+ type Response = {
1827
+ connectorMessage: JUHUU.ConnectorMessage.Object;
1828
+ };
1829
+ }
1830
+ namespace List {
1831
+ type Params = {
1832
+ propertyId?: string;
1833
+ };
1834
+ type Options = JUHUU.RequestOptions;
1835
+ type Response = JUHUU.ConnectorMessage.Object[];
1836
+ }
1837
+ }
1772
1838
  }
1773
1839
 
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 };
1840
+ 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 SimStatus, 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
@@ -255,6 +255,7 @@ type AccessControlListElement = {
255
255
  topic: string;
256
256
  acc: number;
257
257
  };
258
+ type SimStatus = "online" | "offline";
258
259
  type Parameter = {
259
260
  name: string;
260
261
  type: "number";
@@ -680,6 +681,12 @@ declare class ConnectorsService extends Service {
680
681
  list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
681
682
  }
682
683
 
684
+ declare class PayoutsService extends Service {
685
+ constructor(config: JUHUU.SetupConfig);
686
+ retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
687
+ list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
688
+ }
689
+
683
690
  declare class Juhuu {
684
691
  constructor(config: JUHUU.SetupConfig);
685
692
  /**
@@ -700,6 +707,7 @@ declare class Juhuu {
700
707
  readonly settings: SettingsService;
701
708
  readonly accountingAreas: AccountingAreasService;
702
709
  readonly connectors: ConnectorsService;
710
+ readonly payouts: PayoutsService;
703
711
  }
704
712
  declare namespace JUHUU {
705
713
  interface SetupConfig {
@@ -1769,6 +1777,64 @@ declare namespace JUHUU {
1769
1777
  type Response = JUHUU.DeviceTemplate.Object[];
1770
1778
  }
1771
1779
  }
1780
+ namespace Sim {
1781
+ type Object = {
1782
+ id: string;
1783
+ readonly object: "sim";
1784
+ iccid: string;
1785
+ status: SimStatus;
1786
+ provider: "1nce" | null;
1787
+ countryCode: CountryCode | null;
1788
+ imei: string | null;
1789
+ propertyId: string;
1790
+ description: string | null;
1791
+ name: string;
1792
+ };
1793
+ namespace Retrieve {
1794
+ type Params = {
1795
+ simId: string;
1796
+ };
1797
+ type Options = JUHUU.RequestOptions;
1798
+ type Response = {
1799
+ sim: JUHUU.Sim.Object;
1800
+ };
1801
+ }
1802
+ namespace List {
1803
+ type Params = {
1804
+ propertyId?: string;
1805
+ };
1806
+ type Options = JUHUU.RequestOptions;
1807
+ type Response = JUHUU.Sim.Object[];
1808
+ }
1809
+ }
1810
+ namespace ConnectorMessage {
1811
+ type Object = {
1812
+ id: string;
1813
+ readonly object: "connectorMessage";
1814
+ message: string;
1815
+ connectorId: string;
1816
+ direction: "inbound" | "outbound";
1817
+ createdAt: Date;
1818
+ deviceId: string | null;
1819
+ propertyId: string;
1820
+ };
1821
+ namespace Retrieve {
1822
+ type Params = {
1823
+ connectorMessageId: string;
1824
+ };
1825
+ type Options = JUHUU.RequestOptions;
1826
+ type Response = {
1827
+ connectorMessage: JUHUU.ConnectorMessage.Object;
1828
+ };
1829
+ }
1830
+ namespace List {
1831
+ type Params = {
1832
+ propertyId?: string;
1833
+ };
1834
+ type Options = JUHUU.RequestOptions;
1835
+ type Response = JUHUU.ConnectorMessage.Object[];
1836
+ }
1837
+ }
1772
1838
  }
1773
1839
 
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 };
1840
+ 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 SimStatus, 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
@@ -1272,6 +1272,43 @@ var ConnectorsService = class extends Service {
1272
1272
  }
1273
1273
  };
1274
1274
 
1275
+ // src/payouts/payouts.service.ts
1276
+ var PayoutsService = class extends Service {
1277
+ constructor(config) {
1278
+ super(config);
1279
+ }
1280
+ async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
1281
+ const queryArray = [];
1282
+ if (PayoutRetrieveOptions?.expand !== void 0) {
1283
+ queryArray.push("expand=" + PayoutRetrieveOptions.expand.join(","));
1284
+ }
1285
+ return await super.sendRequest(
1286
+ {
1287
+ method: "GET",
1288
+ url: "payouts/" + PayoutRetrieveParams.payoutId + "?" + queryArray.join("&"),
1289
+ body: void 0,
1290
+ useAuthentication: false
1291
+ },
1292
+ PayoutRetrieveOptions
1293
+ );
1294
+ }
1295
+ async list(PayoutListParams, PayoutListOptions) {
1296
+ const queryArray = [];
1297
+ if (PayoutListParams?.propertyId !== void 0) {
1298
+ queryArray.push("propertyId=" + PayoutListParams.propertyId);
1299
+ }
1300
+ return await super.sendRequest(
1301
+ {
1302
+ method: "GET",
1303
+ url: "payouts?" + queryArray.join("&"),
1304
+ body: void 0,
1305
+ useAuthentication: false
1306
+ },
1307
+ PayoutListOptions
1308
+ );
1309
+ }
1310
+ };
1311
+
1275
1312
  // src/types/types.ts
1276
1313
  var LanguageCodeArray = [
1277
1314
  "en",
@@ -1441,6 +1478,7 @@ var Juhuu = class {
1441
1478
  this.settings = new SettingsService(config);
1442
1479
  this.accountingAreas = new AccountingAreasService(config);
1443
1480
  this.connectors = new ConnectorsService(config);
1481
+ this.payouts = new PayoutsService(config);
1444
1482
  }
1445
1483
  /**
1446
1484
  * Top Level Resources
@@ -1460,6 +1498,7 @@ var Juhuu = class {
1460
1498
  settings;
1461
1499
  accountingAreas;
1462
1500
  connectors;
1501
+ payouts;
1463
1502
  };
1464
1503
  var JUHUU;
1465
1504
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -1227,6 +1227,43 @@ var ConnectorsService = class extends Service {
1227
1227
  }
1228
1228
  };
1229
1229
 
1230
+ // src/payouts/payouts.service.ts
1231
+ var PayoutsService = class extends Service {
1232
+ constructor(config) {
1233
+ super(config);
1234
+ }
1235
+ async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
1236
+ const queryArray = [];
1237
+ if (PayoutRetrieveOptions?.expand !== void 0) {
1238
+ queryArray.push("expand=" + PayoutRetrieveOptions.expand.join(","));
1239
+ }
1240
+ return await super.sendRequest(
1241
+ {
1242
+ method: "GET",
1243
+ url: "payouts/" + PayoutRetrieveParams.payoutId + "?" + queryArray.join("&"),
1244
+ body: void 0,
1245
+ useAuthentication: false
1246
+ },
1247
+ PayoutRetrieveOptions
1248
+ );
1249
+ }
1250
+ async list(PayoutListParams, PayoutListOptions) {
1251
+ const queryArray = [];
1252
+ if (PayoutListParams?.propertyId !== void 0) {
1253
+ queryArray.push("propertyId=" + PayoutListParams.propertyId);
1254
+ }
1255
+ return await super.sendRequest(
1256
+ {
1257
+ method: "GET",
1258
+ url: "payouts?" + queryArray.join("&"),
1259
+ body: void 0,
1260
+ useAuthentication: false
1261
+ },
1262
+ PayoutListOptions
1263
+ );
1264
+ }
1265
+ };
1266
+
1230
1267
  // src/types/types.ts
1231
1268
  var LanguageCodeArray = [
1232
1269
  "en",
@@ -1396,6 +1433,7 @@ var Juhuu = class {
1396
1433
  this.settings = new SettingsService(config);
1397
1434
  this.accountingAreas = new AccountingAreasService(config);
1398
1435
  this.connectors = new ConnectorsService(config);
1436
+ this.payouts = new PayoutsService(config);
1399
1437
  }
1400
1438
  /**
1401
1439
  * Top Level Resources
@@ -1415,6 +1453,7 @@ var Juhuu = class {
1415
1453
  settings;
1416
1454
  accountingAreas;
1417
1455
  connectors;
1456
+ payouts;
1418
1457
  };
1419
1458
  var JUHUU;
1420
1459
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.1.9",
3
+ "version": "1.2.1",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",