@juhuu/sdk-ts 1.2.48 → 1.2.50

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
@@ -34,7 +34,7 @@ var Service = class {
34
34
  url,
35
35
  method,
36
36
  body = void 0,
37
- useAuthentication
37
+ authenticationNotOptional
38
38
  }, options = {}) {
39
39
  if (options.triggerOnException === void 0) {
40
40
  options.triggerOnException = true;
@@ -49,7 +49,7 @@ var Service = class {
49
49
  token = options.accessToken;
50
50
  }
51
51
  console.log("accessToken:", token);
52
- if ((token === null || token === void 0) && useAuthentication === true) {
52
+ if ((token === null || token === void 0) && authenticationNotOptional === true) {
53
53
  console.error(
54
54
  "endpoint",
55
55
  url,
@@ -113,7 +113,7 @@ var Service = class {
113
113
  method: "GET",
114
114
  url: "auth/refresh",
115
115
  body: void 0,
116
- useAuthentication: true
116
+ authenticationNotOptional: true
117
117
  },
118
118
  {
119
119
  accessToken: oldRefreshToken,
@@ -138,7 +138,7 @@ var Service = class {
138
138
  url,
139
139
  method,
140
140
  body,
141
- useAuthentication
141
+ authenticationNotOptional
142
142
  },
143
143
  {
144
144
  accessToken,
@@ -251,7 +251,7 @@ var SessionService = class extends Service {
251
251
  isOffSession: SessionCreateParams.isOffSession,
252
252
  userId: SessionCreateParams.userId
253
253
  },
254
- useAuthentication: true
254
+ authenticationNotOptional: true
255
255
  },
256
256
  SessionCreateOptions
257
257
  );
@@ -265,7 +265,7 @@ var SessionService = class extends Service {
265
265
  propertyId: SessionExportParams.propertyId,
266
266
  outputType: SessionExportParams.outputType
267
267
  },
268
- useAuthentication: true
268
+ authenticationNotOptional: true
269
269
  },
270
270
  SessionExportOptions
271
271
  );
@@ -279,7 +279,7 @@ var SessionService = class extends Service {
279
279
  method: "GET",
280
280
  url: "sessions/" + SessionRetrieveParams.sessionId + "?" + queryArray.join("&"),
281
281
  body: void 0,
282
- useAuthentication: true
282
+ authenticationNotOptional: true
283
283
  });
284
284
  }
285
285
  async list(SessionListParams, SessionListOptions) {
@@ -313,7 +313,7 @@ var SessionService = class extends Service {
313
313
  method: "GET",
314
314
  url: "sessions?" + queryArray.join("&"),
315
315
  body: void 0,
316
- useAuthentication: true
316
+ authenticationNotOptional: true
317
317
  },
318
318
  SessionListOptions
319
319
  );
@@ -326,7 +326,7 @@ var SessionService = class extends Service {
326
326
  body: {
327
327
  autoRenew: SessionUpdateParams?.autoRenew
328
328
  },
329
- useAuthentication: true
329
+ authenticationNotOptional: true
330
330
  },
331
331
  SessionUpdateOptions
332
332
  );
@@ -339,7 +339,7 @@ var SessionService = class extends Service {
339
339
  body: {
340
340
  isOffSession: SessionTerminateParams.isOffSession
341
341
  },
342
- useAuthentication: true
342
+ authenticationNotOptional: true
343
343
  },
344
344
  SessionTerminateOptions
345
345
  );
@@ -352,7 +352,7 @@ var SessionService = class extends Service {
352
352
  body: {
353
353
  locationId: SessionTerminateParams.locationId
354
354
  },
355
- useAuthentication: true
355
+ authenticationNotOptional: true
356
356
  },
357
357
  SessionTerminateOptions
358
358
  );
@@ -365,7 +365,7 @@ var SessionService = class extends Service {
365
365
  body: {
366
366
  userId: SessionAttachUserParams.userId
367
367
  },
368
- useAuthentication: true
368
+ authenticationNotOptional: true
369
369
  },
370
370
  SessionAttachUserOptions
371
371
  );
@@ -376,7 +376,7 @@ var SessionService = class extends Service {
376
376
  method: "DELETE",
377
377
  url: "sessions/" + SessionDetachUserParams.sessionId + "/user",
378
378
  body: void 0,
379
- useAuthentication: true
379
+ authenticationNotOptional: true
380
380
  },
381
381
  SessionDetachUserOptions
382
382
  );
@@ -398,7 +398,7 @@ var LinkService = class extends Service {
398
398
  name: LinkCreateParams.name,
399
399
  fiveLetterQr: LinkCreateParams.fiveLetterQr
400
400
  },
401
- useAuthentication: true
401
+ authenticationNotOptional: true
402
402
  },
403
403
  LinkCreateOptions
404
404
  );
@@ -410,7 +410,7 @@ var LinkService = class extends Service {
410
410
  method: "GET",
411
411
  url: "links/" + LinkRetrieveParams.linkId + "?" + queryArray.join("&"),
412
412
  body: void 0,
413
- useAuthentication: false
413
+ authenticationNotOptional: false
414
414
  },
415
415
  LinkRetrieveOptions
416
416
  );
@@ -428,7 +428,7 @@ var LinkService = class extends Service {
428
428
  method: "GET",
429
429
  url: "links?" + queryArray.join("&"),
430
430
  body: void 0,
431
- useAuthentication: true
431
+ authenticationNotOptional: false
432
432
  },
