@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.d.mts CHANGED
@@ -78,7 +78,7 @@ declare const LanguageCodeArray: readonly ["en", "de", "fr", "nl", "it", "cs", "
78
78
  type LanguageCode = (typeof LanguageCodeArray)[number];
79
79
  declare const CountryCodeArray: readonly ["DE", "AT", "CH", "LI", "IT", "FR", "NL", "BE", "LU", "DK", "SE", "NO", "FI", "IS", "GB", "IE", "ES", "PT", "GR", "PL", "CZ", "SK", "HU", "SI", "HR", "BA", "RS", "US", "CA"];
80
80
  type CountryCode = (typeof CountryCodeArray)[number];
81
- declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "hrk", "bam", "rsd", "isk", "cad"];
81
+ declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "bam", "rsd", "isk", "cad"];
82
82
  type CurrencyCode = (typeof CurrencyCodeArray)[number];
83
83
  interface Settings {
84
84
  general: GeneralSettings;
@@ -522,26 +522,26 @@ declare class Service {
522
522
  setAccessToken: (accessToken: string) => Promise<void>;
523
523
  getRefreshToken: () => Promise<string | null>;
524
524
  setRefreshToken: (refreshToken: string) => Promise<void>;
525
- sendRequest<T>({ url, method, body, useAuthentication, }: {
525
+ sendRequest<T>({ url, method, body, authenticationNotOptional, }: {
526
526
  method: "GET";
527
527
  url: string;
528
528
  body: undefined;
529
- useAuthentication: boolean;
529
+ authenticationNotOptional: boolean;
530
530
  } | {
531
531
  method: "POST";
532
532
  url: string;
533
533
  body: any;
534
- useAuthentication: boolean;
534
+ authenticationNotOptional: boolean;
535
535
  } | {
536
536
  method: "PATCH";
537
537
  url: string;
538
538
  body: any;
539
- useAuthentication: boolean;
539
+ authenticationNotOptional: boolean;
540
540
  } | {
541
541
  method: "DELETE";
542
542
  url: string;
543
543
  body: undefined;
544
- useAuthentication: boolean;
544
+ authenticationNotOptional: boolean;
545
545
  }, options?: JUHUU.RequestOptions): Promise<JUHUU.HttpResponse<T>>;
546
546
  private sendGetRequest;
547
547
  private sendPostRequest;
@@ -746,6 +746,7 @@ declare class ArticlesService extends Service {
746
746
  update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
747
747
  delete(ArticleDeleteParams: JUHUU.Article.Delete.Params, ArticleDeleteOptions?: JUHUU.Article.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Delete.Response>>;
748
748
  search(ArticleSearchParams: JUHUU.Article.Search.Params, ArticleSearchOptions?: JUHUU.Article.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Search.Response>>;
749
+ translate(ArticleTranslateParams: JUHUU.Article.Translate.Params, ArticleTranslateOptions?: JUHUU.Article.Translate.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Translate.Response>>;
749
750
  }
750
751
 
751
752
  declare class ChatsService extends Service {
@@ -1399,6 +1400,16 @@ declare namespace JUHUU {
1399
1400
  articleArray: JUHUU.Article.Object[];
1400
1401
  };
1401
1402
  }
1403
+ namespace Translate {
1404
+ type Params = {
1405
+ articleId: string;
1406
+ languageCode: LanguageCode;
1407
+ };
1408
+ type Options = JUHUU.RequestOptions;
1409
+ type Response = {
1410
+ article: JUHUU.Article.Object;
1411
+ };
1412
+ }
1402
1413
  }
1403
1414
  namespace Chat {
1404
1415
  type Object = {
package/dist/index.d.ts CHANGED
@@ -78,7 +78,7 @@ declare const LanguageCodeArray: readonly ["en", "de", "fr", "nl", "it", "cs", "
78
78
  type LanguageCode = (typeof LanguageCodeArray)[number];
79
79
  declare const CountryCodeArray: readonly ["DE", "AT", "CH", "LI", "IT", "FR", "NL", "BE", "LU", "DK", "SE", "NO", "FI", "IS", "GB", "IE", "ES", "PT", "GR", "PL", "CZ", "SK", "HU", "SI", "HR", "BA", "RS", "US", "CA"];
80
80
  type CountryCode = (typeof CountryCodeArray)[number];
81
- declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "hrk", "bam", "rsd", "isk", "cad"];
81
+ declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "bam", "rsd", "isk", "cad"];
82
82
  type CurrencyCode = (typeof CurrencyCodeArray)[number];
83
83
  interface Settings {
84
84
  general: GeneralSettings;
@@ -522,26 +522,26 @@ declare class Service {
522
522
  setAccessToken: (accessToken: string) => Promise<void>;
523
523
  getRefreshToken: () => Promise<string | null>;
524
524
  setRefreshToken: (refreshToken: string) => Promise<void>;
525
- sendRequest<T>({ url, method, body, useAuthentication, }: {
525
+ sendRequest<T>({ url, method, body, authenticationNotOptional, }: {
526
526
  method: "GET";
527
527
  url: string;
528
528
  body: undefined;
529
- useAuthentication: boolean;
529
+ authenticationNotOptional: boolean;
530
530
  } | {
531
531
  method: "POST";
532
532
  url: string;
533
533
  body: any;
534
- useAuthentication: boolean;
534
+ authenticationNotOptional: boolean;
535
535
  } | {
536
536
  method: "PATCH";
537
537
  url: string;
538
538
  body: any;
539
- useAuthentication: boolean;
539
+ authenticationNotOptional: boolean;
540
540
  } | {
541
541
  method: "DELETE";
542
542
  url: string;
543
543
  body: undefined;
544
- useAuthentication: boolean;
544
+ authenticationNotOptional: boolean;
545
545
  }, options?: JUHUU.RequestOptions): Promise<JUHUU.HttpResponse<T>>;
546
546
  private sendGetRequest;
547
547
  private sendPostRequest;
@@ -746,6 +746,7 @@ declare class ArticlesService extends Service {
746
746
  update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
747
747
  delete(ArticleDeleteParams: JUHUU.Article.Delete.Params, ArticleDeleteOptions?: JUHUU.Article.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Delete.Response>>;
748
748
  search(ArticleSearchParams: JUHUU.Article.Search.Params, ArticleSearchOptions?: JUHUU.Article.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Search.Response>>;
749
+ translate(ArticleTranslateParams: JUHUU.Article.Translate.Params, ArticleTranslateOptions?: JUHUU.Article.Translate.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Translate.Response>>;
749
750
  }
750
751
 
751
752
  declare class ChatsService extends Service {
@@ -1399,6 +1400,16 @@ declare namespace JUHUU {
1399
1400
  articleArray: JUHUU.Article.Object[];
1400
1401
  };
1401
1402
  }
1403
+ namespace Translate {
1404
+ type Params = {
1405
+ articleId: string;
1406
+ languageCode: LanguageCode;
1407
+ };
1408
+ type Options = JUHUU.RequestOptions;
1409
+ type Response = {
1410
+ article: JUHUU.Article.Object;
1411
+ };
1412
+ }
1402
1413
  }
1403
1414
  namespace Chat {
1404
1415
  type Object = {