@juhuu/sdk-ts 1.2.45 → 1.2.47

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.js CHANGED
@@ -433,16 +433,32 @@ var LinkService = class extends Service {
433
433
  constructor(config) {
434
434
  super(config);
435
435
  }
436
- async create() {
436
+ async create(LinkCreateParams, LinkCreateOptions) {
437
+ return await super.sendRequest(
438
+ {
439
+ method: "POST",
440
+ url: "links",
441
+ body: {
442
+ propertyId: LinkCreateParams.propertyId,
443
+ name: LinkCreateParams.name,
444
+ fiveLetterQr: LinkCreateParams.fiveLetterQr
445
+ },
446
+ useAuthentication: true
447
+ },
448
+ LinkCreateOptions
449
+ );
437
450
  }
438
451
  async retrieve(LinkRetrieveParams, LinkRetrieveOptions) {
439
452
  const queryArray = [];
440
- return await super.sendRequest({
441
- method: "GET",
442
- url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
443
- body: void 0,
444
- useAuthentication: false
445
- });
453
+ return await super.sendRequest(
454
+ {
455
+ method: "GET",
456
+ url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
457
+ body: void 0,
458
+ useAuthentication: false
459
+ },
460
+ LinkRetrieveOptions
461
+ );
446
462
  }
447
463
  async list(LinkListParams, LinkListOptions) {
448
464
  const queryArray = [];
@@ -462,6 +478,17 @@ var LinkService = class extends Service {
462
478
  LinkListOptions
463
479
  );
464
480
  }
481
+ async delete(LinkDeleteParams, LinkDeleteOptions) {
482
+ return await super.sendRequest(
483
+ {
484
+ method: "DELETE",
485
+ url: "links/" + LinkDeleteParams.linkId,
486
+ useAuthentication: true,
487
+ body: void 0
488
+ },
489
+ LinkDeleteOptions
490
+ );
491
+ }
465
492
  };
466
493
 
467
494
  // src/users/users.service.ts
@@ -608,6 +635,17 @@ var UsersService = class extends Service {
608
635
  UserRemoveMemberOptions
609
636
  );
610
637
  }
638
+ async delete(UserDeleteParams, UserDeleteOptions) {
639
+ return await super.sendRequest(
640
+ {
641
+ method: "DELETE",
642
+ url: "users/" + UserDeleteParams.userId,
643
+ useAuthentication: true,
644
+ body: void 0
645
+ },
646
+ UserDeleteOptions
647
+ );
648
+ }
611
649
  };
612
650
 
613
651
  // src/payments/payments.service.ts
@@ -831,7 +869,20 @@ var DevicesService = class extends Service {
831
869
  constructor(config) {
832
870
  super(config);
833
871
  }
834
- async create() {
872
+ async create(DeviceCreateParams, DeviceCreateOptions) {
873
+ return await super.sendRequest(
874
+ {
875
+ method: "POST",
876
+ url: "devices",
877
+ body: {
878
+ propertyId: DeviceCreateParams.propertyId,
879
+ deviceTemplateId: DeviceCreateParams.deviceTemplateId,
880
+ name: DeviceCreateParams.name
881
+ },
882
+ useAuthentication: true
883
+ },
884
+ DeviceCreateOptions
885
+ );
835
886
  }
836
887
  async retrieve(DeviceRetrieveParams, DeviceRetrieveOptions) {
837
888
  const queryArray = [];
@@ -932,6 +983,17 @@ var DevicesService = class extends Service {
932
983
  DeviceCommandExecuteOptions
933
984
  );
934
985
  }
986
+ async delete(DeviceDeleteParams, DeviceDeleteOptions) {
987
+ return await super.sendRequest(
988
+ {
989
+ method: "DELETE",
990
+ url: "devices/" + DeviceDeleteParams.deviceId,
991
+ useAuthentication: true,
992
+ body: void 0
993
+ },
994
+ DeviceDeleteOptions
995
+ );
996
+ }
935
997
  };
936
998
 
937
999
  // src/deviceTemplates/deviceTemplates.service.ts
@@ -939,6 +1001,21 @@ var DeviceTemplatesService = class extends Service {
939
1001
  constructor(config) {
940
1002
  super(config);
941
1003
  }
1004
+ async create(DeviceTemplateCreateParams, DeviceTemplateCreateOptions) {
1005
+ return await super.sendRequest(
1006
+ {
1007
+ method: "POST",
1008
+ url: "deviceTemplates",
1009
+ body: {
1010
+ propertyId: DeviceTemplateCreateParams.propertyId,
1011
+ productId: DeviceTemplateCreateParams.productId,
1012
+ name: DeviceTemplateCreateParams.name
1013
+ },
1014
+ useAuthentication: true
1015
+ },
1016
+ DeviceTemplateCreateOptions
1017
+ );
1018
+ }
942
1019
  async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
943
1020
  const queryArray = [];
944
1021
  if (DeviceTemplateRetrieveParams?.source !== void 0) {
@@ -969,6 +1046,17 @@ var DeviceTemplatesService = class extends Service {
969
1046
  DeviceTemplateListOptions
970
1047
  );
971
1048
  }
1049
+ async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
1050
+ return await super.sendRequest(
1051
+ {
1052
+ method: "DELETE",
1053
+ url: "deviceTemplates/" + DeviceTemplateDeleteParams.deviceTemplateId,
1054
+ useAuthentication: true,
1055
+ body: void 0
1056
+ },
1057
+ DeviceTemplateDeleteOptions
1058
+ );
1059
+ }
972
1060
  };
