alepha 0.13.3 → 0.13.5
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/README.md +7 -7
- package/dist/api-files/index.browser.js +5 -5
- package/dist/api-files/index.d.ts +16 -16
- package/dist/api-files/index.js +9 -9
- package/dist/api-jobs/index.browser.js +5 -5
- package/dist/api-jobs/index.d.ts +17 -17
- package/dist/api-jobs/index.js +9 -9
- package/dist/api-notifications/index.browser.js +11 -11
- package/dist/api-notifications/index.d.ts +158 -158
- package/dist/api-notifications/index.js +11 -11
- package/dist/api-parameters/index.browser.js +2 -2
- package/dist/api-parameters/index.d.ts +3 -3
- package/dist/api-parameters/index.js +3 -3
- package/dist/api-users/index.browser.js +6 -6
- package/dist/api-users/index.d.ts +55 -55
- package/dist/api-users/index.js +36 -36
- package/dist/api-verifications/index.browser.js +5 -5
- package/dist/api-verifications/index.d.ts +9 -9
- package/dist/api-verifications/index.js +10 -10
- package/dist/batch/index.d.ts +3 -3
- package/dist/batch/index.js +3 -3
- package/dist/bin/index.js +1 -1
- package/dist/bucket/index.d.ts +6 -6
- package/dist/bucket/index.js +7 -7
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/index.js +5 -5
- package/dist/cache-redis/index.d.ts +2 -2
- package/dist/cache-redis/index.js +2 -2
- package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
- package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
- package/dist/cli/index.d.ts +31 -75
- package/dist/cli/index.js +94 -171
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -8
- package/dist/command/index.js +11 -10
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +40 -36
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +255 -253
- package/dist/core/index.js +40 -36
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +40 -36
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -3
- package/dist/datetime/index.js +3 -3
- package/dist/email/index.d.ts +7 -7
- package/dist/email/index.js +42 -42
- package/dist/fake/index.d.ts +2 -2
- package/dist/fake/index.js +5 -5
- package/dist/file/index.d.ts +4 -4
- package/dist/file/index.js +4 -4
- package/dist/lock/index.d.ts +5 -5
- package/dist/lock/index.js +5 -5
- package/dist/lock-redis/index.d.ts +2 -2
- package/dist/lock-redis/index.js +2 -2
- package/dist/logger/index.d.ts +11 -11
- package/dist/logger/index.js +12 -12
- package/dist/orm/index.browser.js +12 -12
- package/dist/orm/index.d.ts +33 -33
- package/dist/orm/index.js +32 -32
- package/dist/queue/index.d.ts +7 -7
- package/dist/queue/index.js +6 -6
- package/dist/queue-redis/index.d.ts +2 -2
- package/dist/queue-redis/index.js +2 -2
- package/dist/redis/index.d.ts +13 -13
- package/dist/redis/index.js +3 -3
- package/dist/retry/index.d.ts +5 -5
- package/dist/retry/index.js +5 -5
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/scheduler/index.d.ts +4 -4
- package/dist/scheduler/index.js +7 -7
- package/dist/security/index.browser.js +7 -7
- package/dist/security/index.d.ts +15 -15
- package/dist/security/index.js +46 -46
- package/dist/server/index.browser.js +14 -14
- package/dist/server/index.d.ts +26 -26
- package/dist/server/index.js +26 -26
- package/dist/server-auth/index.browser.js +6 -6
- package/dist/server-auth/index.d.ts +11 -11
- package/dist/server-auth/index.js +13 -13
- package/dist/server-cache/index.d.ts +2 -2
- package/dist/server-cache/index.js +2 -2
- package/dist/server-compress/index.d.ts +2 -2
- package/dist/server-compress/index.js +2 -2
- package/dist/server-cookies/index.browser.js +3 -3
- package/dist/server-cookies/index.d.ts +4 -4
- package/dist/server-cookies/index.js +4 -4
- package/dist/server-cors/index.d.ts +3 -3
- package/dist/server-cors/index.js +3 -3
- package/dist/server-health/index.d.ts +3 -3
- package/dist/server-health/index.js +3 -3
- package/dist/server-helmet/index.d.ts +2 -2
- package/dist/server-helmet/index.js +2 -2
- package/dist/server-links/index.browser.js +5 -5
- package/dist/server-links/index.d.ts +40 -40
- package/dist/server-links/index.js +7 -7
- package/dist/server-metrics/index.d.ts +2 -2
- package/dist/server-metrics/index.js +86 -86
- package/dist/server-multipart/index.d.ts +2 -2
- package/dist/server-multipart/index.js +2 -2
- package/dist/server-proxy/index.d.ts +3 -3
- package/dist/server-proxy/index.js +3 -3
- package/dist/server-rate-limit/index.d.ts +3 -3
- package/dist/server-rate-limit/index.js +3 -3
- package/dist/server-security/index.browser.js +1 -1
- package/dist/server-security/index.d.ts +4 -4
- package/dist/server-security/index.js +4 -4
- package/dist/server-static/index.d.ts +3 -3
- package/dist/server-static/index.js +3 -3
- package/dist/server-swagger/index.d.ts +3 -3
- package/dist/server-swagger/index.js +3 -3
- package/dist/sms/index.d.ts +6 -6
- package/dist/sms/index.js +6 -6
- package/dist/thread/index.d.ts +3 -3
- package/dist/thread/index.js +3 -3
- package/dist/topic/index.d.ts +6 -6
- package/dist/topic/index.js +6 -6
- package/dist/topic-redis/index.d.ts +2 -2
- package/dist/topic-redis/index.js +2 -2
- package/dist/vite/index.d.ts +17 -17
- package/dist/vite/index.js +20 -20
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.d.ts +17 -17
- package/dist/websocket/index.js +10 -10
- package/package.json +5 -4
- package/src/cli/apps/AlephaCli.ts +1 -2
- package/src/cli/commands/BiomeCommands.ts +4 -6
- package/src/cli/commands/CoreCommands.ts +2 -2
- package/src/cli/commands/DrizzleCommands.ts +76 -78
- package/src/cli/commands/VerifyCommands.ts +3 -5
- package/src/cli/commands/ViteCommands.ts +6 -8
- package/src/cli/index.ts +1 -1
- package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
- package/src/command/providers/CliProvider.ts +12 -4
- package/src/core/Alepha.ts +14 -0
- package/src/core/primitives/$module.ts +1 -1
- package/src/cli/services/ProcessRunner.ts +0 -89
|
@@ -5,7 +5,7 @@ import TypeBoxFormat from "typebox/format";
|
|
|
5
5
|
import { Locale } from "typebox/system";
|
|
6
6
|
import * as TypeBoxValue from "typebox/value";
|
|
7
7
|
|
|
8
|
-
//#region src/core/constants/KIND.ts
|
|
8
|
+
//#region ../../src/core/constants/KIND.ts
|
|
9
9
|
/**
|
|
10
10
|
* Used for identifying primitives.
|
|
11
11
|
*
|
|
@@ -14,7 +14,7 @@ import * as TypeBoxValue from "typebox/value";
|
|
|
14
14
|
const KIND = Symbol.for("Alepha.Kind");
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/core/constants/MODULE.ts
|
|
17
|
+
//#region ../../src/core/constants/MODULE.ts
|
|
18
18
|
/**
|
|
19
19
|
* Used for identifying modules.
|
|
20
20
|
*
|
|
@@ -23,7 +23,7 @@ const KIND = Symbol.for("Alepha.Kind");
|
|
|
23
23
|
const MODULE = Symbol.for("Alepha.Module");
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region src/core/constants/OPTIONS.ts
|
|
26
|
+
//#region ../../src/core/constants/OPTIONS.ts
|
|
27
27
|
/**
|
|
28
28
|
* Used for primitives options.
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@ const MODULE = Symbol.for("Alepha.Module");
|
|
|
32
32
|
const OPTIONS = Symbol.for("Alepha.Options");
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region src/core/errors/AlephaError.ts
|
|
35
|
+
//#region ../../src/core/errors/AlephaError.ts
|
|
36
36
|
/**
|
|
37
37
|
* Default error class for Alepha.
|
|
38
38
|
*/
|
|
@@ -41,7 +41,7 @@ var AlephaError = class extends Error {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region src/core/errors/CircularDependencyError.ts
|
|
44
|
+
//#region ../../src/core/errors/CircularDependencyError.ts
|
|
45
45
|
var CircularDependencyError = class extends AlephaError {
|
|
46
46
|
name = "CircularDependencyError";
|
|
47
47
|
constructor(provider, parents) {
|
|
@@ -50,7 +50,7 @@ var CircularDependencyError = class extends AlephaError {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
|
-
//#region src/core/errors/ContainerLockedError.ts
|
|
53
|
+
//#region ../../src/core/errors/ContainerLockedError.ts
|
|
54
54
|
var ContainerLockedError = class extends AlephaError {
|
|
55
55
|
name = "ContainerLockedError";
|
|
56
56
|
constructor(message = "Container is locked. No more providers can be added.") {
|
|
@@ -59,7 +59,7 @@ var ContainerLockedError = class extends AlephaError {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region src/core/errors/TooLateSubstitutionError.ts
|
|
62
|
+
//#region ../../src/core/errors/TooLateSubstitutionError.ts
|
|
63
63
|
var TooLateSubstitutionError = class extends AlephaError {
|
|
64
64
|
name = "TooLateSubstitutionError";
|
|
65
65
|
constructor(original, substitution) {
|
|
@@ -68,7 +68,7 @@ var TooLateSubstitutionError = class extends AlephaError {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region src/core/errors/MissingContextError.ts
|
|
71
|
+
//#region ../../src/core/errors/MissingContextError.ts
|
|
72
72
|
var MissingContextError = class extends AlephaError {
|
|
73
73
|
name = "MissingContextError";
|
|
74
74
|
constructor() {
|
|
@@ -78,7 +78,7 @@ var MissingContextError = class extends AlephaError {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
|
-
//#region src/core/helpers/ref.ts
|
|
81
|
+
//#region ../../src/core/helpers/ref.ts
|
|
82
82
|
/**
|
|
83
83
|
* Store the current context and definition during injection phase.
|
|
84
84
|
*
|
|
@@ -127,7 +127,7 @@ const __alephaRef = {};
|
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
129
|
//#endregion
|
|
130
|
-
//#region src/core/primitives/$context.ts
|
|
130
|
+
//#region ../../src/core/primitives/$context.ts
|
|
131
131
|
/**
|
|
132
132
|
* Get Alepha instance and current service from the current context.
|
|
133
133
|
*
|
|
@@ -165,7 +165,7 @@ const $context = () => {
|
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
//#endregion
|
|
168
|
-
//#region src/core/helpers/primitive.ts
|
|
168
|
+
//#region ../../src/core/helpers/primitive.ts
|
|
169
169
|
var Primitive = class {
|
|
170
170
|
alepha;
|
|
171
171
|
options;
|
|
@@ -198,7 +198,7 @@ const createPrimitive = (primitive, options) => {
|
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
//#endregion
|
|
201
|
-
//#region src/core/interfaces/Service.ts
|
|
201
|
+
//#region ../../src/core/interfaces/Service.ts
|
|
202
202
|
function isClass(func) {
|
|
203
203
|
if (typeof func !== "function") return false;
|
|
204
204
|
const descriptor = Object.getOwnPropertyDescriptor(func, "prototype");
|
|
@@ -206,7 +206,7 @@ function isClass(func) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
//#endregion
|
|
209
|
-
//#region src/core/primitives/$module.ts
|
|
209
|
+
//#region ../../src/core/primitives/$module.ts
|
|
210
210
|
/**
|
|
211
211
|
* Wrap Services and Primitives into a Module.
|
|
212
212
|
*
|
|
@@ -280,7 +280,7 @@ const $module = (options) => {
|
|
|
280
280
|
* Base class for all modules.
|
|
281
281
|
*/
|
|
282
282
|
var Module = class Module {
|
|
283
|
-
static NAME_REGEX = /^[a-z]+(\.[a-z][a-z0-9-]*)*$/;
|
|
283
|
+
static NAME_REGEX = /^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;
|
|
284
284
|
/**
|
|
285
285
|
* Check if a Service is a Module.
|
|
286
286
|
*/
|
|
@@ -298,7 +298,7 @@ var Module = class Module {
|
|
|
298
298
|
};
|
|
299
299
|
|
|
300
300
|
//#endregion
|
|
301
|
-
//#region src/core/providers/AlsProvider.ts
|
|
301
|
+
//#region ../../src/core/providers/AlsProvider.ts
|
|
302
302
|
var AlsProvider = class AlsProvider {
|
|
303
303
|
static create = () => {};
|
|
304
304
|
als;
|
|
@@ -330,7 +330,7 @@ var AlsProvider = class AlsProvider {
|
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
//#endregion
|
|
333
|
-
//#region src/core/primitives/$inject.ts
|
|
333
|
+
//#region ../../src/core/primitives/$inject.ts
|
|
334
334
|
/**
|
|
335
335
|
* Get the instance of the specified type from the context.
|
|
336
336
|
*
|
|
@@ -352,7 +352,7 @@ const $inject = (type, opts = {}) => {
|
|
|
352
352
|
var InjectPrimitive = class extends Primitive {};
|
|
353
353
|
|
|
354
354
|
//#endregion
|
|
355
|
-
//#region src/core/providers/Json.ts
|
|
355
|
+
//#region ../../src/core/providers/Json.ts
|
|
356
356
|
/**
|
|
357
357
|
* Mimics the JSON global object with stringify and parse methods.
|
|
358
358
|
*
|
|
@@ -368,11 +368,11 @@ var Json = class {
|
|
|
368
368
|
};
|
|
369
369
|
|
|
370
370
|
//#endregion
|
|
371
|
-
//#region src/core/providers/SchemaCodec.ts
|
|
371
|
+
//#region ../../src/core/providers/SchemaCodec.ts
|
|
372
372
|
var SchemaCodec = class {};
|
|
373
373
|
|
|
374
374
|
//#endregion
|
|
375
|
-
//#region src/core/providers/JsonSchemaCodec.ts
|
|
375
|
+
//#region ../../src/core/providers/JsonSchemaCodec.ts
|
|
376
376
|
var JsonSchemaCodec = class extends SchemaCodec {
|
|
377
377
|
json = $inject(Json);
|
|
378
378
|
encoder = new TextEncoder();
|
|
@@ -398,7 +398,7 @@ var JsonSchemaCodec = class extends SchemaCodec {
|
|
|
398
398
|
};
|
|
399
399
|
|
|
400
400
|
//#endregion
|
|
401
|
-
//#region src/core/errors/TypeBoxError.ts
|
|
401
|
+
//#region ../../src/core/errors/TypeBoxError.ts
|
|
402
402
|
var TypeBoxError = class extends AlephaError {
|
|
403
403
|
name = "TypeBoxError";
|
|
404
404
|
cause;
|
|
@@ -419,7 +419,7 @@ var TypeBoxError = class extends AlephaError {
|
|
|
419
419
|
};
|
|
420
420
|
|
|
421
421
|
//#endregion
|
|
422
|
-
//#region src/core/providers/SchemaValidator.ts
|
|
422
|
+
//#region ../../src/core/providers/SchemaValidator.ts
|
|
423
423
|
var SchemaValidator = class {
|
|
424
424
|
cache = /* @__PURE__ */ new Map();
|
|
425
425
|
/**
|
|
@@ -488,7 +488,7 @@ var SchemaValidator = class {
|
|
|
488
488
|
};
|
|
489
489
|
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region src/core/providers/CodecManager.ts
|
|
491
|
+
//#region ../../src/core/providers/CodecManager.ts
|
|
492
492
|
/**
|
|
493
493
|
* CodecManager manages multiple codec formats and provides a unified interface
|
|
494
494
|
* for encoding and decoding data with different formats.
|
|
@@ -553,7 +553,7 @@ var CodecManager = class {
|
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
//#endregion
|
|
556
|
-
//#region src/core/providers/EventManager.ts
|
|
556
|
+
//#region ../../src/core/providers/EventManager.ts
|
|
557
557
|
var EventManager = class {
|
|
558
558
|
logFn;
|
|
559
559
|
/**
|
|
@@ -617,7 +617,7 @@ var EventManager = class {
|
|
|
617
617
|
};
|
|
618
618
|
|
|
619
619
|
//#endregion
|
|
620
|
-
//#region src/core/primitives/$atom.ts
|
|
620
|
+
//#region ../../src/core/primitives/$atom.ts
|
|
621
621
|
/**
|
|
622
622
|
* Define an atom for state management.
|
|
623
623
|
*
|
|
@@ -668,7 +668,7 @@ var Atom = class {
|
|
|
668
668
|
$atom[KIND] = "atom";
|
|
669
669
|
|
|
670
670
|
//#endregion
|
|
671
|
-
//#region src/core/providers/StateManager.ts
|
|
671
|
+
//#region ../../src/core/providers/StateManager.ts
|
|
672
672
|
var StateManager = class {
|
|
673
673
|
als = $inject(AlsProvider);
|
|
674
674
|
events = $inject(EventManager);
|
|
@@ -762,7 +762,7 @@ var StateManager = class {
|
|
|
762
762
|
};
|
|
763
763
|
|
|
764
764
|
//#endregion
|
|
765
|
-
//#region src/core/Alepha.ts
|
|
765
|
+
//#region ../../src/core/Alepha.ts
|
|
766
766
|
/**
|
|
767
767
|
* Core container of the Alepha framework.
|
|
768
768
|
*
|
|
@@ -1019,6 +1019,10 @@ var Alepha = class Alepha {
|
|
|
1019
1019
|
constructor(init = {}) {
|
|
1020
1020
|
this.init = init;
|
|
1021
1021
|
}
|
|
1022
|
+
set(target, value) {
|
|
1023
|
+
this.store.set(target, value);
|
|
1024
|
+
return this;
|
|
1025
|
+
}
|
|
1022
1026
|
/**
|
|
1023
1027
|
* True when start() is called.
|
|
1024
1028
|
*
|
|
@@ -1362,7 +1366,7 @@ var Alepha = class Alepha {
|
|
|
1362
1366
|
};
|
|
1363
1367
|
|
|
1364
1368
|
//#endregion
|
|
1365
|
-
//#region src/core/errors/AppNotStartedError.ts
|
|
1369
|
+
//#region ../../src/core/errors/AppNotStartedError.ts
|
|
1366
1370
|
var AppNotStartedError = class extends AlephaError {
|
|
1367
1371
|
name = "AppNotStartedError";
|
|
1368
1372
|
constructor() {
|
|
@@ -1371,7 +1375,7 @@ var AppNotStartedError = class extends AlephaError {
|
|
|
1371
1375
|
};
|
|
1372
1376
|
|
|
1373
1377
|
//#endregion
|
|
1374
|
-
//#region src/core/helpers/createPagination.ts
|
|
1378
|
+
//#region ../../src/core/helpers/createPagination.ts
|
|
1375
1379
|
/**
|
|
1376
1380
|
* Create a pagination object from an array of entities.
|
|
1377
1381
|
*
|
|
@@ -1442,7 +1446,7 @@ function createPagination(entities, limit = 10, offset = 0, sort) {
|
|
|
1442
1446
|
}
|
|
1443
1447
|
|
|
1444
1448
|
//#endregion
|
|
1445
|
-
//#region src/core/helpers/FileLike.ts
|
|
1449
|
+
//#region ../../src/core/helpers/FileLike.ts
|
|
1446
1450
|
const isTypeFile = (value) => {
|
|
1447
1451
|
return value && typeof value === "object" && "format" in value && value.format === "binary";
|
|
1448
1452
|
};
|
|
@@ -1451,7 +1455,7 @@ const isFileLike = (value) => {
|
|
|
1451
1455
|
};
|
|
1452
1456
|
|
|
1453
1457
|
//#endregion
|
|
1454
|
-
//#region src/core/providers/TypeProvider.ts
|
|
1458
|
+
//#region ../../src/core/providers/TypeProvider.ts
|
|
1455
1459
|
const isUUID = TypeBoxFormat.IsUuid;
|
|
1456
1460
|
const isEmail = TypeBoxFormat.IsEmail;
|
|
1457
1461
|
const isURL = TypeBoxFormat.IsUrl;
|
|
@@ -1896,7 +1900,7 @@ var TypeProvider = class TypeProvider {
|
|
|
1896
1900
|
const t = new TypeProvider();
|
|
1897
1901
|
|
|
1898
1902
|
//#endregion
|
|
1899
|
-
//#region src/core/primitives/$env.ts
|
|
1903
|
+
//#region ../../src/core/primitives/$env.ts
|
|
1900
1904
|
/**
|
|
1901
1905
|
* Get typed values from environment variables.
|
|
1902
1906
|
*
|
|
@@ -1930,7 +1934,7 @@ const $env = (type) => {
|
|
|
1930
1934
|
};
|
|
1931
1935
|
|
|
1932
1936
|
//#endregion
|
|
1933
|
-
//#region src/core/primitives/$hook.ts
|
|
1937
|
+
//#region ../../src/core/primitives/$hook.ts
|
|
1934
1938
|
/**
|
|
1935
1939
|
* Registers a new hook.
|
|
1936
1940
|
*
|
|
@@ -1987,7 +1991,7 @@ var HookPrimitive = class extends Primitive {
|
|
|
1987
1991
|
$hook[KIND] = HookPrimitive;
|
|
1988
1992
|
|
|
1989
1993
|
//#endregion
|
|
1990
|
-
//#region src/core/primitives/$use.ts
|
|
1994
|
+
//#region ../../src/core/primitives/$use.ts
|
|
1991
1995
|
/**
|
|
1992
1996
|
* Subscribes to an atom's state and returns its current value for use in components.
|
|
1993
1997
|
*
|
|
@@ -2021,7 +2025,7 @@ const $use = (atom) => {
|
|
|
2021
2025
|
};
|
|
2022
2026
|
|
|
2023
2027
|
//#endregion
|
|
2024
|
-
//#region src/core/schemas/pageQuerySchema.ts
|
|
2028
|
+
//#region ../../src/core/schemas/pageQuerySchema.ts
|
|
2025
2029
|
const pageQuerySchema = t.object({
|
|
2026
2030
|
page: t.optional(t.integer({
|
|
2027
2031
|
description: "The page number to retrieve.",
|
|
@@ -2038,7 +2042,7 @@ const pageQuerySchema = t.object({
|
|
|
2038
2042
|
});
|
|
2039
2043
|
|
|
2040
2044
|
//#endregion
|
|
2041
|
-
//#region src/core/schemas/pageSchema.ts
|
|
2045
|
+
//#region ../../src/core/schemas/pageSchema.ts
|
|
2042
2046
|
const pageMetadataSchema = t.object({
|
|
2043
2047
|
number: t.integer({ description: "Page number, starting from 0" }),
|
|
2044
2048
|
size: t.integer({ description: "Number of items per page (requested page size)" }),
|
|
@@ -2086,7 +2090,7 @@ const pageSchema = (objectSchema, options) => t.object({
|
|
|
2086
2090
|
TypeProvider.prototype.page = (itemSchema) => pageSchema(itemSchema);
|
|
2087
2091
|
|
|
2088
2092
|
//#endregion
|
|
2089
|
-
//#region src/core/index.native.ts
|
|
2093
|
+
//#region ../../src/core/index.native.ts
|
|
2090
2094
|
if (!Promise.withResolvers) Promise.withResolvers = () => {
|
|
2091
2095
|
let resolve;
|
|
2092
2096
|
let reject;
|