@anzusystems/common-admin 0.0.46 → 0.0.48

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.
@@ -2776,6 +2776,30 @@ export declare const AIconGroup: DefineComponent<{
2776
2776
  secondaryText: string | null | undefined;
2777
2777
  }>;
2778
2778
 
2779
+ export declare const AJobDetailCommon: DefineComponent<{
2780
+ job: {
2781
+ type: PropType<JobBase<`job${string}`>>;
2782
+ required: true;
2783
+ };
2784
+ loading: {
2785
+ type: PropType<boolean | undefined>;
2786
+ required: false;
2787
+ default: boolean;
2788
+ };
2789
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
2790
+ job: {
2791
+ type: PropType<JobBase<`job${string}`>>;
2792
+ required: true;
2793
+ };
2794
+ loading: {
2795
+ type: PropType<boolean | undefined>;
2796
+ required: false;
2797
+ default: boolean;
2798
+ };
2799
+ }>>, {
2800
+ loading: boolean | undefined;
2801
+ }>;
2802
+
2779
2803
  export declare const AJobStatusChip: DefineComponent<{
2780
2804
  value: {
2781
2805
  type: PropType<JobStatus>;
@@ -3716,21 +3740,21 @@ export declare const isUndefined: (value: unknown) => value is undefined;
3716
3740
 
3717
3741
  export declare const isValidHTTPStatus: (statusCode: number) => boolean;
3718
3742
 
3719
- export declare interface Job<T extends JobResource = JobResource> extends AnzuUserAndTimeTrackingAware {
3743
+ export declare const JOB_RESOURCE_USER_DATA_DELETE = "jobUserDataDelete";
3744
+
3745
+ export declare interface JobBase<T extends JobBaseResource = JobBaseResource> extends AnzuUserAndTimeTrackingAware {
3720
3746
  readonly id: IntegerId;
3721
3747
  readonly status: JobStatus;
3722
3748
  readonly startedAt: DatetimeUTCNullable;
3723
3749
  readonly finishedAt: DatetimeUTCNullable;
3724
3750
  readonly lastBatchProcessedRecord: string;
3725
3751
  readonly batchProcessedIterationCount: number;
3726
- targetUserId: IntegerIdNullable;
3727
- anonymizeUser: boolean;
3728
3752
  readonly result: string;
3729
3753
  _resourceName: T;
3730
3754
  readonly _system: string;
3731
3755
  }
3732
3756
 
3733
- export declare type JobResource = 'jobUserDataDelete' | `job${string}`;
3757
+ export declare type JobBaseResource = typeof JOB_RESOURCE_USER_DATA_DELETE | `job${string}`;
3734
3758
 
3735
3759
  export declare enum JobStatus {
3736
3760
  Waiting = "waiting",
@@ -3741,6 +3765,12 @@ export declare enum JobStatus {
3741
3765
  Default = "waiting"
3742
3766
  }
3743
3767
 
3768
+ export declare interface JobUserDataDelete<T extends JobBaseResource = JobBaseResource> extends JobBase {
3769
+ targetUserId: IntegerIdNullable;
3770
+ anonymizeUser: boolean;
3771
+ _resourceName: T;
3772
+ }
3773
+
3744
3774
  declare type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
3745
3775
 
3746
3776
  declare type Kebab<T extends string, A extends string = ''> = T extends `${infer F}${infer R}` ? Kebab<R, `${A}${F extends Lowercase<F> ? '' : '-'}${Lowercase<F>}`> : A;
@@ -3958,10 +3988,11 @@ export declare const messagesEn: {
3958
3988
  };
3959
3989
  };
3960
3990
  job: {
3961
- meta: {
3962
- detail: string;
3963
- list: string;
3964
- create: string;
3991
+ filter: {
3992
+ id: string;
3993
+ status: string;
3994
+ startedAtFrom: string;
3995
+ startedAtUntil: string;
3965
3996
  };
3966
3997
  model: {
3967
3998
  id: string;
@@ -3976,6 +4007,9 @@ export declare const messagesEn: {
3976
4007
  jobResource: {
3977
4008
  jobUserDataDelete: string;
3978
4009
  };
4010
+ button: {
4011
+ create: string;
4012
+ };
3979
4013
  status: {
3980
4014
  waiting: string;
3981
4015
  processing: string;
@@ -4324,10 +4358,11 @@ export declare const messagesSk: {
4324
4358
  };
4325
4359
  };
4326
4360
  job: {
4327
- meta: {
4328
- detail: string;
4329
- list: string;
4330
- create: string;
4361
+ filter: {
4362
+ id: string;
4363
+ status: string;
4364
+ startedAtFrom: string;
4365
+ startedAtUntil: string;
4331
4366
  };
4332
4367
  model: {
4333
4368
  id: string;
@@ -4342,6 +4377,9 @@ export declare const messagesSk: {
4342
4377
  jobResource: {
4343
4378
  jobUserDataDelete: string;
4344
4379
  };
4380
+ button: {
4381
+ create: string;
4382
+ };
4345
4383
  status: {
4346
4384
  waiting: string;
4347
4385
  processing: string;
@@ -4758,6 +4796,11 @@ declare type UseCachedType = () => {
4758
4796
  addManualMinimal: any;
4759
4797
  };
4760
4798
 
4799
+ export declare function useCommonJobFactory(): {
4800
+ createBase: (resourceName: JobBaseResource, system: string) => JobBase;
4801
+ createUserDataDelete: (system: string) => JobUserDataDelete;
4802
+ };
4803
+
4761
4804
  export declare const useCommonVuetifyConfig: () => {
4762
4805
  commonAliases: () => {
4763
4806
  ABtnPrimary: any;
@@ -4799,6 +4842,10 @@ export declare const useCommonVuetifyConfig: () => {
4799
4842
  VCard: {
4800
4843
  variant: string;
4801
4844
  };
4845
+ VDialog: {
4846
+ noClickAnimation: boolean;
4847
+ persistent: boolean;
4848
+ };
4802
4849
  VProgressCircular: {
4803
4850
  color: string;
4804
4851
  };
@@ -4903,14 +4950,14 @@ export declare function useGrantOrigin(): {
4903
4950
 
4904
4951
  export { useI18n }
4905
4952
 
4906
- export declare function useJobApi<JobType extends Job = Job>(client: () => AxiosInstance, system: string): {
4953
+ export declare function useJobApi<JobType extends JobBase = JobBase>(client: () => AxiosInstance, system: string): {
4907
4954
  fetchJobList: (pagination: Pagination, filterBag: FilterBag) => Promise<JobType[]>;
4908
4955
  fetchJob: (id: number) => Promise<JobType>;
4909
4956
  createJob: (data: JobType) => Promise<JobType>;
4910
4957
  deleteJob: (id: number) => Promise<JobType>;
4911
4958
  };
4912
4959
 
4913
- export declare function useJobResource<T extends JobResource = JobResource>(customJobs?: ValueObjectOption<T>[]): {
4960
+ export declare function useJobBaseResource<T extends JobBaseResource = JobBaseResource>(customJobs?: ValueObjectOption<T>[]): {
4914
4961
  jobResourceOptions: Ref<{
4915
4962
  value: UnwrapRef<T>;
4916
4963
  title: string;