@tstdl/base 0.90.92 → 0.91.0-beta10
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/api/types.d.ts +1 -1
- package/authentication/authentication.api.d.ts +56 -57
- package/authentication/authentication.api.js +1 -6
- package/authentication/client/api.client.d.ts +4 -5
- package/authentication/client/api.client.js +1 -2
- package/authentication/client/http-client.middleware.d.ts +1 -1
- package/browser/pdf-options.js +8 -9
- package/errors/custom.error.d.ts +5 -5
- package/examples/api/basic-overview.js +4 -4
- package/http/client/http-client-request.d.ts +1 -2
- package/http/client/module.d.ts +1 -1
- package/image-service/image-service.js +4 -7
- package/mail/mail.client.d.ts +2 -2
- package/mail/mail.client.js +3 -5
- package/orm/decorators.d.ts +1 -0
- package/orm/decorators.js +4 -0
- package/orm/entity.js +1 -1
- package/orm/index.d.ts +4 -0
- package/orm/index.js +4 -0
- package/orm/repository.d.ts +6 -8
- package/orm/repository.js +7 -0
- package/orm/schema-converter.d.ts +99 -0
- package/orm/schema-converter.js +74 -0
- package/orm/schema.d.ts +3 -0
- package/orm/schema.js +1 -0
- package/orm/types.d.ts +8 -0
- package/orm/types.js +6 -0
- package/package.json +7 -5
- package/reflection/registry.d.ts +1 -1
- package/reflection/utils.d.ts +2 -2
- package/schema/decorators/class.d.ts +1 -1
- package/schema/decorators/index.d.ts +0 -2
- package/schema/decorators/index.js +0 -2
- package/schema/decorators/property.d.ts +6 -5
- package/schema/decorators/property.js +10 -14
- package/schema/decorators/types.d.ts +7 -12
- package/schema/decorators/utils.d.ts +2 -15
- package/schema/decorators/utils.js +4 -43
- package/schema/index.d.ts +1 -6
- package/schema/index.js +15 -6
- package/schema/schema.d.ts +89 -14
- package/schema/schema.error.d.ts +4 -6
- package/schema/schema.error.js +6 -10
- package/schema/schema.js +74 -276
- package/schema/schemas/any.d.ts +7 -5
- package/schema/schemas/any.js +10 -6
- package/schema/schemas/array.d.ts +11 -12
- package/schema/schemas/array.js +29 -19
- package/schema/schemas/bigint.d.ts +9 -0
- package/schema/schemas/bigint.js +19 -0
- package/schema/schemas/boolean.d.ts +11 -5
- package/schema/schemas/boolean.js +41 -6
- package/schema/schemas/date.d.ts +9 -7
- package/schema/schemas/date.js +24 -18
- package/schema/schemas/defaulted.d.ts +11 -6
- package/schema/schemas/defaulted.js +23 -8
- package/schema/schemas/enumeration.d.ts +10 -5
- package/schema/schemas/enumeration.js +25 -15
- package/schema/schemas/function.d.ts +8 -0
- package/schema/schemas/function.js +14 -0
- package/schema/schemas/index.d.ts +5 -6
- package/schema/schemas/index.js +5 -6
- package/schema/schemas/instance.d.ts +11 -3
- package/schema/schemas/instance.js +25 -4
- package/schema/schemas/literal.d.ts +10 -5
- package/schema/schemas/literal.js +25 -15
- package/schema/schemas/never.d.ts +6 -0
- package/schema/schemas/never.js +11 -0
- package/schema/schemas/nullable.d.ts +11 -6
- package/schema/schemas/nullable.js +24 -7
- package/schema/schemas/number.d.ts +9 -7
- package/schema/schemas/number.js +28 -23
- package/schema/schemas/object.d.ts +84 -7
- package/schema/schemas/object.js +180 -6
- package/schema/schemas/one-or-many.d.ts +10 -7
- package/schema/schemas/one-or-many.js +18 -11
- package/schema/schemas/optional.d.ts +11 -7
- package/schema/schemas/optional.js +24 -6
- package/schema/schemas/readable-stream.d.ts +8 -6
- package/schema/schemas/readable-stream.js +10 -5
- package/schema/schemas/regexp.d.ts +8 -6
- package/schema/schemas/regexp.js +24 -6
- package/schema/schemas/simple.d.ts +27 -0
- package/schema/schemas/simple.js +57 -0
- package/schema/schemas/string.d.ts +9 -21
- package/schema/schemas/string.js +20 -34
- package/schema/schemas/symbol.d.ts +8 -0
- package/schema/schemas/symbol.js +19 -0
- package/schema/schemas/transform.d.ts +9 -5
- package/schema/schemas/transform.js +19 -6
- package/schema/schemas/uint8-array.d.ts +9 -5
- package/schema/schemas/uint8-array.js +17 -26
- package/schema/schemas/union.d.ts +14 -7
- package/schema/schemas/union.js +30 -11
- package/schema/schemas/unknown.d.ts +7 -5
- package/schema/schemas/unknown.js +11 -7
- package/schema/testable.d.ts +3 -0
- package/schema/testable.js +33 -0
- package/schema/types.d.ts +31 -0
- package/schema/types.js +1 -0
- package/schema-old/decorators/class.d.ts +3 -0
- package/schema-old/decorators/class.js +5 -0
- package/schema-old/decorators/index.d.ts +6 -0
- package/schema-old/decorators/index.js +6 -0
- package/schema-old/decorators/property.d.ts +6 -0
- package/schema-old/decorators/property.js +17 -0
- package/schema-old/decorators/types.d.ts +19 -0
- package/schema-old/decorators/types.js +1 -0
- package/schema-old/decorators/utils.d.ts +15 -0
- package/schema-old/decorators/utils.js +48 -0
- package/schema-old/index.d.ts +10 -0
- package/schema-old/index.js +10 -0
- package/schema-old/schema.d.ts +15 -0
- package/schema-old/schema.error.d.ts +26 -0
- package/schema-old/schema.error.js +64 -0
- package/schema-old/schema.js +283 -0
- package/schema-old/schemas/any.d.ts +5 -0
- package/schema-old/schemas/any.js +9 -0
- package/schema-old/schemas/array.d.ts +12 -0
- package/schema-old/schemas/array.js +23 -0
- package/schema-old/schemas/boolean.d.ts +5 -0
- package/schema-old/schemas/boolean.js +9 -0
- package/schema-old/schemas/date.d.ts +8 -0
- package/schema-old/schemas/date.js +22 -0
- package/schema-old/schemas/defaulted.d.ts +6 -0
- package/schema-old/schemas/defaulted.js +10 -0
- package/schema-old/schemas/enumeration.d.ts +6 -0
- package/schema-old/schemas/enumeration.js +17 -0
- package/schema-old/schemas/index.d.ts +26 -0
- package/schema-old/schemas/index.js +26 -0
- package/schema-old/schemas/instance.d.ts +3 -0
- package/schema-old/schemas/instance.js +5 -0
- package/schema-old/schemas/literal.d.ts +5 -0
- package/schema-old/schemas/literal.js +17 -0
- package/schema-old/schemas/nullable.d.ts +6 -0
- package/schema-old/schemas/nullable.js +9 -0
- package/schema-old/schemas/number.d.ts +9 -0
- package/schema-old/schemas/number.js +27 -0
- package/schema-old/schemas/object.d.ts +7 -0
- package/schema-old/schemas/object.js +12 -0
- package/schema-old/schemas/one-or-many.d.ts +9 -0
- package/schema-old/schemas/one-or-many.js +15 -0
- package/schema-old/schemas/optional.d.ts +7 -0
- package/schema-old/schemas/optional.js +8 -0
- package/schema-old/schemas/readable-stream.d.ts +6 -0
- package/schema-old/schemas/readable-stream.js +9 -0
- package/schema-old/schemas/regexp.d.ts +6 -0
- package/schema-old/schemas/regexp.js +9 -0
- package/schema-old/schemas/string.d.ts +22 -0
- package/schema-old/schemas/string.js +38 -0
- package/schema-old/schemas/transform.d.ts +5 -0
- package/schema-old/schemas/transform.js +7 -0
- package/schema-old/schemas/uint8-array.d.ts +10 -0
- package/schema-old/schemas/uint8-array.js +29 -0
- package/schema-old/schemas/union.d.ts +7 -0
- package/schema-old/schemas/union.js +13 -0
- package/schema-old/schemas/unknown.d.ts +5 -0
- package/schema-old/schemas/unknown.js +9 -0
- package/templates/resolvers/string.template-resolver.d.ts +0 -1
- package/templates/resolvers/string.template-resolver.js +1 -5
- package/templates/template.model.js +1 -1
- package/types.d.ts +2 -0
- package/utils/type-guards.js +1 -1
- /package/{schema → schema-old}/array-constraints/index.d.ts +0 -0
- /package/{schema → schema-old}/array-constraints/index.js +0 -0
- /package/{schema → schema-old}/array-constraints/maximum-length.d.ts +0 -0
- /package/{schema → schema-old}/array-constraints/maximum-length.js +0 -0
- /package/{schema → schema-old}/array-constraints/minimum-length.d.ts +0 -0
- /package/{schema → schema-old}/array-constraints/minimum-length.js +0 -0
- /package/{schema → schema-old}/coercers/boolean.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/boolean.coercer.js +0 -0
- /package/{schema → schema-old}/coercers/date.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/date.coercer.js +0 -0
- /package/{schema → schema-old}/coercers/index.d.ts +0 -0
- /package/{schema → schema-old}/coercers/index.js +0 -0
- /package/{schema → schema-old}/coercers/number.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/number.coercer.js +0 -0
- /package/{schema → schema-old}/coercers/regexp.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/regexp.coercer.js +0 -0
- /package/{schema → schema-old}/coercers/string.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/string.coercer.js +0 -0
- /package/{schema → schema-old}/coercers/uint8-array.coercer.d.ts +0 -0
- /package/{schema → schema-old}/coercers/uint8-array.coercer.js +0 -0
- /package/{schema → schema-old}/constraints/enumeration.d.ts +0 -0
- /package/{schema → schema-old}/constraints/enumeration.js +0 -0
- /package/{schema → schema-old}/constraints/generic.d.ts +0 -0
- /package/{schema → schema-old}/constraints/generic.js +0 -0
- /package/{schema → schema-old}/constraints/index.d.ts +0 -0
- /package/{schema → schema-old}/constraints/index.js +0 -0
- /package/{schema → schema-old}/constraints/integer.d.ts +0 -0
- /package/{schema → schema-old}/constraints/integer.js +0 -0
- /package/{schema → schema-old}/constraints/length.d.ts +0 -0
- /package/{schema → schema-old}/constraints/length.js +0 -0
- /package/{schema → schema-old}/constraints/literal.d.ts +0 -0
- /package/{schema → schema-old}/constraints/literal.js +0 -0
- /package/{schema → schema-old}/constraints/maximum-date.d.ts +0 -0
- /package/{schema → schema-old}/constraints/maximum-date.js +0 -0
- /package/{schema → schema-old}/constraints/maximum-length.d.ts +0 -0
- /package/{schema → schema-old}/constraints/maximum-length.js +0 -0
- /package/{schema → schema-old}/constraints/maximum.d.ts +0 -0
- /package/{schema → schema-old}/constraints/maximum.js +0 -0
- /package/{schema → schema-old}/constraints/minimum-date.d.ts +0 -0
- /package/{schema → schema-old}/constraints/minimum-date.js +0 -0
- /package/{schema → schema-old}/constraints/minimum-length.d.ts +0 -0
- /package/{schema → schema-old}/constraints/minimum-length.js +0 -0
- /package/{schema → schema-old}/constraints/minimum.d.ts +0 -0
- /package/{schema → schema-old}/constraints/minimum.js +0 -0
- /package/{schema → schema-old}/constraints/pattern.d.ts +0 -0
- /package/{schema → schema-old}/constraints/pattern.js +0 -0
- /package/{schema → schema-old}/decorators/coerce.d.ts +0 -0
- /package/{schema → schema-old}/decorators/coerce.js +0 -0
- /package/{schema → schema-old}/decorators/constraint.d.ts +0 -0
- /package/{schema → schema-old}/decorators/constraint.js +0 -0
- /package/{schema → schema-old}/schemas/assign.d.ts +0 -0
- /package/{schema → schema-old}/schemas/assign.js +0 -0
- /package/{schema → schema-old}/schemas/constraint.d.ts +0 -0
- /package/{schema → schema-old}/schemas/constraint.js +0 -0
- /package/{schema → schema-old}/schemas/omit.d.ts +0 -0
- /package/{schema → schema-old}/schemas/omit.js +0 -0
- /package/{schema → schema-old}/schemas/partial.d.ts +0 -0
- /package/{schema → schema-old}/schemas/partial.js +0 -0
- /package/{schema → schema-old}/schemas/pick.d.ts +0 -0
- /package/{schema → schema-old}/schemas/pick.js +0 -0
- /package/{schema → schema-old}/schemas/record.d.ts +0 -0
- /package/{schema → schema-old}/schemas/record.js +0 -0
- /package/{schema → schema-old}/transformers/generic.d.ts +0 -0
- /package/{schema → schema-old}/transformers/generic.js +0 -0
- /package/{schema → schema-old}/transformers/index.d.ts +0 -0
- /package/{schema → schema-old}/transformers/index.js +0 -0
- /package/{schema → schema-old}/transformers/lowercase.d.ts +0 -0
- /package/{schema → schema-old}/transformers/lowercase.js +0 -0
- /package/{schema → schema-old}/transformers/trim.d.ts +0 -0
- /package/{schema → schema-old}/transformers/trim.js +0 -0
- /package/{schema → schema-old}/transformers/uppercase.d.ts +0 -0
- /package/{schema → schema-old}/transformers/uppercase.js +0 -0
- /package/{schema → schema-old}/types/index.d.ts +0 -0
- /package/{schema → schema-old}/types/index.js +0 -0
- /package/{schema → schema-old}/types/schema-array-constraint.d.ts +0 -0
- /package/{schema → schema-old}/types/schema-array-constraint.js +0 -0
- /package/{schema → schema-old}/types/schema-value-coercer.d.ts +0 -0
- /package/{schema → schema-old}/types/schema-value-coercer.js +0 -0
- /package/{schema → schema-old}/types/schema-value-constraint.d.ts +0 -0
- /package/{schema → schema-old}/types/schema-value-constraint.js +0 -0
- /package/{schema → schema-old}/types/schema-value-transformer.d.ts +0 -0
- /package/{schema → schema-old}/types/schema-value-transformer.js +0 -0
- /package/{schema → schema-old}/types/types.d.ts +0 -0
- /package/{schema → schema-old}/types/types.js +0 -0
- /package/{schema → schema-old}/utils/index.d.ts +0 -0
- /package/{schema → schema-old}/utils/index.js +0 -0
- /package/{schema → schema-old}/utils/schema.d.ts +0 -0
- /package/{schema → schema-old}/utils/schema.js +0 -0
- /package/{schema → schema-old}/utils/value-type.d.ts +0 -0
- /package/{schema → schema-old}/utils/value-type.js +0 -0
package/api/types.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type ApiEndpointParametersSchema<T extends ApiDefinition, K extends ApiEn
|
|
|
91
91
|
export type ApiEndpointBodySchema<T extends ApiDefinition, K extends ApiEndpointKeys<T>> = NonUndefinable<ApiEndpoint<T, K>['body']>;
|
|
92
92
|
export type ApiEndpointResultSchema<T extends ApiDefinition, K extends ApiEndpointKeys<T>> = NonUndefinable<ApiEndpoint<T, K>['result']>;
|
|
93
93
|
export type ApiBinaryType = typeof Uint8Array | typeof Blob | typeof ReadableStream<any>;
|
|
94
|
-
export type ApiInputType<T extends SchemaTestable> = T extends ApiBinaryType ?
|
|
94
|
+
export type ApiInputType<T extends SchemaTestable> = T extends ApiBinaryType ? InstanceType<ApiBinaryType> : T extends typeof ServerSentEvents ? ServerSentEventsSource : T extends SchemaTestable ? SchemaOutput<T> : never;
|
|
95
95
|
export type ApiOutputType<T extends SchemaTestable> = T extends typeof ReadableStream ? ReadableStream<Uint8Array> : T extends SchemaTestable ? SchemaOutput<T> : never;
|
|
96
96
|
export type ApiParameters<T extends ApiDefinition, K extends ApiEndpointKeys<T>> = ApiInputType<ApiEndpointParametersSchema<T, K>>;
|
|
97
97
|
export type ApiClientBody<T extends ApiDefinition, K extends ApiEndpointKeys<T>> = ApiInputType<ApiEndpointBodySchema<T, K>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ApiDefinition } from '../api/types.js';
|
|
2
|
+
import { type ObjectSchema, type ObjectSchemaOrType } from '../schema/index.js';
|
|
2
3
|
import type { SchemaTestable } from '../schema/schema.js';
|
|
3
|
-
import type { ObjectSchema, ObjectSchemaOrType } from '../schema/types/types.js';
|
|
4
4
|
import type { Record } from '../types.js';
|
|
5
5
|
import type { TokenPayload } from './index.js';
|
|
6
6
|
import { SecretCheckResult } from './models/secret-check-result.model.js';
|
|
7
|
-
import { TokenPayloadBase } from './models/token-payload-base.model.js';
|
|
8
7
|
export declare const dontWaitForValidToken: unique symbol;
|
|
9
8
|
type GetAuthenticationApiEndpointsDefinition<AdditionalTokenPayload extends Record = Record<never>, AuthenticationData = void, AdditionalInitSecretResetData extends Record = Record<never>> = typeof getAuthenticationApiEndpointsDefinition<AdditionalTokenPayload, AuthenticationData, AdditionalInitSecretResetData>;
|
|
10
9
|
type AuthenticationApiEndpointsDefinition<AdditionalTokenPayload extends Record = Record<never>, AuthenticationData = void, AdditionalInitSecretResetData extends Record = Record<never>> = ReturnType<GetAuthenticationApiEndpointsDefinition<AdditionalTokenPayload, AuthenticationData, AdditionalInitSecretResetData>>;
|
|
@@ -16,11 +15,11 @@ export declare const authenticationApiDefinition: {
|
|
|
16
15
|
resource: string;
|
|
17
16
|
method: "POST";
|
|
18
17
|
parameters: ObjectSchema<{
|
|
19
|
-
subject: string;
|
|
20
|
-
secret: string;
|
|
21
|
-
data: unknown;
|
|
18
|
+
readonly subject: string;
|
|
19
|
+
readonly secret: string;
|
|
20
|
+
readonly data: unknown;
|
|
22
21
|
}>;
|
|
23
|
-
result: ObjectSchema<
|
|
22
|
+
result: ObjectSchema<TokenPayload<import("type-fest").EmptyObject>>;
|
|
24
23
|
credentials: true;
|
|
25
24
|
data: {
|
|
26
25
|
[dontWaitForValidToken]: boolean;
|
|
@@ -30,9 +29,9 @@ export declare const authenticationApiDefinition: {
|
|
|
30
29
|
resource: string;
|
|
31
30
|
method: "POST";
|
|
32
31
|
parameters: ObjectSchema<{
|
|
33
|
-
data: unknown;
|
|
32
|
+
readonly data: unknown;
|
|
34
33
|
}>;
|
|
35
|
-
result: ObjectSchema<
|
|
34
|
+
result: ObjectSchema<TokenPayload<import("type-fest").EmptyObject>>;
|
|
36
35
|
credentials: true;
|
|
37
36
|
data: {
|
|
38
37
|
[dontWaitForValidToken]: boolean;
|
|
@@ -42,10 +41,10 @@ export declare const authenticationApiDefinition: {
|
|
|
42
41
|
resource: string;
|
|
43
42
|
method: "POST";
|
|
44
43
|
parameters: ObjectSchema<{
|
|
45
|
-
subject: string;
|
|
46
|
-
data: unknown;
|
|
44
|
+
readonly subject: string;
|
|
45
|
+
readonly data: unknown;
|
|
47
46
|
}>;
|
|
48
|
-
result: ObjectSchema<
|
|
47
|
+
result: ObjectSchema<TokenPayload<import("type-fest").EmptyObject>>;
|
|
49
48
|
credentials: true;
|
|
50
49
|
data: {
|
|
51
50
|
[dontWaitForValidToken]: boolean;
|
|
@@ -55,9 +54,9 @@ export declare const authenticationApiDefinition: {
|
|
|
55
54
|
resource: string;
|
|
56
55
|
method: "POST";
|
|
57
56
|
parameters: ObjectSchema<{
|
|
58
|
-
data: unknown;
|
|
57
|
+
readonly data: unknown;
|
|
59
58
|
}>;
|
|
60
|
-
result: ObjectSchema<
|
|
59
|
+
result: ObjectSchema<TokenPayload<import("type-fest").EmptyObject>>;
|
|
61
60
|
credentials: true;
|
|
62
61
|
data: {
|
|
63
62
|
[dontWaitForValidToken]: boolean;
|
|
@@ -66,7 +65,7 @@ export declare const authenticationApiDefinition: {
|
|
|
66
65
|
endSession: {
|
|
67
66
|
resource: string;
|
|
68
67
|
method: "POST";
|
|
69
|
-
result: import("../schema/
|
|
68
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
70
69
|
credentials: true;
|
|
71
70
|
data: {
|
|
72
71
|
[dontWaitForValidToken]: boolean;
|
|
@@ -76,44 +75,44 @@ export declare const authenticationApiDefinition: {
|
|
|
76
75
|
resource: string;
|
|
77
76
|
method: "POST";
|
|
78
77
|
parameters: ObjectSchema<{
|
|
79
|
-
subject: string;
|
|
80
|
-
data: import("
|
|
78
|
+
readonly subject: string;
|
|
79
|
+
readonly data: import("type-fest").EmptyObject;
|
|
81
80
|
}>;
|
|
82
|
-
result: import("../schema/
|
|
81
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
83
82
|
};
|
|
84
83
|
resetSecret: {
|
|
85
84
|
resource: string;
|
|
86
85
|
method: "POST";
|
|
87
86
|
parameters: ObjectSchema<{
|
|
88
|
-
token: string;
|
|
89
|
-
newSecret: string;
|
|
87
|
+
readonly token: string;
|
|
88
|
+
readonly newSecret: string;
|
|
90
89
|
}>;
|
|
91
|
-
result: import("../schema/
|
|
90
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
92
91
|
};
|
|
93
92
|
checkSecret: {
|
|
94
93
|
resource: string;
|
|
95
94
|
method: "POST";
|
|
96
95
|
parameters: ObjectSchema<{
|
|
97
|
-
secret: string;
|
|
96
|
+
readonly secret: string;
|
|
98
97
|
}>;
|
|
99
98
|
result: typeof SecretCheckResult;
|
|
100
99
|
};
|
|
101
100
|
timestamp: {
|
|
102
101
|
resource: string;
|
|
103
|
-
result: import("../schema/
|
|
102
|
+
result: import("../schema/index.js").NumberSchema;
|
|
104
103
|
};
|
|
105
104
|
};
|
|
106
105
|
};
|
|
107
|
-
export declare function getAuthenticationApiDefinition<AdditionalTokenPayload extends Record, AuthenticationData, AdditionalInitSecretResetData, AdditionalEndpoints>(additionalTokenPayloadSchema: ObjectSchemaOrType<AdditionalTokenPayload>, authenticationDataSchema: SchemaTestable<AuthenticationData>, initSecretResetDataSchema: ObjectSchemaOrType<AdditionalInitSecretResetData>, resource?: string, additionalEndpoints?: AdditionalEndpoints): {
|
|
106
|
+
export declare function getAuthenticationApiDefinition<AdditionalTokenPayload extends Record, AuthenticationData, AdditionalInitSecretResetData extends Record, AdditionalEndpoints>(additionalTokenPayloadSchema: ObjectSchemaOrType<AdditionalTokenPayload>, authenticationDataSchema: SchemaTestable<AuthenticationData>, initSecretResetDataSchema: ObjectSchemaOrType<AdditionalInitSecretResetData>, resource?: string, additionalEndpoints?: AdditionalEndpoints): {
|
|
108
107
|
resource: string;
|
|
109
108
|
endpoints: {
|
|
110
109
|
getToken: {
|
|
111
110
|
resource: string;
|
|
112
111
|
method: "POST";
|
|
113
112
|
parameters: ObjectSchema<{
|
|
114
|
-
subject: string;
|
|
115
|
-
secret: string;
|
|
116
|
-
data: AuthenticationData;
|
|
113
|
+
readonly subject: string;
|
|
114
|
+
readonly secret: string;
|
|
115
|
+
readonly data: AuthenticationData;
|
|
117
116
|
}>;
|
|
118
117
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
119
118
|
credentials: true;
|
|
@@ -125,7 +124,7 @@ export declare function getAuthenticationApiDefinition<AdditionalTokenPayload ex
|
|
|
125
124
|
resource: string;
|
|
126
125
|
method: "POST";
|
|
127
126
|
parameters: ObjectSchema<{
|
|
128
|
-
data: AuthenticationData;
|
|
127
|
+
readonly data: AuthenticationData;
|
|
129
128
|
}>;
|
|
130
129
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
131
130
|
credentials: true;
|
|
@@ -137,8 +136,8 @@ export declare function getAuthenticationApiDefinition<AdditionalTokenPayload ex
|
|
|
137
136
|
resource: string;
|
|
138
137
|
method: "POST";
|
|
139
138
|
parameters: ObjectSchema<{
|
|
140
|
-
subject: string;
|
|
141
|
-
data: AuthenticationData;
|
|
139
|
+
readonly subject: string;
|
|
140
|
+
readonly data: AuthenticationData;
|
|
142
141
|
}>;
|
|
143
142
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
144
143
|
credentials: true;
|
|
@@ -150,7 +149,7 @@ export declare function getAuthenticationApiDefinition<AdditionalTokenPayload ex
|
|
|
150
149
|
resource: string;
|
|
151
150
|
method: "POST";
|
|
152
151
|
parameters: ObjectSchema<{
|
|
153
|
-
data: AuthenticationData;
|
|
152
|
+
readonly data: AuthenticationData;
|
|
154
153
|
}>;
|
|
155
154
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
156
155
|
credentials: true;
|
|
@@ -161,7 +160,7 @@ export declare function getAuthenticationApiDefinition<AdditionalTokenPayload ex
|
|
|
161
160
|
endSession: {
|
|
162
161
|
resource: string;
|
|
163
162
|
method: "POST";
|
|
164
|
-
result: import("../schema/
|
|
163
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
165
164
|
credentials: true;
|
|
166
165
|
data: {
|
|
167
166
|
[dontWaitForValidToken]: boolean;
|
|
@@ -171,42 +170,42 @@ export declare function getAuthenticationApiDefinition<AdditionalTokenPayload ex
|
|
|
171
170
|
resource: string;
|
|
172
171
|
method: "POST";
|
|
173
172
|
parameters: ObjectSchema<{
|
|
174
|
-
subject: string;
|
|
175
|
-
data: AdditionalInitSecretResetData;
|
|
173
|
+
readonly subject: string;
|
|
174
|
+
readonly data: AdditionalInitSecretResetData;
|
|
176
175
|
}>;
|
|
177
|
-
result: import("../schema/
|
|
176
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
178
177
|
};
|
|
179
178
|
resetSecret: {
|
|
180
179
|
resource: string;
|
|
181
180
|
method: "POST";
|
|
182
181
|
parameters: ObjectSchema<{
|
|
183
|
-
token: string;
|
|
184
|
-
newSecret: string;
|
|
182
|
+
readonly token: string;
|
|
183
|
+
readonly newSecret: string;
|
|
185
184
|
}>;
|
|
186
|
-
result: import("../schema/
|
|
185
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
187
186
|
};
|
|
188
187
|
checkSecret: {
|
|
189
188
|
resource: string;
|
|
190
189
|
method: "POST";
|
|
191
190
|
parameters: ObjectSchema<{
|
|
192
|
-
secret: string;
|
|
191
|
+
readonly secret: string;
|
|
193
192
|
}>;
|
|
194
193
|
result: typeof SecretCheckResult;
|
|
195
194
|
};
|
|
196
195
|
timestamp: {
|
|
197
196
|
resource: string;
|
|
198
|
-
result: import("../schema/
|
|
197
|
+
result: import("../schema/index.js").NumberSchema;
|
|
199
198
|
};
|
|
200
199
|
};
|
|
201
200
|
};
|
|
202
|
-
export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenPayload extends Record, AuthenticationData, AdditionalInitSecretResetData>(additionalTokenPayloadSchema: ObjectSchemaOrType<AdditionalTokenPayload>, authenticationDataSchema: SchemaTestable<AuthenticationData>, additionalInitSecretResetDataSchema: ObjectSchemaOrType<AdditionalInitSecretResetData>): {
|
|
201
|
+
export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenPayload extends Record, AuthenticationData, AdditionalInitSecretResetData extends Record>(additionalTokenPayloadSchema: ObjectSchemaOrType<AdditionalTokenPayload>, authenticationDataSchema: SchemaTestable<AuthenticationData>, additionalInitSecretResetDataSchema: ObjectSchemaOrType<AdditionalInitSecretResetData>): {
|
|
203
202
|
getToken: {
|
|
204
203
|
resource: string;
|
|
205
204
|
method: "POST";
|
|
206
205
|
parameters: ObjectSchema<{
|
|
207
|
-
subject: string;
|
|
208
|
-
secret: string;
|
|
209
|
-
data: AuthenticationData;
|
|
206
|
+
readonly subject: string;
|
|
207
|
+
readonly secret: string;
|
|
208
|
+
readonly data: AuthenticationData;
|
|
210
209
|
}>;
|
|
211
210
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
212
211
|
credentials: true;
|
|
@@ -218,7 +217,7 @@ export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenP
|
|
|
218
217
|
resource: string;
|
|
219
218
|
method: "POST";
|
|
220
219
|
parameters: ObjectSchema<{
|
|
221
|
-
data: AuthenticationData;
|
|
220
|
+
readonly data: AuthenticationData;
|
|
222
221
|
}>;
|
|
223
222
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
224
223
|
credentials: true;
|
|
@@ -230,8 +229,8 @@ export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenP
|
|
|
230
229
|
resource: string;
|
|
231
230
|
method: "POST";
|
|
232
231
|
parameters: ObjectSchema<{
|
|
233
|
-
subject: string;
|
|
234
|
-
data: AuthenticationData;
|
|
232
|
+
readonly subject: string;
|
|
233
|
+
readonly data: AuthenticationData;
|
|
235
234
|
}>;
|
|
236
235
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
237
236
|
credentials: true;
|
|
@@ -243,7 +242,7 @@ export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenP
|
|
|
243
242
|
resource: string;
|
|
244
243
|
method: "POST";
|
|
245
244
|
parameters: ObjectSchema<{
|
|
246
|
-
data: AuthenticationData;
|
|
245
|
+
readonly data: AuthenticationData;
|
|
247
246
|
}>;
|
|
248
247
|
result: ObjectSchema<TokenPayload<AdditionalTokenPayload>>;
|
|
249
248
|
credentials: true;
|
|
@@ -254,7 +253,7 @@ export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenP
|
|
|
254
253
|
endSession: {
|
|
255
254
|
resource: string;
|
|
256
255
|
method: "POST";
|
|
257
|
-
result: import("../schema/
|
|
256
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
258
257
|
credentials: true;
|
|
259
258
|
data: {
|
|
260
259
|
[dontWaitForValidToken]: boolean;
|
|
@@ -264,31 +263,31 @@ export declare function getAuthenticationApiEndpointsDefinition<AdditionalTokenP
|
|
|
264
263
|
resource: string;
|
|
265
264
|
method: "POST";
|
|
266
265
|
parameters: ObjectSchema<{
|
|
267
|
-
subject: string;
|
|
268
|
-
data: AdditionalInitSecretResetData;
|
|
266
|
+
readonly subject: string;
|
|
267
|
+
readonly data: AdditionalInitSecretResetData;
|
|
269
268
|
}>;
|
|
270
|
-
result: import("../schema/
|
|
269
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
271
270
|
};
|
|
272
271
|
resetSecret: {
|
|
273
272
|
resource: string;
|
|
274
273
|
method: "POST";
|
|
275
274
|
parameters: ObjectSchema<{
|
|
276
|
-
token: string;
|
|
277
|
-
newSecret: string;
|
|
275
|
+
readonly token: string;
|
|
276
|
+
readonly newSecret: string;
|
|
278
277
|
}>;
|
|
279
|
-
result: import("../schema/
|
|
278
|
+
result: import("../schema/index.js").LiteralSchema<"ok">;
|
|
280
279
|
};
|
|
281
280
|
checkSecret: {
|
|
282
281
|
resource: string;
|
|
283
282
|
method: "POST";
|
|
284
283
|
parameters: ObjectSchema<{
|
|
285
|
-
secret: string;
|
|
284
|
+
readonly secret: string;
|
|
286
285
|
}>;
|
|
287
286
|
result: typeof SecretCheckResult;
|
|
288
287
|
};
|
|
289
288
|
timestamp: {
|
|
290
289
|
resource: string;
|
|
291
|
-
result: import("../schema/
|
|
290
|
+
result: import("../schema/index.js").NumberSchema;
|
|
292
291
|
};
|
|
293
292
|
};
|
|
294
293
|
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { defineApi } from '../api/types.js';
|
|
2
|
-
import { assign } from '../schema/
|
|
3
|
-
import { literal } from '../schema/schemas/literal.js';
|
|
4
|
-
import { number } from '../schema/schemas/number.js';
|
|
5
|
-
import { emptyObjectSchema, explicitObject, object } from '../schema/schemas/object.js';
|
|
6
|
-
import { string } from '../schema/schemas/string.js';
|
|
7
|
-
import { unknown } from '../schema/schemas/unknown.js';
|
|
2
|
+
import { assign, emptyObjectSchema, explicitObject, literal, number, object, string, unknown } from '../schema/index.js';
|
|
8
3
|
import { SecretCheckResult } from './models/secret-check-result.model.js';
|
|
9
4
|
import { TokenPayloadBase } from './models/token-payload-base.model.js';
|
|
10
5
|
export const dontWaitForValidToken = Symbol('dontWaitForValidToken');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type { ObjectSchemaOrType } from '../../schema/types/types.js';
|
|
1
|
+
import { ApiClient } from '../../api/client/index.js';
|
|
2
|
+
import { ObjectSchemaOrType, SchemaTestable } from '../../schema/index.js';
|
|
4
3
|
import type { Record } from '../../types.js';
|
|
5
|
-
import
|
|
4
|
+
import { AuthenticationApiDefinition } from '../authentication.api.js';
|
|
6
5
|
export declare function getAuthenticationApiClient<AdditionalTokenPayload extends Record, AuthenticationData, AdditionalInitSecretResetData extends Record>(additionalTokenPayloadSchema: ObjectSchemaOrType<AdditionalTokenPayload>, authenticationDataSchema: SchemaTestable<AuthenticationData>, additionalInitSecretResetData: ObjectSchemaOrType<AdditionalInitSecretResetData>): ApiClient<AuthenticationApiDefinition<AdditionalTokenPayload, AuthenticationData, AdditionalInitSecretResetData>>;
|
|
7
|
-
declare const defaultAuthenticationApiClient: ApiClient<AuthenticationApiDefinition<import("
|
|
6
|
+
declare const defaultAuthenticationApiClient: ApiClient<AuthenticationApiDefinition<import("type-fest").EmptyObject, unknown, import("type-fest").EmptyObject>>;
|
|
8
7
|
export declare class AuthenticationApiClient extends defaultAuthenticationApiClient {
|
|
9
8
|
}
|
|
10
9
|
export {};
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { compileClient } from '../../api/client/index.js';
|
|
8
8
|
import { ReplaceClass, Singleton } from '../../injector/index.js';
|
|
9
|
-
import { emptyObjectSchema } from '../../schema/
|
|
10
|
-
import { unknown } from '../../schema/schemas/unknown.js';
|
|
9
|
+
import { emptyObjectSchema, unknown } from '../../schema/index.js';
|
|
11
10
|
import { getAuthenticationApiDefinition } from '../authentication.api.js';
|
|
12
11
|
export function getAuthenticationApiClient(additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData) {
|
|
13
12
|
const definition = getAuthenticationApiDefinition(additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HttpClientMiddleware } from '../../http/client/middleware.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type ValueOrAsyncProvider } from '../../utils/value-or-provider.js';
|
|
3
3
|
import type { AuthenticationClientService } from './authentication.service.js';
|
|
4
4
|
export declare function waitForAuthenticationCredentialsMiddleware(authenticationServiceOrProvider: ValueOrAsyncProvider<AuthenticationClientService>): HttpClientMiddleware;
|
package/browser/pdf-options.js
CHANGED
|
@@ -7,8 +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 { Enumeration } from '../schema/
|
|
11
|
-
import { Optional } from '../schema/schemas/optional.js';
|
|
10
|
+
import { Enumeration, Optional, Union } from '../schema/index.js';
|
|
12
11
|
export var PdfFormat;
|
|
13
12
|
(function (PdfFormat) {
|
|
14
13
|
PdfFormat["Letter"] = "letter";
|
|
@@ -30,19 +29,19 @@ export class PdfMarginObject {
|
|
|
30
29
|
left;
|
|
31
30
|
}
|
|
32
31
|
__decorate([
|
|
33
|
-
|
|
32
|
+
Union(Number, String, { optional: true }),
|
|
34
33
|
__metadata("design:type", Object)
|
|
35
34
|
], PdfMarginObject.prototype, "top", void 0);
|
|
36
35
|
__decorate([
|
|
37
|
-
|
|
36
|
+
Union(Number, String, { optional: true }),
|
|
38
37
|
__metadata("design:type", Object)
|
|
39
38
|
], PdfMarginObject.prototype, "bottom", void 0);
|
|
40
39
|
__decorate([
|
|
41
|
-
|
|
40
|
+
Union(Number, String, { optional: true }),
|
|
42
41
|
__metadata("design:type", Object)
|
|
43
42
|
], PdfMarginObject.prototype, "right", void 0);
|
|
44
43
|
__decorate([
|
|
45
|
-
|
|
44
|
+
Union(Number, String, { optional: true }),
|
|
46
45
|
__metadata("design:type", Object)
|
|
47
46
|
], PdfMarginObject.prototype, "left", void 0);
|
|
48
47
|
export class PdfRenderOptions {
|
|
@@ -75,11 +74,11 @@ __decorate([
|
|
|
75
74
|
__metadata("design:type", String)
|
|
76
75
|
], PdfRenderOptions.prototype, "format", void 0);
|
|
77
76
|
__decorate([
|
|
78
|
-
|
|
77
|
+
Union(String, Number, { optional: true }),
|
|
79
78
|
__metadata("design:type", Object)
|
|
80
79
|
], PdfRenderOptions.prototype, "width", void 0);
|
|
81
80
|
__decorate([
|
|
82
|
-
|
|
81
|
+
Union(String, Number, { optional: true }),
|
|
83
82
|
__metadata("design:type", Object)
|
|
84
83
|
], PdfRenderOptions.prototype, "height", void 0);
|
|
85
84
|
__decorate([
|
|
@@ -87,7 +86,7 @@ __decorate([
|
|
|
87
86
|
__metadata("design:type", Number)
|
|
88
87
|
], PdfRenderOptions.prototype, "scale", void 0);
|
|
89
88
|
__decorate([
|
|
90
|
-
|
|
89
|
+
Union(String, Number, PdfMarginObject, { optional: true }),
|
|
91
90
|
__metadata("design:type", Object)
|
|
92
91
|
], PdfRenderOptions.prototype, "margin", void 0);
|
|
93
92
|
__decorate([
|
package/errors/custom.error.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export type CustomErrorOptions = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Name of error
|
|
4
4
|
*
|
|
5
5
|
* defaults to static {@link CustomErrorStatic.errorName} if set and constructor (class) name if unset.
|
|
6
6
|
*/
|
|
7
7
|
name?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Error message
|
|
10
10
|
*/
|
|
11
11
|
message?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Stack trace
|
|
14
14
|
*/
|
|
15
15
|
stack?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Cause for error
|
|
18
18
|
*/
|
|
19
19
|
cause?: Error;
|
|
20
|
-
/**
|
|
20
|
+
/** Skip {@link Error} super call, which improves speed but looses stack trace */
|
|
21
21
|
fast?: boolean | undefined;
|
|
22
22
|
};
|
|
23
23
|
export declare abstract class CustomError extends Error {
|
|
@@ -18,7 +18,7 @@ import { configureHttpClient } from '../../http/client/module.js';
|
|
|
18
18
|
import { configureNodeHttpServer } from '../../http/server/node/module.js';
|
|
19
19
|
import { inject } from '../../injector/inject.js';
|
|
20
20
|
import { WebServerModule } from '../../module/modules/web-server.module.js';
|
|
21
|
-
import { Property, array, boolean, number, object } from '../../schema/index.js';
|
|
21
|
+
import { NumberProperty, Property, array, boolean, number, object } from '../../schema/index.js';
|
|
22
22
|
import { timeout } from '../../utils/timing.js';
|
|
23
23
|
import { Agent } from 'undici';
|
|
24
24
|
class User {
|
|
@@ -26,7 +26,7 @@ class User {
|
|
|
26
26
|
name;
|
|
27
27
|
}
|
|
28
28
|
__decorate([
|
|
29
|
-
|
|
29
|
+
NumberProperty({ coerce: true }),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], User.prototype, "id", void 0);
|
|
32
32
|
__decorate([
|
|
@@ -92,11 +92,11 @@ async function clientTest() {
|
|
|
92
92
|
console.log(allUsersAfterDelete);
|
|
93
93
|
Application.requestShutdown();
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
function main() {
|
|
96
96
|
configureNodeHttpServer();
|
|
97
97
|
configureApiServer({ controllers: [UserApi] });
|
|
98
98
|
configureUndiciHttpClientAdapter({ dispatcher: new Agent({ keepAliveMaxTimeout: 1 }) });
|
|
99
99
|
configureHttpClient({ baseUrl: 'http://localhost:8000' });
|
|
100
100
|
Application.run(WebServerModule, clientTest);
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
main();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type CancellationSignal } from '../../cancellation/index.js';
|
|
2
2
|
import { dispose, type Disposable } from '../../disposable/index.js';
|
|
3
|
-
import type { OneOrMany } from '../../
|
|
4
|
-
import type { Record, TypedOmit, UndefinableJson, UndefinableJsonObject } from '../../types.js';
|
|
3
|
+
import type { OneOrMany, Record, TypedOmit, UndefinableJson, UndefinableJsonObject } from '../../types.js';
|
|
5
4
|
import { HttpForm, type HttpFormObject } from '../http-form.js';
|
|
6
5
|
import { HttpHeaders, type HttpHeadersObject } from '../http-headers.js';
|
|
7
6
|
import { HttpQuery, type HttpQueryObject } from '../http-query.js';
|
package/http/client/module.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { HttpClientMiddleware } from './middleware.js';
|
|
|
5
5
|
export type HttpClientModuleConfig = HttpClientOptions & {
|
|
6
6
|
adapter?: Type<HttpClientAdapter>;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Middlewares to add
|
|
9
9
|
*/
|
|
10
10
|
middleware?: OneOrMany<HttpClientMiddleware>;
|
|
11
11
|
};
|
|
@@ -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 {
|
|
10
|
+
import { Enumeration, NumberProperty, Optional } from '../schema/index.js';
|
|
11
11
|
export var ImageResizeMode;
|
|
12
12
|
(function (ImageResizeMode) {
|
|
13
13
|
ImageResizeMode["Fit"] = "fit";
|
|
@@ -49,13 +49,11 @@ __decorate([
|
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], ImageOptions.prototype, "resizeMode", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
|
|
53
|
-
Coerce(),
|
|
52
|
+
NumberProperty({ optional: true, coerce: true }),
|
|
54
53
|
__metadata("design:type", Number)
|
|
55
54
|
], ImageOptions.prototype, "width", void 0);
|
|
56
55
|
__decorate([
|
|
57
|
-
|
|
58
|
-
Coerce(),
|
|
56
|
+
NumberProperty({ optional: true, coerce: true }),
|
|
59
57
|
__metadata("design:type", Number)
|
|
60
58
|
], ImageOptions.prototype, "height", void 0);
|
|
61
59
|
__decorate([
|
|
@@ -64,8 +62,7 @@ __decorate([
|
|
|
64
62
|
__metadata("design:type", String)
|
|
65
63
|
], ImageOptions.prototype, "origin", void 0);
|
|
66
64
|
__decorate([
|
|
67
|
-
|
|
68
|
-
Coerce(),
|
|
65
|
+
NumberProperty({ optional: true, coerce: true }),
|
|
69
66
|
__metadata("design:type", Number)
|
|
70
67
|
], ImageOptions.prototype, "quality", void 0);
|
|
71
68
|
__decorate([
|
package/mail/mail.client.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { resolveArgumentType } from '../injector/index.js';
|
|
1
|
+
import { resolveArgumentType, type Resolvable } from '../injector/index.js';
|
|
3
2
|
import type { MailData, MailSendResult } from './models/index.js';
|
|
4
3
|
export declare class MailClientAuthConfig {
|
|
5
4
|
user: string;
|
|
@@ -8,6 +7,7 @@ export declare class MailClientAuthConfig {
|
|
|
8
7
|
export declare class MailClientConfig {
|
|
9
8
|
host: string;
|
|
10
9
|
port: number;
|
|
10
|
+
/** Enable TLS (if not defined it is automatically set depending on port) */
|
|
11
11
|
secure?: boolean;
|
|
12
12
|
auth?: MailClientAuthConfig;
|
|
13
13
|
}
|
package/mail/mail.client.js
CHANGED
|
@@ -8,7 +8,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
10
|
import { Property } from '../schema/decorators/property.js';
|
|
11
|
-
import { BooleanProperty } from '../schema/
|
|
11
|
+
import { BooleanProperty } from '../schema/index.js';
|
|
12
12
|
import { Optional } from '../schema/schemas/optional.js';
|
|
13
13
|
export class MailClientAuthConfig {
|
|
14
14
|
user;
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
export class MailClientConfig {
|
|
26
26
|
host;
|
|
27
27
|
port;
|
|
28
|
-
|
|
28
|
+
/** Enable TLS (if not defined it is automatically set depending on port) */
|
|
29
29
|
secure;
|
|
30
30
|
auth;
|
|
31
31
|
}
|
|
@@ -38,9 +38,7 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
39
|
], MailClientConfig.prototype, "port", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
BooleanProperty({ optional: true })
|
|
42
|
-
/* enable TLS (if not defined it is automatically set depending on port) */
|
|
43
|
-
,
|
|
41
|
+
BooleanProperty({ optional: true }),
|
|
44
42
|
__metadata("design:type", Boolean)
|
|
45
43
|
], MailClientConfig.prototype, "secure", void 0);
|
|
46
44
|
__decorate([
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PrimaryKey(): PropertyDecorator;
|
package/orm/entity.js
CHANGED
|
@@ -32,7 +32,7 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", Object)
|
|
33
33
|
], EntityMetadata.prototype, "deleteTimestamp", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
Property(
|
|
35
|
+
Property(record(any(), any())),
|
|
36
36
|
__metadata("design:type", Object)
|
|
37
37
|
], EntityMetadata.prototype, "attributes", void 0);
|
|
38
38
|
export class Entity {
|
package/orm/index.d.ts
CHANGED