@servicelabsco/slabs-access-manager 0.1.238 → 0.1.240
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/dist/access/controllers/bulk.upload.controller.d.ts +8 -2
- package/dist/access/controllers/bulk.upload.controller.js +55 -5
- package/dist/access/controllers/bulk.upload.controller.js.map +1 -1
- package/dist/access/controllers/bulk.upload.item.controller.d.ts +2 -2
- package/dist/access/controllers/bulk.upload.item.controller.js +6 -4
- package/dist/access/controllers/bulk.upload.item.controller.js.map +1 -1
- package/dist/access/dtos/bulk.upload.item.list.filter.dto.d.ts +1 -0
- package/dist/access/dtos/bulk.upload.item.list.filter.dto.js +6 -0
- package/dist/access/dtos/bulk.upload.item.list.filter.dto.js.map +1 -1
- package/dist/access/dtos/developer.mode.set.listing.dto.d.ts +3 -0
- package/dist/access/dtos/developer.mode.set.listing.dto.js +17 -0
- package/dist/access/dtos/developer.mode.set.listing.dto.js.map +1 -1
- package/dist/access/entities/listing.column.entity.d.ts +1 -0
- package/dist/access/entities/listing.column.entity.js +4 -0
- package/dist/access/entities/listing.column.entity.js.map +1 -1
- package/dist/access/es6.classes.d.ts +1 -1
- package/dist/access/libraries/process.bulk.upload.item.list.d.ts +5 -5
- package/dist/access/libraries/process.bulk.upload.item.list.js +12 -12
- package/dist/access/libraries/process.bulk.upload.item.list.js.map +1 -1
- package/dist/migrations/1750401405969-AddIsCodeFilterUtlListingColumnsTable.d.ts +5 -0
- package/dist/migrations/1750401405969-AddIsCodeFilterUtlListingColumnsTable.js +15 -0
- package/dist/migrations/1750401405969-AddIsCodeFilterUtlListingColumnsTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { UploadService } from '@servicelabsco/nestjs-utility-services';
|
|
2
2
|
import { DocumentFileUploadDto } from '../../accessUtility/dtos/document.file.upload.dto';
|
|
3
|
+
import { BulkDefinitionLoadEntity } from '../../accessUtility/entities/bulk.definition.load.entity';
|
|
4
|
+
import { BulkUploadColumnEntity } from '../../accessUtility/entities/bulk.upload.column.entity';
|
|
3
5
|
import { BulkUploadEntity } from '../../accessUtility/entities/bulk.upload.entity';
|
|
4
6
|
import { BulkUploadItemEntity } from '../../accessUtility/entities/bulk.upload.item.entity';
|
|
5
7
|
import { BulkUploadService } from '../../accessUtility/services/bulk.upload.service';
|
|
8
|
+
import { BulkUploadItemListFilterDto } from '../dtos/bulk.upload.item.list.filter.dto';
|
|
9
|
+
import { BulkUploadListFilterDto } from '../dtos/bulk.upload.list.filter.dto';
|
|
6
10
|
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
7
|
-
import { ListingService } from '../services/listing.service';
|
|
8
11
|
import { AccessBusinessService } from '../services/access.business.service';
|
|
9
|
-
import {
|
|
12
|
+
import { ListingService } from '../services/listing.service';
|
|
10
13
|
export declare class BulkUploadController {
|
|
11
14
|
private readonly accessBusinessService;
|
|
12
15
|
private readonly uploadService;
|
|
@@ -21,5 +24,8 @@ export declare class BulkUploadController {
|
|
|
21
24
|
file: any;
|
|
22
25
|
}>;
|
|
23
26
|
setTemplate(params: BusinessParamDto, body: DocumentFileUploadDto): Promise<BulkUploadEntity>;
|
|
27
|
+
summary(params: BusinessParamDto): Promise<BulkDefinitionLoadEntity[]>;
|
|
28
|
+
getColumns(params: BusinessParamDto): Promise<BulkUploadColumnEntity[]>;
|
|
29
|
+
getItems(params: BusinessParamDto, body: BulkUploadItemListFilterDto): Promise<import("..").ListResponseDto>;
|
|
24
30
|
showLog(params: BusinessParamDto): Promise<BulkUploadItemEntity[]>;
|
|
25
31
|
}
|
|
@@ -15,18 +15,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.BulkUploadController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
18
19
|
const document_file_upload_dto_1 = require("../../accessUtility/dtos/document.file.upload.dto");
|
|
19
20
|
const bulk_definition_entity_1 = require("../../accessUtility/entities/bulk.definition.entity");
|
|
21
|
+
const bulk_definition_load_entity_1 = require("../../accessUtility/entities/bulk.definition.load.entity");
|
|
22
|
+
const bulk_upload_column_entity_1 = require("../../accessUtility/entities/bulk.upload.column.entity");
|
|
20
23
|
const bulk_upload_entity_1 = require("../../accessUtility/entities/bulk.upload.entity");
|
|
21
24
|
const bulk_upload_item_entity_1 = require("../../accessUtility/entities/bulk.upload.item.entity");
|
|
25
|
+
const generate_bulk_upload_sheet_1 = require("../../accessUtility/libraries/generate.bulk.upload.sheet");
|
|
22
26
|
const bulk_upload_service_1 = require("../../accessUtility/services/bulk.upload.service");
|
|
23
|
-
const
|
|
24
|
-
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
25
|
-
const listing_service_1 = require("../services/listing.service");
|
|
26
|
-
const access_business_service_1 = require("../services/access.business.service");
|
|
27
|
+
const bulk_upload_item_list_filter_dto_1 = require("../dtos/bulk.upload.item.list.filter.dto");
|
|
27
28
|
const bulk_upload_list_filter_dto_1 = require("../dtos/bulk.upload.list.filter.dto");
|
|
29
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
30
|
+
const process_bulk_upload_item_list_1 = require("../libraries/process.bulk.upload.item.list");
|
|
28
31
|
const process_bulk_upload_list_1 = require("../libraries/process.bulk.upload.list");
|
|
29
|
-
const
|
|
32
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
33
|
+
const listing_service_1 = require("../services/listing.service");
|
|
30
34
|
let BulkUploadController = class BulkUploadController {
|
|
31
35
|
constructor(accessBusinessService, uploadService, bulkUploadService, listingService) {
|
|
32
36
|
this.accessBusinessService = accessBusinessService;
|
|
@@ -68,6 +72,30 @@ let BulkUploadController = class BulkUploadController {
|
|
|
68
72
|
const business = await this.accessBusinessService.validateAccess();
|
|
69
73
|
return this.bulkUploadService.setUpload(business, params.id, body);
|
|
70
74
|
}
|
|
75
|
+
async summary(params) {
|
|
76
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
77
|
+
const upload = await bulk_upload_entity_1.BulkUploadEntity.findOne({ where: { business_id: business.id, id: params.id } });
|
|
78
|
+
if (!upload)
|
|
79
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
80
|
+
return bulk_definition_load_entity_1.BulkDefinitionLoadEntity.find({ where: { definition_id: upload.definition_id }, relations: ['type'] });
|
|
81
|
+
}
|
|
82
|
+
async getColumns(params) {
|
|
83
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
84
|
+
const upload = await bulk_upload_entity_1.BulkUploadEntity.findOne({ where: { business_id: business.id, id: params.id } });
|
|
85
|
+
if (!upload)
|
|
86
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
87
|
+
return bulk_upload_column_entity_1.BulkUploadColumnEntity.find({
|
|
88
|
+
where: { bulk_type_id: params.second_id, is_key_column: true },
|
|
89
|
+
relations: ['column_type', 'reference_column'],
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
async getItems(params, body) {
|
|
93
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
94
|
+
const upload = await bulk_upload_entity_1.BulkUploadEntity.findOne({ where: { business_id: business.id, id: params.id } });
|
|
95
|
+
if (!upload)
|
|
96
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
97
|
+
return new process_bulk_upload_item_list_1.ProcessBulkUploadItemList(this.listingService, upload).process(body);
|
|
98
|
+
}
|
|
71
99
|
async showLog(params) {
|
|
72
100
|
const business = await this.accessBusinessService.validateAccess();
|
|
73
101
|
const r = await bulk_upload_entity_1.BulkUploadEntity.findOne({ where: { business_id: business.id, id: params.id }, relations: ['type'] });
|
|
@@ -124,6 +152,28 @@ __decorate([
|
|
|
124
152
|
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, document_file_upload_dto_1.DocumentFileUploadDto]),
|
|
125
153
|
__metadata("design:returntype", Promise)
|
|
126
154
|
], BulkUploadController.prototype, "setTemplate", null);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, common_1.Get)(':id/get-types'),
|
|
157
|
+
__param(0, (0, common_1.Param)()),
|
|
158
|
+
__metadata("design:type", Function),
|
|
159
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
160
|
+
__metadata("design:returntype", Promise)
|
|
161
|
+
], BulkUploadController.prototype, "summary", null);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, common_1.Get)(':id/get-columns/:second_id'),
|
|
164
|
+
__param(0, (0, common_1.Param)()),
|
|
165
|
+
__metadata("design:type", Function),
|
|
166
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
167
|
+
__metadata("design:returntype", Promise)
|
|
168
|
+
], BulkUploadController.prototype, "getColumns", null);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, common_1.Post)(':id/search-items'),
|
|
171
|
+
__param(0, (0, common_1.Param)()),
|
|
172
|
+
__param(1, (0, common_1.Body)()),
|
|
173
|
+
__metadata("design:type", Function),
|
|
174
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, bulk_upload_item_list_filter_dto_1.BulkUploadItemListFilterDto]),
|
|
175
|
+
__metadata("design:returntype", Promise)
|
|
176
|
+
], BulkUploadController.prototype, "getItems", null);
|
|
127
177
|
__decorate([
|
|
128
178
|
(0, common_1.Get)(':id/errors'),
|
|
129
179
|
__param(0, (0, common_1.Param)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.upload.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/bulk.upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAuF;AACvF,oFAAwF;AACxF,gGAA0F;AAC1F,gGAA2F;AAC3F,wFAAmF;AACnF,kGAA4F;AAC5F,0FAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"bulk.upload.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/bulk.upload.controller.ts"],"names":[],"mappings":";;;;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AC,mBAAmB,CAAC;qCAGgB,+CAAqB;QAC7B,uCAAa;QACT,uCAAiB;QACpB,gCAAc;GAL1C,oBAAoB,CA2GhC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BulkUploadItemEntity } from '../../accessUtility/entities/bulk.upload.item.entity';
|
|
2
|
+
import { BulkUploadItemListFilterDto } from '../dtos/bulk.upload.item.list.filter.dto';
|
|
2
3
|
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
3
|
-
import { ListingService } from '../services/listing.service';
|
|
4
4
|
import { AccessBusinessService } from '../services/access.business.service';
|
|
5
|
-
import {
|
|
5
|
+
import { ListingService } from '../services/listing.service';
|
|
6
6
|
export declare class BulkUploadItemController {
|
|
7
7
|
private readonly accessBusinessService;
|
|
8
8
|
private readonly listingService;
|
|
@@ -15,12 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.BulkUploadItemController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const bulk_upload_entity_1 = require("../../accessUtility/entities/bulk.upload.entity");
|
|
18
19
|
const bulk_upload_item_entity_1 = require("../../accessUtility/entities/bulk.upload.item.entity");
|
|
19
|
-
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
20
|
-
const listing_service_1 = require("../services/listing.service");
|
|
21
|
-
const access_business_service_1 = require("../services/access.business.service");
|
|
22
20
|
const bulk_upload_item_list_filter_dto_1 = require("../dtos/bulk.upload.item.list.filter.dto");
|
|
21
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
23
22
|
const process_bulk_upload_item_list_1 = require("../libraries/process.bulk.upload.item.list");
|
|
23
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
24
|
+
const listing_service_1 = require("../services/listing.service");
|
|
24
25
|
let BulkUploadItemController = class BulkUploadItemController {
|
|
25
26
|
constructor(accessBusinessService, listingService) {
|
|
26
27
|
this.accessBusinessService = accessBusinessService;
|
|
@@ -29,7 +30,8 @@ let BulkUploadItemController = class BulkUploadItemController {
|
|
|
29
30
|
async search(params, body) {
|
|
30
31
|
const business = await this.accessBusinessService.validateAccess();
|
|
31
32
|
body.bulk_upload_id = params.id;
|
|
32
|
-
|
|
33
|
+
const bulkUploadEntity = await bulk_upload_entity_1.BulkUploadEntity.first(params.id);
|
|
34
|
+
return new process_bulk_upload_item_list_1.ProcessBulkUploadItemList(this.listingService, bulkUploadEntity).process(body);
|
|
33
35
|
}
|
|
34
36
|
async show(params) {
|
|
35
37
|
const business = await this.accessBusinessService.validateAccess();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.upload.item.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/bulk.upload.item.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyE;AACzE,kGAA4F;AAC5F,mEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"bulk.upload.item.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/bulk.upload.item.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyE;AACzE,wFAAmF;AACnF,kGAA4F;AAC5F,+FAAuF;AACvF,mEAA8D;AAC9D,8FAAuF;AACvF,iFAA4E;AAC5E,iEAA6D;AAQtD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YACqB,qBAA4C,EAC5C,cAA8B;QAD9B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,mBAAc,GAAd,cAAc,CAAgB;IAChD,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CAAU,MAAwB,EAAU,IAAiC;QACrF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAG,MAAM,qCAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACjE,OAAO,IAAI,yDAAyB,CAAC,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,CAAC,GAAG,MAAM,8CAAoB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAE9G,IAAI,CAAC,CAAC,WAAW,CAAC,WAAW,KAAK,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,yCAAe,EAAE,CAAC;QAE3E,OAAO,CAAC,CAAC;IACb,CAAC;CACJ,CAAA;AAzBY,4DAAwB;AAO3B;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAzB,qCAAgB,EAAgB,8DAA2B;;sDAMxF;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;oDAQ3C;mCAxBQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,4BAA4B,CAAC;qCAGO,+CAAqB;QAC5B,gCAAc;GAH1C,wBAAwB,CAyBpC"}
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], BulkUploadItemListFilterDto.prototype, "sheet", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], BulkUploadItemListFilterDto.prototype, "type_id", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_validator_1.IsOptional)(),
|
|
26
32
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.upload.item.list.filter.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/bulk.upload.item.list.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"bulk.upload.item.list.filter.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/bulk.upload.item.list.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAkE;AAClE,qEAA+D;AAE/D,MAAa,2BAA4B,SAAQ,4CAAmB;CAgBnE;AAhBD,kEAgBC;AAXG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;0DACM;AAKf;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACI;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;;2DACK"}
|
|
@@ -6,6 +6,7 @@ export declare class DeveloperModeSetListingDto {
|
|
|
6
6
|
filter_name?: number;
|
|
7
7
|
identifier?: string;
|
|
8
8
|
filter_identifier?: string;
|
|
9
|
+
db_identifier?: string;
|
|
9
10
|
column_type_id?: number;
|
|
10
11
|
macro?: string;
|
|
11
12
|
reference_url?: string;
|
|
@@ -18,5 +19,7 @@ export declare class DeveloperModeSetListingDto {
|
|
|
18
19
|
is_report_enabled?: boolean;
|
|
19
20
|
reference_model_id?: number;
|
|
20
21
|
default?: boolean;
|
|
22
|
+
is_code_filter?: boolean;
|
|
23
|
+
attributes?: any;
|
|
21
24
|
column_type?: ColumnDefinitionEntity;
|
|
22
25
|
}
|
|
@@ -52,6 +52,12 @@ __decorate([
|
|
|
52
52
|
(0, class_validator_1.IsString)(),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], DeveloperModeSetListingDto.prototype, "filter_identifier", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], DeveloperModeSetListingDto.prototype, "db_identifier", void 0);
|
|
55
61
|
__decorate([
|
|
56
62
|
(0, class_transformer_1.Expose)(),
|
|
57
63
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -124,6 +130,17 @@ __decorate([
|
|
|
124
130
|
(0, class_validator_1.IsBoolean)(),
|
|
125
131
|
__metadata("design:type", Boolean)
|
|
126
132
|
], DeveloperModeSetListingDto.prototype, "default", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
(0, class_validator_1.IsOptional)(),
|
|
136
|
+
(0, class_validator_1.IsBoolean)(),
|
|
137
|
+
__metadata("design:type", Boolean)
|
|
138
|
+
], DeveloperModeSetListingDto.prototype, "is_code_filter", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, class_transformer_1.Expose)(),
|
|
141
|
+
(0, class_validator_1.IsOptional)(),
|
|
142
|
+
__metadata("design:type", Object)
|
|
143
|
+
], DeveloperModeSetListingDto.prototype, "attributes", void 0);
|
|
127
144
|
__decorate([
|
|
128
145
|
(0, class_transformer_1.Expose)(),
|
|
129
146
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"developer.mode.set.listing.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/developer.mode.set.listing.dto.ts"],"names":[],"mappings":";;;;;;;;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U,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACe;AAK1B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACO;AAKlB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;+DACU;AAKtB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;kEACa;AAKzB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0DACK;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8DACS;AAKrB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;qEACgB;AAK5B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACiB;AAK5B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2DACM;AAKlB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;kEACa;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8DACI;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;8BACE,gDAAsB;+DAAC"}
|
|
@@ -78,6 +78,10 @@ __decorate([
|
|
|
78
78
|
(0, typeorm_1.Column)(),
|
|
79
79
|
__metadata("design:type", Boolean)
|
|
80
80
|
], ListingColumnEntity.prototype, "active", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)(),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], ListingColumnEntity.prototype, "is_code_filter", void 0);
|
|
81
85
|
__decorate([
|
|
82
86
|
(0, typeorm_1.Column)(),
|
|
83
87
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listing.column.entity.js","sourceRoot":"","sources":["../../../src/access/entities/listing.column.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA8F;AAC9F,qCAAgE;AAChE,4FAAuF;AACvF,yFAAmF;AACnF,+DAA0D;AASnD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;
|
|
1
|
+
{"version":3,"file":"listing.column.entity.js","sourceRoot":"","sources":["../../../src/access/entities/listing.column.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA8F;AAC9F,qCAAgE;AAChE,4FAAuF;AACvF,yFAAmF;AACnF,+DAA0D;AASnD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;CAyEpD,CAAA;AAzEY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;8DACiB;AAG1B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;kDACK;AAGd;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;6DACgB;AAGzB;IADC,IAAA,gBAAM,GAAE;;qDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;wDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;2DACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;2DACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;8DACkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;+DACkB;AAG3B;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;yDACG;AAGlB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,0DAA0B;uDAAC;AAGvC;IADC,IAAA,gBAAM,GAAE;;oDACQ;AAGuD;IAAvE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAAU,uCAAiB;oDAAC;AAElB;IAAhF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAsB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAAc,gDAAsB;wDAAC;AAEpC;IAAhF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;8BAAkB,yCAAkB;4DAAC;8BAxE5G,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,mBAAmB,CAyE/B"}
|
|
@@ -406,7 +406,7 @@ declare const es6Classes: {
|
|
|
406
406
|
entities: (typeof AccessBusinessEntity | typeof BusinessUserEntity | typeof ProductEntity | typeof EmailStyleEntity | typeof EmailTemplateLogEntity | typeof FcmMessageEntity | typeof FcmTokenEntity | typeof GchatUserEntity | typeof GchatMessageEntity | typeof GchatWebhookMessageEntity | typeof SlackMessageEntity | typeof BzNotificationChannelPreferenceEntity | typeof SlackIntegrationEntity | typeof SlackUserEntity | typeof WhatsappMessageEntity | typeof WhatsappPreferenceEntity | typeof BusinessAppIntegrationCredentialEntity | typeof BusinessAppIntegrationMessagesEntity | typeof BusinessDownloadableReportEntity | typeof BusinessEmailEntity | typeof BusinessGroupRoleEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof UiActionRoleEntity | typeof MenuActionEntity | typeof ChildMenuEntity | typeof BusinessMenuEntity | typeof BusinessReportEntity | typeof GroupRoleEntity | typeof BusinessUserRoleEntity | typeof BusinessWebhookEntity | typeof ConversationEntity | typeof DashboardComponentEntity | typeof DownloadLogEntity | typeof EmailRecipientEntity | typeof EmailMessageEntity | typeof GroupMemberEntity | typeof PreferenceUserEntity | typeof PreferenceUserGroupEntity | typeof ModuleMenuEntity | typeof RequestLogEntity | typeof ScheduledReportEntity | typeof ScheduledReportEmailEntity | typeof ScheduledReportItemEntity | typeof SlackWebhookMessageEntity | typeof UserNotificationEntity | typeof UserRoleEntity | typeof WatchlistAssignmentEntity | typeof WebhookLogEntity | typeof WebhookSlugEntity)[];
|
|
407
407
|
enums: (typeof NotificationTypeEnum | typeof NotificationChannelTypeEnum | typeof RecurringPeriodEnum | typeof CustomColumnTypeEnum | typeof ProductTypeEnum | typeof PlatformTypeEnum)[];
|
|
408
408
|
jobs: (typeof WhatsappMessagePayloadDto | typeof EvaluateEmailRuleJob | typeof AccessTestJob | typeof ApiAccountJob | typeof AppIntegrationJob | typeof BusinessAppIntegrationCredentialJob | typeof BusinessAppIntegrationJob | typeof BusinessAppIntegrationMessagesJob | typeof BusinessDownloadableReportJob | typeof BusinessEmailJob | typeof BusinessGroupRoleJob | typeof BusinessMenuJob | typeof BusinessPreferenceJob | typeof GenerateBusinessReportJob | typeof BusinessReportJob | typeof BusinessUserGroupJob | typeof BusinessUserJob | typeof BusinessUserNotificationPreferenceJob | typeof BusinessUserRoleJob | typeof BusinessWebhookJob | typeof BzNotificationChannelPreferenceJob | typeof ChildMenuJob | typeof ChoiceListJob | typeof ChoiceTypeJob | typeof ConversationJob | typeof CustomFieldJob | typeof CustomReportJob | typeof DashboardComponentJob | typeof DashboardJob | typeof DownloadLogJob | typeof EmailAttachmentJob | typeof EmailMessageJob | typeof EmailRecipientJob | typeof EmailRuleJob | typeof EmailStyleJob | typeof EmailTemplateLogJob | typeof FcmMessageJob | typeof FcmNotificationJob | typeof FcmTemplateJob | typeof FcmTokenJob | typeof GchatIncomingWebhookJob | typeof GchatMessageJob | typeof GchatTemplateJob | typeof GchatUserJob | typeof GchatWebhookJob | typeof GchatWebhookMessageJob | typeof GroupMemberJob | typeof GroupRoleJob | typeof ListPreferenceJob | typeof ListingColumnJob | typeof ListingPageJob | typeof ListingPreferenceJob | typeof MenuActionJob | typeof MenuJob | typeof MenuRoleJob | typeof ModuleJob | typeof ModuleMenuJob | typeof PreferenceUserGroupJob | typeof PreferenceUsersJob | typeof ProcessServerEmailJob | typeof ProductJob | typeof RequestLogJob | typeof RoleGroupJob | typeof ScheduledReportEmailJob | typeof ScheduledReportItemJob | typeof ScheduledReportJob | typeof SlackIncomingWebhookJob | typeof SlackIntegrationJob | typeof SlackMessageJob | typeof SlackTemplateJob | typeof SlackUserJob | typeof SlackWebhookJob | typeof SlackWebhookMessageJob | typeof SyncBURoleJob | typeof UiActionJob | typeof UiActionRoleJob | typeof UserBusinessSecretJob | typeof UserNotificationJob | typeof UserPreferenceJob | typeof UserRoleJob | typeof WatchlistAssignmentJob | typeof WebhookEventJob | typeof WebhookLogJob | typeof WebhookSlugJob | typeof WebhookTypeJob | typeof WhatsappIncomingWebhookJob | typeof WhatsappMessageJob | typeof WhatsappTemplateJob | typeof WhitelistedWhatsappNumberJob)[];
|
|
409
|
-
libraries: (typeof ProcessEmailNotification | typeof SendEmailNotification | typeof SendFcmNotification | typeof SendGchatMessageNotification | typeof SendGchatWebhookNotification | typeof SendSlackMessageNotification | typeof SendSlackWebhookNotification | typeof ProcessWhatsappMessage | typeof SendWhatsappMessageNotification | typeof EvaluateEmailRule | typeof SendWebhookRequest | typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessApiAccountData | typeof ProcessDateFilter | typeof ProcessCommonList | typeof ProcessListingCsvFile | typeof ProcessApiAccountList | typeof ProcessDbFind | typeof
|
|
409
|
+
libraries: (typeof ProcessEmailNotification | typeof SendEmailNotification | typeof SendFcmNotification | typeof SendGchatMessageNotification | typeof SendGchatWebhookNotification | typeof SendSlackMessageNotification | typeof SendSlackWebhookNotification | typeof ProcessWhatsappMessage | typeof SendWhatsappMessageNotification | typeof EvaluateEmailRule | typeof SendWebhookRequest | typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessApiAccountData | typeof ProcessDateFilter | typeof ProcessCommonList | typeof ProcessListingCsvFile | typeof ProcessApiAccountList | typeof ProcessDbFind | typeof ProcessBulkUploadItemList | typeof ProcessBulkUploadList | typeof ProcessWhatsappIntegration | typeof ProcessAppIntegration | typeof ProcessBusinessNotificationChannelPreferenceList | typeof ProcessBusinessUserGroupList | typeof ProcessUserGroupCreation | typeof ProcessBusinessUserNotificationPreferenceList | typeof ProcessChoiceListData | typeof ProcessChoiceTypeList | typeof ProcessChoiceTypeData | typeof ProcessSlackIntegration | typeof ProcessZohoIntegration | typeof ProcessCustomFieldList | typeof ProcessCustomFieldCreation | typeof ProcessDashboardReportData | typeof ProcessReportData | typeof ProcessCreateDashboardComponent | typeof ProcessDashboardComponent | typeof ProcessDashboardReport | typeof ProcessDownloadLogList | typeof ProcessEmailRuleList | typeof ProcessEmailRuleData | typeof SetFcmToken | typeof ProcessGroupMemberList | typeof ProcessGroupRoleList | typeof ProcessPreferenceData | typeof ProcessScheduledReportData | typeof ProcessScheduledReportList | typeof ProcessScheduledReportItemList | typeof CreateUserBusinessSecret | typeof ProcessUserNotificationList | typeof ProcessRevokeSlackIntegration | typeof ProcessRevokeZohoIntegration | typeof ProcessBusinessGroupRoleUpdation | typeof ProcessBusinessUserRoleUpdate | typeof ProcessGroupMemberUpdation | typeof SyncBusinessUserRole | typeof CommonTagController | typeof ProcessConversationData | typeof ConversationController | typeof ValidateCustomFieldData | typeof ProcessCommonCustomField | typeof ProcessNotification | typeof ProcessSlackMessage | typeof ProcessTestList)[];
|
|
410
410
|
middlewares: (typeof BusinessMiddleware | typeof ExternalAccessMiddleware | typeof UserBusinessAccessMiddleware)[];
|
|
411
411
|
services: (typeof SendEmailService | typeof GchatService | typeof SlackService | typeof WhatsappService | typeof NotificationService | typeof SlabsService | typeof WebhookService | typeof AccessBusinessService | typeof ListingService | typeof AuditLogService | typeof AccessReportService | typeof PlatformService | typeof ListingPreferenceService | typeof ScheduledReportService | typeof BusinessUserRoleService | typeof UtilityService | typeof CustomFieldService | typeof ApiAccountService | typeof UserBusinessAccessService | typeof AppIntegrationService | typeof BusinessPreferenceService | typeof Es6JobsService | typeof Es6Service | typeof GptService | typeof LoadEntityService | typeof RequestLogService | typeof UserNotificationService | typeof UserPreferenceService)[];
|
|
412
412
|
subscribers: (typeof ApiAccountSubscriber | typeof AppIntegrationSubscriber | typeof BusinessAppIntegrationCredentialSubscriber | typeof BusinessAppIntegrationMessagesSubscriber | typeof BusinessAppIntegrationSubscriber | typeof BusinessDownloadableReportSubscriber | typeof BusinessEmailSubscriber | typeof BusinessGroupRoleSubscriber | typeof BusinessMenuSubscriber | typeof BusinessPreferenceSubscriber | typeof BusinessReportSubscriber | typeof BusinessUserGroupSubscriber | typeof BusinessUserNotificationPreferenceSubscriber | typeof BusinessUserRoleSubscriber | typeof BusinessUserSubscriber | typeof BusinessWebhookSubscriber | typeof BzNotificationChannelPreferenceSubscriber | typeof ChildMenuSubscriber | typeof ChoiceListSubscriber | typeof ChoiceTypeSubscriber | typeof ConversationSubscriber | typeof CustomFieldSubscriber | typeof CustomReportSubscriber | typeof DashboardComponentSubscriber | typeof DashboardSubscriber | typeof DownloadLogSubscriber | typeof EmailAttachmentSubscriber | typeof EmailMessageSubscriber | typeof EmailRecipientSubscriber | typeof EmailRuleSubscriber | typeof EmailStyleSubscriber | typeof EmailTemplateLogSubscriber | typeof FcmMessageSubscriber | typeof FcmNotificationSubscriber | typeof FcmTemplateSubscriber | typeof FcmTokenSubscriber | typeof GchatMessageSubscriber | typeof GchatTemplateSubscriber | typeof GchatUserSubscriber | typeof GchatWebhookMessageSubscriber | typeof GchatWebhookSubscriber | typeof GroupMemberSubscriber | typeof GroupRoleSubscriber | typeof ListPreferenceSubscriber | typeof ListingColumnSubscriber | typeof ListingPageSubscriber | typeof ListingPreferenceSubscriber | typeof MenuActionSubscriber | typeof MenuRoleSubscriber | typeof MenuSubscriber | typeof ModuleMenuSubscriber | typeof ModuleSubscriber | typeof PreferenceUserGroupSubscriber | typeof PreferenceUserSubscriber | typeof ProductSubscriber | typeof RequestLogSubscriber | typeof RoleGroupSubscriber | typeof ScheduledReportEmailSubscriber | typeof ScheduledReportItemSubscriber | typeof ScheduledReportSubscriber | typeof SlackIntegrationSubscriber | typeof SlackMessageSubscriber | typeof SlackTemplateSubscriber | typeof SlackUserSubscriber | typeof SlackWebhookMessageSubscriber | typeof SlackWebhookSubscriber | typeof UiActionRoleSubscriber | typeof UiActionSubscriber | typeof UserBusinessSecretSubscriber | typeof UserNotificationSubscriber | typeof UserPreferenceSubscriber | typeof UserRoleSubscriber | typeof WatchlistAssignmentSubscriber | typeof WebhookEventSubscriber | typeof WebhookLogSubscriber | typeof WebhookSlugSubscriber | typeof WebhookTypeSubscriber | typeof WhatsappMessageSubscriber | typeof WhatsappTemplateSubscriber | typeof WhitelistedWhatsappNumberSubscriber)[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { BulkUploadEntity } from '../../accessUtility/entities/bulk.upload.entity';
|
|
1
2
|
import { BulkUploadItemListFilterDto } from '../dtos/bulk.upload.item.list.filter.dto';
|
|
2
3
|
import { ListResponseDto } from '../dtos/list.response.dto';
|
|
3
|
-
import { AccessBusinessEntity } from '../entities/access.business.entity';
|
|
4
4
|
import { ListingService } from '../services/listing.service';
|
|
5
5
|
import { ProcessCommonList } from './process.common.list';
|
|
6
6
|
export declare class ProcessBulkUploadItemList extends ProcessCommonList {
|
|
7
|
-
protected readonly business: AccessBusinessEntity;
|
|
8
7
|
protected readonly listingService: ListingService;
|
|
8
|
+
protected readonly bulkUploadEntity: BulkUploadEntity;
|
|
9
9
|
protected filter: BulkUploadItemListFilterDto;
|
|
10
10
|
protected config: {
|
|
11
11
|
sql: string;
|
|
@@ -13,9 +13,9 @@ export declare class ProcessBulkUploadItemList extends ProcessCommonList {
|
|
|
13
13
|
columns: string[];
|
|
14
14
|
metrics: any[];
|
|
15
15
|
};
|
|
16
|
-
constructor(
|
|
16
|
+
constructor(listingService: ListingService, bulkUploadEntity: BulkUploadEntity);
|
|
17
17
|
process(filter: BulkUploadItemListFilterDto): Promise<ListResponseDto>;
|
|
18
18
|
private processFilters;
|
|
19
|
-
private
|
|
20
|
-
|
|
19
|
+
private typeFilter;
|
|
20
|
+
private errorFilter;
|
|
21
21
|
}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProcessBulkUploadItemList = void 0;
|
|
4
4
|
const process_common_list_1 = require("./process.common.list");
|
|
5
5
|
class ProcessBulkUploadItemList extends process_common_list_1.ProcessCommonList {
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(listingService, bulkUploadEntity) {
|
|
7
7
|
super();
|
|
8
|
-
this.business = business;
|
|
9
8
|
this.listingService = listingService;
|
|
9
|
+
this.bulkUploadEntity = bulkUploadEntity;
|
|
10
10
|
this.config = {
|
|
11
11
|
sql: `utl_bulk_upload_items a where a.deleted_at is null`,
|
|
12
12
|
order: 'sq.row_num asc',
|
|
@@ -20,22 +20,22 @@ class ProcessBulkUploadItemList extends process_common_list_1.ProcessCommonList
|
|
|
20
20
|
return this.handle();
|
|
21
21
|
}
|
|
22
22
|
processFilters() {
|
|
23
|
-
this.restrictions.push(`a.bulk_upload_id = ${this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
23
|
+
this.restrictions.push(`a.bulk_upload_id = ${this.bulkUploadEntity.id}`);
|
|
24
|
+
this.typeFilter();
|
|
25
|
+
this.errorFilter();
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
if (!this.filter.
|
|
27
|
+
typeFilter() {
|
|
28
|
+
if (!this.filter.type_id)
|
|
29
29
|
return;
|
|
30
|
-
this.restrictions.push(`a.
|
|
30
|
+
this.restrictions.push(`a.type_id = ${this.filter.type_id}`);
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
errorFilter() {
|
|
33
33
|
if (!this.isBooleanFieldSet('errors'))
|
|
34
34
|
return;
|
|
35
35
|
if (this.filter.errors)
|
|
36
|
-
this.restrictions.push(`a.
|
|
37
|
-
|
|
38
|
-
this.restrictions.push(`a.
|
|
36
|
+
this.restrictions.push(`a.error is not null`);
|
|
37
|
+
if (!this.filter.errors)
|
|
38
|
+
this.restrictions.push(`a.error is null`);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.ProcessBulkUploadItemList = ProcessBulkUploadItemList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.bulk.upload.item.list.js","sourceRoot":"","sources":["../../../src/access/libraries/process.bulk.upload.item.list.ts"],"names":[],"mappings":";;;AAIA,+DAA0D;AAO1D,MAAa,yBAA0B,SAAQ,uCAAiB;IAqB5D,YACuB,
|
|
1
|
+
{"version":3,"file":"process.bulk.upload.item.list.js","sourceRoot":"","sources":["../../../src/access/libraries/process.bulk.upload.item.list.ts"],"names":[],"mappings":";;;AAIA,+DAA0D;AAO1D,MAAa,yBAA0B,SAAQ,uCAAiB;IAqB5D,YACuB,cAA8B,EAC9B,gBAAkC;QAErD,KAAK,EAAE,CAAC;QAHW,mBAAc,GAAd,cAAc,CAAgB;QAC9B,qBAAgB,GAAhB,gBAAgB,CAAkB;QAd/C,WAAM,GAAG;YACf,GAAG,EAAE,oDAAoD;YACzD,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,OAAO,EAAE,EAAE;SACd,CAAC;IAYF,CAAC;IAQD,KAAK,CAAC,OAAO,CAAC,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAGrB,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAOO,cAAc;QAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,sBAAsB,IAAI,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAQO,UAAU;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO;QACjC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAOO,WAAW;QACf,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAAE,OAAO;QAE9C,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACvE,CAAC;CACJ;AA7ED,8DA6EC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddIsCodeFilterUtlListingColumnsTable1750401405969 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class AddIsCodeFilterUtlListingColumnsTable1750401405969 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_listing_columns');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.boolean('is_code_filter', false);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddIsCodeFilterUtlListingColumnsTable1750401405969 = AddIsCodeFilterUtlListingColumnsTable1750401405969;
|
|
15
|
+
//# sourceMappingURL=1750401405969-AddIsCodeFilterUtlListingColumnsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1750401405969-AddIsCodeFilterUtlListingColumnsTable.js","sourceRoot":"","sources":["../../src/migrations/1750401405969-AddIsCodeFilterUtlListingColumnsTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,kDAAmD,SAAQ,0CAAgB;IACpF;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ;AATD,gHASC"}
|
package/package.json
CHANGED