rez_core 6.5.75 → 6.5.76
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/.claude/settings.local.json +26 -0
- package/.idea/250218_nodejs_core.iml +9 -0
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/dist/app.module.js +3 -1
- package/dist/app.module.js.map +1 -1
- package/dist/constant/db-data-type.constant.d.ts +30 -0
- package/dist/constant/db-data-type.constant.js +59 -0
- package/dist/constant/db-data-type.constant.js.map +1 -0
- package/dist/constant/storage-type.constant.d.ts +4 -0
- package/dist/constant/storage-type.constant.js +9 -0
- package/dist/constant/storage-type.constant.js.map +1 -0
- package/dist/module/dashboard/controller/dashboard.controller.d.ts +1 -0
- package/dist/module/dashboard/service/dashboard.service.d.ts +1 -0
- package/dist/module/eav/controller/eav.controller.d.ts +21 -0
- package/dist/module/eav/controller/eav.controller.js +127 -0
- package/dist/module/eav/controller/eav.controller.js.map +1 -0
- package/dist/module/eav/dto/eav-operation.dto.d.ts +20 -0
- package/dist/module/eav/dto/eav-operation.dto.js +75 -0
- package/dist/module/eav/dto/eav-operation.dto.js.map +1 -0
- package/dist/module/eav/eav.module.d.ts +2 -0
- package/dist/module/eav/eav.module.js +84 -0
- package/dist/module/eav/eav.module.js.map +1 -0
- package/dist/module/eav/entity/eav-boolean.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-boolean.entity.js +48 -0
- package/dist/module/eav/entity/eav-boolean.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-date.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-date.entity.js +48 -0
- package/dist/module/eav/entity/eav-date.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-decimal.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-decimal.entity.js +48 -0
- package/dist/module/eav/entity/eav-decimal.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-int.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-int.entity.js +48 -0
- package/dist/module/eav/entity/eav-int.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-json.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-json.entity.js +48 -0
- package/dist/module/eav/entity/eav-json.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-text.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-text.entity.js +48 -0
- package/dist/module/eav/entity/eav-text.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-time.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-time.entity.js +48 -0
- package/dist/module/eav/entity/eav-time.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-timestamp.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-timestamp.entity.js +48 -0
- package/dist/module/eav/entity/eav-timestamp.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-varchar.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-varchar.entity.js +48 -0
- package/dist/module/eav/entity/eav-varchar.entity.js.map +1 -0
- package/dist/module/eav/interface/eav-strategy.interface.d.ts +8 -0
- package/dist/module/eav/interface/eav-strategy.interface.js +3 -0
- package/dist/module/eav/interface/eav-strategy.interface.js.map +1 -0
- package/dist/module/eav/repository/eav-boolean.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-boolean.repository.js +57 -0
- package/dist/module/eav/repository/eav-boolean.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-date.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-date.repository.js +57 -0
- package/dist/module/eav/repository/eav-date.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-decimal.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-decimal.repository.js +57 -0
- package/dist/module/eav/repository/eav-decimal.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-int.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-int.repository.js +57 -0
- package/dist/module/eav/repository/eav-int.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-json.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-json.repository.js +57 -0
- package/dist/module/eav/repository/eav-json.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-text.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-text.repository.js +57 -0
- package/dist/module/eav/repository/eav-text.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-time.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-time.repository.js +57 -0
- package/dist/module/eav/repository/eav-time.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-timestamp.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-timestamp.repository.js +57 -0
- package/dist/module/eav/repository/eav-timestamp.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-varchar.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-varchar.repository.js +57 -0
- package/dist/module/eav/repository/eav-varchar.repository.js.map +1 -0
- package/dist/module/eav/service/eav-boolean.service.d.ts +12 -0
- package/dist/module/eav/service/eav-boolean.service.js +59 -0
- package/dist/module/eav/service/eav-boolean.service.js.map +1 -0
- package/dist/module/eav/service/eav-date.service.d.ts +12 -0
- package/dist/module/eav/service/eav-date.service.js +59 -0
- package/dist/module/eav/service/eav-date.service.js.map +1 -0
- package/dist/module/eav/service/eav-decimal.service.d.ts +12 -0
- package/dist/module/eav/service/eav-decimal.service.js +59 -0
- package/dist/module/eav/service/eav-decimal.service.js.map +1 -0
- package/dist/module/eav/service/eav-factory.service.d.ts +26 -0
- package/dist/module/eav/service/eav-factory.service.js +81 -0
- package/dist/module/eav/service/eav-factory.service.js.map +1 -0
- package/dist/module/eav/service/eav-int.service.d.ts +12 -0
- package/dist/module/eav/service/eav-int.service.js +59 -0
- package/dist/module/eav/service/eav-int.service.js.map +1 -0
- package/dist/module/eav/service/eav-json.service.d.ts +12 -0
- package/dist/module/eav/service/eav-json.service.js +59 -0
- package/dist/module/eav/service/eav-json.service.js.map +1 -0
- package/dist/module/eav/service/eav-text.service.d.ts +12 -0
- package/dist/module/eav/service/eav-text.service.js +59 -0
- package/dist/module/eav/service/eav-text.service.js.map +1 -0
- package/dist/module/eav/service/eav-time.service.d.ts +12 -0
- package/dist/module/eav/service/eav-time.service.js +59 -0
- package/dist/module/eav/service/eav-time.service.js.map +1 -0
- package/dist/module/eav/service/eav-timestamp.service.d.ts +12 -0
- package/dist/module/eav/service/eav-timestamp.service.js +59 -0
- package/dist/module/eav/service/eav-timestamp.service.js.map +1 -0
- package/dist/module/eav/service/eav-varchar.service.d.ts +12 -0
- package/dist/module/eav/service/eav-varchar.service.js +59 -0
- package/dist/module/eav/service/eav-varchar.service.js.map +1 -0
- package/dist/module/eav/service/eav.service.d.ts +14 -0
- package/dist/module/eav/service/eav.service.js +65 -0
- package/dist/module/eav/service/eav.service.js.map +1 -0
- package/dist/module/listmaster/service/list-master-item.service.js +9 -41
- package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
- package/dist/module/meta/controller/entity.controller.js +1 -4
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/entity/base-entity.entity.d.ts +1 -0
- package/dist/module/meta/entity/base-entity.entity.js +4 -0
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
- package/dist/module/meta/entity/dynamic.entity.d.ts +3 -0
- package/dist/module/meta/entity/dynamic.entity.js +8 -0
- package/dist/module/meta/entity/dynamic.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +4 -8
- package/dist/module/meta/entity/entity-master.entity.js +13 -57
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.d.ts +8 -2
- package/dist/module/meta/service/entity-master.service.js +82 -2
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/media-data.service.d.ts +0 -1
- package/dist/module/meta/service/media-data.service.js +0 -119
- package/dist/module/meta/service/media-data.service.js.map +1 -1
- package/dist/module/workflow/controller/activity-log.controller.d.ts +1 -0
- package/dist/module/workflow/repository/activity-log.repository.d.ts +1 -0
- package/dist/module/workflow/repository/stage-group.repository.d.ts +1 -0
- package/dist/module/workflow/repository/stage.repository.d.ts +1 -0
- package/dist/module/workflow/service/activity-log.service.d.ts +1 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/server.log +850 -0
- package/src/app.module.ts +3 -1
- package/src/constant/db-data-type.constant.ts +81 -0
- package/src/constant/storage-type.constant.ts +4 -0
- package/src/module/eav/EAV_USAGE_GUIDE.md +351 -0
- package/src/module/eav/controller/eav.controller.ts +119 -0
- package/src/module/eav/dto/eav-operation.dto.ts +62 -0
- package/src/module/eav/eav.module.ts +80 -0
- package/src/module/eav/entity/eav-boolean.entity.ts +26 -0
- package/src/module/eav/entity/eav-date.entity.ts +25 -0
- package/src/module/eav/entity/eav-decimal.entity.ts +25 -0
- package/src/module/eav/entity/eav-int.entity.ts +25 -0
- package/src/module/eav/entity/eav-json.entity.ts +25 -0
- package/src/module/eav/entity/eav-text.entity.ts +25 -0
- package/src/module/eav/entity/eav-time.entity.ts +25 -0
- package/src/module/eav/entity/eav-timestamp.entity.ts +25 -0
- package/src/module/eav/entity/eav-varchar.entity.ts +25 -0
- package/src/module/eav/interface/eav-strategy.interface.ts +32 -0
- package/src/module/eav/repository/eav-boolean.repository.ts +67 -0
- package/src/module/eav/repository/eav-date.repository.ts +67 -0
- package/src/module/eav/repository/eav-decimal.repository.ts +67 -0
- package/src/module/eav/repository/eav-int.repository.ts +67 -0
- package/src/module/eav/repository/eav-json.repository.ts +67 -0
- package/src/module/eav/repository/eav-text.repository.ts +67 -0
- package/src/module/eav/repository/eav-time.repository.ts +67 -0
- package/src/module/eav/repository/eav-timestamp.repository.ts +67 -0
- package/src/module/eav/repository/eav-varchar.repository.ts +67 -0
- package/src/module/eav/service/eav-boolean.service.ts +64 -0
- package/src/module/eav/service/eav-date.service.ts +64 -0
- package/src/module/eav/service/eav-decimal.service.ts +64 -0
- package/src/module/eav/service/eav-factory.service.ts +93 -0
- package/src/module/eav/service/eav-int.service.ts +64 -0
- package/src/module/eav/service/eav-json.service.ts +64 -0
- package/src/module/eav/service/eav-text.service.ts +64 -0
- package/src/module/eav/service/eav-time.service.ts +64 -0
- package/src/module/eav/service/eav-timestamp.service.ts +64 -0
- package/src/module/eav/service/eav-varchar.service.ts +65 -0
- package/src/module/eav/service/eav.service.ts +116 -0
- package/src/module/listmaster/service/list-master-item.service.ts +11 -61
- package/src/module/meta/controller/entity.controller.ts +2 -10
- package/src/module/meta/entity/base-entity.entity.ts +3 -0
- package/src/module/meta/entity/dynamic.entity.ts +4 -0
- package/src/module/meta/entity/entity-master.entity.ts +16 -52
- package/src/module/meta/service/entity-master.service.ts +135 -6
- package/src/module/meta/service/media-data.service.ts +0 -206
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVVarchar = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let EAVVarchar = class EAVVarchar {
|
|
15
|
+
};
|
|
16
|
+
exports.EAVVarchar = EAVVarchar;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EAVVarchar.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, name: 'entity_type' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EAVVarchar.prototype, "entity_type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'bigint', name: 'entity_id' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], EAVVarchar.prototype, "entity_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], EAVVarchar.prototype, "modified_date", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true, name: 'modified_by' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], EAVVarchar.prototype, "modified_by", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EAVVarchar.prototype, "key", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], EAVVarchar.prototype, "value", void 0);
|
|
45
|
+
exports.EAVVarchar = EAVVarchar = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)({ name: 'frm_eav_varchar' })
|
|
47
|
+
], EAVVarchar);
|
|
48
|
+
//# sourceMappingURL=eav-varchar.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-varchar.entity.js","sourceRoot":"","sources":["../../../../src/module/eav/entity/eav-varchar.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmF;AAG5E,IAAM,UAAU,GAAhB,MAAM,UAAU;CAqBtB,CAAA;AArBY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;sCAChC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;+CACzC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;6CAC5B;AAGlB;IADC,IAAA,0BAAgB,GAAE;8BACJ,IAAI;iDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC;;+CAC1C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAC,CAAC;;uCAC3B;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,SAAS,EAAC,CAAC;;yCACf;qBApBA,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;GACrB,UAAU,CAqBtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateEAVDto, UpdateEAVDto, EAVQueryDto } from '../dto/eav-operation.dto';
|
|
2
|
+
export interface IEAVStrategy {
|
|
3
|
+
create(dto: CreateEAVDto, modifiedBy?: number): Promise<any>;
|
|
4
|
+
findOne(query: EAVQueryDto): Promise<any>;
|
|
5
|
+
findAll(query: Partial<EAVQueryDto>): Promise<any[]>;
|
|
6
|
+
update(query: EAVQueryDto, dto: UpdateEAVDto, modifiedBy?: number): Promise<any>;
|
|
7
|
+
delete(query: EAVQueryDto): Promise<boolean>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-strategy.interface.js","sourceRoot":"","sources":["../../../../src/module/eav/interface/eav-strategy.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVBoolean } from '../entity/eav-boolean.entity';
|
|
3
|
+
export declare class EAVBooleanRepository extends Repository<EAVBoolean> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVBoolean | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVBoolean[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVBooleanRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_boolean_entity_1 = require("../entity/eav-boolean.entity");
|
|
16
|
+
let EAVBooleanRepository = class EAVBooleanRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_boolean_entity_1.EAVBoolean, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVBooleanRepository = EAVBooleanRepository;
|
|
53
|
+
exports.EAVBooleanRepository = EAVBooleanRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVBooleanRepository);
|
|
57
|
+
//# sourceMappingURL=eav-boolean.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-boolean.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-boolean.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAsB;IAC5D,YAAoB,UAAsB;QACtC,KAAK,CAAC,+BAAU,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADpC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,oBAAoB,CA6DhC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVDate } from '../entity/eav-date.entity';
|
|
3
|
+
export declare class EAVDateRepository extends Repository<EAVDate> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVDate | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVDate[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVDateRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_date_entity_1 = require("../entity/eav-date.entity");
|
|
16
|
+
let EAVDateRepository = class EAVDateRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_date_entity_1.EAVDate, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVDateRepository = EAVDateRepository;
|
|
53
|
+
exports.EAVDateRepository = EAVDateRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVDateRepository);
|
|
57
|
+
//# sourceMappingURL=eav-date.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-date.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-date.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,+DAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAmB;IACtD,YAAoB,UAAsB;QACtC,KAAK,CAAC,yBAAO,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADjC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,iBAAiB,CA6D7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVDecimal } from '../entity/eav-decimal.entity';
|
|
3
|
+
export declare class EAVDecimalRepository extends Repository<EAVDecimal> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVDecimal | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVDecimal[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVDecimalRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_decimal_entity_1 = require("../entity/eav-decimal.entity");
|
|
16
|
+
let EAVDecimalRepository = class EAVDecimalRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_decimal_entity_1.EAVDecimal, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVDecimalRepository = EAVDecimalRepository;
|
|
53
|
+
exports.EAVDecimalRepository = EAVDecimalRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVDecimalRepository);
|
|
57
|
+
//# sourceMappingURL=eav-decimal.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-decimal.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-decimal.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAsB;IAC5D,YAAoB,UAAsB;QACtC,KAAK,CAAC,+BAAU,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADpC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,oBAAoB,CA6DhC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVInt } from '../entity/eav-int.entity';
|
|
3
|
+
export declare class EAVIntRepository extends Repository<EAVInt> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVInt | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVInt[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVIntRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_int_entity_1 = require("../entity/eav-int.entity");
|
|
16
|
+
let EAVIntRepository = class EAVIntRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_int_entity_1.EAVInt, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVIntRepository = EAVIntRepository;
|
|
53
|
+
exports.EAVIntRepository = EAVIntRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVIntRepository);
|
|
57
|
+
//# sourceMappingURL=eav-int.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-int.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-int.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,6DAAkD;AAG3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAkB;IACpD,YAAoB,UAAsB;QACtC,KAAK,CAAC,uBAAM,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADhC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,gBAAgB,CA6D5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVJson } from '../entity/eav-json.entity';
|
|
3
|
+
export declare class EAVJsonRepository extends Repository<EAVJson> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVJson | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVJson[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVJsonRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_json_entity_1 = require("../entity/eav-json.entity");
|
|
16
|
+
let EAVJsonRepository = class EAVJsonRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_json_entity_1.EAVJson, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVJsonRepository = EAVJsonRepository;
|
|
53
|
+
exports.EAVJsonRepository = EAVJsonRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVJsonRepository);
|
|
57
|
+
//# sourceMappingURL=eav-json.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-json.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-json.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,+DAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAmB;IACtD,YAAoB,UAAsB;QACtC,KAAK,CAAC,yBAAO,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADjC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,iBAAiB,CA6D7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVText } from '../entity/eav-text.entity';
|
|
3
|
+
export declare class EAVTextRepository extends Repository<EAVText> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVText | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVText[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVTextRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_text_entity_1 = require("../entity/eav-text.entity");
|
|
16
|
+
let EAVTextRepository = class EAVTextRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_text_entity_1.EAVText, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVTextRepository = EAVTextRepository;
|
|
53
|
+
exports.EAVTextRepository = EAVTextRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVTextRepository);
|
|
57
|
+
//# sourceMappingURL=eav-text.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-text.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-text.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,+DAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAmB;IACtD,YAAoB,UAAsB;QACtC,KAAK,CAAC,yBAAO,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADjC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,iBAAiB,CA6D7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVTime } from '../entity/eav-time.entity';
|
|
3
|
+
export declare class EAVTimeRepository extends Repository<EAVTime> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVTime | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVTime[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EAVTimeRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const eav_time_entity_1 = require("../entity/eav-time.entity");
|
|
16
|
+
let EAVTimeRepository = class EAVTimeRepository extends typeorm_1.Repository {
|
|
17
|
+
constructor(dataSource) {
|
|
18
|
+
super(eav_time_entity_1.EAVTime, dataSource.createEntityManager());
|
|
19
|
+
this.dataSource = dataSource;
|
|
20
|
+
}
|
|
21
|
+
async findByEntityAndKey(entityType, entityId, key) {
|
|
22
|
+
return await this.findOne({
|
|
23
|
+
where: {
|
|
24
|
+
entity_type: entityType,
|
|
25
|
+
entity_id: String(entityId),
|
|
26
|
+
key: key,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async findByPartialCriteria(criteria) {
|
|
31
|
+
const where = {};
|
|
32
|
+
if (criteria.entity_type) {
|
|
33
|
+
where.entity_type = criteria.entity_type;
|
|
34
|
+
}
|
|
35
|
+
if (criteria.entity_id) {
|
|
36
|
+
where.entity_id = String(criteria.entity_id);
|
|
37
|
+
}
|
|
38
|
+
if (criteria.key) {
|
|
39
|
+
where.key = criteria.key;
|
|
40
|
+
}
|
|
41
|
+
return await this.find({ where });
|
|
42
|
+
}
|
|
43
|
+
async deleteByEntityAndKey(entityType, entityId, key) {
|
|
44
|
+
const result = await this.delete({
|
|
45
|
+
entity_type: entityType,
|
|
46
|
+
entity_id: String(entityId),
|
|
47
|
+
key: key,
|
|
48
|
+
});
|
|
49
|
+
return (result.affected ?? 0) > 0;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.EAVTimeRepository = EAVTimeRepository;
|
|
53
|
+
exports.EAVTimeRepository = EAVTimeRepository = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
56
|
+
], EAVTimeRepository);
|
|
57
|
+
//# sourceMappingURL=eav-time.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eav-time.repository.js","sourceRoot":"","sources":["../../../../src/module/eav/repository/eav-time.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,+DAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAmB;IACtD,YAAoB,UAAsB;QACtC,KAAK,CAAC,yBAAO,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QADjC,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAKD,KAAK,CAAC,kBAAkB,CACpB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC3B,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,QAI3B;QACG,MAAM,KAAK,GAAQ,EAAE,CAAC;QAEtB,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC7C,CAAC;QACD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAKD,KAAK,CAAC,oBAAoB,CACtB,UAAkB,EAClB,QAAyB,EACzB,GAAW;QAEX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AA7DY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEuB,oBAAU;GADjC,iBAAiB,CA6D7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { EAVTimeStamp } from '../entity/eav-timestamp.entity';
|
|
3
|
+
export declare class EAVTimestampRepository extends Repository<EAVTimeStamp> {
|
|
4
|
+
private dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
findByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<EAVTimeStamp | null>;
|
|
7
|
+
findByPartialCriteria(criteria: {
|
|
8
|
+
entity_type?: string;
|
|
9
|
+
entity_id?: string | number;
|
|
10
|
+
key?: string;
|
|
11
|
+
}): Promise<EAVTimeStamp[]>;
|
|
12
|
+
deleteByEntityAndKey(entityType: string, entityId: string | number, key: string): Promise<boolean>;
|
|
13
|
+
}
|