@tstdl/base 0.93.2 → 0.93.4
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 +2 -1
- package/ai/ai.service.js +11 -3
- package/ai/types.d.ts +3 -1
- package/api/server/api-request-token.provider.d.ts +5 -3
- package/api/server/api-request-token.provider.js +12 -4
- package/api/server/gateway.d.ts +1 -9
- package/api/server/gateway.js +67 -36
- package/api/types.d.ts +5 -1
- package/application/application.d.ts +2 -0
- package/application/application.js +3 -1
- package/application/providers.d.ts +1 -1
- package/application/providers.js +1 -1
- package/audit/audit.model.d.ts +14 -9
- package/audit/audit.model.js +36 -27
- package/audit/auditor.d.ts +32 -23
- package/audit/auditor.js +84 -21
- package/audit/drizzle/{0000_tiny_the_captain.sql → 0000_bored_stick.sql} +5 -4
- package/audit/drizzle/meta/0000_snapshot.json +22 -15
- package/audit/drizzle/meta/_journal.json +2 -2
- package/audit/index.d.ts +3 -1
- package/audit/index.js +3 -1
- package/audit/module.d.ts +1 -1
- package/audit/module.js +1 -2
- package/audit/schemas.d.ts +2 -2
- package/audit/schemas.js +1 -1
- package/audit/types.d.ts +2 -1
- package/audit/types.js +2 -1
- package/authentication/models/authentication-credentials.model.js +1 -2
- package/authentication/models/authentication-session.model.d.ts +2 -2
- package/authentication/models/authentication-session.model.js +3 -5
- package/authentication/server/authentication-api-request-token.provider.d.ts +2 -2
- package/authentication/server/authentication-api-request-token.provider.js +8 -5
- package/authentication/server/authentication.api-controller.d.ts +8 -8
- package/authentication/server/authentication.api-controller.js +16 -16
- package/authentication/server/authentication.audit.d.ts +34 -0
- package/authentication/server/authentication.audit.js +1 -0
- package/authentication/server/authentication.service.d.ts +19 -10
- package/authentication/server/authentication.service.js +158 -43
- package/authentication/server/module.d.ts +1 -1
- package/authentication/server/schemas.d.ts +2 -3
- package/authentication/server/schemas.js +2 -3
- package/constants.d.ts +1 -0
- package/constants.js +1 -0
- package/document-management/api/document-management.api.d.ts +74 -74
- package/document-management/models/document-assignment-scope.model.d.ts +1 -2
- package/document-management/models/document-assignment-scope.model.js +4 -6
- package/document-management/models/document-assignment-task.model.d.ts +1 -2
- package/document-management/models/document-assignment-task.model.js +3 -5
- package/document-management/models/document-category.model.d.ts +1 -2
- package/document-management/models/document-category.model.js +3 -4
- package/document-management/models/document-collection-assignment.model.d.ts +1 -2
- package/document-management/models/document-collection-assignment.model.js +5 -7
- package/document-management/models/document-collection.model.d.ts +1 -2
- package/document-management/models/document-collection.model.js +3 -4
- package/document-management/models/document-management-table.d.ts +1 -1
- package/document-management/models/document-management-table.js +1 -1
- package/document-management/models/document-property-value.model.d.ts +1 -2
- package/document-management/models/document-property-value.model.js +5 -8
- package/document-management/models/document-property.model.d.ts +1 -2
- package/document-management/models/document-property.model.js +2 -3
- package/document-management/models/document-request-collection-assignment.model.d.ts +1 -2
- package/document-management/models/document-request-collection-assignment.model.js +4 -6
- package/document-management/models/document-request-template.d.ts +1 -2
- package/document-management/models/document-request-template.js +4 -6
- package/document-management/models/document-request.model.d.ts +1 -1
- package/document-management/models/document-request.model.js +4 -5
- package/document-management/models/document-requests-template.d.ts +1 -1
- package/document-management/models/document-requests-template.js +2 -3
- package/document-management/models/document-tag-assignment.model.d.ts +1 -2
- package/document-management/models/document-tag-assignment.model.js +4 -6
- package/document-management/models/document-tag.model.d.ts +1 -1
- package/document-management/models/document-tag.model.js +2 -3
- package/document-management/models/document-type-property.model.d.ts +1 -2
- package/document-management/models/document-type-property.model.js +4 -6
- package/document-management/models/document-type-validation.model.d.ts +1 -2
- package/document-management/models/document-type-validation.model.js +4 -6
- package/document-management/models/document-type.model.d.ts +1 -2
- package/document-management/models/document-type.model.js +3 -5
- package/document-management/models/document-validation-definition.model.d.ts +1 -2
- package/document-management/models/document-validation-definition.model.js +3 -4
- package/document-management/models/document-validation-execution-related-document.model.d.ts +1 -2
- package/document-management/models/document-validation-execution-related-document.model.js +4 -6
- package/document-management/models/document-validation-execution.model.d.ts +1 -2
- package/document-management/models/document-validation-execution.model.js +8 -9
- package/document-management/models/document-workflow.model.d.ts +1 -2
- package/document-management/models/document-workflow.model.js +5 -7
- package/document-management/models/document.model.d.ts +1 -2
- package/document-management/models/document.model.js +5 -7
- package/document-management/server/api/document-management.api.js +1 -1
- package/document-management/server/module.d.ts +1 -1
- package/document-management/server/module.js +1 -1
- package/document-management/server/schemas.d.ts +1 -1
- package/document-management/server/schemas.js +1 -1
- package/document-management/server/services/document-category-type.service.d.ts +2 -2
- package/document-management/server/services/document-category-type.service.js +1 -2
- package/document-management/server/services/document-collection.service.d.ts +1 -1
- package/document-management/server/services/document-collection.service.js +1 -2
- package/document-management/server/services/document-management-ai.service.js +3 -3
- package/document-management/server/services/document-management.service.js +6 -6
- package/document-management/server/services/document-property.service.d.ts +1 -1
- package/document-management/server/services/document-property.service.js +1 -2
- package/document-management/server/services/document-validation.service.js +2 -2
- package/document-management/server/services/document-workflow.service.d.ts +2 -2
- package/document-management/server/services/document-workflow.service.js +1 -2
- package/document-management/server/services/document.service.d.ts +1 -1
- package/document-management/server/services/document.service.js +1 -2
- package/document-management/server/services/singleton.js +1 -1
- package/document-management/server/validators/ai-validation-executor.d.ts +2 -2
- package/document-management/server/validators/ai-validation-executor.js +6 -6
- package/document-management/server/validators/single-document-validation-executor.d.ts +2 -1
- package/document-management/server/validators/single-document-validation-executor.js +3 -2
- package/document-management/service-models/document.service-model.d.ts +62 -62
- package/document-management/service-models/document.service-model.js +1 -1
- package/document-management/service-models/enriched/enriched-document-management-data.view.js +1 -1
- package/document-management/service-models/enriched/enriched-document.view.d.ts +1 -1
- package/examples/api/authentication.js +2 -2
- package/examples/api/basic-overview.js +2 -2
- package/examples/api/custom-authentication.js +2 -2
- package/examples/api/streaming.js +2 -2
- package/examples/browser/basic.js +2 -2
- package/examples/document-management/main.js +4 -2
- package/examples/http/client.js +2 -2
- package/examples/mail/basic.js +2 -2
- package/examples/pdf/basic.js +2 -2
- package/examples/template/basic.js +2 -2
- package/http/server/http-server-request.d.ts +3 -3
- package/key-value-store/postgres/key-value-store.service.js +1 -2
- package/key-value-store/postgres/models/key-value.model.d.ts +1 -2
- package/key-value-store/postgres/models/key-value.model.js +2 -4
- package/key-value-store/postgres/models/schemas.d.ts +1 -1
- package/key-value-store/postgres/models/schemas.js +1 -1
- package/lock/postgres/lock.js +1 -1
- package/lock/postgres/models/lock.model.d.ts +1 -2
- package/lock/postgres/models/lock.model.js +3 -5
- package/lock/postgres/models/schemas.d.ts +1 -1
- package/lock/postgres/models/schemas.js +1 -1
- package/lock/postgres/provider.js +1 -2
- package/mail/models/mail-log.model.d.ts +1 -1
- package/mail/models/mail-log.model.js +4 -5
- package/mail/models/schemas.d.ts +1 -1
- package/mail/models/schemas.js +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +2 -3
- package/openid-connect/oidc.service.js +1 -1
- package/orm/data-types/bytea.js +1 -1
- package/orm/data-types/numeric-date.js +1 -1
- package/orm/decorators.d.ts +65 -72
- package/orm/decorators.js +42 -40
- package/orm/entity.d.ts +1 -1
- package/orm/entity.js +13 -13
- package/orm/index.d.ts +2 -1
- package/orm/index.js +2 -1
- package/orm/schemas/json.d.ts +1 -1
- package/orm/schemas/json.js +1 -1
- package/orm/schemas/numeric-date.d.ts +1 -1
- package/orm/schemas/numeric-date.js +1 -1
- package/orm/schemas/timestamp.d.ts +1 -1
- package/orm/schemas/timestamp.js +1 -1
- package/orm/schemas/uuid.d.ts +2 -2
- package/orm/schemas/uuid.js +1 -1
- package/orm/server/drizzle/index.js +1 -0
- package/orm/server/drizzle/schema-converter.d.ts +15 -0
- package/orm/server/drizzle/schema-converter.js +300 -0
- package/orm/server/repository.d.ts +1 -1
- package/orm/server/repository.js +12 -9
- package/orm/sqls.d.ts +1 -1
- package/orm/sqls.js +1 -1
- package/orm/types.d.ts +2 -6
- package/orm/types.js +1 -4
- package/package.json +12 -10
- package/queue/postgres/job.model.d.ts +3 -3
- package/queue/postgres/job.model.js +5 -6
- package/queue/postgres/queue.js +2 -2
- package/queue/postgres/schemas.d.ts +1 -1
- package/queue/postgres/schemas.js +1 -1
- package/supports.d.ts +1 -0
- package/supports.js +2 -1
- package/types/types.d.ts +12 -1
- package/utils/object/object.d.ts +3 -1
- package/utils/object/object.js +7 -1
- package/orm/server/drizzle/schema-converter.ts +0 -408
- /package/orm/server/drizzle/{index.ts → index.d.ts} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type SchemaOutput } from '../../schema/index.js';
|
|
2
2
|
export declare const metadataParameterSchema: import("../../schema/index.js").OptionalSchema<Partial<{
|
|
3
|
-
attributes: import("../../orm/
|
|
3
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
4
4
|
}>>;
|
|
5
5
|
export declare const metadataParameterObjectSchema: import("../../schema/index.js").ObjectSchema<{
|
|
6
6
|
metadata?: Partial<{
|
|
7
|
-
attributes: import("../../orm/
|
|
7
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
8
8
|
}> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const setDocumentPropertyParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
11
|
-
propertyId: import("../../orm/
|
|
11
|
+
propertyId: import("../../orm/index.js").Uuid;
|
|
12
12
|
value: string | number | boolean | null;
|
|
13
13
|
metadata?: Partial<{
|
|
14
|
-
attributes: import("../../orm/
|
|
14
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
15
15
|
}> | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const updateDocumentCollectionsParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
@@ -19,8 +19,8 @@ export declare const updateDocumentCollectionsParametersSchema: import("../../sc
|
|
|
19
19
|
archive?: string[] | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const createDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
22
|
-
date?: import("../../orm/
|
|
23
|
-
typeId?: import("../../orm/
|
|
22
|
+
date?: import("../../orm/index.js").NumericDate | null | undefined;
|
|
23
|
+
typeId?: import("../../orm/index.js").Uuid | null | undefined;
|
|
24
24
|
title?: string | null | undefined;
|
|
25
25
|
subtitle?: string | null | undefined;
|
|
26
26
|
summary?: string | null | undefined;
|
|
@@ -39,29 +39,29 @@ export declare const createDocumentParametersSchema: import("../../schema/index.
|
|
|
39
39
|
};
|
|
40
40
|
uploadId: string;
|
|
41
41
|
properties?: {
|
|
42
|
-
propertyId: import("../../orm/
|
|
42
|
+
propertyId: import("../../orm/index.js").Uuid;
|
|
43
43
|
value: string | number | boolean | null;
|
|
44
44
|
metadata?: Partial<{
|
|
45
|
-
attributes: import("../../orm/
|
|
45
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
46
46
|
}> | undefined;
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
tags?: string[] | undefined;
|
|
49
49
|
metadata?: Partial<{
|
|
50
|
-
attributes: import("../../orm/
|
|
50
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
51
51
|
}> | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const updateDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
54
|
-
id: import("../../orm/
|
|
55
|
-
date?: import("../../orm/
|
|
56
|
-
typeId?: import("../../orm/
|
|
54
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
55
|
+
date?: import("../../orm/index.js").NumericDate | null | undefined;
|
|
56
|
+
typeId?: import("../../orm/index.js").Uuid | null | undefined;
|
|
57
57
|
title?: string | null | undefined;
|
|
58
58
|
subtitle?: string | null | undefined;
|
|
59
59
|
comment?: string | null | undefined;
|
|
60
60
|
properties?: {
|
|
61
|
-
propertyId: import("../../orm/
|
|
61
|
+
propertyId: import("../../orm/index.js").Uuid;
|
|
62
62
|
value: string | number | boolean | null;
|
|
63
63
|
metadata?: Partial<{
|
|
64
|
-
attributes: import("../../orm/
|
|
64
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
65
65
|
}> | undefined;
|
|
66
66
|
}[] | undefined;
|
|
67
67
|
collections?: {
|
|
@@ -70,166 +70,166 @@ export declare const updateDocumentParametersSchema: import("../../schema/index.
|
|
|
70
70
|
} | undefined;
|
|
71
71
|
tags?: string[] | undefined;
|
|
72
72
|
metadata?: Partial<{
|
|
73
|
-
attributes: import("../../orm/
|
|
73
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
74
74
|
}> | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
export declare const approveDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
77
|
-
id: import("../../orm/
|
|
77
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
78
78
|
comment: string | null;
|
|
79
79
|
metadata?: Partial<{
|
|
80
|
-
attributes: import("../../orm/
|
|
80
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
81
81
|
}> | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export declare const rejectDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
84
|
-
id: import("../../orm/
|
|
84
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
85
85
|
comment: string | null;
|
|
86
86
|
metadata?: Partial<{
|
|
87
|
-
attributes: import("../../orm/
|
|
87
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
88
88
|
}> | undefined;
|
|
89
89
|
}>;
|
|
90
90
|
export declare const createDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
91
91
|
description: string | null;
|
|
92
92
|
label: string;
|
|
93
93
|
metadata?: Partial<{
|
|
94
|
-
attributes: import("../../orm/
|
|
94
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
95
95
|
}> | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
export declare const updateDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
98
|
-
id: import("../../orm/
|
|
98
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
99
99
|
description?: string | null | undefined;
|
|
100
100
|
tenantId?: string | null | undefined;
|
|
101
101
|
label?: string | undefined;
|
|
102
102
|
metadata?: Partial<{
|
|
103
|
-
attributes: import("../../orm/
|
|
103
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
104
104
|
}> | undefined;
|
|
105
105
|
}>;
|
|
106
106
|
export declare const applyDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
107
|
-
id: import("../../orm/
|
|
107
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
108
108
|
collectionIds: string[];
|
|
109
109
|
metadata?: Partial<{
|
|
110
|
-
attributes: import("../../orm/
|
|
110
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
111
111
|
}> | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const deleteDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
114
|
-
id: import("../../orm/
|
|
114
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
115
115
|
metadata?: Partial<{
|
|
116
|
-
attributes: import("../../orm/
|
|
116
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
117
117
|
}> | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
export declare const createDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
120
|
-
typeId: import("../../orm/
|
|
120
|
+
typeId: import("../../orm/index.js").Uuid;
|
|
121
121
|
comment: string | null;
|
|
122
|
-
requestsTemplateId: import("../../orm/
|
|
122
|
+
requestsTemplateId: import("../../orm/index.js").Uuid;
|
|
123
123
|
metadata?: Partial<{
|
|
124
|
-
attributes: import("../../orm/
|
|
124
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
125
125
|
}> | undefined;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const updateDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
128
|
-
id: import("../../orm/
|
|
128
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
129
129
|
tenantId?: string | null | undefined;
|
|
130
|
-
typeId?: import("../../orm/
|
|
130
|
+
typeId?: import("../../orm/index.js").Uuid | undefined;
|
|
131
131
|
comment?: string | null | undefined;
|
|
132
132
|
metadata?: Partial<{
|
|
133
|
-
attributes: import("../../orm/
|
|
133
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
134
134
|
}> | undefined;
|
|
135
135
|
}>;
|
|
136
136
|
export declare const deleteDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
137
|
-
id: import("../../orm/
|
|
137
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
138
138
|
metadata?: Partial<{
|
|
139
|
-
attributes: import("../../orm/
|
|
139
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
140
140
|
}> | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
export declare const createDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
143
|
-
typeId: import("../../orm/
|
|
143
|
+
typeId: import("../../orm/index.js").Uuid | null;
|
|
144
144
|
comment: string | null;
|
|
145
145
|
collectionIds: string[];
|
|
146
146
|
metadata?: Partial<{
|
|
147
|
-
attributes: import("../../orm/
|
|
147
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
148
148
|
}> | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
export declare const updateDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
151
|
-
id: import("../../orm/
|
|
152
|
-
typeId?: import("../../orm/
|
|
151
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
152
|
+
typeId?: import("../../orm/index.js").Uuid | null | undefined;
|
|
153
153
|
comment?: string | null | undefined;
|
|
154
154
|
metadata?: Partial<{
|
|
155
|
-
attributes: import("../../orm/
|
|
155
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
156
156
|
}> | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
export declare const deleteDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
159
|
-
id: import("../../orm/
|
|
159
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
160
160
|
metadata?: Partial<{
|
|
161
|
-
attributes: import("../../orm/
|
|
161
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
162
162
|
}> | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
export declare const loadDataParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
165
165
|
collectionIds: string | string[];
|
|
166
166
|
}>;
|
|
167
167
|
export declare const createCollectionParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
168
|
-
parentId: import("../../orm/
|
|
168
|
+
parentId: import("../../orm/index.js").Uuid | null;
|
|
169
169
|
metadata?: Partial<{
|
|
170
|
-
attributes: import("../../orm/
|
|
170
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
171
171
|
}> | undefined;
|
|
172
172
|
}>;
|
|
173
173
|
export declare const setDocumentPropertiesParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
174
174
|
properties: {
|
|
175
|
-
propertyId: import("../../orm/
|
|
175
|
+
propertyId: import("../../orm/index.js").Uuid;
|
|
176
176
|
value: string | number | boolean | null;
|
|
177
177
|
metadata?: Partial<{
|
|
178
|
-
attributes: import("../../orm/
|
|
178
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
179
179
|
}> | undefined;
|
|
180
180
|
}[];
|
|
181
181
|
documentId: string;
|
|
182
182
|
}>;
|
|
183
183
|
export declare const createDocumentCategoryParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
184
|
-
parentId: import("../../orm/
|
|
184
|
+
parentId: import("../../orm/index.js").Uuid | null;
|
|
185
185
|
label: string;
|
|
186
186
|
metadata?: Partial<{
|
|
187
|
-
attributes: import("../../orm/
|
|
187
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
188
188
|
}> | undefined;
|
|
189
189
|
}>;
|
|
190
190
|
export declare const createDocumentTypeParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
191
191
|
label: string;
|
|
192
|
-
categoryId: import("../../orm/
|
|
192
|
+
categoryId: import("../../orm/index.js").Uuid;
|
|
193
193
|
metadata?: Partial<{
|
|
194
|
-
attributes: import("../../orm/
|
|
194
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
195
195
|
}> | undefined;
|
|
196
196
|
}>;
|
|
197
197
|
export declare const approveDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
198
|
-
id: import("../../orm/
|
|
198
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
199
199
|
comment: string | null;
|
|
200
200
|
documentMetadata?: Partial<{
|
|
201
|
-
attributes: import("../../orm/
|
|
201
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
202
202
|
}> | undefined;
|
|
203
203
|
requestMetadata?: Partial<{
|
|
204
|
-
attributes: import("../../orm/
|
|
204
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
205
205
|
}> | undefined;
|
|
206
206
|
}>;
|
|
207
207
|
export declare const rejectDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
208
|
-
id: import("../../orm/
|
|
208
|
+
id: import("../../orm/index.js").IsPrimaryKey<import("../../orm/index.js").HasDefault<import("../../orm/index.js").Uuid>>;
|
|
209
209
|
comment: string | null;
|
|
210
210
|
metadata?: Partial<{
|
|
211
|
-
attributes: import("../../orm/
|
|
211
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
212
212
|
}> | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
export declare const createDocumentPropertyParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
215
|
-
dataType: import("../../orm/
|
|
215
|
+
dataType: import("../../orm/index.js").Enum<import("../models/document-property.model.js").DocumentPropertyDataType>;
|
|
216
216
|
label: string;
|
|
217
217
|
metadata?: Partial<{
|
|
218
|
-
attributes: import("../../orm/
|
|
218
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
219
219
|
}> | undefined;
|
|
220
220
|
}>;
|
|
221
221
|
export declare const assignPropertyToTypeParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
222
|
-
typeId: import("../../orm/
|
|
223
|
-
propertyId: import("../../orm/
|
|
222
|
+
typeId: import("../../orm/index.js").Uuid;
|
|
223
|
+
propertyId: import("../../orm/index.js").Uuid;
|
|
224
224
|
metadata?: Partial<{
|
|
225
|
-
attributes: import("../../orm/
|
|
225
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
226
226
|
}> | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
export declare const addOrArchiveDocumentToOrFromCollectionParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
229
|
-
collectionId: import("../../orm/
|
|
230
|
-
documentId: import("../../orm/
|
|
229
|
+
collectionId: import("../../orm/index.js").Uuid;
|
|
230
|
+
documentId: import("../../orm/index.js").Uuid;
|
|
231
231
|
metadata?: Partial<{
|
|
232
|
-
attributes: import("../../orm/
|
|
232
|
+
attributes: import("../../orm/index.js").HasDefault<import("../../orm/index.js").Json<import("../../orm/index.js").EntityMetadataAttributes>>;
|
|
233
233
|
}> | undefined;
|
|
234
234
|
}>;
|
|
235
235
|
export type MetadataParameter = SchemaOutput<typeof metadataParameterObjectSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityMetadata } from '../../orm/
|
|
1
|
+
import { EntityMetadata } from '../../orm/index.js';
|
|
2
2
|
import { array, assign, boolean, enumeration, never, nullable, number, object, omit, oneOrMany, optional, partial, pick, string, union } from '../../schema/index.js';
|
|
3
3
|
import { Document, DocumentAssignmentTarget, DocumentCategory, DocumentCollection, DocumentCollectionAssignment, DocumentProperty, DocumentPropertyValue, DocumentRequest, DocumentRequestsTemplate, DocumentRequestTemplate, DocumentType, DocumentTypeProperty } from '../models/index.js';
|
|
4
4
|
export const metadataParameterSchema = optional(partial(pick(EntityMetadata, 'attributes')));
|
package/document-management/service-models/enriched/enriched-document-management-data.view.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { getEntityMap } from '../../../orm/
|
|
10
|
+
import { getEntityMap } from '../../../orm/index.js';
|
|
11
11
|
import { Memoize } from '../../../utils/function/memoize.js';
|
|
12
12
|
import { group } from '../../../utils/iterable-helpers/group.js';
|
|
13
13
|
import { lazyObject } from '../../../utils/object/lazy-property.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EntityMetadata } from '../../../orm/
|
|
1
|
+
import type { EntityMetadata } from '../../../orm/index.js';
|
|
2
2
|
import type { TypedOmit } from '../../../types/index.js';
|
|
3
3
|
import type { DocumentApproval, DocumentTag, DocumentValidationExecution, DocumentWorkflow } from '../../models/index.js';
|
|
4
4
|
import type { DocumentPropertyValueView, DocumentView } from '../document-management.view-model.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import '../../polyfills.js';
|
|
3
3
|
import { configureApiServer } from '../../api/server/index.js';
|
|
4
4
|
import { Application } from '../../application/application.js';
|
|
5
|
-
import { provideInitializer,
|
|
5
|
+
import { provideInitializer, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
6
6
|
import { AuthenticationApiClient } from '../../authentication/client/api.client.js';
|
|
7
7
|
import { AuthenticationClientService, configureAuthenticationClient } from '../../authentication/client/index.js';
|
|
8
8
|
import { AuthenticationApiController, AuthenticationService as AuthenticationServerService, configureAuthenticationServer } from '../../authentication/server/index.js';
|
|
@@ -51,7 +51,7 @@ function bootstrap() {
|
|
|
51
51
|
configureHttpClient({ baseUrl: 'http://localhost:8000' });
|
|
52
52
|
}
|
|
53
53
|
Application.run('Test', [
|
|
54
|
-
|
|
54
|
+
provideModule(WebServerModule, test),
|
|
55
55
|
provideInitializer(bootstrap),
|
|
56
56
|
provideSignalHandler(),
|
|
57
57
|
]);
|
|
@@ -13,7 +13,7 @@ import { compileClient } from '../../api/client/index.js';
|
|
|
13
13
|
import { defineApi } from '../../api/index.js';
|
|
14
14
|
import { apiController, configureApiServer } from '../../api/server/index.js';
|
|
15
15
|
import { Application } from '../../application/application.js';
|
|
16
|
-
import { provideInitializer,
|
|
16
|
+
import { provideInitializer, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
17
17
|
import { configureUndiciHttpClientAdapter } from '../../http/client/adapters/undici.adapter.js';
|
|
18
18
|
import { configureHttpClient } from '../../http/client/module.js';
|
|
19
19
|
import { configureNodeHttpServer } from '../../http/server/node/module.js';
|
|
@@ -102,6 +102,6 @@ function bootstrap() {
|
|
|
102
102
|
}
|
|
103
103
|
Application.run('Test', [
|
|
104
104
|
provideInitializer(bootstrap),
|
|
105
|
-
|
|
105
|
+
provideModule(WebServerModule, clientTest),
|
|
106
106
|
provideSignalHandler(),
|
|
107
107
|
]);
|
|
@@ -12,7 +12,7 @@ import '../../polyfills.js';
|
|
|
12
12
|
import { Agent } from 'undici';
|
|
13
13
|
import { configureApiServer } from '../../api/server/index.js';
|
|
14
14
|
import { Application } from '../../application/application.js';
|
|
15
|
-
import { provideInitializer,
|
|
15
|
+
import { provideInitializer, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
16
16
|
import { AuthenticationClientService, configureAuthenticationClient, getAuthenticationApiClient } from '../../authentication/index.js';
|
|
17
17
|
import { AuthenticationAncillaryService, AuthenticationApiController, AuthenticationService as AuthenticationServerService, configureAuthenticationServer } from '../../authentication/server/index.js';
|
|
18
18
|
import { configureUndiciHttpClientAdapter } from '../../http/client/adapters/undici.adapter.js';
|
|
@@ -119,6 +119,6 @@ function bootstrap() {
|
|
|
119
119
|
}
|
|
120
120
|
Application.run('Test', [
|
|
121
121
|
provideInitializer(bootstrap),
|
|
122
|
-
|
|
122
|
+
provideModule(WebServerModule, test),
|
|
123
123
|
provideSignalHandler(),
|
|
124
124
|
]);
|
|
@@ -11,7 +11,7 @@ import { compileClient } from '../../api/client/client.js';
|
|
|
11
11
|
import { defineApi } from '../../api/index.js';
|
|
12
12
|
import { apiController, configureApiServer } from '../../api/server/index.js';
|
|
13
13
|
import { Application } from '../../application/application.js';
|
|
14
|
-
import { provideInitializer,
|
|
14
|
+
import { provideInitializer, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
15
15
|
import { configureUndiciHttpClientAdapter } from '../../http/client/adapters/undici.adapter.js';
|
|
16
16
|
import { configureHttpClient } from '../../http/client/module.js';
|
|
17
17
|
import { HttpServerResponse } from '../../http/server/index.js';
|
|
@@ -105,6 +105,6 @@ function eventsSource() {
|
|
|
105
105
|
}
|
|
106
106
|
Application.run('Test', [
|
|
107
107
|
provideInitializer(bootstrap),
|
|
108
|
-
|
|
108
|
+
provideModule(WebServerModule, clientTest),
|
|
109
109
|
provideSignalHandler(),
|
|
110
110
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../polyfills.js';
|
|
2
2
|
import { writeFile } from 'node:fs/promises';
|
|
3
|
-
import { Application,
|
|
3
|
+
import { Application, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
4
4
|
import { BrowserService } from '../../browser/browser.service.js';
|
|
5
5
|
import { inject, injectAsync } from '../../injector/inject.js';
|
|
6
6
|
import { Logger } from '../../logger/logger.js';
|
|
@@ -21,6 +21,6 @@ async function main() {
|
|
|
21
21
|
await page.waitForClose();
|
|
22
22
|
}
|
|
23
23
|
Application.run('Test', [
|
|
24
|
-
|
|
24
|
+
provideModule(main),
|
|
25
25
|
provideSignalHandler(),
|
|
26
26
|
]);
|
|
@@ -9,7 +9,7 @@ import { configureAiService } from '../../ai/index.js';
|
|
|
9
9
|
import { MockApiRequestTokenProvider } from '../../api/server/api-request-token.provider.js';
|
|
10
10
|
import { configureApiServer } from '../../api/server/module.js';
|
|
11
11
|
import { Application } from '../../application/application.js';
|
|
12
|
-
import { provideInitializer,
|
|
12
|
+
import { provideInitializer, provideModule, provideSignalHandler } from '../../application/index.js';
|
|
13
13
|
import { DocumentManagementAuthorizationService } from '../../document-management/index.js';
|
|
14
14
|
import { configureDocumentManagement } from '../../document-management/server/configure.js';
|
|
15
15
|
import { DocumentCategoryTypeService, DocumentCollectionService, DocumentManagementAncillaryService, DocumentManagementApiController, DocumentRequestService } from '../../document-management/server/index.js';
|
|
@@ -18,6 +18,7 @@ import { DocumentManagementService } from '../../document-management/server/serv
|
|
|
18
18
|
import { configureNodeHttpServer } from '../../http/server/node/module.js';
|
|
19
19
|
import { Injector, Singleton } from '../../injector/index.js';
|
|
20
20
|
import { inject, injectManyAsync, runInInjectionContext } from '../../injector/inject.js';
|
|
21
|
+
import { PrettyPrintLogFormatter, provideConsoleLogTransport } from '../../logger/index.js';
|
|
21
22
|
import { configureLocalMessageBus } from '../../message-bus/index.js';
|
|
22
23
|
import { WebServerModule } from '../../module/index.js';
|
|
23
24
|
import { configureS3ObjectStorage } from '../../object-storage/index.js';
|
|
@@ -155,6 +156,7 @@ async function main() {
|
|
|
155
156
|
}
|
|
156
157
|
Application.run('DocumentManagementTest', [
|
|
157
158
|
provideInitializer(bootstrap),
|
|
158
|
-
|
|
159
|
+
provideModule(main, WebServerModule),
|
|
159
160
|
provideSignalHandler(),
|
|
161
|
+
provideConsoleLogTransport(PrettyPrintLogFormatter),
|
|
160
162
|
]);
|
package/examples/http/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../polyfills.js';
|
|
2
2
|
import { Application } from '../../application/application.js';
|
|
3
|
-
import {
|
|
3
|
+
import { provideModule, provideSignalHandler } from '../../application/index.js';
|
|
4
4
|
import { configureUndiciHttpClientAdapter } from '../../http/client/adapters/undici.adapter.js';
|
|
5
5
|
import { HttpClient } from '../../http/client/index.js';
|
|
6
6
|
import { inject } from '../../injector/inject.js';
|
|
@@ -17,6 +17,6 @@ async function main() {
|
|
|
17
17
|
console.log(response.asObject(), body);
|
|
18
18
|
}
|
|
19
19
|
Application.run('Test', [
|
|
20
|
-
|
|
20
|
+
provideModule(main),
|
|
21
21
|
provideSignalHandler(),
|
|
22
22
|
]);
|
package/examples/mail/basic.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { Application } from '../../application/application.js';
|
|
4
|
-
import {
|
|
4
|
+
import { provideModule, provideSignalHandler } from '../../application/index.js';
|
|
5
5
|
import { injectAsync } from '../../injector/inject.js';
|
|
6
6
|
import { NodemailerMailClient } from '../../mail/clients/nodemailer.mail-client.js';
|
|
7
7
|
import { MailService, configureMail } from '../../mail/index.js';
|
|
@@ -45,6 +45,6 @@ async function test() {
|
|
|
45
45
|
console.log(result);
|
|
46
46
|
}
|
|
47
47
|
Application.run('Test', [
|
|
48
|
-
|
|
48
|
+
provideModule(test),
|
|
49
49
|
provideSignalHandler(),
|
|
50
50
|
]);
|
package/examples/pdf/basic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { writeFileSync } from 'node:fs';
|
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { Application } from '../../application/application.js';
|
|
5
|
-
import {
|
|
5
|
+
import { provideModule, provideSignalHandler } from '../../application/index.js';
|
|
6
6
|
import { BrowserService } from '../../browser/browser.service.js';
|
|
7
7
|
import { inject } from '../../injector/inject.js';
|
|
8
8
|
import { Injector } from '../../injector/injector.js';
|
|
@@ -51,6 +51,6 @@ async function main() {
|
|
|
51
51
|
await page2.waitForClose();
|
|
52
52
|
}
|
|
53
53
|
Application.run('Test', [
|
|
54
|
-
|
|
54
|
+
provideModule(main),
|
|
55
55
|
provideSignalHandler(),
|
|
56
56
|
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { Application } from '../../application/application.js';
|
|
4
|
-
import {
|
|
4
|
+
import { provideModule, provideSignalHandler } from '../../application/index.js';
|
|
5
5
|
import { inject } from '../../injector/inject.js';
|
|
6
6
|
import { configureTemplates, TemplateService } from '../../templates/index.js';
|
|
7
7
|
import { configureFileTemplateProvider, FileTemplateProvider } from '../../templates/providers/file.template-provider.js';
|
|
@@ -35,6 +35,6 @@ async function test() {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
Application.run('Test', [
|
|
38
|
-
|
|
38
|
+
provideModule(test),
|
|
39
39
|
provideSignalHandler(),
|
|
40
40
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Record } from '../../types/index.js';
|
|
2
2
|
import { CookieParser } from '../cookie-parser.js';
|
|
3
3
|
import type { HttpBodySource } from '../http-body.js';
|
|
4
4
|
import { HttpBody } from '../http-body.js';
|
|
@@ -7,7 +7,7 @@ import type { HttpQuery } from '../http-query.js';
|
|
|
7
7
|
import type { HttpMethod } from '../types.js';
|
|
8
8
|
export type HttpServerRequestObject = Pick<HttpServerRequest, 'url' | 'method' | 'headers' | 'query' | 'ip'> & {
|
|
9
9
|
body: HttpBody | HttpBodySource;
|
|
10
|
-
context?:
|
|
10
|
+
context?: Record<string>;
|
|
11
11
|
};
|
|
12
12
|
export declare class HttpServerRequest {
|
|
13
13
|
readonly url: URL;
|
|
@@ -17,7 +17,7 @@ export declare class HttpServerRequest {
|
|
|
17
17
|
readonly query: HttpQuery;
|
|
18
18
|
readonly body: HttpBody;
|
|
19
19
|
readonly ip: string;
|
|
20
|
-
context:
|
|
20
|
+
context: Record<string>;
|
|
21
21
|
get hasBody(): boolean;
|
|
22
22
|
constructor(data: HttpServerRequestObject);
|
|
23
23
|
}
|
|
@@ -5,8 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Singleton, injectArgument, provide } from '../../injector/index.js';
|
|
8
|
-
import { DatabaseConfig, Transactional } from '../../orm/server/index.js';
|
|
9
|
-
import { EntityRepositoryConfig, injectRepository } from '../../orm/server/repository.js';
|
|
8
|
+
import { DatabaseConfig, EntityRepositoryConfig, Transactional, injectRepository } from '../../orm/server/index.js';
|
|
10
9
|
import { objectEntries } from '../../utils/object/object.js';
|
|
11
10
|
import { assertDefinedPass, isDefined, isUndefined } from '../../utils/type-guards.js';
|
|
12
11
|
import { KeyValueStore } from '../key-value.store.js';
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Table } from '../../../orm/
|
|
11
|
-
import { Entity } from '../../../orm/entity.js';
|
|
12
|
-
import { Json, Unique } from '../../../orm/types.js';
|
|
10
|
+
import { Entity, JsonProperty, Table, Unique } from '../../../orm/index.js';
|
|
13
11
|
import { any, StringProperty } from '../../../schema/index.js';
|
|
14
12
|
let KeyValue = class KeyValue extends Entity {
|
|
15
13
|
module;
|
|
@@ -25,7 +23,7 @@ __decorate([
|
|
|
25
23
|
__metadata("design:type", String)
|
|
26
24
|
], KeyValue.prototype, "key", void 0);
|
|
27
25
|
__decorate([
|
|
28
|
-
|
|
26
|
+
JsonProperty({ schema: any() }),
|
|
29
27
|
__metadata("design:type", Object)
|
|
30
28
|
], KeyValue.prototype, "value", void 0);
|
|
31
29
|
KeyValue = __decorate([
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KeyValue } from './key-value.model.js';
|
|
2
|
-
export declare const keyValueSchema: import("../../../orm/server/
|
|
2
|
+
export declare const keyValueSchema: import("../../../orm/server/index.js").DatabaseSchema<"key_value_store">;
|
|
3
3
|
export declare const keyValue: import("../../../orm/server/types.js").PgTableFromType<typeof KeyValue, "key_value_store">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { databaseSchema } from '../../../orm/server/
|
|
1
|
+
import { databaseSchema } from '../../../orm/server/index.js';
|
|
2
2
|
import { KeyValue } from './key-value.model.js';
|
|
3
3
|
export const keyValueSchema = databaseSchema('key_value_store');
|
|
4
4
|
export const keyValue = keyValueSchema.getTable(KeyValue);
|
package/lock/postgres/lock.js
CHANGED
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { and, eq, lte, sql } from 'drizzle-orm';
|
|
11
11
|
import { CancellationToken } from '../../cancellation/index.js';
|
|
12
12
|
import { Injectable } from '../../injector/decorators.js';
|
|
13
|
-
import { TRANSACTION_TIMESTAMP } from '../../orm/
|
|
13
|
+
import { TRANSACTION_TIMESTAMP } from '../../orm/index.js';
|
|
14
14
|
import { currentTimestamp } from '../../utils/date-time.js';
|
|
15
15
|
import { cancelableTimeoutUntil } from '../../utils/timing.js';
|
|
16
16
|
import { assertDefined, isDefined, isString, isUndefined } from '../../utils/type-guards.js';
|