433
433
  LinkListOptions
434
434
  );
@@ -438,7 +438,7 @@ var LinkService = class extends Service {
438
438
  {
439
439
  method: "DELETE",
440
440
  url: "links/" + LinkDeleteParams.linkId,
441
- useAuthentication: true,
441
+ authenticationNotOptional: true,
442
442
  body: void 0
443
443
  },
444
444
  LinkDeleteOptions
@@ -458,7 +458,7 @@ var UsersService = class extends Service {
458
458
  method: "GET",
459
459
  url: "users/" + UserRetrieveParams.userId + "?" + queryArray.join("&"),
460
460
  body: void 0,
461
- useAuthentication: true
461
+ authenticationNotOptional: true
462
462
  },
463
463
  UserRetrieveOptions
464
464
  );
@@ -469,7 +469,7 @@ var UsersService = class extends Service {
469
469
  method: "GET",
470
470
  url: "users/exists?email=" + UserExistsParams.email,
471
471
  body: void 0,
472
- useAuthentication: false
472
+ authenticationNotOptional: false
473
473
  },
474
474
  UserExistsOptions
475
475
  );
@@ -483,7 +483,7 @@ var UsersService = class extends Service {
483
483
  email: UserRegisterEmailPasswordParams.email,
484
484
  password: UserRegisterEmailPasswordParams.password
485
485
  },
486
- useAuthentication: false
486
+ authenticationNotOptional: false
487
487
  },
488
488
  UserRegisterEmailPasswordOptions
489
489
  );
@@ -497,7 +497,7 @@ var UsersService = class extends Service {
497
497
  email: UserLoginEmailPasswordParams.email,
498
498
  password: UserLoginEmailPasswordParams.password
499
499
  },
500
- useAuthentication: false
500
+ authenticationNotOptional: false
501
501
  },
502
502
  UserLoginEmailPasswordOptions
503
503
  );
@@ -508,7 +508,7 @@ var UsersService = class extends Service {
508
508
  method: "GET",
509
509
  url: "users/" + UserPaymentMethodTokensParams.userId + "/paymentMethodTokens",
510
510
  body: void 0,
511
- useAuthentication: true
511
+ authenticationNotOptional: true
512
512
  },
513
513
  UserPaymentMethodTokensOptions
514
514
  );
@@ -519,7 +519,7 @@ var UsersService = class extends Service {
519
519
  method: "GET",
520
520
  url: "auth/refresh",
521
521
  body: void 0,
522
- useAuthentication: true
522
+ authenticationNotOptional: true
523
523
  },
524
524
  {
525
525
  accessToken: UserRefreshAccessTokenParams?.refreshToken,
@@ -540,7 +540,7 @@ var UsersService = class extends Service {
540
540
  method: "GET",
541
541
  url: "users?" + queryArray.join("&"),
542
542
  body: void 0,
543
- useAuthentication: true
543
+ authenticationNotOptional: true
544
544
  },
545
545
  UserListOptions
546
546
  );
@@ -560,7 +560,7 @@ var UsersService = class extends Service {
560
560
  vat: UserUpdateParams?.vat,
561
561
  acceptedTermIdArray: UserUpdateParams?.acceptedTermIdArray
562
562
  },
563
- useAuthentication: true
563
+ authenticationNotOptional: true
564
564
  },
565
565
  UserUpdateOptions
566
566
  );
@@ -574,7 +574,7 @@ var UsersService = class extends Service {
574
574
  userId: UserInviteMemberParams?.userIdToInvite,
575
575
  email: UserInviteMemberParams?.email
576
576
  },
577
- useAuthentication: true
577
+ authenticationNotOptional: true
578
578
  },
579
579
  UserInviteMemberOptions
580
580
  );
@@ -585,7 +585,7 @@ var UsersService = class extends Service {
585
585
  method: "DELETE",
586
586
  url: "users/" + UserRemoveMemberParams.managementUserId + "/members/" + UserRemoveMemberParams.memberUserId,
587
587
  body: void 0,
588
- useAuthentication: true
588
+ authenticationNotOptional: true
589
589
  },
590
590
  UserRemoveMemberOptions
591
591
  );
@@ -595,7 +595,7 @@ var UsersService = class extends Service {
595
595
  {
596
596
  method: "DELETE",
597
597
  url: "users/" + UserDeleteParams.userId,
598
- useAuthentication: true,
598
+ authenticationNotOptional: true,
599
599
  body: void 0
600
600
  },
601
601
  UserDeleteOptions
@@ -636,7 +636,7 @@ var PaymentsService = class extends Service {
636
636
  method: "GET",
637
637
  url: "payments?" + queryArray.join("&"),
638
638
  body: void 0,
639
- useAuthentication: true
639
+ authenticationNotOptional: true
640
640
  },
641
641
  PaymentListOptions
642
642
  );
@@ -650,7 +650,7 @@ var PaymentsService = class extends Service {
650
650
  method: "GET",
651
651
  url: "payments/" + PaymentRetrieveParams.paymentId + "?" + queryArray.join("&"),
652
652
  body: void 0,
653
- useAuthentication: true
653
+ authenticationNotOptional: true
654
654
  });
655
655
  }
