@punks/backend-entity-manager 0.0.322 → 0.0.323
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/cjs/index.js +13 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/database/core/entities.d.ts +2 -1
- package/dist/cjs/types/platforms/nest/__test__/server/database/core/index.d.ts +3 -100
- package/dist/cjs/types/settings/index.d.ts +2 -1
- package/dist/esm/index.js +13 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/database/core/entities.d.ts +2 -1
- package/dist/esm/types/platforms/nest/__test__/server/database/core/index.d.ts +3 -100
- package/dist/esm/types/settings/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -21,4 +21,5 @@ import { AppOrganizationalUnitTypeChildEntity } from "./entities/appOrganization
|
|
|
21
21
|
import { AppRoleOrganizationalUnitTypeEntity } from "./entities/appRoleOrganizationalUnitType.entity";
|
|
22
22
|
import { AppCacheEntry } from "./entities/appCacheEntry.entity";
|
|
23
23
|
import { AppApiKeyEntity } from "./entities/appApiKey.entity";
|
|
24
|
-
|
|
24
|
+
import { AppOperationLockItemEntry } from "./entities/appOperationLockItem.entity";
|
|
25
|
+
export declare const CoreDatabaseEntities: (typeof AppDivisionEntity | typeof AppCompanyEntity | typeof AppOrganizationEntity | typeof AppUserProfileEntity | typeof AppRoleEntity | typeof AppUserRoleEntity | typeof AppUserEntity | typeof AppUserGroupEntity | typeof AppUserGroupMemberEntity | typeof AppDirectoryEntity | typeof AppTenantEntity | typeof AppOrganizationalUnitTypeChildEntity | typeof AppOrganizationalUnitTypeEntity | typeof AppRoleOrganizationalUnitTypeEntity | typeof AppOrganizationalUnitEntity | typeof AppApiKeyEntity | typeof AppEmailLogEntity | typeof AppEntityVersionEntity | typeof AppFileReferenceEntity | typeof AppRolePermissionEntity | typeof AppPermissionEntity | typeof FooEntity | typeof AppOperationLockItemEntry | typeof AppCacheEntry)[];
|
|
@@ -1,106 +1,9 @@
|
|
|
1
1
|
import { DataSource } from "typeorm";
|
|
2
|
-
import { FooEntity } from "./entities/foo.entity";
|
|
3
|
-
import { AppCompanyEntity } from "./entities/appCompany.entity";
|
|
4
|
-
import { AppDivisionEntity } from "./entities/appDivision.entity";
|
|
5
|
-
import { AppOrganizationEntity } from "./entities/appOrganization.entity";
|
|
6
|
-
import { AppRoleEntity } from "./entities/appRole.entity";
|
|
7
|
-
import { AppTenantEntity } from "./entities/appTenant.entity";
|
|
8
|
-
import { AppUserEntity } from "./entities/appUser.entity";
|
|
9
|
-
import { AppUserGroupEntity } from "./entities/appUserGroup.entity";
|
|
10
|
-
import { AppUserGroupMemberEntity } from "./entities/appUserGroupMember.entity";
|
|
11
|
-
import { AppUserProfileEntity } from "./entities/appUserProfile.entity";
|
|
12
|
-
import { AppUserRoleEntity } from "./entities/appUserRole.entity";
|
|
13
2
|
import { DynamicModule } from "@nestjs/common";
|
|
14
|
-
|
|
15
|
-
import { AppDirectoryEntity } from "./entities/appDirectory.entity";
|
|
16
|
-
import { CrmContactEntity } from "./entities/crmContact.entity";
|
|
17
|
-
import { AppFileReferenceEntity } from "./entities/appFileReference.entity";
|
|
18
|
-
import { AppEmailLogEntity } from "./entities/appEmailLog.entity";
|
|
19
|
-
import { AppPermissionEntity } from "./entities/appPermission.entity";
|
|
20
|
-
import { AppRolePermissionEntity } from "./entities/appRolePermission.entity";
|
|
21
|
-
import { AppOrganizationalUnitEntity } from "./entities/appOrganizationalUnit.entity";
|
|
22
|
-
import { AppOrganizationalUnitTypeEntity } from "./entities/appOrganizationalUnitType.entity";
|
|
23
|
-
import { AppOrganizationalUnitTypeChildEntity } from "./entities/appOrganizationalUnitTypeChild.entity";
|
|
24
|
-
import { AppRoleOrganizationalUnitTypeEntity } from "./entities/appRoleOrganizationalUnitType.entity";
|
|
25
|
-
import { AppCacheEntry } from "./entities/appCacheEntry.entity";
|
|
26
|
-
import { AppApiKeyEntity } from "./entities/appApiKey.entity";
|
|
27
|
-
import { AppOperationLockItemEntry } from "./entities/appOperationLockItem.entity";
|
|
28
|
-
export declare const mockDatabaseProviders: (dataSource: DataSource) => ({
|
|
3
|
+
export declare const mockDatabaseProviders: (dataSource: DataSource) => {
|
|
29
4
|
provide: string | Function;
|
|
30
|
-
useValue: import("typeorm").Repository<
|
|
31
|
-
}
|
|
32
|
-
provide: string | Function;
|
|
33
|
-
useValue: import("typeorm").Repository<AppCacheEntry>;
|
|
34
|
-
} | {
|
|
35
|
-
provide: string | Function;
|
|
36
|
-
useValue: import("typeorm").Repository<AppCompanyEntity>;
|
|
37
|
-
} | {
|
|
38
|
-
provide: string | Function;
|
|
39
|
-
useValue: import("typeorm").Repository<AppDivisionEntity>;
|
|
40
|
-
} | {
|
|
41
|
-
provide: string | Function;
|
|
42
|
-
useValue: import("typeorm").Repository<AppDirectoryEntity>;
|
|
43
|
-
} | {
|
|
44
|
-
provide: string | Function;
|
|
45
|
-
useValue: import("typeorm").Repository<AppEmailLogEntity>;
|
|
46
|
-
} | {
|
|
47
|
-
provide: string | Function;
|
|
48
|
-
useValue: import("typeorm").Repository<AppEntityVersionEntity>;
|
|
49
|
-
} | {
|
|
50
|
-
provide: string | Function;
|
|
51
|
-
useValue: import("typeorm").Repository<AppFileReferenceEntity>;
|
|
52
|
-
} | {
|
|
53
|
-
provide: string | Function;
|
|
54
|
-
useValue: import("typeorm").Repository<AppOperationLockItemEntry>;
|
|
55
|
-
} | {
|
|
56
|
-
provide: string | Function;
|
|
57
|
-
useValue: import("typeorm").Repository<AppOrganizationEntity>;
|
|
58
|
-
} | {
|
|
59
|
-
provide: string | Function;
|
|
60
|
-
useValue: import("typeorm").Repository<AppOrganizationalUnitEntity>;
|
|
61
|
-
} | {
|
|
62
|
-
provide: string | Function;
|
|
63
|
-
useValue: import("typeorm").Repository<AppOrganizationalUnitTypeEntity>;
|
|
64
|
-
} | {
|
|
65
|
-
provide: string | Function;
|
|
66
|
-
useValue: import("typeorm").Repository<AppOrganizationalUnitTypeChildEntity>;
|
|
67
|
-
} | {
|
|
68
|
-
provide: string | Function;
|
|
69
|
-
useValue: import("typeorm").Repository<AppRoleOrganizationalUnitTypeEntity>;
|
|
70
|
-
} | {
|
|
71
|
-
provide: string | Function;
|
|
72
|
-
useValue: import("typeorm").Repository<AppRoleEntity>;
|
|
73
|
-
} | {
|
|
74
|
-
provide: string | Function;
|
|
75
|
-
useValue: import("typeorm").Repository<AppRolePermissionEntity>;
|
|
76
|
-
} | {
|
|
77
|
-
provide: string | Function;
|
|
78
|
-
useValue: import("typeorm").Repository<AppPermissionEntity>;
|
|
79
|
-
} | {
|
|
80
|
-
provide: string | Function;
|
|
81
|
-
useValue: import("typeorm").Repository<AppTenantEntity>;
|
|
82
|
-
} | {
|
|
83
|
-
provide: string | Function;
|
|
84
|
-
useValue: import("typeorm").Repository<AppUserEntity>;
|
|
85
|
-
} | {
|
|
86
|
-
provide: string | Function;
|
|
87
|
-
useValue: import("typeorm").Repository<AppUserGroupEntity>;
|
|
88
|
-
} | {
|
|
89
|
-
provide: string | Function;
|
|
90
|
-
useValue: import("typeorm").Repository<AppUserGroupMemberEntity>;
|
|
91
|
-
} | {
|
|
92
|
-
provide: string | Function;
|
|
93
|
-
useValue: import("typeorm").Repository<AppUserProfileEntity>;
|
|
94
|
-
} | {
|
|
95
|
-
provide: string | Function;
|
|
96
|
-
useValue: import("typeorm").Repository<AppUserRoleEntity>;
|
|
97
|
-
} | {
|
|
98
|
-
provide: string | Function;
|
|
99
|
-
useValue: import("typeorm").Repository<CrmContactEntity>;
|
|
100
|
-
} | {
|
|
101
|
-
provide: string | Function;
|
|
102
|
-
useValue: import("typeorm").Repository<FooEntity>;
|
|
103
|
-
})[];
|
|
5
|
+
useValue: import("typeorm").Repository<import("./entities/appDivision.entity").AppDivisionEntity>;
|
|
6
|
+
}[];
|
|
104
7
|
export declare class CoreDatabaseModule {
|
|
105
8
|
static forRoot(dataSource: any): DynamicModule;
|
|
106
9
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -22317,19 +22317,21 @@ AuthenticationServicesResolver = __decorate([
|
|
|
22317
22317
|
], AuthenticationServicesResolver);
|
|
22318
22318
|
|
|
22319
22319
|
class AppInMemorySettings {
|
|
22320
|
-
constructor() {
|
|
22320
|
+
constructor(name) {
|
|
22321
|
+
this.name = name;
|
|
22322
|
+
}
|
|
22321
22323
|
initialize(value) {
|
|
22322
22324
|
this._instance = value;
|
|
22323
22325
|
}
|
|
22324
22326
|
get value() {
|
|
22325
22327
|
if (!this._instance) {
|
|
22326
|
-
throw new Error(
|
|
22328
|
+
throw new Error(`AppSettings ${this.name} not initialized`);
|
|
22327
22329
|
}
|
|
22328
22330
|
return this._instance;
|
|
22329
22331
|
}
|
|
22330
22332
|
}
|
|
22331
22333
|
|
|
22332
|
-
const authSettings = new AppInMemorySettings();
|
|
22334
|
+
const authSettings = new AppInMemorySettings("authSettings");
|
|
22333
22335
|
|
|
22334
22336
|
let JwtProvider = class JwtProvider {
|
|
22335
22337
|
constructor(jwtService) {
|
|
@@ -33795,7 +33797,7 @@ JobsMonitorTask = JobsMonitorTask_1 = __decorate([
|
|
|
33795
33797
|
__metadata("design:paramtypes", [Object, Object, CommandBus])
|
|
33796
33798
|
], JobsMonitorTask);
|
|
33797
33799
|
|
|
33798
|
-
const jobsSettings = new AppInMemorySettings();
|
|
33800
|
+
const jobsSettings = new AppInMemorySettings("jobsSettings");
|
|
33799
33801
|
|
|
33800
33802
|
var JobsScheduler_1;
|
|
33801
33803
|
let JobsScheduler = JobsScheduler_1 = class JobsScheduler {
|
|
@@ -34424,7 +34426,7 @@ class AwsS3BucketError extends Error {
|
|
|
34424
34426
|
}
|
|
34425
34427
|
}
|
|
34426
34428
|
|
|
34427
|
-
const awsBucketSettings = new AppInMemorySettings();
|
|
34429
|
+
const awsBucketSettings = new AppInMemorySettings("awsBucketSettings");
|
|
34428
34430
|
|
|
34429
34431
|
const streamToBuffer = (stream) => new Promise((resolve, reject) => {
|
|
34430
34432
|
const chunks = [];
|
|
@@ -34776,7 +34778,7 @@ const WpAwsSesEmailTemplate = (templateId, sendgridTemplateData) => applyDecorat
|
|
|
34776
34778
|
templateId,
|
|
34777
34779
|
}), SetMetadata(AwsSesModuleSymbols.EmailTemplate, sendgridTemplateData));
|
|
34778
34780
|
|
|
34779
|
-
const awsSesSettings = new AppInMemorySettings();
|
|
34781
|
+
const awsSesSettings = new AppInMemorySettings("awsSesSettings");
|
|
34780
34782
|
|
|
34781
34783
|
const getLocalizedText = (item, languageId, defaultLanguageId) => {
|
|
34782
34784
|
return typeof item === "string"
|
|
@@ -39822,7 +39824,7 @@ const WpSendgridEmailTemplate = (templateId, sendgridTemplateData) => applyDecor
|
|
|
39822
39824
|
templateId,
|
|
39823
39825
|
}), SetMetadata(SendgridModuleSymbols.EmailTemplate, sendgridTemplateData));
|
|
39824
39826
|
|
|
39825
|
-
const sendgridSettings = new AppInMemorySettings();
|
|
39827
|
+
const sendgridSettings = new AppInMemorySettings("sendgridSettings");
|
|
39826
39828
|
|
|
39827
39829
|
const sanitizeValue = (value) => value?.trim() ? value?.trim() : undefined;
|
|
39828
39830
|
const sanitizeArray = (value) => (value?.length ?? 0) > 0 ? value : undefined;
|
|
@@ -39998,7 +40000,7 @@ InMemoryEmailProvider = __decorate([
|
|
|
39998
40000
|
WpEmailProvider("in-memory")
|
|
39999
40001
|
], InMemoryEmailProvider);
|
|
40000
40002
|
|
|
40001
|
-
const awsBatchSettings = new AppInMemorySettings();
|
|
40003
|
+
const awsBatchSettings = new AppInMemorySettings("awsBatchSettings");
|
|
40002
40004
|
|
|
40003
40005
|
const JobProvider = (provider) => SetMetadata(JOB_PROVIDER, provider);
|
|
40004
40006
|
|
|
@@ -40340,7 +40342,7 @@ class AwsS3MediaError extends Error {
|
|
|
40340
40342
|
}
|
|
40341
40343
|
}
|
|
40342
40344
|
|
|
40343
|
-
const awsMediaSettings = new AppInMemorySettings();
|
|
40345
|
+
const awsMediaSettings = new AppInMemorySettings("awsMediaSettings");
|
|
40344
40346
|
|
|
40345
40347
|
const createClient$1 = (settings) => new S3Client({
|
|
40346
40348
|
region: settings.region,
|
|
@@ -43309,7 +43311,7 @@ axios$2.exports.default = axios$1;
|
|
|
43309
43311
|
|
|
43310
43312
|
var axios = axios$2.exports;
|
|
43311
43313
|
|
|
43312
|
-
const sanityMediaSettings = new AppInMemorySettings();
|
|
43314
|
+
const sanityMediaSettings = new AppInMemorySettings("sanityMediaSettings");
|
|
43313
43315
|
|
|
43314
43316
|
const buildRef = ({ dataset, projectId, id, }) => {
|
|
43315
43317
|
return `sanity://${projectId}/${dataset}/${id}`;
|
|
@@ -43456,7 +43458,7 @@ InMemoryMediaProvider = __decorate([
|
|
|
43456
43458
|
WpMediaProvider("inMemory")
|
|
43457
43459
|
], InMemoryMediaProvider);
|
|
43458
43460
|
|
|
43459
|
-
const awsSecretsSettings = new AppInMemorySettings();
|
|
43461
|
+
const awsSecretsSettings = new AppInMemorySettings("awsSecretsSettings");
|
|
43460
43462
|
|
|
43461
43463
|
const WpSecretsProvider = (providerId) => applyDecorators(Injectable(), SetMetadata(EntityManagerSymbols.SecretsProvider, {
|
|
43462
43464
|
providerId,
|