@juhuu/sdk-ts 1.2.44 → 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.mjs CHANGED
@@ -388,16 +388,30 @@ 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
+ },
399
+ useAuthentication: true
400
+ },
401
+ LinkCreateOptions
402
+ );
392
403
  }
393
404
  async retrieve(LinkRetrieveParams, LinkRetrieveOptions) {
394
405
  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
- });
406
+ return await super.sendRequest(
407
+ {
408
+ method: "GET",
409
+ url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
410
+ body: void 0,
411
+ useAuthentication: false
412
+ },
413
+ LinkRetrieveOptions
414
+ );
401
415
  }
402
416
  async list(LinkListParams, LinkListOptions) {
403
417
  const queryArray = [];
@@ -417,6 +431,17 @@ var LinkService = class extends Service {
417
431
  LinkListOptions
418
432
  );
419
433
  }
434
+ async delete(LinkDeleteParams, LinkDeleteOptions) {
435
+ return await super.sendRequest(
436
+ {
437
+ method: "DELETE",
438
+ url: "links/" + LinkDeleteParams.linkId,
439
+ useAuthentication: true,
440
+ body: void 0
441
+ },
442
+ LinkDeleteOptions
443
+ );
444
+ }
420
445
  };
421
446
 
422
447
  // src/users/users.service.ts