656
656
  async tokens(PaymentTokensParams, PaymentTokensOptions) {
@@ -659,7 +659,7 @@ var PaymentsService = class extends Service {
659
659
  method: "GET",
660
660
  url: "payments/" + PaymentTokensParams.paymentId + "/tokens",
661
661
  body: void 0,
662
- useAuthentication: true
662
+ authenticationNotOptional: true
663
663
  },
664
664
  PaymentTokensOptions
665
665
  );
@@ -670,7 +670,7 @@ var PaymentsService = class extends Service {
670
670
  method: "GET",
671
671
  url: "payments/" + PaymentRetrieveInvoiceUrlParams.paymentId + "/invoiceUrl",
672
672
  body: void 0,
673
- useAuthentication: true
673
+ authenticationNotOptional: true
674
674
  });
675
675
  }
676
676
  };
@@ -690,7 +690,7 @@ var PropertiesService = class extends Service {
690
690
  name: PropertyCreateParams.name,
691
691
  type: PropertyCreateParams.type
692
692
  },
693
- useAuthentication: true
693
+ authenticationNotOptional: true
694
694
  });
695
695
  }
696
696
  async retrieve(PropertyRetrieveParams, PropertyRetrieveOptions) {
@@ -699,7 +699,7 @@ var PropertiesService = class extends Service {
699
699
  method: "GET",
700
700
  url: "properties/" + PropertyRetrieveParams.propertyId + "?" + queryArray.join("&"),
701
701
  body: void 0,
702
- useAuthentication: false
702
+ authenticationNotOptional: false
703
703
  });
704
704
  }
705
705
  async list(PropertyListParams, PropertyListOptions) {
@@ -709,7 +709,7 @@ var PropertiesService = class extends Service {
709
709
  method: "GET",
710
710
  url: "properties?" + queryArray.join("&"),
711
711
  body: void 0,
712
- useAuthentication: false
712
+ authenticationNotOptional: false
713
713
  },
714
714
  PropertyListOptions
715
715
  );
@@ -730,7 +730,7 @@ var PropertiesService = class extends Service {
730
730
  colorScheme: PropertyUpdateParams.colorScheme,
731
731
  contactUrl: PropertyUpdateParams.contactUrl
732
732
  },
733
- useAuthentication: true
733
+ authenticationNotOptional: true
734
734
  },
735
735
  PropertyUpdateOptions
736
736
  );
@@ -741,7 +741,7 @@ var PropertiesService = class extends Service {
741
741
  method: "GET",
742
742
  url: "properties/" + PropertyStripeAccountUrlParams.propertyId + "/stripeAccountUrl",
743
743
  body: void 0,
744
- useAuthentication: true
744
+ authenticationNotOptional: true
745
745
  },
746
746
  PropertyStripeAccountUrlOptions
747
747
  );
@@ -768,7 +768,7 @@ var PointsService = class extends Service {
768
768
  method: "GET",
769
769
  url: "points/map?" + queryArray.join("&"),
770
770
  body: void 0,
771
- useAuthentication: false
771
+ authenticationNotOptional: false
772
772
  },
773
773
  PointListOptions
774
774
  );
@@ -783,7 +783,7 @@ var PointsService = class extends Service {
783
783
  method: "GET",
784
784
  url: "points?" + queryArray.join("&"),
785
785
  body: void 0,
786
- useAuthentication: false
786
+ authenticationNotOptional: false
787
787
  },
788
788
  PointListOptions
789
789
  );
@@ -834,7 +834,7 @@ var DevicesService = class extends Service {
834
834
  deviceTemplateId: DeviceCreateParams.deviceTemplateId,
835
835
  name: DeviceCreateParams.name
836
836
  },
837
- useAuthentication: true
837
+ authenticationNotOptional: true
838
838
  },
839
839
  DeviceCreateOptions
840
840
  );
@@ -852,7 +852,7 @@ var DevicesService = class extends Service {
852
852
  method: "GET",
853
853
  url: "devices/" + DeviceRetrieveParams.deviceId + "?" + queryArray.join("&"),
854
854
  body: void 0,
855
- useAuthentication: false
855
+ authenticationNotOptional: false
856
856
  },
857
857
  DeviceRetrieveOptions
858
858
  );
@@ -879,7 +879,7 @@ var DevicesService = class extends Service {
879
879
  method: "GET",
880
880
  url: "devices?" + queryArray.join("&"),
881
881
  body: void 0,
882
- useAuthentication: false
882
+ authenticationNotOptional: false
883
883
  },
884
884
  DeviceListOptions
885
885
  );
@@ -909,7 +909,7 @@ var DevicesService = class extends Service {
909
909
  body: {
910
910
  message: DeviceMessageParams.message
911
911
  },
912
- useAuthentication: true
912
+ authenticationNotOptional: true
913
913
  },
914
914
  DeviceMessageOptions
915
915
  );
@@ -922,7 +922,7 @@ var DevicesService = class extends Service {
922
922
  body: {
923
923
  value: DeviceParameterParams.value
924
924
  },
925
- useAuthentication: true
925
+ authenticationNotOptional: true
926
926
  },
927
927
  DeviceParameterOptions
928
928
  );
@@ -933,7 +933,7 @@ var DevicesService = class extends Service {
933
933
  method: "POST",
934
934
  url: "devices/" + DeviceCommandExecuteParams.deviceId + "/command/" + DeviceCommandExecuteParams.commandName,
935
935
  body: {},
936
- useAuthentication: true
936
+ authenticationNotOptional: true
937
937
  },
938
938
  DeviceCommandExecuteOptions
939
939
  );
