@masterteam/properties 0.0.9-alpha.0 → 0.0.9
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
|
@@ -50,13 +50,13 @@ interface PropertyItem {
|
|
|
50
50
|
interface LookupDefinitionItem {
|
|
51
51
|
id: number;
|
|
52
52
|
key?: string;
|
|
53
|
-
|
|
53
|
+
title?: string;
|
|
54
54
|
[key: string]: unknown;
|
|
55
55
|
}
|
|
56
56
|
interface LookupDefinition {
|
|
57
57
|
id: number;
|
|
58
58
|
key: string;
|
|
59
|
-
|
|
59
|
+
title: string;
|
|
60
60
|
allowDelete: boolean;
|
|
61
61
|
allowManage: boolean;
|
|
62
62
|
allowEdit: boolean;
|
|
@@ -65,12 +65,12 @@ interface LookupDefinition {
|
|
|
65
65
|
}
|
|
66
66
|
interface GroupDefinition {
|
|
67
67
|
id: number;
|
|
68
|
-
|
|
68
|
+
title: string;
|
|
69
69
|
[key: string]: unknown;
|
|
70
70
|
}
|
|
71
71
|
interface LogDefinition {
|
|
72
72
|
id: number;
|
|
73
|
-
|
|
73
|
+
title: string;
|
|
74
74
|
[key: string]: unknown;
|
|
75
75
|
}
|
|
76
76
|
interface ConfigScope {
|
|
@@ -124,6 +124,9 @@ interface PropertiesStateModel extends LoadingStateShape<PropertiesLoadingName>
|
|
|
124
124
|
selectedProperty: PropertyItem | null;
|
|
125
125
|
moduleType: string | null;
|
|
126
126
|
moduleId: string | number | null;
|
|
127
|
+
parentModuleType?: string | null;
|
|
128
|
+
parentModuleId?: string | number | null;
|
|
129
|
+
parentPath?: string;
|
|
127
130
|
lastQueryParams: PropertiesQueryParams | null;
|
|
128
131
|
lookups: LookupDefinition[];
|
|
129
132
|
configTypeProperties: PropertyItem[];
|
|
@@ -187,9 +190,8 @@ declare class ResetApiConfiguration {
|
|
|
187
190
|
declare class GetPropertiesForConfigType {
|
|
188
191
|
readonly moduleType: string;
|
|
189
192
|
readonly moduleId: string | number;
|
|
190
|
-
readonly params?: PropertiesQueryParams | undefined;
|
|
191
193
|
static readonly type = "[Properties] Get By Config Type";
|
|
192
|
-
constructor(moduleType: string, moduleId: string | number
|
|
194
|
+
constructor(moduleType: string, moduleId: string | number);
|
|
193
195
|
}
|
|
194
196
|
declare class ResetConfigProperties {
|
|
195
197
|
static readonly type = "[Properties] Reset Config Properties";
|
|
@@ -219,8 +221,11 @@ declare class UpdateProperty {
|
|
|
219
221
|
declare class SetPropertiesModuleInfo {
|
|
220
222
|
readonly moduleType: string;
|
|
221
223
|
readonly moduleId: string | number;
|
|
224
|
+
readonly parentModuleType?: string | undefined;
|
|
225
|
+
readonly parentModuleId?: string | number | undefined;
|
|
226
|
+
readonly parentPath?: string | undefined;
|
|
222
227
|
static readonly type = "[Properties] Set Module Info";
|
|
223
|
-
constructor(moduleType: string, moduleId: string | number);
|
|
228
|
+
constructor(moduleType: string, moduleId: string | number, parentModuleType?: string | undefined, parentModuleId?: string | number | undefined, parentPath?: string | undefined);
|
|
224
229
|
}
|
|
225
230
|
declare class SetPropertyTypes {
|
|
226
231
|
readonly payload: any;
|
|
@@ -263,17 +268,14 @@ declare class PropertiesState {
|
|
|
263
268
|
static propertyById(state: PropertiesStateModel): (id: number | string) => PropertyItem | null;
|
|
264
269
|
getAll(ctx: StateContext<PropertiesStateModel>, action: GetProperties): rxjs.Observable<Response<PropertyItem[]> | null>;
|
|
265
270
|
getOne(ctx: StateContext<PropertiesStateModel>, action: GetProperty): rxjs.Observable<Response<PropertyItem> | null>;
|
|
266
|
-
getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<
|
|
271
|
+
getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<Response<LookupDefinition[]> | never[]>;
|
|
267
272
|
getGroups(ctx: StateContext<PropertiesStateModel>, _action: GetGroups): rxjs.Observable<GroupDefinition[]> | rxjs.Observable<never[] | Response<GroupDefinition[]>>;
|
|
268
273
|
getConfigAsType(ctx: StateContext<PropertiesStateModel>, action: GetConfigAsType): rxjs.Observable<ConfigScope[]> | rxjs.Observable<never[] | Response<ConfigScope[]>>;
|
|
269
274
|
getCountries(ctx: StateContext<PropertiesStateModel>, _action: GetCountries): rxjs.Observable<CountryDefinition[]>;
|
|
270
275
|
testApiConfiguration(ctx: StateContext<PropertiesStateModel>, action: TestApiConfiguration): rxjs.Observable<Response<ApiSchema> | null>;
|
|
271
276
|
resetApiConfiguration(ctx: StateContext<PropertiesStateModel>): void;
|
|
272
|
-
private resolveApiSchema;
|
|
273
|
-
private buildSchemaFromData;
|
|
274
|
-
private resolveValueType;
|
|
275
277
|
private mapSchemaToOptions;
|
|
276
|
-
getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<
|
|
278
|
+
getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<Response<PropertyItem[]> | never[]>;
|
|
277
279
|
resetConfigProperties(ctx: StateContext<PropertiesStateModel>): void;
|
|
278
280
|
resetConfigScopes(ctx: StateContext<PropertiesStateModel>): void;
|
|
279
281
|
resetSelectedProperty(ctx: StateContext<PropertiesStateModel>): void;
|
|
@@ -306,7 +308,7 @@ declare class PropertiesFacade {
|
|
|
306
308
|
delete(id: string | number): Observable<unknown>;
|
|
307
309
|
create(payload: PropertyPayload): Observable<unknown>;
|
|
308
310
|
update(id: string | number, payload: PropertyPayload): Observable<unknown>;
|
|
309
|
-
setModuleInfo(moduleType: string, moduleId: string | number): Observable<unknown>;
|
|
311
|
+
setModuleInfo(moduleType: string, moduleId: string | number, parentModuleType?: string, parentModuleId?: string | number, parentPath?: string): Observable<unknown>;
|
|
310
312
|
loadLookups(): Observable<unknown>;
|
|
311
313
|
loadGroups(): Observable<unknown>;
|
|
312
314
|
loadConfigAsType(viewType: string): Observable<unknown>;
|
|
@@ -314,7 +316,7 @@ declare class PropertiesFacade {
|
|
|
314
316
|
testApiConfiguration(payload: ApiTestPayload): Observable<unknown>;
|
|
315
317
|
resetApiConfiguration(): Observable<unknown>;
|
|
316
318
|
setPropertyTypes(propertyTypes: any): Observable<void>;
|
|
317
|
-
loadPropertiesForConfigType(moduleType: string, moduleId: string | number
|
|
319
|
+
loadPropertiesForConfigType(moduleType: string, moduleId: string | number): Observable<unknown>;
|
|
318
320
|
resetSelectedProperty(): Observable<unknown>;
|
|
319
321
|
resetConfigProperties(): Observable<unknown>;
|
|
320
322
|
resetConfigScopes(): Observable<unknown>;
|