@simtlix/simfinity-js 2.6.1 → 2.6.4

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 (55) hide show
  1. package/README.md +23 -3
  2. package/package.json +1 -1
  3. package/src/index.js +155 -83
  4. package/.claude/worktrees/agitated-kepler/.claude/settings.local.json +0 -23
  5. package/.claude/worktrees/agitated-kepler/AGGREGATION_CHANGES_SUMMARY.md +0 -235
  6. package/.claude/worktrees/agitated-kepler/AGGREGATION_EXAMPLE.md +0 -567
  7. package/.claude/worktrees/agitated-kepler/LICENSE +0 -201
  8. package/.claude/worktrees/agitated-kepler/README.md +0 -3941
  9. package/.claude/worktrees/agitated-kepler/eslint.config.mjs +0 -71
  10. package/.claude/worktrees/agitated-kepler/package-lock.json +0 -4740
  11. package/.claude/worktrees/agitated-kepler/package.json +0 -41
  12. package/.claude/worktrees/agitated-kepler/src/auth/errors.js +0 -44
  13. package/.claude/worktrees/agitated-kepler/src/auth/expressions.js +0 -273
  14. package/.claude/worktrees/agitated-kepler/src/auth/index.js +0 -391
  15. package/.claude/worktrees/agitated-kepler/src/auth/rules.js +0 -274
  16. package/.claude/worktrees/agitated-kepler/src/const/QLOperator.js +0 -39
  17. package/.claude/worktrees/agitated-kepler/src/const/QLSort.js +0 -28
  18. package/.claude/worktrees/agitated-kepler/src/const/QLValue.js +0 -39
  19. package/.claude/worktrees/agitated-kepler/src/errors/internal-server.error.js +0 -11
  20. package/.claude/worktrees/agitated-kepler/src/errors/simfinity.error.js +0 -15
  21. package/.claude/worktrees/agitated-kepler/src/index.js +0 -2412
  22. package/.claude/worktrees/agitated-kepler/src/plugins.js +0 -53
  23. package/.claude/worktrees/agitated-kepler/src/scalars.js +0 -188
  24. package/.claude/worktrees/agitated-kepler/src/validators.js +0 -250
  25. package/.claude/worktrees/agitated-kepler/yarn.lock +0 -1154
  26. package/.claude/worktrees/distracted-swirles-4601fe/.claude/settings.local.json +0 -10
  27. package/.claude/worktrees/distracted-swirles-4601fe/AGGREGATION_CHANGES_SUMMARY.md +0 -235
  28. package/.claude/worktrees/distracted-swirles-4601fe/AGGREGATION_EXAMPLE.md +0 -567
  29. package/.claude/worktrees/distracted-swirles-4601fe/LICENSE +0 -201
  30. package/.claude/worktrees/distracted-swirles-4601fe/README.md +0 -3941
  31. package/.claude/worktrees/distracted-swirles-4601fe/eslint.config.mjs +0 -71
  32. package/.claude/worktrees/distracted-swirles-4601fe/package-lock.json +0 -4740
  33. package/.claude/worktrees/distracted-swirles-4601fe/package.json +0 -41
  34. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/errors.js +0 -44
  35. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/expressions.js +0 -273
  36. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/index.js +0 -391
  37. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/rules.js +0 -274
  38. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLOperator.js +0 -39
  39. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLSort.js +0 -28
  40. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLValue.js +0 -39
  41. package/.claude/worktrees/distracted-swirles-4601fe/src/errors/internal-server.error.js +0 -11
  42. package/.claude/worktrees/distracted-swirles-4601fe/src/errors/simfinity.error.js +0 -15
  43. package/.claude/worktrees/distracted-swirles-4601fe/src/index.js +0 -1925
  44. package/.claude/worktrees/distracted-swirles-4601fe/src/plugins.js +0 -53
  45. package/.claude/worktrees/distracted-swirles-4601fe/src/scalars.js +0 -188
  46. package/.claude/worktrees/distracted-swirles-4601fe/src/validators.js +0 -250
  47. package/.claude/worktrees/distracted-swirles-4601fe/yarn.lock +0 -1154
  48. package/.cursor/rules/simfinity-architecture.mdc +0 -71
  49. package/.cursor/rules/simfinity-auth-module.mdc +0 -100
  50. package/.cursor/rules/simfinity-coding-standards.mdc +0 -62
  51. package/.cursor/rules/simfinity-core-functions.mdc +0 -84
  52. package/.cursor/rules/simfinity-documentation.mdc +0 -59
  53. package/.cursor/rules/simfinity-extensions.mdc +0 -121
  54. package/.cursor/rules/simfinity-testing.mdc +0 -90
  55. package/eslint.config.mjs +0 -71
