@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.mjs CHANGED
@@ -388,16 +388,32 @@ var LinkService = class extends Service {
388
388
  constructor(config) {
389
389
  super(config);
390
390
  }
391
- async create() {
391
+ async create(LinkCreateParams, LinkCreateOptions) {
392
+ return await super.sendRequest(
393
+ {
394
+ method: "POST",
395
+ url: "links",
396
+ body: {
397
+ propertyId: LinkCreateParams.propertyId,
398
+ name: LinkCreateParams.name,
399
+ fiveLetterQr: LinkCreateParams.fiveLetterQr
400
+ },
401
+ useAuthentication: true
402
+ },
403
+ LinkCreateOptions
404
+ );
392
405
  }
393
406
  async retrieve(LinkRetrieveParams, LinkRetrieveOptions) {
394
407
  const queryArray = [];
395
- return await super.sendRequest({
396
- method: "GET",
397
- url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
398
- body: void 0,
399
- useAuthentication: false
400
- });
408
+ return await super.sendRequest(
409
+ {
410
+ method: "GET",
411
+ url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
412
+ body: void 0,
413
+ useAuthentication: false
414
+ },
415
+ LinkRetrieveOptions
416
+ );
401
417
  }
402
418
  async list(LinkListParams, LinkListOptions) {
403
419
  const queryArray = [];
@@ -417,6 +433,17 @@ var LinkService = class extends Service {
417
433
  LinkListOptions
418
434
  );
419
435
  }
436
+ async delete(LinkDeleteParams, LinkDeleteOptions) {
437
+ return await super.sendRequest(
438
+ {
439
+ method: "DELETE",
440
+ url: "links/" + LinkDeleteParams.linkId,
441
+ useAuthentication: true,
442
+ body: void 0
443
+ },
444
+ LinkDeleteOptions
445
+ );
446
+ }
420
447
  };
421
448
 
422
449
  // src/users/users.service.ts
@@ -563,6 +590,17 @@ var UsersService = class extends Service {
563
590
  UserRemoveMemberOptions
564
591
  );
565
592
  }
593
+ async delete(UserDeleteParams, UserDeleteOptions) {
594
+ return await super.sendRequest(
595
+ {
596
+ method: "DELETE",
597
+ url: "users/" + UserDeleteParams.userId,
598
+ useAuthentication: true,
599
+ body: void 0
600
+ },
601
+ UserDeleteOptions
602
+ );
603
+ }
566
604
  };
567
605
 
568
606
  // src/payments/payments.service.ts
@@ -786,7 +824,20 @@ var DevicesService = class extends Service {
786
824
  constructor(config) {
787
825
  super(config);
788
826
  }
789
- async create() {
827
+ async create(DeviceCreateParams, DeviceCreateOptions) {
828
+ return await super.sendRequest(
829
+ {
830
+ method: "POST",
831
+ url: "devices",
832
+ body: {
833
+ propertyId: DeviceCreateParams.propertyId,
834
+ deviceTemplateId: DeviceCreateParams.deviceTemplateId,
835
+ name: DeviceCreateParams.name
836
+ },
837
+ useAuthentication: true
838
+ },
839
+ DeviceCreateOptions
840
+ );
790
841
  }
791
842
  async retrieve(DeviceRetrieveParams, DeviceRetrieveOptions) {
792
843
  const queryArray = [];
@@ -887,6 +938,17 @@ var DevicesService = class extends Service {
887
938
  DeviceCommandExecuteOptions
888
939
  );
889
940
  }
941
+ async delete(DeviceDeleteParams, DeviceDeleteOptions) {
942
+ return await super.sendRequest(
943
+ {
944
+ method: "DELETE",
945
+ url: "devices/" + DeviceDeleteParams.deviceId,
946
+ useAuthentication: true,
947
+ body: void 0
948
+ },
949
+ DeviceDeleteOptions
950
+ );
951
+ }
890
952
  };
891
953
 
892
954
  // src/deviceTemplates/deviceTemplates.service.ts
@@ -894,6 +956,21 @@ var DeviceTemplatesService = class extends Service {
894
956
  constructor(config) {
895
957
  super(config);
896
958
  }
959
+ async create(DeviceTemplateCreateParams, DeviceTemplateCreateOptions) {
960
+ return await super.sendRequest(
961
+ {
962
+ method: "POST",
963
+ url: "deviceTemplates",
964
+ body: {
965
+ propertyId: DeviceTemplateCreateParams.propertyId,
966
+ productId: DeviceTemplateCreateParams.productId,
967
+ name: DeviceTemplateCreateParams.name
968
+ },
969
+ useAuthentication: true
970
+ },
971
+ DeviceTemplateCreateOptions
972
+ );
973
+ }
897
974
  async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
898
975
  const queryArray = [];
899
976
  if (DeviceTemplateRetrieveParams?.source !== void 0) {
@@ -924,6 +1001,17 @@ var DeviceTemplatesService = class extends Service {
924
1001
  DeviceTemplateListOptions
925
1002
  );
926
1003
  }
1004
+ async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
1005
+ return await super.sendRequest(
1006
+ {
1007
+ method: "DELETE",
1008
+ url: "deviceTemplates/" + DeviceTemplateDeleteParams.deviceTemplateId,
1009
+ useAuthentication: true,
1010
+ body: void 0
1011
+ },
1012
+ DeviceTemplateDeleteOptions
1013
+ );
1014
+ }
927
1015
  };
