@coasys/ad4m 0.8.2-prerelease → 0.9.0-prerelease

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.
package/lib/index.cjs CHANGED
@@ -6727,10 +6727,10 @@ _Ad4mClient_apolloClient = new WeakMap(), _Ad4mClient_agentClient = new WeakMap(
6727
6727
 
6728
6728
  exports.ExceptionType = void 0;
6729
6729
  (function (ExceptionType) {
6730
- ExceptionType[ExceptionType["LanguageIsNotLoaded"] = 0] = "LanguageIsNotLoaded";
6731
- ExceptionType[ExceptionType["ExpressionIsNotVerified"] = 1] = "ExpressionIsNotVerified";
6732
- ExceptionType[ExceptionType["AgentIsUntrusted"] = 2] = "AgentIsUntrusted";
6733
- ExceptionType[ExceptionType["CapabilityRequested"] = 3] = "CapabilityRequested";
6730
+ ExceptionType["LanguageIsNotLoaded"] = "LANGUAGE_IS_NOT_LOADED";
6731
+ ExceptionType["ExpressionIsNotVerified"] = "EXPRESSION_IS_NOT_VERIFIED";
6732
+ ExceptionType["AgentIsUntrusted"] = "AGENT_IS_UNTRUSTED";
6733
+ ExceptionType["CapabilityRequested"] = "CAPABILITY_REQUESTED";
6734
6734
  })(exports.ExceptionType || (exports.ExceptionType = {}));
6735
6735
 
6736
6736
  var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -7516,7 +7516,7 @@ type ExceptionInfo {
7516
7516
  addon: String
7517
7517
  message: String!
7518
7518
  title: String!
7519
- type: Float!
7519
+ type: Int!
7520
7520
  }
7521
7521
 
7522
7522
  type ExpressionProof {
package/lib/index.js CHANGED
@@ -6723,10 +6723,10 @@ _Ad4mClient_apolloClient = new WeakMap(), _Ad4mClient_agentClient = new WeakMap(
6723
6723
 
6724
6724
  var ExceptionType;
6725
6725
  (function (ExceptionType) {
6726
- ExceptionType[ExceptionType["LanguageIsNotLoaded"] = 0] = "LanguageIsNotLoaded";
6727
- ExceptionType[ExceptionType["ExpressionIsNotVerified"] = 1] = "ExpressionIsNotVerified";
6728
- ExceptionType[ExceptionType["AgentIsUntrusted"] = 2] = "AgentIsUntrusted";
6729
- ExceptionType[ExceptionType["CapabilityRequested"] = 3] = "CapabilityRequested";
6726
+ ExceptionType["LanguageIsNotLoaded"] = "LANGUAGE_IS_NOT_LOADED";
6727
+ ExceptionType["ExpressionIsNotVerified"] = "EXPRESSION_IS_NOT_VERIFIED";
6728
+ ExceptionType["AgentIsUntrusted"] = "AGENT_IS_UNTRUSTED";
6729
+ ExceptionType["CapabilityRequested"] = "CAPABILITY_REQUESTED";
6730
6730
  })(ExceptionType || (ExceptionType = {}));
6731
6731
 
6732
6732
  var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -7512,7 +7512,7 @@ type ExceptionInfo {
7512
7512
  addon: String
7513
7513
  message: String!
7514
7514
  title: String!
7515
- type: Float!
7515
+ type: Int!
7516
7516
  }
7517
7517
 
7518
7518
  type ExpressionProof {
@@ -1,6 +1,6 @@
1
1
  export declare enum ExceptionType {
2
- LanguageIsNotLoaded = 0,
3
- ExpressionIsNotVerified = 1,
4
- AgentIsUntrusted = 2,
5
- CapabilityRequested = 3
2
+ LanguageIsNotLoaded = "LANGUAGE_IS_NOT_LOADED",
3
+ ExpressionIsNotVerified = "EXPRESSION_IS_NOT_VERIFIED",
4
+ AgentIsUntrusted = "AGENT_IS_UNTRUSTED",
5
+ CapabilityRequested = "CAPABILITY_REQUESTED"
6
6
  }
@@ -1,7 +1,7 @@
1
1
  export var ExceptionType;
2
2
  (function (ExceptionType) {
3
- ExceptionType[ExceptionType["LanguageIsNotLoaded"] = 0] = "LanguageIsNotLoaded";
4
- ExceptionType[ExceptionType["ExpressionIsNotVerified"] = 1] = "ExpressionIsNotVerified";
5
- ExceptionType[ExceptionType["AgentIsUntrusted"] = 2] = "AgentIsUntrusted";
6
- ExceptionType[ExceptionType["CapabilityRequested"] = 3] = "CapabilityRequested";
3
+ ExceptionType["LanguageIsNotLoaded"] = "LANGUAGE_IS_NOT_LOADED";
4
+ ExceptionType["ExpressionIsNotVerified"] = "EXPRESSION_IS_NOT_VERIFIED";
5
+ ExceptionType["AgentIsUntrusted"] = "AGENT_IS_UNTRUSTED";
6
+ ExceptionType["CapabilityRequested"] = "CAPABILITY_REQUESTED";
7
7
  })(ExceptionType || (ExceptionType = {}));
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
11
11
  return function (target, key) { decorator(target, key, paramIndex); }
12
12
  };
13
- import { Arg, Mutation, Resolver, Query, Subscription, ObjectType, Field } from "type-graphql";
13
+ import { Arg, Mutation, Resolver, Query, Subscription, ObjectType, Field, Int } from "type-graphql";
14
14
  import { Perspective, PerspectiveExpression, PerspectiveInput } from "../perspectives/Perspective";
15
15
  import { ExpressionProof } from "../expression/Expression";
16
16
  import { LinkExpression } from "../links/Links";
@@ -76,8 +76,8 @@ __decorate([
76
76
  __metadata("design:type", String)
77
77
  ], ExceptionInfo.prototype, "message", void 0);
78
78
  __decorate([
79
- Field(),
80
- __metadata("design:type", Number)
79
+ Field(type => Int),
80
+ __metadata("design:type", String)
81
81
  ], ExceptionInfo.prototype, "type", void 0);
82
82
  __decorate([
83
83
  Field({ nullable: true }),
@@ -81,7 +81,7 @@ type ExceptionInfo {
81
81
  addon: String
82
82
  message: String!
83
83
  title: String!
84
- type: Float!
84
+ type: Int!
85
85
  }
86
86
 
87
87
  type ExpressionProof {
@@ -77,7 +77,7 @@ type ExceptionInfo {
77
77
  addon: String
78
78
  message: String!
79
79
  title: String!
80
- type: Float!
80
+ type: Int!
81
81
  }
82
82
 
83
83
  type ExpressionProof {
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "ws": "8.13.0"
59
59
  },
60
60
  "patchedDependencies": {},
61
- "version": "0.8.2-prerelease",
61
+ "version": "0.9.0-prerelease",
62
62
  "pnpm": {
63
63
  "patchedDependencies": {
64
64
  "graphql@15.7.2": "patches/graphql@15.7.2.patch"
package/src/Exception.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export enum ExceptionType {
2
- LanguageIsNotLoaded,
3
- ExpressionIsNotVerified,
4
- AgentIsUntrusted,
5
- CapabilityRequested,
2
+ LanguageIsNotLoaded = "LANGUAGE_IS_NOT_LOADED",
3
+ ExpressionIsNotVerified = "EXPRESSION_IS_NOT_VERIFIED",
4
+ AgentIsUntrusted = "AGENT_IS_UNTRUSTED",
5
+ CapabilityRequested = "CAPABILITY_REQUESTED",
6
6
  }
@@ -1,4 +1,4 @@
1
- import { Arg, Mutation, Resolver, Query, Subscription, ObjectType, Field } from "type-graphql";
1
+ import { Arg, Mutation, Resolver, Query, Subscription, ObjectType, Field, Int } from "type-graphql";
2
2
  import { Perspective, PerspectiveExpression, PerspectiveInput } from "../perspectives/Perspective";
3
3
  import { ExpressionProof } from "../expression/Expression";
4
4
  import { LinkExpression } from "../links/Links";
@@ -48,7 +48,7 @@ export class ExceptionInfo {
48
48
  title: string;
49
49
  @Field()
50
50
  message: string;
51
- @Field()
51
+ @Field(type => Int)
52
52
  type: ExceptionType;
53
53
  @Field({ nullable: true })
54
54
  addon?: string;