@nocobase/database 1.0.0-alpha.2 → 1.0.0-alpha.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.
Files changed (215) hide show
  1. package/lib/collection-factory.d.ts +8 -0
  2. package/lib/collection-factory.js +9 -0
  3. package/lib/collection-group-manager.d.ts +8 -0
  4. package/lib/collection-group-manager.js +9 -0
  5. package/lib/collection-importer.d.ts +8 -0
  6. package/lib/collection-importer.js +9 -0
  7. package/lib/collection.d.ts +8 -0
  8. package/lib/collection.js +9 -0
  9. package/lib/database-utils/index.d.ts +8 -0
  10. package/lib/database-utils/index.js +9 -0
  11. package/lib/database.d.ts +8 -0
  12. package/lib/database.js +9 -0
  13. package/lib/decorators/must-have-filter-decorator.d.ts +8 -0
  14. package/lib/decorators/must-have-filter-decorator.js +9 -0
  15. package/lib/decorators/target-collection-decorator.d.ts +8 -0
  16. package/lib/decorators/target-collection-decorator.js +9 -0
  17. package/lib/decorators/transaction-decorator.d.ts +8 -0
  18. package/lib/decorators/transaction-decorator.js +9 -0
  19. package/lib/eager-loading/eager-loading-tree.d.ts +8 -0
  20. package/lib/eager-loading/eager-loading-tree.js +9 -0
  21. package/lib/errors/identifier-error.d.ts +8 -0
  22. package/lib/errors/identifier-error.js +9 -0
  23. package/lib/errors/zero-column-table-error.d.ts +8 -0
  24. package/lib/errors/zero-column-table-error.js +9 -0
  25. package/lib/features/references-map.d.ts +8 -0
  26. package/lib/features/references-map.js +9 -0
  27. package/lib/features/referential-integrity-check.d.ts +8 -0
  28. package/lib/features/referential-integrity-check.js +9 -0
  29. package/lib/field-repository/array-field-repository.d.ts +8 -0
  30. package/lib/field-repository/array-field-repository.js +9 -0
  31. package/lib/fields/array-field.d.ts +8 -0
  32. package/lib/fields/array-field.js +9 -0
  33. package/lib/fields/belongs-to-field.d.ts +8 -0
  34. package/lib/fields/belongs-to-field.js +9 -0
  35. package/lib/fields/belongs-to-many-field.d.ts +8 -0
  36. package/lib/fields/belongs-to-many-field.js +9 -0
  37. package/lib/fields/boolean-field.d.ts +8 -0
  38. package/lib/fields/boolean-field.js +9 -0
  39. package/lib/fields/context-field.d.ts +8 -0
  40. package/lib/fields/context-field.js +9 -0
  41. package/lib/fields/date-field.d.ts +8 -0
  42. package/lib/fields/date-field.js +9 -0
  43. package/lib/fields/field.d.ts +8 -0
  44. package/lib/fields/field.js +9 -0
  45. package/lib/fields/has-inverse-field.d.ts +8 -0
  46. package/lib/fields/has-inverse-field.js +9 -0
  47. package/lib/fields/has-many-field.d.ts +8 -0
  48. package/lib/fields/has-many-field.js +9 -0
  49. package/lib/fields/has-one-field.d.ts +8 -0
  50. package/lib/fields/has-one-field.js +9 -0
  51. package/lib/fields/index.d.ts +8 -0
  52. package/lib/fields/index.js +9 -0
  53. package/lib/fields/json-field.d.ts +8 -0
  54. package/lib/fields/json-field.js +9 -0
  55. package/lib/fields/nanoid-field.d.ts +8 -0
  56. package/lib/fields/nanoid-field.js +9 -0
  57. package/lib/fields/number-field.d.ts +8 -0
  58. package/lib/fields/number-field.js +9 -0
  59. package/lib/fields/password-field.d.ts +8 -0
  60. package/lib/fields/password-field.js +9 -0
  61. package/lib/fields/radio-field.d.ts +8 -0
  62. package/lib/fields/radio-field.js +9 -0
  63. package/lib/fields/relation-field.d.ts +8 -0
  64. package/lib/fields/relation-field.js +9 -0
  65. package/lib/fields/set-field.d.ts +8 -0
  66. package/lib/fields/set-field.js +9 -0
  67. package/lib/fields/sort-field.d.ts +8 -0
  68. package/lib/fields/sort-field.js +9 -0
  69. package/lib/fields/string-field.d.ts +8 -0
  70. package/lib/fields/string-field.js +9 -0
  71. package/lib/fields/text-field.d.ts +8 -0
  72. package/lib/fields/text-field.js +9 -0
  73. package/lib/fields/time-field.d.ts +8 -0
  74. package/lib/fields/time-field.js +9 -0
  75. package/lib/fields/uid-field.d.ts +8 -0
  76. package/lib/fields/uid-field.js +9 -0
  77. package/lib/fields/uuid-field.d.ts +8 -0
  78. package/lib/fields/uuid-field.js +9 -0
  79. package/lib/fields/virtual-field.d.ts +8 -0
  80. package/lib/fields/virtual-field.js +9 -0
  81. package/lib/filter-match.d.ts +8 -0
  82. package/lib/filter-match.js +9 -0
  83. package/lib/filter-parser.d.ts +8 -0
  84. package/lib/filter-parser.js +9 -0
  85. package/lib/helpers.d.ts +8 -0
  86. package/lib/helpers.js +9 -0
  87. package/lib/index.d.ts +8 -0
  88. package/lib/index.js +9 -0
  89. package/lib/inherited-collection.d.ts +8 -0
  90. package/lib/inherited-collection.js +9 -0
  91. package/lib/inherited-map.d.ts +8 -0
  92. package/lib/inherited-map.js +9 -0
  93. package/lib/inherited-sync-runner.d.ts +8 -0
  94. package/lib/inherited-sync-runner.js +9 -0
  95. package/lib/listeners/adjacency-list.d.ts +8 -0
  96. package/lib/listeners/adjacency-list.js +9 -0
  97. package/lib/listeners/append-child-collection-name-after-repository-find.d.ts +8 -0
  98. package/lib/listeners/append-child-collection-name-after-repository-find.js +9 -0
  99. package/lib/listeners/index.d.ts +8 -0
  100. package/lib/listeners/index.js +9 -0
  101. package/lib/magic-attribute-model.d.ts +8 -0
  102. package/lib/magic-attribute-model.js +9 -0
  103. package/lib/migration.d.ts +8 -0
  104. package/lib/migration.js +9 -0
  105. package/lib/mock-database.d.ts +8 -0
  106. package/lib/mock-database.js +9 -0
  107. package/lib/model-hook.d.ts +8 -0
  108. package/lib/model-hook.js +9 -0
  109. package/lib/model.d.ts +8 -0
  110. package/lib/model.js +9 -0
  111. package/lib/operators/array.d.ts +8 -0
  112. package/lib/operators/array.js +9 -0
  113. package/lib/operators/association.d.ts +8 -0
  114. package/lib/operators/association.js +9 -0
  115. package/lib/operators/boolean.d.ts +8 -0
  116. package/lib/operators/boolean.js +9 -0
  117. package/lib/operators/child-collection.d.ts +8 -0
  118. package/lib/operators/child-collection.js +9 -0
  119. package/lib/operators/date.d.ts +8 -0
  120. package/lib/operators/date.js +9 -0
  121. package/lib/operators/empty.d.ts +8 -0
  122. package/lib/operators/empty.js +9 -0
  123. package/lib/operators/eq.d.ts +8 -0
  124. package/lib/operators/eq.js +9 -0
  125. package/lib/operators/index.d.ts +8 -0
  126. package/lib/operators/index.js +9 -0
  127. package/lib/operators/ne.d.ts +8 -0
  128. package/lib/operators/ne.js +9 -0
  129. package/lib/operators/notIn.d.ts +8 -0
  130. package/lib/operators/notIn.js +9 -0
  131. package/lib/operators/string.d.ts +8 -0
  132. package/lib/operators/string.js +9 -0
  133. package/lib/operators/utils.d.ts +8 -0
  134. package/lib/operators/utils.js +9 -0
  135. package/lib/options-parser.d.ts +8 -0
  136. package/lib/options-parser.js +9 -0
  137. package/lib/query-interface/mysql-query-interface.d.ts +8 -0
  138. package/lib/query-interface/mysql-query-interface.js +9 -0
  139. package/lib/query-interface/postgres-query-interface.d.ts +8 -0
  140. package/lib/query-interface/postgres-query-interface.js +9 -0
  141. package/lib/query-interface/query-interface-builder.d.ts +8 -0
  142. package/lib/query-interface/query-interface-builder.js +9 -0
  143. package/lib/query-interface/query-interface.d.ts +8 -0
  144. package/lib/query-interface/query-interface.js +9 -0
  145. package/lib/query-interface/sqlite-query-interface.d.ts +8 -0
  146. package/lib/query-interface/sqlite-query-interface.js +9 -0
  147. package/lib/relation-repository/belongs-to-many-repository.d.ts +8 -0
  148. package/lib/relation-repository/belongs-to-many-repository.js +9 -0
  149. package/lib/relation-repository/belongs-to-repository.d.ts +8 -0
  150. package/lib/relation-repository/belongs-to-repository.js +9 -0
  151. package/lib/relation-repository/hasmany-repository.d.ts +8 -0
  152. package/lib/relation-repository/hasmany-repository.js +9 -0
  153. package/lib/relation-repository/hasone-repository.d.ts +8 -0
  154. package/lib/relation-repository/hasone-repository.js +9 -0
  155. package/lib/relation-repository/multiple-relation-repository.d.ts +8 -0
  156. package/lib/relation-repository/multiple-relation-repository.js +9 -0
  157. package/lib/relation-repository/relation-repository.d.ts +8 -0
  158. package/lib/relation-repository/relation-repository.js +9 -0
  159. package/lib/relation-repository/single-relation-repository.d.ts +8 -0
  160. package/lib/relation-repository/single-relation-repository.js +9 -0
  161. package/lib/relation-repository/types.d.ts +8 -0
  162. package/lib/relation-repository/types.js +9 -0
  163. package/lib/repositories/tree-repository/adjacency-list-repository.d.ts +8 -0
  164. package/lib/repositories/tree-repository/adjacency-list-repository.js +9 -0
  165. package/lib/repositories/view-repository.d.ts +8 -0
  166. package/lib/repositories/view-repository.js +9 -0
  167. package/lib/repository.d.ts +8 -0
  168. package/lib/repository.js +9 -0
  169. package/lib/sql-collection/index.d.ts +8 -0
  170. package/lib/sql-collection/index.js +9 -0
  171. package/lib/sql-collection/query-generator.d.ts +8 -0
  172. package/lib/sql-collection/query-generator.js +9 -0
  173. package/lib/sql-collection/sql-collection.d.ts +8 -0
  174. package/lib/sql-collection/sql-collection.js +9 -0
  175. package/lib/sql-collection/sql-model.d.ts +8 -0
  176. package/lib/sql-collection/sql-model.js +9 -0
  177. package/lib/sql-parser/index.js +9 -0
  178. package/lib/sql-parser/postgres.js +9 -0
  179. package/lib/sync-runner.d.ts +8 -0
  180. package/lib/sync-runner.js +9 -0
  181. package/lib/types.d.ts +8 -0
  182. package/lib/types.js +9 -0
  183. package/lib/update-associations.d.ts +8 -0
  184. package/lib/update-associations.js +9 -0
  185. package/lib/update-guard.d.ts +8 -0
  186. package/lib/update-guard.js +9 -0
  187. package/lib/utils.d.ts +8 -0
  188. package/lib/utils.js +9 -0
  189. package/lib/value-parsers/array-value-parser.d.ts +8 -0
  190. package/lib/value-parsers/array-value-parser.js +9 -0
  191. package/lib/value-parsers/base-value-parser.d.ts +8 -0
  192. package/lib/value-parsers/base-value-parser.js +9 -0
  193. package/lib/value-parsers/boolean-value-parser.d.ts +8 -0
  194. package/lib/value-parsers/boolean-value-parser.js +9 -0
  195. package/lib/value-parsers/date-value-parser.d.ts +8 -0
  196. package/lib/value-parsers/date-value-parser.js +9 -0
  197. package/lib/value-parsers/index.d.ts +8 -0
  198. package/lib/value-parsers/index.js +9 -0
  199. package/lib/value-parsers/json-value-parser.d.ts +8 -0
  200. package/lib/value-parsers/json-value-parser.js +9 -0
  201. package/lib/value-parsers/number-value-parser.d.ts +8 -0
  202. package/lib/value-parsers/number-value-parser.js +9 -0
  203. package/lib/value-parsers/string-value-parser.d.ts +8 -0
  204. package/lib/value-parsers/string-value-parser.js +9 -0
  205. package/lib/value-parsers/to-many-value-parser.d.ts +8 -0
  206. package/lib/value-parsers/to-many-value-parser.js +9 -0
  207. package/lib/value-parsers/to-one-value-parser.d.ts +8 -0
  208. package/lib/value-parsers/to-one-value-parser.js +9 -0
  209. package/lib/view/field-type-map.d.ts +8 -0
  210. package/lib/view/field-type-map.js +9 -0
  211. package/lib/view/view-inference.d.ts +8 -0
  212. package/lib/view/view-inference.js +9 -0
  213. package/lib/view-collection.d.ts +8 -0
  214. package/lib/view-collection.js +9 -0
  215. package/package.json +4 -4
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Transaction } from 'sequelize';
2
10
  import { AggregateOptions, CreateOptions, DestroyOptions, TargetKey } from '../repository';