@@ -943,7 +943,7 @@ var DevicesService = class extends Service {
943
943
  {
944
944
  method: "DELETE",
945
945
  url: "devices/" + DeviceDeleteParams.deviceId,
946
- useAuthentication: true,
946
+ authenticationNotOptional: true,
947
947
  body: void 0
948
948
  },
949
949
  DeviceDeleteOptions
@@ -966,7 +966,7 @@ var DeviceTemplatesService = class extends Service {
966
966
  productId: DeviceTemplateCreateParams.productId,
967
967
  name: DeviceTemplateCreateParams.name
968
968
  },
969
- useAuthentication: true
969
+ authenticationNotOptional: true
970
970
  },
971
971
  DeviceTemplateCreateOptions
972
972
  );
@@ -981,7 +981,7 @@ var DeviceTemplatesService = class extends Service {
981
981
  method: "GET",
982
982
  url: "deviceTemplates/" + DeviceTemplateRetrieveParams.deviceTemplateId + "?" + queryArray.join("&"),
983
983
  body: void 0,
984
- useAuthentication: false
984
+ authenticationNotOptional: false
985
985
  },
986
986
  DeviceTemplateRetrieveOptions
987
987
  );
@@ -996,7 +996,7 @@ var DeviceTemplatesService = class extends Service {
996
996
  method: "GET",
997
997
  url: "deviceTemplates?" + queryArray.join("&"),
998
998
  body: void 0,
999
- useAuthentication: false
999
+ authenticationNotOptional: false
1000
1000
  },
1001
1001
  DeviceTemplateListOptions
1002
1002
  );
@@ -1006,7 +1006,7 @@ var DeviceTemplatesService = class extends Service {
1006
1006
  {
1007
1007
  method: "DELETE",
1008
1008
  url: "deviceTemplates/" + DeviceTemplateDeleteParams.deviceTemplateId,
1009
- useAuthentication: true,
1009
+ authenticationNotOptional: true,
1010
1010
  body: void 0
1011
1011
  },
1012
1012
  DeviceTemplateDeleteOptions
@@ -1029,7 +1029,7 @@ var LocationsService = class extends Service {
1029
1029
  name: LocationCreateParams.name,
1030
1030
  type: LocationCreateParams.type
1031
1031
  },
1032
- useAuthentication: true
1032
+ authenticationNotOptional: true
1033
1033
  },
1034
1034
  LocationCreateOptions
1035
1035
  );
@@ -1044,7 +1044,7 @@ var LocationsService = class extends Service {
1044
1044
  method: "GET",
1045
1045
  url: "locations/" + LocationRetrieveParams.locationId + "?" + queryArray.join("&"),
1046
1046
  body: void 0,
1047
- useAuthentication: false
1047
+ authenticationNotOptional: false
1048
1048
  },
1049
1049
  LocationRetrieveOptions
1050
1050
  );
@@ -1065,7 +1065,7 @@ var LocationsService = class extends Service {
1065
1065
  method: "GET",
1066
1066
  url: "locations?" + queryArray.join("&"),
1067
1067
  body: void 0,
1068
- useAuthentication: false
1068
+ authenticationNotOptional: false
1069
1069
  },
1070
1070
  LocationListOptions
1071
1071
  );
@@ -1088,7 +1088,7 @@ var LocationsService = class extends Service {
1088
1088
  rentOfferArray: LocationUpdateParams.rentOfferArray,
1089
1089
  reservationOfferArray: LocationUpdateParams.reservationOfferArray
1090
1090
  },
1091
- useAuthentication: true
1091
+ authenticationNotOptional: true
1092
1092
  },
1093
1093
  LocationUpdateOptions
1094
1094
  );
@@ -1098,7 +1098,7 @@ var LocationsService = class extends Service {
1098
1098
  {
1099
1099
  method: "DELETE",
1100
1100
  url: "locations/" + LocationDeleteParams.locationId,
1101
- useAuthentication: true,
1101
+ authenticationNotOptional: true,
1102
1102
  body: void 0
1103
1103
  },
1104
1104
  LocationDeleteOptions
@@ -1120,7 +1120,7 @@ var TermsService = class extends Service {
1120
1120
  propertyId: TermCreateParams.propertyId,
1121
1121
  name: TermCreateParams.name
1122
1122
  },
1123
- useAuthentication: true
1123
+ authenticationNotOptional: true
1124
1124
  },
1125
1125
  TermCreateOptions
1126
1126
  );
@@ -1135,7 +1135,7 @@ var TermsService = class extends Service {
1135
1135
  method: "GET",
1136
1136
  url: "terms/" + TermRetrieveParams.termId + "?" + queryArray.join("&"),
1137
1137
  body: void 0,
1138
- useAuthentication: false
1138
+ authenticationNotOptional: false
1139
1139
  },
1140
1140
  TermRetrieveOptions
1141
1141
  );
@@ -1150,7 +1150,7 @@ var TermsService = class extends Service {
1150
1150
  method: "GET",
1151
1151
  url: "terms?" + queryArray.join("&"),
1152
1152
  body: void 0,
1153
- useAuthentication: false
1153
+ authenticationNotOptional: false
1154
1154
  },
1155
1155
  TermListOptions
1156
1156
  );
@@ -1163,7 +1163,7 @@ var TermsService = class extends Service {
1163
1163
  body: {
1164
1164
  userId: TermAcceptParams.userId
1165
1165
  },
1166
- useAuthentication: true
1166
+ authenticationNotOptional: true
1167
1167
  },
