@atscript/moost-mongo 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +6 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ else obj[key] = value;
|
|
|
41
41
|
}
|
|
42
42
|
var QueryControlsDto = class {
|
|
43
43
|
static toJsonSchema() {
|
|
44
|
-
|
|
44
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -49,7 +49,7 @@ _define_property$1(QueryControlsDto, "type", {});
|
|
|
49
49
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
50
50
|
var PagesControlsDto = class {
|
|
51
51
|
static toJsonSchema() {
|
|
52
|
-
|
|
52
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -57,7 +57,7 @@ _define_property$1(PagesControlsDto, "type", {});
|
|
|
57
57
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
58
58
|
var GetOneControlsDto = class {
|
|
59
59
|
static toJsonSchema() {
|
|
60
|
-
|
|
60
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -65,7 +65,7 @@ _define_property$1(GetOneControlsDto, "type", {});
|
|
|
65
65
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
66
66
|
let SortControlDto = class SortControlDto$1 {
|
|
67
67
|
static toJsonSchema() {
|
|
68
|
-
|
|
68
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
@@ -73,7 +73,7 @@ _define_property$1(SortControlDto, "type", {});
|
|
|
73
73
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
74
74
|
let SelectControlDto = class SelectControlDto$1 {
|
|
75
75
|
static toJsonSchema() {
|
|
76
|
-
|
|
76
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
package/dist/index.d.ts
CHANGED
|
@@ -57,11 +57,11 @@ declare class AsMongoController<T extends TAtscriptAnnotatedTypeConstructor> {
|
|
|
57
57
|
private _pagesControlsValidator?;
|
|
58
58
|
private _getOneControlsValidator?;
|
|
59
59
|
/** Returns (and memoises) validator for *query* endpoint controls. */
|
|
60
|
-
protected get queryControlsValidator(): Validator<any,
|
|
60
|
+
protected get queryControlsValidator(): Validator<any, unknown> | undefined;
|
|
61
61
|
/** Returns (and memoises) validator for *pages* endpoint controls. */
|
|
62
|
-
protected get pagesControlsValidator(): Validator<any,
|
|
62
|
+
protected get pagesControlsValidator(): Validator<any, unknown> | undefined;
|
|
63
63
|
/** Returns (and memoises) validator for *one* endpoint controls. */
|
|
64
|
-
protected get getOneControlsValidator(): Validator<any,
|
|
64
|
+
protected get getOneControlsValidator(): Validator<any, unknown> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Validates `$limit`, `$skip`, `$sort`, `$select`, `$count` controls for the
|
|
67
67
|
* **query** endpoint.
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body, Delete, Get, HttpError, Patch, Post, Put, Url } from "@moostjs/event-http";
|
|
2
2
|
import { ApplyDecorators, Controller, Inherit, Inject, Moost, Param, Provide, Resolve } from "moost";
|
|
3
3
|
import { parseUrlql } from "urlql";
|
|
4
|
-
import { ValidatorError,
|
|
4
|
+
import { ValidatorError, defineAnnotatedType } from "@atscript/typescript/utils";
|
|
5
5
|
import { AsMongo } from "@atscript/mongo";
|
|
6
6
|
|
|
7
7
|
//#region packages/moost-mongo/src/dto/controls.dto.as.js
|
|
@@ -17,7 +17,7 @@ else obj[key] = value;
|
|
|
17
17
|
}
|
|
18
18
|
var QueryControlsDto = class {
|
|
19
19
|
static toJsonSchema() {
|
|
20
|
-
|
|
20
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -25,7 +25,7 @@ _define_property$1(QueryControlsDto, "type", {});
|
|
|
25
25
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
26
26
|
var PagesControlsDto = class {
|
|
27
27
|
static toJsonSchema() {
|
|
28
|
-
|
|
28
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -33,7 +33,7 @@ _define_property$1(PagesControlsDto, "type", {});
|
|
|
33
33
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
34
34
|
var GetOneControlsDto = class {
|
|
35
35
|
static toJsonSchema() {
|
|
36
|
-
|
|
36
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
@@ -41,7 +41,7 @@ _define_property$1(GetOneControlsDto, "type", {});
|
|
|
41
41
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
42
42
|
let SortControlDto = class SortControlDto$1 {
|
|
43
43
|
static toJsonSchema() {
|
|
44
|
-
|
|
44
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
@@ -49,7 +49,7 @@ _define_property$1(SortControlDto, "type", {});
|
|
|
49
49
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
50
50
|
let SelectControlDto = class SelectControlDto$1 {
|
|
51
51
|
static toJsonSchema() {
|
|
52
|
-
|
|
52
|
+
throw new Error("JSON Schema support is disabled. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add @emit.jsonSchema annotation to individual interfaces.");
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/moost-mongo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Atscript Mongo for Moost.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"vitest": "3.2.4",
|
|
42
|
-
"@atscript/core": "^0.1.
|
|
42
|
+
"@atscript/core": "^0.1.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@moostjs/event-http": "^0.5.32",
|
|
46
46
|
"mongodb": "^6.17.0",
|
|
47
47
|
"moost": "^0.5.32",
|
|
48
|
-
"@atscript/mongo": "^0.1.
|
|
49
|
-
"@atscript/typescript": "^0.1.
|
|
48
|
+
"@atscript/mongo": "^0.1.3",
|
|
49
|
+
"@atscript/typescript": "^0.1.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"pub": "pnpm publish --access public",
|