@tstdl/base 0.93.21 → 0.93.23

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 (61) hide show
  1. package/application/application.js +3 -3
  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 +22 -22
  7. package/injector/resolve-chain.d.ts +7 -5
  8. package/injector/resolve-chain.js +16 -14
  9. package/logger/manager.js +3 -3
  10. package/orm/data-types/bytea.d.ts +4 -14
  11. package/orm/data-types/bytea.js +2 -2
  12. package/orm/data-types/common.d.ts +18 -0
  13. package/orm/data-types/common.js +11 -0
  14. package/orm/data-types/index.d.ts +1 -0
  15. package/orm/data-types/index.js +1 -0
  16. package/orm/data-types/numeric-date.d.ts +4 -15
  17. package/orm/data-types/numeric-date.js +2 -2
  18. package/orm/data-types/timestamp.d.ts +4 -15
  19. package/orm/data-types/timestamp.js +2 -2
  20. package/orm/data-types/tsvector.d.ts +3 -13
  21. package/orm/data-types/tsvector.js +2 -2
  22. package/orm/decorators.d.ts +16 -54
  23. package/orm/decorators.js +24 -37
  24. package/orm/entity.d.ts +6 -9
  25. package/orm/entity.js +1 -2
  26. package/orm/query.d.ts +199 -61
  27. package/orm/query.js +2 -2
  28. package/orm/repository.types.d.ts +38 -9
  29. package/orm/server/drizzle/schema-converter.js +40 -118
  30. package/orm/server/query-converter.d.ts +21 -7
  31. package/orm/server/query-converter.js +194 -38
  32. package/orm/server/repository.d.ts +39 -22
  33. package/orm/server/repository.js +141 -71
  34. package/orm/server/types.d.ts +10 -2
  35. package/orm/sqls.d.ts +14 -16
  36. package/orm/sqls.js +34 -17
  37. package/package.json +2 -2
  38. package/test/drizzle/0000_nervous_iron_monger.sql +9 -0
  39. package/test/drizzle/meta/0000_snapshot.json +27 -7
  40. package/test/drizzle/meta/_journal.json +2 -44
  41. package/test/test.model.js +2 -6
  42. package/test1.js +18 -5
  43. package/test6.js +23 -35
  44. package/types/types.d.ts +8 -5
  45. package/utils/equals.js +2 -2
  46. package/utils/format-error.js +2 -2
  47. package/utils/helpers.js +3 -2
  48. package/utils/object/object.d.ts +4 -4
  49. package/test/drizzle/0000_sudden_sphinx.sql +0 -9
  50. package/test/drizzle/0001_organic_rhodey.sql +0 -2
  51. package/test/drizzle/0002_nice_squadron_supreme.sql +0 -1
  52. package/test/drizzle/0003_serious_mockingbird.sql +0 -1
  53. package/test/drizzle/0004_complete_pixie.sql +0 -1
  54. package/test/drizzle/0005_bumpy_sabra.sql +0 -1
  55. package/test/drizzle/0006_overrated_post.sql +0 -6
  56. package/test/drizzle/meta/0001_snapshot.json +0 -79
  57. package/test/drizzle/meta/0002_snapshot.json +0 -63
  58. package/test/drizzle/meta/0003_snapshot.json +0 -73
  59. package/test/drizzle/meta/0004_snapshot.json +0 -89
  60. package/test/drizzle/meta/0005_snapshot.json +0 -104
  61. package/test/drizzle/meta/0006_snapshot.json +0 -104
@@ -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
- }