@rulebricks/sdk 1.5.2 → 2.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.
- package/Client.d.ts +3 -0
- package/Client.js +17 -12
- package/api/resources/assets/client/Client.d.ts +54 -1
- package/api/resources/assets/client/Client.js +134 -0
- package/api/resources/assets/client/index.d.ts +1 -1
- package/api/resources/assets/client/index.js +15 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
- package/api/resources/assets/client/requests/index.d.ts +2 -0
- package/api/resources/assets/client/requests/index.js +2 -0
- package/api/resources/assets/index.d.ts +1 -0
- package/api/resources/assets/index.js +1 -0
- package/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
- package/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
- package/api/resources/assets/types/index.d.ts +1 -0
- package/api/resources/assets/types/index.js +17 -0
- package/api/resources/contexts/client/Client.d.ts +170 -0
- package/api/resources/contexts/client/Client.js +555 -0
- package/api/resources/contexts/client/index.d.ts +1 -0
- package/api/resources/contexts/client/index.js +17 -0
- package/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
- package/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/api/resources/contexts/client/requests/index.js +2 -0
- package/api/resources/contexts/index.d.ts +2 -0
- package/api/resources/contexts/index.js +18 -0
- package/api/resources/contexts/resources/index.d.ts +4 -0
- package/api/resources/contexts/resources/index.js +43 -0
- package/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
- package/api/resources/contexts/resources/objects/client/Client.js +354 -0
- package/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/objects/client/index.js +17 -0
- package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
- package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
- package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
- package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
- package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
- package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
- package/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
- package/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
- package/api/resources/contexts/resources/objects/index.d.ts +1 -0
- package/api/resources/contexts/resources/objects/index.js +17 -0
- package/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
- package/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +8 -4
- package/api/resources/users/client/Client.d.ts +5 -5
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
- package/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
- package/api/resources/values/client/Client.d.ts +3 -3
- package/api/resources/values/client/Client.js +3 -3
- package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
- package/api/types/CascadeContextRequest.d.ts +4 -0
- package/api/types/CascadeContextRequest.js +3 -0
- package/api/types/CascadeContextResponse.d.ts +10 -0
- package/api/types/CascadeContextResponse.js +3 -0
- package/api/types/CascadeResult.d.ts +29 -0
- package/api/types/CascadeResult.js +12 -0
- package/api/types/ContextBase.d.ts +33 -0
- package/api/types/ContextBase.js +12 -0
- package/api/types/ContextDetail.d.ts +58 -0
- package/api/types/ContextDetail.js +3 -0
- package/api/types/ContextInstanceHistory.d.ts +10 -0
- package/api/types/ContextInstanceHistory.js +3 -0
- package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
- package/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/api/types/ContextInstancePendingResponse.js +3 -0
- package/api/types/ContextInstanceState.d.ts +31 -0
- package/api/types/ContextInstanceState.js +12 -0
- package/api/types/ContextListItem.d.ts +24 -0
- package/api/types/ContextListItem.js +3 -0
- package/api/types/ContextListResponse.d.ts +2 -0
- package/api/types/ContextListResponse.js +3 -0
- package/api/types/ContextRelationshipBase.d.ts +23 -0
- package/api/types/ContextRelationshipBase.js +13 -0
- package/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/api/types/ContextRelationshipIncoming.js +3 -0
- package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/api/types/ContextRelationshipOutgoing.js +3 -0
- package/api/types/ContextRelationshipsResponse.d.ts +17 -0
- package/api/types/ContextRelationshipsResponse.js +3 -0
- package/api/types/ContextSchema.d.ts +10 -0
- package/api/types/ContextSchema.js +3 -0
- package/api/types/ContextSchemaField.d.ts +35 -0
- package/api/types/ContextSchemaField.js +16 -0
- package/api/types/CreateContextResponse.d.ts +2 -0
- package/api/types/CreateContextResponse.js +3 -0
- package/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/api/types/CreateRelationshipResponse.js +3 -0
- package/api/types/CreateUserResponse.d.ts +3 -3
- package/api/types/DecisionLog.d.ts +13 -4
- package/api/types/DecisionLogResponse.d.ts +4 -4
- package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/api/types/DeleteContextInstanceResponse.js +3 -0
- package/api/types/DeleteContextResponse.d.ts +13 -0
- package/api/types/DeleteContextResponse.js +3 -0
- package/api/types/DeleteRelationshipResponse.d.ts +6 -0
- package/api/types/DeleteRelationshipResponse.js +3 -0
- package/api/types/DynamicValue.d.ts +9 -3
- package/api/types/ExportManifestPreviewResponse.d.ts +64 -0
- package/api/types/ExportManifestPreviewResponse.js +3 -0
- package/api/types/ExportManifestResponse.d.ts +30 -0
- package/api/types/ExportManifestResponse.js +3 -0
- package/api/types/FlowDetail.d.ts +28 -0
- package/api/types/Folder.d.ts +5 -1
- package/api/types/ImportManifestResponse.d.ts +66 -0
- package/api/types/ImportManifestResponse.js +3 -0
- package/api/types/RuleDetail.d.ts +17 -0
- package/api/types/SchemaField.d.ts +2 -2
- package/api/types/SolveContextFlowRequest.d.ts +4 -0
- package/api/types/SolveContextFlowRequest.js +3 -0
- package/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/api/types/SolveContextFlowResponse.js +12 -0
- package/api/types/SolveContextRuleRequest.d.ts +4 -0
- package/api/types/SolveContextRuleRequest.js +3 -0
- package/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/api/types/SolveContextRuleResponse.js +12 -0
- package/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/api/types/SubmitContextDataRequest.js +3 -0
- package/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/api/types/SubmitContextDataResponse.js +12 -0
- package/api/types/Test.d.ts +9 -9
- package/api/types/UpdateContextResponse.d.ts +13 -0
- package/api/types/UpdateContextResponse.js +3 -0
- package/api/types/UsageStatistics.d.ts +10 -4
- package/api/types/UserDetail.d.ts +4 -4
- package/api/types/UserGroup.d.ts +2 -0
- package/api/types/UserInviteResponse.d.ts +2 -2
- package/api/types/index.d.ts +33 -0
- package/api/types/index.js +33 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +17 -12
- package/dist/api/resources/assets/client/Client.d.ts +54 -1
- package/dist/api/resources/assets/client/Client.js +134 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -1
- package/dist/api/resources/assets/client/index.js +15 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/client/requests/index.js +2 -0
- package/dist/api/resources/assets/index.d.ts +1 -0
- package/dist/api/resources/assets/index.js +1 -0
- package/dist/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
- package/dist/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/index.d.ts +1 -0
- package/dist/api/resources/assets/types/index.js +17 -0
- package/dist/api/resources/contexts/client/Client.d.ts +170 -0
- package/dist/api/resources/contexts/client/Client.js +555 -0
- package/dist/api/resources/contexts/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/client/index.js +17 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/dist/api/resources/contexts/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/index.d.ts +2 -0
- package/dist/api/resources/contexts/index.js +18 -0
- package/dist/api/resources/contexts/resources/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/index.js +43 -0
- package/dist/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
- package/dist/api/resources/contexts/resources/objects/client/Client.js +354 -0
- package/dist/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/objects/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/resources/objects/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/objects/index.js +17 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +5 -5
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
- package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
- package/dist/api/resources/values/client/Client.d.ts +3 -3
- package/dist/api/resources/values/client/Client.js +3 -3
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
- package/dist/api/types/CascadeContextRequest.d.ts +4 -0
- package/dist/api/types/CascadeContextRequest.js +3 -0
- package/dist/api/types/CascadeContextResponse.d.ts +10 -0
- package/dist/api/types/CascadeContextResponse.js +3 -0
- package/dist/api/types/CascadeResult.d.ts +29 -0
- package/dist/api/types/CascadeResult.js +12 -0
- package/dist/api/types/ContextBase.d.ts +33 -0
- package/dist/api/types/ContextBase.js +12 -0
- package/dist/api/types/ContextDetail.d.ts +58 -0
- package/dist/api/types/ContextDetail.js +3 -0
- package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
- package/dist/api/types/ContextInstanceHistory.js +3 -0
- package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/dist/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
- package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/dist/api/types/ContextInstancePendingResponse.js +3 -0
- package/dist/api/types/ContextInstanceState.d.ts +31 -0
- package/dist/api/types/ContextInstanceState.js +12 -0
- package/dist/api/types/ContextListItem.d.ts +24 -0
- package/dist/api/types/ContextListItem.js +3 -0
- package/dist/api/types/ContextListResponse.d.ts +2 -0
- package/dist/api/types/ContextListResponse.js +3 -0
- package/dist/api/types/ContextRelationshipBase.d.ts +23 -0
- package/dist/api/types/ContextRelationshipBase.js +13 -0
- package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/dist/api/types/ContextRelationshipIncoming.js +3 -0
- package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
- package/dist/api/types/ContextRelationshipsResponse.d.ts +17 -0
- package/dist/api/types/ContextRelationshipsResponse.js +3 -0
- package/dist/api/types/ContextSchema.d.ts +10 -0
- package/dist/api/types/ContextSchema.js +3 -0
- package/dist/api/types/ContextSchemaField.d.ts +35 -0
- package/dist/api/types/ContextSchemaField.js +16 -0
- package/dist/api/types/CreateContextResponse.d.ts +2 -0
- package/dist/api/types/CreateContextResponse.js +3 -0
- package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/dist/api/types/CreateRelationshipResponse.js +3 -0
- package/dist/api/types/CreateUserResponse.d.ts +3 -3
- package/dist/api/types/DecisionLog.d.ts +13 -4
- package/dist/api/types/DecisionLogResponse.d.ts +4 -4
- package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
- package/dist/api/types/DeleteContextResponse.d.ts +13 -0
- package/dist/api/types/DeleteContextResponse.js +3 -0
- package/dist/api/types/DeleteRelationshipResponse.d.ts +6 -0
- package/dist/api/types/DeleteRelationshipResponse.js +3 -0
- package/dist/api/types/DynamicValue.d.ts +9 -3
- package/dist/api/types/ExportManifestPreviewResponse.d.ts +64 -0
- package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
- package/dist/api/types/ExportManifestResponse.d.ts +30 -0
- package/dist/api/types/ExportManifestResponse.js +3 -0
- package/dist/api/types/FlowDetail.d.ts +28 -0
- package/dist/api/types/Folder.d.ts +5 -1
- package/dist/api/types/ImportManifestResponse.d.ts +66 -0
- package/dist/api/types/ImportManifestResponse.js +3 -0
- package/dist/api/types/RuleDetail.d.ts +17 -0
- package/dist/api/types/SchemaField.d.ts +2 -2
- package/dist/api/types/SolveContextFlowRequest.d.ts +4 -0
- package/dist/api/types/SolveContextFlowRequest.js +3 -0
- package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/dist/api/types/SolveContextFlowResponse.js +12 -0
- package/dist/api/types/SolveContextRuleRequest.d.ts +4 -0
- package/dist/api/types/SolveContextRuleRequest.js +3 -0
- package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/dist/api/types/SolveContextRuleResponse.js +12 -0
- package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/dist/api/types/SubmitContextDataRequest.js +3 -0
- package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/dist/api/types/SubmitContextDataResponse.js +12 -0
- package/dist/api/types/Test.d.ts +9 -9
- package/dist/api/types/UpdateContextResponse.d.ts +13 -0
- package/dist/api/types/UpdateContextResponse.js +3 -0
- package/dist/api/types/UsageStatistics.d.ts +10 -4
- package/dist/api/types/UserDetail.d.ts +4 -4
- package/dist/api/types/UserGroup.d.ts +2 -0
- package/dist/api/types/UserInviteResponse.d.ts +2 -2
- package/dist/api/types/index.d.ts +33 -0
- package/dist/api/types/index.js +33 -0
- package/dist/forge/values.d.ts +1 -1
- package/dist/forge/values.js +2 -2
- package/forge/values.d.ts +1 -1
- package/forge/values.js +2 -2
- package/package.json +1 -2
|
@@ -50,6 +50,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../environments.js"));
|
|
51
51
|
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const Rulebricks = __importStar(require("../../../index.js"));
|
|
53
54
|
const Client_js_1 = require("../resources/flows/client/Client.js");
|
|
54
55
|
const Client_js_2 = require("../resources/folders/client/Client.js");
|
|
55
56
|
const Client_js_3 = require("../resources/rules/client/Client.js");
|
|
@@ -112,5 +113,138 @@ class AssetsClient {
|
|
|
112
113
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/admin/usage");
|
|
113
114
|
});
|
|
114
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Import rules, flows, contexts, and values from an Rulebricks manifest file (*.rbm).
|
|
118
|
+
*
|
|
119
|
+
* @param {Rulebricks.ImportManifestRequest} request
|
|
120
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
123
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* await client.assets.importRbm({
|
|
127
|
+
* manifest: {
|
|
128
|
+
* version: "1.0",
|
|
129
|
+
* rules: [{
|
|
130
|
+
* "name": "Pricing Rule",
|
|
131
|
+
* "slug": "pricing-rule"
|
|
132
|
+
* }],
|
|
133
|
+
* flows: [{
|
|
134
|
+
* "name": "Onboarding Flow",
|
|
135
|
+
* "slug": "onboarding-flow"
|
|
136
|
+
* }],
|
|
137
|
+
* entities: [{
|
|
138
|
+
* "name": "Customer",
|
|
139
|
+
* "slug": "customer"
|
|
140
|
+
* }],
|
|
141
|
+
* values: [{
|
|
142
|
+
* "name": "tax_rate",
|
|
143
|
+
* "value": 0.08
|
|
144
|
+
* }]
|
|
145
|
+
* },
|
|
146
|
+
* conflict_strategy: "update"
|
|
147
|
+
* })
|
|
148
|
+
*/
|
|
149
|
+
importRbm(request, requestOptions) {
|
|
150
|
+
return core.HttpResponsePromise.fromPromise(this.__importRbm(request, requestOptions));
|
|
151
|
+
}
|
|
152
|
+
__importRbm(request, requestOptions) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
155
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
156
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
157
|
+
const _response = yield core.fetcher({
|
|
158
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/import"),
|
|
159
|
+
method: "POST",
|
|
160
|
+
headers: _headers,
|
|
161
|
+
contentType: "application/json",
|
|
162
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
163
|
+
requestType: "json",
|
|
164
|
+
body: request,
|
|
165
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
166
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
167
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
168
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
169
|
+
logging: this._options.logging,
|
|
170
|
+
});
|
|
171
|
+
if (_response.ok) {
|
|
172
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
173
|
+
}
|
|
174
|
+
if (_response.error.reason === "status-code") {
|
|
175
|
+
switch (_response.error.statusCode) {
|
|
176
|
+
case 400:
|
|
177
|
+
throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
|
|
178
|
+
case 500:
|
|
179
|
+
throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
|
|
180
|
+
default:
|
|
181
|
+
throw new errors.RulebricksError({
|
|
182
|
+
statusCode: _response.error.statusCode,
|
|
183
|
+
body: _response.error.body,
|
|
184
|
+
rawResponse: _response.rawResponse,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/import");
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Export selected rules, flows, contexts, and values to an Rulebricks manifest file (*.rbm).
|
|
193
|
+
*
|
|
194
|
+
* @param {Rulebricks.ExportManifestRequest} request
|
|
195
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
|
+
*
|
|
197
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
198
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.assets.exportRbm({
|
|
202
|
+
* root_type: "rule",
|
|
203
|
+
* root_ids: ["pricing-rule", "eligibility-check"],
|
|
204
|
+
* include_downstream: false
|
|
205
|
+
* })
|
|
206
|
+
*/
|
|
207
|
+
exportRbm(request, requestOptions) {
|
|
208
|
+
return core.HttpResponsePromise.fromPromise(this.__exportRbm(request, requestOptions));
|
|
209
|
+
}
|
|
210
|
+
__exportRbm(request, requestOptions) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
213
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
214
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
215
|
+
const _response = yield core.fetcher({
|
|
216
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/export"),
|
|
217
|
+
method: "POST",
|
|
218
|
+
headers: _headers,
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
|
+
requestType: "json",
|
|
222
|
+
body: request,
|
|
223
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
224
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
227
|
+
logging: this._options.logging,
|
|
228
|
+
});
|
|
229
|
+
if (_response.ok) {
|
|
230
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
231
|
+
}
|
|
232
|
+
if (_response.error.reason === "status-code") {
|
|
233
|
+
switch (_response.error.statusCode) {
|
|
234
|
+
case 400:
|
|
235
|
+
throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
|
|
236
|
+
case 500:
|
|
237
|
+
throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
|
|
238
|
+
default:
|
|
239
|
+
throw new errors.RulebricksError({
|
|
240
|
+
statusCode: _response.error.statusCode,
|
|
241
|
+
body: _response.error.body,
|
|
242
|
+
rawResponse: _response.rawResponse,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/export");
|
|
247
|
+
});
|
|
248
|
+
}
|
|
115
249
|
}
|
|
116
250
|
exports.AssetsClient = AssetsClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* root_type: "rule",
|
|
5
|
+
* root_ids: ["pricing-rule", "eligibility-check"],
|
|
6
|
+
* include_downstream: false
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ExportManifestRequest {
|
|
10
|
+
/** The type of root asset to export. All dependencies will be included. */
|
|
11
|
+
root_type: ExportManifestRequest.RootType;
|
|
12
|
+
/** Array of IDs for the root assets to export. Dependencies are automatically resolved. */
|
|
13
|
+
root_ids: string[];
|
|
14
|
+
/** For context exports, whether to include rules and flows bound to the context. */
|
|
15
|
+
include_downstream?: boolean;
|
|
16
|
+
/** Optional name for the exported manifest. */
|
|
17
|
+
manifest_name?: string;
|
|
18
|
+
/** Optional description for the exported manifest. */
|
|
19
|
+
manifest_description?: string;
|
|
20
|
+
/** If true, returns a preview of what would be exported without the full data. */
|
|
21
|
+
preview_only?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace ExportManifestRequest {
|
|
24
|
+
/** The type of root asset to export. All dependencies will be included. */
|
|
25
|
+
const RootType: {
|
|
26
|
+
readonly Rule: "rule";
|
|
27
|
+
readonly Flow: "flow";
|
|
28
|
+
readonly Context: "context";
|
|
29
|
+
readonly Value: "value";
|
|
30
|
+
};
|
|
31
|
+
type RootType = (typeof RootType)[keyof typeof RootType];
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExportManifestRequest = void 0;
|
|
5
|
+
var ExportManifestRequest;
|
|
6
|
+
(function (ExportManifestRequest) {
|
|
7
|
+
/** The type of root asset to export. All dependencies will be included. */
|
|
8
|
+
ExportManifestRequest.RootType = {
|
|
9
|
+
Rule: "rule",
|
|
10
|
+
Flow: "flow",
|
|
11
|
+
Context: "context",
|
|
12
|
+
Value: "value",
|
|
13
|
+
};
|
|
14
|
+
})(ExportManifestRequest || (exports.ExportManifestRequest = ExportManifestRequest = {}));
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* manifest: {
|
|
5
|
+
* version: "1.0",
|
|
6
|
+
* rules: [{
|
|
7
|
+
* "name": "Pricing Rule",
|
|
8
|
+
* "slug": "pricing-rule"
|
|
9
|
+
* }],
|
|
10
|
+
* flows: [{
|
|
11
|
+
* "name": "Onboarding Flow",
|
|
12
|
+
* "slug": "onboarding-flow"
|
|
13
|
+
* }],
|
|
14
|
+
* entities: [{
|
|
15
|
+
* "name": "Customer",
|
|
16
|
+
* "slug": "customer"
|
|
17
|
+
* }],
|
|
18
|
+
* values: [{
|
|
19
|
+
* "name": "tax_rate",
|
|
20
|
+
* "value": 0.08
|
|
21
|
+
* }]
|
|
22
|
+
* },
|
|
23
|
+
* conflict_strategy: "update"
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
26
|
+
export interface ImportManifestRequest {
|
|
27
|
+
/** The RBM manifest object containing assets to import. */
|
|
28
|
+
manifest: ImportManifestRequest.Manifest;
|
|
29
|
+
/** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
|
|
30
|
+
conflict_strategy?: ImportManifestRequest.ConflictStrategy;
|
|
31
|
+
/** Optional folder name to place imported assets into. Created if it doesn't exist. */
|
|
32
|
+
target_folder_name?: string;
|
|
33
|
+
/** Optional mapping for legacy flow imports to reuse existing rules. */
|
|
34
|
+
legacy_rule_mapping?: Record<string, ImportManifestRequest.LegacyRuleMapping.Value>;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace ImportManifestRequest {
|
|
37
|
+
/**
|
|
38
|
+
* The RBM manifest object containing assets to import.
|
|
39
|
+
*/
|
|
40
|
+
interface Manifest {
|
|
41
|
+
/** Manifest format version. */
|
|
42
|
+
version?: string;
|
|
43
|
+
/** Rules to import. */
|
|
44
|
+
rules?: Record<string, unknown>[];
|
|
45
|
+
/** Flows to import. */
|
|
46
|
+
flows?: Record<string, unknown>[];
|
|
47
|
+
/** Contexts to import. */
|
|
48
|
+
entities?: Record<string, unknown>[];
|
|
49
|
+
/** Dynamic values to import. */
|
|
50
|
+
values?: Record<string, unknown>[];
|
|
51
|
+
}
|
|
52
|
+
/** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
|
|
53
|
+
const ConflictStrategy: {
|
|
54
|
+
readonly Update: "update";
|
|
55
|
+
readonly Skip: "skip";
|
|
56
|
+
readonly Error: "error";
|
|
57
|
+
};
|
|
58
|
+
type ConflictStrategy = (typeof ConflictStrategy)[keyof typeof ConflictStrategy];
|
|
59
|
+
namespace LegacyRuleMapping {
|
|
60
|
+
interface Value {
|
|
61
|
+
action?: Value.Action;
|
|
62
|
+
rule_id?: string;
|
|
63
|
+
}
|
|
64
|
+
namespace Value {
|
|
65
|
+
const Action: {
|
|
66
|
+
readonly Reuse: "reuse";
|
|
67
|
+
readonly Create: "create";
|
|
68
|
+
};
|
|
69
|
+
type Action = (typeof Action)[keyof typeof Action];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ImportManifestRequest = void 0;
|
|
5
|
+
var ImportManifestRequest;
|
|
6
|
+
(function (ImportManifestRequest) {
|
|
7
|
+
/** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
|
|
8
|
+
ImportManifestRequest.ConflictStrategy = {
|
|
9
|
+
Update: "update",
|
|
10
|
+
Skip: "skip",
|
|
11
|
+
Error: "error",
|
|
12
|
+
};
|
|
13
|
+
let LegacyRuleMapping;
|
|
14
|
+
(function (LegacyRuleMapping) {
|
|
15
|
+
let Value;
|
|
16
|
+
(function (Value) {
|
|
17
|
+
Value.Action = {
|
|
18
|
+
Reuse: "reuse",
|
|
19
|
+
Create: "create",
|
|
20
|
+
};
|
|
21
|
+
})(Value = LegacyRuleMapping.Value || (LegacyRuleMapping.Value = {}));
|
|
22
|
+
})(LegacyRuleMapping = ImportManifestRequest.LegacyRuleMapping || (ImportManifestRequest.LegacyRuleMapping = {}));
|
|
23
|
+
})(ImportManifestRequest || (exports.ImportManifestRequest = ImportManifestRequest = {}));
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
18
|
__exportStar(require("./resources/index.js"), exports);
|
|
19
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExportRbmAssetsResponse.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ExportRbmAssetsResponse.js"), exports);
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Rulebricks from "../../../index.js";
|
|
5
|
+
import { ObjectsClient } from "../resources/objects/client/Client.js";
|
|
6
|
+
import { RelationshipsClient } from "../resources/relationships/client/Client.js";
|
|
7
|
+
export declare namespace ContextsClient {
|
|
8
|
+
type Options = BaseClientOptions;
|
|
9
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Operations for managing and interacting with live Context instances
|
|
14
|
+
*/
|
|
15
|
+
export declare class ContextsClient {
|
|
16
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ContextsClient.Options>;
|
|
17
|
+
protected _objects: ObjectsClient | undefined;
|
|
18
|
+
protected _relationships: RelationshipsClient | undefined;
|
|
19
|
+
constructor(options: ContextsClient.Options);
|
|
20
|
+
get objects(): ObjectsClient;
|
|
21
|
+
get relationships(): RelationshipsClient;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the current state of a context instance.
|
|
24
|
+
*
|
|
25
|
+
* @param {Rulebricks.GetContextsRequest} request
|
|
26
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
29
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.contexts.get({
|
|
33
|
+
* slug: "customer",
|
|
34
|
+
* instance: "cust-12345"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
get(request: Rulebricks.GetContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ContextInstanceState>;
|
|
38
|
+
private __get;
|
|
39
|
+
/**
|
|
40
|
+
* Submit data to a context instance, creating it if it doesn't exist. May trigger bound rule/flow evaluations.
|
|
41
|
+
*
|
|
42
|
+
* @param {Rulebricks.SubmitContextsRequest} request
|
|
43
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
46
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
47
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.contexts.submit({
|
|
51
|
+
* slug: "customer",
|
|
52
|
+
* instance: "cust-12345",
|
|
53
|
+
* body: {
|
|
54
|
+
* "email": "customer@example.com",
|
|
55
|
+
* "age": 30
|
|
56
|
+
* }
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
submit(request: Rulebricks.SubmitContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.SubmitContextDataResponse>;
|
|
60
|
+
private __submit;
|
|
61
|
+
/**
|
|
62
|
+
* Delete a specific context instance and its history.
|
|
63
|
+
*
|
|
64
|
+
* @param {Rulebricks.DeleteContextsRequest} request
|
|
65
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
68
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.contexts.delete({
|
|
72
|
+
* slug: "customer",
|
|
73
|
+
* instance: "cust-12345"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
delete(request: Rulebricks.DeleteContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.DeleteContextInstanceResponse>;
|
|
77
|
+
private __delete;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve the change history for a context instance.
|
|
80
|
+
*
|
|
81
|
+
* @param {Rulebricks.GetHistoryContextsRequest} request
|
|
82
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
85
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.contexts.getHistory({
|
|
89
|
+
* slug: "customer",
|
|
90
|
+
* instance: "cust-12345"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
getHistory(request: Rulebricks.GetHistoryContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ContextInstanceHistory>;
|
|
94
|
+
private __getHistory;
|
|
95
|
+
/**
|
|
96
|
+
* Get list of rules/flows that need to be evaluated for this instance.
|
|
97
|
+
*
|
|
98
|
+
* @param {Rulebricks.GetPendingContextsRequest} request
|
|
99
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
102
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.contexts.getPending({
|
|
106
|
+
* slug: "customer",
|
|
107
|
+
* instance: "cust-12345"
|
|
108
|
+
* })
|
|
109
|
+
*/
|
|
110
|
+
getPending(request: Rulebricks.GetPendingContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ContextInstancePendingResponse>;
|
|
111
|
+
private __getPending;
|
|
112
|
+
/**
|
|
113
|
+
* Execute a specific rule using the context instance's state as input.
|
|
114
|
+
*
|
|
115
|
+
* @param {Rulebricks.SolveContextsRequest} request
|
|
116
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
119
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
120
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* await client.contexts.solve({
|
|
124
|
+
* slug: "customer",
|
|
125
|
+
* instance: "cust-12345",
|
|
126
|
+
* ruleSlug: "eligibility-check",
|
|
127
|
+
* body: {}
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
solve(request: Rulebricks.SolveContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.SolveContextRuleResponse>;
|
|
131
|
+
private __solve;
|
|
132
|
+
/**
|
|
133
|
+
* Trigger re-evaluation of all bound rules and flows for the instance.
|
|
134
|
+
*
|
|
135
|
+
* @param {Rulebricks.CascadeContextsRequest} request
|
|
136
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
139
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.contexts.cascade({
|
|
143
|
+
* slug: "customer",
|
|
144
|
+
* instance: "cust-12345",
|
|
145
|
+
* body: {}
|
|
146
|
+
* })
|
|
147
|
+
*/
|
|
148
|
+
cascade(request: Rulebricks.CascadeContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.CascadeContextResponse>;
|
|
149
|
+
private __cascade;
|
|
150
|
+
/**
|
|
151
|
+
* Execute a specific flow using the context instance's state as input.
|
|
152
|
+
*
|
|
153
|
+
* @param {Rulebricks.ExecuteContextsRequest} request
|
|
154
|
+
* @param {ContextsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
157
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
158
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* await client.contexts.execute({
|
|
162
|
+
* slug: "customer",
|
|
163
|
+
* instance: "cust-12345",
|
|
164
|
+
* flowSlug: "onboarding-flow",
|
|
165
|
+
* body: {}
|
|
166
|
+
* })
|
|
167
|
+
*/
|
|
168
|
+
execute(request: Rulebricks.ExecuteContextsRequest, requestOptions?: ContextsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.SolveContextFlowResponse>;
|
|
169
|
+
private __execute;
|
|
170
|
+
}
|