@solidstarters/solid-core 1.2.155 → 1.2.156

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 (41) hide show
  1. package/dist/dtos/create-list-of-values.dto.d.ts +2 -0
  2. package/dist/dtos/create-list-of-values.dto.d.ts.map +1 -1
  3. package/dist/dtos/create-list-of-values.dto.js +12 -1
  4. package/dist/dtos/create-list-of-values.dto.js.map +1 -1
  5. package/dist/dtos/update-list-of-values.dto.d.ts +2 -0
  6. package/dist/dtos/update-list-of-values.dto.d.ts.map +1 -1
  7. package/dist/dtos/update-list-of-values.dto.js +12 -1
  8. package/dist/dtos/update-list-of-values.dto.js.map +1 -1
  9. package/dist/entities/list-of-values.entity.d.ts +2 -0
  10. package/dist/entities/list-of-values.entity.d.ts.map +1 -1
  11. package/dist/entities/list-of-values.entity.js +7 -1
  12. package/dist/entities/list-of-values.entity.js.map +1 -1
  13. package/dist/mappers/list-of-values-mapper.d.ts +5 -0
  14. package/dist/mappers/list-of-values-mapper.d.ts.map +1 -0
  15. package/dist/mappers/list-of-values-mapper.js +28 -0
  16. package/dist/mappers/list-of-values-mapper.js.map +1 -0
  17. package/dist/seeders/module-metadata-seeder.service.js +1 -1
  18. package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
  19. package/dist/seeders/seed-data/solid-core-metadata.json +27 -137
  20. package/dist/services/list-of-values-metadata.service.d.ts +34 -0
  21. package/dist/services/list-of-values-metadata.service.d.ts.map +1 -0
  22. package/dist/services/list-of-values-metadata.service.js +213 -0
  23. package/dist/services/list-of-values-metadata.service.js.map +1 -0
  24. package/dist/solid-core.module.d.ts.map +1 -1
  25. package/dist/solid-core.module.js +6 -0
  26. package/dist/solid-core.module.js.map +1 -1
  27. package/dist/subscribers/list-of-values-metadata.subscriber.d.ts +18 -0
  28. package/dist/subscribers/list-of-values-metadata.subscriber.d.ts.map +1 -0
  29. package/dist/subscribers/list-of-values-metadata.subscriber.js +101 -0
  30. package/dist/subscribers/list-of-values-metadata.subscriber.js.map +1 -0
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/src/dtos/create-list-of-values.dto.ts +7 -0
  34. package/src/dtos/update-list-of-values.dto.ts +8 -1
  35. package/src/entities/list-of-values.entity.ts +5 -1
  36. package/src/mappers/list-of-values-mapper.ts +17 -0
  37. package/src/seeders/module-metadata-seeder.service.ts +1 -1
  38. package/src/seeders/seed-data/solid-core-metadata.json +27 -137
  39. package/src/services/list-of-values-metadata.service.ts +219 -0
  40. package/src/solid-core.module.ts +6 -0
  41. package/src/subscribers/list-of-values-metadata.subscriber.ts +115 -0
@@ -3642,6 +3642,23 @@
3642
3642
  "private": false,
3643
3643
  "encrypt": false,
3644
3644
  "isSystem": false
3645
+ },
3646
+ {
3647
+ "name": "module",
3648
+ "displayName": "Module",
3649
+ "type": "relation",
3650
+ "ormType": "integer",
3651
+ "required": false,
3652
+ "unique": false,
3653
+ "index": false,
3654
+ "private": false,
3655
+ "encrypt": false,
3656
+ "relationType": "many-to-one",
3657
+ "relationCreateInverse": false,
3658
+ "relationCoModelSingularName": "moduleMetadata",
3659
+ "relationModelModuleName": "solid-core",
3660
+ "relationCascade": "cascade",
3661
+ "isSystem": true
3645
3662
  }
3646
3663
  ]
3647
3664
  },
@@ -6459,73 +6476,6 @@
6459
6476
  ]
6460
6477
  }
6461
6478
  },
