@atscript/moost-mongo 0.0.32 → 0.1.1
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 +0 -5
- package/dist/index.mjs +0 -5
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,6 @@ var QueryControlsDto = class {
|
|
|
47
47
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
48
48
|
_define_property$1(QueryControlsDto, "type", {});
|
|
49
49
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
50
|
-
_define_property$1(QueryControlsDto, "_jsonSchema", void 0);
|
|
51
50
|
var PagesControlsDto = class {
|
|
52
51
|
static toJsonSchema() {
|
|
53
52
|
return this._jsonSchema ?? (this._jsonSchema = (0, __atscript_typescript_utils.buildJsonSchema)(this));
|
|
@@ -56,7 +55,6 @@ var PagesControlsDto = class {
|
|
|
56
55
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
57
56
|
_define_property$1(PagesControlsDto, "type", {});
|
|
58
57
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
59
|
-
_define_property$1(PagesControlsDto, "_jsonSchema", void 0);
|
|
60
58
|
var GetOneControlsDto = class {
|
|
61
59
|
static toJsonSchema() {
|
|
62
60
|
return this._jsonSchema ?? (this._jsonSchema = (0, __atscript_typescript_utils.buildJsonSchema)(this));
|
|
@@ -65,7 +63,6 @@ var GetOneControlsDto = class {
|
|
|
65
63
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
66
64
|
_define_property$1(GetOneControlsDto, "type", {});
|
|
67
65
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
68
|
-
_define_property$1(GetOneControlsDto, "_jsonSchema", void 0);
|
|
69
66
|
let SortControlDto = class SortControlDto$1 {
|
|
70
67
|
static toJsonSchema() {
|
|
71
68
|
return this._jsonSchema ?? (this._jsonSchema = (0, __atscript_typescript_utils.buildJsonSchema)(this));
|
|
@@ -74,7 +71,6 @@ let SortControlDto = class SortControlDto$1 {
|
|
|
74
71
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
75
72
|
_define_property$1(SortControlDto, "type", {});
|
|
76
73
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
77
|
-
_define_property$1(SortControlDto, "_jsonSchema", void 0);
|
|
78
74
|
let SelectControlDto = class SelectControlDto$1 {
|
|
79
75
|
static toJsonSchema() {
|
|
80
76
|
return this._jsonSchema ?? (this._jsonSchema = (0, __atscript_typescript_utils.buildJsonSchema)(this));
|
|
@@ -83,7 +79,6 @@ let SelectControlDto = class SelectControlDto$1 {
|
|
|
83
79
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
|
84
80
|
_define_property$1(SelectControlDto, "type", {});
|
|
85
81
|
_define_property$1(SelectControlDto, "metadata", new Map());
|
|
86
|
-
_define_property$1(SelectControlDto, "_jsonSchema", void 0);
|
|
87
82
|
(0, __atscript_typescript_utils.defineAnnotatedType)("object", QueryControlsDto).prop("$skip", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("number").tags("positive", "int", "number").annotate("expect.min", 0).annotate("expect.int", true).optional().$type).prop("$limit", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("number").tags("positive", "int", "number").annotate("expect.min", 0).annotate("expect.int", true).optional().$type).prop("$count", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("boolean").tags("boolean").optional().$type).prop("$sort", (0, __atscript_typescript_utils.defineAnnotatedType)().refTo(SortControlDto).optional().$type).prop("$select", (0, __atscript_typescript_utils.defineAnnotatedType)().refTo(SelectControlDto).optional().$type).prop("$search", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").optional().$type).prop("$index", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").optional().$type);
|
|
88
83
|
(0, __atscript_typescript_utils.defineAnnotatedType)("object", PagesControlsDto).prop("$page", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").annotate("expect.pattern", {
|
|
89
84
|
pattern: "^\\d+$",
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,6 @@ var QueryControlsDto = class {
|
|
|
23
23
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
24
24
|
_define_property$1(QueryControlsDto, "type", {});
|
|
25
25
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
26
|
-
_define_property$1(QueryControlsDto, "_jsonSchema", void 0);
|
|
27
26
|
var PagesControlsDto = class {
|
|
28
27
|
static toJsonSchema() {
|
|
29
28
|
return this._jsonSchema ?? (this._jsonSchema = buildJsonSchema(this));
|
|
@@ -32,7 +31,6 @@ var PagesControlsDto = class {
|
|
|
32
31
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
33
32
|
_define_property$1(PagesControlsDto, "type", {});
|
|
34
33
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
35
|
-
_define_property$1(PagesControlsDto, "_jsonSchema", void 0);
|
|
36
34
|
var GetOneControlsDto = class {
|
|
37
35
|
static toJsonSchema() {
|
|
38
36
|
return this._jsonSchema ?? (this._jsonSchema = buildJsonSchema(this));
|
|
@@ -41,7 +39,6 @@ var GetOneControlsDto = class {
|
|
|
41
39
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
42
40
|
_define_property$1(GetOneControlsDto, "type", {});
|
|
43
41
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
44
|
-
_define_property$1(GetOneControlsDto, "_jsonSchema", void 0);
|
|
45
42
|
let SortControlDto = class SortControlDto$1 {
|
|
46
43
|
static toJsonSchema() {
|
|
47
44
|
return this._jsonSchema ?? (this._jsonSchema = buildJsonSchema(this));
|
|
@@ -50,7 +47,6 @@ let SortControlDto = class SortControlDto$1 {
|
|
|
50
47
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
51
48
|
_define_property$1(SortControlDto, "type", {});
|
|
52
49
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
53
|
-
_define_property$1(SortControlDto, "_jsonSchema", void 0);
|
|
54
50
|
let SelectControlDto = class SelectControlDto$1 {
|
|
55
51
|
static toJsonSchema() {
|
|
56
52
|
return this._jsonSchema ?? (this._jsonSchema = buildJsonSchema(this));
|
|
@@ -59,7 +55,6 @@ let SelectControlDto = class SelectControlDto$1 {
|
|
|
59
55
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
|
60
56
|
_define_property$1(SelectControlDto, "type", {});
|
|
61
57
|
_define_property$1(SelectControlDto, "metadata", new Map());
|
|
62
|
-
_define_property$1(SelectControlDto, "_jsonSchema", void 0);
|
|
63
58
|
defineAnnotatedType("object", QueryControlsDto).prop("$skip", defineAnnotatedType().designType("number").tags("positive", "int", "number").annotate("expect.min", 0).annotate("expect.int", true).optional().$type).prop("$limit", defineAnnotatedType().designType("number").tags("positive", "int", "number").annotate("expect.min", 0).annotate("expect.int", true).optional().$type).prop("$count", defineAnnotatedType().designType("boolean").tags("boolean").optional().$type).prop("$sort", defineAnnotatedType().refTo(SortControlDto).optional().$type).prop("$select", defineAnnotatedType().refTo(SelectControlDto).optional().$type).prop("$search", defineAnnotatedType().designType("string").tags("string").optional().$type).prop("$index", defineAnnotatedType().designType("string").tags("string").optional().$type);
|
|
64
59
|
defineAnnotatedType("object", PagesControlsDto).prop("$page", defineAnnotatedType().designType("string").tags("string").annotate("expect.pattern", {
|
|
65
60
|
pattern: "^\\d+$",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/moost-mongo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Atscript Mongo for Moost.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"urlql": "^0.0.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"vitest": "3.2.4"
|
|
41
|
+
"vitest": "3.2.4",
|
|
42
|
+
"@atscript/core": "^0.1.1"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@moostjs/event-http": "^0.5.32",
|
|
45
46
|
"mongodb": "^6.17.0",
|
|
46
47
|
"moost": "^0.5.32",
|
|
47
|
-
"@atscript/mongo": "^0.
|
|
48
|
-
"@atscript/typescript": "^0.
|
|
48
|
+
"@atscript/mongo": "^0.1.1",
|
|
49
|
+
"@atscript/typescript": "^0.1.1"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
|
51
52
|
"pub": "pnpm publish --access public",
|