@juhuu/sdk-ts 1.0.3 → 1.0.4

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.d.mts CHANGED
@@ -655,6 +655,11 @@ declare class ProductService extends Service {
655
655
  retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
656
656
  }
657
657
 
658
+ declare class SettingsService extends Service {
659
+ constructor(config: JUHUU.SetupConfig);
660
+ retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
661
+ }
662
+
658
663
  declare class Juhuu {
659
664
  constructor(config: JUHUU.SetupConfig);
660
665
  /**
@@ -672,6 +677,7 @@ declare class Juhuu {
672
677
  readonly terms: TermsService;
673
678
  readonly tariffs: TariffsService;
674
679
  readonly products: ProductService;
680
+ readonly settings: SettingsService;
675
681
  }
676
682
  declare namespace JUHUU {
677
683
  interface SetupConfig {
package/dist/index.d.ts CHANGED
@@ -655,6 +655,11 @@ declare class ProductService extends Service {
655
655
  retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
656
656
  }
657
657
 
658
+ declare class SettingsService extends Service {
659
+ constructor(config: JUHUU.SetupConfig);
660
+ retrieve(): Promise<JUHUU.HttpResponse<Settings>>;
661
+ }
662
+
658
663
  declare class Juhuu {
659
664
  constructor(config: JUHUU.SetupConfig);
660
665
  /**
@@ -672,6 +677,7 @@ declare class Juhuu {
672
677
  readonly terms: TermsService;
673
678
  readonly tariffs: TariffsService;
674
679
  readonly products: ProductService;
680
+ readonly settings: SettingsService;
675
681
  }
676
682
  declare namespace JUHUU {
677
683
  interface SetupConfig {
package/dist/index.js CHANGED
@@ -1050,6 +1050,21 @@ var ProductService = class extends Service {
1050
1050
  }
1051
1051
  };
1052
1052
 
1053
+ // src/settings/settings.service.ts
1054
+ var SettingsService = class extends Service {
1055
+ constructor(config) {
1056
+ super(config);
1057
+ }
1058
+ async retrieve() {
1059
+ return await super.sendRequest({
1060
+ method: "GET",
1061
+ url: "sessions/",
1062
+ body: void 0,
1063
+ useAuthentication: false
1064
+ });
1065
+ }
1066
+ };
1067
+
1053
1068
  // src/types/types.ts
1054
1069
  var LanguageCodeArray = [
1055
1070
  "en",
@@ -1216,6 +1231,7 @@ var Juhuu = class {
1216
1231
  this.terms = new TermsService(config);
1217
1232
  this.tariffs = new TariffsService(config);
1218
1233
  this.products = new ProductService(config);
1234
+ this.settings = new SettingsService(config);
1219
1235
  }
1220
1236
  /**
1221
1237
  * Top Level Resources
@@ -1232,6 +1248,7 @@ var Juhuu = class {
1232
1248
  terms;
1233
1249
  tariffs;
1234
1250
  products;
1251
+ settings;
1235
1252
  };
1236
1253
  var JUHUU;
1237
1254
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -1005,6 +1005,21 @@ var ProductService = class extends Service {
1005
1005
  }
1006
1006
  };
1007
1007
 
1008
+ // src/settings/settings.service.ts
1009
+ var SettingsService = class extends Service {
1010
+ constructor(config) {
1011
+ super(config);
1012
+ }
1013
+ async retrieve() {
1014
+ return await super.sendRequest({
1015
+ method: "GET",
1016
+ url: "sessions/",
1017
+ body: void 0,
1018
+ useAuthentication: false
1019
+ });
1020
+ }
1021
+ };
1022
+
1008
1023
  // src/types/types.ts
1009
1024
  var LanguageCodeArray = [
1010
1025
  "en",
@@ -1171,6 +1186,7 @@ var Juhuu = class {
1171
1186
  this.terms = new TermsService(config);
1172
1187
  this.tariffs = new TariffsService(config);
1173
1188
  this.products = new ProductService(config);
1189
+ this.settings = new SettingsService(config);
1174
1190
  }
1175
1191
  /**
1176
1192
  * Top Level Resources
@@ -1187,6 +1203,7 @@ var Juhuu = class {
1187
1203
  terms;
1188
1204
  tariffs;
1189
1205
  products;
1206
+ settings;
1190
1207
  };
1191
1208
  var JUHUU;
1192
1209
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",