@@ -1,28 +0,0 @@
1
- import {
2
- GraphQLInputObjectType,
3
- GraphQLNonNull,
4
- GraphQLEnumType,
5
- GraphQLString,
6
- } from 'graphql';
7
-
8
- const QLSortOrder = new GraphQLEnumType({
9
- name: 'QLSortOrder',
10
- values: {
11
- DESC: {
12
- value: 'DESC',
13
- },
14
- ASC: {
15
- value: 'ASC',
16
- },
17
- },
18
- });
19
-
20
- const QLSort = new GraphQLInputObjectType({
21
- name: 'QLSort',
22
- fields: () => ({
23
- field: { type: new GraphQLNonNull(GraphQLString) },
24
- order: { type: new GraphQLNonNull(QLSortOrder) },
25
- }),
26
- });
27
-
28
- export default QLSort;
@@ -1,39 +0,0 @@
1
- import { GraphQLScalarType, Kind } from 'graphql';
2
-
3
- function parseQLValue(value) {
4
- return value;
5
- }
6
-
7
- const QLValue = new GraphQLScalarType({
8
- name: 'QLValue',
9
- serialize: parseQLValue,
10
- parseValue: parseQLValue,
11
- parseLiteral(ast) {
12
- if (ast.kind === Kind.INT) {
13
- return parseInt(ast.value, 10);
14
- } if (ast.kind === Kind.FLOAT) {
15
- return parseFloat(ast.value);
16
- } if (ast.kind === Kind.BOOLEAN) {
17
- return ast.value === 'true' || ast.value === true;
18
- } if (ast.kind === Kind.STRING) {
19
- return ast.value;
20
- } if (ast.kind === Kind.LIST) {
21
- const values = [];
22
- ast.values.forEach((value) => {
23
- if (value.kind === Kind.INT) {
24
- values.push(parseInt(value.value, 10));
25
- } else if (value.kind === Kind.FLOAT) {
26
- values.push(parseFloat(value.value));
27
- } else if (value.kind === Kind.BOOLEAN) {
28
- values.push(value.value === 'true' || value.value === true);
29
- } else if (value.kind === Kind.STRING) {
30
- values.push(value.value);
31
- }
32
- });
33
- return values;
34
- }
35
- return null;
36
- },
37
- });
38
-
39
- export default QLValue;
@@ -1,11 +0,0 @@
1
- import SimfinityError from './simfinity.error.js';
2
-
3
- class InternalServerError extends SimfinityError {
4
- constructor(message, cause) {
5
- super(message, 'INTERNAL_SERVER_ERROR');
6
- this.cause = cause;
7
- this.getCause = () => this.cause;
8
- }
9
- }
10
-
11
- export default InternalServerError;
@@ -1,15 +0,0 @@
1
- class SimfinityError extends Error {
2
- constructor(message, code, status) {
3
- super(message);
4
- this.extensions = {
5
- code,
6
- status,
7
- timestamp: new Date().toUTCString(),
8
- };
9
- this.getCode = () => this.extensions.code;
10
- this.getStatus = () => this.extensions.status;
11
- this.getTimestamp = () => this.extensions.timestamp;
12
- }
13
- }
14
-
15
- export default SimfinityError;