@dataclouder/ngx-core 0.1.36 → 0.1.38

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/index.d.ts CHANGED
@@ -11,11 +11,11 @@ import { Observable } from 'rxjs';
11
11
  import * as _dataclouder_ngx_core from '@dataclouder/ngx-core';
12
12
 
13
13
  declare class EmptyStateComponent {
14
- headingText: string;
15
- subHeadingText: string;
16
- readonly mainIconSrcString: i0.InputSignal<string>;
14
+ headingText: i0.InputSignal<string>;
15
+ subHeadingText: i0.InputSignal<string>;
16
+ mainIconSrcString: i0.InputSignal<string>;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "dc-empty-state", never, { "headingText": { "alias": "headingText"; "required": false; }; "subHeadingText": { "alias": "subHeadingText"; "required": false; }; "mainIconSrcString": { "alias": "mainIconSrcString"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "dc-empty-state", never, { "headingText": { "alias": "headingText"; "required": false; "isSignal": true; }; "subHeadingText": { "alias": "subHeadingText"; "required": false; "isSignal": true; }; "mainIconSrcString": { "alias": "mainIconSrcString"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
19
19
  }
20
20
 
21
21
  interface SortOption {
@@ -430,6 +430,13 @@ declare class DcLearnableFormComponent {
430
430
  static ɵcmp: i0.ɵɵComponentDeclaration<DcLearnableFormComponent, "dc-learnable-form", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
431
431
  }
432
432
 
433
+ declare const AppHttpCode: {
434
+ GoodRefreshToken: number;
435
+ GoodPlanExpired: number;
436
+ ErrorRefreshToken: number;
437
+ GoodWelcome: number;
438
+ ErrorAndLogout: number;
439
+ };
433
440
  /**
434
441
  * Interface for HTTP error responses
435
442
  */
@@ -597,6 +604,7 @@ declare class HttpCoreService {
597
604
  deleteObservable<T = DeletedData>(service: string, host?: string): Observable<T>;
598
605
  /**
599
606
  * Upload a file to the specified service
607
+ * @Deprecated use postFile
600
608
  * @param service The service endpoint
601
609
  * @param file The file to upload
602
610
  * @param metadata Optional metadata to send with the file
@@ -604,6 +612,20 @@ declare class HttpCoreService {
604
612
  * @returns A promise with the response
605
613
  */
606
614
  uploadFile<T = any>(service: string, file: Blob, metadata?: any, host?: string): Promise<T>;
615
+ /**
616
+ * Upload a file to the specified service
617
+ * @param service The service endpoint
618
+ * @param file The file to upload
619
+ * @param metadata Optional metadata to send with the file
620
+ * @param host The host to use (primary or secondary)
621
+ * @returns A promise with the response
622
+ */
623
+ postFile<T = any>({ service, file, metadata, host }: {
624
+ service: string;
625
+ file: Blob;
626
+ metadata?: any;
627
+ host?: string;
628
+ }): Promise<T>;
607
629
  /**
608
630
  * Download a file from the specified service
609
631
  * @param service The service endpoint
@@ -637,7 +659,7 @@ declare class HttpCoreService {
637
659
  * @param error The error to handle
638
660
  * @returns An observable that throws the error
639
661
  */
640
- private handleRequestError;
662
+ protected handleRequestError(error: HttpErrorResponse): Observable<never>;
641
663
  /**
642
664
  * Handle an error from a blob request
643
665
  * @param error The error to handle
@@ -672,6 +694,7 @@ declare abstract class EntityCommunicationService<T> {
672
694
  findOne(id: string): Promise<T>;
673
695
  createOrUpdate(entity: Partial<T>): Promise<T>;
674
696
  query(filterConfig: FiltersConfig): Promise<IFilterQueryResponse<T>>;
697
+ update(id: string, update: any): Promise<T>;
675
698
  partialUpdate(id: string, partialUpdates: Partial<T>): Promise<T>;
676
699
  remove(id: string): Promise<void>;
677
700
  clone(id: string, overrides?: Partial<T>): Promise<T>;
@@ -874,6 +897,7 @@ declare class UiStateService {
874
897
  interface IAppConfig {
875
898
  version: string;
876
899
  envName: string;
900
+ projectName: string;
877
901
  production: boolean;
878
902
  backendPythonUrl: string;
879
903
  backendNodeUrl: string;
@@ -907,6 +931,12 @@ declare class AppConfigService {
907
931
  static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
908
932
  }
909
933
 
934
+ declare class AudioNotificationService {
935
+ playFinishNotification(): void;
936
+ static ɵfac: i0.ɵɵFactoryDeclaration<AudioNotificationService, never>;
937
+ static ɵprov: i0.ɵɵInjectableDeclaration<AudioNotificationService>;
938
+ }
939
+
910
940
  interface ILangTranslation {
911
941
  en: string;
912
942
  es: string;
@@ -916,6 +946,7 @@ interface ILanguageData {
916
946
  nativeName: string;
917
947
  flag: string;
918
948
  code: string;
949
+ defaultLocale: string;
919
950
  i: number;
920
951
  llmKnowledge: number;
921
952
  countries: string[];
@@ -926,17 +957,50 @@ interface ILanguageData {
926
957
  releaseDate?: string;
927
958
  }
928
959
  declare const LANGUAGES: Record<string, ILanguageData>;
929
- declare function getLangDesc(langCode: string, lang: string): string;
960
+ declare function getLangDesc(langCode: string, lang?: string): string;
930
961
  declare function getSupportedLanguageOptions(lang?: 'es' | 'en'): {
931
962
  value: string;
932
963
  label: string;
933
964
  }[];
934
965
 
966
+ declare enum MoodState {
967
+ HAPPY = "happy",
968
+ SAD = "sad",
969
+ ANGRY = "angry",
970
+ FEAR = "fear",
971
+ SURPRISED = "surprised",
972
+ DISGUSTED = "disgusted",
973
+ PROUD = "proud",
974
+ ASHAMED = "ashamed",
975
+ GUILTY = "guilty",
976
+ JEALOUS = "jealous",
977
+ LOVE = "love",
978
+ CONTEMPT = "contempt",
979
+ COMIC = "comic",
980
+ BLUSHING = "blushing",
981
+ CONFUSED = "confused",
982
+ CURIOUS = "curious",
983
+ BORED = "bored",
984
+ FRUSTRATED = "frustrated",
985
+ OVERWHELMED = "overwhelmed",
986
+ FOCUSED = "focused",
987
+ CHALLENGE = "challenge",
988
+ SERIOUS = "serious",
989
+ SLEEPY = "sleepy",
990
+ HORNY = "horny",
991
+ ANXIOUS = "anxious",
992
+ RELAXED = "relaxed"
993
+ }
935
994
  declare const MoodStateOptions: {
936
- value: string;
995
+ value: MoodState;
937
996
  label: string;
938
997
  emoji: string;
939
998
  }[];
940
999
 
941
- export { APP_CONFIG, AppConfigService, AudioSpeed, AudioSpeedReverse, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, EModelQuality, EmptyStateComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, ModelQualityOptions, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
1000
+ declare const CharacterEventActions: {
1001
+ value: string;
1002
+ label: string;
1003
+ }[];
1004
+
1005
+ export { APP_CONFIG, AppConfigService, AppHttpCode, AudioNotificationService, AudioSpeed, AudioSpeedReverse, CharacterEventActions, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, EModelQuality, EmptyStateComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, ModelQualityOptions, MoodState, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
942
1006
  export type { ConfirmOptions, DeleteHttpParams, DeletedData, FiltersConfig, GetHttpParams, HttpCoreConfig, HttpCoreError, IAppConfig, IAuditable, ICustomFilter, IExtensionable, IFilterQueryResponse, ILangTranslation, ILanguageData, ILearnable, IManageable, IReactable, LearnableForm, ListFilterBarOptions, OnActionEvent, PColumn, PostHttpParams, PromptOptions, PutHttpParams, SortOption, ToastData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-core",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "Angular core components library for DataClouder applications, only for internal use",
5
5
  "author": {
6
6
  "name": "dataclouder",