1168
1168
  TermAcceptOptions
1169
1169
  );
@@ -1173,7 +1173,7 @@ var TermsService = class extends Service {
1173
1173
  {
1174
1174
  method: "DELETE",
1175
1175
  url: "terms/" + TermDeleteParams.termId,
1176
- useAuthentication: true,
1176
+ authenticationNotOptional: true,
1177
1177
  body: void 0
1178
1178
  },
1179
1179
  TermDeleteOptions
@@ -1199,7 +1199,7 @@ var TariffsService = class extends Service {
1199
1199
  continue: TariffCreateParams.continue,
1200
1200
  name: TariffCreateParams.name
1201
1201
  },
1202
- useAuthentication: true
1202
+ authenticationNotOptional: true
1203
1203
  },
1204
1204
  TariffCreateOptions
1205
1205
  );
@@ -1214,7 +1214,7 @@ var TariffsService = class extends Service {
1214
1214
  method: "GET",
1215
1215
  url: "tariffs/" + TariffRetrieveParams.tariffId + "?" + queryArray.join("&"),
1216
1216
  body: void 0,
1217
- useAuthentication: false
1217
+ authenticationNotOptional: false
1218
1218
  },
1219
1219
  TariffRetrieveOptions
1220
1220
  );
@@ -1229,7 +1229,7 @@ var TariffsService = class extends Service {
1229
1229
  method: "GET",
1230
1230
  url: "tariffs?" + queryArray.join("&"),
1231
1231
  body: void 0,
1232
- useAuthentication: false
1232
+ authenticationNotOptional: false
1233
1233
  },
1234
1234
  TariffListOptions
1235
1235
  );
@@ -1252,7 +1252,7 @@ var TariffsService = class extends Service {
1252
1252
  autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
1253
1253
  manualTerminationEnabled: TariffUpdateParams.manualTerminationEnabled
1254
1254
  },
1255
- useAuthentication: true
1255
+ authenticationNotOptional: true
1256
1256
  },
1257
1257
  TariffUpdateOptions
1258
1258
  );
@@ -1332,7 +1332,7 @@ var TariffsService = class extends Service {
1332
1332
  {
1333
1333
  method: "DELETE",
1334
1334
  url: "tariffs/" + TariffDeleteParams.tariffId,
1335
- useAuthentication: true,
1335
+ authenticationNotOptional: true,
1336
1336
  body: void 0
1337
1337
  },
1338
1338
  TariffDeleteOptions
@@ -1354,7 +1354,7 @@ var ProductService = class extends Service {
1354
1354
  propertyId: ProductCreateParams.propertyId,
1355
1355
  name: ProductCreateParams.name
1356
1356
  },
1357
- useAuthentication: true
1357
+ authenticationNotOptional: true
1358
1358
  },
1359
1359
  ProductCreateOptions
1360
1360
  );
@@ -1387,7 +1387,7 @@ var ProductService = class extends Service {
1387
1387
  method: "GET",
1388
1388
  url: "products?" + queryArray.join("&"),
1389
1389
  body: void 0,
1390
- useAuthentication: false
1390
+ authenticationNotOptional: false
1391
1391
  },
1392
1392
  ProductListOptions
1393
1393
  );
@@ -1402,7 +1402,7 @@ var ProductService = class extends Service {
1402
1402
  method: "GET",
1403
1403
  url: "products/" + params.productId + "?" + queryArray.join("&"),
1404
1404
  body: void 0,
1405
- useAuthentication: false
1405
+ authenticationNotOptional: false
1406
1406
  },
1407
1407
  options
1408
1408
  );
@@ -1412,7 +1412,7 @@ var ProductService = class extends Service {
1412
1412
  {
1413
1413
  method: "DELETE",
1414
1414
  url: "products/" + ProductDeleteParams.productId,
1415
- useAuthentication: true,
1415
+ authenticationNotOptional: true,
1416
1416
  body: void 0
1417
1417
  },
1418
1418
  ProductDeleteOptions
@@ -1430,7 +1430,7 @@ var SettingsService = class extends Service {
1430
1430
  method: "GET",
1431
1431
  url: "sessions/",
1432
1432
  body: void 0,
1433
- useAuthentication: false
1433
+ authenticationNotOptional: false
1434
1434
  });
1435
1435
  }
1436
1436
  };
@@ -1449,7 +1449,7 @@ var AccountingAreasService = class extends Service {
1449
1449
  propertyId: AccountingAreaCreateParams.propertyId,
1450
1450
  name: AccountingAreaCreateParams.name
1451
1451
  },
1452
- useAuthentication: true
1452
+ authenticationNotOptional: true
1453
1453
  },
1454
1454
  AccountingAreaCreateOptions
1455
1455
  );
@@ -1466,7 +1466,7 @@ var AccountingAreasService = class extends Service {
1466
1466
  method: "GET",
1467
1467
  url: "accountingAreas/" + AccountingAreaRetrieveParams.accountingAreaId + "?" + queryArray.join("&"),
1468
1468
  body: void 0,
1469
- useAuthentication: false
1469
+ authenticationNotOptional: false
1470
1470
  },
1471
1471
  AccountingAreaRetrieveOptions
1472
1472
  );
