@tstdl/base 0.93.21 → 0.93.22

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.
Files changed (59) hide show
  1. package/application/application.js +1 -1
  2. package/authentication/server/module.d.ts +1 -1
  3. package/authentication/server/module.js +1 -6
  4. package/document-management/api/document-management.api.d.ts +0 -4
  5. package/document-management/service-models/document.service-model.d.ts +0 -2
  6. package/injector/injector.js +9 -9
  7. package/logger/manager.js +3 -3
  8. package/orm/data-types/bytea.d.ts +4 -14
  9. package/orm/data-types/bytea.js +2 -2
  10. package/orm/data-types/common.d.ts +18 -0
  11. package/orm/data-types/common.js +11 -0
  12. package/orm/data-types/index.d.ts +1 -0
  13. package/orm/data-types/index.js +1 -0
  14. package/orm/data-types/numeric-date.d.ts +4 -15
  15. package/orm/data-types/numeric-date.js +2 -2
  16. package/orm/data-types/timestamp.d.ts +4 -15
  17. package/orm/data-types/timestamp.js +2 -2
  18. package/orm/data-types/tsvector.d.ts +3 -13
  19. package/orm/data-types/tsvector.js +2 -2
  20. package/orm/decorators.d.ts +16 -54
  21. package/orm/decorators.js +24 -37
  22. package/orm/entity.d.ts +6 -9
  23. package/orm/entity.js +1 -2
  24. package/orm/query.d.ts +199 -61
  25. package/orm/query.js +2 -2
  26. package/orm/repository.types.d.ts +38 -9
  27. package/orm/server/drizzle/schema-converter.js +40 -118
  28. package/orm/server/query-converter.d.ts +21 -7
  29. package/orm/server/query-converter.js +194 -38
  30. package/orm/server/repository.d.ts +39 -22
  31. package/orm/server/repository.js +141 -71
  32. package/orm/server/types.d.ts +10 -2
  33. package/orm/sqls.d.ts +14 -16
  34. package/orm/sqls.js +34 -17
  35. package/package.json +2 -2
  36. package/test/drizzle/0000_nervous_iron_monger.sql +9 -0
  37. package/test/drizzle/meta/0000_snapshot.json +27 -7
  38. package/test/drizzle/meta/_journal.json +2 -44
  39. package/test/test.model.js +2 -6
  40. package/test1.js +18 -5
  41. package/test6.js +21 -35
  42. package/types/types.d.ts +8 -5
  43. package/utils/equals.js +2 -2
  44. package/utils/format-error.js +2 -2
  45. package/utils/helpers.js +3 -2
  46. package/utils/object/object.d.ts +4 -4
  47. package/test/drizzle/0000_sudden_sphinx.sql +0 -9
  48. package/test/drizzle/0001_organic_rhodey.sql +0 -2
  49. package/test/drizzle/0002_nice_squadron_supreme.sql +0 -1
  50. package/test/drizzle/0003_serious_mockingbird.sql +0 -1
  51. package/test/drizzle/0004_complete_pixie.sql +0 -1
  52. package/test/drizzle/0005_bumpy_sabra.sql +0 -1
  53. package/test/drizzle/0006_overrated_post.sql +0 -6
  54. package/test/drizzle/meta/0001_snapshot.json +0 -79
  55. package/test/drizzle/meta/0002_snapshot.json +0 -63
  56. package/test/drizzle/meta/0003_snapshot.json +0 -73
  57. package/test/drizzle/meta/0004_snapshot.json +0 -89
  58. package/test/drizzle/meta/0005_snapshot.json +0 -104
  59. package/test/drizzle/meta/0006_snapshot.json +0 -104