6462
- {
6463
- "name": "listOfValues-list-view",
6464
- "displayName": "List of Values list view",
6465
- "type": "list",
6466
- "context": "{}",
6467
- "moduleUserKey": "solid-core",
6468
- "modelUserKey": "listOfValues",
6469
- "layout": {
6470
- "type": "list",
6471
- "attrs": {
6472
- "pagination": true,
6473
- "pageSizeOptions": [
6474
- 10,
6475
- 25,
6476
- 50
6477
- ],
6478
- "enableGlobalSearch": true,
6479
- "create": true,
6480
- "edit": true,
6481
- "delete": true
6482
- },
6483
- "children": [
6484
- {
6485
- "type": "field",
6486
- "attrs": {
6487
- "name": "type",
6488
- "isSearchable": true
6489
- }
6490
- },
6491
- {
6492
- "type": "field",
6493
- "attrs": {
6494
- "name": "value",
6495
- "isSearchable": true
6496
- }
6497
- },
6498
- {
6499
- "type": "field",
6500
- "attrs": {
6501
- "name": "display",
6502
- "isSearchable": true
6503
- }
6504
- },
6505
- {
6506
- "type": "field",
6507
- "attrs": {
6508
- "name": "description",
6509
- "isSearchable": true
6510
- }
6511
- },
6512
- {
6513
- "type": "field",
6514
- "attrs": {
6515
- "name": "default",
6516
- "isSearchable": true
6517
- }
6518
- },
6519
- {
6520
- "type": "field",
6521
- "attrs": {
6522
- "name": "sequence",
6523
- "isSearchable": true
6524
- }
6525
- }
6526
- ]
6527
- }
6528
- },
6529
6479
  {
6530
6480
  "name": "listOfValues-form-view",
6531
6481
  "displayName": "List of Values form view",
@@ -6590,6 +6540,12 @@
6590
6540
  "attrs": {
6591
6541
  "name": "sequence"
6592
6542
  }
6543
+ },
6544
+ {
6545
+ "type": "field",
6546
+ "attrs": {
6547
+ "name": "module"
6548
+ }
6593
6549
  }
6594
6550
  ]
6595
6551
  }
@@ -6899,78 +6855,12 @@
6899
6855
  "name": "sequence",
6900
6856
  "isSearchable": true
6901
6857
  }
6902
- }
6903
- ]
6904
- }
6905
- },
6906
- {
6907
- "name": "listOfValues-form-view",
6908
- "displayName": "List of Values form view",
6909
- "type": "form",
6910
- "context": "{}",
6911
- "moduleUserKey": "solid-core",
6912
- "modelUserKey": "listOfValues",
6913
- "layout": {
6914
- "type": "form",
6915
- "attrs": {
6916
- "name": "form-1",
6917
- "label": "Solid List of Values Model",
6918
- "className": "grid"
6919
- },
6920
- "children": [
6858
+ },
6921
6859
  {
6922
- "type": "sheet",
6860
+ "type": "field",
6923
6861
  "attrs": {
6924
- "name": "sheet-1"
6925
- },
6926
- "children": [
6927
- {
6928
- "type": "group",
6929
- "attrs": {
6930
- "name": "group-1",
6931
- "label": "",
6932
- "className": "col-6"
6933
- },
6934
- "children": [
6935
- {
6936
- "type": "field",
6937
- "attrs": {
6938
- "name": "type"
6939
- }
6940
- },
6941
- {
6942
- "type": "field",
6943
- "attrs": {
6944
- "name": "value"
6945
- }
6946
- },
6947
- {
6948
- "type": "field",
6949
- "attrs": {
6950
- "name": "display"
6951
- }
6952
- },
6953
- {
6954
- "type": "field",
6955
- "attrs": {
6956
- "name": "description"
6957
- }
6958
- },
6959
- {
6960
- "type": "field",
6961
- "attrs": {
6962
- "name": "default"
6963
- }
6964
- },
6965
- {
6966
- "type": "field",
6967
- "attrs": {
6968
- "name": "sequence"
6969
- }
6970
- }
6971
- ]
6972
- }
6973
- ]
6862
+ "name": "module"
6863
+ }
6974
6864
  }
6975
6865
  ]