@@ -1481,7 +1481,7 @@ var AccountingAreasService = class extends Service {
1481
1481
  method: "GET",
1482
1482
  url: "accountingAreas?" + queryArray.join("&"),
1483
1483
  body: void 0,
1484
- useAuthentication: false
1484
+ authenticationNotOptional: false
1485
1485
  },
1486
1486
  AccountingAreaListOptions
1487
1487
  );
@@ -1491,7 +1491,7 @@ var AccountingAreasService = class extends Service {
1491
1491
  {
1492
1492
  method: "DELETE",
1493
1493
  url: "accountingAreas/" + AccountingAreaDeleteParams.accountingAreaId,
1494
- useAuthentication: true,
1494
+ authenticationNotOptional: true,
1495
1495
  body: void 0
1496
1496
  },
1497
1497
  AccountingAreaDeleteOptions
@@ -1524,7 +1524,7 @@ var ConnectorsService = class extends Service {
1524
1524
  connectionMode: ConnectorCreateParams.connectionMode,
1525
1525
  type: ConnectorCreateParams.type
1526
1526
  },
1527
- useAuthentication: true
1527
+ authenticationNotOptional: true
1528
1528
  },
1529
1529
  ConnectorCreateOptions
1530
1530
  );
@@ -1539,7 +1539,7 @@ var ConnectorsService = class extends Service {
1539
1539
  method: "GET",
1540
1540
  url: "connectors/" + ConnectorRetrieveParams.connectorId + "?" + queryArray.join("&"),
1541
1541
  body: void 0,
1542
- useAuthentication: false
1542
+ authenticationNotOptional: false
1543
1543
  },
1544
1544
  ConnectorRetrieveOptions
1545
1545
  );
@@ -1554,7 +1554,7 @@ var ConnectorsService = class extends Service {
1554
1554
  method: "GET",
1555
1555
  url: "connectors?" + queryArray.join("&"),
1556
1556
  body: void 0,
1557
- useAuthentication: false
1557
+ authenticationNotOptional: false
1558
1558
  },
1559
1559
  ConnectorListOptions
1560
1560
  );
@@ -1564,7 +1564,7 @@ var ConnectorsService = class extends Service {
1564
1564
  {
1565
1565
  method: "DELETE",
1566
1566
  url: "connectors/" + ConnectorDeleteParams.connectorId,
1567
- useAuthentication: true,
1567
+ authenticationNotOptional: true,
1568
1568
  body: void 0
1569
1569
  },
1570
1570
  ConnectorDeleteOptions
@@ -1587,7 +1587,7 @@ var PayoutsService = class extends Service {
1587
1587
  method: "GET",
1588
1588
  url: "payouts/" + PayoutRetrieveParams.payoutId + "?" + queryArray.join("&"),
1589
1589
  body: void 0,
1590
- useAuthentication: false
1590
+ authenticationNotOptional: false
1591
1591
  },
1592
1592
  PayoutRetrieveOptions
1593
1593
  );
@@ -1602,7 +1602,7 @@ var PayoutsService = class extends Service {
1602
1602
  method: "GET",
1603
1603
  url: "payouts?" + queryArray.join("&"),
1604
1604
  body: void 0,
1605
- useAuthentication: false
1605
+ authenticationNotOptional: false
1606
1606
  },
1607
1607
  PayoutListOptions
1608
1608
  );
@@ -1621,7 +1621,7 @@ var ConnectorMessagesService = class extends Service {
1621
1621
  method: "GET",
1622
1622
  url: "connectorMessages/" + ConnectorMessageRetrieveParams.connectorMessageId + "?" + queryArray.join("&"),
1623
1623
  body: void 0,
1624
- useAuthentication: true
1624
+ authenticationNotOptional: true
1625
1625
  },
1626
1626
  ConnectorMessageRetrieveOptions
1627
1627
  );
@@ -1645,7 +1645,7 @@ var ConnectorMessagesService = class extends Service {
1645
1645
  method: "GET",
1646
1646
  url: "connectorMessages?" + queryArray.join("&"),
1647
1647
  body: void 0,
1648
- useAuthentication: true
1648
+ authenticationNotOptional: true
1649
1649
  },
1650
1650
  ConnectorMessageListOptions
1651
1651
  );
@@ -1667,7 +1667,7 @@ var SimsService = class extends Service {
1667
1667
  iccid: SimCreateParams.iccid,
1668
1668
  name: SimCreateParams.name
1669
1669
  },
1670
- useAuthentication: true
1670
+ authenticationNotOptional: true
1671
1671
  },
1672
1672
  SimCreateOptions
1673
1673
  );
@@ -1678,7 +1678,7 @@ var SimsService = class extends Service {
1678
1678
  method: "GET",
1679
1679
  url: "sims/" + SimRetrieveParams.simId,
1680
1680
  body: void 0,
1681
- useAuthentication: false
1681
+ authenticationNotOptional: false
1682
1682
  },
1683
1683
  SimRetrieveOptions
1684
1684
  );
@@ -1693,7 +1693,7 @@ var SimsService = class extends Service {
1693
1693
  method: "GET",
1694
1694
  url: "sims?" + queryArray.join("&"),
1695
1695
  body: void 0,
1696
- useAuthentication: false
1696
+ authenticationNotOptional: false
1697
1697
  },
1698
1698
  SimListOptions
1699
1699
  );
@@ -1704,7 +1704,7 @@ var SimsService = class extends Service {
1704
1704
  method: "PATCH",
1705
1705
  url: "sims/" + SimUpdateFromProviderParams.simId + "/updateFromProvider",
1706
1706
  body: void 0,
1707
- useAuthentication: false
1707
+ authenticationNotOptional: false
1708
1708
  },
