runlify 0.0.490 → 0.0.492

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.
Files changed (25) hide show
  1. package/build/projectsGeneration/builders/BaseSavableEntityBuilder.js +36 -9
  2. package/build/projectsGeneration/builders/CatalogBuilder.js +2 -7
  3. package/build/projectsGeneration/builders/DocumentBuilder.js +19 -22
  4. package/build/projectsGeneration/builders/InfoRegistryBuilder.js +13 -8
  5. package/build/projectsGeneration/builders/SumRegistryBuilder.js +9 -11
  6. package/build/projectsGeneration/builders/buildedTypes.js +1 -1
  7. package/build/projectsGeneration/builders/fields/BaseFieldBuilder.js +8 -1
  8. package/build/projectsGeneration/dataForTests.js +2 -1
  9. package/build/projectsGeneration/defaultCatalogs/addElasticSearch.js +2 -2
  10. package/build/projectsGeneration/generators/fileTemplates/back/environment/gitlabCi.js +3 -3
  11. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/class.js +2 -2
  12. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/config.js +4 -3
  13. package/build/projectsGeneration/generators/fileTemplates/ui/environment/gitlabCi.js +3 -3
  14. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityEdit/DefaultEntityEdit.js +22 -21
  15. package/build/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.js +2 -2
  16. package/build/projectsGeneration/links/getLinksFromExternalEntities.spec.js +2 -20
  17. package/build/projectsGeneration/links/getLinksOfEntities.spec.js +23 -126
  18. package/build/projectsGeneration/links/getLinksToExternalEntities.spec.js +2 -20
  19. package/build/types/projectsGeneration/builders/BaseSavableEntityBuilder.d.ts +6 -3
  20. package/build/types/projectsGeneration/builders/DocumentBuilder.d.ts +1 -1
  21. package/build/types/projectsGeneration/builders/InfoRegistryBuilder.d.ts +1 -0
  22. package/build/types/projectsGeneration/builders/SumRegistryBuilder.d.ts +1 -0
  23. package/build/types/projectsGeneration/builders/buildedTypes.d.ts +2 -1
  24. package/build/types/projectsGeneration/builders/fields/BaseFieldBuilder.d.ts +2 -0
  25. package/package.json +1 -1
@@ -14,6 +14,6 @@ declare class DocumentBuilder extends BaseSavableEntityBuilder {
14
14
  singular?: string;
15
15
  plural?: string;
16
16
  }): DocumentBuilder;
17
- setSharded(uniqKeys?: string[]): this;
17
+ setSharded(value?: boolean): this;
18
18
  }
19
19
  export default DocumentBuilder;
@@ -41,4 +41,5 @@ export declare class InfoRegistryBuilder extends BaseSavableEntityBuilder {
41
41
  singular?: string;
42
42
  plural?: string;
43
43
  }): InfoRegistryBuilder;
44
+ getUniqueConstraints(): string[][];
44
45
  }
@@ -20,6 +20,7 @@ declare class SumRegistryBuilder extends BaseSavableEntityBuilder {
20
20
  }, options?: any);
21
21
  getDimension(name: string): FieldBuilder;
22
22
  getResource(name: string): FieldBuilder;
23
+ getUniqueConstraints(): string[][];
23
24
  build(): SumRegistry;
24
25
  addField(_: string, __?: string, ___?: {
25
26
  isTitleField?: boolean;
@@ -51,6 +51,7 @@ export declare type BaseField = {
51
51
  defaultDbValue: DefaultDbValue;
52
52
  defaultValueExpression?: string;
53
53
  defaultBackendValueExpression?: string;
54
+ sharded: boolean;
54
55
  };
55
56
  declare type ScalarBaseField = BaseField & {
56
57
  category: 'scalar';
@@ -175,7 +176,7 @@ export declare type BaseSavableEntity = BaseEntity & {
175
176
  plural: string;
176
177
  }>;
177
178
  externalSearchName: string | undefined;
178
- shardUniqKeys: string[] | null;
179
+ sharded: boolean;
179
180
  isExternalSearch: boolean;
180
181
  };
181
182
  export declare type Report = BaseEntity & {
@@ -24,6 +24,7 @@ export declare abstract class BaseFieldBuilder {
24
24
  showInCreate: boolean;
25
25
  showInEdit: boolean;
26
26
  showInShow: boolean;
27
+ sharded: boolean;
27
28
  constructor(name: string, defaultLanguage: string, title?: string);
28
29
  build(): BaseField;
29
30
  setName(name: string): this;
@@ -49,4 +50,5 @@ export declare abstract class BaseFieldBuilder {
49
50
  setDefaultDbValue(defaultDbValue: DefaultDbValue): this;
50
51
  setRequired(value?: boolean): this;
51
52
  setNotRequired(): this;
53
+ setSharded(value?: boolean): this;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runlify",
3
- "version": "0.0.490",
3
+ "version": "0.0.492",
4
4
  "description": "runlify CLI",
5
5
  "private": false,
6
6
  "main": "build/index.js",