6976
6866
  }
@@ -0,0 +1,34 @@
1
+ import { DiscoveryService, ModuleRef } from "@nestjs/core";
2
+ import { EntityManager, Repository } from 'typeorm';
3
+ import { ConfigService } from '@nestjs/config';
4
+ import { CrudHelperService } from 'src/services/crud-helper.service';
5
+ import { CRUDService } from 'src/services/crud.service';
6
+ import { FileService } from 'src/services/file.service';
7
+ import { ModelMetadataService } from 'src/services/model-metadata.service';
8
+ import { ModuleMetadataService } from 'src/services/module-metadata.service';
9
+ import { ModuleMetadataHelperService } from 'src/helpers/module-metadata-helper.service';
10
+ import { ListOfValues } from 'src/entities/list-of-values.entity';
11
+ import { ListOfValuesMapper } from 'src/mappers/list-of-values-mapper';
12
+ export declare class ListOfValuesMetadataService extends CRUDService<ListOfValues> {
13
+ readonly modelMetadataService: ModelMetadataService;
14
+ readonly moduleMetadataService: ModuleMetadataService;
15
+ readonly configService: ConfigService;
16
+ readonly fileService: FileService;
17
+ readonly discoveryService: DiscoveryService;
18
+ readonly crudHelperService: CrudHelperService;
19
+ readonly listOfValuesMapper: ListOfValuesMapper;
20
+ readonly entityManager: EntityManager;
21
+ readonly repo: Repository<ListOfValues>;
22
+ readonly moduleRef: ModuleRef;
23
+ readonly moduleMetadataHelperService: ModuleMetadataHelperService;
24
+ private readonly logger;
25
+ constructor(modelMetadataService: ModelMetadataService, moduleMetadataService: ModuleMetadataService, configService: ConfigService, fileService: FileService, discoveryService: DiscoveryService, crudHelperService: CrudHelperService, listOfValuesMapper: ListOfValuesMapper, entityManager: EntityManager, repo: Repository<ListOfValues>, moduleRef: ModuleRef, moduleMetadataHelperService: ModuleMetadataHelperService);
26
+ saveListofValuesToConfig(entity: ListOfValues): Promise<void>;
27
+ updateListofValuesToConfig(oldentity: ListOfValues, entity: ListOfValues): Promise<void>;
28
+ deleteListOfValuesFromConfig(entity: ListOfValues): Promise<void>;
29
+ private getConfigFileDetails;
30
+ private writeToConfig;
31
+ private updateToConfig;
32
+ private deleteFromConfig;
33
+ }
34
+ //# sourceMappingURL=list-of-values-metadata.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-of-values-metadata.service.d.ts","sourceRoot":"","sources":["../../src/services/list-of-values-metadata.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,qBACa,2BAA4B,SAAQ,WAAW,CAAC,YAAY,CAAC;IAGtE,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB;IACnD,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB;IACrD,QAAQ,CAAC,aAAa,EAAE,aAAa;IACrC,QAAQ,CAAC,WAAW,EAAE,WAAW;IACjC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB;IAC3C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB;IAC7C,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB;IAE/C,QAAQ,CAAC,aAAa,EAAE,aAAa;IAErC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS;IAC7B,QAAQ,CAAC,2BAA2B,EAAE,2BAA2B;IAdnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;gBAEjD,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,kBAAkB,EAEtC,aAAa,EAAE,aAAa,EAE5B,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,EAC9B,SAAS,EAAE,SAAS,EACpB,2BAA2B,EAAE,2BAA2B;IAM7D,wBAAwB,CAAC,MAAM,EAAE,YAAY;IAuB7C,0BAA0B,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAwBxE,4BAA4B,CAAC,MAAM,EAAE,YAAY;YAyBzC,oBAAoB;YAWpB,aAAa;YAoCb,cAAc;YA0Bd,gBAAgB;CA8B/B"}
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
45
+ return function (target, key) { decorator(target, key, paramIndex); }
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.ListOfValuesMetadataService = void 0;
49
+ const common_1 = require("@nestjs/common");
50
+ const core_1 = require("@nestjs/core");
51
+ const typeorm_1 = require("@nestjs/typeorm");
52
+ const typeorm_2 = require("typeorm");
53
+ const config_1 = require("@nestjs/config");
54
+ const crud_helper_service_1 = require("./crud-helper.service");
55
+ const crud_service_1 = require("./crud.service");
56
+ const file_service_1 = require("./file.service");
57
+ const model_metadata_service_1 = require("./model-metadata.service");
58
+ const module_metadata_service_1 = require("./module-metadata.service");
59
+ const fs = __importStar(require("fs/promises"));
60
+ const module_metadata_helper_service_1 = require("../helpers/module-metadata-helper.service");
61
+ const list_of_values_entity_1 = require("../entities/list-of-values.entity");
62
+ const list_of_values_mapper_1 = require("../mappers/list-of-values-mapper");
63
+ let ListOfValuesMetadataService = class ListOfValuesMetadataService extends crud_service_1.CRUDService {
64
+ constructor(modelMetadataService, moduleMetadataService, configService, fileService, discoveryService, crudHelperService, listOfValuesMapper, entityManager, repo, moduleRef, moduleMetadataHelperService) {
65
+ super(modelMetadataService, moduleMetadataService, configService, fileService, discoveryService, crudHelperService, entityManager, repo, 'listOfValues', 'solid-core', moduleRef);
66
+ this.modelMetadataService = modelMetadataService;
67
+ this.moduleMetadataService = moduleMetadataService;
68
+ this.configService = configService;
69
+ this.fileService = fileService;
70
+ this.discoveryService = discoveryService;
71
+ this.crudHelperService = crudHelperService;
72
+ this.listOfValuesMapper = listOfValuesMapper;
73
+ this.entityManager = entityManager;
74
+ this.repo = repo;
75
+ this.moduleRef = moduleRef;
76
+ this.moduleMetadataHelperService = moduleMetadataHelperService;
77
+ this.logger = new common_1.Logger(this.constructor.name);
78
+ }
79
+ async saveListofValuesToConfig(entity) {
80
+ if (!entity) {
81
+ this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');
82
+ return;
83
+ }
84
+ const listofvalue = entity;
85
+ const moduleMetadata = entity.module;
86
+ if (!moduleMetadata) {
87
+ throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);
88
+ }
89
+ const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name);
90
+ if (!filePath || !metaData) {
91
+ throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);
92
+ }
93
+ await this.writeToConfig(metaData, listofvalue, filePath);
94
+ }
95
+ async updateListofValuesToConfig(oldentity, entity) {
96
+ if (!entity) {
97
+ this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');
98
+ return;
99
+ }
100
+ const oldlistofvalue = oldentity;
101
+ const listofvalue = entity;
102
+ const moduleMetadata = entity.module;
103
+ if (!moduleMetadata) {
104
+ throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);
105
+ }
106
+ const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name);
107
+ if (!filePath || !metaData) {
108
+ throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);
109
+ }
110
+ await this.updateToConfig(metaData, oldlistofvalue, listofvalue, filePath);
111
+ }
112
+ async deleteListOfValuesFromConfig(entity) {
113
+ if (!entity) {
114
+ this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');
115
+ return;
116
+ }
117
+ const listofvalue = entity;
118
+ const moduleMetadata = entity.module;
119
+ if (!moduleMetadata) {
120
+ throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);
121
+ }
122
+ const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name);
123
+ if (!filePath || !metaData) {
124
+ throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);
125
+ }
126
+ await this.deleteFromConfig(metaData, listofvalue, filePath);
127
+ }
128
+ async getConfigFileDetails(moduleName) {
129
+ const filePath = await this.moduleMetadataHelperService.getModuleMetadataFilePath(moduleName);
130
+ try {
131
+ await fs.access(filePath);
132
+ }
133
+ catch (error) {
134
+ throw new Error(`Configuration file not found for module: ${moduleName}`);
135
+ }
136
+ const metaData = await this.moduleMetadataHelperService.getModuleMetadataConfiguration(filePath);
137
+ return { filePath, metaData };
138
+ }
139
+ async writeToConfig(metaData, listofvalues, filePath) {
140
+ const dto = await this.listOfValuesMapper.toDto(listofvalues);
141
+ if (!Array.isArray(metaData.listOfValues)) {
142
+ metaData.listOfValues = [];
143
+ }
144
+ const existingIndex = metaData.listOfValues.findIndex((item) => item.type === dto.type &&
145
+ item.value === dto.value &&
146
+ item.module === dto.module);
147
+ if (existingIndex !== -1) {
148
+ metaData.listOfValues[existingIndex] = dto;
149
+ }
150
+ else {
151
+ if (metaData.listOfValues.length === 0) {
152
+ metaData.listOfValues.push(dto);
153
+ }
154
+ else {
155
+ metaData.listOfValues.unshift(dto);
156
+ }
157
+ }
158
+ const updatedContent = JSON.stringify(metaData, null, 2);
159
+ await fs.writeFile(filePath, updatedContent);
160
+ }
161
+ async updateToConfig(metaData, oldlistofvalues, listofvalues, filePath) {
162
+ const newvalue = await this.listOfValuesMapper.toDto(listofvalues);
163
+ const oldvalue = await this.listOfValuesMapper.toDto(oldlistofvalues);
164
+ if (!Array.isArray(metaData.listOfValues)) {
165
+ metaData.listOfValues = [];
166
+ }
167
+ const searchType = oldvalue.type || newvalue.type;
168
+ const searchValue = oldvalue.value || newvalue.value;
169
+ const searchModule = oldvalue.module || newvalue.module;
170
+ const existingIndex = metaData.listOfValues.findIndex((item) => item.type === searchType && item.value === searchValue && item.module === searchModule);
171
+ if (existingIndex !== -1) {
172
+ metaData.listOfValues[existingIndex] = newvalue;
173
+ }
174
+ const updatedContent = JSON.stringify(metaData, null, 2);
175
+ await fs.writeFile(filePath, updatedContent);
176
+ }
177
+ async deleteFromConfig(metaData, listofvalues, filePath) {
178
+ const dto = await this.listOfValuesMapper.toDto(listofvalues);
179
+ if (!Array.isArray(metaData.listOfValues)) {
180
+ metaData.listOfValues = [];
181
+ }
182
+ const existingIndex = metaData.listOfValues.findIndex((item) => item.type === dto.type &&
183
+ item.value === dto.value &&
184
+ item.module === dto.module);
185
+ if (existingIndex !== -1) {
186
+ metaData.listOfValues.splice(existingIndex, 1);
187
+ this.logger.debug(`Deleted LOV ${dto.type}:${dto.value} (module ${dto.module}) from config`);
188
+ }
189
+ else {
190
+ this.logger.warn(`LOV ${dto.type}:${dto.value} (module ${dto.module}) not found in config during delete`);
191
+ }
192
+ const updatedContent = JSON.stringify(metaData, null, 2);
193
+ await fs.writeFile(filePath, updatedContent);
194
+ }
195
+ };
196
+ exports.ListOfValuesMetadataService = ListOfValuesMetadataService;
197
+ exports.ListOfValuesMetadataService = ListOfValuesMetadataService = __decorate([
198
+ (0, common_1.Injectable)(),
199
+ __param(7, (0, typeorm_1.InjectEntityManager)()),
200
+ __param(8, (0, typeorm_1.InjectRepository)(list_of_values_entity_1.ListOfValues, 'default')),
201
+ __metadata("design:paramtypes", [model_metadata_service_1.ModelMetadataService,
202
+ module_metadata_service_1.ModuleMetadataService,
203
+ config_1.ConfigService,
204
+ file_service_1.FileService,
205
+ core_1.DiscoveryService,
206
+ crud_helper_service_1.CrudHelperService,
207
+ list_of_values_mapper_1.ListOfValuesMapper,
208
+ typeorm_2.EntityManager,
209
+ typeorm_2.Repository,
210
+ core_1.ModuleRef,
211
+ module_metadata_helper_service_1.ModuleMetadataHelperService])
212
+ ], ListOfValuesMetadataService);
213
+ //# sourceMappingURL=list-of-values-metadata.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-of-values-metadata.service.js","sourceRoot":"","sources":["../../src/services/list-of-values-metadata.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uCAA2D;AAC3D,6CAAwE;AACxE,qCAAoD;AAEpD,2CAA+C;AAC/C,+DAAqE;AACrE,iDAAwD;AACxD,iDAAwD;AACxD,qEAA2E;AAC3E,uEAA6E;AAG7E,gDAAkC;AAClC,8FAAyF;AAEzF,6EAAkE;AAClE,4EAAuE;AAKhE,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0BAAyB;IAExE,YACW,oBAA0C,EAC1C,qBAA4C,EAC5C,aAA4B,EAC5B,WAAwB,EACxB,gBAAkC,EAClC,iBAAoC,EACpC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aAAa,KAAK,CAAC,CAAC,EAAE,CAAC;YAEzB,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;YAC/C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,KAAK,YAAY,GAAG,CAAC,MAAM,eAAe,CAAC,CAAC;QAC/F,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,OAAO,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,KAAK,YAAY,GAAG,CAAC,MAAM,qCAAqC,CACxF,CAAC;QACJ,CAAC;QACD,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAE/C,CAAC;CAGF,CAAA;AApMY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;IAWR,WAAA,IAAA,6BAAmB,GAAE,CAAA;IAErB,WAAA,IAAA,0BAAgB,EAAC,oCAAY,EAAE,SAAS,CAAC,CAAA;qCATX,6CAAoB;QACnB,+CAAqB;QAC7B,sBAAa;QACf,0BAAW;QACN,uBAAgB;QACf,uCAAiB;QAChB,0CAAkB;QAEvB,uBAAa;QAEtB,oBAAU;QACL,gBAAS;QACS,4DAA2B;GAfxD,2BAA2B,CAoMvC","sourcesContent":["import { Injectable, Logger } from '@nestjs/common';\nimport { DiscoveryService, ModuleRef } from \"@nestjs/core\";\nimport { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';\nimport { EntityManager, Repository } from 'typeorm';\n\nimport { ConfigService } from '@nestjs/config';\nimport { CrudHelperService } from 'src/services/crud-helper.service';\nimport { CRUDService } from 'src/services/crud.service';\nimport { FileService } from 'src/services/file.service';\nimport { ModelMetadataService } from 'src/services/model-metadata.service';\nimport { ModuleMetadataService } from 'src/services/module-metadata.service';\n\n\nimport * as fs from 'fs/promises'; // Use the Promise-based version of fs for async/await\nimport { ModuleMetadataHelperService } from 'src/helpers/module-metadata-helper.service';\n\nimport { ListOfValues } from 'src/entities/list-of-values.entity';\nimport { ListOfValuesMapper } from 'src/mappers/list-of-values-mapper';\n\n\n\n@Injectable()\nexport class ListOfValuesMetadataService extends CRUDService<ListOfValues> {\n private readonly logger = new Logger(this.constructor.name);\n constructor(\n readonly modelMetadataService: ModelMetadataService,\n readonly moduleMetadataService: ModuleMetadataService,\n readonly configService: ConfigService,\n readonly fileService: FileService,\n readonly discoveryService: DiscoveryService,\n readonly crudHelperService: CrudHelperService,\n readonly listOfValuesMapper: ListOfValuesMapper,\n @InjectEntityManager()\n readonly entityManager: EntityManager,\n @InjectRepository(ListOfValues, 'default')\n readonly repo: Repository<ListOfValues>,\n readonly moduleRef: ModuleRef,\n readonly moduleMetadataHelperService: ModuleMetadataHelperService,\n\n ) {\n super(modelMetadataService, moduleMetadataService, configService, fileService, discoveryService, crudHelperService, entityManager, repo, 'listOfValues', 'solid-core', moduleRef);\n }\n\n async saveListofValuesToConfig(entity: ListOfValues) {\n if (!entity) {\n this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');\n return;\n }\n\n // Validate list of value details\n const listofvalue = entity as ListOfValues;\n const moduleMetadata = entity.module;\n if (!moduleMetadata) {\n throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);\n }\n\n // Get config file details\n const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name); // sting expected module name\n if (!filePath || !metaData) {\n throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);\n }\n\n // Write the listofvalue to the config file\n await this.writeToConfig(metaData, listofvalue, filePath);\n }\n\n async updateListofValuesToConfig(oldentity: ListOfValues, entity: ListOfValues) {\n if (!entity) {\n this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');\n return;\n }\n\n // Validate list of value details\n const oldlistofvalue = oldentity as ListOfValues;\n const listofvalue = entity as ListOfValues;\n const moduleMetadata = entity.module;\n if (!moduleMetadata) {\n throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);\n }\n\n // Get config file details\n const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name); // sting expected module name\n if (!filePath || !metaData) {\n throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);\n }\n\n // Write the listofvalue to the config file\n await this.updateToConfig(metaData, oldlistofvalue, listofvalue, filePath);\n }\n\n async deleteListOfValuesFromConfig(entity: ListOfValues) {\n if (!entity) {\n this.logger.debug('No entity found in the ListofValuesSubscriber saveListofvalueToConfig method');\n return;\n }\n\n // Validate list of value details\n const listofvalue = entity as ListOfValues;\n const moduleMetadata = entity.module;\n if (!moduleMetadata) {\n throw new Error(`Module metadata not found for listofvalue id ${entity.id}`);\n }\n\n // Get config file details\n const { filePath, metaData } = await this.getConfigFileDetails(moduleMetadata.name); // sting expected module name\n if (!filePath || !metaData) {\n throw new Error(`Configuration details not found for module: ${moduleMetadata.name}`);\n }\n\n // delete the listofvalue to the config file\n await this.deleteFromConfig(metaData, listofvalue, filePath);\n }\n\n\n\n private async getConfigFileDetails(moduleName: string): Promise<{ filePath: string; metaData: any }> {\n const filePath = await this.moduleMetadataHelperService.getModuleMetadataFilePath(moduleName);\n try {\n await fs.access(filePath);\n } catch (error) {\n throw new Error(`Configuration file not found for module: ${moduleName}`);\n }\n const metaData = await this.moduleMetadataHelperService.getModuleMetadataConfiguration(filePath);\n return { filePath, metaData };\n }\n\n private async writeToConfig(metaData: any, listofvalues: ListOfValues, filePath: string) {\n const dto = await this.listOfValuesMapper.toDto(listofvalues);\n\n if (!Array.isArray(metaData.listOfValues)) {\n metaData.listOfValues = [];\n }\n\n // Match by type + value + module\n const existingIndex = metaData.listOfValues.findIndex(\n (item: { type: string; value: string; module: number }) =>\n item.type === dto.type &&\n item.value === dto.value &&\n item.module === dto.module\n );\n\n if (existingIndex !== -1) {\n // Replace existing entry\n metaData.listOfValues[existingIndex] = dto;\n } else {\n // Insert new entry\n // metaData.listOfValues.unshift(dto);\n\n if (metaData.listOfValues.length === 0) {\n // Case 1: Empty array → add first item\n metaData.listOfValues.push(dto);\n } else {\n // Case 2: Insert new item right after index 0\n metaData.listOfValues.unshift(dto);\n }\n\n }\n\n const updatedContent = JSON.stringify(metaData, null, 2);\n await fs.writeFile(filePath, updatedContent);\n }\n\n private async updateToConfig(metaData: any, oldlistofvalues: ListOfValues, listofvalues: ListOfValues, filePath: string) {\n const newvalue = await this.listOfValuesMapper.toDto(listofvalues);\n const oldvalue = await this.listOfValuesMapper.toDto(oldlistofvalues);\n\n if (!Array.isArray(metaData.listOfValues)) {\n metaData.listOfValues = [];\n }\n\n const searchType = oldvalue.type || newvalue.type;\n const searchValue = oldvalue.value || newvalue.value;\n const searchModule = oldvalue.module || newvalue.module;\n\n const existingIndex = metaData.listOfValues.findIndex(\n (item: { type: string; value: string; module: number }) =>\n item.type === searchType && item.value === searchValue && item.module === searchModule\n );\n if (existingIndex !== -1) {\n // Replace existing match\n metaData.listOfValues[existingIndex] = newvalue;\n }\n\n const updatedContent = JSON.stringify(metaData, null, 2);\n await fs.writeFile(filePath, updatedContent);\n }\n\n\n private async deleteFromConfig(metaData: any, listofvalues: ListOfValues, filePath: string) {\n const dto = await this.listOfValuesMapper.toDto(listofvalues);\n\n if (!Array.isArray(metaData.listOfValues)) {\n metaData.listOfValues = [];\n }\n\n // Match by type + value + module\n const existingIndex = metaData.listOfValues.findIndex(\n (item: { type: string; value: string; module: number }) =>\n item.type === dto.type &&\n item.value === dto.value &&\n item.module === dto.module\n );\n\n if (existingIndex !== -1) {\n // Remove the item\n metaData.listOfValues.splice(existingIndex, 1);\n this.logger.debug(`Deleted LOV ${dto.type}:${dto.value} (module ${dto.module}) from config`);\n } else {\n this.logger.warn(\n `LOV ${dto.type}:${dto.value} (module ${dto.module}) not found in config during delete`\n );\n }\n const updatedContent = JSON.stringify(metaData, null, 2);\n await fs.writeFile(filePath, updatedContent);\n\n }\n\n\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"solid-core.module.d.ts","sourceRoot":"","sources":["../src/solid-core.module.ts"],"names":[],"mappings":"AAqRA,qBA4Wa,eAAe;CAAI"}
1
+ {"version":3,"file":"solid-core.module.d.ts","sourceRoot":"","sources":["../src/solid-core.module.ts"],"names":[],"mappings":"AAwRA,qBA+Wa,eAAe;CAAI"}
@@ -258,6 +258,9 @@ const noops_entity_computed_field_provider_service_1 = require("./services/compu
258
258
  const scheduled_job_repository_1 = require("./repository/scheduled-job.repository");
259
259
  const scheduled_job_subscriber_1 = require("./subscribers/scheduled-job.subscriber");
260
260
  const alpha_num_external_id_computed_field_provider_1 = require("./services/computed-fields/entity/alpha-num-external-id-computed-field-provider");
261
+ const list_of_values_mapper_1 = require("./mappers/list-of-values-mapper");
262
+ const list_of_values_metadata_subscriber_1 = require("./subscribers/list-of-values-metadata.subscriber");
263
+ const list_of_values_metadata_service_1 = require("./services/list-of-values-metadata.service");
261
264
  const mail_factory_1 = require("./factories/mail.factory");
262
265
  const TwilioSMSService_1 = require("./services/sms/TwilioSMSService");
263
266
  const poller_service_1 = require("./services/poller.service");
@@ -572,6 +575,9 @@ exports.SolidCoreModule = SolidCoreModule = __decorate([
572
575
  scheduled_job_repository_1.ScheduledJobRepository,
573
576
  scheduled_job_subscriber_1.ScheduledJobSubscriber,
574
577
  alpha_num_external_id_computed_field_provider_1.AlphaNumExternalIdComputationProvider,
578
+ list_of_values_metadata_service_1.ListOfValuesMetadataService,
579
+ list_of_values_metadata_subscriber_1.ListOfValuesMetadataSubscriber,
580
+ list_of_values_mapper_1.ListOfValuesMapper,
575
581
  mail_factory_1.MailFactory,
576
582
  chatter_message_repository_1.ChatterMessageRepository,
577
583
  chatter_message_details_repository_1.ChatterMessageDetailsRepository,