@rulebricks/sdk 1.4.0 → 1.5.0

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 (49) hide show
  1. package/api/types/DecisionLog.d.ts +4 -6
  2. package/api/types/index.d.ts +1 -4
  3. package/api/types/index.js +1 -4
  4. package/dist/api/types/DecisionLog.d.ts +4 -6
  5. package/dist/api/types/index.d.ts +1 -4
  6. package/dist/api/types/index.js +1 -4
  7. package/dist/forge/types.d.ts +3 -1
  8. package/dist/forge/types.js +2 -0
  9. package/dist/forge/values.js +1 -0
  10. package/dist/serialization/types/DecisionLog.d.ts +2 -8
  11. package/dist/serialization/types/DecisionLog.js +1 -8
  12. package/dist/serialization/types/DecisionLogResponse.d.ts +2 -1
  13. package/dist/serialization/types/DecisionLogResponse.js +2 -2
  14. package/dist/serialization/types/index.d.ts +1 -4
  15. package/dist/serialization/types/index.js +1 -4
  16. package/forge/types.d.ts +3 -1
  17. package/forge/types.js +2 -0
  18. package/forge/values.js +1 -0
  19. package/package.json +39 -44
  20. package/serialization/types/DecisionLog.d.ts +2 -8
  21. package/serialization/types/DecisionLog.js +1 -8
  22. package/serialization/types/DecisionLogResponse.d.ts +2 -1
  23. package/serialization/types/DecisionLogResponse.js +2 -2
  24. package/serialization/types/index.d.ts +1 -4
  25. package/serialization/types/index.js +1 -4
  26. package/api/types/DecisionLogDecision.d.ts +0 -8
  27. package/api/types/DecisionLogDecision.js +0 -5
  28. package/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
  29. package/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
  30. package/api/types/DecisionLogRequest.d.ts +0 -15
  31. package/api/types/DecisionLogRequest.js +0 -5
  32. package/dist/api/types/DecisionLogDecision.d.ts +0 -8
  33. package/dist/api/types/DecisionLogDecision.js +0 -5
  34. package/dist/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
  35. package/dist/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
  36. package/dist/api/types/DecisionLogRequest.d.ts +0 -15
  37. package/dist/api/types/DecisionLogRequest.js +0 -5
  38. package/dist/serialization/types/DecisionLogDecision.d.ts +0 -14
  39. package/dist/serialization/types/DecisionLogDecision.js +0 -37
  40. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
  41. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
  42. package/dist/serialization/types/DecisionLogRequest.d.ts +0 -17
  43. package/dist/serialization/types/DecisionLogRequest.js +0 -40
  44. package/serialization/types/DecisionLogDecision.d.ts +0 -14
  45. package/serialization/types/DecisionLogDecision.js +0 -37
  46. package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
  47. package/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
  48. package/serialization/types/DecisionLogRequest.d.ts +0 -17
  49. package/serialization/types/DecisionLogRequest.js +0 -40
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Rulebricks from "../index";
5
- export interface DecisionLog {
6
- request?: Rulebricks.DecisionLogRequest;
7
- response?: Rulebricks.DecisionLogResponse;
8
- decision?: Rulebricks.DecisionLogDecision;
9
- }
4
+ /**
5
+ * Rule/flow execution log entry. Explore this object's schema from your Rulebricks dashboard in the Logs tab.
6
+ */
7
+ export declare type DecisionLog = Record<string, unknown>;
@@ -23,11 +23,8 @@ export * from "./UserInviteResponseUser";
23
23
  export * from "./UserInviteResponse";
24
24
  export * from "./UserGroup";
25
25
  export * from "./UserGroupListResponse";
26
- export * from "./DecisionLogRequest";
27
- export * from "./DecisionLogResponse";
28
- export * from "./DecisionLogDecisionConditionsItemValue";
29
- export * from "./DecisionLogDecision";
30
26
  export * from "./DecisionLog";
27
+ export * from "./DecisionLogResponse";
31
28
  export * from "./UsageStatistics";
32
29
  export * from "./DynamicValue";
33
30
  export * from "./DynamicValueListResponse";
@@ -39,11 +39,8 @@ __exportStar(require("./UserInviteResponseUser"), exports);
39
39
  __exportStar(require("./UserInviteResponse"), exports);
