@rulebricks/sdk 2.5.1 → 2.5.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.
@@ -1,10 +1,10 @@
1
1
  import type * as Rulebricks from "../index.js";
2
2
  /**
3
- * Rule object accepted by /admin/rules/import. Existing rule IDs allow partial updates; creating a new rule ID requires the full legacy import shape.
3
+ * Rule object accepted by /admin/rules/import. Existing rule IDs allow partial updates; creating a new rule ID requires the full import shape.
4
4
  */
5
5
  export interface RuleImportPayload {
6
6
  /** Rule ID to create or update. */
7
- id: string;
7
+ id?: string;
8
8
  /** Optional stable ID for cross-workspace import/export identity. */
9
9
  stable_id?: string;
10
10
  /** Rule slug. */
@@ -1,10 +1,10 @@
1
1
  import type * as Rulebricks from "../index.js";
2
2
  /**
3
- * Rule object accepted by /admin/rules/import. Existing rule IDs allow partial updates; creating a new rule ID requires the full legacy import shape.
3
+ * Rule object accepted by /admin/rules/import. Existing rule IDs allow partial updates; creating a new rule ID requires the full import shape.
4
4
  */
5
5
  export interface RuleImportPayload {
6
6
  /** Rule ID to create or update. */
7
- id: string;
7
+ id?: string;
8
8
  /** Optional stable ID for cross-workspace import/export identity. */
9
9
  stable_id?: string;
10
10
  /** Rule slug. */
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export { RulebricksClient } from "./Client.js";
4
4
  export { RulebricksEnvironment } from "./environments.js";
5
5
  export { RulebricksError, RulebricksTimeoutError } from "./errors/index.js";
6
6
  export * from "./exports.js";
7
+ export { Rule, Condition, DynamicValue, DynamicValues, DynamicValueType, DynamicValueNotFoundError, TypeMismatchError, RuleTest, RuleSettings, } from "./forge";
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.RulebricksTimeoutError = exports.RulebricksError = exports.RulebricksEnvironment = exports.RulebricksClient = exports.Rulebricks = void 0;
39
+ exports.RuleTest = exports.TypeMismatchError = exports.DynamicValueNotFoundError = exports.DynamicValueType = exports.DynamicValues = exports.DynamicValue = exports.Condition = exports.Rule = exports.RulebricksTimeoutError = exports.RulebricksError = exports.RulebricksEnvironment = exports.RulebricksClient = exports.Rulebricks = void 0;
40
40
  exports.Rulebricks = __importStar(require("./api/index.js"));
41
41
  var Client_js_1 = require("./Client.js");
42
42
  Object.defineProperty(exports, "RulebricksClient", { enumerable: true, get: function () { return Client_js_1.RulebricksClient; } });
@@ -46,3 +46,12 @@ var index_js_1 = require("./errors/index.js");
46
46
  Object.defineProperty(exports, "RulebricksError", { enumerable: true, get: function () { return index_js_1.RulebricksError; } });
47
47
  Object.defineProperty(exports, "RulebricksTimeoutError", { enumerable: true, get: function () { return index_js_1.RulebricksTimeoutError; } });
48
48
  __exportStar(require("./exports.js"), exports);
49
+ var forge_1 = require("./forge");
50
+ Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return forge_1.Rule; } });
51
+ Object.defineProperty(exports, "Condition", { enumerable: true, get: function () { return forge_1.Condition; } });
52
+ Object.defineProperty(exports, "DynamicValue", { enumerable: true, get: function () { return forge_1.DynamicValue; } });
53
+ Object.defineProperty(exports, "DynamicValues", { enumerable: true, get: function () { return forge_1.DynamicValues; } });
54
+ Object.defineProperty(exports, "DynamicValueType", { enumerable: true, get: function () { return forge_1.DynamicValueType; } });
55
+ Object.defineProperty(exports, "DynamicValueNotFoundError", { enumerable: true, get: function () { return forge_1.DynamicValueNotFoundError; } });
56
+ Object.defineProperty(exports, "TypeMismatchError", { enumerable: true, get: function () { return forge_1.TypeMismatchError; } });
57
+ Object.defineProperty(exports, "RuleTest", { enumerable: true, get: function () { return forge_1.RuleTest; } });
package/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export { RulebricksClient } from "./Client.js";
4
4
  export { RulebricksEnvironment } from "./environments.js";
5
5
  export { RulebricksError, RulebricksTimeoutError } from "./errors/index.js";
6
6
  export * from "./exports.js";
7
+ export { Rule, Condition, DynamicValue, DynamicValues, DynamicValueType, DynamicValueNotFoundError, TypeMismatchError, RuleTest, RuleSettings, } from "./forge";
package/index.js CHANGED
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.RulebricksTimeoutError = exports.RulebricksError = exports.RulebricksEnvironment = exports.RulebricksClient = exports.Rulebricks = void 0;
39
+ exports.RuleTest = exports.TypeMismatchError = exports.DynamicValueNotFoundError = exports.DynamicValueType = exports.DynamicValues = exports.DynamicValue = exports.Condition = exports.Rule = exports.RulebricksTimeoutError = exports.RulebricksError = exports.RulebricksEnvironment = exports.RulebricksClient = exports.Rulebricks = void 0;
40
40
  exports.Rulebricks = __importStar(require("./api/index.js"));
41
41
  var Client_js_1 = require("./Client.js");
42
42
  Object.defineProperty(exports, "RulebricksClient", { enumerable: true, get: function () { return Client_js_1.RulebricksClient; } });
@@ -46,3 +46,12 @@ var index_js_1 = require("./errors/index.js");
46
46
  Object.defineProperty(exports, "RulebricksError", { enumerable: true, get: function () { return index_js_1.RulebricksError; } });
47
47
  Object.defineProperty(exports, "RulebricksTimeoutError", { enumerable: true, get: function () { return index_js_1.RulebricksTimeoutError; } });
48
48
  __exportStar(require("./exports.js"), exports);
49
+ var forge_1 = require("./forge");
50
+ Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return forge_1.Rule; } });
51
+ Object.defineProperty(exports, "Condition", { enumerable: true, get: function () { return forge_1.Condition; } });
52
+ Object.defineProperty(exports, "DynamicValue", { enumerable: true, get: function () { return forge_1.DynamicValue; } });
53
+ Object.defineProperty(exports, "DynamicValues", { enumerable: true, get: function () { return forge_1.DynamicValues; } });
54
+ Object.defineProperty(exports, "DynamicValueType", { enumerable: true, get: function () { return forge_1.DynamicValueType; } });
55
+ Object.defineProperty(exports, "DynamicValueNotFoundError", { enumerable: true, get: function () { return forge_1.DynamicValueNotFoundError; } });
56
+ Object.defineProperty(exports, "TypeMismatchError", { enumerable: true, get: function () { return forge_1.TypeMismatchError; } });
57
+ Object.defineProperty(exports, "RuleTest", { enumerable: true, get: function () { return forge_1.RuleTest; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulebricks/sdk",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/rulebricks/node-sdk",
6
6
  "main": "./index.js",