928
1016
 
929
1017
  // src/locations/locations.service.ts
@@ -931,6 +1019,21 @@ var LocationsService = class extends Service {
931
1019
  constructor(config) {
932
1020
  super(config);
933
1021
  }
1022
+ async create(LocationCreateParams, LocationCreateOptions) {
1023
+ return await super.sendRequest(
1024
+ {
1025
+ method: "POST",
1026
+ url: "locations",
1027
+ body: {
1028
+ propertyId: LocationCreateParams.propertyId,
1029
+ name: LocationCreateParams.name,
1030
+ type: LocationCreateParams.type
1031
+ },
1032
+ useAuthentication: true
1033
+ },
1034
+ LocationCreateOptions
1035
+ );
1036
+ }
934
1037
  async retrieve(LocationRetrieveParams, LocationRetrieveOptions) {
935
1038
  const queryArray = [];
936
1039
  if (LocationRetrieveOptions?.expand !== void 0) {
@@ -990,6 +1093,17 @@ var LocationsService = class extends Service {
990
1093
  LocationUpdateOptions
991
1094
  );
992
1095
  }
1096
+ async delete(LocationDeleteParams, LocationDeleteOptions) {
1097
+ return await super.sendRequest(
1098
+ {
1099
+ method: "DELETE",
1100
+ url: "locations/" + LocationDeleteParams.locationId,
1101
+ useAuthentication: true,
1102
+ body: void 0
1103
+ },
1104
+ LocationDeleteOptions
1105
+ );
1106
+ }
993
1107
  };
994
1108
 
995
1109
  // src/terms/terms.service.ts
@@ -997,6 +1111,20 @@ var TermsService = class extends Service {
997
1111
  constructor(config) {
998
1112
  super(config);
999
1113
  }
1114
+ async create(TermCreateParams, TermCreateOptions) {
1115
+ return await super.sendRequest(
1116
+ {
1117
+ method: "POST",
1118
+ url: "terms",
1119
+ body: {
1120
+ propertyId: TermCreateParams.propertyId,
1121
+ name: TermCreateParams.name
1122
+ },
1123
+ useAuthentication: true
1124
+ },
1125
+ TermCreateOptions
1126
+ );
1127
+ }
1000
1128
  async retrieve(TermRetrieveParams, TermRetrieveOptions) {
1001
1129
  const queryArray = [];
1002
1130
  if (TermRetrieveOptions?.expand !== void 0) {
@@ -1040,6 +1168,17 @@ var TermsService = class extends Service {
1040
1168
  TermAcceptOptions
1041
1169
  );
1042
1170
  }
1171
+ async delete(TermDeleteParams, TermDeleteOptions) {
1172
+ return await super.sendRequest(
1173
+ {
1174
+ method: "DELETE",
1175
+ url: "terms/" + TermDeleteParams.termId,
1176
+ useAuthentication: true,
1177
+ body: void 0
1178
+ },
1179
+ TermDeleteOptions
1180
+ );
1181
+ }
1043
1182
  };
1044
1183
 
1045
1184
  // src/tariffs/tariffs.service.ts
@@ -1047,6 +1186,24 @@ var TariffsService = class extends Service {
1047
1186
  constructor(config) {
1048
1187
  super(config);
1049
1188
  }
1189
+ async create(TariffCreateParams, TariffCreateOptions) {
1190
+ return await super.sendRequest(
1191
+ {
1192
+ method: "POST",
1193
+ url: "tariffs",
1194
+ body: {
1195
+ tariffId: TariffCreateParams.propertyId,
1196
+ duration: TariffCreateParams.duration,
1197
+ currencyCode: TariffCreateParams.currencyCode,
1198
+ amount: TariffCreateParams.amount,
1199
+ continue: TariffCreateParams.continue,
1200
+ name: TariffCreateParams.name
1201
+ },
1202
+ useAuthentication: true
1203
+ },
1204
+ TariffCreateOptions
1205
+ );
1206
+ }
1050
1207
  async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
1051
1208
  const queryArray = [];
1052
1209
  if (TariffRetrieveOptions?.expand !== void 0) {
@@ -1170,6 +1327,17 @@ var TariffsService = class extends Service {
1170
1327
  end.setHours(23, 59, 59, 999);
1171
1328
  return end;
1172
1329
  }
1330
+ async delete(TariffDeleteParams, TariffDeleteOptions) {
1331
+ return await super.sendRequest(
1332
+ {
1333
+ method: "DELETE",
1334
+ url: "tariffs/" + TariffDeleteParams.tariffId,
1335
+ useAuthentication: true,
1336
+ body: void 0
1337
+ },
1338
+ TariffDeleteOptions
1339
+ );
1340
+ }
1173
1341
  };
1174
1342
 
1175
1343
  // src/products/products.service.ts
@@ -1177,6 +1345,20 @@ var ProductService = class extends Service {
1177
1345
  constructor(config) {
1178
1346
  super(config);
1179
1347
  }
1348
+ async create(ProductCreateParams, ProductCreateOptions) {
1349
+ return await super.sendRequest(
1350
+ {
1351
+ method: "POST",
1352
+ url: "products",
1353
+ body: {
1354
+ propertyId: ProductCreateParams.propertyId,
1355
+ name: ProductCreateParams.name
1356
+ },
1357
+ useAuthentication: true
1358
+ },
1359
+ ProductCreateOptions
1360
+ );
1361
+ }
1180
1362
  async list(ProductListParams, ProductListOptions) {
1181
1363
  const queryArray = [];
1182
1364
  if (ProductListParams.categoryArray !== void 0) {
@@ -1225,6 +1407,17 @@ var ProductService = class extends Service {
1225
1407
  options
1226
1408
  );
1227
1409
  }
1410
+ async delete(ProductDeleteParams, ProductDeleteOptions) {
1411
+ return await super.sendRequest(
1412
+ {
1413
+ method: "DELETE",
1414
+ url: "products/" + ProductDeleteParams.productId,
1415
+ useAuthentication: true,
1416
+ body: void 0
1417
+ },
1418
+ ProductDeleteOptions
1419
+ );
1420
+ }
1228
1421
  };
1229
1422
 
1230
1423
  // src/settings/settings.service.ts
@@ -1247,6 +1440,20 @@ var AccountingAreasService = class extends Service {
1247
1440
  constructor(config) {
1248
1441
  super(config);
1249
1442
  }
1443
+ async create(AccountingAreaCreateParams, AccountingAreaCreateOptions) {
1444
+ return await super.sendRequest(
1445
+ {
1446
+ method: "POST",
1447
+ url: "accountingAreas",
1448
+ body: {
1449
+ propertyId: AccountingAreaCreateParams.propertyId,
1450
+ name: AccountingAreaCreateParams.name
1451
+ },
1452
+ useAuthentication: true
1453
+ },
1454
+ AccountingAreaCreateOptions
1455
+ );
1456
+ }
1250
1457
  async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1251
1458
  const queryArray = [];
1252
1459
  if (AccountingAreaRetrieveOptions?.expand !== void 0) {
@@ -1279,6 +1486,17 @@ var AccountingAreasService = class extends Service {
1279
1486
  AccountingAreaListOptions
1280
1487
  );
1281
1488
  }
1489
+ async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1490
+ return await super.sendRequest(
1491
+ {
1492
+ method: "DELETE",
1493
+ url: "accountingAreas/" + AccountingAreaDeleteParams.accountingAreaId,
1494
+ useAuthentication: true,
1495
+ body: void 0
1496
+ },
1497
+ AccountingAreaDeleteOptions
1498
+ );
1499
+ }
1282
1500
  };
1283
1501
 
1284
1502
  // src/connectors/connectors.service.ts
@@ -1286,6 +1504,31 @@ var ConnectorsService = class extends Service {
1286
1504
  constructor(config) {
1287
1505
  super(config);
1288
1506
  }
1507
+ async create(ConnectorCreateParams, ConnectorCreateOptions) {
1508
+ return await super.sendRequest(
1509
+ {
1510
+ method: "POST",
1511
+ url: "connectors",
1512
+ body: {
1513
+ propertyId: ConnectorCreateParams.propertyId,
1514
+ name: ConnectorCreateParams.name,
1515
+ username: ConnectorCreateParams.username,
1516
+ password: ConnectorCreateParams.password,
1517
+ clientId: ConnectorCreateParams.clientId,
1518
+ host: ConnectorCreateParams.host,
1519
+ port: ConnectorCreateParams.port,
1520
+ mqttRetain: ConnectorCreateParams.mqttRetain,
1521
+ mqttQos: ConnectorCreateParams.mqttQos,
1522
+ description: ConnectorCreateParams.description,
1523
+ simId: ConnectorCreateParams.simId,
1524
+ connectionMode: ConnectorCreateParams.connectionMode,
1525
+ type: ConnectorCreateParams.type
1526
+ },
1527
+ useAuthentication: true
1528
+ },
1529
+ ConnectorCreateOptions
1530
+ );
1531
+ }
1289
1532
  async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1290
1533
  const queryArray = [];
1291
1534
  if (ConnectorRetrieveOptions?.expand !== void 0) {
@@ -1316,6 +1559,17 @@ var ConnectorsService = class extends Service {
1316
1559
  ConnectorListOptions
1317
1560
  );
1318
1561
  }
1562
+ async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1563
+ return await super.sendRequest(
1564
+ {
1565
+ method: "DELETE",
1566
+ url: "connectors/" + ConnectorDeleteParams.connectorId,
1567
+ useAuthentication: true,
1568
+ body: void 0
1569
+ },
1570
+ ConnectorDeleteOptions
1571
+ );
1572
+ }
1319
1573
  };
1320
1574
 
1321
1575
  // src/payouts/payouts.service.ts
@@ -1403,7 +1657,20 @@ var SimsService = class extends Service {
1403
1657
  constructor(config) {
1404
1658
  super(config);
1405
1659
  }
1406
- async create() {
1660
+ async create(SimCreateParams, SimCreateOptions) {
1661
+ return await super.sendRequest(
1662
+ {
1663
+ method: "POST",
1664
+ url: "sims",
1665
+ body: {
1666
+ simId: SimCreateParams.propertyId,
1667
+ iccid: SimCreateParams.iccid,
1668
+ name: SimCreateParams.name
1669
+ },
1670
+ useAuthentication: true
1671
+ },
1672
+ SimCreateOptions
1673
+ );
1407
1674
  }
1408
1675
  async retrieve(SimRetrieveParams, SimRetrieveOptions) {
1409
1676
  return await super.sendRequest(
@@ -1442,6 +1709,17 @@ var SimsService = class extends Service {
1442
1709
  SimUpdateFromProviderOptions
1443
1710
  );
1444
1711
  }
1712
+ async delete(SimDeleteParams, SimDeleteOptions) {
1713
+ return await super.sendRequest(
1714
+ {
1715
+ method: "DELETE",
1716
+ url: "sims/" + SimDeleteParams.simId,
1717
+ useAuthentication: true,
1718
+ body: void 0
1719
+ },
1720
+ SimDeleteOptions
1721
+ );
1722
+ }
1445
1723
  };
1446
1724
 
1447
1725
  // src/licenseTemplates/licenseTemplates.service.ts
@@ -1449,6 +1727,22 @@ var LicenseTemplatesService = class extends Service {
1449
1727
  constructor(config) {
1450
1728
  super(config);
1451
1729
  }
1730
+ async create(LicenseTemplateCreateParams, LicenseTemplateCreateOptions) {
1731
+ return await super.sendRequest(
1732
+ {
1733
+ method: "POST",
1734
+ url: "licenseTemplates",
1735
+ body: {
1736
+ propertyId: LicenseTemplateCreateParams.propertyId,
1737
+ type: LicenseTemplateCreateParams.type,
1738
+ regex: LicenseTemplateCreateParams.regex,
1739
+ name: LicenseTemplateCreateParams.name
1740
+ },
1741
+ useAuthentication: true
1742
+ },
1743
+ LicenseTemplateCreateOptions
1744
+ );
1745
+ }
1452
1746
  async list(LicenseTemplateListParams, LicenseTemplateListOptions) {
1453
1747
  const queryArray = [];
1454
1748
  if (LicenseTemplateListParams.propertyId !== void 0) {
@@ -1499,6 +1793,17 @@ var LicenseTemplatesService = class extends Service {
1499
1793
  LicenseTemplateRegexValidateOptions
1500
1794
  );
1501
1795
  }
1796
+ async delete(LicenseTemplateDeleteParams, LicenseTemplateDeleteOptions) {
1797
+ return await super.sendRequest(
1798
+ {
1799
+ method: "DELETE",
1800
+ url: "licenseTemplates/" + LicenseTemplateDeleteParams.licenseTemplateId,
1801
+ useAuthentication: true,
1802
+ body: void 0
1803
+ },
1804
+ LicenseTemplateDeleteOptions
1805
+ );
1806
+ }
1502
1807
  };
1503
1808
 
1504
1809
  // src/articles/articles.service.ts
@@ -1821,8 +2126,6 @@ var LanguageCodeArray = [
1821
2126
  // spanish
1822
2127
  "et",
1823
2128
  // estonian
1824
- "gsw",
1825
- // swiss german
1826
2129
  "hr",
1827
2130
  // croatian
1828
2131
  "hu",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",