40
40
  __exportStar(require("./UserGroup"), exports);
41
41
  __exportStar(require("./UserGroupListResponse"), exports);
42
- __exportStar(require("./DecisionLogRequest"), exports);
43
- __exportStar(require("./DecisionLogResponse"), exports);
44
- __exportStar(require("./DecisionLogDecisionConditionsItemValue"), exports);
45
- __exportStar(require("./DecisionLogDecision"), exports);
46
42
  __exportStar(require("./DecisionLog"), exports);
43
+ __exportStar(require("./DecisionLogResponse"), exports);
47
44
  __exportStar(require("./UsageStatistics"), exports);
48
45
  __exportStar(require("./DynamicValue"), exports);
49
46
  __exportStar(require("./DynamicValueListResponse"), exports);
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Rulebricks from "../index";
5
- export interface DecisionLog {
6
- request?: Rulebricks.DecisionLogRequest;
7
- response?: Rulebricks.DecisionLogResponse;
8
- decision?: Rulebricks.DecisionLogDecision;
9
- }
4
+ /**
5
+ * Rule/flow execution log entry. Explore this object's schema from your Rulebricks dashboard in the Logs tab.
6
+ */
7
+ export declare type DecisionLog = Record<string, unknown>;
@@ -23,11 +23,8 @@ export * from "./UserInviteResponseUser";
23
23
  export * from "./UserInviteResponse";
24
24
  export * from "./UserGroup";
25
25
  export * from "./UserGroupListResponse";
26
- export * from "./DecisionLogRequest";
27
- export * from "./DecisionLogResponse";
28
- export * from "./DecisionLogDecisionConditionsItemValue";
29
- export * from "./DecisionLogDecision";
30
26
  export * from "./DecisionLog";
27
+ export * from "./DecisionLogResponse";
31
28
  export * from "./UsageStatistics";
32
29
  export * from "./DynamicValue";
33
30
  export * from "./DynamicValueListResponse";
@@ -39,11 +39,8 @@ __exportStar(require("./UserInviteResponseUser"), exports);
39
39
  __exportStar(require("./UserInviteResponse"), exports);
40
40
  __exportStar(require("./UserGroup"), exports);
41
41
  __exportStar(require("./UserGroupListResponse"), exports);
42
- __exportStar(require("./DecisionLogRequest"), exports);
43
- __exportStar(require("./DecisionLogResponse"), exports);
44
- __exportStar(require("./DecisionLogDecisionConditionsItemValue"), exports);
45
- __exportStar(require("./DecisionLogDecision"), exports);
46
42
  __exportStar(require("./DecisionLog"), exports);
43
+ __exportStar(require("./DecisionLogResponse"), exports);
47
44
  __exportStar(require("./UsageStatistics"), exports);
48
45
  __exportStar(require("./DynamicValue"), exports);
49
46
  __exportStar(require("./DynamicValueListResponse"), exports);
@@ -5,6 +5,7 @@ export declare enum DynamicValueType {
5
5
  BOOLEAN = "boolean",
6
6
  DATE = "date",
7
7
  LIST = "list",
8
+ FUNCTION = "function",
8
9
  OBJECT = "object"
9
10
  }
10
11
  export declare enum RuleType {
@@ -12,7 +13,8 @@ export declare enum RuleType {
12
13
  NUMBER = "number",
13
14
  STRING = "string",
14
15
  DATE = "date",
15
- LIST = "list"
16
+ LIST = "list",
17
+ FUNCTION = "function"
16
18
  }
17
19
  export interface Field {
18
20
  name: string;
@@ -8,6 +8,7 @@ var DynamicValueType;
8
8
  DynamicValueType["BOOLEAN"] = "boolean";
9
9
  DynamicValueType["DATE"] = "date";
10
10
  DynamicValueType["LIST"] = "list";
11
+ DynamicValueType["FUNCTION"] = "function";
11
12
  DynamicValueType["OBJECT"] = "object";
12
13
  })(DynamicValueType = exports.DynamicValueType || (exports.DynamicValueType = {}));
13
14
  var RuleType;
@@ -17,6 +18,7 @@ var RuleType;
17
18
  RuleType["STRING"] = "string";