1709
1709
  SimUpdateFromProviderOptions
1710
1710
  );
@@ -1714,7 +1714,7 @@ var SimsService = class extends Service {
1714
1714
  {
1715
1715
  method: "DELETE",
1716
1716
  url: "sims/" + SimDeleteParams.simId,
1717
- useAuthentication: true,
1717
+ authenticationNotOptional: true,
1718
1718
  body: void 0
1719
1719
  },
1720
1720
  SimDeleteOptions
@@ -1738,7 +1738,7 @@ var LicenseTemplatesService = class extends Service {
1738
1738
  regex: LicenseTemplateCreateParams.regex,
1739
1739
  name: LicenseTemplateCreateParams.name
1740
1740
  },
1741
- useAuthentication: true
1741
+ authenticationNotOptional: true
1742
1742
  },
1743
1743
  LicenseTemplateCreateOptions
1744
1744
  );
@@ -1759,7 +1759,7 @@ var LicenseTemplatesService = class extends Service {
1759
1759
  method: "GET",
1760
1760
  url: "licenseTemplates?" + queryArray.join("&"),
1761
1761
  body: void 0,
1762
- useAuthentication: true
1762
+ authenticationNotOptional: true
1763
1763
  },
1764
1764
  LicenseTemplateListOptions
1765
1765
  );
@@ -1775,7 +1775,7 @@ var LicenseTemplatesService = class extends Service {
1775
1775
  method: "GET",
1776
1776
  url: "licenseTemplates/" + LicenseTemplateRetrieveParams.licenseTemplateId + "?" + queryArray.join("&"),
1777
1777
  body: void 0,
1778
- useAuthentication: true
1778
+ authenticationNotOptional: true
1779
1779
  });
1780
1780
  }
1781
1781
  async regexValidate(LicenseTemplateRegexValidateParams, LicenseTemplateRegexValidateOptions) {
@@ -1788,7 +1788,7 @@ var LicenseTemplatesService = class extends Service {
1788
1788
  text: LicenseTemplateRegexValidateParams.text,
1789
1789
  licenseTemplateId: LicenseTemplateRegexValidateParams.licenseTemplateId
1790
1790
  },
1791
- useAuthentication: true
1791
+ authenticationNotOptional: true
1792
1792
  },
1793
1793
  LicenseTemplateRegexValidateOptions
1794
1794
  );
@@ -1798,7 +1798,7 @@ var LicenseTemplatesService = class extends Service {
1798
1798
  {
1799
1799
  method: "DELETE",
1800
1800
  url: "licenseTemplates/" + LicenseTemplateDeleteParams.licenseTemplateId,
1801
- useAuthentication: true,
1801
+ authenticationNotOptional: true,
1802
1802
  body: void 0
1803
1803
  },
1804
1804
  LicenseTemplateDeleteOptions
@@ -1819,7 +1819,7 @@ var ArticlesService = class extends Service {
1819
1819
  body: {
1820
1820
  propertyId: ArticleCreateParams.propertyId
1821
1821
  },
1822
- useAuthentication: true
1822
+ authenticationNotOptional: true
1823
1823
  },
1824
1824
  ArticleCreateOptions
1825
1825
  );
@@ -1843,7 +1843,7 @@ var ArticlesService = class extends Service {
1843
1843
  method: "GET",
1844
1844
  url: "articles?" + queryArray.join("&"),
1845
1845
  body: void 0,
1846
- useAuthentication: false
1846
+ authenticationNotOptional: false
1847
1847
  },
1848
1848
  ArticleListOptions
1849
1849
  );
@@ -1858,7 +1858,7 @@ var ArticlesService = class extends Service {
1858
1858
  method: "GET",
1859
1859
  url: "articles/" + ArticleRetrieveParams.articleId + "?" + queryArray.join("&"),
1860
1860
  body: void 0,
1861
- useAuthentication: false
1861
+ authenticationNotOptional: false
1862
1862
  },
1863
1863
  ArticleRetrieveOptions
1864
1864
  );
@@ -1876,7 +1876,7 @@ var ArticlesService = class extends Service {
1876
1876
  status: ArticleUpdateParams.status,
1877
1877
  languageCodeArray: ArticleUpdateParams.languageCodeArray
1878
1878
  },
1879
- useAuthentication: true
1879
+ authenticationNotOptional: true
1880
1880
  },
1881
1881
  ArticleUpdateOptions
1882
1882
  );
@@ -1886,7 +1886,7 @@ var ArticlesService = class extends Service {
1886
1886
  {
1887
1887
  method: "DELETE",
1888
1888
  url: "articles/" + ArticleDeleteParams.articleId,
1889
- useAuthentication: true,
1889
+ authenticationNotOptional: true,
1890
1890
  body: void 0
1891
1891
  },
1892
1892
  ArticleDeleteOptions
@@ -1911,11 +1911,24 @@ var ArticlesService = class extends Service {
1911
1911
  method: "GET",
1912
1912
  url: "articles/search?" + queryArray.join("&"),
1913
1913
  body: void 0,
1914
- useAuthentication: false
1914
+ authenticationNotOptional: false
1915
1915
  },
1916
1916
  ArticleSearchOptions
1917
1917
  );
1918
1918
  }