973
1061
 
974
1062
  // src/locations/locations.service.ts
@@ -976,6 +1064,21 @@ var LocationsService = class extends Service {
976
1064
  constructor(config) {
977
1065
  super(config);
978
1066
  }
1067
+ async create(LocationCreateParams, LocationCreateOptions) {
1068
+ return await super.sendRequest(
1069
+ {
1070
+ method: "POST",
1071
+ url: "locations",
1072
+ body: {
1073
+ propertyId: LocationCreateParams.propertyId,
1074
+ name: LocationCreateParams.name,
1075
+ type: LocationCreateParams.type
1076
+ },
1077
+ useAuthentication: true
1078
+ },
1079
+ LocationCreateOptions
1080
+ );
1081
+ }
979
1082
  async retrieve(LocationRetrieveParams, LocationRetrieveOptions) {
980
1083
  const queryArray = [];
981
1084
  if (LocationRetrieveOptions?.expand !== void 0) {
@@ -1035,6 +1138,17 @@ var LocationsService = class extends Service {
1035
1138
  LocationUpdateOptions
1036
1139
  );
1037
1140
  }
1141
+ async delete(LocationDeleteParams, LocationDeleteOptions) {
1142
+ return await super.sendRequest(
1143
+ {
1144
+ method: "DELETE",
1145
+ url: "locations/" + LocationDeleteParams.locationId,
1146
+ useAuthentication: true,
1147
+ body: void 0
1148
+ },
1149
+ LocationDeleteOptions
1150
+ );
1151
+ }
1038
1152
  };
1039
1153
 
1040
1154
  // src/terms/terms.service.ts
@@ -1042,6 +1156,20 @@ var TermsService = class extends Service {
1042
1156
  constructor(config) {
1043
1157
  super(config);
1044
1158
  }
1159
+ async create(TermCreateParams, TermCreateOptions) {
1160
+ return await super.sendRequest(
1161
+ {
1162
+ method: "POST",
1163
+ url: "terms",
1164
+ body: {
1165
+ propertyId: TermCreateParams.propertyId,
1166
+ name: TermCreateParams.name
1167
+ },
1168
+ useAuthentication: true
1169
+ },
1170
+ TermCreateOptions
1171
+ );
1172
+ }
1045
1173
  async retrieve(TermRetrieveParams, TermRetrieveOptions) {
1046
1174
  const queryArray = [];
1047
1175
  if (TermRetrieveOptions?.expand !== void 0) {
@@ -1085,6 +1213,17 @@ var TermsService = class extends Service {
1085
1213
  TermAcceptOptions
1086
1214
  );
1087
1215
  }
1216
+ async delete(TermDeleteParams, TermDeleteOptions) {
1217
+ return await super.sendRequest(
1218
+ {
1219
+ method: "DELETE",
1220
+ url: "terms/" + TermDeleteParams.termId,
1221
+ useAuthentication: true,
1222
+ body: void 0
1223
+ },
1224
+ TermDeleteOptions
1225
+ );
1226
+ }
1088
1227
  };
1089
1228
 
1090
1229
  // src/tariffs/tariffs.service.ts
@@ -1092,6 +1231,24 @@ var TariffsService = class extends Service {
1092
1231
  constructor(config) {
1093
1232
  super(config);
1094
1233
  }
1234
+ async create(TariffCreateParams, TariffCreateOptions) {
1235
+ return await super.sendRequest(
1236
+ {
1237
+ method: "POST",
1238
+ url: "tariffs",
1239
+ body: {
1240
+ tariffId: TariffCreateParams.propertyId,
1241
+ duration: TariffCreateParams.duration,
1242
+ currencyCode: TariffCreateParams.currencyCode,
1243
+ amount: TariffCreateParams.amount,
1244
+ continue: TariffCreateParams.continue,
1245
+ name: TariffCreateParams.name
1246
+ },
1247
+ useAuthentication: true
1248
+ },
1249
+ TariffCreateOptions
1250
+ );
1251
+ }
1095
1252
  async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
1096
1253
  const queryArray = [];
1097
1254
  if (TariffRetrieveOptions?.expand !== void 0) {
@@ -1215,6 +1372,17 @@ var TariffsService = class extends Service {
1215
1372
  end.setHours(23, 59, 59, 999);
1216
1373
  return end;
1217
1374
  }
1375
+ async delete(TariffDeleteParams, TariffDeleteOptions) {
1376
+ return await super.sendRequest(
1377
+ {
1378
+ method: "DELETE",
1379
+ url: "tariffs/" + TariffDeleteParams.tariffId,
1380
+ useAuthentication: true,
1381
+ body: void 0
1382
+ },
1383
+ TariffDeleteOptions
1384
+ );
1385
+ }
1218
1386
  };
1219
1387
 
1220
1388
  // src/products/products.service.ts
@@ -1222,6 +1390,20 @@ var ProductService = class extends Service {
1222
1390
  constructor(config) {
1223
1391
  super(config);
1224
1392
  }
1393
+ async create(ProductCreateParams, ProductCreateOptions) {
1394
+ return await super.sendRequest(
1395
+ {
1396
+ method: "POST",
1397
+ url: "products",
1398
+ body: {
1399
+ propertyId: ProductCreateParams.propertyId,
1400
+ name: ProductCreateParams.name
1401
+ },
1402
+ useAuthentication: true
1403
+ },
1404
+ ProductCreateOptions
1405
+ );
1406
+ }
1225
1407
  async list(ProductListParams, ProductListOptions) {
1226
1408
  const queryArray = [];
1227
1409
  if (ProductListParams.categoryArray !== void 0) {
@@ -1270,6 +1452,17 @@ var ProductService = class extends Service {
1270
1452
  options
1271
1453
  );
1272
1454
  }
1455
+ async delete(ProductDeleteParams, ProductDeleteOptions) {
1456
+ return await super.sendRequest(
1457
+ {
1458
+ method: "DELETE",
1459
+ url: "products/" + ProductDeleteParams.productId,
1460
+ useAuthentication: true,
1461
+ body: void 0
1462
+ },
1463
+ ProductDeleteOptions
1464
+ );
1465
+ }
1273
1466
  };
1274
1467
 
1275
1468
  // src/settings/settings.service.ts
@@ -1292,6 +1485,20 @@ var AccountingAreasService = class extends Service {
1292
1485
  constructor(config) {
1293
1486
  super(config);
1294
1487
  }
1488
+ async create(AccountingAreaCreateParams, AccountingAreaCreateOptions) {
1489
+ return await super.sendRequest(
1490
+ {
1491
+ method: "POST",
1492
+ url: "accountingAreas",
1493
+ body: {
1494
+ propertyId: AccountingAreaCreateParams.propertyId,
1495
+ name: AccountingAreaCreateParams.name
1496
+ },
1497
+ useAuthentication: true
1498
+ },
1499
+ AccountingAreaCreateOptions
1500
+ );
1501
+ }
1295
1502
  async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1296
1503
  const queryArray = [];
1297
1504
  if (AccountingAreaRetrieveOptions?.expand !== void 0) {
@@ -1324,6 +1531,17 @@ var AccountingAreasService = class extends Service {
1324
1531
  AccountingAreaListOptions
1325
1532
  );
1326
1533
  }
1534
+ async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1535
+ return await super.sendRequest(
1536
+ {
1537
+ method: "DELETE",
1538
+ url: "accountingAreas/" + AccountingAreaDeleteParams.accountingAreaId,
1539
+ useAuthentication: true,
1540
+ body: void 0
1541
+ },
1542
+ AccountingAreaDeleteOptions
1543
+ );
1544
+ }
1327
1545
  };
1328
1546
 
1329
1547
  // src/connectors/connectors.service.ts
@@ -1331,6 +1549,31 @@ var ConnectorsService = class extends Service {
1331
1549
  constructor(config) {
1332
1550
  super(config);
1333
1551
  }
1552
+ async create(ConnectorCreateParams, ConnectorCreateOptions) {
1553
+ return await super.sendRequest(
1554
+ {
1555
+ method: "POST",
1556
+ url: "connectors",
1557
+ body: {
1558
+ propertyId: ConnectorCreateParams.propertyId,
1559
+ name: ConnectorCreateParams.name,
1560
+ username: ConnectorCreateParams.username,
1561
+ password: ConnectorCreateParams.password,
1562
+ clientId: ConnectorCreateParams.clientId,
1563
+ host: ConnectorCreateParams.host,
1564
+ port: ConnectorCreateParams.port,
1565
+ mqttRetain: ConnectorCreateParams.mqttRetain,
1566
+ mqttQos: ConnectorCreateParams.mqttQos,
1567
+ description: ConnectorCreateParams.description,
1568
+ simId: ConnectorCreateParams.simId,
1569
+ connectionMode: ConnectorCreateParams.connectionMode,
1570
+ type: ConnectorCreateParams.type
1571
+ },
1572
+ useAuthentication: true
1573
+ },
1574
+ ConnectorCreateOptions
1575
+ );
1576
+ }
1334
1577
  async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1335
1578
  const queryArray = [];
1336
1579
  if (ConnectorRetrieveOptions?.expand !== void 0) {
@@ -1361,6 +1604,17 @@ var ConnectorsService = class extends Service {
1361
1604
  ConnectorListOptions
1362
1605
  );
1363
1606
  }
1607
+ async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1608
+ return await super.sendRequest(
1609
+ {
1610
+ method: "DELETE",
1611
+ url: "connectors/" + ConnectorDeleteParams.connectorId,
1612
+ useAuthentication: true,
1613
+ body: void 0
1614
+ },
1615
+ ConnectorDeleteOptions
1616
+ );
1617
+ }
1364
1618
  };
1365
1619
 
1366
1620
  // src/payouts/payouts.service.ts
@@ -1448,7 +1702,20 @@ var SimsService = class extends Service {
1448
1702
  constructor(config) {
1449
1703
  super(config);
1450
1704
  }
1451
- async create() {
1705
+ async create(SimCreateParams, SimCreateOptions) {
1706
+ return await super.sendRequest(
1707
+ {
1708
+ method: "POST",
1709
+ url: "sims",
1710
+ body: {
1711
+ simId: SimCreateParams.propertyId,
1712
+ iccid: SimCreateParams.iccid,
1713
+ name: SimCreateParams.name
1714
+ },
1715
+ useAuthentication: true
1716
+ },
1717
+ SimCreateOptions
1718
+ );
1452
1719
  }
1453
1720
  async retrieve(SimRetrieveParams, SimRetrieveOptions) {
1454
1721
  return await super.sendRequest(
@@ -1487,6 +1754,17 @@ var SimsService = class extends Service {
1487
1754
  SimUpdateFromProviderOptions
1488
1755
  );
1489
1756
  }
1757
+ async delete(SimDeleteParams, SimDeleteOptions) {
1758
+ return await super.sendRequest(
1759
+ {
1760
+ method: "DELETE",
1761
+ url: "sims/" + SimDeleteParams.simId,
1762
+ useAuthentication: true,
1763
+ body: void 0
1764
+ },
1765
+ SimDeleteOptions
1766
+ );
1767
+ }
1490
1768
  };
1491
1769
 
1492
1770
  // src/licenseTemplates/licenseTemplates.service.ts
@@ -1494,6 +1772,22 @@ var LicenseTemplatesService = class extends Service {
1494
1772
  constructor(config) {
1495
1773
  super(config);
1496
1774
  }
1775
+ async create(LicenseTemplateCreateParams, LicenseTemplateCreateOptions) {
1776
+ return await super.sendRequest(
1777
+ {
1778
+ method: "POST",
1779
+ url: "licenseTemplates",
1780
+ body: {
1781
+ propertyId: LicenseTemplateCreateParams.propertyId,
1782
+ type: LicenseTemplateCreateParams.type,
1783
+ regex: LicenseTemplateCreateParams.regex,
1784
+ name: LicenseTemplateCreateParams.name
1785
+ },
1786
+ useAuthentication: true
1787
+ },
1788
+ LicenseTemplateCreateOptions
1789
+ );
1790
+ }
1497
1791
  async list(LicenseTemplateListParams, LicenseTemplateListOptions) {
1498
1792
  const queryArray = [];
1499
1793
  if (LicenseTemplateListParams.propertyId !== void 0) {
@@ -1544,6 +1838,17 @@ var LicenseTemplatesService = class extends Service {
1544
1838
  LicenseTemplateRegexValidateOptions
1545
1839
  );
1546
1840
  }
1841
+ async delete(LicenseTemplateDeleteParams, LicenseTemplateDeleteOptions) {
1842
+ return await super.sendRequest(
1843
+ {
1844
+ method: "DELETE",
1845
+ url: "licenseTemplates/" + LicenseTemplateDeleteParams.licenseTemplateId,
1846
+ useAuthentication: true,
1847
+ body: void 0
1848
+ },
1849
+ LicenseTemplateDeleteOptions
1850
+ );
1851
+ }
1547
1852
  };
1548
1853
 
1549
1854
  // src/articles/articles.service.ts
@@ -1866,8 +2171,6 @@ var LanguageCodeArray = [
1866
2171
  // spanish
1867
2172
  "et",
1868
2173
  // estonian
1869
- "gsw",
1870
- // swiss german
1871
2174
  "hr",
1872
2175
  // croatian
1873
2176
  "hu",