3
11
  import { MultipleRelationRepository } from './multiple-relation-repository';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { SingleRelationRepository } from './single-relation-repository';
2
10
  export declare class BelongsToRepository extends SingleRelationRepository {
3
11
  /**
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { AggregateOptions, DestroyOptions, FindOptions, TargetKey, TK } from '../repository';
2
10
  import { AssociatedOptions, MultipleRelationRepository } from './multiple-relation-repository';
3
11
  export declare class HasManyRepository extends MultipleRelationRepository {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { SingleRelationRepository } from './single-relation-repository';
2
10
  export declare class HasOneRepository extends SingleRelationRepository {
3
11
  /**
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { MultiAssociationAccessors, Transaction, Transactionable } from 'sequelize';
2
10
  import { CommonFindOptions, CountOptions, DestroyOptions, Filter, FindOneOptions, FindOptions, TargetKey, TK, UpdateOptions } from '../repository';
3
11
  import { RelationRepository } from './relation-repository';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Association, ModelStatic, Transaction } from 'sequelize';
2
10
  import { Collection } from '../collection';
3
11
  import Database from '../database';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { SingleAssociationAccessors, Transactionable } from 'sequelize';
2
10
  import { Model } from '../model';
3
11
  import { Appends, Except, Fields, Filter, TargetKey, UpdateOptions } from '../repository';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { TargetKey, Values } from '../repository';
2
10
  import { Transactionable } from 'sequelize';
3
11
  export type PrimaryKeyWithThroughValues = [TargetKey, Values];
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { FindOptions, Repository } from '../../repository';
2
10
  import Database from '../../database';
3
11
  import { Collection } from '../../collection';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Repository } from '../repository';
2
10
  export declare class ViewRepository extends Repository {
3
11
  }
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  /// <reference types="node" />
2
10
  import { Association, BulkCreateOptions, CountOptions as SequelizeCountOptions, CreateOptions as SequelizeCreateOptions, DestroyOptions as SequelizeDestroyOptions, FindAndCountOptions as SequelizeAndCountOptions, FindOptions as SequelizeFindOptions, ModelStatic, Transactionable, UpdateOptions as SequelizeUpdateOptions, WhereOperators } from 'sequelize';
3
11
  import { Collection } from './collection';
package/lib/repository.js CHANGED
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  export * from './sql-model';
2
10
  export * from './sql-collection';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { GroupOption, Order, ProjectionAlias, WhereOptions } from 'sequelize';
2
10
  import { SQLModel } from './sql-model';
3
11
  export declare function selectQuery(tableName: string, options: {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Collection, CollectionContext, CollectionOptions } from '../collection';
2
10
  export declare class SqlCollection extends Collection {
3
11
  constructor(options: CollectionOptions, context: CollectionContext);
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Model } from '../model';
2
10
  export declare class SQLModel extends Model {
3
11
  static sql: string;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  "use strict";
2
11
  var __defProp = Object.defineProperty;
3
12
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  "use strict";
2
11
  var __defProp = Object.defineProperty;
3
12
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Model } from './model';
2
10
  import { Model as SequelizeModel } from 'sequelize';
3
11
  export declare class SyncRunner {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/lib/types.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import type { Model } from './model';
2
10
  import type { CreateOptions, DestroyOptions, SaveOptions, SyncOptions, UpdateOptions } from 'sequelize/types';
3
11
  import { Collection, CollectionOptions } from './collection';
package/lib/types.js CHANGED
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Association, BelongsToMany, Hookable, Transactionable } from 'sequelize';
2
10
  import { Model } from './model';
3
11
  export declare function modelAssociations(instance: Model): {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { ModelStatic } from 'sequelize';
2
10
  import { AssociationKeysToBeUpdate, BlackList, WhiteList } from './repository';
3
11
  type UpdateValueItem = string | number | UpdateValues;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/lib/utils.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import Database from './database';
2
10
  export declare function md5(value: string): string;
3
11
  export declare function checkIdentifier(value: string): void;
package/lib/utils.js CHANGED
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { BaseValueParser } from './base-value-parser';
2
10
  export declare class ArrayValueParser extends BaseValueParser {
3
11
  setValue(value: any): Promise<void>;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  export declare class BaseValueParser {
2
10
  ctx: any;
3
11
  field: any;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { BaseValueParser } from './base-value-parser';
2
10
  export declare class BooleanValueParser extends BaseValueParser {
3
11
  setValue(value: any): Promise<void>;