18
19
  RuleType["DATE"] = "date";
19
20
  RuleType["LIST"] = "list";
21
+ RuleType["FUNCTION"] = "function";
20
22
  })(RuleType = exports.RuleType || (exports.RuleType = {}));
21
23
  class TypeMismatchError extends Error {
22
24
  constructor(message) {
@@ -33,6 +33,7 @@ class DynamicValue {
33
33
  [types_js_1.DynamicValueType.DATE]: Date,
34
34
  [types_js_1.DynamicValueType.LIST]: Array,
35
35
  [types_js_1.DynamicValueType.OBJECT]: Object,
36
+ [types_js_1.DynamicValueType.FUNCTION]: Function,
36
37
  };
37
38
  return typeMapping[valueType];
38
39
  }
@@ -4,13 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rulebricks from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { DecisionLogRequest } from "./DecisionLogRequest";
8
- import { DecisionLogDecision } from "./DecisionLogDecision";
9
- export declare const DecisionLog: core.serialization.ObjectSchema<serializers.DecisionLog.Raw, Rulebricks.DecisionLog>;
7
+ export declare const DecisionLog: core.serialization.Schema<serializers.DecisionLog.Raw, Rulebricks.DecisionLog>;
10
8
  export declare namespace DecisionLog {
11
- interface Raw {
12
- request?: DecisionLogRequest.Raw | null;
13
- response?: serializers.DecisionLogResponse.Raw | null;
14
- decision?: DecisionLogDecision.Raw | null;
15
- }
9
+ type Raw = Record<string, unknown>;
16
10
  }
@@ -27,12 +27,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.DecisionLog = void 0;
30
- const serializers = __importStar(require("../index"));
31
30
  const core = __importStar(require("../../core"));
32
- const DecisionLogRequest_1 = require("./DecisionLogRequest");
33
- const DecisionLogDecision_1 = require("./DecisionLogDecision");
34
- exports.DecisionLog = core.serialization.object({
35
- request: DecisionLogRequest_1.DecisionLogRequest.optional(),
36
- response: core.serialization.lazyObject(() => serializers.DecisionLogResponse).optional(),
37
- decision: DecisionLogDecision_1.DecisionLogDecision.optional(),
38
- });
31
+ exports.DecisionLog = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -4,10 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rulebricks from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { DecisionLog } from "./DecisionLog";
7
8
  export declare const DecisionLogResponse: core.serialization.ObjectSchema<serializers.DecisionLogResponse.Raw, Rulebricks.DecisionLogResponse>;
8
9
  export declare namespace DecisionLogResponse {
9
10
  interface Raw {
10
- data?: serializers.DecisionLog.Raw[] | null;
11
+ data?: DecisionLog.Raw[] | null;
11
12
  cursor?: string | null;
12
13
  }
13
14
  }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.DecisionLogResponse = void 0;
30
- const serializers = __importStar(require("../index"));
31
30
  const core = __importStar(require("../../core"));
31
+ const DecisionLog_1 = require("./DecisionLog");
32
32
  exports.DecisionLogResponse = core.serialization.object({
33
- data: core.serialization.list(core.serialization.lazyObject(() => serializers.DecisionLog)).optional(),
33
+ data: core.serialization.list(DecisionLog_1.DecisionLog).optional(),
34
34
  cursor: core.serialization.string().optional(),
35
35
  });
@@ -23,11 +23,8 @@ export * from "./UserInviteResponseUser";
23
23
  export * from "./UserInviteResponse";
24
24
  export * from "./UserGroup";
25
25
  export * from "./UserGroupListResponse";
26
- export * from "./DecisionLogRequest";
27
- export * from "./DecisionLogResponse";
28
- export * from "./DecisionLogDecisionConditionsItemValue";
29
- export * from "./DecisionLogDecision";
30
26
  export * from "./DecisionLog";
27
+ export * from "./DecisionLogResponse";
31
28
  export * from "./UsageStatistics";
32
29
  export * from "./DynamicValue";
33
30
  export * from "./DynamicValueListResponse";
@@ -39,11 +39,8 @@ __exportStar(require("./UserInviteResponseUser"), exports);
39
39
  __exportStar(require("./UserInviteResponse"), exports);
40
40
  __exportStar(require("./UserGroup"), exports);
41
41
  __exportStar(require("./UserGroupListResponse"), exports);
42
- __exportStar(require("./DecisionLogRequest"), exports);
43
- __exportStar(require("./DecisionLogResponse"), exports);
44
- __exportStar(require("./DecisionLogDecisionConditionsItemValue"), exports);
45
- __exportStar(require("./DecisionLogDecision"), exports);
46
42
  __exportStar(require("./DecisionLog"), exports);
43
+ __exportStar(require("./DecisionLogResponse"), exports);
47
44
  __exportStar(require("./UsageStatistics"), exports);
48
45
  __exportStar(require("./DynamicValue"), exports);
49
46
  __exportStar(require("./DynamicValueListResponse"), exports);
package/forge/types.d.ts CHANGED
@@ -5,6 +5,7 @@ export declare enum DynamicValueType {
5
5
  BOOLEAN = "boolean",
6
6
  DATE = "date",
7
7
  LIST = "list",
8
+ FUNCTION = "function",
8
9
  OBJECT = "object"
9
10
  }
10
11
  export declare enum RuleType {
@@ -12,7 +13,8 @@ export declare enum RuleType {
12
13
  NUMBER = "number",
13
14
  STRING = "string",
14
15
  DATE = "date",
15
- LIST = "list"
16
+ LIST = "list",
17
+ FUNCTION = "function"
16
18
  }
17
19
  export interface Field {
18
20
  name: string;
package/forge/types.js CHANGED
@@ -8,6 +8,7 @@ var DynamicValueType;
8
8
  DynamicValueType["BOOLEAN"] = "boolean";
9
9
  DynamicValueType["DATE"] = "date";
10
10
  DynamicValueType["LIST"] = "list";
11
+ DynamicValueType["FUNCTION"] = "function";
11
12
  DynamicValueType["OBJECT"] = "object";
12
13
  })(DynamicValueType = exports.DynamicValueType || (exports.DynamicValueType = {}));
13
14
  var RuleType;
@@ -17,6 +18,7 @@ var RuleType;
17
18
  RuleType["STRING"] = "string";
18
19
  RuleType["DATE"] = "date";
19
20
  RuleType["LIST"] = "list";
21
+ RuleType["FUNCTION"] = "function";
20
22
  })(RuleType = exports.RuleType || (exports.RuleType = {}));
