@juhuu/sdk-ts 1.2.45 → 1.2.46

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,30 @@ 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
+ },
444
+ useAuthentication: true
445
+ },
446
+ LinkCreateOptions
447
+ );
437
448
  }
438
449
  async retrieve(LinkRetrieveParams, LinkRetrieveOptions) {
439
450
  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
- });
451
+ return await super.sendRequest(
452
+ {
453
+ method: "GET",
454
+ url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
455
+ body: void 0,
456
+ useAuthentication: false
457
+ },
458
+ LinkRetrieveOptions
459
+ );
446
460
  }
447
461
  async list(LinkListParams, LinkListOptions) {
448
462
  const queryArray = [];
@@ -462,6 +476,17 @@ var LinkService = class extends Service {
462
476
  LinkListOptions
463
477
  );
464
478
  }
479
+ async delete(LinkDeleteParams, LinkDeleteOptions) {
480
+ return await super.sendRequest(
481
+ {
482
+ method: "DELETE",
483
+ url: "links/" + LinkDeleteParams.linkId,
484
+ useAuthentication: true,
485
+ body: void 0
486
+ },
487
+ LinkDeleteOptions
488
+ );
489
+ }
465
490
  };
466
491
 
467
492
  // src/users/users.service.ts
@@ -469,6 +494,19 @@ var UsersService = class extends Service {
469
494
  constructor(config) {
470
495
  super(config);
471
496
  }
497
+ async create(UserCreateParams, UserCreateOptions) {
498
+ return await super.sendRequest(
499
+ {
500
+ method: "POST",
501
+ url: "users",
502
+ body: {
503
+ userId: UserCreateParams
504
+ },
505
+ useAuthentication: true
506
+ },
507
+ UserCreateOptions
508
+ );
509
+ }
472
510
  async retrieve(UserRetrieveParams, UserRetrieveOptions) {
473
511
  const queryArray = [];
474
512
  return await super.sendRequest(
@@ -608,6 +646,17 @@ var UsersService = class extends Service {
608
646
  UserRemoveMemberOptions
609
647
  );
610
648
  }
649
+ async delete(UserDeleteParams, UserDeleteOptions) {
650
+ return await super.sendRequest(
651
+ {
652
+ method: "DELETE",
653
+ url: "users/" + UserDeleteParams.userId,
654
+ useAuthentication: true,
655
+ body: void 0
656
+ },
657
+ UserDeleteOptions
658
+ );
659
+ }
611
660
  };
612
661
 
613
662
  // src/payments/payments.service.ts
@@ -831,7 +880,18 @@ var DevicesService = class extends Service {
831
880
  constructor(config) {
832
881
  super(config);
833
882
  }
834
- async create() {
883
+ async create(DeviceCreateParams, DeviceCreateOptions) {
884
+ return await super.sendRequest(
885
+ {
886
+ method: "POST",
887
+ url: "devices",
888
+ body: {
889
+ propertyId: DeviceCreateParams.propertyId
890
+ },
891
+ useAuthentication: true
892
+ },
893
+ DeviceCreateOptions
894
+ );
835
895
  }
836
896
  async retrieve(DeviceRetrieveParams, DeviceRetrieveOptions) {
837
897
  const queryArray = [];
@@ -932,6 +992,17 @@ var DevicesService = class extends Service {
932
992
  DeviceCommandExecuteOptions
933
993
  );
934
994
  }
995
+ async delete(DeviceDeleteParams, DeviceDeleteOptions) {
996
+ return await super.sendRequest(
997
+ {
998
+ method: "DELETE",
999
+ url: "devices/" + DeviceDeleteParams.deviceId,
1000
+ useAuthentication: true,
1001
+ body: void 0
1002
+ },
1003
+ DeviceDeleteOptions
1004
+ );
1005
+ }
935
1006
  };
936
1007
 
937
1008
  // src/deviceTemplates/deviceTemplates.service.ts
@@ -939,6 +1010,19 @@ var DeviceTemplatesService = class extends Service {
939
1010
  constructor(config) {
940
1011
  super(config);
941
1012
  }
1013
+ async create(DeviceTemplateCreateParams, DeviceTemplateCreateOptions) {
1014
+ return await super.sendRequest(
1015
+ {
1016
+ method: "POST",
1017
+ url: "deviceTemplates",
1018
+ body: {
1019
+ propertyId: DeviceTemplateCreateParams.propertyId
1020
+ },
1021
+ useAuthentication: true
1022
+ },
1023
+ DeviceTemplateCreateOptions
1024
+ );
1025
+ }
942
1026
  async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
943
1027
  const queryArray = [];
944
1028
  if (DeviceTemplateRetrieveParams?.source !== void 0) {
@@ -969,6 +1053,17 @@ var DeviceTemplatesService = class extends Service {
969
1053
  DeviceTemplateListOptions
970
1054
  );
971
1055
  }
1056
+ async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
1057
+ return await super.sendRequest(
1058
+ {
1059
+ method: "DELETE",
1060
+ url: "deviceTemplates/" + DeviceTemplateDeleteParams.deviceTemplateId,
1061
+ useAuthentication: true,
1062
+ body: void 0
1063
+ },
1064
+ DeviceTemplateDeleteOptions
1065
+ );
1066
+ }
972
1067
  };
973
1068
 
974
1069
  // src/locations/locations.service.ts
@@ -976,6 +1071,19 @@ var LocationsService = class extends Service {
976
1071
  constructor(config) {
977
1072
  super(config);
978
1073
  }
1074
+ async create(LocationCreateParams, LocationCreateOptions) {
1075
+ return await super.sendRequest(
1076
+ {
1077
+ method: "POST",
1078
+ url: "locations",
1079
+ body: {
1080
+ propertyId: LocationCreateParams.propertyId
1081
+ },
1082
+ useAuthentication: true
1083
+ },
1084
+ LocationCreateOptions
1085
+ );
1086
+ }
979
1087
  async retrieve(LocationRetrieveParams, LocationRetrieveOptions) {
980
1088
  const queryArray = [];
981
1089
  if (LocationRetrieveOptions?.expand !== void 0) {
@@ -1035,6 +1143,17 @@ var LocationsService = class extends Service {
1035
1143
  LocationUpdateOptions
1036
1144
  );
1037
1145
  }
1146
+ async delete(LocationDeleteParams, LocationDeleteOptions) {
1147
+ return await super.sendRequest(
1148
+ {
1149
+ method: "DELETE",
1150
+ url: "locations/" + LocationDeleteParams.locationId,
1151
+ useAuthentication: true,
1152
+ body: void 0
1153
+ },
1154
+ LocationDeleteOptions
1155
+ );
1156
+ }
1038
1157
  };
1039
1158
 
1040
1159
  // src/terms/terms.service.ts
@@ -1042,6 +1161,19 @@ var TermsService = class extends Service {
1042
1161
  constructor(config) {
1043
1162
  super(config);
1044
1163
  }
1164
+ async create(TermCreateParams, TermCreateOptions) {
1165
+ return await super.sendRequest(
1166
+ {
1167
+ method: "POST",
1168
+ url: "terms",
1169
+ body: {
1170
+ termId: TermCreateParams.propertyId
1171
+ },
1172
+ useAuthentication: true
1173
+ },
1174
+ TermCreateOptions
1175
+ );
1176
+ }
1045
1177
  async retrieve(TermRetrieveParams, TermRetrieveOptions) {
1046
1178
  const queryArray = [];
1047
1179
  if (TermRetrieveOptions?.expand !== void 0) {
@@ -1085,6 +1217,17 @@ var TermsService = class extends Service {
1085
1217
  TermAcceptOptions
1086
1218
  );
1087
1219
  }
1220
+ async delete(TermDeleteParams, TermDeleteOptions) {
1221
+ return await super.sendRequest(
1222
+ {
1223
+ method: "DELETE",
1224
+ url: "terms/" + TermDeleteParams.termId,
1225
+ useAuthentication: true,
1226
+ body: void 0
1227
+ },
1228
+ TermDeleteOptions
1229
+ );
1230
+ }
1088
1231
  };
1089
1232
 
1090
1233
  // src/tariffs/tariffs.service.ts
@@ -1092,6 +1235,19 @@ var TariffsService = class extends Service {
1092
1235
  constructor(config) {
1093
1236
  super(config);
1094
1237
  }
1238
+ async create(TariffCreateParams, TariffCreateOptions) {
1239
+ return await super.sendRequest(
1240
+ {
1241
+ method: "POST",
1242
+ url: "tariffs",
1243
+ body: {
1244
+ tariffId: TariffCreateParams.propertyId
1245
+ },
1246
+ useAuthentication: true
1247
+ },
1248
+ TariffCreateOptions
1249
+ );
1250
+ }
1095
1251
  async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
1096
1252
  const queryArray = [];
1097
1253
  if (TariffRetrieveOptions?.expand !== void 0) {
@@ -1215,6 +1371,17 @@ var TariffsService = class extends Service {
1215
1371
  end.setHours(23, 59, 59, 999);
1216
1372
  return end;
1217
1373
  }
1374
+ async delete(TariffDeleteParams, TariffDeleteOptions) {
1375
+ return await super.sendRequest(
1376
+ {
1377
+ method: "DELETE",
1378
+ url: "tariffs/" + TariffDeleteParams.tariffId,
1379
+ useAuthentication: true,
1380
+ body: void 0
1381
+ },
1382
+ TariffDeleteOptions
1383
+ );
1384
+ }
1218
1385
  };
1219
1386
 
1220
1387
  // src/products/products.service.ts
@@ -1222,6 +1389,19 @@ var ProductService = class extends Service {
1222
1389
  constructor(config) {
1223
1390
  super(config);
1224
1391
  }
1392
+ async create(ProductCreateParams, ProductCreateOptions) {
1393
+ return await super.sendRequest(
1394
+ {
1395
+ method: "POST",
1396
+ url: "products",
1397
+ body: {
1398
+ propertyId: ProductCreateParams.propertyId
1399
+ },
1400
+ useAuthentication: true
1401
+ },
1402
+ ProductCreateOptions
1403
+ );
1404
+ }
1225
1405
  async list(ProductListParams, ProductListOptions) {
1226
1406
  const queryArray = [];
1227
1407
  if (ProductListParams.categoryArray !== void 0) {
@@ -1270,6 +1450,17 @@ var ProductService = class extends Service {
1270
1450
  options
1271
1451
  );
1272
1452
  }
1453
+ async delete(ProductDeleteParams, ProductDeleteOptions) {
1454
+ return await super.sendRequest(
1455
+ {
1456
+ method: "DELETE",
1457
+ url: "products/" + ProductDeleteParams.productId,
1458
+ useAuthentication: true,
1459
+ body: void 0
1460
+ },
1461
+ ProductDeleteOptions
1462
+ );
1463
+ }
1273
1464
  };
1274
1465
 
1275
1466
  // src/settings/settings.service.ts
@@ -1292,6 +1483,19 @@ var AccountingAreasService = class extends Service {
1292
1483
  constructor(config) {
1293
1484
  super(config);
1294
1485
  }
1486
+ async create(AccountingAreaCreateParams, AccountingAreaCreateOptions) {
1487
+ return await super.sendRequest(
1488
+ {
1489
+ method: "POST",
1490
+ url: "accountingAreas",
1491
+ body: {
1492
+ propertyId: AccountingAreaCreateParams.propertyId
1493
+ },
1494
+ useAuthentication: true
1495
+ },
1496
+ AccountingAreaCreateOptions
1497
+ );
1498
+ }
1295
1499
  async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1296
1500
  const queryArray = [];
1297
1501
  if (AccountingAreaRetrieveOptions?.expand !== void 0) {
@@ -1324,6 +1528,17 @@ var AccountingAreasService = class extends Service {
1324
1528
  AccountingAreaListOptions
1325
1529
  );
1326
1530
  }
1531
+ async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1532
+ return await super.sendRequest(
1533
+ {
1534
+ method: "DELETE",
1535
+ url: "accountingAreas/" + AccountingAreaDeleteParams.accountingAreaId,
1536
+ useAuthentication: true,
1537
+ body: void 0
1538
+ },
1539
+ AccountingAreaDeleteOptions
1540
+ );
1541
+ }
1327
1542
  };
1328
1543
 
1329
1544
  // src/connectors/connectors.service.ts
@@ -1331,6 +1546,19 @@ var ConnectorsService = class extends Service {
1331
1546
  constructor(config) {
1332
1547
  super(config);
1333
1548
  }
1549
+ async create(ConnectorCreateParams, ConnectorCreateOptions) {
1550
+ return await super.sendRequest(
1551
+ {
1552
+ method: "POST",
1553
+ url: "connectors",
1554
+ body: {
1555
+ propertyId: ConnectorCreateParams.propertyId
1556
+ },
1557
+ useAuthentication: true
1558
+ },
1559
+ ConnectorCreateOptions
1560
+ );
1561
+ }
1334
1562
  async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1335
1563
  const queryArray = [];
1336
1564
  if (ConnectorRetrieveOptions?.expand !== void 0) {
@@ -1361,6 +1589,17 @@ var ConnectorsService = class extends Service {
1361
1589
  ConnectorListOptions
1362
1590
  );
1363
1591
  }
1592
+ async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1593
+ return await super.sendRequest(
1594
+ {
1595
+ method: "DELETE",
1596
+ url: "connectors/" + ConnectorDeleteParams.connectorId,
1597
+ useAuthentication: true,
1598
+ body: void 0
1599
+ },
1600
+ ConnectorDeleteOptions
1601
+ );
1602
+ }
1364
1603
  };
1365
1604
 
1366
1605
  // src/payouts/payouts.service.ts
@@ -1368,6 +1607,19 @@ var PayoutsService = class extends Service {
1368
1607
  constructor(config) {
1369
1608
  super(config);
1370
1609
  }
1610
+ async create(PayoutCreateParams, PayoutCreateOptions) {
1611
+ return await super.sendRequest(
1612
+ {
1613
+ method: "POST",
1614
+ url: "payouts",
1615
+ body: {
1616
+ propertyId: PayoutCreateParams.propertyId
1617
+ },
1618
+ useAuthentication: true
1619
+ },
1620
+ PayoutCreateOptions
1621
+ );
1622
+ }
1371
1623
  async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
1372
1624
  const queryArray = [];
1373
1625
  if (PayoutRetrieveOptions?.expand !== void 0) {
@@ -1398,6 +1650,17 @@ var PayoutsService = class extends Service {
1398
1650
  PayoutListOptions
1399
1651
  );
1400
1652
  }
1653
+ async delete(PayoutDeleteParams, PayoutDeleteOptions) {
1654
+ return await super.sendRequest(
1655
+ {
1656
+ method: "DELETE",
1657
+ url: "payouts/" + PayoutDeleteParams.payoutId,
1658
+ useAuthentication: true,
1659
+ body: void 0
1660
+ },
1661
+ PayoutDeleteOptions
1662
+ );
1663
+ }
1401
1664
  };
1402
1665
 
1403
1666
  // src/connectorMessages/connectorMessages.service.ts
@@ -1448,7 +1711,18 @@ var SimsService = class extends Service {
1448
1711
  constructor(config) {
1449
1712
  super(config);
1450
1713
  }
1451
- async create() {
1714
+ async create(SimCreateParams, SimCreateOptions) {
1715
+ return await super.sendRequest(
1716
+ {
1717
+ method: "POST",
1718
+ url: "sims",
1719
+ body: {
1720
+ simId: SimCreateParams.propertyId
1721
+ },
1722
+ useAuthentication: true
1723
+ },
1724
+ SimCreateOptions
1725
+ );
1452
1726
  }
1453
1727
  async retrieve(SimRetrieveParams, SimRetrieveOptions) {
1454
1728
  return await super.sendRequest(
@@ -1487,6 +1761,17 @@ var SimsService = class extends Service {
1487
1761
  SimUpdateFromProviderOptions
1488
1762
  );
1489
1763
  }
1764
+ async delete(SimDeleteParams, SimDeleteOptions) {
1765
+ return await super.sendRequest(
1766
+ {
1767
+ method: "DELETE",
1768
+ url: "sims/" + SimDeleteParams.simId,
1769
+ useAuthentication: true,
1770
+ body: void 0
1771
+ },
1772
+ SimDeleteOptions
1773
+ );
1774
+ }
1490
1775
  };
1491
1776
 
1492
1777
  // src/licenseTemplates/licenseTemplates.service.ts
@@ -1494,6 +1779,19 @@ var LicenseTemplatesService = class extends Service {
1494
1779
  constructor(config) {
1495
1780
  super(config);
1496
1781
  }
1782
+ async create(LicenseTemplateCreateParams, LicenseTemplateCreateOptions) {
1783
+ return await super.sendRequest(
1784
+ {
1785
+ method: "POST",
1786
+ url: "licenseTemplates",
1787
+ body: {
1788
+ propertyId: LicenseTemplateCreateParams.propertyId
1789
+ },
1790
+ useAuthentication: true
1791
+ },
1792
+ LicenseTemplateCreateOptions
1793
+ );
1794
+ }
1497
1795
  async list(LicenseTemplateListParams, LicenseTemplateListOptions) {
1498
1796
  const queryArray = [];
1499
1797
  if (LicenseTemplateListParams.propertyId !== void 0) {
@@ -1544,6 +1842,17 @@ var LicenseTemplatesService = class extends Service {
1544
1842
  LicenseTemplateRegexValidateOptions
1545
1843
  );
1546
1844
  }
1845
+ async delete(LicenseTemplateDeleteParams, LicenseTemplateDeleteOptions) {
1846
+ return await super.sendRequest(
1847
+ {
1848
+ method: "DELETE",
1849
+ url: "licenseTemplates/" + LicenseTemplateDeleteParams.licenseTemplateId,
1850
+ useAuthentication: true,
1851
+ body: void 0
1852
+ },
1853
+ LicenseTemplateDeleteOptions
1854
+ );
1855
+ }
1547
1856
  };
1548
1857
 
1549
1858
  // src/articles/articles.service.ts
@@ -1866,8 +2175,6 @@ var LanguageCodeArray = [
1866
2175
  // spanish
1867
2176
  "et",
1868
2177
  // estonian
1869
- "gsw",
1870
- // swiss german
1871
2178
  "hr",
1872
2179
  // croatian
1873
2180
  "hu",