@@ -424,6 +449,19 @@ var UsersService = class extends Service {
424
449
  constructor(config) {
425
450
  super(config);
426
451
  }
452
+ async create(UserCreateParams, UserCreateOptions) {
453
+ return await super.sendRequest(
454
+ {
455
+ method: "POST",
456
+ url: "users",
457
+ body: {
458
+ userId: UserCreateParams
459
+ },
460
+ useAuthentication: true
461
+ },
462
+ UserCreateOptions
463
+ );
464
+ }
427
465
  async retrieve(UserRetrieveParams, UserRetrieveOptions) {
428
466
  const queryArray = [];
429
467
  return await super.sendRequest(
@@ -563,6 +601,17 @@ var UsersService = class extends Service {
563
601
  UserRemoveMemberOptions
564
602
  );
565
603
  }
604
+ async delete(UserDeleteParams, UserDeleteOptions) {
605
+ return await super.sendRequest(
606
+ {
607
+ method: "DELETE",
608
+ url: "users/" + UserDeleteParams.userId,
609
+ useAuthentication: true,
610
+ body: void 0
611
+ },
612
+ UserDeleteOptions
613
+ );
614
+ }
566
615
  };
567
616
 
568
617
  // src/payments/payments.service.ts
@@ -786,7 +835,18 @@ var DevicesService = class extends Service {
786
835
  constructor(config) {
787
836
  super(config);
788
837
  }
789
- async create() {
838
+ async create(DeviceCreateParams, DeviceCreateOptions) {
839
+ return await super.sendRequest(
840
+ {
841
+ method: "POST",
842
+ url: "devices",
843
+ body: {
844
+ propertyId: DeviceCreateParams.propertyId
845
+ },
846
+ useAuthentication: true
847
+ },
848
+ DeviceCreateOptions
849
+ );
790
850
  }
791
851
  async retrieve(DeviceRetrieveParams, DeviceRetrieveOptions) {
792
852
  const queryArray = [];
@@ -887,6 +947,17 @@ var DevicesService = class extends Service {
887
947
  DeviceCommandExecuteOptions
888
948
  );
889
949
  }
950
+ async delete(DeviceDeleteParams, DeviceDeleteOptions) {
951
+ return await super.sendRequest(
952
+ {
953
+ method: "DELETE",
954
+ url: "devices/" + DeviceDeleteParams.deviceId,
955
+ useAuthentication: true,
956
+ body: void 0
957
+ },
958
+ DeviceDeleteOptions
959
+ );
960
+ }
890
961
  };
891
962
 
892
963
  // src/deviceTemplates/deviceTemplates.service.ts
@@ -894,6 +965,19 @@ var DeviceTemplatesService = class extends Service {
894
965
  constructor(config) {
895
966
  super(config);
896
967
  }
968
+ async create(DeviceTemplateCreateParams, DeviceTemplateCreateOptions) {
969
+ return await super.sendRequest(
970
+ {
971
+ method: "POST",
972
+ url: "deviceTemplates",
973
+ body: {
974
+ propertyId: DeviceTemplateCreateParams.propertyId
975
+ },
976
+ useAuthentication: true
977
+ },
978
+ DeviceTemplateCreateOptions
979
+ );
980
+ }
897
981
  async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
898
982
  const queryArray = [];
899
983
  if (DeviceTemplateRetrieveParams?.source !== void 0) {
@@ -924,6 +1008,17 @@ var DeviceTemplatesService = class extends Service {
924
1008
  DeviceTemplateListOptions
925
1009
  );
926
1010
  }
1011
+ async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
1012
+ return await super.sendRequest(
1013
+ {
1014
+ method: "DELETE",
1015
+ url: "deviceTemplates/" + DeviceTemplateDeleteParams.deviceTemplateId,
1016
+ useAuthentication: true,
1017
+ body: void 0
1018
+ },
1019
+ DeviceTemplateDeleteOptions
1020
+ );
1021
+ }
927
1022
  };
928
1023
 
929
1024
  // src/locations/locations.service.ts
@@ -931,6 +1026,19 @@ var LocationsService = class extends Service {
931
1026
  constructor(config) {
932
1027
  super(config);
933
1028
  }
1029
+ async create(LocationCreateParams, LocationCreateOptions) {
1030
+ return await super.sendRequest(
1031
+ {
1032
+ method: "POST",
1033
+ url: "locations",
1034
+ body: {
1035
+ propertyId: LocationCreateParams.propertyId
1036
+ },
1037
+ useAuthentication: true
1038
+ },
1039
+ LocationCreateOptions
1040
+ );
1041
+ }
934
1042
  async retrieve(LocationRetrieveParams, LocationRetrieveOptions) {
935
1043
  const queryArray = [];
936
1044
  if (LocationRetrieveOptions?.expand !== void 0) {
@@ -990,6 +1098,17 @@ var LocationsService = class extends Service {
990
1098
  LocationUpdateOptions
991
1099
  );
992
1100
  }
1101
+ async delete(LocationDeleteParams, LocationDeleteOptions) {
1102
+ return await super.sendRequest(
1103
+ {
1104
+ method: "DELETE",
1105
+ url: "locations/" + LocationDeleteParams.locationId,
1106
+ useAuthentication: true,
1107
+ body: void 0
1108
+ },
1109
+ LocationDeleteOptions
1110
+ );
1111
+ }
993
1112
  };
994
1113
 
995
1114
  // src/terms/terms.service.ts
@@ -997,6 +1116,19 @@ var TermsService = class extends Service {
997
1116
  constructor(config) {
998
1117
  super(config);
999
1118
  }
1119
+ async create(TermCreateParams, TermCreateOptions) {
1120
+ return await super.sendRequest(
1121
+ {
1122
+ method: "POST",
1123
+ url: "terms",
1124
+ body: {
1125
+ termId: TermCreateParams.propertyId
1126
+ },
1127
+ useAuthentication: true
1128
+ },
1129
+ TermCreateOptions
1130
+ );
1131
+ }
1000
1132
  async retrieve(TermRetrieveParams, TermRetrieveOptions) {
1001
1133
  const queryArray = [];
1002
1134
  if (TermRetrieveOptions?.expand !== void 0) {
@@ -1040,6 +1172,17 @@ var TermsService = class extends Service {
1040
1172
  TermAcceptOptions
1041
1173
  );
1042
1174
  }
1175
+ async delete(TermDeleteParams, TermDeleteOptions) {
1176
+ return await super.sendRequest(
1177
+ {
1178
+ method: "DELETE",
1179
+ url: "terms/" + TermDeleteParams.termId,
1180
+ useAuthentication: true,
1181
+ body: void 0
1182
+ },
1183
+ TermDeleteOptions
1184
+ );
1185
+ }
1043
1186
  };
1044
1187
 
1045
1188
  // src/tariffs/tariffs.service.ts
@@ -1047,6 +1190,19 @@ var TariffsService = class extends Service {
1047
1190
  constructor(config) {
1048
1191
  super(config);
1049
1192
  }
1193
+ async create(TariffCreateParams, TariffCreateOptions) {
1194
+ return await super.sendRequest(
1195
+ {
1196
+ method: "POST",
1197
+ url: "tariffs",
1198
+ body: {
1199
+ tariffId: TariffCreateParams.propertyId
1200
+ },
1201
+ useAuthentication: true
1202
+ },
1203
+ TariffCreateOptions
1204
+ );
1205
+ }
1050
1206
  async retrieve(TariffRetrieveParams, TariffRetrieveOptions) {
1051
1207
  const queryArray = [];
1052
1208
  if (TariffRetrieveOptions?.expand !== void 0) {
@@ -1170,6 +1326,17 @@ var TariffsService = class extends Service {
1170
1326
  end.setHours(23, 59, 59, 999);
1171
1327
  return end;
1172
1328
  }
1329
+ async delete(TariffDeleteParams, TariffDeleteOptions) {
1330
+ return await super.sendRequest(
1331
+ {
1332
+ method: "DELETE",
1333
+ url: "tariffs/" + TariffDeleteParams.tariffId,
1334
+ useAuthentication: true,
1335
+ body: void 0
1336
+ },
1337
+ TariffDeleteOptions
1338
+ );
1339
+ }
1173
1340
  };
1174
1341
 
1175
1342
  // src/products/products.service.ts
@@ -1177,6 +1344,19 @@ var ProductService = class extends Service {
1177
1344
  constructor(config) {
1178
1345
  super(config);
1179
1346
  }
1347
+ async create(ProductCreateParams, ProductCreateOptions) {
1348
+ return await super.sendRequest(
1349
+ {
1350
+ method: "POST",
1351
+ url: "products",
1352
+ body: {
1353
+ propertyId: ProductCreateParams.propertyId
1354
+ },
1355
+ useAuthentication: true
1356
+ },
1357
+ ProductCreateOptions
1358
+ );
1359
+ }
1180
1360
  async list(ProductListParams, ProductListOptions) {
1181
1361
  const queryArray = [];
1182
1362
  if (ProductListParams.categoryArray !== void 0) {
@@ -1225,6 +1405,17 @@ var ProductService = class extends Service {
1225
1405
  options
1226
1406
  );
1227
1407
  }
1408
+ async delete(ProductDeleteParams, ProductDeleteOptions) {
1409
+ return await super.sendRequest(
1410
+ {
1411
+ method: "DELETE",
1412
+ url: "products/" + ProductDeleteParams.productId,
1413
+ useAuthentication: true,
1414
+ body: void 0
1415
+ },
1416
+ ProductDeleteOptions
1417
+ );
1418
+ }
1228
1419
  };
1229
1420
 
1230
1421
  // src/settings/settings.service.ts
@@ -1247,6 +1438,19 @@ var AccountingAreasService = class extends Service {
1247
1438
  constructor(config) {
1248
1439
  super(config);
1249
1440
  }
1441
+ async create(AccountingAreaCreateParams, AccountingAreaCreateOptions) {
1442
+ return await super.sendRequest(
1443
+ {
1444
+ method: "POST",
1445
+ url: "accountingAreas",
1446
+ body: {
1447
+ propertyId: AccountingAreaCreateParams.propertyId
1448
+ },
1449
+ useAuthentication: true
1450
+ },
1451
+ AccountingAreaCreateOptions
1452
+ );
1453
+ }
1250
1454
  async retrieve(AccountingAreaRetrieveParams, AccountingAreaRetrieveOptions) {
1251
1455
  const queryArray = [];
1252
1456
  if (AccountingAreaRetrieveOptions?.expand !== void 0) {
@@ -1279,6 +1483,17 @@ var AccountingAreasService = class extends Service {
1279
1483
  AccountingAreaListOptions
1280
1484
  );
1281
1485
  }
1486
+ async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1487
+ return await super.sendRequest(
1488
+ {
1489
+ method: "DELETE",
1490
+ url: "accountingAreas/" + AccountingAreaDeleteParams.accountingAreaId,
1491
+ useAuthentication: true,
1492
+ body: void 0
1493
+ },
1494
+ AccountingAreaDeleteOptions
1495
+ );
1496
+ }
1282
1497
  };
1283
1498
 
1284
1499
  // src/connectors/connectors.service.ts
@@ -1286,6 +1501,19 @@ var ConnectorsService = class extends Service {
1286
1501
  constructor(config) {
1287
1502
  super(config);
1288
1503
  }
1504
+ async create(ConnectorCreateParams, ConnectorCreateOptions) {
1505
+ return await super.sendRequest(
1506
+ {
1507
+ method: "POST",
1508
+ url: "connectors",
1509
+ body: {
1510
+ propertyId: ConnectorCreateParams.propertyId
1511
+ },
1512
+ useAuthentication: true
1513
+ },
1514
+ ConnectorCreateOptions
1515
+ );
1516
+ }
1289
1517
  async retrieve(ConnectorRetrieveParams, ConnectorRetrieveOptions) {
1290
1518
  const queryArray = [];
1291
1519
  if (ConnectorRetrieveOptions?.expand !== void 0) {
@@ -1316,6 +1544,17 @@ var ConnectorsService = class extends Service {
1316
1544
  ConnectorListOptions
1317
1545
  );
1318
1546
  }
1547
+ async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1548
+ return await super.sendRequest(
1549
+ {
1550
+ method: "DELETE",
1551
+ url: "connectors/" + ConnectorDeleteParams.connectorId,
1552
+ useAuthentication: true,
1553
+ body: void 0
1554
+ },
1555
+ ConnectorDeleteOptions
1556
+ );
1557
+ }
1319
1558
  };
1320
1559
 
1321
1560
  // src/payouts/payouts.service.ts
@@ -1323,6 +1562,19 @@ var PayoutsService = class extends Service {
1323
1562
  constructor(config) {
1324
1563
  super(config);
1325
1564
  }
1565
+ async create(PayoutCreateParams, PayoutCreateOptions) {
1566
+ return await super.sendRequest(
1567
+ {
1568
+ method: "POST",
1569
+ url: "payouts",
1570
+ body: {
1571
+ propertyId: PayoutCreateParams.propertyId
1572
+ },
1573
+ useAuthentication: true
1574
+ },
1575
+ PayoutCreateOptions
1576
+ );
1577
+ }
1326
1578
  async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
1327
1579
  const queryArray = [];
1328
1580
  if (PayoutRetrieveOptions?.expand !== void 0) {
@@ -1353,6 +1605,17 @@ var PayoutsService = class extends Service {
1353
1605
  PayoutListOptions
1354
1606
  );
1355
1607
  }
1608
+ async delete(PayoutDeleteParams, PayoutDeleteOptions) {
1609
+ return await super.sendRequest(
1610
+ {
1611
+ method: "DELETE",
1612
+ url: "payouts/" + PayoutDeleteParams.payoutId,
1613
+ useAuthentication: true,
1614
+ body: void 0
1615
+ },
1616
+ PayoutDeleteOptions
1617
+ );
1618
+ }
1356
1619
  };
1357
1620
 
1358
1621
  // src/connectorMessages/connectorMessages.service.ts
@@ -1403,7 +1666,18 @@ var SimsService = class extends Service {
1403
1666
  constructor(config) {
1404
1667
  super(config);
1405
1668
  }
1406
- async create() {
1669
+ async create(SimCreateParams, SimCreateOptions) {
1670
+ return await super.sendRequest(
1671
+ {
1672
+ method: "POST",
1673
+ url: "sims",
1674
+ body: {
1675
+ simId: SimCreateParams.propertyId
1676
+ },
1677
+ useAuthentication: true
1678
+ },
1679
+ SimCreateOptions
1680
+ );
1407
1681
  }
1408
1682
  async retrieve(SimRetrieveParams, SimRetrieveOptions) {
1409
1683
  return await super.sendRequest(
@@ -1442,6 +1716,17 @@ var SimsService = class extends Service {
1442
1716
  SimUpdateFromProviderOptions
1443
1717
  );
1444
1718
  }
1719
+ async delete(SimDeleteParams, SimDeleteOptions) {
1720
+ return await super.sendRequest(
1721
+ {
1722
+ method: "DELETE",
1723
+ url: "sims/" + SimDeleteParams.simId,
1724
+ useAuthentication: true,
1725
+ body: void 0
1726
+ },
1727
+ SimDeleteOptions
1728
+ );
1729
+ }
1445
1730
  };
1446
1731
 
1447
1732
  // src/licenseTemplates/licenseTemplates.service.ts
@@ -1449,6 +1734,19 @@ var LicenseTemplatesService = class extends Service {
1449
1734
  constructor(config) {
1450
1735
  super(config);
1451
1736
  }
1737
+ async create(LicenseTemplateCreateParams, LicenseTemplateCreateOptions) {
1738
+ return await super.sendRequest(
1739
+ {
1740
+ method: "POST",
1741
+ url: "licenseTemplates",
1742
+ body: {
1743
+ propertyId: LicenseTemplateCreateParams.propertyId
1744
+ },
1745
+ useAuthentication: true
1746
+ },
1747
+ LicenseTemplateCreateOptions
1748
+ );
1749
+ }
1452
1750
  async list(LicenseTemplateListParams, LicenseTemplateListOptions) {
1453
1751
  const queryArray = [];
1454
1752
  if (LicenseTemplateListParams.propertyId !== void 0) {
@@ -1484,6 +1782,32 @@ var LicenseTemplatesService = class extends Service {
1484
1782
  useAuthentication: true
1485
1783
  });
1486
1784
  }
1785
+ async regexValidate(LicenseTemplateRegexValidateParams, LicenseTemplateRegexValidateOptions) {
1786
+ return await super.sendRequest(
1787
+ {
1788
+ method: "POST",
1789
+ url: "licenseTemplates/" + LicenseTemplateRegexValidateParams.licenseTemplateId + "/regex/validate",
1790
+ body: {
1791
+ userId: LicenseTemplateRegexValidateParams.userId,
1792
+ text: LicenseTemplateRegexValidateParams.text,
1793
+ licenseTemplateId: LicenseTemplateRegexValidateParams.licenseTemplateId
1794
+ },
1795
+ useAuthentication: true
1796
+ },
1797
+ LicenseTemplateRegexValidateOptions
1798
+ );
1799
+ }
1800
+ async delete(LicenseTemplateDeleteParams, LicenseTemplateDeleteOptions) {
1801
+ return await super.sendRequest(
1802
+ {
1803
+ method: "DELETE",
1804
+ url: "licenseTemplates/" + LicenseTemplateDeleteParams.licenseTemplateId,
1805
+ useAuthentication: true,
1806
+ body: void 0
1807
+ },
1808
+ LicenseTemplateDeleteOptions
1809
+ );
1810
+ }
1487
1811
  };
1488
1812
 
1489
1813
  // src/articles/articles.service.ts
@@ -1806,8 +2130,6 @@ var LanguageCodeArray = [
1806
2130
  // spanish
1807
2131
  "et",
1808
2132
  // estonian
1809
- "gsw",
1810
- // swiss german
1811
2133
  "hr",
1812
2134
  // croatian
1813
2135
  "hu",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",