@masterteam/governance 0.0.18 → 0.0.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/governance",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/governance",
6
6
  "linkDirectory": false,
@@ -20,9 +20,9 @@
20
20
  "tailwindcss": "^4.2.2",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
22
  "@ngxs/store": "^20.1.0",
23
- "@masterteam/components": "^0.0.170",
24
- "@masterteam/forms": "^0.0.77",
25
- "@masterteam/icons": "^0.0.15"
23
+ "@masterteam/icons": "^0.0.15",
24
+ "@masterteam/components": "^0.0.171",
25
+ "@masterteam/forms": "^0.0.78"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -122,7 +122,7 @@ interface GovernanceViolationError {
122
122
  violations: GovernanceViolation[];
123
123
  }
124
124
  interface GovernanceModule {
125
- id: string;
125
+ id: number | string;
126
126
  key: string;
127
127
  name: Translatable;
128
128
  isActive: boolean;
@@ -147,6 +147,7 @@ interface GovernanceRequestSchema {
147
147
  interface GovernanceProperty {
148
148
  id: number;
149
149
  key: string;
150
+ normalizedKey?: string;
150
151
  name: Translatable;
151
152
  }
152
153
  interface GovernanceStateModel extends LoadingStateShape<GovernanceActionKey> {
@@ -303,6 +304,16 @@ interface Response<T> {
303
304
  cacheSession?: string;
304
305
  }
305
306
 
307
+ interface GovernanceCatalogPropertyDto {
308
+ id: number;
309
+ key?: string | null;
310
+ normalizedKey?: string | null;
311
+ label?: string | null;
312
+ name?: Translatable | string | null;
313
+ }
314
+ interface GovernancePropertyCatalogResponse {
315
+ properties?: GovernanceCatalogPropertyDto[] | null;
316
+ }
306
317
  declare class GovernanceState extends CrudStateBase<GovernanceRule, GovernanceStateModel, GovernanceActionKey> {
307
318
  private http;
308
319
  static getLevelId(state: GovernanceStateModel): number | null;
@@ -326,7 +337,7 @@ declare class GovernanceState extends CrudStateBase<GovernanceRule, GovernanceSt
326
337
  getModules(ctx: StateContext<GovernanceStateModel>): rxjs.Observable<Response<GovernanceModule[]>> | undefined;
327
338
  clearSelectedRule(ctx: StateContext<GovernanceStateModel>): void;
328
339
  getRequestSchemas(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetRequestSchemas): rxjs.Observable<Response<GovernanceRequestSchema[]>> | undefined;
329
- getProperties(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetProperties): rxjs.Observable<Response<GovernanceProperty[]>> | undefined;
340
+ getProperties(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetProperties): rxjs.Observable<Response<GovernancePropertyCatalogResponse>> | undefined;
330
341
  clearRequestSchemas(ctx: StateContext<GovernanceStateModel>): void;
331
342
  clearProperties(ctx: StateContext<GovernanceStateModel>): void;
332
343
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GovernanceState, never>;
@@ -456,7 +467,7 @@ declare class GovernanceRuleForm implements OnInit {
456
467
  readonly isLoadingRuleTypes: _angular_core.Signal<boolean>;
457
468
  readonly isAddingRule: _angular_core.Signal<boolean>;
458
469
  readonly isUpdatingRule: _angular_core.Signal<boolean>;
459
- readonly modules: _angular_core.Signal<_masterteam_governance.GovernanceModule[]>;
470
+ readonly modules: _angular_core.Signal<GovernanceModule[]>;
460
471
  readonly requestSchemas: _angular_core.Signal<_masterteam_governance.GovernanceRequestSchema[]>;
461
472
  readonly properties: _angular_core.Signal<_masterteam_governance.GovernanceProperty[]>;
462
473
  readonly wizardFormControl: FormControl<GovernanceRuleWizardFormState>;
@@ -515,6 +526,7 @@ declare class GovernanceRuleForm implements OnInit {
515
526
  private setWizardState;
516
527
  private resetWizardForm;
517
528
  private clearReferenceData;
529
+ private hasModuleOption;
518
530
  private saveCreate;
519
531
  private saveUpdate;
520
532
  private submitLegacyForm;