@degenerate/endpoints 0.0.11 → 0.0.12

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 (25) hide show
  1. package/dist/cors/endpoints/helpers/validate-incoming-request-data.d.ts.map +1 -1
  2. package/dist/cors/endpoints/helpers/validate-incoming-request-data.js +1 -0
  3. package/dist/cors/routes/authorities/v1.routes.d.ts.map +1 -1
  4. package/dist/cors/routes/authorities/v1.routes.js +4 -3
  5. package/dist/schema/rules-transactions.schema.d.ts +109 -281
  6. package/dist/schema/rules-transactions.schema.d.ts.map +1 -1
  7. package/dist/schema/transactions.schema.d.ts +16 -17
  8. package/dist/schema/transactions.schema.d.ts.map +1 -1
  9. package/dist/schema/transactions.schema.js +9 -11
  10. package/package.json +3 -3
  11. package/dist/cors/endpoints/authorities/validate-authorities-transaction.d.ts +0 -30
  12. package/dist/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +0 -1
  13. package/dist/cors/endpoints/authorities/validate-authorities-transaction.js +0 -155
  14. package/dist/schema/authorities-transactions.schema.d.ts +0 -306
  15. package/dist/schema/authorities-transactions.schema.d.ts.map +0 -1
  16. package/dist/schema/authorities-transactions.schema.js +0 -71
  17. package/dist/schema/rules/rules-conditions.schema.d.ts +0 -402
  18. package/dist/schema/rules/rules-conditions.schema.d.ts.map +0 -1
  19. package/dist/schema/rules/rules-conditions.schema.js +0 -99
  20. package/dist/schema/rules/rules-enums.schema.d.ts +0 -39
  21. package/dist/schema/rules/rules-enums.schema.d.ts.map +0 -1
  22. package/dist/schema/rules/rules-enums.schema.js +0 -90
  23. package/dist/schema/rules/rules.schema.d.ts +0 -2839
  24. package/dist/schema/rules/rules.schema.d.ts.map +0 -1
  25. package/dist/schema/rules/rules.schema.js +0 -76
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../../src/schema/rules/rules.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- //#region Rule
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.IRuleEvaluationResultsSchema = exports.IShareRulesEvaluationResultSchema = exports.IShareRuleEvaluationResultSchema = exports.IShareRuleSetSchema = exports.IShareRuleGroupSchema = exports.IShareRuleAppliedSchema = exports.IShareRuleSchema = void 0;
5
- const zod_1 = require("zod");
6
- const rules_conditions_schema_1 = require("./rules-conditions.schema");
7
- const rules_enums_schema_1 = require("./rules-enums.schema");
8
- /**
9
- * This contains the schema for a share rule in the share data object.
10
- */
11
- exports.IShareRuleSchema = zod_1.z.lazy(() => zod_1.z.object({
12
- ruleId: zod_1.z.string(),
13
- currentDataConditions: zod_1.z.array(rules_conditions_schema_1.IConditionSchema),
14
- proposedDataConditions: zod_1.z.array(rules_conditions_schema_1.IConditionSchema),
15
- }));
16
- /**
17
- * This contains the applied rule information in the share data object.
18
- */
19
- exports.IShareRuleAppliedSchema = zod_1.z.object({
20
- ruleId: zod_1.z.string(),
21
- currentDataConditions: zod_1.z.array(rules_conditions_schema_1.IConditionSchema), // Replace with actual condition schema
22
- proposedDataConditions: zod_1.z.array(rules_conditions_schema_1.IConditionSchema), // Replace with actual condition schema
23
- targettedProperty: zod_1.z.string(),
24
- });
25
- //#endregion Rule
26
- //#region RuleGroup
27
- /**
28
- * This contains the schema for a rule group.
29
- * A rule group can contain individual rules or nested rule groups.
30
- */
31
- exports.IShareRuleGroupSchema = zod_1.z.lazy(() => zod_1.z.object({
32
- operator: rules_enums_schema_1.LogicalOperatorSchema,
33
- rules: zod_1.z.array(zod_1.z.union([exports.IShareRuleAppliedSchema, exports.IShareRuleGroupSchema])),
34
- }));
35
- //#endregion RuleGroup
36
- //#region RuleSet
37
- /**
38
- * This contains the schema for the rule set in the share data object.
39
- */
40
- exports.IShareRuleSetSchema = zod_1.z.object({
41
- description: zod_1.z.string().optional(), // the description of the rule set
42
- id: zod_1.z.string(), // the id of the rule set
43
- name: zod_1.z.string(), // the name of the rule set
44
- ruleGroups: zod_1.z.array(exports.IShareRuleGroupSchema), // the rules in the rule set
45
- version: zod_1.z.number(), // the version of the rule set
46
- });
47
- //#endregion RuleSet
48
- //#region Rule Evaluation
49
- /**
50
- * This contains the schema for the rule evaluation.
51
- */
52
- exports.IShareRuleEvaluationResultSchema = zod_1.z.object({
53
- ruleId: zod_1.z.string(),
54
- currentResult: zod_1.z.boolean(),
55
- currentConditionFailure: zod_1.z.array(rules_conditions_schema_1.IConditionSchema),
56
- proposedResult: zod_1.z.boolean(),
57
- proposedConditionFailure: zod_1.z.array(rules_conditions_schema_1.IConditionSchema),
58
- });
59
- /**
60
- * This contains the schema for the rule evaluation.
61
- */
62
- exports.IShareRulesEvaluationResultSchema = zod_1.z.object({
63
- rootParam: zod_1.z.string(),
64
- passedRuleCheck: zod_1.z.boolean(),
65
- passedRuleId: zod_1.z.string(),
66
- shareRuleEvaluationResults: zod_1.z.array(exports.IShareRuleEvaluationResultSchema),
67
- });
68
- /**
69
- * This contains the schema for the rule evaluation results.
70
- */
71
- exports.IRuleEvaluationResultsSchema = zod_1.z.object({
72
- shareDataId: zod_1.z.string(),
73
- rulesResults: zod_1.z.array(exports.IShareRulesEvaluationResultSchema),
74
- isValidProposal: zod_1.z.boolean(),
75
- });
76
- //#endregion Rule Evaluation