@intellegens/cornerstone-client 0.0.9999-alpha-41 → 0.0.9999-alpha-43

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 (233) hide show
  1. package/dist/adapters/collection-view-adapter.d.ts +123 -0
  2. package/dist/adapters/collection-view-adapter.integration.test.d.ts +1 -0
  3. package/dist/adapters/collection-view-adapter.integration.test.js +141 -0
  4. package/dist/adapters/collection-view-adapter.js +352 -0
  5. package/dist/adapters/index.d.ts +2 -2
  6. package/dist/adapters/index.js +2 -2
  7. package/dist/adapters/search-adapter.d.ts +83 -0
  8. package/dist/adapters/search-adapter.js +284 -0
  9. package/dist/data/api/dto/crud/crud-metadata-dto.js +1 -0
  10. package/dist/data/api/dto/crud/index.d.ts +1 -1
  11. package/dist/data/api/dto/crud/index.js +1 -1
  12. package/dist/data/api/dto/index.d.ts +1 -1
  13. package/dist/data/api/dto/index.js +1 -1
  14. package/dist/data/api/dto/property-path-dto.d.ts +4 -0
  15. package/dist/data/api/dto/property-path-dto.js +1 -0
  16. package/dist/data/api/dto/read/index.d.ts +10 -10
  17. package/dist/data/api/dto/read/index.js +10 -10
  18. package/dist/data/api/dto/read/read-metadata-dto.d.ts +8 -0
  19. package/dist/data/api/dto/read/read-metadata-dto.js +1 -0
  20. package/dist/data/api/dto/read/read-selected-definition-dto.d.ts +18 -0
  21. package/dist/data/api/dto/read/read-selected-definition-dto.js +1 -0
  22. package/dist/data/api/dto/read/read-selected-nested-collection-criteria-dto.d.ts +22 -0
  23. package/dist/data/api/dto/read/read-selected-nested-collection-criteria-dto.js +1 -0
  24. package/dist/data/api/dto/read/read-selected-nested-criteria-dto.d.ts +18 -0
  25. package/dist/data/api/dto/read/read-selected-nested-criteria-dto.js +1 -0
  26. package/dist/data/api/dto/read/read-selected-ordering-definition-dto.d.ts +7 -0
  27. package/dist/data/api/dto/read/read-selected-ordering-definition-dto.js +1 -0
  28. package/dist/data/api/dto/read/read-selected-ordering-property-definition-dto.d.ts +14 -0
  29. package/dist/data/api/dto/read/read-selected-ordering-property-definition-dto.js +1 -0
  30. package/dist/data/api/dto/read/read-selected-pagination-definition-dto.d.ts +13 -0
  31. package/dist/data/api/dto/read/read-selected-pagination-definition-dto.js +1 -0
  32. package/dist/data/api/dto/read/read-selected-search-definition-builder.d.ts +167 -0
  33. package/dist/data/api/dto/read/read-selected-search-definition-builder.js +267 -0
  34. package/dist/data/api/dto/read/read-selected-search-definition-dto.d.ts +33 -0
  35. package/dist/data/api/dto/read/read-selected-search-definition-dto.js +1 -0
  36. package/dist/data/api/dto/read/read-selected-search-property-definition-dto.d.ts +114 -0
  37. package/dist/data/api/dto/read/read-selected-search-property-definition-dto.js +1 -0
  38. package/dist/data/api/dto/read-options-dto.d.ts +8 -0
  39. package/dist/data/api/dto/read-options-dto.js +1 -0
  40. package/dist/data/api/dto/read-result-dto.d.ts +12 -0
  41. package/dist/data/api/dto/read-result-dto.js +1 -0
  42. package/dist/data/api/dto/read-result-metadata-dto.d.ts +8 -0
  43. package/dist/data/api/dto/read-result-metadata-dto.js +1 -0
  44. package/dist/data/api/dto/response/api-error-dto.d.ts +17 -0
  45. package/dist/data/api/dto/response/api-error-dto.js +1 -0
  46. package/dist/data/api/dto/response/api-error-response-dto.d.ts +11 -0
  47. package/dist/data/api/dto/response/api-error-response-dto.js +1 -0
  48. package/dist/data/api/dto/response/api-response-dto.d.ts +3 -0
  49. package/dist/data/api/dto/response/api-response-dto.js +1 -0
  50. package/dist/data/api/dto/response/api-success-response-dto.d.ts +13 -0
  51. package/dist/data/api/dto/response/api-success-response-dto.js +1 -0
  52. package/dist/data/api/dto/response/index.d.ts +5 -5
  53. package/dist/data/api/dto/response/index.js +5 -5
  54. package/dist/data/api/dto/response/metadata-dto.d.ts +25 -0
  55. package/dist/data/api/dto/response/metadata-dto.js +1 -0
  56. package/dist/data/api/enum/read/index.d.ts +5 -5
  57. package/dist/data/api/enum/read/index.js +5 -5
  58. package/dist/data/api/enum/read/read-selected-collection-operator.d.ts +16 -0
  59. package/dist/data/api/enum/read/read-selected-collection-operator.js +17 -0
  60. package/dist/data/api/enum/read/read-selected-comparison-operator.d.ts +69 -0
  61. package/dist/data/api/enum/read/read-selected-comparison-operator.js +76 -0
  62. package/dist/data/api/enum/read/read-selected-logical-operator.d.ts +15 -0
  63. package/dist/data/api/enum/read/read-selected-logical-operator.js +16 -0
  64. package/dist/data/api/enum/read/read-selected-ordering-direction.d.ts +13 -0
  65. package/dist/data/api/enum/read/read-selected-ordering-direction.js +14 -0
  66. package/dist/data/api/enum/read/read-selected-property-type.d.ts +66 -0
  67. package/dist/data/api/enum/read/read-selected-property-type.js +75 -0
  68. package/dist/data/api/enum/response/error-code.d.ts +14 -0
  69. package/dist/data/api/enum/response/error-code.js +15 -0
  70. package/dist/data/api/enum/response/index.d.ts +1 -1
  71. package/dist/data/api/enum/response/index.js +1 -1
  72. package/dist/data/api/interface/icommon-identifiable.d.ts +7 -0
  73. package/dist/data/api/interface/icommon-identifiable.js +1 -0
  74. package/dist/data/api/interface/iconcurrency-safe.d.ts +9 -0
  75. package/dist/data/api/interface/iconcurrency-safe.js +1 -0
  76. package/dist/data/api/interface/iidentifiable-secondary.d.ts +9 -0
  77. package/dist/data/api/interface/iidentifiable-secondary.js +1 -0
  78. package/dist/data/api/interface/iidentifiable.d.ts +11 -0
  79. package/dist/data/api/interface/iidentifiable.js +1 -0
  80. package/dist/data/api/interface/index.d.ts +4 -3
  81. package/dist/data/api/interface/index.js +4 -3
  82. package/dist/data/auth/dto/claim-dto.d.ts +4 -0
  83. package/dist/data/auth/dto/claim-dto.js +1 -0
  84. package/dist/data/auth/dto/index.d.ts +6 -5
  85. package/dist/data/auth/dto/index.js +6 -5
  86. package/dist/data/auth/dto/register-request-dto.d.ts +4 -0
  87. package/dist/data/auth/dto/register-request-dto.js +1 -0
  88. package/dist/data/auth/dto/role-dto.d.ts +5 -0
  89. package/dist/data/auth/dto/role-dto.js +1 -0
  90. package/dist/data/auth/dto/role-with-claims-dto.d.ts +5 -0
  91. package/dist/data/auth/dto/role-with-claims-dto.js +1 -0
  92. package/dist/data/auth/dto/sign-in-request-dto.d.ts +4 -0
  93. package/dist/data/auth/dto/sign-in-request-dto.js +1 -0
  94. package/dist/data/auth/dto/tokens-dto.d.ts +4 -0
  95. package/dist/data/auth/dto/tokens-dto.js +1 -0
  96. package/dist/data/auth/dto/user-dto.d.ts +16 -0
  97. package/dist/data/auth/dto/user-dto.js +1 -0
  98. package/dist/data/auth/dto/user-info-dto.d.ts +14 -0
  99. package/dist/data/auth/dto/user-info-dto.js +1 -0
  100. package/dist/services/api/api-crud-controller-client.d.ts +62 -0
  101. package/dist/services/api/api-crud-controller-client.integration.test.d.ts +1 -0
  102. package/dist/services/api/api-crud-controller-client.integration.test.js +34 -0
  103. package/dist/services/api/api-crud-controller-client.js +133 -0
  104. package/dist/services/api/api-initialization-service.d.ts +106 -0
  105. package/dist/services/api/api-initialization-service.js +207 -0
  106. package/dist/services/api/api-read-controller-client.d.ts +62 -0
  107. package/dist/services/api/api-read-controller-client.integration.test.d.ts +1 -0
  108. package/dist/services/api/api-read-controller-client.integration.test.js +59 -0
  109. package/dist/services/api/api-read-controller-client.js +129 -0
  110. package/dist/services/api/http-service/fetch-http-service.d.ts +7 -0
  111. package/dist/services/api/http-service/fetch-http-service.integration.test.d.ts +1 -0
  112. package/dist/services/api/http-service/fetch-http-service.integration.test.js +52 -0
  113. package/dist/services/api/http-service/fetch-http-service.js +29 -0
  114. package/dist/services/api/http-service/http-request-config.d.ts +10 -0
  115. package/dist/services/api/http-service/http-request-config.js +1 -0
  116. package/dist/services/api/http-service/http-response.d.ts +11 -0
  117. package/dist/services/api/http-service/http-response.js +3 -0
  118. package/dist/services/api/http-service/http-service.d.ts +5 -0
  119. package/dist/services/api/http-service/http-service.js +5 -0
  120. package/dist/services/api/http-service/ihttp-service.d.ts +13 -0
  121. package/dist/services/api/http-service/ihttp-service.js +3 -0
  122. package/dist/services/api/http-service/index.d.ts +5 -0
  123. package/dist/services/api/http-service/index.js +5 -0
  124. package/dist/services/api/index.d.ts +5 -5
  125. package/dist/services/api/index.js +5 -5
  126. package/dist/services/api/user-management-controller-client.d.ts +80 -0
  127. package/dist/services/api/user-management-controller-client.integration.test.d.ts +1 -0
  128. package/dist/services/api/user-management-controller-client.integration.test.js +60 -0
  129. package/dist/services/api/user-management-controller-client.js +291 -0
  130. package/dist/services/auth/client/auth-service.d.ts +75 -0
  131. package/dist/services/auth/client/auth-service.js +200 -0
  132. package/dist/services/auth/client/authorization-management-controller-client.d.ts +48 -0
  133. package/dist/services/auth/client/authorization-management-controller-client.integration.test.d.ts +1 -0
  134. package/dist/services/auth/client/authorization-management-controller-client.integration.test.js +89 -0
  135. package/dist/services/auth/client/authorization-management-controller-client.js +148 -0
  136. package/dist/services/auth/client/index.d.ts +2 -2
  137. package/dist/services/auth/client/index.js +2 -2
  138. package/dist/utils/authorization.d.ts +17 -0
  139. package/dist/utils/authorization.js +45 -0
  140. package/dist/utils/events.d.ts +19 -0
  141. package/dist/utils/events.js +12 -0
  142. package/dist/utils/index.d.ts +2 -0
  143. package/dist/utils/index.js +2 -0
  144. package/dist/utils/result.d.ts +21 -0
  145. package/dist/utils/result.js +16 -0
  146. package/dist/utils/search.d.ts +34 -0
  147. package/dist/utils/search.js +106 -0
  148. package/package.json +6 -6
  149. package/src/adapters/collection-view-adapter.integration.test.ts +172 -0
  150. package/src/adapters/collection-view-adapter.ts +458 -0
  151. package/src/adapters/index.ts +2 -2
  152. package/src/adapters/search-adapter.ts +374 -0
  153. package/src/data/api/dto/crud/crud-metadata-dto.ts +4 -0
  154. package/src/data/api/dto/crud/index.ts +1 -1
  155. package/src/data/api/dto/index.ts +1 -1
  156. package/src/data/api/dto/read/index.ts +10 -10
  157. package/src/data/api/dto/read/{ReadSelectedSearchDefinitionBuilder.ts → read-selected-search-definition-builder.ts} +4 -4
  158. package/src/data/api/dto/{ReadResultDto.ts → read-result-dto.ts} +1 -1
  159. package/src/data/api/dto/response/{ApiErrorDto.ts → api-error-dto.ts} +1 -1
  160. package/src/data/api/dto/response/index.ts +5 -5
  161. package/src/data/api/enum/read/index.ts +5 -5
  162. package/src/data/api/enum/response/{ErrorCode.ts → error-code.ts} +1 -0
  163. package/src/data/api/enum/response/index.ts +1 -1
  164. package/src/data/api/interface/{ICommonIdentifiable.ts → icommon-identifiable.ts} +1 -1
  165. package/src/data/api/interface/{IConcurrencySafe.ts → iconcurrency-safe.ts} +1 -1
  166. package/src/data/api/interface/{IIdentifiable.ts → iidentifiable.ts} +1 -1
  167. package/src/data/api/interface/index.ts +4 -3
  168. package/src/data/auth/dto/index.ts +6 -5
  169. package/src/data/auth/dto/role-with-claims-dto.ts +6 -0
  170. package/src/data/auth/dto/{UserDto.ts → user-dto.ts} +5 -6
  171. package/src/services/api/{ApiCrudControllerClient/index.integration.test.ts → api-crud-controller-client.integration.test.ts} +1 -1
  172. package/src/services/api/{ApiCrudControllerClient/index.ts → api-crud-controller-client.ts} +62 -7
  173. package/src/services/api/{ApiInitializationService/index.ts → api-initialization-service.ts} +2 -4
  174. package/src/services/api/{ApiReadControllerClient/index.integration.test.ts → api-read-controller-client.integration.test.ts} +1 -1
  175. package/src/services/api/{ApiReadControllerClient/index.ts → api-read-controller-client.ts} +55 -6
  176. package/src/services/api/{HttpService/FetchHttpService.integration.test.ts → http-service/fetch-http-service.integration.test.ts} +1 -1
  177. package/src/services/api/http-service/http-service.ts +6 -0
  178. package/src/services/api/http-service/index.ts +5 -0
  179. package/src/services/api/index.ts +5 -5
  180. package/src/services/api/{UserManagementControllerClient/index.integration.test.ts → user-management-controller-client.integration.test.ts} +1 -1
  181. package/src/services/api/user-management-controller-client.ts +322 -0
  182. package/src/services/auth/client/index.ts +2 -2
  183. package/src/utils/events.ts +29 -0
  184. package/src/utils/index.ts +2 -0
  185. package/demo/index.ts +0 -29
  186. package/demo/public_html/favicon.ico +0 -0
  187. package/demo/public_html/index.html +0 -105
  188. package/demo/public_html/websettings.json +0 -3
  189. package/src/adapters/CollectionViewAdapter/index.integration.test.ts +0 -197
  190. package/src/adapters/CollectionViewAdapter/index.ts +0 -477
  191. package/src/adapters/SearchAdapter/index.ts +0 -302
  192. package/src/services/api/HttpService/index.ts +0 -12
  193. package/src/services/api/UserManagementControllerClient/index.ts +0 -134
  194. /package/{src/data/api/dto/crud/CrudMetadataDto.ts → dist/data/api/dto/crud/crud-metadata-dto.d.ts} +0 -0
  195. /package/src/data/api/dto/{PropertyPathDto.ts → property-path-dto.ts} +0 -0
  196. /package/src/data/api/dto/read/{ReadMetadataDto.ts → read-metadata-dto.ts} +0 -0
  197. /package/src/data/api/dto/read/{ReadSelectedDefinitionDto.ts → read-selected-definition-dto.ts} +0 -0
  198. /package/src/data/api/dto/read/{ReadSelectedNestedCollectionCriteriaDto.ts → read-selected-nested-collection-criteria-dto.ts} +0 -0
  199. /package/src/data/api/dto/read/{ReadSelectedNestedCriteriaDto.ts → read-selected-nested-criteria-dto.ts} +0 -0
  200. /package/src/data/api/dto/read/{ReadSelectedOrderingDefinitionDto.ts → read-selected-ordering-definition-dto.ts} +0 -0
  201. /package/src/data/api/dto/read/{ReadSelectedOrderingPropertyDefinitionDto.ts → read-selected-ordering-property-definition-dto.ts} +0 -0
  202. /package/src/data/api/dto/read/{ReadSelectedPaginationDefinitionDto.ts → read-selected-pagination-definition-dto.ts} +0 -0
  203. /package/src/data/api/dto/read/{ReadSelectedSearchDefinitionDto.ts → read-selected-search-definition-dto.ts} +0 -0
  204. /package/src/data/api/dto/read/{ReadSelectedSearchPropertyDefinitionDto.ts → read-selected-search-property-definition-dto.ts} +0 -0
  205. /package/src/data/api/dto/{ReadOptionsDto.ts → read-options-dto.ts} +0 -0
  206. /package/src/data/api/dto/{ReadResultMetadataDto.ts → read-result-metadata-dto.ts} +0 -0
  207. /package/src/data/api/dto/response/{ApiErrorResponseDto.ts → api-error-response-dto.ts} +0 -0
  208. /package/src/data/api/dto/response/{ApiResponseDto.ts → api-response-dto.ts} +0 -0
  209. /package/src/data/api/dto/response/{ApiSuccessResponseDto.ts → api-success-response-dto.ts} +0 -0
  210. /package/src/data/api/dto/response/{MetadataDto.ts → metadata-dto.ts} +0 -0
  211. /package/src/data/api/enum/read/{ReadSelectedCollectionOperator.ts → read-selected-collection-operator.ts} +0 -0
  212. /package/src/data/api/enum/read/{ReadSelectedComparisonOperator.ts → read-selected-comparison-operator.ts} +0 -0
  213. /package/src/data/api/enum/read/{ReadSelectedLogicalOperator.ts → read-selected-logical-operator.ts} +0 -0
  214. /package/src/data/api/enum/read/{ReadSelectedOrderingDirection.ts → read-selected-ordering-direction.ts} +0 -0
  215. /package/src/data/api/enum/read/{ReadSelectedPropertyType.ts → read-selected-property-type.ts} +0 -0
  216. /package/src/data/api/interface/{IIdentifiableSecondary.ts → iidentifiable-secondary.ts} +0 -0
  217. /package/src/data/auth/dto/{ClaimDto.ts → claim-dto.ts} +0 -0
  218. /package/src/data/auth/dto/{RegisterRequestDto.ts → register-request-dto.ts} +0 -0
  219. /package/src/data/auth/dto/{RoleDto.ts → role-dto.ts} +0 -0
  220. /package/src/data/auth/dto/{SignInRequestDto.ts → sign-in-request-dto.ts} +0 -0
  221. /package/src/data/auth/dto/{TokensDto.ts → tokens-dto.ts} +0 -0
  222. /package/src/data/auth/dto/{UserInfoDto.ts → user-info-dto.ts} +0 -0
  223. /package/src/services/api/{HttpService → http-service}/README.md +0 -0
  224. /package/src/services/api/{HttpService/FetchHttpService.ts → http-service/fetch-http-service.ts} +0 -0
  225. /package/src/services/api/{HttpService/HttpRequestConfig.ts → http-service/http-request-config.ts} +0 -0
  226. /package/src/services/api/{HttpService/HttpResponse.ts → http-service/http-response.ts} +0 -0
  227. /package/src/services/api/{HttpService/IHttpService.ts → http-service/ihttp-service.ts} +0 -0
  228. /package/src/services/auth/client/{AuthService/index.ts → auth-service.ts} +0 -0
  229. /package/src/services/auth/client/{AuthorizationManagementControllerClient/index.integration.test.ts → authorization-management-controller-client.integration.test.ts} +0 -0
  230. /package/src/services/auth/client/{AuthorizationManagementControllerClient/index.ts → authorization-management-controller-client.ts} +0 -0
  231. /package/src/utils/{authorization/index.ts → authorization.ts} +0 -0
  232. /package/src/utils/{result/index.ts → result.ts} +0 -0
  233. /package/src/utils/{search/index.ts → search.ts} +0 -0
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Represents a successful API response containing a result and metadata.
3
+ *
4
+ * @template T The type of result
5
+ * @template TMetadata The type of metadata
6
+ * @property {T} result - The result returned
7
+ * @property {TMetadata} metadata - Metadata about the result
8
+ */
9
+ export type ApiSuccessResponseDto<T, TMetadata> = {
10
+ ok: true;
11
+ result: T;
12
+ metadata: TMetadata;
13
+ };
@@ -1,5 +1,5 @@
1
- export * from './ApiResponseDto';
2
- export * from './ApiSuccessResponseDto';
3
- export * from './ApiErrorDto';
4
- export * from './MetadataDto';
5
- export * from './ApiErrorResponseDto';
1
+ export * from './api-response-dto';
2
+ export * from './api-success-response-dto';
3
+ export * from './api-error-dto';
4
+ export * from './metadata-dto';
5
+ export * from './api-error-response-dto';
@@ -1,5 +1,5 @@
1
- export * from './ApiResponseDto';
2
- export * from './ApiSuccessResponseDto';
3
- export * from './ApiErrorDto';
4
- export * from './MetadataDto';
5
- export * from './ApiErrorResponseDto';
1
+ export * from './api-response-dto';
2
+ export * from './api-success-response-dto';
3
+ export * from './api-error-dto';
4
+ export * from './metadata-dto';
5
+ export * from './api-error-response-dto';
@@ -0,0 +1,25 @@
1
+ declare const __brand: unique symbol;
2
+ /**
3
+ * Utility type for creating branded types that are nominally different but structurally identical.
4
+ * This enables compile-time type safety for values that would otherwise have the same runtime structure.
5
+ *
6
+ * @template T - The brand identifier string literal type
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * type UserId = Brand<'userId'>;
11
+ * type OrderId = Brand<'orderId'>;
12
+ *
13
+ * const userId: UserId = { [__brand]: 'userId' } as UserId;
14
+ * const orderId: OrderId = userId; // Type error! Different brands
15
+ * ```
16
+ */
17
+ export type Brand<T extends string> = {
18
+ [__brand]: T;
19
+ };
20
+ /**
21
+ * Default, empty metadata.
22
+ */
23
+ export type EmptyMetadataDto = Brand<'emptyMetadata'>;
24
+ export type ValidationFailedMetadataDto = Brand<'validationFailedMetadata'>;
25
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
- export * from './ReadSelectedCollectionOperator';
2
- export * from './ReadSelectedComparisonOperator';
3
- export * from './ReadSelectedLogicalOperator';
4
- export * from './ReadSelectedOrderingDirection';
5
- export * from './ReadSelectedPropertyType';
1
+ export * from './read-selected-collection-operator';
2
+ export * from './read-selected-comparison-operator';
3
+ export * from './read-selected-logical-operator';
4
+ export * from './read-selected-ordering-direction';
5
+ export * from './read-selected-property-type';
@@ -1,5 +1,5 @@
1
- export * from './ReadSelectedCollectionOperator';
2
- export * from './ReadSelectedComparisonOperator';
3
- export * from './ReadSelectedLogicalOperator';
4
- export * from './ReadSelectedOrderingDirection';
5
- export * from './ReadSelectedPropertyType';
1
+ export * from './read-selected-collection-operator';
2
+ export * from './read-selected-comparison-operator';
3
+ export * from './read-selected-logical-operator';
4
+ export * from './read-selected-ordering-direction';
5
+ export * from './read-selected-property-type';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Represents the collection quantifier operators that can be used when searching collection properties.
3
+ *
4
+ * The `Any` operator matches if at least one element in the collection satisfies the criteria.
5
+ * The `All` operator matches if all elements in the collection satisfy the criteria.
6
+ */
7
+ export declare enum ReadSelectedCollectionOperator {
8
+ /**
9
+ * Matches if at least one element in the collection satisfies the criteria.
10
+ */
11
+ Any = 0,
12
+ /**
13
+ * Matches if all elements in the collection satisfy the criteria.
14
+ */
15
+ All = 1
16
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Represents the collection quantifier operators that can be used when searching collection properties.
3
+ *
4
+ * The `Any` operator matches if at least one element in the collection satisfies the criteria.
5
+ * The `All` operator matches if all elements in the collection satisfy the criteria.
6
+ */
7
+ export var ReadSelectedCollectionOperator;
8
+ (function (ReadSelectedCollectionOperator) {
9
+ /**
10
+ * Matches if at least one element in the collection satisfies the criteria.
11
+ */
12
+ ReadSelectedCollectionOperator[ReadSelectedCollectionOperator["Any"] = 0] = "Any";
13
+ /**
14
+ * Matches if all elements in the collection satisfy the criteria.
15
+ */
16
+ ReadSelectedCollectionOperator[ReadSelectedCollectionOperator["All"] = 1] = "All";
17
+ })(ReadSelectedCollectionOperator || (ReadSelectedCollectionOperator = {}));
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Represents the basic comparison operators that can be used in a controller.
3
+ */
4
+ export declare enum ReadSelectedComparisonOperator {
5
+ /**
6
+ * Represents the equal comparison operator.
7
+ */
8
+ Equal = 0,
9
+ /**
10
+ * Represents the not equal comparison operator.
11
+ */
12
+ NotEqual = 1,
13
+ /**
14
+ * Represents the is null comparison operator.
15
+ */
16
+ IsNull = 2,
17
+ /**
18
+ * Represents the is not null comparison operator.
19
+ */
20
+ IsNotNull = 3,
21
+ /**
22
+ * Represents the less than comparison operator.
23
+ */
24
+ LessThan = 100,
25
+ /**
26
+ * Represents the less than or equal comparison operator.
27
+ */
28
+ LessOrEqual = 101,
29
+ /**
30
+ * Represents the greater than comparison operator.
31
+ */
32
+ GreaterThan = 102,
33
+ /**
34
+ * Represents the greater than or equal comparison operator.
35
+ */
36
+ GreaterOrEqual = 103,
37
+ /**
38
+ * Represents the contains comparison operator.
39
+ */
40
+ Contains = 200,
41
+ /**
42
+ * Represents the starts with comparison operator.
43
+ */
44
+ StartsWith = 201,
45
+ /**
46
+ * Represents the ends with comparison operator.
47
+ */
48
+ EndsWith = 202,
49
+ /**
50
+ * Represents the contains comparison operator (case-insensitive).
51
+ */
52
+ IContains = 203,
53
+ /**
54
+ * Represents the starts with comparison operator (case-insensitive).
55
+ */
56
+ IStartsWith = 204,
57
+ /**
58
+ * Represents the ends with comparison operator (case-insensitive).
59
+ */
60
+ IEndsWith = 205,
61
+ /**
62
+ * Represents the equal comparison operator (case-insensitive).
63
+ */
64
+ IEqual = 206,
65
+ /**
66
+ * Represents the not equal comparison operator (case-insensitive).
67
+ */
68
+ INotEqual = 207
69
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Represents the basic comparison operators that can be used in a controller.
3
+ */
4
+ export var ReadSelectedComparisonOperator;
5
+ (function (ReadSelectedComparisonOperator) {
6
+ //#region Any type
7
+ /**
8
+ * Represents the equal comparison operator.
9
+ */
10
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["Equal"] = 0] = "Equal";
11
+ /**
12
+ * Represents the not equal comparison operator.
13
+ */
14
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["NotEqual"] = 1] = "NotEqual";
15
+ /**
16
+ * Represents the is null comparison operator.
17
+ */
18
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IsNull"] = 2] = "IsNull";
19
+ /**
20
+ * Represents the is not null comparison operator.
21
+ */
22
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IsNotNull"] = 3] = "IsNotNull";
23
+ //#endregion
24
+ //#region Number
25
+ /**
26
+ * Represents the less than comparison operator.
27
+ */
28
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["LessThan"] = 100] = "LessThan";
29
+ /**
30
+ * Represents the less than or equal comparison operator.
31
+ */
32
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["LessOrEqual"] = 101] = "LessOrEqual";
33
+ /**
34
+ * Represents the greater than comparison operator.
35
+ */
36
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["GreaterThan"] = 102] = "GreaterThan";
37
+ /**
38
+ * Represents the greater than or equal comparison operator.
39
+ */
40
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["GreaterOrEqual"] = 103] = "GreaterOrEqual";
41
+ //#endregion
42
+ //#region String
43
+ /**
44
+ * Represents the contains comparison operator.
45
+ */
46
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["Contains"] = 200] = "Contains";
47
+ /**
48
+ * Represents the starts with comparison operator.
49
+ */
50
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["StartsWith"] = 201] = "StartsWith";
51
+ /**
52
+ * Represents the ends with comparison operator.
53
+ */
54
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["EndsWith"] = 202] = "EndsWith";
55
+ /**
56
+ * Represents the contains comparison operator (case-insensitive).
57
+ */
58
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IContains"] = 203] = "IContains";
59
+ /**
60
+ * Represents the starts with comparison operator (case-insensitive).
61
+ */
62
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IStartsWith"] = 204] = "IStartsWith";
63
+ /**
64
+ * Represents the ends with comparison operator (case-insensitive).
65
+ */
66
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IEndsWith"] = 205] = "IEndsWith";
67
+ /**
68
+ * Represents the equal comparison operator (case-insensitive).
69
+ */
70
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["IEqual"] = 206] = "IEqual";
71
+ /**
72
+ * Represents the not equal comparison operator (case-insensitive).
73
+ */
74
+ ReadSelectedComparisonOperator[ReadSelectedComparisonOperator["INotEqual"] = 207] = "INotEqual";
75
+ //#endregion
76
+ })(ReadSelectedComparisonOperator || (ReadSelectedComparisonOperator = {}));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Represents the logical operators that can be used in a controller.
3
+ * - The `And` operator combines multiple conditions, requiring all of them to be true.
4
+ * - The `Or` operator combines multiple conditions, requiring at least one of them to be true.
5
+ */
6
+ export declare enum ReadSelectedLogicalOperator {
7
+ /**
8
+ * Represents the logical AND operator.
9
+ */
10
+ And = 0,
11
+ /**
12
+ * Represents the logical OR operator.
13
+ */
14
+ Or = 1
15
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Represents the logical operators that can be used in a controller.
3
+ * - The `And` operator combines multiple conditions, requiring all of them to be true.
4
+ * - The `Or` operator combines multiple conditions, requiring at least one of them to be true.
5
+ */
6
+ export var ReadSelectedLogicalOperator;
7
+ (function (ReadSelectedLogicalOperator) {
8
+ /**
9
+ * Represents the logical AND operator.
10
+ */
11
+ ReadSelectedLogicalOperator[ReadSelectedLogicalOperator["And"] = 0] = "And";
12
+ /**
13
+ * Represents the logical OR operator.
14
+ */
15
+ ReadSelectedLogicalOperator[ReadSelectedLogicalOperator["Or"] = 1] = "Or";
16
+ })(ReadSelectedLogicalOperator || (ReadSelectedLogicalOperator = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Represents options for ordering directions
3
+ */
4
+ export declare enum ReadSelectedOrderingDirection {
5
+ /**
6
+ * Ascending ordering
7
+ */
8
+ Ascending = 0,
9
+ /**
10
+ * Descending ordering
11
+ */
12
+ Descending = 1
13
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Represents options for ordering directions
3
+ */
4
+ export var ReadSelectedOrderingDirection;
5
+ (function (ReadSelectedOrderingDirection) {
6
+ /**
7
+ * Ascending ordering
8
+ */
9
+ ReadSelectedOrderingDirection[ReadSelectedOrderingDirection["Ascending"] = 0] = "Ascending";
10
+ /**
11
+ * Descending ordering
12
+ */
13
+ ReadSelectedOrderingDirection[ReadSelectedOrderingDirection["Descending"] = 1] = "Descending";
14
+ })(ReadSelectedOrderingDirection || (ReadSelectedOrderingDirection = {}));
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Represents the basic property types that can be used in a controller.
3
+ * - The ReadSelectedPropertyType enum defines the basic property types that can be used in a fetch controller. These types include boolean, integer, long, and string.
4
+ */
5
+ export declare enum ReadSelectedPropertyType {
6
+ /**
7
+ * Represents a boolean property type.
8
+ */
9
+ Bool = 0,
10
+ /**
11
+ * Represents an integer property type.
12
+ */
13
+ Int = 100,
14
+ /**
15
+ * Represents a short property type.
16
+ */
17
+ Short = 101,
18
+ /**
19
+ * Represents a long property type.
20
+ */
21
+ Long = 102,
22
+ /**
23
+ * Represents a decimal property type.
24
+ */
25
+ Decimal = 103,
26
+ /**
27
+ * Represents a double property type.
28
+ */
29
+ Double = 104,
30
+ /**
31
+ * Represents a float property type.
32
+ */
33
+ Float = 105,
34
+ /**
35
+ * Represents a string property type.
36
+ */
37
+ String = 200,
38
+ /**
39
+ * Represents a Guid property type.
40
+ */
41
+ Guid = 201,
42
+ /**
43
+ * Represents a DateTime property type.
44
+ */
45
+ DateTime = 300,
46
+ /**
47
+ * Represents a DateTimeOffset property type.
48
+ */
49
+ DateTimeOffset = 301,
50
+ /**
51
+ * Represents a TimeSpan property type.
52
+ */
53
+ TimeSpan = 302,
54
+ /**
55
+ * Represents a DateOnly property type.
56
+ */
57
+ DateOnly = 303,
58
+ /**
59
+ * Represents a TimeOnly property type.
60
+ */
61
+ TimeOnly = 304,
62
+ /**
63
+ * Represents an Enum property type.
64
+ */
65
+ Enum = 400
66
+ }
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Represents the basic property types that can be used in a controller.
3
+ * - The ReadSelectedPropertyType enum defines the basic property types that can be used in a fetch controller. These types include boolean, integer, long, and string.
4
+ */
5
+ export var ReadSelectedPropertyType;
6
+ (function (ReadSelectedPropertyType) {
7
+ //#region Boolean
8
+ /**
9
+ * Represents a boolean property type.
10
+ */
11
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Bool"] = 0] = "Bool";
12
+ //#endregion
13
+ //#region Number
14
+ /**
15
+ * Represents an integer property type.
16
+ */
17
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Int"] = 100] = "Int";
18
+ /**
19
+ * Represents a short property type.
20
+ */
21
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Short"] = 101] = "Short";
22
+ /**
23
+ * Represents a long property type.
24
+ */
25
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Long"] = 102] = "Long";
26
+ /**
27
+ * Represents a decimal property type.
28
+ */
29
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Decimal"] = 103] = "Decimal";
30
+ /**
31
+ * Represents a double property type.
32
+ */
33
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Double"] = 104] = "Double";
34
+ /**
35
+ * Represents a float property type.
36
+ */
37
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Float"] = 105] = "Float";
38
+ //#endregion
39
+ //#region string
40
+ /**
41
+ * Represents a string property type.
42
+ */
43
+ ReadSelectedPropertyType[ReadSelectedPropertyType["String"] = 200] = "String";
44
+ /**
45
+ * Represents a Guid property type.
46
+ */
47
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Guid"] = 201] = "Guid";
48
+ //#endregion
49
+ //#region Time
50
+ /**
51
+ * Represents a DateTime property type.
52
+ */
53
+ ReadSelectedPropertyType[ReadSelectedPropertyType["DateTime"] = 300] = "DateTime";
54
+ /**
55
+ * Represents a DateTimeOffset property type.
56
+ */
57
+ ReadSelectedPropertyType[ReadSelectedPropertyType["DateTimeOffset"] = 301] = "DateTimeOffset";
58
+ /**
59
+ * Represents a TimeSpan property type.
60
+ */
61
+ ReadSelectedPropertyType[ReadSelectedPropertyType["TimeSpan"] = 302] = "TimeSpan";
62
+ /**
63
+ * Represents a DateOnly property type.
64
+ */
65
+ ReadSelectedPropertyType[ReadSelectedPropertyType["DateOnly"] = 303] = "DateOnly";
66
+ /**
67
+ * Represents a TimeOnly property type.
68
+ */
69
+ ReadSelectedPropertyType[ReadSelectedPropertyType["TimeOnly"] = 304] = "TimeOnly";
70
+ //#endregion
71
+ /**
72
+ * Represents an Enum property type.
73
+ */
74
+ ReadSelectedPropertyType[ReadSelectedPropertyType["Enum"] = 400] = "Enum";
75
+ })(ReadSelectedPropertyType || (ReadSelectedPropertyType = {}));
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Represents available error codes to be returned as part of the ApiResponse object
3
+ */
4
+ export declare enum ErrorCode {
5
+ InternalServerError = 500,
6
+ NotFound = 404,
7
+ BadRequest = 400,
8
+ NotImplemented = 501,
9
+ Unauthorized = 401,
10
+ GatewayTimeout = 504,
11
+ ValidationFailed = 422,
12
+ UnknownError = 599,
13
+ Aborted = 0
14
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Represents available error codes to be returned as part of the ApiResponse object
3
+ */
4
+ export var ErrorCode;
5
+ (function (ErrorCode) {
6
+ ErrorCode[ErrorCode["InternalServerError"] = 500] = "InternalServerError";
7
+ ErrorCode[ErrorCode["NotFound"] = 404] = "NotFound";
8
+ ErrorCode[ErrorCode["BadRequest"] = 400] = "BadRequest";
9
+ ErrorCode[ErrorCode["NotImplemented"] = 501] = "NotImplemented";
10
+ ErrorCode[ErrorCode["Unauthorized"] = 401] = "Unauthorized";
11
+ ErrorCode[ErrorCode["GatewayTimeout"] = 504] = "GatewayTimeout";
12
+ ErrorCode[ErrorCode["ValidationFailed"] = 422] = "ValidationFailed";
13
+ ErrorCode[ErrorCode["UnknownError"] = 599] = "UnknownError";
14
+ ErrorCode[ErrorCode["Aborted"] = 0] = "Aborted";
15
+ })(ErrorCode || (ErrorCode = {}));
@@ -1 +1 @@
1
- export * from './ErrorCode';
1
+ export * from './error-code';
@@ -1 +1 @@
1
- export * from './ErrorCode';
1
+ export * from './error-code';
@@ -0,0 +1,7 @@
1
+ import { IIdentifiable } from '../..';
2
+ export interface ICommonIdentifiable<TKey> extends IIdentifiable<TKey> {
3
+ /**
4
+ * Gets or sets the type of the entity.
5
+ */
6
+ type: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Interface for entities that have row versioning
3
+ */
4
+ export interface IConcurrencySafe {
5
+ /**
6
+ * Row version
7
+ */
8
+ rowVersion: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Interface for entities that have a secondary Id property.
3
+ */
4
+ export interface IIdentifiableSecondary<TKey> {
5
+ /**
6
+ * Gets or sets the secondary Id of the entity.
7
+ */
8
+ idSecondary: TKey;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { IConcurrencySafe } from '../../../data';
2
+ /**
3
+ * Interface for entities that have a Id property.
4
+ * Will be used as a primary key in the database.
5
+ */
6
+ export interface IIdentifiable<TKey> extends IConcurrencySafe {
7
+ /**
8
+ * Gets or sets the Id of the entity.
9
+ */
10
+ id: TKey;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
- export * from './IIdentifiable';
2
- export * from './IIdentifiableSecondary';
3
- export * from './IConcurrencySafe';
1
+ export * from './iidentifiable';
2
+ export * from './iidentifiable-secondary';
3
+ export * from './iconcurrency-safe';
4
+ export * from './icommon-identifiable';
@@ -1,3 +1,4 @@
1
- export * from './IIdentifiable';
2
- export * from './IIdentifiableSecondary';
3
- export * from './IConcurrencySafe';
1
+ export * from './iidentifiable';
2
+ export * from './iidentifiable-secondary';
3
+ export * from './iconcurrency-safe';
4
+ export * from './icommon-identifiable';
@@ -0,0 +1,4 @@
1
+ export type ClaimDto = {
2
+ type: string;
3
+ value: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- export * from './ClaimDto';
2
- export * from './UserDto';
3
- export * from './UserInfoDto';
4
- export * from './RoleDto';
5
- export * from './RegisterRequestDto';
1
+ export * from './claim-dto';
2
+ export * from './user-dto';
3
+ export * from './user-info-dto';
4
+ export * from './role-dto';
5
+ export * from './role-with-claims-dto';
6
+ export * from './register-request-dto';
@@ -1,5 +1,6 @@
1
- export * from './ClaimDto';
2
- export * from './UserDto';
3
- export * from './UserInfoDto';
4
- export * from './RoleDto';
5
- export * from './RegisterRequestDto';
1
+ export * from './claim-dto';
2
+ export * from './user-dto';
3
+ export * from './user-info-dto';
4
+ export * from './role-dto';
5
+ export * from './role-with-claims-dto';
6
+ export * from './register-request-dto';
@@ -0,0 +1,4 @@
1
+ export type RegisterRequestDto = {
2
+ username: string;
3
+ password: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ClaimDto } from '../..';
2
+ export type RoleDto = {
3
+ name: string;
4
+ claims: ClaimDto[];
5
+ };
@@ -0,0 +1 @@
1
+ export {};