@rulebricks/sdk 1.2.1 → 1.3.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.
- package/Client.d.ts +12 -11
- package/Client.js +15 -15
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +3 -3
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -1
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -1
- package/api/errors/NotFoundError.js +1 -1
- package/api/resources/assets/client/Client.d.ts +13 -120
- package/api/resources/assets/client/Client.js +17 -526
- package/api/resources/assets/client/index.d.ts +1 -1
- package/api/resources/assets/client/index.js +0 -15
- package/api/resources/assets/index.d.ts +1 -0
- package/api/resources/assets/index.js +1 -0
- package/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
- package/api/resources/assets/resources/flows/client/Client.js +116 -0
- package/api/resources/assets/resources/flows/client/index.d.ts +1 -0
- package/api/resources/assets/resources/flows/index.d.ts +1 -0
- package/api/resources/assets/resources/flows/index.js +17 -0
- package/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
- package/api/resources/assets/resources/folders/client/Client.js +248 -0
- package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
- package/api/resources/assets/resources/folders/index.d.ts +1 -0
- package/api/resources/assets/resources/folders/index.js +17 -0
- package/api/resources/assets/resources/index.d.ts +5 -0
- package/api/resources/assets/resources/index.js +34 -0
- package/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
- package/api/resources/assets/resources/rules/client/Client.js +337 -0
- package/{dist/api/resources/assets/client/requests/ListRulesRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
- package/{dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
- package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
- package/api/resources/assets/resources/rules/client/requests/index.js +2 -0
- package/api/resources/assets/resources/rules/index.d.ts +1 -0
- package/api/resources/assets/resources/rules/index.js +17 -0
- package/api/resources/decisions/client/Client.d.ts +7 -6
- package/api/resources/decisions/client/Client.js +13 -12
- package/{dist/api/resources/decisions/client/requests/QueryRequest.d.ts → api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
- package/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/api/resources/flows/client/Client.d.ts +7 -6
- package/api/resources/flows/client/Client.js +13 -12
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/rules/client/Client.d.ts +15 -14
- package/api/resources/rules/client/Client.js +35 -34
- package/api/resources/tests/client/Client.d.ts +8 -120
- package/api/resources/tests/client/Client.js +6 -441
- package/api/resources/tests/index.d.ts +1 -0
- package/api/resources/tests/index.js +1 -0
- package/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
- package/api/resources/tests/resources/flows/client/Client.js +257 -0
- package/api/resources/tests/resources/flows/client/index.d.ts +1 -0
- package/api/resources/tests/resources/flows/client/index.js +2 -0
- package/api/resources/tests/resources/flows/index.d.ts +1 -0
- package/api/resources/tests/resources/flows/index.js +17 -0
- package/api/resources/tests/resources/index.d.ts +2 -0
- package/api/resources/tests/resources/index.js +28 -0
- package/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
- package/api/resources/tests/resources/rules/client/Client.js +257 -0
- package/api/resources/tests/resources/rules/client/index.d.ts +1 -0
- package/api/resources/tests/resources/rules/client/index.js +2 -0
- package/api/resources/tests/resources/rules/index.d.ts +1 -0
- package/api/resources/tests/resources/rules/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +12 -35
- package/api/resources/users/client/Client.js +21 -137
- package/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/api/resources/users/client/requests/index.d.ts +0 -1
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +1 -0
- package/api/resources/users/resources/groups/client/Client.d.ts +58 -0
- package/api/resources/users/resources/groups/client/Client.js +181 -0
- package/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/api/resources/users/resources/groups/client/index.js +17 -0
- package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/api/resources/users/resources/groups/client/requests/index.js +2 -0
- package/api/resources/users/resources/groups/index.d.ts +1 -0
- package/api/resources/users/resources/groups/index.js +17 -0
- package/api/resources/users/resources/index.d.ts +2 -0
- package/api/resources/users/resources/index.js +31 -0
- package/api/resources/values/client/Client.d.ts +15 -14
- package/api/resources/values/client/Client.js +35 -34
- package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
- package/{dist/api/resources/values/client/requests/DeleteRequest.d.ts → api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
- package/{dist/api/resources/values/client/requests/ListRequest.d.ts → api/resources/values/client/requests/ValuesListRequest.d.ts} +2 -2
- package/api/resources/values/client/requests/index.d.ts +2 -2
- package/api/types/BooleanValue.d.ts +2 -2
- package/api/types/BulkRuleResponseItem.d.ts +2 -2
- package/api/types/DecisionLog.d.ts +4 -4
- package/api/types/DecisionLogDecision.d.ts +2 -2
- package/api/types/DecisionLogResponse.d.ts +2 -2
- package/api/types/DynamicValue.d.ts +6 -6
- package/api/types/DynamicValueBase.d.ts +2 -2
- package/api/types/DynamicValueListResponse.d.ts +2 -2
- package/api/types/FlowDetail.d.ts +2 -2
- package/api/types/FlowListResponse.d.ts +2 -2
- package/api/types/FolderListResponse.d.ts +2 -2
- package/api/types/ListValue.d.ts +3 -3
- package/api/types/NumberValue.d.ts +2 -2
- package/api/types/ParallelSolveRequest.d.ts +2 -2
- package/api/types/ParallelSolveResponse.d.ts +2 -2
- package/api/types/RuleDetail.d.ts +5 -5
- package/api/types/RuleListResponse.d.ts +2 -2
- package/api/types/SchemaField.d.ts +3 -3
- package/api/types/StringValue.d.ts +2 -2
- package/api/types/Test.d.ts +2 -2
- package/api/types/TestListResponse.d.ts +2 -2
- package/api/types/TestTestState.d.ts +3 -3
- package/api/types/UserGroupListResponse.d.ts +2 -2
- package/api/types/UserInviteResponse.d.ts +2 -2
- package/dist/Client.d.ts +12 -11
- package/dist/Client.js +15 -15
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +3 -3
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +1 -1
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +1 -1
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +13 -120
- package/dist/api/resources/assets/client/Client.js +17 -526
- package/dist/api/resources/assets/client/index.d.ts +1 -1
- package/dist/api/resources/assets/client/index.js +0 -15
- package/dist/api/resources/assets/index.d.ts +1 -0
- package/dist/api/resources/assets/index.js +1 -0
- package/dist/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
- package/dist/api/resources/assets/resources/flows/client/Client.js +116 -0
- package/dist/api/resources/assets/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/flows/client/index.js +2 -0
- package/dist/api/resources/assets/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/flows/index.js +17 -0
- package/dist/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
- package/dist/api/resources/assets/resources/folders/client/Client.js +248 -0
- package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/folders/client/index.js +17 -0
- package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/resources/folders/client/requests/index.js +2 -0
- package/dist/api/resources/assets/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/folders/index.js +17 -0
- package/dist/api/resources/assets/resources/index.d.ts +5 -0
- package/dist/api/resources/assets/resources/index.js +34 -0
- package/dist/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
- package/dist/api/resources/assets/resources/rules/client/Client.js +337 -0
- package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/rules/client/index.js +17 -0
- package/{api/resources/assets/client/requests/ListRulesRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
- package/{api/resources/assets/client/requests/ExportRuleRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
- package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
- package/dist/api/resources/assets/resources/rules/client/requests/index.js +2 -0
- package/dist/api/resources/assets/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/rules/index.js +17 -0
- package/dist/api/resources/decisions/client/Client.d.ts +7 -6
- package/dist/api/resources/decisions/client/Client.js +13 -12
- package/{api/resources/decisions/client/requests/QueryRequest.d.ts → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
- package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/dist/api/resources/flows/client/Client.d.ts +7 -6
- package/dist/api/resources/flows/client/Client.js +13 -12
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/rules/client/Client.d.ts +15 -14
- package/dist/api/resources/rules/client/Client.js +35 -34
- package/dist/api/resources/tests/client/Client.d.ts +8 -120
- package/dist/api/resources/tests/client/Client.js +6 -441
- package/dist/api/resources/tests/index.d.ts +1 -0
- package/dist/api/resources/tests/index.js +1 -0
- package/dist/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/resources/flows/client/Client.js +257 -0
- package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/flows/client/index.js +2 -0
- package/dist/api/resources/tests/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/flows/index.js +17 -0
- package/dist/api/resources/tests/resources/index.d.ts +2 -0
- package/dist/api/resources/tests/resources/index.js +28 -0
- package/dist/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/resources/rules/client/Client.js +257 -0
- package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/rules/client/index.js +2 -0
- package/dist/api/resources/tests/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/rules/index.js +17 -0
- package/dist/api/resources/users/client/Client.d.ts +12 -35
- package/dist/api/resources/users/client/Client.js +21 -137
- package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/dist/api/resources/users/client/requests/index.d.ts +0 -1
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +1 -0
- package/dist/api/resources/users/resources/groups/client/Client.d.ts +58 -0
- package/dist/api/resources/users/resources/groups/client/Client.js +181 -0
- package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/client/index.js +17 -0
- package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/client/requests/index.js +2 -0
- package/dist/api/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/index.js +17 -0
- package/dist/api/resources/users/resources/index.d.ts +2 -0
- package/dist/api/resources/users/resources/index.js +31 -0
- package/dist/api/resources/values/client/Client.d.ts +15 -14
- package/dist/api/resources/values/client/Client.js +35 -34
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
- package/{api/resources/values/client/requests/DeleteRequest.d.ts → dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
- package/{api/resources/values/client/requests/ListRequest.d.ts → dist/api/resources/values/client/requests/ValuesListRequest.d.ts} +2 -2
- package/dist/api/resources/values/client/requests/index.d.ts +2 -2
- package/dist/api/types/BooleanValue.d.ts +2 -2
- package/dist/api/types/BulkRuleResponseItem.d.ts +2 -2
- package/dist/api/types/DecisionLog.d.ts +4 -4
- package/dist/api/types/DecisionLogDecision.d.ts +2 -2
- package/dist/api/types/DecisionLogResponse.d.ts +2 -2
- package/dist/api/types/DynamicValue.d.ts +6 -6
- package/dist/api/types/DynamicValueBase.d.ts +2 -2
- package/dist/api/types/DynamicValueListResponse.d.ts +2 -2
- package/dist/api/types/FlowDetail.d.ts +2 -2
- package/dist/api/types/FlowListResponse.d.ts +2 -2
- package/dist/api/types/FolderListResponse.d.ts +2 -2
- package/dist/api/types/ListValue.d.ts +3 -3
- package/dist/api/types/NumberValue.d.ts +2 -2
- package/dist/api/types/ParallelSolveRequest.d.ts +2 -2
- package/dist/api/types/ParallelSolveResponse.d.ts +2 -2
- package/dist/api/types/RuleDetail.d.ts +5 -5
- package/dist/api/types/RuleListResponse.d.ts +2 -2
- package/dist/api/types/SchemaField.d.ts +3 -3
- package/dist/api/types/StringValue.d.ts +2 -2
- package/dist/api/types/Test.d.ts +2 -2
- package/dist/api/types/TestListResponse.d.ts +2 -2
- package/dist/api/types/TestTestState.d.ts +3 -3
- package/dist/api/types/UserGroupListResponse.d.ts +2 -2
- package/dist/api/types/UserInviteResponse.d.ts +2 -2
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
- package/dist/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
- package/dist/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
- package/dist/errors/RulebricksTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -2
- package/dist/errors/index.js +5 -5
- package/dist/forge/rule.d.ts +2 -2
- package/dist/forge/rule.js +8 -8
- package/dist/forge/values.d.ts +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +7 -5
- package/dist/serialization/resources/assets/index.d.ts +1 -1
- package/dist/serialization/resources/assets/index.js +1 -1
- package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/folders/client/index.js +17 -0
- package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.d.ts +4 -4
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
- package/dist/serialization/resources/assets/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/folders/index.js +17 -0
- package/dist/serialization/resources/assets/resources/index.d.ts +4 -0
- package/dist/serialization/resources/assets/resources/index.js +33 -0
- package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/rules/client/index.js +17 -0
- package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/DeleteRuleRequest.js +1 -1
- package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
- package/dist/serialization/resources/assets/resources/rules/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/rules/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +1 -2
- package/dist/serialization/resources/index.js +1 -2
- package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +1 -3
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +1 -0
- package/dist/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/client/index.js +17 -0
- package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
- package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
- package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
- package/dist/serialization/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/index.js +17 -0
- package/dist/serialization/resources/users/resources/index.d.ts +2 -0
- package/dist/serialization/resources/users/resources/index.js +31 -0
- package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
- package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -2
- package/dist/serialization/types/BooleanValue.d.ts +2 -2
- package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -2
- package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
- package/dist/serialization/types/CreateTestRequest.d.ts +2 -2
- package/dist/serialization/types/DecisionLog.d.ts +2 -2
- package/dist/serialization/types/DecisionLogDecision.d.ts +2 -2
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
- package/dist/serialization/types/DecisionLogRequest.d.ts +2 -2
- package/dist/serialization/types/DecisionLogResponse.d.ts +2 -2
- package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -2
- package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -2
- package/dist/serialization/types/DynamicValue.d.ts +2 -2
- package/dist/serialization/types/DynamicValueBase.d.ts +2 -2
- package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -2
- package/dist/serialization/types/Error_.d.ts +2 -2
- package/dist/serialization/types/FlowBase.d.ts +2 -2
- package/dist/serialization/types/FlowDetail.d.ts +2 -2
- package/dist/serialization/types/FlowExecutionError.d.ts +2 -2
- package/dist/serialization/types/FlowListResponse.d.ts +2 -2
- package/dist/serialization/types/Folder.d.ts +2 -2
- package/dist/serialization/types/FolderListResponse.d.ts +2 -2
- package/dist/serialization/types/ListValue.d.ts +2 -2
- package/dist/serialization/types/ListValueValueItem.d.ts +2 -2
- package/dist/serialization/types/NumberValue.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -2
- package/dist/serialization/types/RuleBase.d.ts +2 -2
- package/dist/serialization/types/RuleDetail.d.ts +2 -2
- package/dist/serialization/types/RuleExport.d.ts +2 -2
- package/dist/serialization/types/RuleListResponse.d.ts +2 -2
- package/dist/serialization/types/RuleUsage.d.ts +2 -2
- package/dist/serialization/types/SchemaField.d.ts +2 -2
- package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
- package/dist/serialization/types/SchemaFieldType.d.ts +2 -2
- package/dist/serialization/types/StringValue.d.ts +2 -2
- package/dist/serialization/types/SuccessMessage.d.ts +2 -2
- package/dist/serialization/types/Test.d.ts +2 -2
- package/dist/serialization/types/TestListResponse.d.ts +2 -2
- package/dist/serialization/types/TestTestState.d.ts +2 -2
- package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
- package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
- package/dist/serialization/types/UsageStatistics.d.ts +2 -2
- package/dist/serialization/types/UserGroup.d.ts +2 -2
- package/dist/serialization/types/UserGroupListResponse.d.ts +2 -2
- package/dist/serialization/types/UserInviteResponse.d.ts +2 -2
- package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -2
- package/dist/serialization/types/ValueLimits.d.ts +2 -2
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
- package/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
- package/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
- package/errors/RulebricksTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -2
- package/errors/index.js +5 -5
- package/forge/rule.d.ts +2 -2
- package/forge/rule.js +8 -8
- package/forge/values.d.ts +2 -2
- package/index.d.ts +4 -3
- package/index.js +7 -5
- package/package.json +1 -1
- package/serialization/resources/assets/index.d.ts +1 -1
- package/serialization/resources/assets/index.js +1 -1
- package/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/serialization/resources/assets/resources/folders/client/index.js +17 -0
- package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
- package/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.d.ts +4 -4
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/index.d.ts +0 -2
- package/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
- package/serialization/resources/assets/resources/folders/index.d.ts +1 -0
- package/serialization/resources/assets/resources/folders/index.js +17 -0
- package/serialization/resources/assets/resources/index.d.ts +4 -0
- package/serialization/resources/assets/resources/index.js +33 -0
- package/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/serialization/resources/assets/resources/rules/client/index.js +17 -0
- package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/DeleteRuleRequest.js +1 -1
- package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
- package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
- package/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
- package/serialization/resources/assets/resources/rules/index.d.ts +1 -0
- package/serialization/resources/assets/resources/rules/index.js +17 -0
- package/serialization/resources/index.d.ts +1 -2
- package/serialization/resources/index.js +1 -2
- package/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
- package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +1 -3
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +1 -0
- package/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/client/index.js +17 -0
- package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
- package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
- package/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
- package/serialization/resources/users/resources/groups/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/index.js +17 -0
- package/serialization/resources/users/resources/index.d.ts +2 -0
- package/serialization/resources/users/resources/index.js +31 -0
- package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
- package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
- package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -2
- package/serialization/types/BooleanValue.d.ts +2 -2
- package/serialization/types/BulkRuleResponseItem.d.ts +2 -2
- package/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
- package/serialization/types/CreateTestRequest.d.ts +2 -2
- package/serialization/types/DecisionLog.d.ts +2 -2
- package/serialization/types/DecisionLogDecision.d.ts +2 -2
- package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
- package/serialization/types/DecisionLogRequest.d.ts +2 -2
- package/serialization/types/DecisionLogResponse.d.ts +2 -2
- package/serialization/types/DynamicRequestPayload.d.ts +2 -2
- package/serialization/types/DynamicResponsePayload.d.ts +2 -2
- package/serialization/types/DynamicValue.d.ts +2 -2
- package/serialization/types/DynamicValueBase.d.ts +2 -2
- package/serialization/types/DynamicValueListResponse.d.ts +2 -2
- package/serialization/types/Error_.d.ts +2 -2
- package/serialization/types/FlowBase.d.ts +2 -2
- package/serialization/types/FlowDetail.d.ts +2 -2
- package/serialization/types/FlowExecutionError.d.ts +2 -2
- package/serialization/types/FlowListResponse.d.ts +2 -2
- package/serialization/types/Folder.d.ts +2 -2
- package/serialization/types/FolderListResponse.d.ts +2 -2
- package/serialization/types/ListValue.d.ts +2 -2
- package/serialization/types/ListValueValueItem.d.ts +2 -2
- package/serialization/types/NumberValue.d.ts +2 -2
- package/serialization/types/ParallelSolveRequest.d.ts +2 -2
- package/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
- package/serialization/types/ParallelSolveResponse.d.ts +2 -2
- package/serialization/types/RuleBase.d.ts +2 -2
- package/serialization/types/RuleDetail.d.ts +2 -2
- package/serialization/types/RuleExport.d.ts +2 -2
- package/serialization/types/RuleListResponse.d.ts +2 -2
- package/serialization/types/RuleUsage.d.ts +2 -2
- package/serialization/types/SchemaField.d.ts +2 -2
- package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
- package/serialization/types/SchemaFieldType.d.ts +2 -2
- package/serialization/types/StringValue.d.ts +2 -2
- package/serialization/types/SuccessMessage.d.ts +2 -2
- package/serialization/types/Test.d.ts +2 -2
- package/serialization/types/TestListResponse.d.ts +2 -2
- package/serialization/types/TestTestState.d.ts +2 -2
- package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
- package/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
- package/serialization/types/UsageStatistics.d.ts +2 -2
- package/serialization/types/UserGroup.d.ts +2 -2
- package/serialization/types/UserGroupListResponse.d.ts +2 -2
- package/serialization/types/UserInviteResponse.d.ts +2 -2
- package/serialization/types/UserInviteResponseUser.d.ts +2 -2
- package/serialization/types/ValueLimits.d.ts +2 -2
- package/api/resources/assets/client/requests/index.d.ts +0 -6
- package/dist/api/resources/assets/client/requests/index.d.ts +0 -6
- package/dist/errors/RulebricksApiTimeoutError.js +0 -13
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/index.js +0 -11
- package/errors/RulebricksApiTimeoutError.js +0 -13
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/index.js +0 -11
- /package/api/resources/assets/{client/requests → resources/flows/client}/index.js +0 -0
- /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.d.ts +0 -0
- /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.js +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
- /package/{dist/api/resources/assets → api/resources/assets/resources/folders}/client/requests/index.js +0 -0
- /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.d.ts +0 -0
- /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.js +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
- /package/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
- /package/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesPullRequest.js} +0 -0
- /package/api/resources/decisions/client/requests/{QueryRequest.js → DecisionsQueryRequest.js} +0 -0
- /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
- /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
- /package/api/resources/values/client/requests/{DeleteRequest.js → ValuesDeleteRequest.js} +0 -0
- /package/api/resources/values/client/requests/{ListRequest.js → ValuesListRequest.js} +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
- /package/dist/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
- /package/dist/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesPullRequest.js} +0 -0
- /package/dist/api/resources/decisions/client/requests/{QueryRequest.js → DecisionsQueryRequest.js} +0 -0
- /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
- /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
- /package/dist/api/resources/values/client/requests/{DeleteRequest.js → ValuesDeleteRequest.js} +0 -0
- /package/dist/api/resources/values/client/requests/{ListRequest.js → ValuesListRequest.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "./environments";
|
|
4
5
|
import * as core from "./core";
|
|
5
6
|
import { Rules } from "./api/resources/rules/client/Client";
|
|
6
7
|
import { Flows } from "./api/resources/flows/client/Client";
|
|
7
8
|
import { Decisions } from "./api/resources/decisions/client/Client";
|
|
8
|
-
import { Assets } from "./api/resources/assets/client/Client";
|
|
9
9
|
import { Users } from "./api/resources/users/client/Client";
|
|
10
|
-
import {
|
|
10
|
+
import { Assets } from "./api/resources/assets/client/Client";
|
|
11
11
|
import { Values } from "./api/resources/values/client/Client";
|
|
12
|
-
|
|
12
|
+
import { Tests } from "./api/resources/tests/client/Client";
|
|
13
|
+
export declare namespace RulebricksClient {
|
|
13
14
|
interface Options {
|
|
14
|
-
environment
|
|
15
|
+
environment?: core.Supplier<environments.RulebricksEnvironment | string>;
|
|
15
16
|
/** Specify a custom URL to connect the client to. */
|
|
16
17
|
baseUrl?: core.Supplier<string>;
|
|
17
18
|
apiKey: core.Supplier<string>;
|
|
@@ -27,21 +28,21 @@ export declare namespace RulebricksApiClient {
|
|
|
27
28
|
headers?: Record<string, string>;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
export declare class
|
|
31
|
-
protected readonly _options:
|
|
31
|
+
export declare class RulebricksClient {
|
|
32
|
+
protected readonly _options: RulebricksClient.Options;
|
|
32
33
|
protected _rules: Rules | undefined;
|
|
33
34
|
protected _flows: Flows | undefined;
|
|
34
35
|
protected _decisions: Decisions | undefined;
|
|
35
|
-
protected _assets: Assets | undefined;
|
|
36
36
|
protected _users: Users | undefined;
|
|
37
|
-
protected
|
|
37
|
+
protected _assets: Assets | undefined;
|
|
38
38
|
protected _values: Values | undefined;
|
|
39
|
-
|
|
39
|
+
protected _tests: Tests | undefined;
|
|
40
|
+
constructor(_options: RulebricksClient.Options);
|
|
40
41
|
get rules(): Rules;
|
|
41
42
|
get flows(): Flows;
|
|
42
43
|
get decisions(): Decisions;
|
|
43
|
-
get assets(): Assets;
|
|
44
44
|
get users(): Users;
|
|
45
|
-
get
|
|
45
|
+
get assets(): Assets;
|
|
46
46
|
get values(): Values;
|
|
47
|
+
get tests(): Tests;
|
|
47
48
|
}
|
package/Client.js
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.RulebricksClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/rules/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/flows/client/Client");
|
|
9
9
|
const Client_3 = require("./api/resources/decisions/client/Client");
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
class
|
|
10
|
+
const Client_4 = require("./api/resources/users/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/assets/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/values/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/tests/client/Client");
|
|
14
|
+
class RulebricksClient {
|
|
15
15
|
constructor(_options) {
|
|
16
16
|
this._options = _options;
|
|
17
17
|
}
|
|
@@ -27,21 +27,21 @@ class RulebricksApiClient {
|
|
|
27
27
|
var _a;
|
|
28
28
|
return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new Client_3.Decisions(this._options)));
|
|
29
29
|
}
|
|
30
|
-
get assets() {
|
|
31
|
-
var _a;
|
|
32
|
-
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_4.Assets(this._options)));
|
|
33
|
-
}
|
|
34
30
|
get users() {
|
|
35
31
|
var _a;
|
|
36
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
32
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_4.Users(this._options)));
|
|
37
33
|
}
|
|
38
|
-
get
|
|
34
|
+
get assets() {
|
|
39
35
|
var _a;
|
|
40
|
-
return ((_a = this.
|
|
36
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_5.Assets(this._options)));
|
|
41
37
|
}
|
|
42
38
|
get values() {
|
|
43
39
|
var _a;
|
|
44
|
-
return ((_a = this._values) !== null && _a !== void 0 ? _a : (this._values = new
|
|
40
|
+
return ((_a = this._values) !== null && _a !== void 0 ? _a : (this._values = new Client_6.Values(this._options)));
|
|
41
|
+
}
|
|
42
|
+
get tests() {
|
|
43
|
+
var _a;
|
|
44
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_7.Tests(this._options)));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
47
|
+
exports.RulebricksClient = RulebricksClient;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
-
export declare class BadRequestError extends errors.
|
|
5
|
+
export declare class BadRequestError extends errors.RulebricksError {
|
|
6
6
|
constructor(body?: unknown);
|
|
7
7
|
}
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BadRequestError = void 0;
|
|
30
30
|
const errors = __importStar(require("../../errors/index"));
|
|
31
|
-
class BadRequestError extends errors.
|
|
31
|
+
class BadRequestError extends errors.RulebricksError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
34
34
|
message: "BadRequestError",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
-
import * as
|
|
6
|
-
export declare class ForbiddenError extends errors.
|
|
7
|
-
constructor(body:
|
|
5
|
+
import * as Rulebricks from "../index";
|
|
6
|
+
export declare class ForbiddenError extends errors.RulebricksError {
|
|
7
|
+
constructor(body: Rulebricks.Error_);
|
|
8
8
|
}
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ForbiddenError = void 0;
|
|
30
30
|
const errors = __importStar(require("../../errors/index"));
|
|
31
|
-
class ForbiddenError extends errors.
|
|
31
|
+
class ForbiddenError extends errors.RulebricksError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
34
34
|
message: "ForbiddenError",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
-
export declare class InternalServerError extends errors.
|
|
5
|
+
export declare class InternalServerError extends errors.RulebricksError {
|
|
6
6
|
constructor(body?: unknown);
|
|
7
7
|
}
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.InternalServerError = void 0;
|
|
30
30
|
const errors = __importStar(require("../../errors/index"));
|
|
31
|
-
class InternalServerError extends errors.
|
|
31
|
+
class InternalServerError extends errors.RulebricksError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
34
34
|
message: "InternalServerError",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
-
export declare class NotFoundError extends errors.
|
|
5
|
+
export declare class NotFoundError extends errors.RulebricksError {
|
|
6
6
|
constructor(body?: unknown);
|
|
7
7
|
}
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.NotFoundError = void 0;
|
|
30
30
|
const errors = __importStar(require("../../errors/index"));
|
|
31
|
-
class NotFoundError extends errors.
|
|
31
|
+
class NotFoundError extends errors.RulebricksError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
34
34
|
message: "NotFoundError",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
4
5
|
import * as core from "../../../../core";
|
|
5
|
-
import * as
|
|
6
|
+
import * as Rulebricks from "../../../index";
|
|
7
|
+
import { Rules } from "../resources/rules/client/Client";
|
|
8
|
+
import { Flows } from "../resources/flows/client/Client";
|
|
9
|
+
import { Folders } from "../resources/folders/client/Client";
|
|
6
10
|
export declare namespace Assets {
|
|
7
11
|
interface Options {
|
|
8
|
-
environment
|
|
12
|
+
environment?: core.Supplier<environments.RulebricksEnvironment | string>;
|
|
9
13
|
/** Specify a custom URL to connect the client to. */
|
|
10
14
|
baseUrl?: core.Supplier<string>;
|
|
11
15
|
apiKey: core.Supplier<string>;
|
|
@@ -26,81 +30,13 @@ export declare namespace Assets {
|
|
|
26
30
|
*/
|
|
27
31
|
export declare class Assets {
|
|
28
32
|
protected readonly _options: Assets.Options;
|
|
33
|
+
protected _rules: Rules | undefined;
|
|
34
|
+
protected _flows: Flows | undefined;
|
|
35
|
+
protected _folders: Folders | undefined;
|
|
29
36
|
constructor(_options: Assets.Options);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @param {RulebricksApi.DeleteRuleRequest} request
|
|
34
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
-
*
|
|
36
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
37
|
-
* @throws {@link RulebricksApi.NotFoundError}
|
|
38
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* await client.assets.deleteRule({
|
|
42
|
-
* id: "id"
|
|
43
|
-
* })
|
|
44
|
-
*/
|
|
45
|
-
deleteRule(request: RulebricksApi.DeleteRuleRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.SuccessMessage>;
|
|
46
|
-
/**
|
|
47
|
-
* Export a specific rule by its ID.
|
|
48
|
-
*
|
|
49
|
-
* @param {RulebricksApi.ExportRuleRequest} request
|
|
50
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
-
*
|
|
52
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
53
|
-
* @throws {@link RulebricksApi.NotFoundError}
|
|
54
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* await client.assets.exportRule({
|
|
58
|
-
* id: "id"
|
|
59
|
-
* })
|
|
60
|
-
*/
|
|
61
|
-
exportRule(request: RulebricksApi.ExportRuleRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.RuleExport>;
|
|
62
|
-
/**
|
|
63
|
-
* Import a rule into the user's account.
|
|
64
|
-
*
|
|
65
|
-
* @param {RulebricksApi.ImportRuleRequest} request
|
|
66
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
69
|
-
* @throws {@link RulebricksApi.ForbiddenError}
|
|
70
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* await client.assets.importRule({
|
|
74
|
-
* rule: {
|
|
75
|
-
* "key": "value"
|
|
76
|
-
* }
|
|
77
|
-
* })
|
|
78
|
-
*/
|
|
79
|
-
importRule(request: RulebricksApi.ImportRuleRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.RuleExport>;
|
|
80
|
-
/**
|
|
81
|
-
* List all rules in the organization. Optionally filter by folder name or ID.
|
|
82
|
-
*
|
|
83
|
-
* @param {RulebricksApi.ListRulesRequest} request
|
|
84
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
-
*
|
|
86
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
87
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* await client.assets.listRules()
|
|
91
|
-
*/
|
|
92
|
-
listRules(request?: RulebricksApi.ListRulesRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.RuleListResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* List all flows in the organization.
|
|
95
|
-
*
|
|
96
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
|
-
*
|
|
98
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* await client.assets.listFlows()
|
|
102
|
-
*/
|
|
103
|
-
listFlows(requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.FlowListResponse>;
|
|
37
|
+
get rules(): Rules;
|
|
38
|
+
get flows(): Flows;
|
|
39
|
+
get folders(): Folders;
|
|
104
40
|
/**
|
|
105
41
|
* Get the rule execution usage of your organization.
|
|
106
42
|
*
|
|
@@ -109,50 +45,7 @@ export declare class Assets {
|
|
|
109
45
|
* @example
|
|
110
46
|
* await client.assets.getUsage()
|
|
111
47
|
*/
|
|
112
|
-
getUsage(requestOptions?: Assets.RequestOptions): Promise<
|
|
113
|
-
/**
|
|
114
|
-
* Retrieve all rule folders for the authenticated user.
|
|
115
|
-
*
|
|
116
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
-
*
|
|
118
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* await client.assets.listFolders()
|
|
122
|
-
*/
|
|
123
|
-
listFolders(requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.FolderListResponse>;
|
|
124
|
-
/**
|
|
125
|
-
* Create a new rule folder or update an existing one for the authenticated user.
|
|
126
|
-
*
|
|
127
|
-
* @param {RulebricksApi.UpsertFolderRequest} request
|
|
128
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
-
*
|
|
130
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
131
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* await client.assets.upsertFolder({
|
|
135
|
-
* name: "Marketing Rules",
|
|
136
|
-
* description: "Rules for marketing automation workflows"
|
|
137
|
-
* })
|
|
138
|
-
*/
|
|
139
|
-
upsertFolder(request: RulebricksApi.UpsertFolderRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.Folder>;
|
|
140
|
-
/**
|
|
141
|
-
* Delete a specific rule folder for the authenticated user. This does not delete the rules within the folder.
|
|
142
|
-
*
|
|
143
|
-
* @param {RulebricksApi.DeleteFolderRequest} request
|
|
144
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
|
-
*
|
|
146
|
-
* @throws {@link RulebricksApi.BadRequestError}
|
|
147
|
-
* @throws {@link RulebricksApi.NotFoundError}
|
|
148
|
-
* @throws {@link RulebricksApi.InternalServerError}
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* await client.assets.deleteFolder({
|
|
152
|
-
* id: "abc123"
|
|
153
|
-
* })
|
|
154
|
-
*/
|
|
155
|
-
deleteFolder(request: RulebricksApi.DeleteFolderRequest, requestOptions?: Assets.RequestOptions): Promise<RulebricksApi.Folder>;
|
|
48
|
+
getUsage(requestOptions?: Assets.RequestOptions): Promise<Rulebricks.UsageStatistics>;
|
|
156
49
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
157
50
|
"x-api-key": string;
|
|
158
51
|
}>;
|