@tstdl/base 0.92.85 → 0.92.87
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/ai/ai.service.d.ts +4 -4
- package/ai/ai.service.js +27 -14
- package/ai/types.d.ts +5 -4
- package/api/server/gateway.js +1 -1
- package/authentication/authentication.api.d.ts +9 -9
- package/authentication/models/schemas.d.ts +2 -2
- package/authentication/server/authentication-ancillary.service.d.ts +6 -4
- package/authentication/server/authentication-ancillary.service.js +5 -5
- package/cancellation/token.d.ts +1 -1
- package/context/context.d.ts +1 -9
- package/context/context.js +8 -5
- package/document-management/api/document-management.api.d.ts +142 -110
- package/document-management/models/document-category.model.d.ts +1 -0
- package/document-management/models/document-category.model.js +2 -0
- package/document-management/models/document-collection-document.model.js +7 -3
- package/document-management/models/document-property-value.model.d.ts +13 -14
- package/document-management/models/document-property-value.model.js +60 -27
- package/document-management/models/document-property.model.d.ts +2 -0
- package/document-management/models/document-property.model.js +4 -1
- package/document-management/models/document-request-assignment-task-collection.model.d.ts +7 -0
- package/document-management/models/document-request-assignment-task-collection.model.js +32 -0
- package/document-management/models/document-request-assignment-task.model.d.ts +14 -0
- package/document-management/models/document-request-assignment-task.model.js +72 -0
- package/document-management/models/document-request-collection.model.d.ts +1 -0
- package/document-management/models/document-request-collection.model.js +7 -3
- package/document-management/models/document-request-file.model.d.ts +7 -2
- package/document-management/models/document-request-file.model.js +29 -4
- package/document-management/models/document-request.model.d.ts +1 -0
- package/document-management/models/document-requests-template.js +2 -0
- package/document-management/models/document-type-property.model.js +7 -3
- package/document-management/models/document-type.model.d.ts +1 -0
- package/document-management/models/document-type.model.js +7 -3
- package/document-management/models/document.model.d.ts +5 -2
- package/document-management/models/document.model.js +21 -6
- package/document-management/models/index.d.ts +2 -0
- package/document-management/models/index.js +2 -0
- package/document-management/models/service-models/document.service-model.d.ts +84 -65
- package/document-management/models/service-models/document.service-model.js +11 -6
- package/document-management/models/service-models/document.view-model.d.ts +1 -1
- package/document-management/models/service-models/document.view-model.js +2 -2
- package/document-management/server/drizzle/{0000_sloppy_fenris.sql → 0000_cool_victor_mancha.sql} +99 -43
- package/document-management/server/drizzle/meta/0000_snapshot.json +518 -130
- package/document-management/server/drizzle/meta/_journal.json +2 -2
- package/document-management/server/drizzle.config.js +1 -1
- package/document-management/server/module.d.ts +3 -2
- package/document-management/server/module.js +4 -2
- package/document-management/server/schemas.d.ts +36 -0
- package/document-management/server/schemas.js +37 -0
- package/document-management/server/services/document-management-ancillary.service.d.ts +4 -0
- package/document-management/server/services/document-management-ancillary.service.js +13 -0
- package/document-management/server/services/document-management.service.d.ts +71 -22
- package/document-management/server/services/document-management.service.js +528 -81
- package/document-management/server/services/index.d.ts +1 -0
- package/document-management/server/services/index.js +1 -0
- package/eslint.config.js +1 -0
- package/examples/document-management/main.d.ts +5 -0
- package/examples/document-management/main.js +20 -2
- package/examples/orm/schemas.d.ts +1 -1
- package/file/index.d.ts +1 -0
- package/file/index.js +1 -0
- package/file/temporary-file.d.ts +17 -0
- package/file/temporary-file.js +49 -0
- package/http/server/http-server-response.d.ts +2 -0
- package/http/server/http-server-response.js +13 -0
- package/injector/index.d.ts +1 -0
- package/injector/index.js +1 -0
- package/injector/injector.js +19 -7
- package/injector/interfaces.d.ts +1 -1
- package/injector/interfaces.js +1 -1
- package/injector/resolution.d.ts +15 -0
- package/injector/resolution.js +6 -0
- package/logger/console/logger.d.ts +1 -1
- package/logger/logger.d.ts +1 -1
- package/mail/drizzle.config.js +1 -1
- package/mail/models/schemas.d.ts +1 -1
- package/object-storage/object-storage.d.ts +5 -7
- package/object-storage/s3/s3.object-storage.d.ts +0 -1
- package/object-storage/s3/s3.object-storage.js +0 -3
- package/orm/{server/data-types → data-types}/numeric-date.js +2 -3
- package/orm/decorators.d.ts +17 -8
- package/orm/decorators.js +13 -7
- package/orm/entity.d.ts +5 -7
- package/orm/entity.js +11 -7
- package/orm/index.d.ts +2 -0
- package/orm/index.js +2 -0
- package/orm/query.d.ts +1 -3
- package/orm/query.js +0 -1
- package/orm/repository.types.d.ts +32 -0
- package/orm/repository.types.js +1 -0
- package/orm/server/database-schema.d.ts +4 -4
- package/orm/server/drizzle/schema-converter.d.ts +1 -1
- package/orm/server/drizzle/schema-converter.js +48 -19
- package/orm/server/index.d.ts +1 -0
- package/orm/server/index.js +1 -0
- package/orm/server/query-converter.d.ts +1 -2
- package/orm/server/query-converter.js +66 -61
- package/orm/server/repository.d.ts +80 -43
- package/orm/server/repository.js +219 -112
- package/orm/server/sqls.d.ts +15 -0
- package/orm/server/sqls.js +19 -0
- package/orm/server/types.d.ts +3 -3
- package/orm/types.d.ts +4 -4
- package/orm/utils.d.ts +3 -0
- package/orm/utils.js +6 -0
- package/package.json +23 -19
- package/pdf/pdf.service.d.ts +0 -1
- package/pdf/pdf.service.js +1 -95
- package/pdf/utils.d.ts +3 -1
- package/pdf/utils.js +129 -4
- package/promise/lazy-promise.d.ts +3 -3
- package/queue/enqueue-batch.d.ts +1 -0
- package/queue/enqueue-batch.js +1 -1
- package/queue/mongo/queue.d.ts +9 -4
- package/queue/mongo/queue.js +5 -6
- package/queue/postgres/drizzle/0000_zippy_moondragon.sql +11 -0
- package/queue/postgres/drizzle/meta/0000_snapshot.json +90 -0
- package/queue/postgres/drizzle/meta/_journal.json +13 -0
- package/queue/postgres/drizzle.config.d.ts +2 -0
- package/queue/postgres/drizzle.config.js +11 -0
- package/queue/postgres/index.d.ts +4 -0
- package/queue/postgres/index.js +4 -0
- package/queue/postgres/job.model.d.ts +13 -0
- package/queue/postgres/job.model.js +55 -0
- package/queue/postgres/module.d.ts +9 -0
- package/queue/postgres/module.js +29 -0
- package/queue/postgres/queue.d.ts +28 -0
- package/queue/postgres/queue.js +147 -0
- package/queue/postgres/queue.provider.d.ts +7 -0
- package/queue/postgres/queue.provider.js +21 -0
- package/queue/postgres/schemas.d.ts +3 -0
- package/queue/postgres/schemas.js +4 -0
- package/queue/provider.d.ts +2 -1
- package/queue/queue.d.ts +32 -6
- package/queue/queue.js +43 -0
- package/schema/schemas/object.d.ts +1 -1
- package/utils/date-time.d.ts +4 -2
- package/utils/date-time.js +10 -3
- package/utils/format-error.js +0 -1
- package/utils/object/lazy-property.js +0 -1
- package/utils/timing.d.ts +4 -3
- package/utils/timing.js +3 -1
- package/utils/try-ignore.d.ts +9 -2
- package/utils/try-ignore.js +30 -6
- package/document-management/models/schemas.d.ts +0 -33
- package/document-management/models/schemas.js +0 -34
- /package/orm/{server/data-types → data-types}/bytea.d.ts +0 -0
- /package/orm/{server/data-types → data-types}/bytea.js +0 -0
- /package/orm/{server/data-types → data-types}/index.d.ts +0 -0
- /package/orm/{server/data-types → data-types}/index.js +0 -0
- /package/orm/{server/data-types → data-types}/numeric-date.d.ts +0 -0
- /package/orm/{server/data-types → data-types}/timestamp.d.ts +0 -0
- /package/orm/{server/data-types → data-types}/timestamp.js +0 -0
package/utils/try-ignore.js
CHANGED
|
@@ -1,12 +1,36 @@
|
|
|
1
|
-
export function tryIgnore(fn) {
|
|
1
|
+
export function tryIgnore(fn, fallback) {
|
|
2
2
|
try {
|
|
3
|
-
fn();
|
|
3
|
+
return fn();
|
|
4
|
+
}
|
|
5
|
+
catch {
|
|
6
|
+
return fallback;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export async function tryIgnoreAsync(fn, fallback) {
|
|
10
|
+
try {
|
|
11
|
+
const value = await fn();
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return fallback;
|
|
4
16
|
}
|
|
5
|
-
catch { /* ignore */ }
|
|
6
17
|
}
|
|
7
|
-
export
|
|
18
|
+
export function tryIgnoreLog(fn, logger, fallback) {
|
|
8
19
|
try {
|
|
9
|
-
|
|
20
|
+
return fn();
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
logger.error(error);
|
|
24
|
+
return fallback;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export async function tryIgnoreLogAsync(fn, logger, fallback) {
|
|
28
|
+
try {
|
|
29
|
+
const value = await fn();
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
logger.error(error);
|
|
34
|
+
return fallback;
|
|
10
35
|
}
|
|
11
|
-
catch { /* ignore */ }
|
|
12
36
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DocumentCategory } from './document-category.model.js';
|
|
2
|
-
import { DocumentCollectionDocument } from './document-collection-document.model.js';
|
|
3
|
-
import { DocumentCollection } from './document-collection.model.js';
|
|
4
|
-
import { DocumentFile } from './document-file.model.js';
|
|
5
|
-
import { DocumentPropertyBooleanValue, DocumentPropertyDecimalValue, DocumentPropertyIntegerValue, DocumentPropertyTextValue } from './document-property-value.model.js';
|
|
6
|
-
import { DocumentProperty } from './document-property.model.js';
|
|
7
|
-
import { DocumentRequestCollection } from './document-request-collection.model.js';
|
|
8
|
-
import { DocumentRequestFile } from './document-request-file.model.js';
|
|
9
|
-
import { DocumentRequestTemplate } from './document-request-template.js';
|
|
10
|
-
import { DocumentRequest } from './document-request.model.js';
|
|
11
|
-
import { DocumentRequestsTemplate } from './document-requests-template.js';
|
|
12
|
-
import { DocumentTypeProperty } from './document-type-property.model.js';
|
|
13
|
-
import { DocumentType } from './document-type.model.js';
|
|
14
|
-
import { Document } from './document.model.js';
|
|
15
|
-
export declare const documentManagementSchema: import("../../orm/server/database-schema.js").DatabaseSchema<"document_management">;
|
|
16
|
-
export declare const dataType: import("drizzle-orm/pg-core").PgEnum<["boolean", "decimal", "text", "integer"]>;
|
|
17
|
-
export declare const documentCategory: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentCategory>;
|
|
18
|
-
export declare const documentCollectionDocument: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentCollectionDocument>;
|
|
19
|
-
export declare const documentCollection: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentCollection>;
|
|
20
|
-
export declare const documentFile: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentFile>;
|
|
21
|
-
export declare const documentPropertyTextValue: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentPropertyTextValue>;
|
|
22
|
-
export declare const documentPropertyIntegerValue: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentPropertyIntegerValue>;
|
|
23
|
-
export declare const documentPropertyDecimalValue: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentPropertyDecimalValue>;
|
|
24
|
-
export declare const documentPropertyBooleanValue: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentPropertyBooleanValue>;
|
|
25
|
-
export declare const documentProperty: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentProperty>;
|
|
26
|
-
export declare const documentRequestCollection: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentRequestCollection>;
|
|
27
|
-
export declare const documentRequestFile: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentRequestFile>;
|
|
28
|
-
export declare const documentRequestTemplate: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentRequestTemplate>;
|
|
29
|
-
export declare const documentRequest: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentRequest>;
|
|
30
|
-
export declare const documentRequestsTemplate: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentRequestsTemplate>;
|
|
31
|
-
export declare const documentTypeProperty: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentTypeProperty>;
|
|
32
|
-
export declare const documentType: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof DocumentType>;
|
|
33
|
-
export declare const document: import("../../orm/server/types.js").PgTableFromType<"document_management", typeof Document>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { databaseSchema } from '../../orm/server/database-schema.js';
|
|
2
|
-
import { DocumentCategory } from './document-category.model.js';
|
|
3
|
-
import { DocumentCollectionDocument } from './document-collection-document.model.js';
|
|
4
|
-
import { DocumentCollection } from './document-collection.model.js';
|
|
5
|
-
import { DocumentFile } from './document-file.model.js';
|
|
6
|
-
import { DocumentPropertyBooleanValue, DocumentPropertyDecimalValue, DocumentPropertyIntegerValue, DocumentPropertyTextValue } from './document-property-value.model.js';
|
|
7
|
-
import { DocumentProperty, DocumentPropertyDataType } from './document-property.model.js';
|
|
8
|
-
import { DocumentRequestCollection } from './document-request-collection.model.js';
|
|
9
|
-
import { DocumentRequestFile } from './document-request-file.model.js';
|
|
10
|
-
import { DocumentRequestTemplate } from './document-request-template.js';
|
|
11
|
-
import { DocumentRequest } from './document-request.model.js';
|
|
12
|
-
import { DocumentRequestsTemplate } from './document-requests-template.js';
|
|
13
|
-
import { DocumentTypeProperty } from './document-type-property.model.js';
|
|
14
|
-
import { DocumentType } from './document-type.model.js';
|
|
15
|
-
import { Document } from './document.model.js';
|
|
16
|
-
export const documentManagementSchema = databaseSchema('document_management');
|
|
17
|
-
export const dataType = documentManagementSchema.getEnum(DocumentPropertyDataType, 'DocumentPropertyDataType');
|
|
18
|
-
export const documentCategory = documentManagementSchema.getTable(DocumentCategory);
|
|
19
|
-
export const documentCollectionDocument = documentManagementSchema.getTable(DocumentCollectionDocument);
|
|
20
|
-
export const documentCollection = documentManagementSchema.getTable(DocumentCollection);
|
|
21
|
-
export const documentFile = documentManagementSchema.getTable(DocumentFile);
|
|
22
|
-
export const documentPropertyTextValue = documentManagementSchema.getTable(DocumentPropertyTextValue);
|
|
23
|
-
export const documentPropertyIntegerValue = documentManagementSchema.getTable(DocumentPropertyIntegerValue);
|
|
24
|
-
export const documentPropertyDecimalValue = documentManagementSchema.getTable(DocumentPropertyDecimalValue);
|
|
25
|
-
export const documentPropertyBooleanValue = documentManagementSchema.getTable(DocumentPropertyBooleanValue);
|
|
26
|
-
export const documentProperty = documentManagementSchema.getTable(DocumentProperty);
|
|
27
|
-
export const documentRequestCollection = documentManagementSchema.getTable(DocumentRequestCollection);
|
|
28
|
-
export const documentRequestFile = documentManagementSchema.getTable(DocumentRequestFile);
|
|
29
|
-
export const documentRequestTemplate = documentManagementSchema.getTable(DocumentRequestTemplate);
|
|
30
|
-
export const documentRequest = documentManagementSchema.getTable(DocumentRequest);
|
|
31
|
-
export const documentRequestsTemplate = documentManagementSchema.getTable(DocumentRequestsTemplate);
|
|
32
|
-
export const documentTypeProperty = documentManagementSchema.getTable(DocumentTypeProperty);
|
|
33
|
-
export const documentType = documentManagementSchema.getTable(DocumentType);
|
|
34
|
-
export const document = documentManagementSchema.getTable(Document);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|