1919
+ async translate(ArticleTranslateParams, ArticleTranslateOptions) {
1920
+ return await super.sendRequest(
1921
+ {
1922
+ method: "PATCH",
1923
+ url: "articles/" + ArticleTranslateParams.articleId + "/translate",
1924
+ body: {
1925
+ languageCode: ArticleTranslateParams.languageCode
1926
+ },
1927
+ authenticationNotOptional: false
1928
+ },
1929
+ ArticleTranslateOptions
1930
+ );
1931
+ }
1919
1932
  };
1920
1933
 
1921
1934
  // src/chats/chats.service.ts
@@ -1931,7 +1944,7 @@ var ChatsService = class extends Service {
1931
1944
  body: {
1932
1945
  userId: ChatCreateParams.userId
1933
1946
  },
1934
- useAuthentication: true
1947
+ authenticationNotOptional: true
1935
1948
  },
1936
1949
  ChatCreateOptions
1937
1950
  );
@@ -1952,7 +1965,7 @@ var ChatsService = class extends Service {
1952
1965
  method: "GET",
1953
1966
  url: "chats?" + queryArray.join("&"),
1954
1967
  body: void 0,
1955
- useAuthentication: false
1968
+ authenticationNotOptional: false
1956
1969
  },
1957
1970
  ChatListOptions
1958
1971
  );
@@ -1964,7 +1977,7 @@ var ChatsService = class extends Service {
1964
1977
  method: "GET",
1965
1978
  url: "chats/" + ChatRetrieveParams.chatId + "?" + queryArray.join("&"),
1966
1979
  body: void 0,
1967
- useAuthentication: false
1980
+ authenticationNotOptional: false
1968
1981
  },
1969
1982
  ChatRetrieveOptions
1970
1983
  );
@@ -1977,7 +1990,7 @@ var ChatsService = class extends Service {
1977
1990
  body: {
1978
1991
  title: ChatUpdateParams.title
1979
1992
  },
1980
- useAuthentication: true
1993
+ authenticationNotOptional: true
1981
1994
  },
1982
1995
  ChatUpdateOptions
1983
1996
  );
@@ -1987,7 +2000,7 @@ var ChatsService = class extends Service {
1987
2000
  {
1988
2001
  method: "DELETE",
1989
2002
  url: "chats/" + ChatDeleteParams.chatId,
1990
- useAuthentication: true,
2003
+ authenticationNotOptional: true,
1991
2004
  body: void 0
1992
2005
  },
1993
2006
  ChatDeleteOptions
@@ -1999,7 +2012,7 @@ var ChatsService = class extends Service {
1999
2012
  method: "PATCH",
2000
2013
  url: "chats/" + ChatUpdateParams.chatId + "/complete",
2001
2014
  body: void 0,
2002
- useAuthentication: true
2015
+ authenticationNotOptional: true
2003
2016
  },
2004
2017
  ChatUpdateOptions
2005
2018
  );
@@ -2021,7 +2034,7 @@ var ChatMessagesService = class extends Service {
2021
2034
  message: ChatMessageCreateParams.message,
2022
2035
  userId: ChatMessageCreateParams.userId
2023
2036
  },
2024
- useAuthentication: true
2037
+ authenticationNotOptional: true
2025
2038
  },
2026
2039
  ChatMessageCreateOptions
2027
2040
  );
@@ -2045,7 +2058,7 @@ var ChatMessagesService = class extends Service {
2045
2058
  method: "GET",
2046
2059
  url: "chatMessages?" + queryArray.join("&"),
2047
2060
  body: void 0,
2048
- useAuthentication: true
2061
+ authenticationNotOptional: true
2049
2062
  },
2050
2063
  ChatMessageListOptions
2051
2064
  );
@@ -2056,7 +2069,7 @@ var ChatMessagesService = class extends Service {
2056
2069
  method: "GET",
2057
2070
  url: "chatMessages/" + ChatMessageRetrieveParams.chatMessageId + "?" + queryArray.join("&"),
2058
2071
  body: void 0,
2059
- useAuthentication: true
2072
+ authenticationNotOptional: true
2060
2073
  });
2061
2074
  }
2062
2075
  };
@@ -2082,7 +2095,7 @@ var ArticleEmbeddingsService = class extends Service {
2082
2095
  method: "GET",
2083
2096
  url: "articleEmbeddingEmbeddings?" + queryArray.join("&"),
2084
2097
  body: void 0,
2085
- useAuthentication: false
2098
+ authenticationNotOptional: false
2086
2099
  },
2087
2100
  ArticleEmbeddingListOptions
2088
2101
  );
@@ -2099,7 +2112,7 @@ var ArticleEmbeddingsService = class extends Service {
2099
2112
  method: "GET",
2100
2113
  url: "articleEmbeddingEmbeddings/" + ArticleEmbeddingRetrieveParams.articleEmbeddingId + "?" + queryArray.join("&"),
2101
2114
  body: void 0,
2102
- useAuthentication: false
2115
+ authenticationNotOptional: false
2103
2116
  },
2104
2117
  ArticleEmbeddingRetrieveOptions
2105
2118
  );
@@ -2218,8 +2231,6 @@ var CurrencyCodeArray = [
2218
2231
  // czech republic
2219
2232
  "huf",
2220
2233
  // hungary
2221
- "hrk",
2222
- // croatia
2223
2234
  "bam",
2224
2235
  // bosnia and herzegovina
2225
2236
  "rsd",