21
23
  class TypeMismatchError extends Error {
22
24
  constructor(message) {
package/forge/values.js CHANGED
@@ -33,6 +33,7 @@ class DynamicValue {
33
33
  [types_js_1.DynamicValueType.DATE]: Date,
34
34
  [types_js_1.DynamicValueType.LIST]: Array,
35
35
  [types_js_1.DynamicValueType.OBJECT]: Object,
36
+ [types_js_1.DynamicValueType.FUNCTION]: Function,
36
37
  };
37
38
  return typeMapping[valueType];
38
39
  }
package/package.json CHANGED
@@ -1,46 +1,41 @@
1
1
  {
2
- "name": "@rulebricks/sdk",
3
- "version": "1.4.0",
4
- "private": false,
5
- "repository": "https://github.com/rulebricks/node-sdk",
6
- "main": "./index.js",
7
- "types": "./index.d.ts",
8
- "license": "MIT",
9
- "author": "Rulebricks",
10
- "description": "Rulebricks API – Node SDK",
11
- "keywords": [
12
- "rulebricks",
13
- "javascript",
14
- "rule engine",
15
- "sdk"
16
- ],
17
- "scripts": {
18
- "format": "prettier . --write --ignore-unknown",
19
- "build": "tsc",
20
- "prepack": "cp -rv dist/. .",
21
- "test": "jest"
22
- },
23
- "dependencies": {
24
- "@rulebricks/sdk": "^1.2.0",
25
- "@types/pako": "2.0.1",
26
- "form-data": "4.0.0",
27
- "js-base64": "3.7.2",
28
- "node-fetch": "2.7.0",
29
- "pako": "2.0.1",
30
- "qs": "6.11.2",
31
- "readable-stream": "^4.7.0",
32
- "url-join": "4.0.1"
33
- },
34
- "devDependencies": {
35
- "@types/jest": "^29.5.5",
36
- "@types/node": "17.0.33",
37
- "@types/node-fetch": "2.6.9",
38
- "@types/qs": "6.9.8",
39
- "@types/readable-stream": "^4.0.18",
40
- "@types/url-join": "4.0.1",
41
- "jest": "^29.7.0",
42
- "prettier": "2.7.1",
43
- "ts-jest": "^29.1.1",
44
- "typescript": "4.6.4"
45
- }
2
+ "name": "@rulebricks/sdk",
3
+ "version": "1.5.0",
4
+ "private": false,
5
+ "repository": "https://github.com/rulebricks/node-sdk",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "license": "MIT",
9
+ "author": "Rulebricks",
10
+ "description": "Rulebricks API – Node SDK",
11
+ "keywords": ["rulebricks", "javascript", "rule engine", "sdk"],
12
+ "scripts": {
13
+ "format": "prettier . --write --ignore-unknown",
14
+ "build": "tsc",
15
+ "prepack": "cp -rv dist/. .",
16
+ "test": "jest"
17
+ },
18
+ "dependencies": {
19
+ "@rulebricks/sdk": "^1.2.0",
20
+ "@types/pako": "2.0.1",
21
+ "form-data": "4.0.0",
22
+ "js-base64": "3.7.2",
23
+ "node-fetch": "2.7.0",
24
+ "pako": "2.0.1",
25
+ "qs": "6.11.2",
26
+ "readable-stream": "^4.7.0",
27
+ "url-join": "4.0.1"
28
+ },
29
+ "devDependencies": {
30
+ "@types/jest": "^29.5.5",
31
+ "@types/node": "17.0.33",
32
+ "@types/node-fetch": "2.6.9",
33
+ "@types/qs": "6.9.8",
34
+ "@types/readable-stream": "^4.0.18",
35
+ "@types/url-join": "4.0.1",
36
+ "jest": "^29.7.0",
37
+ "prettier": "2.7.1",
38
+ "ts-jest": "^29.1.1",
39
+ "typescript": "4.6.4"
40
+ }
46
41
  }
@@ -4,13 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rulebricks from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { DecisionLogRequest } from "./DecisionLogRequest";
8
- import { DecisionLogDecision } from "./DecisionLogDecision";
9
- export declare const DecisionLog: core.serialization.ObjectSchema<serializers.DecisionLog.Raw, Rulebricks.DecisionLog>;
7
+ export declare const DecisionLog: core.serialization.Schema<serializers.DecisionLog.Raw, Rulebricks.DecisionLog>;
10
8
  export declare namespace DecisionLog {
11
- interface Raw {
12
- request?: DecisionLogRequest.Raw | null;
13
- response?: serializers.DecisionLogResponse.Raw | null;
14
- decision?: DecisionLogDecision.Raw | null;
15
- }
9
+ type Raw = Record<string, unknown>;
16
10
  }
@@ -27,12 +27,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.DecisionLog = void 0;
30
- const serializers = __importStar(require("../index"));
31
30
  const core = __importStar(require("../../core"));
32
- const DecisionLogRequest_1 = require("./DecisionLogRequest");
33
- const DecisionLogDecision_1 = require("./DecisionLogDecision");
34
- exports.DecisionLog = core.serialization.object({
35
- request: DecisionLogRequest_1.DecisionLogRequest.optional(),
36
- response: core.serialization.lazyObject(() => serializers.DecisionLogResponse).optional(),
37
- decision: DecisionLogDecision_1.DecisionLogDecision.optional(),
38
- });
31
+ exports.DecisionLog = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -4,10 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rulebricks from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { DecisionLog } from "./DecisionLog";
7
8
  export declare const DecisionLogResponse: core.serialization.ObjectSchema<serializers.DecisionLogResponse.Raw, Rulebricks.DecisionLogResponse>;
8
9
  export declare namespace DecisionLogResponse {
9
10
  interface Raw {
10
- data?: serializers.DecisionLog.Raw[] | null;
11
+ data?: DecisionLog.Raw[] | null;
11
12
  cursor?: string | null;
12
13
  }
13
14
  }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.DecisionLogResponse = void 0;
30
- const serializers = __importStar(require("../index"));
31
30
  const core = __importStar(require("../../core"));
31
+ const DecisionLog_1 = require("./DecisionLog");
32
32
  exports.DecisionLogResponse = core.serialization.object({
33
- data: core.serialization.list(core.serialization.lazyObject(() => serializers.DecisionLog)).optional(),
33
+ data: core.serialization.list(DecisionLog_1.DecisionLog).optional(),
34
34
  cursor: core.serialization.string().optional(),
35
35
  });
@@ -23,11 +23,8 @@ export * from "./UserInviteResponseUser";
23
23
  export * from "./UserInviteResponse";
24
24
  export * from "./UserGroup";
25
25
  export * from "./UserGroupListResponse";
26
- export * from "./DecisionLogRequest";
27
- export * from "./DecisionLogResponse";
28
- export * from "./DecisionLogDecisionConditionsItemValue";
29
- export * from "./DecisionLogDecision";
30
26
  export * from "./DecisionLog";
27
+ export * from "./DecisionLogResponse";
31
28
  export * from "./UsageStatistics";
32
29
  export * from "./DynamicValue";
33
30
  export * from "./DynamicValueListResponse";
@@ -39,11 +39,8 @@ __exportStar(require("./UserInviteResponseUser"), exports);
39
39
  __exportStar(require("./UserInviteResponse"), exports);
40
40
  __exportStar(require("./UserGroup"), exports);
41
41
  __exportStar(require("./UserGroupListResponse"), exports);
42
- __exportStar(require("./DecisionLogRequest"), exports);
43
- __exportStar(require("./DecisionLogResponse"), exports);
44
- __exportStar(require("./DecisionLogDecisionConditionsItemValue"), exports);
45
- __exportStar(require("./DecisionLogDecision"), exports);
46
42
  __exportStar(require("./DecisionLog"), exports);
43
+ __exportStar(require("./DecisionLogResponse"), exports);
47
44
  __exportStar(require("./UsageStatistics"), exports);
48
45
  __exportStar(require("./DynamicValue"), exports);
49
46
  __exportStar(require("./DynamicValueListResponse"), exports);
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rulebricks from "../index";
5
- export interface DecisionLogDecision {
6
- conditions?: Record<string, Rulebricks.DecisionLogDecisionConditionsItemValue>[];
7
- successIdxs?: number[];
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DecisionLogDecisionConditionsItemValue {
5
- result?: boolean;
6
- err?: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DecisionLogRequest {
5
- /** IP address of the requester */
6
- ip?: string;
7
- /** HTTP method used */
8
- method?: string;
9
- /** Name of the rule executed */
10
- name?: string;
11
- /** API endpoint called */
12
- endpoint?: string;
13
- params?: Record<string, string[]>;
14
- data?: unknown;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rulebricks from "../index";
5
- export interface DecisionLogDecision {
6
- conditions?: Record<string, Rulebricks.DecisionLogDecisionConditionsItemValue>[];
7
- successIdxs?: number[];
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DecisionLogDecisionConditionsItemValue {
5
- result?: boolean;
6
- err?: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DecisionLogRequest {
5
- /** IP address of the requester */
6
- ip?: string;
7
- /** HTTP method used */
8
- method?: string;
9
- /** Name of the rule executed */
10
- name?: string;
11
- /** API endpoint called */
12
- endpoint?: string;
13
- params?: Record<string, string[]>;
14
- data?: unknown;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DecisionLogDecisionConditionsItemValue } from "./DecisionLogDecisionConditionsItemValue";
8
- export declare const DecisionLogDecision: core.serialization.ObjectSchema<serializers.DecisionLogDecision.Raw, Rulebricks.DecisionLogDecision>;
9
- export declare namespace DecisionLogDecision {
10
- interface Raw {
11
- conditions?: Record<string, DecisionLogDecisionConditionsItemValue.Raw>[] | null;
12
- successIdxs?: number[] | null;
13
- }
14
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecision = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DecisionLogDecisionConditionsItemValue_1 = require("./DecisionLogDecisionConditionsItemValue");
32
- exports.DecisionLogDecision = core.serialization.object({
33
- conditions: core.serialization
34
- .list(core.serialization.record(core.serialization.string(), DecisionLogDecisionConditionsItemValue_1.DecisionLogDecisionConditionsItemValue))
35
- .optional(),
36
- successIdxs: core.serialization.list(core.serialization.number()).optional(),
37
- });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogDecisionConditionsItemValue: core.serialization.ObjectSchema<serializers.DecisionLogDecisionConditionsItemValue.Raw, Rulebricks.DecisionLogDecisionConditionsItemValue>;
8
- export declare namespace DecisionLogDecisionConditionsItemValue {
9
- interface Raw {
10
- result?: boolean | null;
11
- err?: string | null;
12
- }
13
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecisionConditionsItemValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogDecisionConditionsItemValue = core.serialization.object({
32
- result: core.serialization.boolean().optional(),
33
- err: core.serialization.string().optional(),
34
- });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogRequest: core.serialization.ObjectSchema<serializers.DecisionLogRequest.Raw, Rulebricks.DecisionLogRequest>;
8
- export declare namespace DecisionLogRequest {
9
- interface Raw {
10
- ip?: string | null;
11
- method?: string | null;
12
- name?: string | null;
13
- endpoint?: string | null;
14
- params?: Record<string, string[]> | null;
15
- data?: unknown | null;
16
- }
17
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogRequest = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogRequest = core.serialization.object({
32
- ip: core.serialization.string().optional(),
33
- method: core.serialization.string().optional(),
34
- name: core.serialization.string().optional(),
35
- endpoint: core.serialization.string().optional(),
36
- params: core.serialization
37
- .record(core.serialization.string(), core.serialization.list(core.serialization.string()))
38
- .optional(),
39
- data: core.serialization.unknown().optional(),
40
- });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DecisionLogDecisionConditionsItemValue } from "./DecisionLogDecisionConditionsItemValue";
8
- export declare const DecisionLogDecision: core.serialization.ObjectSchema<serializers.DecisionLogDecision.Raw, Rulebricks.DecisionLogDecision>;
9
- export declare namespace DecisionLogDecision {
10
- interface Raw {
11
- conditions?: Record<string, DecisionLogDecisionConditionsItemValue.Raw>[] | null;
12
- successIdxs?: number[] | null;
13
- }
14
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecision = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DecisionLogDecisionConditionsItemValue_1 = require("./DecisionLogDecisionConditionsItemValue");
32
- exports.DecisionLogDecision = core.serialization.object({
33
- conditions: core.serialization
34
- .list(core.serialization.record(core.serialization.string(), DecisionLogDecisionConditionsItemValue_1.DecisionLogDecisionConditionsItemValue))
35
- .optional(),
36
- successIdxs: core.serialization.list(core.serialization.number()).optional(),
37
- });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogDecisionConditionsItemValue: core.serialization.ObjectSchema<serializers.DecisionLogDecisionConditionsItemValue.Raw, Rulebricks.DecisionLogDecisionConditionsItemValue>;
8
- export declare namespace DecisionLogDecisionConditionsItemValue {
9
- interface Raw {
10
- result?: boolean | null;
11
- err?: string | null;
12
- }
13
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecisionConditionsItemValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogDecisionConditionsItemValue = core.serialization.object({
32
- result: core.serialization.boolean().optional(),
33
- err: core.serialization.string().optional(),
34
- });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogRequest: core.serialization.ObjectSchema<serializers.DecisionLogRequest.Raw, Rulebricks.DecisionLogRequest>;
8
- export declare namespace DecisionLogRequest {
9
- interface Raw {
10
- ip?: string | null;
11
- method?: string | null;
12
- name?: string | null;
13
- endpoint?: string | null;
14
- params?: Record<string, string[]> | null;
15
- data?: unknown | null;
16
- }
17
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogRequest = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogRequest = core.serialization.object({
32
- ip: core.serialization.string().optional(),
33
- method: core.serialization.string().optional(),
34
- name: core.serialization.string().optional(),
35
- endpoint: core.serialization.string().optional(),
36
- params: core.serialization
37
- .record(core.serialization.string(), core.serialization.list(core.serialization.string()))
38
- .optional(),
39
- data: core.serialization.unknown().optional(),
40
- });