@ecodev/natural 58.0.2 → 58.0.3
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.
|
@@ -31,13 +31,29 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
31
31
|
protected readonly createMutation: DocumentNode | null;
|
|
32
32
|
protected readonly updateMutation: DocumentNode | null;
|
|
33
33
|
protected readonly deleteMutation: DocumentNode | null;
|
|
34
|
+
protected readonly createName: string | null;
|
|
35
|
+
protected readonly updateName: string | null;
|
|
36
|
+
protected readonly deleteName: string | null;
|
|
34
37
|
/**
|
|
35
38
|
* Store the creation mutations that are pending
|
|
36
39
|
*/
|
|
37
40
|
private readonly creatingCache;
|
|
38
41
|
protected readonly apollo: Apollo;
|
|
39
42
|
protected readonly naturalDebounceService: NaturalDebounceService;
|
|
40
|
-
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param name service and single object query name (eg. userForFront or user).
|
|
46
|
+
* @param oneQuery GraphQL query to fetch a single object from ID (eg. userForCrudQuery).
|
|
47
|
+
* @param allQuery GraphQL query to fetch a filtered list of objects (eg. usersForCrudQuery).
|
|
48
|
+
* @param createMutation GraphQL mutation to create an object.
|
|
49
|
+
* @param updateMutation GraphQL mutation to update an object.
|
|
50
|
+
* @param deleteMutation GraphQL mutation to delete a list of objects.
|
|
51
|
+
* @param plural list query name (eg. usersForFront or users).
|
|
52
|
+
* @param createName create object mutation name (eg. createUser).
|
|
53
|
+
* @param updateName update object mutation name (eg. updateUser).
|
|
54
|
+
* @param deleteName delete object mutation name (eg. deleteUsers).
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, oneQuery: DocumentNode | null, allQuery: DocumentNode | null, createMutation: DocumentNode | null, updateMutation: DocumentNode | null, deleteMutation: DocumentNode | null, plural?: string | null, createName?: string | null, updateName?: string | null, deleteName?: string | null);
|
|
41
57
|
/**
|
|
42
58
|
* List of individual fields validators
|
|
43
59
|
*/
|