@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
package/Client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AssetsClient } from "./api/resources/assets/client/Client.js";
|
|
2
|
+
import { ContextsClient } from "./api/resources/contexts/client/Client.js";
|
|
2
3
|
import { DecisionsClient } from "./api/resources/decisions/client/Client.js";
|
|
3
4
|
import { FlowsClient } from "./api/resources/flows/client/Client.js";
|
|
4
5
|
import { RulesClient } from "./api/resources/rules/client/Client.js";
|
|
@@ -20,6 +21,7 @@ export declare class RulebricksClient {
|
|
|
20
21
|
protected _users: UsersClient | undefined;
|
|
21
22
|
protected _assets: AssetsClient | undefined;
|
|
22
23
|
protected _values: ValuesClient | undefined;
|
|
24
|
+
protected _contexts: ContextsClient | undefined;
|
|
23
25
|
protected _tests: TestsClient | undefined;
|
|
24
26
|
constructor(options: RulebricksClient.Options);
|
|
25
27
|
get rules(): RulesClient;
|
|
@@ -28,5 +30,6 @@ export declare class RulebricksClient {
|
|
|
28
30
|
get users(): UsersClient;
|
|
29
31
|
get assets(): AssetsClient;
|
|
30
32
|
get values(): ValuesClient;
|
|
33
|
+
get contexts(): ContextsClient;
|
|
31
34
|
get tests(): TestsClient;
|
|
32
35
|
}
|
package/Client.js
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.RulebricksClient = void 0;
|
|
5
5
|
const Client_js_1 = require("./api/resources/assets/client/Client.js");
|
|
6
|
-
const Client_js_2 = require("./api/resources/
|
|
7
|
-
const Client_js_3 = require("./api/resources/
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
6
|
+
const Client_js_2 = require("./api/resources/contexts/client/Client.js");
|
|
7
|
+
const Client_js_3 = require("./api/resources/decisions/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/flows/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/rules/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/tests/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/users/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/values/client/Client.js");
|
|
12
13
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
13
14
|
class RulebricksClient {
|
|
14
15
|
constructor(options) {
|
|
@@ -16,19 +17,19 @@ class RulebricksClient {
|
|
|
16
17
|
}
|
|
17
18
|
get rules() {
|
|
18
19
|
var _a;
|
|
19
|
-
return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new
|
|
20
|
+
return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new Client_js_5.RulesClient(this._options)));
|
|
20
21
|
}
|
|
21
22
|
get flows() {
|
|
22
23
|
var _a;
|
|
23
|
-
return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new
|
|
24
|
+
return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_js_4.FlowsClient(this._options)));
|
|
24
25
|
}
|
|
25
26
|
get decisions() {
|
|
26
27
|
var _a;
|
|
27
|
-
return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new
|
|
28
|
+
return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new Client_js_3.DecisionsClient(this._options)));
|
|
28
29
|
}
|
|
29
30
|
get users() {
|
|
30
31
|
var _a;
|
|
31
|
-
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_js_7.UsersClient(this._options)));
|
|
32
33
|
}
|
|
33
34
|
get assets() {
|
|
34
35
|
var _a;
|
|
@@ -36,11 +37,15 @@ class RulebricksClient {
|
|
|
36
37
|
}
|
|
37
38
|
get values() {
|
|
38
39
|
var _a;
|
|
39
|
-
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_js_8.ValuesClient(this._options)));
|
|
41
|
+
}
|
|
42
|
+
get contexts() {
|
|
43
|
+
var _a;
|
|
44
|
+
return ((_a = this._contexts) !== null && _a !== void 0 ? _a : (this._contexts = new Client_js_2.ContextsClient(this._options)));
|
|
40
45
|
}
|
|
41
46
|
get tests() {
|
|
42
47
|
var _a;
|
|
43
|
-
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new
|
|
48
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_js_6.TestsClient(this._options)));
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
exports.RulebricksClient = RulebricksClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
|
-
import
|
|
4
|
+
import * as Rulebricks from "../../../index.js";
|
|
5
5
|
import { FlowsClient } from "../resources/flows/client/Client.js";
|
|
6
6
|
import { FoldersClient } from "../resources/folders/client/Client.js";
|
|
7
7
|
import { RulesClient } from "../resources/rules/client/Client.js";
|
|
@@ -32,4 +32,57 @@ export declare class AssetsClient {
|
|
|
32
32
|
*/
|
|
33
33
|
getUsage(requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UsageStatistics>;
|
|
34
34
|
private __getUsage;
|
|
35
|
+
/**
|
|
36
|
+
* Import rules, flows, contexts, and values from an Rulebricks manifest file (*.rbm).
|
|
37
|
+
*
|
|
38
|
+
* @param {Rulebricks.ImportManifestRequest} request
|
|
39
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
42
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.assets.importRbm({
|
|
46
|
+
* manifest: {
|
|
47
|
+
* version: "1.0",
|
|
48
|
+
* rules: [{
|
|
49
|
+
* "name": "Pricing Rule",
|
|
50
|
+
* "slug": "pricing-rule"
|
|
51
|
+
* }],
|
|
52
|
+
* flows: [{
|
|
53
|
+
* "name": "Onboarding Flow",
|
|
54
|
+
* "slug": "onboarding-flow"
|
|
55
|
+
* }],
|
|
56
|
+
* entities: [{
|
|
57
|
+
* "name": "Customer",
|
|
58
|
+
* "slug": "customer"
|
|
59
|
+
* }],
|
|
60
|
+
* values: [{
|
|
61
|
+
* "name": "tax_rate",
|
|
62
|
+
* "value": 0.08
|
|
63
|
+
* }]
|
|
64
|
+
* },
|
|
65
|
+
* conflict_strategy: "update"
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
importRbm(request: Rulebricks.ImportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ImportManifestResponse>;
|
|
69
|
+
private __importRbm;
|
|
70
|
+
/**
|
|
71
|
+
* Export selected rules, flows, contexts, and values to an Rulebricks manifest file (*.rbm).
|
|
72
|
+
*
|
|
73
|
+
* @param {Rulebricks.ExportManifestRequest} request
|
|
74
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
77
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.assets.exportRbm({
|
|
81
|
+
* root_type: "rule",
|
|
82
|
+
* root_ids: ["pricing-rule", "eligibility-check"],
|
|
83
|
+
* include_downstream: false
|
|
84
|
+
* })
|
|
85
|
+
*/
|
|
86
|
+
exportRbm(request: Rulebricks.ExportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ExportRbmAssetsResponse>;
|
|
87
|
+
private __exportRbm;
|
|
35
88
|
}
|
|
@@ -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);
|