@@ -1,73 +0,0 @@
1
- {
2
- "id": "febb0102-cd99-43ee-8458-f25dc50e5264",
3
- "prevId": "c8eced2f-44d3-46b3-aafa-e8a775549cd0",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "test.test": {
8
- "name": "test",
9
- "schema": "test",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": true,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "title": {
19
- "name": "title",
20
- "type": "text",
21
- "primaryKey": false,
22
- "notNull": true
23
- },
24
- "content": {
25
- "name": "content",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true
29
- },
30
- "tags": {
31
- "name": "tags",
32
- "type": "text",
33
- "primaryKey": false,
34
- "notNull": true
35
- },
36
- "language": {
37
- "name": "language",
38
- "type": "text",
39
- "primaryKey": false,
40
- "notNull": true
41
- },
42
- "ftsv_asd": {
43
- "name": "ftsv_asd",
44
- "type": "tsvector",
45
- "primaryKey": false,
46
- "notNull": false,
47
- "generated": {
48
- "as": "(setweight(to_tsvector('simple', \"test\".\"test\".\"title\"), 'A') || setweight(to_tsvector('simple', \"test\".\"test\".\"content\"), 'B') || setweight(to_tsvector('simple', \"test\".\"test\".\"tags\"), 'C'))",
49
- "type": "stored"
50
- }
51
- }
52
- },
53
- "indexes": {},
54
- "foreignKeys": {},
55
- "compositePrimaryKeys": {},
56
- "uniqueConstraints": {},
57
- "policies": {},
58
- "checkConstraints": {},
59
- "isRLSEnabled": false
60
- }
61
- },
62
- "enums": {},
63
- "schemas": {},
64
- "sequences": {},
65
- "roles": {},
66
- "policies": {},
67
- "views": {},
68
- "_meta": {
69
- "columns": {},
70
- "schemas": {},
71
- "tables": {}
72
- }
73
- }
@@ -1,89 +0,0 @@
1
- {
2
- "id": "40cebc5a-7b84-40ff-ba11-c878018e6488",
3
- "prevId": "febb0102-cd99-43ee-8458-f25dc50e5264",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "test.test": {
8
- "name": "test",
9
- "schema": "test",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": true,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "title": {
19
- "name": "title",
20
- "type": "text",
21
- "primaryKey": false,
22
- "notNull": true
23
- },
24
- "content": {
25
- "name": "content",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true
29
- },
30
- "tags": {
31
- "name": "tags",
32
- "type": "text",
33
- "primaryKey": false,
34
- "notNull": true
35
- },
36
- "language": {
37
- "name": "language",
38
- "type": "text",
39
- "primaryKey": false,
40
- "notNull": true
41
- },
42
- "ftsv_asd": {
43
- "name": "ftsv_asd",
44
- "type": "tsvector",
45
- "primaryKey": false,
46
- "notNull": false,
47
- "generated": {
48
- "as": "(setweight(to_tsvector('simple', \"test\".\"test\".\"title\"), 'A') || setweight(to_tsvector('simple', \"test\".\"test\".\"content\"), 'B') || setweight(to_tsvector('simple', \"test\".\"test\".\"tags\"), 'C'))",
49
- "type": "stored"
50
- }
51
- }
52
- },
53
- "indexes": {
54
- "ftsv_asd_gin": {
55
- "name": "ftsv_asd_gin",
56
- "columns": [
57
- {
58
- "expression": "ftsv_asd",
59
- "isExpression": false,
60
- "asc": true,
61
- "nulls": "last"
62
- }
63
- ],
64
- "isUnique": false,
65
- "concurrently": false,
66
- "method": "gin",
67
- "with": {}
68
- }
69
- },
70
- "foreignKeys": {},
71
- "compositePrimaryKeys": {},
72
- "uniqueConstraints": {},
73
- "policies": {},
74
- "checkConstraints": {},
75
- "isRLSEnabled": false
76
- }
77
- },
78
- "enums": {},
79
- "schemas": {},
80
- "sequences": {},
81
- "roles": {},
82
- "policies": {},
83
- "views": {},
84
- "_meta": {
85
- "columns": {},
86
- "schemas": {},
87
- "tables": {}
88
- }
89
- }
@@ -1,104 +0,0 @@
1
- {
2
- "id": "11b20d13-8277-4ab5-bf78-998c6d7816d4",
3
- "prevId": "40cebc5a-7b84-40ff-ba11-c878018e6488",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "test.test": {
8
- "name": "test",
9
- "schema": "test",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": true,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "title": {
19
- "name": "title",
20
- "type": "text",
21
- "primaryKey": false,
22
- "notNull": true
23
- },
24
- "content": {
25
- "name": "content",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true
29
- },
30
- "tags": {
31
- "name": "tags",
32
- "type": "text",
33
- "primaryKey": false,
34
- "notNull": true
35
- },
36
- "language": {
37
- "name": "language",
38
- "type": "text",
39
- "primaryKey": false,
40
- "notNull": true
41
- },
42
- "ftsv_asd": {
43
- "name": "ftsv_asd",
44
- "type": "tsvector",
45
- "primaryKey": false,
46
- "notNull": false,
47
- "generated": {
48
- "as": "(setweight(to_tsvector('simple', \"test\".\"test\".\"title\"), 'A') || setweight(to_tsvector('simple', \"test\".\"test\".\"content\"), 'B') || setweight(to_tsvector('simple', \"test\".\"test\".\"tags\"), 'C'))",
49
- "type": "stored"
50
- }
51
- }
52
- },
53
- "indexes": {
54
- "ftsv_asd_gin": {
55
- "name": "ftsv_asd_gin",
56
- "columns": [
57
- {
58
- "expression": "ftsv_asd",
59
- "isExpression": false,
60
- "asc": true,
61
- "nulls": "last"
62
- }
63
- ],
64
- "isUnique": false,
65
- "concurrently": false,
66
- "method": "gin",
67
- "with": {}
68
- },
69
- "ftst_asd_gist": {
70
- "name": "ftst_asd_gist",
71
- "columns": [
72
- {
73
- "expression": "(\"title\" || \"content\" || \"tags\")",
74
- "asc": true,
75
- "isExpression": true,
76
- "nulls": "last"
77
- }
78
- ],
79
- "isUnique": false,
80
- "concurrently": false,
81
- "method": "gist",
82
- "with": {}
83
- }
84
- },
85
- "foreignKeys": {},
86
- "compositePrimaryKeys": {},
87
- "uniqueConstraints": {},
88
- "policies": {},
89
- "checkConstraints": {},
90
- "isRLSEnabled": false
91
- }
92
- },
93
- "enums": {},
94
- "schemas": {},
95
- "sequences": {},
96
- "roles": {},
97
- "policies": {},
98
- "views": {},
99
- "_meta": {
100
- "columns": {},
101
- "schemas": {},
102
- "tables": {}
103
- }
104
- }
@@ -1,104 +0,0 @@
1
- {
2
- "id": "abdf0c39-ecd3-439a-9b30-1add930c55c0",
3
- "prevId": "11b20d13-8277-4ab5-bf78-998c6d7816d4",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "test.test": {
8
- "name": "test",
9
- "schema": "test",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": true,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "title": {
19
- "name": "title",
20
- "type": "text",
21
- "primaryKey": false,
22
- "notNull": true
23
- },
24
- "content": {
25
- "name": "content",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true
29
- },
30
- "tags": {
31
- "name": "tags",
32
- "type": "text",
33
- "primaryKey": false,
34
- "notNull": true
35
- },
36
- "language": {
37
- "name": "language",
38
- "type": "text",
39
- "primaryKey": false,
40
- "notNull": true
41
- },
42
- "fts_v_asd": {
43
- "name": "fts_v_asd",
44
- "type": "tsvector",
45
- "primaryKey": false,
46
- "notNull": false,
47
- "generated": {
48
- "as": "(setweight(to_tsvector('simple', \"test\".\"test\".\"title\"), 'A') || setweight(to_tsvector('simple', \"test\".\"test\".\"content\"), 'B') || setweight(to_tsvector('simple', \"test\".\"test\".\"tags\"), 'C'))",
49
- "type": "stored"
50
- }
51
- }
52
- },
53
- "indexes": {
54
- "fts_v_asd_gin": {
55
- "name": "fts_v_asd_gin",
56
- "columns": [
57
- {
58
- "expression": "fts_v_asd",
59
- "isExpression": false,
60
- "asc": true,
61
- "nulls": "last"
62
- }
63
- ],
64
- "isUnique": false,
65
- "concurrently": false,
66
- "method": "gin",
67
- "with": {}
68
- },
69
- "fts_t_asd_gist": {
70
- "name": "fts_t_asd_gist",
71
- "columns": [
72
- {
73
- "expression": "(\"title\" || \"content\" || \"tags\")",
74
- "asc": true,
75
- "isExpression": true,
76
- "nulls": "last"
77
- }
78
- ],
79
- "isUnique": false,
80
- "concurrently": false,
81
- "method": "gist",
82
- "with": {}
83
- }
84
- },
85
- "foreignKeys": {},
86
- "compositePrimaryKeys": {},
87
- "uniqueConstraints": {},
88
- "policies": {},
89
- "checkConstraints": {},
90
- "isRLSEnabled": false
91
- }
92
- },
93
- "enums": {},
94
- "schemas": {},
95
- "sequences": {},
96
- "roles": {},
97
- "policies": {},
98
- "views": {},
99
- "_meta": {
100
- "columns": {},
101
- "schemas": {},
102
- "tables": {}
103
- }
104
- }