@simtlix/simfinity-js 2.6.1 → 2.6.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 (54) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +134 -82
  3. package/.claude/worktrees/agitated-kepler/.claude/settings.local.json +0 -23
  4. package/.claude/worktrees/agitated-kepler/AGGREGATION_CHANGES_SUMMARY.md +0 -235
  5. package/.claude/worktrees/agitated-kepler/AGGREGATION_EXAMPLE.md +0 -567
  6. package/.claude/worktrees/agitated-kepler/LICENSE +0 -201
  7. package/.claude/worktrees/agitated-kepler/README.md +0 -3941
  8. package/.claude/worktrees/agitated-kepler/eslint.config.mjs +0 -71
  9. package/.claude/worktrees/agitated-kepler/package-lock.json +0 -4740
  10. package/.claude/worktrees/agitated-kepler/package.json +0 -41
  11. package/.claude/worktrees/agitated-kepler/src/auth/errors.js +0 -44
  12. package/.claude/worktrees/agitated-kepler/src/auth/expressions.js +0 -273
  13. package/.claude/worktrees/agitated-kepler/src/auth/index.js +0 -391
  14. package/.claude/worktrees/agitated-kepler/src/auth/rules.js +0 -274
  15. package/.claude/worktrees/agitated-kepler/src/const/QLOperator.js +0 -39
  16. package/.claude/worktrees/agitated-kepler/src/const/QLSort.js +0 -28
  17. package/.claude/worktrees/agitated-kepler/src/const/QLValue.js +0 -39
  18. package/.claude/worktrees/agitated-kepler/src/errors/internal-server.error.js +0 -11
  19. package/.claude/worktrees/agitated-kepler/src/errors/simfinity.error.js +0 -15
  20. package/.claude/worktrees/agitated-kepler/src/index.js +0 -2412
  21. package/.claude/worktrees/agitated-kepler/src/plugins.js +0 -53
  22. package/.claude/worktrees/agitated-kepler/src/scalars.js +0 -188
  23. package/.claude/worktrees/agitated-kepler/src/validators.js +0 -250
  24. package/.claude/worktrees/agitated-kepler/yarn.lock +0 -1154
  25. package/.claude/worktrees/distracted-swirles-4601fe/.claude/settings.local.json +0 -10
  26. package/.claude/worktrees/distracted-swirles-4601fe/AGGREGATION_CHANGES_SUMMARY.md +0 -235
  27. package/.claude/worktrees/distracted-swirles-4601fe/AGGREGATION_EXAMPLE.md +0 -567
  28. package/.claude/worktrees/distracted-swirles-4601fe/LICENSE +0 -201
  29. package/.claude/worktrees/distracted-swirles-4601fe/README.md +0 -3941
  30. package/.claude/worktrees/distracted-swirles-4601fe/eslint.config.mjs +0 -71
  31. package/.claude/worktrees/distracted-swirles-4601fe/package-lock.json +0 -4740
  32. package/.claude/worktrees/distracted-swirles-4601fe/package.json +0 -41
  33. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/errors.js +0 -44
  34. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/expressions.js +0 -273
  35. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/index.js +0 -391
  36. package/.claude/worktrees/distracted-swirles-4601fe/src/auth/rules.js +0 -274
  37. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLOperator.js +0 -39
  38. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLSort.js +0 -28
  39. package/.claude/worktrees/distracted-swirles-4601fe/src/const/QLValue.js +0 -39
  40. package/.claude/worktrees/distracted-swirles-4601fe/src/errors/internal-server.error.js +0 -11
  41. package/.claude/worktrees/distracted-swirles-4601fe/src/errors/simfinity.error.js +0 -15
  42. package/.claude/worktrees/distracted-swirles-4601fe/src/index.js +0 -1925
  43. package/.claude/worktrees/distracted-swirles-4601fe/src/plugins.js +0 -53
  44. package/.claude/worktrees/distracted-swirles-4601fe/src/scalars.js +0 -188
  45. package/.claude/worktrees/distracted-swirles-4601fe/src/validators.js +0 -250
  46. package/.claude/worktrees/distracted-swirles-4601fe/yarn.lock +0 -1154
  47. package/.cursor/rules/simfinity-architecture.mdc +0 -71
  48. package/.cursor/rules/simfinity-auth-module.mdc +0 -100
  49. package/.cursor/rules/simfinity-coding-standards.mdc +0 -62
  50. package/.cursor/rules/simfinity-core-functions.mdc +0 -84
  51. package/.cursor/rules/simfinity-documentation.mdc +0 -59
  52. package/.cursor/rules/simfinity-extensions.mdc +0 -121
  53. package/.cursor/rules/simfinity-testing.mdc +0 -90
  54. 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;